gtsoft-snail-job-server/frontend/public/lib/assets/JMm1tHoX.js
byteblogs168 d8a050d1b7 feat: 2.6.0
1. 优化工作流处理
2024-01-31 22:01:19 +08:00

22 lines
2.0 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var e,t,n=Object.getOwnPropertyNames,o=(e={"assets/JMm1tHoX.js"(e,t){function n(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}!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 n of e)if("childList"===n.type)for(const e of n.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 o={},r=[],i=()=>{},l=()=>!1,a=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),s=e=>e.startsWith("onUpdate:"),c=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(e,t)=>d.call(e,t),h=Array.isArray,f=e=>"[object Map]"===x(e),g=e=>"[object Set]"===x(e),m=e=>"function"==typeof e,v=e=>"string"==typeof e,b=e=>"symbol"==typeof e,y=e=>null!==e&&"object"==typeof e,O=e=>(y(e)||m(e))&&m(e.then)&&m(e.catch),w=Object.prototype.toString,x=e=>w.call(e),$=e=>"[object Object]"===x(e),S=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,C=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),k=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},P=/-(\w)/g,M=k((e=>e.replace(P,((e,t)=>t?t.toUpperCase():"")))),T=/\B([A-Z])/g,I=k((e=>e.replace(T,"-$1").toLowerCase())),E=k((e=>e.charAt(0).toUpperCase()+e.slice(1))),A=k((e=>e?`on${E(e)}`:"")),R=(e,t)=>!Object.is(e,t),D=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},j=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},B=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let N;const z=()=>N||(Nt{slots:n}=t;return LglobalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function _(e){if(h(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=v(o)?F(o):_(o);if(r)for(const e in r)t[e]=r[e]}return t}if(v(e)||y(e))return e}const L=/;(?![^(]*\))/g,Q=/:([^]+)/,H=/\/\*[^]*?\*\//g;function F(e){const t={};return e.replace(H,"").split(L).forEach((e=>{if(e){const n=e.split(Q);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function W(e){let t="";if(v(e))t=e;else if(h(e))for(let n=0;n<e.length;n++){const o=W(e[n]);o&&(t+=o+" ")}else if(y(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const V=n("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Z(e){return!!e||""===e}const X=e=>v(e)?e:null==e?"":h(e)||y(e)&&(e.toString===w||!m(e.toString))?JSON.stringify(e,Y,2):String(e),Y=(e,t)=>t&&t.__v_isRef?Y(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[K(t,o)+" =>"]=n,e)),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>K(e)))}:b(t)?K(t):!y(t)||h(t)||$(t)?t:String(t),K=(e,t="")=>{var n;return b(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let G,U;class q{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=G,!e&&G&&(this.index=(G.scopes||(G.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=G;try{return G=this,e()}finally{G=t}}}on(){G=this}off(){G=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function J(e){return new q(e)}function ee(){return G}function te(e){G&&G.cleanups.push(e)}class ne{constructor(e,t,n,o){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=3,this._trackId=0,this._runnings=0,this._queryings=0,this._depsLength=0,function(e,t=G){t&&t.active&&t.effects.push(e)}(this,o)}get dirty(){if(1===this._dirtyLevel){this._dirtyLevel=0,this._queryings++,ce();for(const e of this.deps)if(e.computed&&(e.computed.value,this._dirtyLevel>=2))break;ue(),this._queryings--}return this._dirtyLevel>=2}set dirty(e){this._dirtyLevel=e?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=le,t=U;try{return le=!0,U=this,this._runnings++,oe(this),this.fn()}finally{re(this),this._runnings--,U=t,le=e}}stop(){var e;this.active&&(oe(this),re(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function oe(e){e._trackId++,e._depsLength=0}function re(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ie(e.deps[t],e);e.deps.length=e._depsLength}}function ie(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}let le=!0,ae=0;const se=[];function ce(){se.push(le),le=!1}function ue(){const e=se.pop();le=void 0===e||e}function de(){ae++}function pe(){for(ae--;!ae&&fe.length;)fe.shift()()}function he(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&ie(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const fe=[];function ge(e,t,n){de();for(const o of e.keys())if((o.allowRecurse||!o._runnings)&&o._dirtyLevel<t&&(!o._runnings||2!==t)){const e=o._dirtyLevel;o._dirtyLevel=t,0!==e||o._queryings&&2===t||(o.trigger(),o.scheduler&&fe.push(o.scheduler))}pe()}const me=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},ve=new WeakMap,be=Symbol(""),ye=Symbol("");function Oe(e,t,n){if(le&&U){let t=ve.get(e);t||ve.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=me((()=>t.delete(n)))),he(U,o)}}function we(e,t,n,o,r,i){const l=ve.get(e);if(!l)return;let a=[];if("clear"===t)a=[...l.values()];else if("length"===n&&h(e)){const e=Number(o);l.forEach(((t,n)=>{("length"===n||!b(n)&&n>=e)&&a.push(t)}))}else switch(void 0!==n&&a.push(l.get(n)),t){case"add":h(e)?S(n)&&a.push(l.get("length")):(a.push(l.get(be)),f(e)&&a.push(l.get(ye)));break;case"delete":h(e)||(a.push(l.get(be)),f(e)&&a.push(l.get(ye)));break;case"set":f(e)&&a.push(l.get(be))}de();for(const s of a)s&&ge(s,3);pe()}const xe=n("__proto__,__v_isRef,__isVue"),$e=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(b)),Se=Ce();function Ce(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=pt(this);for(let t=0,r=this.length;t<r;t++)Oe(n,0,t+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(pt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){ce(),de();const n=pt(this)[t].apply(this,e);return pe(),ue(),n}})),e}function ke(e){const t=pt(this);return Oe(t,0,e),t.hasOwnProperty(e)}class Pe{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 i=h(e);if(!o){if(i&&p(Se,t))return Reflect.get(Se,t,n);if("hasOwnProperty"===t)return ke}const l=Reflect.get(e,t,n);return(b(t)?$e.has(t):xe(t))?l:(o||Oe(e,0,t),r?l:yt(l)?i&&S(t)?l:l.value:y(l)?o?lt(l):it(l):l)}}class Me extends Pe{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._shallow){const t=ct(r);if(ut(n)||ct(n)||(r=pt(r),n=pt(n)),!h(e)&&yt(r)&&!yt(n))return!t&&(r.value=n,!0)}const i=h(e)&&S(t)?Number(t)<e.length:p(e,t),l=Reflect.set(e,t,n,o);return e===pt(o)&&(i?R(n,r)&&we(e,"set",t,n):we(e,"add",t,n)),l}deleteProperty(e,t){const n=p(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&we(e,"delete",t,void 0),o}has(e,t){const n=Reflect.has(e,t);return b(t)&&$e.has(t)||Oe(e,0,t),n}ownKeys(e){return Oe(e,0,h(e)?"length":be),Reflect.ownKeys(e)}}class Te extends Pe{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Ie=new Me,Ee=new Te,Ae=new Me(!0),Re=e=>e,De=e=>Reflect.getPrototypeOf(e);function je(e,t,n=!1,o=!1){const r=pt(e=e.__v_raw),i=pt(t);n||(R(t,i)&&Oe(r,0,t),Oe(r,0,i));const{has:l}=De(r),a=o?Re:n?gt:ft;return l.call(r,t)?a(e.get(t)):l.call(r,i)?a(e.get(i)):void(e!==r&&e.get(t))}function Be(e,t=!1){const n=this.__v_raw,o=pt(n),r=pt(e);return t||(R(e,r)&&Oe(o,0,e),Oe(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&&Oe(pt(e),0,be),Reflect.get(e,"size",e)}function ze(e){e=pt(e);const t=pt(this);return De(t).has.call(t,e)||(t.add(e),we(t,"add",e,e)),this}function _e(e,t){t=pt(t);const n=pt(this),{has:o,get:r}=De(n);let i=o.call(n,e);i||(e=pt(e),i=o.call(n,e));const l=r.call(n,e);return n.set(e,t),i?R(t,l)&&we(n,"set",e,t):we(n,"add",e,t),this}function Le(e){const t=pt(this),{has:n,get:o}=De(t);let r=n.call(t,e);r||(e=pt(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&we(t,"delete",e,void 0),i}function Qe(){const e=pt(this),t=0!==e.size,n=e.clear();return t&&we(e,"clear",void 0,void 0),n}function He(e,t){return function(n,o){const r=this,i=r.__v_raw,l=pt(i),a=t?Re:e?gt:ft;return!e&&Oe(l,0,be),i.forEach(((e,t)=>n.call(o,a(e),a(t),r)))}}function Fe(e,t,n){return function(...o){const r=this.__v_raw,i=pt(r),l=f(i),a="entries"===e||e===Symbol.iterator&&l,s="keys"===e&&l,c=r[e](...o),u=n?Re:t?gt:ft;return!t&&Oe(i,0,s?ye:be),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function We(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Ve(){const e={get(e){return je(this,e)},get size(){return Ne(this)},has:Be,add:ze,set:_e,delete:Le,clear:Qe,forEach:He(!1,!1)},t={get(e){return je(this,e,!1,!0)},get size(){return Ne(this)},has:Be,add:ze,set:_e,delete:Le,clear:Qe,forEach:He(!1,!0)},n={get(e){return je(this,e,!0)},get size(){return Ne(this,!0)},has(e){return Be.call(this,e,!0)},add:We("add"),set:We("set"),delete:We("delete"),clear:We("clear"),forEach:He(!0,!1)},o={get(e){return je(this,e,!0,!0)},get size(){return Ne(this,!0)},has(e){return Be.call(this,e,!0)},add:We("add"),set:We("set"),delete:We("delete"),clear:We("clear"),forEach:He(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=Fe(r,!1,!1),n[r]=Fe(r,!0,!1),t[r]=Fe(r,!1,!0),o[r]=Fe(r,!0,!0)})),[e,n,t,o]}const[Ze,Xe,Ye,Ke]=Ve();function Ge(e,t){const n=t?e?Ke:Ye:e?Xe:Ze;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(p(n,o)&&o in t?n:t,o,r)}const Ue={get:Ge(!1,!1)},qe={get:Ge(!1,!0)},Je={get:Ge(!0,!1)},et=new WeakMap,tt=new WeakMap,nt=new WeakMap,ot=new WeakMap;function rt(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>x(e).slice(8,-1))(e))}function it(e){return ct(e)?e:at(e,!1,Ie,Ue,et)}function lt(e){return at(e,!0,Ee,Je,nt)}function at(e,t,n,o,r){if(!y(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const l=rt(e);if(0===l)return e;const a=new Proxy(e,2===l?o:n);return r.set(e,a),a}function st(e){return ct(e)?st(e.__v_raw):!(!e||!e.__v_isReactive)}function ct(e){return!(!e||!e.__v_isReadonly)}function ut(e){return!(!e||!e.__v_isShallow)}function dt(e){return st(e)||ct(e)}function pt(e){const t=e&&e.__v_raw;return t?pt(t):e}function ht(e){return j(e,"__v_skip",!0),e}const ft=e=>y(e)?it(e):e,gt=e=>y(e)?lt(e):e;class mt{constructor(e,t,n,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ne((()=>e(this._value)),(()=>bt(this,1))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=pt(this);return vt(e),e._cacheable&&!e.effect.dirty||R(e._value,e._value=e.effect.run())&&bt(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function vt(e){le&&U&&(e=pt(e),he(U,e.dep||(e.dep=me((()=>e.dep=void 0),e instanceof mt?e:void 0))))}function bt(e,t=3,n){const o=(e=pt(e)).dep;o&&ge(o,t)}function yt(e){return!(!e||!0!==e.__v_isRef)}function Ot(e){return xt(e,!1)}function wt(e){return xt(e,!0)}function xt(e,t){return yt(e)?e:new $t(e,t)}class $t{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:pt(e),this._value=t?e:ft(e)}get value(){return vt(this),this._value}set value(e){const t=this.__v_isShallow||ut(e)||ct(e);e=t?e:pt(e),R(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:ft(e),bt(this,3))}}function St(e){bt(e,3)}function Ct(e){return yt(e)?e.value:e}const kt={get:(e,t,n)=>Ct(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return yt(r)&&!yt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Pt(e){return st(e)?e:new Proxy(e,kt)}function Mt(e){const t=h(e)?new Array(e.length):{};for(const n in e)t[n]=At(e,n);return t}class Tt{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=pt(this._object),t=this._key,null==(n=ve.get(e))?void 0:n.get(t);var e,t,n}}class It{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Et(e,t,n){return yt(e)?e:m(e)?new It(e):y(e)&&arguments.length>1?At(e,t,n):Ot(e)}function At(e,t,n){const o=e[t];return yt(o)?o:new Tt(e,t,n)}function Rt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){jt(i,t,n)}return r}function Dt(e,t,n,o){if(m(e)){const r=Rt(e,t,n,o);return r&&O(r)&&r.catch((e=>{jt(e,t,n)})),r}const r=[];for(let i=0;i<e.length;i++)r.push(Dt(e[i],t,n,o));return r}function jt(e,t,n,o=!0){if(t&&t.vnode,t){let o=t.parent;const r=t.proxy,i=`https://vuejs.org/errors/#runtime-${n}`;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,i))return;o=o.parent}const l=t.appContext.config.errorHandler;if(l)return void Rt(l,null,10,[e,r,i])}}let Bt=!1,Nt=!1;const zt=[];let _t=0;const Lt=[];let Qt=null,Ht=0;const Ft=Promise.resolve();let Wt=null;function Vt(e){const t=Wt||Ft;return e?t.then(this?e.bind(this):e):t}function Zt(e){zt.length&&zt.includes(e,Bt&&e.allowRecurse?_t+1:_t)||(null==e.id?zt.push(e):zt.splice(function(e){let t=_t+1,n=zt.length;for(;t<n;){const o=t+n>>>1,r=zt[o],i=Gt(r);i<e||i===e&&r.pre?t=o+1:n=o}return t}(e.id),0,e),Xt())}function Xt(){Bt||Nt||(Nt=!0,Wt=Ft.then(qt))}function Yt(e,t,n=(Bt?_t+1:0)){for(;n<zt.length;n++){const t=zt[n];if(t&&t.pre){if(e&&t.id!==e.uid)continue;zt.splice(n,1),n--,t()}}}function Kt(e){if(Lt.length){const e=[...new Set(Lt)];if(Lt.length=0,Qt)return void Qt.push(...e);for(Qt=e,Qt.sort(((e,t)=>Gt(e)-Gt(t))),Ht=0;Ht<Qt.length;Ht++)Qt[Ht]();Qt=null,Ht=0}}const Gt=e=>null==e.id?1/0:e.id,Ut=(e,t)=>{const n=Gt(e)-Gt(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function qt(e){Nt=!1,Bt=!0,zt.sort(Ut);try{for(_t=0;_t<zt.length;_t++){const e=zt[_t];e&&!1!==e.active&&Rt(e,null,14)}}finally{_t=0,zt.length=0,Kt(),Bt=!1,Wt=null,(zt.length||Lt.length)&&qt()}}function Jt(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o;let i=n;const l=t.startsWith("update:"),a=l&&t.slice(7);if(a&&a in r){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:t,trim:l}=r[e]||o;l&&(i=n.map((e=>v(e)?e.trim():e))),t&&(i=n.map(B))}let s,c=r[s=A(t)]||r[s=A(M(t))];!c&&l&&(c=r[s=A(I(t))]),c&&Dt(c,e,6,i);const u=r[s+"Once"];if(u){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,Dt(u,e,6,i)}}function en(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let l={},a=!1;if(!m(e)){const o=e=>{const n=en(e,t,!0);n&&(a=!0,c(l,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||a?(h(i)?i.forEach((e=>l[e]=null)):c(l,i),y(e)&&o.set(e,l),l):(y(e)&&o.set(e,null),null)}function tn(e,t){return!(!e||!a(t))&&(t=t.slice(2).replace(/Once$/,""),p(e,t[0].toLowerCase()+t.slice(1))||p(e,I(t))||p(e,t))}let nn=null,on=null;function rn(e){const t=nn;return nn=e,on=e&&e.type.__scopeId||null,t}function ln(e){on=e}function an(){on=null}function sn(e,t=nn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&fr(-1);const r=rn(t);let i;try{i=e(...n)}finally{rn(r),o._d&&fr(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function cn(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[l],slots:a,attrs:c,emit:u,render:d,renderCache:p,data:h,setupState:f,ctx:g,inheritAttrs:m}=e;let v,b;const y=rn(e);try{if(4&n.shapeFlag){const e=r||o,t=e;v=Mr(d.call(t,e,p,i,f,h,g)),b=c}else{const e=t;v=Mr(e.length>1?e(i,{attrs:c,slots:a,emit:u}):e(i,null)),b=t.props?c:un(c)}}catch(w){ur.length=0,jt(w,e,1),v=Sr(sr)}let O=v;if(b&&!1!==m){const e=Object.keys(b),{shapeFlag:t}=O;e.length&&7&t&&(l&&e.some(s)&&(b=dn(b,l)),O=Cr(O,b))}return n.dirs&&(O=Cr(O),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&(O.transition=n.transition),v=O,rn(y),v}const un=e=>{let t;for(const n in e)("class"===n||"style"===n||a(n))&&((t||(t={}))[n]=e[n]);return t},dn=(e,t)=>{const n={};for(const o in e)s(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function pn(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!tn(n,i))return!0}return!1}const hn="components";function fn(e,t){return mn(hn,e,!0,t)||e}const gn=Symbol.for("v-ndc");function mn(e,t,n=!0,o=!1){const r=nn||Dr;if(r){const n=r.type;if(e===hn){const e=Zr(n,!1);if(e&&(e===t||e===M(t)||e===E(M(t))))return n}const i=vn(r[e]||n[e],t)||vn(r.appContext[e],t);return!i&&o?n:i}}function vn(e,t){return e&&(e[t]||e[M(t)]||e[E(M(t))])}const bn=Symbol.for("v-scx");function yn(e,t){return xn(e,null,t)}const On={};function wn(e,t,n){return xn(e,t,n)}function xn(e,t,{immediate:n,deep:r,flush:l,once:a,onTrack:s,onTrigger:c}=o){if(t&&a){const e=t;t=(...t)=>{e(...t),k()}}const d=Dr,p=e=>!0===r?e:Cn(e,!1===r?1:void 0);let f,g,v=!1,b=!1;if(yt(e)?(f=()=>e.value,v=ut(e)):st(e)?(f=()=>p(e),v=!0):h(e)?(b=!0,v=e.some((e=>st(e)||ut(e))),f=()=>e.map((e=>yt(e)?e.value:st(e)?p(e):m(e)?Rt(e,d,2):void 0))):f=m(e)?t?()=>Rt(e,d,2):()=>(g&&g(),Dt(e,d,3,[O])):i,t&&r){const e=f;f=()=>Cn(e())}let y,O=e=>{g=S.onStop=()=>{Rt(e,d,4),g=S.onStop=void 0}};if(Qr){if(O=i,t?n&&Dt(t,d,3,[f(),b?[]:void 0,O]):f(),"sync"!==l)return i;{const e=Ao(bn);y=e.__watcherHandles||(e.__watcherHandles=[])}}let w=b?new Array(e.length).fill(On):On;const x=()=>{if(S.active&&S.dirty)if(t){const e=S.run();(r||v||(b?e.some(((e,t)=>R(e,w[t]))):R(e,w)))&&(g&&g(),Dt(t,d,3,[e,w===On?void 0:b&&w[0]===On?[]:w,O]),w=e)}else S.run()};let $;x.allowRecurse=!!t,"sync"===l?$=x:"post"===l?$=()=>Xo(x,d&&d.suspense):(x.pre=!0,d&&(x.id=d.uid),$=()=>Zt(x));const S=new ne(f,i,$),C=ee(),k=()=>{S.stop(),C&&u(C.effects,S)};return t?n?x():w=S.run():"post"===l?Xo(S.run.bind(S),d&&d.suspense):S.run(),y&&y.push(k),k}function $n(e,t,n){const o=this.proxy,r=v(e)?e.includes(".")?Sn(o,e):()=>o[e]:e.bind(o,o);let i;m(t)?i=t:(i=t.handler,n=t);const l=Dr;zr(this);const a=xn(r,i.bind(o),n);return l?zr(l):_r(),a}function Sn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Cn(e,t,n=0,o){if(!y(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if((o=o||new Set).has(e))return e;if(o.add(e),yt(e))Cn(e.value,t,n,o);else if(h(e))for(let r=0;r<e.length;r++)Cn(e[r],t,n,o);else if(g(e)||f(e))e.forEach((e=>{Cn(e,t,n,o)}));else if($(e))for(const r in e)Cn(e[r],t,n,o);return e}function kn(e,t){const n=nn;if(null===n)return e;const r=Vr(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[e,n,a,s=o]=t[l];e&&(m(e)&&(e={mounted:e,updated:e}),e.deep&&Cn(n),i.push({dir:e,instance:r,value:n,oldValue:void 0,arg:a,modifiers:s}))}return e}function Pn(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let l=0;l<r.length;l++){const a=r[l];i&&(a.oldValue=i[l].value);let s=a.dir[o];s&&(ce(),Dt(s,n,8,[e.el,a,e,t]),ue())}}const Mn=Symbol("_leaveCb"),Tn=Symbol("_enterCb");function In(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Gn((()=>{e.isMounted=!0})),Jn((()=>{e.isUnmounting=!0})),e}const En=[Function,Array],An={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:En,onEnter:En,onAfterEnter:En,onEnterCancelled:En,onBeforeLeave:En,onLeave:En,onAfterLeave:En,onLeaveCancelled:En,onBeforeAppear:En,onAppear:En,onAfterAppear:En,onAppearCancelled:En},Rn={name:"BaseTransition",props:An,setup(e,{slots:t}){const n=jr(),o=In();let r;return()=>{const i=t.default&&_n(t.default(),!0);if(!i||!i.length)return;let l=i[0];if(i.length>1)for(const e of i)if(e.type!==sr){l=e;break}const a=pt(e),{mode:s}=a;if(o.isLeaving)return Bn(l);const c=Nn(l);if(!c)return Bn(l);const u=jn(c,a,o,n);zn(c,u);const d=n.subTree,p=d&&Nn(d);let h=!1;const{getTransitionKey:f}=c.type;if(f){const e=f();void 0===r?r=e:e!==r&&(r=e,h=!0)}if(p&&p.type!==sr&&(!yr(c,p)||h)){const e=jn(p,a,o,n);if(zn(p,e),"out-in"===s)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Bn(l);"in-out"===s&&c.type!==sr&&(e.delayLeave=(e,t,n)=>{Dn(o,p)[String(p.key)]=p,e[Mn]=()=>{t(),e[Mn]=void 0,delete u.delayedLeave},u.delayedLeave=n})}return l}}};function Dn(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 jn(e,t,n,o){const{appear:r,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:s,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:m,onAppear:v,onAfterAppear:b,onAppearCancelled:y}=t,O=String(e.key),w=Dn(n,e),x=(e,t)=>{e&&Dt(e,o,9,t)},$=(e,t)=>{const n=t[1];x(e,t),h(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},S={mode:i,persisted:l,beforeEnter(t){let o=a;if(!n.isMounted){if(!r)return;o=m||a}t[Mn]&&t[Mn](!0);const i=w[O];i&&yr(e,i)&&i.el[Mn]&&i.el[Mn](),x(o,[t])},enter(e){let t=s,o=c,i=u;if(!n.isMounted){if(!r)return;t=v||s,o=b||c,i=y||u}let l=!1;const a=e[Tn]=t=>{l||(l=!0,x(t?i:o,[e]),S.delayedLeave&&S.delayedLeave(),e[Tn]=void 0)};t?$(t,[e,a]):a()},leave(t,o){const r=String(e.key);if(t[Tn]&&t[Tn](!0),n.isUnmounting)return o();x(d,[t]);let i=!1;const l=t[Mn]=n=>{i||(i=!0,o(),x(n?g:f,[t]),t[Mn]=void 0,w[r]===e&&delete w[r])};w[r]=e,p?$(p,[t,l]):l()},clone:e=>jn(e,t,n,o)};return S}function Bn(e){if(Hn(e))return(e=Cr(e)).children=null,e}function Nn(e){return Hn(e)?e.children?e.children[0]:void 0:e}function zn(e,t){6&e.shapeFlag&&e.component?zn(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 _n(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let l=e[i];const a=null==n?l.key:String(n)+String(null!=l.key?l.key:i);l.type===lr?(128&l.patchFlag&&r++,o=o.concat(_n(l.children,t,a))):(t||l.type!==sr)&&o.push(null!=a?Cr(l,{key:a}):l)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}
/*! #__NO_SIDE_EFFECTS__ */function Ln(e,t){return m(e)?(()=>c({name:e.name},t,{setup:e}))():e}const Qn=e=>!!e.type.__asyncLoader,Hn=e=>e.type.__isKeepAlive;function Fn(e,t){Vn(e,"a",t)}function Wn(e,t){Vn(e,"da",t)}function Vn(e,t,n=Dr){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Xn(t,o,n),n){let e=n.parent;for(;e&&e.parent;)Hn(e.parent.vnode)&&Zn(o,t,n,e),e=e.parent}}function Zn(e,t,n,o){const r=Xn(t,e,o,!0);eo((()=>{u(o[t],r)}),n)}function Xn(e,t,n=Dr,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;ce(),zr(n);const r=Dt(t,n,e,o);return _r(),ue(),r});return o?r.unshift(i):r.push(i),i}}const Yn=e=>(t,n=Dr)=>(!Qr||"sp"===e)&&Xn(e,((...e)=>t(...e)),n),Kn=Yn("bm"),Gn=Yn("m"),Un=Yn("bu"),qn=Yn("u"),Jn=Yn("bum"),eo=Yn("um"),to=Yn("sp"),no=Yn("rtg"),oo=Yn("rtc");function ro(e,t=Dr){Xn("ec",e,t)}function io(e,t,n,o){let r;const i=n&&n[o];if(h(e)||v(e)){r=new Array(e.length);for(let n=0,o=e.length;n<o;n++)r[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,i&&i[n])}else if(y(e))if(e[Symbol.iterator])r=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,l=n.length;o<l;o++){const l=n[o];r[o]=t(e[l],l,o,i&&i[o])}}else r=[];return n&&(n[o]=r),r}function lo(e,t,n={},o,r){if(nn.isCE||nn.parent&&Qn(nn.parent)&&nn.parent.isCE)return"default"!==t&&(n.name=t),Sr("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),pr();const l=i&&ao(i(n)),a=vr(lr,{key:n.key||l&&l.key||`_${t}`},l||(o?o():[]),l&&1===e._?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function ao(e){return e.some((e=>!br(e)||e.type!==sr&&!(e.type===lr&&!ao(e.children))))?e:null}const so=e=>e?Lr(e)?Vr(e)||e.proxy:so(e.parent):null,co=c(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=>so(e.parent),$root:e=>so(e.root),$emit:e=>e.emit,$options:e=>yo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Zt(e.update)}),$nextTick:e=>e.n||(e.n=Vt.bind(e.proxy)),$watch:e=>$n.bind(e)}),uo=(e,t)=>e!==o&&!e.__isScriptSetup&&p(e,t),po={get({_:e},t){const{ctx:n,setupState:r,data:i,props:l,accessCache:a,type:s,appContext:c}=e;let u;if("$"!==t[0]){const s=a[t];if(void 0!==s)switch(s){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return l[t]}else{if(uo(r,t))return a[t]=1,r[t];if(i!==o&&p(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&p(u,t))return a[t]=3,l[t];if(n!==o&&p(n,t))return a[t]=4,n[t];go&&(a[t]=0)}}const d=co[t];let h,f;return d?("$attrs"===t&&Oe(e,0,t),d(e)):(h=s.__cssModules)&&(h=h[t])?h:n!==o&&p(n,t)?(a[t]=4,n[t]):(f=c.config.globalProperties,p(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:l}=e;return uo(i,t)?(i[t]=n,!0):r!==o&&p(r,t)?(r[t]=n,!0):!(p(e.props,t)||"$"===t[0]&&t.slice(1)in e||(l[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:l}},a){let s;return!!n[a]||e!==o&&p(e,a)||uo(t,a)||(s=l[0])&&p(s,a)||p(r,a)||p(co,a)||p(i.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:p(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ho(){return function(){const e=jr();return e.setupContext||(e.setupContext=Wr(e))}().attrs}function fo(e){return h(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let go=!0;function mo(e){const t=yo(e),n=e.proxy,o=e.ctx;go=!1,t.beforeCreate&&vo(t.beforeCreate,e,"bc");const{data:r,computed:l,methods:a,watch:s,provide:c,inject:u,created:d,beforeMount:p,mounted:f,beforeUpdate:g,updated:v,activated:b,deactivated:O,beforeDestroy:w,beforeUnmount:x,destroyed:$,unmounted:S,render:C,renderTracked:k,renderTriggered:P,errorCaptured:M,serverPrefetch:T,expose:I,inheritAttrs:E,components:A,directives:R,filters:D}=t;if(u&&function(e,t,n=i){h(e)&&(e=$o(e));for(const o in e){const n=e[o];let r;r=y(n)?"default"in n?Ao(n.from||o,n.default,!0):Ao(n.from||o):Ao(n),yt(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[o]=r}}(u,o,null),a)for(const i in a){const e=a[i];m(e)&&(o[i]=e.bind(n))}if(r){const t=r.call(n,n);y(t)&&(e.data=it(t))}if(go=!0,l)for(const h in l){const e=l[h],t=m(e)?e.bind(n,n):m(e.get)?e.get.bind(n,n):i,r=!m(e)&&m(e.set)?e.set.bind(n):i,a=Xr({get:t,set:r});Object.defineProperty(o,h,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(s)for(const i in s)bo(s[i],o,n,i);if(c){const e=m(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{Eo(t,e[t])}))}function j(e,t){h(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&vo(d,e,"c"),j(Kn,p),j(Gn,f),j(Un,g),j(qn,v),j(Fn,b),j(Wn,O),j(ro,M),j(oo,k),j(no,P),j(Jn,x),j(eo,S),j(to,T),h(I))if(I.length){const t=e.exposed||(e.exposed={});I.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});C&&e.render===i&&(e.render=C),null!=E&&(e.inheritAttrs=E),A&&(e.components=A),R&&(e.directives=R)}function vo(e,t,n){Dt(h(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function bo(e,t,n,o){const r=o.includes(".")?Sn(n,o):()=>n[o];if(v(e)){const n=t[e];m(n)&&wn(r,n)}else if(m(e))wn(r,e.bind(n));else if(y(e))if(h(e))e.forEach((e=>bo(e,t,n,o)));else{const o=m(e.handler)?e.handler.bind(n):t[e.handler];m(o)&&wn(r,o,e)}}function yo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:r.length||n||o?(s={},r.length&&r.forEach((e=>Oo(s,e,l,!0))),Oo(s,t,l)):s=t,y(t)&&i.set(t,s),s}function Oo(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Oo(e,i,n,!0),r&&r.forEach((t=>Oo(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:xo,props:ko,emits:ko,methods:Co,computed:Co,beforeCreate:So,created:So,beforeMount:So,mounted:So,beforeUpdate:So,updated:So,beforeDestroy:So,beforeUnmount:So,destroyed:So,unmounted:So,activated:So,deactivated:So,errorCaptured:So,serverPrefetch:So,components:Co,directives:Co,watch:function(e,t){if(!e)return t;if(!t)return e;const n=c(Object.create(null),e);for(const o in t)n[o]=So(e[o],t[o]);return n},provide:xo,inject:function(e,t){return Co($o(e),$o(t))}};function xo(e,t){return t?e?function(){return c(m(e)?e.call(this,this):e,m(t)?t.call(this,this):t)}:t:e}function $o(e){if(h(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function So(e,t){return e?[...new Set([].concat(e,t))]:t}function Co(e,t){return e?c(Object.create(null),e,t):t}function ko(e,t){return e?h(e)&&h(t)?[...new Set([...e,...t])]:c(Object.create(null),fo(e),fo(null!=t?t:{})):t}function Po(){return{app:null,config:{isNativeTag:l,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Mo=0;function To(e,t){return function(n,o=null){m(n)||(n=c({},n)),null==o||y(o)||(o=null);const r=Po(),i=new WeakSet;let l=!1;const a=r.app={_uid:Mo++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:Kr,get config(){return r.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&m(e.install)?(i.add(e),e.install(a,...t)):m(e)&&(i.add(e),e(a,...t))),a),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),a),component:(e,t)=>t?(r.components[e]=t,a):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,a):r.directives[e],mount(i,s,c){if(!l){const u=Sr(n,o);return u.appContext=r,!0===c?c="svg":!1===c&&(c=void 0),s&&t?t(u,i):e(u,i,c),l=!0,a._container=i,i.__vue_app__=a,Vr(u.component)||u.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,a),runWithContext(e){Io=a;try{return e()}finally{Io=null}}};return a}}let Io=null;function Eo(e,t){if(Dr){let n=Dr.provides;const o=Dr.parent&&Dr.parent.provides;o===n&&(n=Dr.provides=Object.create(o)),n[e]=t}}function Ao(e,t,n=!1){const o=Dr||nn;if(o||Io){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Io._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&m(t)?t.call(o&&o.proxy):t}}function Ro(e,t,n,o=!1){const r={},i={};j(i,Or,1),e.propsDefaults=Object.create(null),Do(e,t,r,i);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=o?r:at(r,!1,Ae,qe,tt):e.type.props?e.props=r:e.props=i,e.attrs=i}function Do(e,t,n,r){const[i,l]=e.propsOptions;let a,s=!1;if(t)for(let o in t){if(C(o))continue;const c=t[o];let u;i&&p(i,u=M(o))?l&&l.includes(u)?(a||(a={}))[u]=c:n[u]=c:tn(e.emitsOptions,o)||o in r&&c===r[o]||(r[o]=c,s=!0)}if(l){const t=pt(n),r=a||o;for(let o=0;o<l.length;o++){const a=l[o];n[a]=jo(i,t,a,r[a],e,!p(r,a))}}return s}function jo(e,t,n,o,r,i){const l=e[n];if(null!=l){const e=p(l,"default");if(e&&void 0===o){const e=l.default;if(l.type!==Function&&!l.skipFactory&&m(e)){const{propsDefaults:i}=r;n in i?o=i[n]:(zr(r),o=i[n]=e.call(null,t),_r())}else o=e}l[0]&&(i&&!e?o=!1:!l[1]||""!==o&&o!==I(n)||(o=!0))}return o}function Bo(e,t,n=!1){const i=t.propsCache,l=i.get(e);if(l)return l;const a=e.props,s={},u=[];let d=!1;if(!m(e)){const o=e=>{d=!0;const[n,o]=Bo(e,t,!0);c(s,n),o&&u.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!a&&!d)return y(e)&&i.set(e,r),r;if(h(a))for(let r=0;r<a.length;r++){const e=M(a[r]);No(e)&&(s[e]=o)}else if(a)for(const o in a){const e=M(o);if(No(e)){const t=a[o],n=s[e]=h(t)||m(t)?{type:t}:c({},t);if(n){const t=Lo(Boolean,n.type),o=Lo(String,n.type);n[0]=t>-1,n[1]=o<0||t<o,(t>-1||p(n,"default"))&&u.push(e)}}}const f=[s,u];return y(e)&&i.set(e,f),f}function No(e){return"$"!==e[0]}function zo(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function _o(e,t){return zo(e)===zo(t)}function Lo(e,t){return h(t)?t.findIndex((t=>_o(t,e))):m(t)&&_o(t,e)?0:-1}const Qo=e=>"_"===e[0]||"$stable"===e,Ho=e=>h(e)?e.map(Mr):[Mr(e)],Fo=(e,t,n)=>{if(t._n)return t;const o=sn(((...e)=>Ho(t(...e))),n);return o._c=!1,o},Wo=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Qo(r))continue;const n=e[r];if(m(n))t[r]=Fo(0,n,o);else if(null!=n){const e=Ho(n);t[r]=()=>e}}},Vo=(e,t)=>{const n=Ho(t);e.slots.default=()=>n};function Zo(e,t,n,r,i=!1){if(h(e))return void e.forEach(((e,o)=>Zo(e,t&&(h(t)?t[o]:t),n,r,i)));if(Qn(r)&&!i)return;const l=4&r.shapeFlag?Vr(r.component)||r.component.proxy:r.el,a=i?null:l,{i:s,r:c}=e,d=t&&t.r,f=s.refs===o?s.refs={}:s.refs,g=s.setupState;if(null!=d&&d!==c&&(v(d)?(f[d]=null,p(g,d)&&(g[d]=null)):yt(d)&&(d.value=null)),m(c))Rt(c,s,12,[a,f]);else{const t=v(c),o=yt(c);if(t||o){const r=()=>{if(e.f){const n=t?p(g,c)?g[c]:f[c]:c.value;i?h(n)&&u(n,l):h(n)?n.includes(l)||n.push(l):t?(f[c]=[l],p(g,c)&&(g[c]=f[c])):(c.value=[l],e.k&&(f[e.k]=c.value))}else t?(f[c]=a,p(g,c)&&(g[c]=a)):o&&(c.value=a,e.k&&(f[e.k]=a))};a?(r.id=-1,Xo(r,n)):r()}}}const Xo=function(e,t){var n;t&&t.pendingBranch?h(e)?t.effects.push(...e):t.effects.push(e):(h(n=e)?Lt.push(...n):Qt&&Qt.includes(n,n.allowRecurse?Ht+1:Ht)||Lt.push(n),Xt())};function Yo(e){return function(e,t){z().__VUE__=!0;const{insert:n,remove:l,patchProp:a,createElement:s,createText:u,createComment:d,setText:h,setElementText:f,parentNode:g,nextSibling:m,setScopeId:v=i,insertStaticContent:b}=e,y=(e,t,n,o=null,r=null,i=null,l=void 0,a=null,s=!!t.dynamicChildren)=>{if(e===t)return;e&&!yr(e,t)&&(o=te(e),K(e,r,i,!0),e=null),-2===t.patchFlag&&(s=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case ar:w(e,t,n,o);break;case sr:x(e,t,n,o);break;case cr:null==e&&$(t,n,o,l);break;case lr:_(e,t,n,o,r,i,l,a,s);break;default:1&d?P(e,t,n,o,r,i,l,a,s):6&d?L(e,t,n,o,r,i,l,a,s):(64&d||128&d)&&c.process(e,t,n,o,r,i,l,a,s,re)}null!=u&&r&&Zo(u,e&&e.ref,i,t||e,!t)},w=(e,t,o,r)=>{if(null==e)n(t.el=u(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&h(n,t.children)}},x=(e,t,o,r)=>{null==e?n(t.el=d(t.children||""),o,r):t.el=e.el},$=(e,t,n,o)=>{[e.el,e.anchor]=b(e.children,t,n,o,e.el,e.anchor)},S=({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=m(e),n(e,o,r),e=i;n(t,o,r)},k=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),l(e),e=n;l(t)},P=(e,t,n,o,r,i,l,a,s)=>{"svg"===t.type?l="svg":"math"===t.type&&(l="mathml"),null==e?T(t,n,o,r,i,l,a,s):R(e,t,r,i,l,a,s)},T=(e,t,o,r,i,l,c,u)=>{let d,p;const{props:h,shapeFlag:g,transition:m,dirs:v}=e;if(d=e.el=s(e.type,l,h&&h.is,h),8&g?f(d,e.children):16&g&&A(e.children,d,null,r,i,Ko(e,l),c,u),v&&Pn(e,null,r,"created"),E(d,e,e.scopeId,c,r),h){for(const t in h)"value"===t||C(t)||a(d,t,null,h[t],l,e.children,r,i,ee);"value"in h&&a(d,"value",null,h.value,l),(p=h.onVnodeBeforeMount)&&Er(p,r,e)}v&&Pn(e,null,r,"beforeMount");const b=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(i,m);b&&m.beforeEnter(d),n(d,t,o),((p=h&&h.onVnodeMounted)||b||v)&&Xo((()=>{p&&Er(p,r,e),b&&m.enter(d),v&&Pn(e,null,r,"mounted")}),i)},E=(e,t,n,o,r)=>{if(n&&v(e,n),o)for(let i=0;i<o.length;i++)v(e,o[i]);if(r&&t===r.subTree){const t=r.vnode;E(e,t,t.scopeId,t.slotScopeIds,r.parent)}},A=(e,t,n,o,r,i,l,a,s=0)=>{for(let c=s;c<e.length;c++){const s=e[c]=a?Tr(e[c]):Mr(e[c]);y(null,s,t,n,o,r,i,l,a)}},R=(e,t,n,r,i,l,s)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||o,g=t.props||o;let m;if(n&&Go(n,!1),(m=g.onVnodeBeforeUpdate)&&Er(m,n,t,e),p&&Pn(t,e,n,"beforeUpdate"),n&&Go(n,!0),d?B(e.dynamicChildren,d,c,n,r,Ko(t,i),l):s||V(e,t,c,null,n,r,Ko(t,i),l,!1),u>0){if(16&u)N(c,t,h,g,n,r,i);else if(2&u&&h.class!==g.class&&a(c,"class",null,g.class,i),4&u&&a(c,"style",h.style,g.style,i),8&u){const o=t.dynamicProps;for(let t=0;t<o.length;t++){const l=o[t],s=h[l],u=g[l];u===s&&"value"!==l||a(c,l,s,u,i,e.children,n,r,ee)}}1&u&&e.children!==t.children&&f(c,t.children)}else s||null!=d||N(c,t,h,g,n,r,i);((m=g.onVnodeUpdated)||p)&&Xo((()=>{m&&Er(m,n,t,e),p&&Pn(t,e,n,"updated")}),r)},B=(e,t,n,o,r,i,l)=>{for(let a=0;a<t.length;a++){const s=e[a],c=t[a],u=s.el&&(s.type===lr||!yr(s,c)||70&s.shapeFlag)?g(s.el):n;y(s,c,u,null,o,r,i,l,!0)}},N=(e,t,n,r,i,l,s)=>{if(n!==r){if(n!==o)for(const o in n)C(o)||o in r||a(e,o,n[o],null,s,t.children,i,l,ee);for(const o in r){if(C(o))continue;const c=r[o],u=n[o];c!==u&&"value"!==o&&a(e,o,u,c,s,t.children,i,l,ee)}"value"in r&&a(e,"value",n.value,r.value,s)}},_=(e,t,o,r,i,l,a,s,c)=>{const d=t.el=e?e.el:u(""),p=t.anchor=e?e.anchor:u("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(s=s?s.concat(g):g),null==e?(n(d,o,r),n(p,o,r),A(t.children,o,p,i,l,a,s,c)):h>0&&64&h&&f&&e.dynamicChildren?(B(e.dynamicChildren,f,o,i,l,a,s),(null!=t.key||i&&t===i.subTree)&&Uo(e,t,!0)):V(e,t,o,p,i,l,a,s,c)},L=(e,t,n,o,r,i,l,a,s)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,l,s):Q(t,n,o,r,i,l,s):H(e,t,s)},Q=(e,t,n,r,i,l,a)=>{const s=e.component=function(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||Ar,l={uid:Rr++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new q(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Bo(r,i),emitsOptions:en(r,i),emit:null,emitted:null,propsDefaults:o,inheritAttrs:r.inheritAttrs,ctx:o,data:o,props:o,attrs:o,slots:o,refs:o,setupState:o,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.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};return l.ctx={_:l},l.root=t?t.root:l,l.emit=Jt.bind(null,l),e.ce&&e.ce(l),l}(e,r,i);if(Hn(e)&&(s.ctx.renderer=re),function(e,t=!1){t&&Nr(t);const{props:n,children:o}=e.vnode,r=Lr(e);Ro(e,n,r,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=pt(t),j(t,"_",n)):Wo(t,e.slots={})}else e.slots={},t&&Vo(e,t);j(e.slots,Or,1)})(e,o);r&&function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ht(new Proxy(e.ctx,po));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?Wr(e):null;zr(e),ce();const r=Rt(o,e,0,[e.props,n]);if(ue(),_r(),O(r)){if(r.then(_r,_r),t)return r.then((n=>{Hr(e,n,t)})).catch((t=>{jt(t,e,0)}));e.asyncDep=r}else Hr(e,r,t)}else Fr(e)}(e,t);t&&Nr(!1)}(s),s.asyncDep){if(i&&i.registerDep(s,F),!e.el){const e=s.subTree=Sr(sr);x(null,e,t,n)}}else F(s,e,t,n,i,l,a)},H=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:l,children:a,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&s>=0))return!(!r&&!a||a&&a.$stable)||o!==l&&(o?!l||pn(o,l,c):!!l);if(1024&s)return!0;if(16&s)return o?pn(o,l,c):!!l;if(8&s){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(l[n]!==o[n]&&!tn(c,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void W(o,t,n);o.next=t,function(e){const t=zt.indexOf(e);t>_t&&zt.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},F=(e,t,n,o,r,l,a)=>{const s=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:i,vnode:c}=e;{const n=qo(e);if(n)return t&&(t.el=c.el,W(e,t,a)),void n.asyncDep.then((()=>{e.isUnmounted||s()}))}let u,d=t;Go(e,!1),t?(t.el=c.el,W(e,t,a)):t=c,n&&D(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&Er(u,i,t,c),Go(e,!0);const p=cn(e),h=e.subTree;e.subTree=p,y(h,p,g(h.el),te(h),e,r,l),t.el=p.el,null===d&&function({vnode:e,parent:t},n){if(n)for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,p.el),o&&Xo(o,r),(u=t.props&&t.props.onVnodeUpdated)&&Xo((()=>Er(u,i,t,c)),r)}else{let i;const{el:a,props:s}=t,{bm:c,m:u,parent:d}=e,p=Qn(t);if(Go(e,!1),c&&D(c),!p&&(i=s&&s.onVnodeBeforeMount)&&Er(i,d,t),Go(e,!0),a&&le){const n=()=>{e.subTree=cn(e),le(a,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=cn(e);y(null,i,n,o,e,r,l),t.el=i.el}if(u&&Xo(u,r),!p&&(i=s&&s.onVnodeMounted)){const e=t;Xo((()=>Er(i,d,e)),r)}(256&t.shapeFlag||d&&Qn(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Xo(e.a,r),e.isMounted=!0,t=n=o=null}},c=e.effect=new ne(s,i,(()=>Zt(u)),e.scope),u=e.update=()=>{c.dirty&&c.run()};u.id=e.uid,Go(e,!0),u()},W=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:l}}=e,a=pt(r),[s]=e.propsOptions;let c=!1;if(!(o||l>0)||16&l){let o;Do(e,t,r,i)&&(c=!0);for(const i in a)t&&(p(t,i)||(o=I(i))!==i&&p(t,o))||(s?!n||void 0===n[i]&&void 0===n[o]||(r[i]=jo(s,a,i,void 0,e,!0)):delete r[i]);if(i!==a)for(const e in i)t&&p(t,e)||(delete i[e],c=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let l=n[o];if(tn(e.emitsOptions,l))continue;const u=t[l];if(s)if(p(i,l))u!==i[l]&&(i[l]=u,c=!0);else{const t=M(l);r[t]=jo(s,a,t,u,e,!1)}else u!==i[l]&&(i[l]=u,c=!0)}}c&&we(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:i}=e;let l=!0,a=o;if(32&r.shapeFlag){const e=t._;e?n&&1===e?l=!1:(c(i,t),n||1!==e||delete i._):(l=!t.$stable,Wo(t,i)),a=t}else t&&(Vo(e,t),a={default:1});if(l)for(const o in i)Qo(o)||null!=a[o]||delete i[o]})(e,t.children,n),ce(),Yt(e),ue()},V=(e,t,n,o,r,i,l,a,s=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void X(c,d,n,o,r,i,l,a,s);if(256&p)return void Z(c,d,n,o,r,i,l,a,s)}8&h?(16&u&&ee(c,r,i),d!==c&&f(n,d)):16&u?16&h?X(c,d,n,o,r,i,l,a,s):ee(c,r,i,!0):(8&u&&f(n,""),16&h&&A(d,n,o,r,i,l,a,s))},Z=(e,t,n,o,i,l,a,s,c)=>{t=t||r;const u=(e=e||r).length,d=t.length,p=Math.min(u,d);let h;for(h=0;h<p;h++){const o=t[h]=c?Tr(t[h]):Mr(t[h]);y(e[h],o,n,null,i,l,a,s,c)}u>d?ee(e,i,l,!0,!1,p):A(t,n,o,i,l,a,s,c,p)},X=(e,t,n,o,i,l,a,s,c)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const o=e[u],r=t[u]=c?Tr(t[u]):Mr(t[u]);if(!yr(o,r))break;y(o,r,n,null,i,l,a,s,c),u++}for(;u<=p&&u<=h;){const o=e[p],r=t[h]=c?Tr(t[h]):Mr(t[h]);if(!yr(o,r))break;y(o,r,n,null,i,l,a,s,c),p--,h--}if(u>p){if(u<=h){const e=h+1,r=e<d?t[e].el:o;for(;u<=h;)y(null,t[u]=c?Tr(t[u]):Mr(t[u]),n,r,i,l,a,s,c),u++}}else if(u>h)for(;u<=p;)K(e[u],i,l,!0),u++;else{const f=u,g=u,m=new Map;for(u=g;u<=h;u++){const e=t[u]=c?Tr(t[u]):Mr(t[u]);null!=e.key&&m.set(e.key,u)}let v,b=0;const O=h-g+1;let w=!1,x=0;const $=new Array(O);for(u=0;u<O;u++)$[u]=0;for(u=f;u<=p;u++){const o=e[u];if(b>=O){K(o,i,l,!0);continue}let r;if(null!=o.key)r=m.get(o.key);else for(v=g;v<=h;v++)if(0===$[v-g]&&yr(o,t[v])){r=v;break}void 0===r?K(o,i,l,!0):($[r-g]=u+1,r>=x?x=r:w=!0,y(o,t[r],n,null,i,l,a,s,c),b++)}const S=w?function(e){const t=e.slice(),n=[0];let o,r,i,l,a;const s=e.length;for(o=0;o<s;o++){const s=e[o];if(0!==s){if(r=n[n.length-1],e[r]<s){t[o]=r,n.push(o);continue}for(i=0,l=n.length-1;i<l;)a=i+l>>1,e[n[a]]<s?i=a+1:l=a;s<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}($):r;for(v=S.length-1,u=O-1;u>=0;u--){const e=g+u,r=t[e],p=e+1<d?t[e+1].el:o;0===$[u]?y(null,r,n,p,i,l,a,s,c):w&&(v<0||u!==S[v]?Y(r,n,p,2):v--)}}},Y=(e,t,o,r,i=null)=>{const{el:l,type:a,transition:s,children:c,shapeFlag:u}=e;if(6&u)Y(e.component.subTree,t,o,r);else if(128&u)e.suspense.move(t,o,r);else if(64&u)a.move(e,t,o,re);else if(a!==lr)if(a!==cr)if(2!==r&&1&u&&s)if(0===r)s.beforeEnter(l),n(l,t,o),Xo((()=>s.enter(l)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=s,a=()=>n(l,t,o),c=()=>{e(l,(()=>{a(),i&&i()}))};r?r(l,a,c):c()}else n(l,t,o);else S(e,t,o);else{n(l,t,o);for(let e=0;e<c.length;e++)Y(c[e],t,o,r);n(e.anchor,t,o)}},K=(e,t,n,o=!1,r=!1)=>{const{type:i,props:l,ref:a,children:s,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=a&&Zo(a,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,f=!Qn(e);let g;if(f&&(g=l&&l.onVnodeBeforeUnmount)&&Er(g,t,e),6&u)J(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&Pn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,re,o):c&&(i!==lr||d>0&&64&d)?ee(c,t,n,!1,!0):(i===lr&&384&d||!r&&16&u)&&ee(s,t,n),o&&G(e)}(f&&(g=l&&l.onVnodeUnmounted)||h)&&Xo((()=>{g&&Er(g,t,e),h&&Pn(e,null,t,"unmounted")}),n)},G=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===lr)return void U(n,o);if(t===cr)return void k(e);const i=()=>{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,i);o?o(e.el,i,l):l()}else i()},U=(e,t)=>{let n;for(;e!==t;)n=m(e),l(e),e=n;l(t)},J=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:l,um:a}=e;o&&D(o),r.stop(),i&&(i.active=!1,K(l,e,t,n)),a&&Xo(a,t),Xo((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},ee=(e,t,n,o=!1,r=!1,i=0)=>{for(let l=i;l<e.length;l++)K(e[l],t,n,o,r)},te=e=>6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():m(e.anchor||e.el),oe=(e,t,n)=>{null==e?t._vnode&&K(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),Yt(),Kt(),t._vnode=e},re={p:y,um:K,m:Y,r:G,mt:Q,mc:A,pc:V,pbc:B,n:te,o:e};let ie,le;return t&&([ie,le]=t(re)),{render:oe,hydrate:ie,createApp:To(oe,ie)}}(e)}function Ko({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Go({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Uo(e,t,n=!1){const o=e.children,r=t.children;if(h(o)&&h(r))for(let i=0;i<o.length;i++){const e=o[i];let t=r[i];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=r[i]=Tr(r[i]),t.el=e.el),n||Uo(e,t)),t.type===ar&&(t.el=e.el)}}function qo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:qo(t)}const Jo=e=>e&&(e.disabled||""===e.disabled),er=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,tr=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,nr=(e,t)=>{const n=e&&e.to;return v(n)?t?t(n):null:n};function or(e,t,n,{o:{insert:o},m:r},i=2){0===i&&o(e.targetAnchor,t,n);const{el:l,anchor:a,shapeFlag:s,children:c,props:u}=e,d=2===i;if(d&&o(l,t,n),(!d||Jo(u))&&16&s)for(let p=0;p<c.length;p++)r(c[p],t,n,2);d&&o(a,t,n)}const rr={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,i,l,a,s,c){const{mc:u,pc:d,pbc:p,o:{insert:h,querySelector:f,createText:g,createComment:m}}=c,v=Jo(t.props);let{shapeFlag:b,children:y,dynamicChildren:O}=t;if(null==e){const e=t.el=g(""),c=t.anchor=g("");h(e,n,o),h(c,n,o);const d=t.target=nr(t.props,f),p=t.targetAnchor=g("");d&&(h(p,d),"svg"===l||er(d)?l="svg":("mathml"===l||tr(d))&&(l="mathml"));const m=(e,t)=>{16&b&&u(y,e,t,r,i,l,a,s)};v?m(n,c):d&&m(d,p)}else{t.el=e.el;const o=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Jo(e.props),m=g?n:u,b=g?o:h;if("svg"===l||er(u)?l="svg":("mathml"===l||tr(u))&&(l="mathml"),O?(p(e.dynamicChildren,O,m,r,i,l,a),Uo(e,t,!0)):s||d(e,t,m,b,r,i,l,a,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):or(t,n,o,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=nr(t.props,f);e&&or(t,e,null,c,0)}else g&&or(t,u,h,c,1)}ir(t)},remove(e,t,n,o,{um:r,o:{remove:i}},l){const{shapeFlag:a,children:s,anchor:c,targetAnchor:u,target:d,props:p}=e;if(d&&i(u),l&&i(c),16&a){const e=l||!Jo(p);for(let o=0;o<s.length;o++){const i=s[o];r(i,t,n,e,!!i.dynamicChildren)}}},move:or,hydrate:function(e,t,n,o,r,i,{o:{nextSibling:l,parentNode:a,querySelector:s}},c){const u=t.target=nr(t.props,s);if(u){const s=u._lpa||u.firstChild;if(16&t.shapeFlag)if(Jo(t.props))t.anchor=c(l(e),t,a(e),n,o,r,i),t.targetAnchor=s;else{t.anchor=l(e);let a=s;for(;a;)if(a=l(a),a&&8===a.nodeType&&"teleport anchor"===a.data){t.targetAnchor=a,u._lpa=t.targetAnchor&&l(t.targetAnchor);break}c(s,t,u,n,o,r,i)}ir(t)}return t.anchor&&l(t.anchor)}};function ir(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)1===n.nodeType&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const lr=Symbol.for("v-fgt"),ar=Symbol.for("v-txt"),sr=Symbol.for("v-cmt"),cr=Symbol.for("v-stc"),ur=[];let dr=null;function pr(e=!1){ur.push(dr=e?null:[])}let hr=1;function fr(e){hr+=e}function gr(e){return e.dynamicChildren=hr>0?dr||r:null,ur.pop(),dr=ur[ur.length-1]||null,hr>0&&dr&&dr.push(e),e}function mr(e,t,n,o,r,i){return gr($r(e,t,n,o,r,i,!0))}function vr(e,t,n,o,r){return gr(Sr(e,t,n,o,r,!0))}function br(e){return!!e&&!0===e.__v_isVNode}function yr(e,t){return e.type===t.type&&e.key===t.key}const Or="__vInternal",wr=({key:e})=>null!=e?e:null,xr=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?v(e)||yt(e)||m(e)?{i:nn,r:e,k:t,f:!!n}:e:null);function $r(e,t=null,n=null,o=0,r=null,i=(e===lr?0:1),l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wr(t),ref:t&&xr(t),scopeId:on,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:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:nn};return a?(Ir(s,n),128&i&&e.normalize(s)):n&&(s.shapeFlag|=v(n)?8:16),hr>0&&!l&&dr&&(s.patchFlag>0||6&i)&&32!==s.patchFlag&&dr.push(s),s}const Sr=function(e,t=null,n=null,o=0,r=null,i=!1){if(e&&e!==gn||(e=sr),br(e)){const o=Cr(e,t,!0);return n&&Ir(o,n),hr>0&&!i&&dr&&(6&o.shapeFlag?dr[dr.indexOf(e)]=o:dr.push(o)),o.patchFlag|=-2,o}var l;if(m(l=e)&&"__vccOpts"in l&&(e=e.__vccOpts),t){t=function(e){return e?dt(e)||Or in e?c({},e):e:null}(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=W(e)),y(n)&&(dt(n)&&!h(n)&&(n=c({},n)),t.style=_(n))}const a=v(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:y(e)?4:m(e)?2:0;return $r(e,t,n,o,r,a,i,!0)};function Cr(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:l}=e,s=t?function(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=W([t.class,o.class]));else if("style"===e)t.style=_([t.style,o.style]);else if(a(e)){const n=t[e],r=o[e];!r||n===r||h(n)&&n.includes(r)||(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=o[e])}return t}(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&wr(s),ref:t&&t.ref?n&&r?h(r)?r.concat(xr(t)):[r,xr(t)]:xr(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==lr?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Cr(e.ssContent),ssFallback:e.ssFallback&&Cr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function kr(e=" ",t=0){return Sr(ar,null,e,t)}function Pr(e="",t=!1){return t?(pr(),vr(sr,null,e)):Sr(sr,null,e)}function Mr(e){return null==e||"boolean"==typeof e?Sr(sr):h(e)?Sr(lr,null,e.slice()):"object"==typeof e?Tr(e):Sr(ar,null,String(e))}function Tr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Cr(e)}function Ir(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(h(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Ir(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Or in t?3===o&&nn&&(1===nn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=nn}}else m(t)?(t={default:t,_ctx:nn},n=32):(t=String(t),64&o?(n=16,t=[kr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Er(e,t,n,o=null){Dt(e,t,7,[n,o])}const Ar=Po();let Rr=0,Dr=null;const jr=()=>Dr||nn;let Br,Nr;{const e=z(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};Br=t("__VUE_INSTANCE_SETTERS__",(e=>Dr=e)),Nr=t("__VUE_SSR_SETTERS__",(e=>Qr=e))}const zr=e=>{Br(e),e.scope.on()},_r=()=>{Dr&&Dr.scope.off(),Br(null)};function Lr(e){return 4&e.vnode.shapeFlag}let Qr=!1;function Hr(e,t,n){m(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:y(t)&&(e.setupState=Pt(t)),Fr(e)}function Fr(e,t,n){const o=e.type;e.render||(e.render=o.render||i),zr(e),ce();try{mo(e)}finally{ue(),_r()}}function Wr(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)=>(Oe(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}function Vr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Pt(ht(e.exposed)),{get:(t,n)=>n in t?t[n]:n in co?co[n](e):void 0,has:(e,t)=>t in e||t in co}))}function Zr(e,t=!0){return m(e)?e.displayName||e.name:e.name||t&&e.__name}const Xr=(e,t)=>function(e,t,n=!1){let o,r;const l=m(e);return l?(o=e,r=i):(o=e.get,r=e.set),new mt(o,r,l||!r,n)}(e,0,Qr);function Yr(e,t,n){const o=arguments.length;return 2===o?y(t)&&!h(t)?br(t)?Sr(e,null,[t]):Sr(e,t):Sr(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&br(n)&&(n=[n]),Sr(e,t,n))}const Kr="3.4.5",Gr="undefined"!=typeof document?document:null,Ur=Gr&&Gr.createElement("template"),qr={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="svg"===t?Gr.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Gr.createElementNS("http://www.w3.org/1998/Math/MathML",e):Gr.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>Gr.createTextNode(e),createComment:e=>Gr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Gr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const l=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{Ur.innerHTML="svg"===o?`<svg>${e}</svg>`:"mathml"===o?`<math>${e}</math>`:e;const r=Ur.content;if("svg"===o||"mathml"===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]}},Jr="transition",ei="animation",ti=Symbol("_vtc"),ni=(e,{slots:t})=>Yr(Rn,ai(e),t);ni.displayName="Transition";const oi={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},ri=ni.props=c({},An,oi),ii=(e,t=[])=>{h(e)?e.forEach((e=>e(...t))):e&&e(...t)},li=e=>!!e&&(h(e)?e.some((e=>e.length>1)):e.length>1);function ai(e){const t={};for(const c in e)c in oi||(t[c]=e[c]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:s=i,appearActiveClass:u=l,appearToClass:d=a,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,g=function(e){if(null==e)return null;if(y(e))return[si(e.enter),si(e.leave)];{const t=si(e);return[t,t]}}(r),m=g&&g[0],v=g&&g[1],{onBeforeEnter:b,onEnter:O,onEnterCancelled:w,onLeave:x,onLeaveCancelled:$,onBeforeAppear:S=b,onAppear:C=O,onAppearCancelled:k=w}=t,P=(e,t,n)=>{ui(e,t?d:a),ui(e,t?u:l),n&&n()},M=(e,t)=>{e._isLeaving=!1,ui(e,p),ui(e,f),ui(e,h),t&&t()},T=e=>(t,n)=>{const r=e?C:O,l=()=>P(t,e,n);ii(r,[t,l]),di((()=>{ui(t,e?s:i),ci(t,e?d:a),li(r)||hi(t,o,m,l)}))};return c(t,{onBeforeEnter(e){ii(b,[e]),ci(e,i),ci(e,l)},onBeforeAppear(e){ii(S,[e]),ci(e,s),ci(e,u)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>M(e,t);ci(e,p),vi(),ci(e,h),di((()=>{e._isLeaving&&(ui(e,p),ci(e,f),li(x)||hi(e,o,v,n))})),ii(x,[e,n])},onEnterCancelled(e){P(e,!1),ii(w,[e])},onAppearCancelled(e){P(e,!0),ii(k,[e])},onLeaveCancelled(e){M(e),ii($,[e])}})}function si(e){const t=(e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t})(e);return t}function ci(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[ti]||(e[ti]=new Set)).add(t)}function ui(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[ti];n&&(n.delete(t),n.size||(e[ti]=void 0))}function di(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let pi=0;function hi(e,t,n,o){const r=e._endId=++pi,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:l,timeout:a,propCount:s}=fi(e,t);if(!l)return o();const c=l+"end";let u=0;const d=()=>{e.removeEventListener(c,p),i()},p=t=>{t.target===e&&++u>=s&&d()};setTimeout((()=>{u<s&&d()}),a+1),e.addEventListener(c,p)}function fi(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),r=o(`${Jr}Delay`),i=o(`${Jr}Duration`),l=gi(r,i),a=o(`${ei}Delay`),s=o(`${ei}Duration`),c=gi(a,s);let u=null,d=0,p=0;return t===Jr?l>0&&(u=Jr,d=l,p=i.length):t===ei?c>0&&(u=ei,d=c,p=s.length):(d=Math.max(l,c),u=d>0?l>c?Jr:ei:null,p=u?u===Jr?i.length:s.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===Jr&&/\b(transform|all)(,|$)/.test(o(`${Jr}Property`).toString())}}function gi(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>mi(t)+mi(e[n]))))}function mi(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function vi(){return document.body.offsetHeight}const bi=Symbol("_vod"),yi={beforeMount(e,{value:t},{transition:n}){e[bi]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Oi(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),Oi(e,!0),o.enter(e)):o.leave(e,(()=>{Oi(e,!1)})):Oi(e,t))},beforeUnmount(e,{value:t}){Oi(e,t)}};function Oi(e,t){e.style.display=t?e[bi]:"none"}const wi=Symbol(""),xi=/\s*!important$/;function $i(e,t,n){if(h(n))n.forEach((n=>$i(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Ci[t];if(n)return n;let o=M(t);if("filter"!==o&&o in e)return Ci[t]=o;o=E(o);for(let r=0;r<Si.length;r++){const n=Si[r]+o;if(n in e)return Ci[t]=n}return t}(e,t);xi.test(n)?e.setProperty(I(o),n.replace(xi,""),"important"):e[o]=n}}const Si=["Webkit","Moz","ms"],Ci={},ki="http://www.w3.org/1999/xlink",Pi=Symbol("_vei");function Mi(e,t,n,o,r=null){const i=e[Pi]||(e[Pi]={}),l=i[t];if(o&&l)l.value=o;else{const[n,a]=function(e){let t;if(Ti.test(e)){let n;for(t={};n=e.match(Ti);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):I(e.slice(2));return[n,t]}(t);if(o){const l=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Dt(function(e,t){if(h(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=Ii||(Ei.then((()=>Ii=0)),Ii=Date.now()),n}(o,r);!function(e,t,n,o){e.addEventListener(t,n,o)}(e,n,l,a)}else l&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,l,a),i[t]=void 0)}}const Ti=/(?:Once|Passive|Capture)$/;let Ii=0;const Ei=Promise.resolve(),Ai=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ri=new WeakMap,Di=new WeakMap,ji=Symbol("_moveCb"),Bi=Symbol("_enterCb"),Ni={name:"TransitionGroup",props:c({},ri,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=jr(),o=In();let r,i;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[ti];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 i=1===t.nodeType?t:t.parentNode;i.appendChild(o);const{hasTransform:l}=fi(o);return i.removeChild(o),l}(r[0].el,n.vnode.el,t))return;r.forEach(_i),r.forEach(Li);const o=r.filter(Qi);vi(),o.forEach((e=>{const n=e.el,o=n.style;ci(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n[ji]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n[ji]=null,ui(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const l=pt(e),a=ai(l);let s=l.tag||lr;r=i,i=t.default?_n(t.default()):[];for(let e=0;e<i.length;e++){const t=i[e];null!=t.key&&zn(t,jn(t,a,o,n))}if(r)for(let e=0;e<r.length;e++){const t=r[e];zn(t,jn(t,a,o,n)),Ri.set(t,t.el.getBoundingClientRect())}return Sr(s,null,i)}}},zi=Ni;function _i(e){const t=e.el;t[ji]&&t[ji](),t[Bi]&&t[Bi]()}function Li(e){Di.set(e,e.el.getBoundingClientRect())}function Qi(e){const t=Ri.get(e),n=Di.get(e),o=t.left-n.left,r=t.top-n.top;if(o||r){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${o}px,${r}px)`,t.transitionDuration="0s",e}}const Hi=["ctrl","shift","alt","meta"],Fi={stop:e=>e.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)=>Hi.some((n=>e[`${n}Key`]&&!t.includes(n)))},Wi=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e<t.length;e++){const o=Fi[t[e]];if(o&&o(n,t))return}return e(n,...o)})},Vi=c({patchProp:(e,t,n,o,r,i,l,c,u)=>{const d="svg"===r;"class"===t?function(e,t,n){const o=e[ti];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,d):"style"===t?function(e,t,n){const o=e.style,r=v(n);if(n&&!r){if(t&&!v(t))for(const e in t)null==n[e]&&$i(o,e,"");for(const e in n)$i(o,e,n[e])}else{const i=o.display;if(r){if(t!==n){const e=o[wi];e&&(n+=";"+e),o.cssText=n}}else t&&e.removeAttribute("style");bi in e&&(o.display=i)}}(e,n,o):a(t)?s(t)||Mi(e,t,0,o,l):("."===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&&Ai(t)&&m(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}return(!Ai(t)||!v(n))&&t in e}(e,t,o,d))?function(e,t,n,o,r,i,l){if("innerHTML"===t||"textContent"===t)return o&&l(o,r,i),void(e[t]=null==n?"":n);const a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){e._value=n;const o=null==n?"":n;return("OPTION"===a?e.getAttribute("value"):e.value)!==o&&(e.value=o),void(null==n&&e.removeAttribute(t))}let s=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=Z(n):null==n&&"string"===o?(n="",s=!0):"number"===o&&(n=0,s=!0)}try{e[t]=n}catch(c){}s&&e.removeAttribute(t)}(e,t,o,i,l,c,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(ki,t.slice(6,t.length)):e.setAttributeNS(ki,t,n);else{const o=V(t);null==n||o&&!Z(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,d))}},qr);let Zi;function Xi(){return Zi||(Zi=Yo(Vi))}const Yi=(...e)=>{Xi().render(...e)},Ki=(...e)=>{const t=Xi().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){return v(e)?document.querySelector(e):e}(e);if(!o)return;const r=t._component;m(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,function(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};
/*!
* pinia v2.1.7
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/
let Gi;const Ui=e=>Gi=e,qi=Symbol();function Ji(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var el,tl;(tl=el||(el={})).direct="direct",tl.patchObject="patch object",tl.patchFunction="patch function";const nl=()=>{};function ol(e,t,n,o=nl){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};return!n&&ee()&&te(r),r}function rl(e,...t){e.slice().forEach((e=>{e(...t)}))}const il=e=>e();function ll(e,t){e instanceof Map&&t instanceof Map&&t.forEach(((t,n)=>e.set(n,t))),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];Ji(r)&&Ji(o)&&e.hasOwnProperty(n)&&!yt(o)&&!st(o)?e[n]=ll(r,o):e[n]=o}return e}const al=Symbol(),{assign:sl}=Object;function cl(e,t,n={},o,r,i){let l;const a=sl({actions:{}},n),s={deep:!0};let c,u,d,p=[],h=[];const f=o.state.value[e];let g;function m(t){let n;c=u=!1,"function"==typeof t?(t(o.state.value[e]),n={type:el.patchFunction,storeId:e,events:d}):(ll(o.state.value[e],t),n={type:el.patchObject,payload:t,storeId:e,events:d});const r=g=Symbol();Vt().then((()=>{g===r&&(c=!0)})),u=!0,rl(p,n,o.state.value[e])}i||f||(o.state.value[e]={}),Ot({});const v=i?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{sl(e,t)}))}:nl;function b(t,n){return function(){Ui(o);const r=Array.from(arguments),i=[],l=[];let a;rl(h,{args:r,name:t,store:y,after:function(e){i.push(e)},onError:function(e){l.push(e)}});try{a=n.apply(this&&this.$id===e?this:y,r)}catch(s){throw rl(l,s),s}return a instanceof Promise?a.then((e=>(rl(i,e),e))).catch((e=>(rl(l,e),Promise.reject(e)))):(rl(i,a),a)}}const y=it({_p:o,$id:e,$onAction:ol.bind(null,h),$patch:m,$reset:v,$subscribe(t,n={}){const r=ol(p,t,n.detached,(()=>i())),i=l.run((()=>wn((()=>o.state.value[e]),(o=>{("sync"===n.flush?u:c)&&t({storeId:e,type:el.direct,events:d},o)}),sl({},s,n))));return r},$dispose:function(){l.stop(),p=[],h=[],o._s.delete(e)}});o._s.set(e,y);const O=(o._a&&o._a.runWithContext||il)((()=>o._e.run((()=>(l=J()).run(t)))));for(const $ in O){const t=O[$];if(yt(t)&&(!yt(x=t)||!x.effect)||st(t))i||(!f||Ji(w=t)&&w.hasOwnProperty(al)||(yt(t)?t.value=f[$]:ll(t,f[$])),o.state.value[e][$]=t);else if("function"==typeof t){const e=b($,t);O[$]=e,a.actions[$]=t}}var w,x;return sl(y,O),sl(pt(y),O),Object.defineProperty(y,"$state",{get:()=>o.state.value[e],set:e=>{m((t=>{sl(t,e)}))}}),o._p.forEach((e=>{sl(y,l.run((()=>e({store:y,app:o._a,pinia:o,options:a}))))})),f&&i&&n.hydrate&&n.hydrate(y.$state,f),c=!0,u=!0,y}function ul(e){return(ul="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 dl(e){var t=function(e,t){if("object"!=ul(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ul(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ul(t)?t:String(t)}function pl(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 hl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pl(Object(n),!0).forEach((function(t){var o,r,i;o=e,r=t,i=n[t],(r=dl(r))in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fl(){return fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},fl.apply(this,arguments)}const gl=Array.isArray,ml=e=>null!==e&&"object"==typeof e,vl=/^on[^a-z]/,bl=e=>vl.test(e),yl=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ol=/-(\w)/g,wl=yl((e=>e.replace(Ol,((e,t)=>t?t.toUpperCase():"")))),xl=/\B([A-Z])/g,$l=yl((e=>e.replace(xl,"-$1").toLowerCase())),Sl=yl((e=>e.charAt(0).toUpperCase()+e.slice(1))),Cl=Object.prototype.hasOwnProperty,kl=(e,t)=>Cl.call(e,t);function Pl(e){return"number"==typeof e?`${e}px`:e}function Ml(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 Tl(){const e=[];for(let t=0;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];if(n)if("string"==typeof n)e.push(n);else if(gl(n))for(let t=0;t<n.length;t++){const o=Tl(n[t]);o&&e.push(o)}else if(ml(n))for(const t in n)n[t]&&e.push(t)}return e.join(" ")}var Il=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),El="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Al="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Rl="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Al):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},Dl=["top","right","bottom","left","width","height","size","weight"],jl="undefined"!=typeof MutationObserver,Bl=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&a()}function l(){Rl(i)}function a(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(l,t);r=e}return a}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){El&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),jl?(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(){El&&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;Dl.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}(),Nl=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},zl=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Al},_l=Vl(0,0,0,0);function Ll(e){return parseFloat(e)||0}function Ql(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Ll(e["border-"+n+"-width"])}),0)}function Hl(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return _l;var o=zl(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=Ll(i)}return t}(o),i=r.left+r.right,l=r.top+r.bottom,a=Ll(o.width),s=Ll(o.height);if("border-box"===o.boxSizing&&(Math.round(a+i)!==t&&(a-=Ql(o,"left","right")+i),Math.round(s+l)!==n&&(s-=Ql(o,"top","bottom")+l)),!function(e){return e===zl(e).document.documentElement}(e)){var c=Math.round(a+i)-t,u=Math.round(s+l)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(u)&&(s-=u)}return Vl(r.left,r.top,a,s)}var Fl="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof zl(e).SVGGraphicsElement}:function(e){return e instanceof zl(e).SVGElement&&"function"==typeof e.getBBox};function Wl(e){return El?Fl(e)?function(e){var t=e.getBBox();return Vl(0,0,t.width,t.height)}(e):Hl(e):_l}function Vl(e,t,n,o){return{x:e,y:t,width:n,height:o}}var Zl=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Vl(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Wl(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Xl=function(){return function(e,t){var n,o,r,i,l,a,s,c=(o=(n=t).x,r=n.y,i=n.width,l=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(a.prototype),Nl(s,{x:o,y:r,width:i,height:l,top:r,right:o+i,bottom:l+r,left:o}),s);Nl(this,{target:e,contentRect:c})}}(),Yl=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Il,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof zl(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Zl(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof zl(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Xl(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Kl="undefined"!=typeof WeakMap?new WeakMap:new Il,Gl=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=Bl.getInstance(),o=new Yl(t,n,this);Kl.set(this,o)}}();["observe","unobserve","disconnect"].forEach((function(e){Gl.prototype[e]=function(){var t;return(t=Kl.get(this))[e].apply(t,arguments)}}));var Ul=void 0!==Al.ResizeObserver?Al.ResizeObserver:Gl;const ql=e=>null!=e&&""!==e,Jl=(e,t)=>{const n=fl({},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},ea=e=>{const t=Object.keys(e),n={},o={},r={};for(let i=0,l=t.length;i<l;i++){const l=t[i];bl(l)?(n[l[2].toLowerCase()+l.slice(3)]=e[l],o[l]=e[l]):r[l]=e[l]}return{onEvents:o,events:n,extraAttrs:r}},ta=(e,t)=>void 0!==e[t],na=Symbol("skipFlatten"),oa=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=Array.isArray(e)?e:[e],o=[];return n.forEach((e=>{Array.isArray(e)?o.push(...oa(e,t)):e&&e.type===lr?e.key===na?o.push(e):o.push(...oa(e.children,t)):e&&br(e)?t&&!ua(e)?o.push(e):t||o.push(e):ql(e)&&o.push(e)})),o},ra=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(br(e))return e.type===lr?"default"===t?oa(e.children):[]:e.children&&e.children[t]?oa(e.children[t](n)):[];{const o=e.$slots[t]&&e.$slots[t](n);return oa(o)}},ia=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},la=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach((o=>{const r=e.$props[o],i=$l(o);(void 0!==r||i in n)&&(t[o]=r)}))}else if(br(e)&&"object"==typeof e.type){const n=e.props||{},o={};Object.keys(n).forEach((e=>{o[wl(e)]=n[e]}));const r=e.type.props||{};Object.keys(r).forEach((e=>{const n=function(e,t,n,o){const r=e[n];if(null!=r){const e=kl(r,"default");if(e&&void 0===o){const e=r.default;o=r.type!==Function&&"function"==typeof e?e():e}r.type===Boolean&&(kl(t,n)||e?""===o&&(o=!0):o=!1)}return o}(r,o,e,o[e]);(void 0!==n||e in o)&&(t[e]=n)}))}return t},aa=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.$){const i=e[n];if(void 0!==i)return"function"==typeof i&&r?i(o):i;t=e.$slots[n],t=r&&t?t(o):t}else if(br(e)){const i=e.props&&e.props[n];if(void 0!==i&&null!==e.props)return"function"==typeof i&&r?i(o):i;e.type===lr?t=e.children:e.children&&e.children[n]&&(t=e.children[n],t=r&&t?t(o):t)}return Array.isArray(t)&&(t=oa(t),t=1===t.length?t[0]:t,t=0===t.length?void 0:t),t};function sa(){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.$?fl(fl({},n),e.$attrs):fl(fl({},n),e.props),ea(n)[t?"onEvents":"events"]}function ca(e,t){let n=((br(e)?e.props:e.$attrs)||{}).style||{};if("string"==typeof n)n=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?wl(r[0].trim()):r[0].trim();n[e]=r[1].trim()}}})),n)}(n,t);else if(t&&n){const e={};return Object.keys(n).forEach((t=>e[wl(t)]=n[t])),e}return n}function ua(e){return e&&(e.type===sr||e.type===lr&&0===e.children.length||e.type===ar&&""===e.children.trim())}function da(){const e=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{Array.isArray(t)?e.push(...t):(null==t?void 0:t.type)===lr?e.push(...da(t.children)):e.push(t)})),e.filter((e=>!ua(e)))}function pa(e){if(e){const t=da(e);return t.length?t:void 0}return e}function ha(e){return Array.isArray(e)&&1===e.length&&(e=e[0]),e&&e.__v_isVNode&&"symbol"!=typeof e.type}function fa(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 ga=Ln({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const o=it({width:0,height:0,offsetHeight:0,offsetWidth:0});let r=null,i=null;const l=()=>{i&&(i.disconnect(),i=null)},a=t=>{const{onResize:n}=e,r=t[0].target,{width:i,height:l}=r.getBoundingClientRect(),{offsetWidth:a,offsetHeight:s}=r,c=Math.floor(i),u=Math.floor(l);if(o.width!==c||o.height!==u||o.offsetWidth!==a||o.offsetHeight!==s){const e={width:c,height:u,offsetWidth:a,offsetHeight:s};fl(o,e),n&&Promise.resolve().then((()=>{n(fl(fl({},e),{offsetWidth:a,offsetHeight:s}),r)}))}},s=jr(),c=()=>{const{disabled:t}=e;if(t)return void l();const n=ia(s);n!==r&&(l(),r=n),!i&&n&&(i=new Ul(a),i.observe(n))};return Gn((()=>{c()})),qn((()=>{c()})),eo((()=>{l()})),wn((()=>e.disabled),(()=>{c()}),{flush:"post"}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)[0]}}});let ma=e=>setTimeout(e,16),va=e=>clearTimeout(e);"undefined"!=typeof window&&"requestAnimationFrame"in window&&(ma=e=>window.requestAnimationFrame(e),va=e=>window.cancelAnimationFrame(e));let ba=0;const ya=new Map;function Oa(e){ya.delete(e)}function wa(e){ba+=1;const t=ba;return function n(o){if(0===o)Oa(t),e();else{const e=ma((()=>{n(o-1)}));ya.set(t,e)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t}function xa(e){let t;const n=function(){if(null==t){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];t=wa((n=>()=>{t=null,e(...n)})(o))}};return n.cancel=()=>{wa.cancel(t),t=null},n}wa.cancel=e=>{const t=ya.get(e);return Oa(t),va(t)};const $a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},Sa=e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function Ca(){return{type:[Function,Array]}}function ka(e){return{type:Object,default:e}}function Pa(e){return{type:Boolean,default:e}}function Ma(e){return{type:Function,default:e}}function Ta(e,t){const n={validator:()=>!0,default:e};return n}function Ia(e){return{type:Array,default:e}}function Ea(e){return{type:String,default:e}}function Aa(e,t){return e?{type:e,default:t}:Ta(t)}let Ra=!1;try{const e=Object.defineProperty({},"passive",{get(){Ra=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch($pe){}const Da=Ra;function ja(e,t,n,o){if(e&&e.addEventListener){let r=o;void 0!==r||!Da||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r={passive:!1}),e.addEventListener(t,n,r)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}function Ba(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function Na(e,t,n){if(void 0!==n&&t.top>e.top-n)return`${n+t.top}px`}function za(e,t,n){if(void 0!==n&&t.bottom<e.bottom+n)return`${n+(window.innerHeight-t.bottom)}px`}const _a=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];let La=[];function Qa(e,t){if(!e)return;let n=La.find((t=>t.target===e));n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},La.push(n),_a.forEach((t=>{n.eventHandlers[t]=ja(e,t,(()=>{n.affixList.forEach((e=>{const{lazyUpdatePosition:t}=e.exposed;t()}),!("touchstart"!==t&&"touchmove"!==t||!Da)&&{passive:!0})}))})))}function Ha(e){const t=La.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&&(La=La.filter((e=>e!==t)),_a.forEach((e=>{const n=t.eventHandlers[e];n&&n.remove&&n.remove()})))}const Fa="anticon",Wa=Symbol("GlobalFormContextKey"),Va=Symbol("configProvider"),Za={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:Xr((()=>Fa)),getPopupContainer:Xr((()=>()=>document.body)),direction:Xr((()=>"ltr"))},Xa=()=>Ao(Va,Za),Ya=Symbol("DisabledContextKey"),Ka=()=>Ao(Ya,Ot(void 0)),Ga=e=>{const t=Ka();return Eo(Ya,Xr((()=>{var n;return null!==(n=e.value)&&void 0!==n?n:t.value}))),e},Ua={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"},qa={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ja={lang:fl({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:fl({},qa)},es="${label} is not a valid ${type}",ts={locale:"en",Pagination:Ua,DatePicker:Ja,TimePicker:qa,Calendar:Ja,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:es,method:es,array:es,object:es,number:es,date:es,boolean:es,integer:es,float:es,regexp:es,email:es,url:es,hex:es},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"}},ns=Ln({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t;const o=Ao("localeData",{}),r=Xr((()=>{const{componentName:t="global",defaultLocale:n}=e,r=n||ts[t||"global"],{antLocale:i}=o,l=t&&i?i[t]:{};return fl(fl({},"function"==typeof r?r():r),l||{})})),i=Xr((()=>{const{antLocale:e}=o,t=e&&e.locale;return e&&e.exist&&!t?ts.locale:t}));return()=>{const t=e.children||n.default,{antLocale:l}=o;return null==t?void 0:t(r.value,i.value,l)}}});function os(e,t,n){const o=Ao("localeData",{});return[Xr((()=>{const{antLocale:r}=o,i=Ct(t)||ts[e||"global"],l=e&&r?r[e]:{};return fl(fl(fl({},"function"==typeof i?i():i),l||{}),Ct(n)||{})}))]}function rs(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 is=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)}},ls="data-token-hash",as="data-css-hash",ss="__cssinjs_instance__";function cs(){const e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${as}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach((t=>{t[ss]=t[ss]||e,t[ss]===e&&document.head.insertBefore(t,n)}));const o={};Array.from(document.querySelectorAll(`style[${as}]`)).forEach((t=>{var n;const r=t.getAttribute(as);o[r]?t[ss]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new is(e)}const us=Symbol("StyleContextKey"),ds={cache:cs(),defaultCache:!0,hashPriority:"low"},ps=()=>{const e=(()=>{var e,t,n;const o=jr();let r;if(o&&o.appContext){const i=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__;i?r=i:(r=cs(),o.appContext.config.globalProperties&&(o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=r))}else r=cs();return r})();return Ao(us,wt(fl(fl({},ds),{cache:e})))},hs=e=>{const t=ps(),n=wt(fl(fl({},ds),{cache:cs()}));return wn([()=>Ct(e),t],(()=>{const o=fl({},t.value),r=Ct(e);Object.keys(r).forEach((e=>{const t=r[e];void 0!==r[e]&&(o[e]=t)}));const{cache:i}=r;o.cache=o.cache||cs(),o.defaultCache=!i&&t.value.defaultCache,n.value=o}),{immediate:!0}),Eo(us,n),n},fs=Sa(Ln({name:"AStyleProvider",inheritAttrs:!1,props:{autoClear:Pa(),mock:Ea(),cache:ka(),defaultCache:Pa(),hashPriority:Ea(),container:Aa(),ssrInline:Pa(),transformers:Ia(),linters:Ia()},setup(e,t){let{slots:n}=t;return hs(e),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}));function gs(e,t,n,o){const r=ps(),i=wt(""),l=wt();yn((()=>{i.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 wn(i,((e,t)=>{t&&a(t),r.value.cache.update(e,(e=>{const[t=0,o]=e||[];return[t+1,o||n()]})),l.value=r.value.cache.get(i.value)[1]}),{immediate:!0}),Jn((()=>{a(i.value)})),l}function ms(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function vs(e,t){return!!e&&!!e.contains&&e.contains(t)}const bs="data-vc-order",ys=new Map;function Os(){let{mark:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:"vc-util-key"}function ws(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function xs(e){return Array.from((ys.get(e)||e).children).filter((e=>"STYLE"===e.tagName))}function $s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ms())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute(bs,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 i=ws(t),{firstChild:l}=i;if(o){if("queue"===o){const e=xs(i).filter((e=>["prepend","prependQueue"].includes(e.getAttribute(bs))));if(e.length)return i.insertBefore(r,e[e.length-1].nextSibling),r}i.insertBefore(r,l)}else i.appendChild(r);return r}function Ss(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return xs(ws(t)).find((n=>n.getAttribute(Os(t))===e))}function Cs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Ss(e,t);n&&ws(t).removeChild(n)}function ks(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var o,r,i;!function(e,t){const n=ys.get(e);if(!n||!vs(document,n)){const n=$s("",t),{parentNode:o}=n;ys.set(e,o),e.removeChild(n)}}(ws(n),n);const l=Ss(t,n);if(l)return(null===(o=n.csp)||void 0===o?void 0:o.nonce)&&l.nonce!==(null===(r=n.csp)||void 0===r?void 0:r.nonce)&&(l.nonce=null===(i=n.csp)||void 0===i?void 0:i.nonce),l.innerHTML!==e&&(l.innerHTML=e),l;const a=$s(e,n);return a.setAttribute(Os(n),t),a}class Ps{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>Ps.MAX_CACHE_SIZE+Ps.MAX_CACHE_OFFSET){const[e]=this.keys.reduce(((e,t)=>{const[,n]=e;return this.internalGet(t)[1]<n?[t,this.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(e)}let n=this.cache;e.forEach(((o,r)=>{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;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e))),this.deleteByPath(this.cache,e)}}Ps.MAX_CACHE_SIZE=20,Ps.MAX_CACHE_OFFSET=5;let Ms={};function Ts(e,t){}function Is(e,t){}function Es(e,t,n){t||Ms[n]||(e(!1,n),Ms[n]=!0)}function As(e,t){Es(Ts,e,t)}const Rs=function(){};let Ds=0;class js{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=Ds,0===e.length&&Rs(e.length>0),Ds+=1}getDerivativeToken(e){return this.derivatives.reduce(((t,n)=>n(e,t)),void 0)}}const Bs=new Ps;function Ns(e){const t=Array.isArray(e)?e:[e];return Bs.has(t)||Bs.set(t,new js(t)),Bs.get(t)}const zs=new WeakMap;function _s(e){let t=zs.get(e)||"";return t||(Object.keys(e).forEach((n=>{const o=e[n];t+=n,t+=o instanceof js?o.id:o&&"object"==typeof o?_s(o):o})),zs.set(e,t)),t}const Ls=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),Qs="_bAmBoO_";let Hs;function Fs(){return void 0===Hs&&(Hs=function(e,t,n){var o,r;if(ms()){ks(e,Ls);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i);const l=n?n(i):null===(o=getComputedStyle(i).content)||void 0===o?void 0:o.includes(Qs);return null===(r=i.parentNode)||void 0===r||r.removeChild(i),Cs(Ls),l}return!1}(`@layer ${Ls} { .${Ls} { content: "${Qs}"!important; } }`,(e=>{e.className=Ls}))),Hs}const Ws={},Vs=new Map;function Zs(e,t){Vs.set(e,(Vs.get(e)||0)-1);const n=Array.from(Vs.keys()),o=n.filter((e=>(Vs.get(e)||0)<=0));n.length-o.length>0&&o.forEach((e=>{!function(e,t){"undefined"!=typeof document&&document.querySelectorAll(`style[${ls}="${e}"]`).forEach((e=>{var n;e[ss]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Vs.delete(e)}))}function Xs(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ot({});const o=ps(),r=Xr((()=>fl({},...t.value))),i=Xr((()=>_s(r.value))),l=Xr((()=>_s(n.value.override||Ws))),a=gs("token",Xr((()=>[n.value.salt||"",e.value.id,i.value,l.value])),(()=>{const{salt:t="",override:o=Ws,formatToken:i,getComputedToken:l}=n.value,a=l?l(r.value,o,e.value):((e,t,n,o)=>{let r=fl(fl({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r})(r.value,o,e.value,i),s=function(e,t){return rs(`${t}_${_s(e)}`)}(a,t);a._tokenKey=s,function(e){Vs.set(e,(Vs.get(e)||0)+1)}(s);const c=`css-${rs(s)}`;return a._hashId=c,[a,c]}),(e=>{var t;Zs(e[0]._tokenKey,null===(t=o.value)||void 0===t?void 0:t.cache.instanceId)}));return a}var Ys={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},Ks="comm",Gs="rule",Us="decl",qs=Math.abs,Js=String.fromCharCode;function ec(e){return e.trim()}function tc(e,t,n){return e.replace(t,n)}function nc(e,t,n){return e.indexOf(t,n)}function oc(e,t){return 0|e.charCodeAt(t)}function rc(e,t,n){return e.slice(t,n)}function ic(e){return e.length}function lc(e,t){return t.push(e),e}var ac=1,sc=1,cc=0,uc=0,dc=0,pc="";function hc(e,t,n,o,r,i,l,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:ac,column:sc,length:l,return:"",siblings:a}}function fc(){return dc=uc<cc?oc(pc,uc++):0,sc++,10===dc&&(sc=1,ac++),dc}function gc(){return oc(pc,uc)}function mc(){return uc}function vc(e,t){return rc(pc,e,t)}function bc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yc(e){return ec(vc(uc-1,xc(91===e?e+2:40===e?e+1:e)))}function Oc(e){for(;(dc=gc())&&dc<33;)fc();return bc(e)>2||bc(dc)>3?"":" "}function wc(e,t){for(;--t&&fc()&&!(dc<48||dc>102||dc>57&&dc<65||dc>70&&dc<97););return vc(e,mc()+(t<6&&32==gc()&&32==fc()))}function xc(e){for(;fc();)switch(dc){case e:return uc;case 34:case 39:34!==e&&39!==e&&xc(dc);break;case 40:41===e&&xc(e);break;case 92:fc()}return uc}function $c(e,t){for(;fc()&&e+dc!==57&&(e+dc!==84||47!==gc()););return"/*"+vc(t,uc-1)+"*"+Js(47===e?e:fc())}function Sc(e){for(;!bc(gc());)fc();return vc(e,uc)}function Cc(e){return function(e){return pc="",e}(kc("",null,null,null,[""],e=function(e){return ac=sc=1,cc=ic(pc=e),uc=0,[]}(e),0,[0],e))}function kc(e,t,n,o,r,i,l,a,s){for(var c=0,u=0,d=l,p=0,h=0,f=0,g=1,m=1,v=1,b=0,y="",O=r,w=i,x=o,$=y;m;)switch(f=b,b=fc()){case 40:if(108!=f&&58==oc($,d-1)){-1!=nc($+=tc(yc(b),"&","&\f"),"&\f",qs(c?a[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:$+=yc(b);break;case 9:case 10:case 13:case 32:$+=Oc(f);break;case 92:$+=wc(mc()-1,7);continue;case 47:switch(gc()){case 42:case 47:lc(Mc($c(fc(),mc()),t,n,s),s);break;default:$+="/"}break;case 123*g:a[c++]=ic($)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&($=tc($,/\f/g,"")),h>0&&ic($)-d&&lc(h>32?Tc($+";",o,n,d-1,s):Tc(tc($," ","")+";",o,n,d-2,s),s);break;case 59:$+=";";default:if(lc(x=Pc($,t,n,c,u,r,a,y,O=[],w=[],d,i),i),123===b)if(0===u)kc($,t,x,x,O,i,d,a,w);else switch(99===p&&110===oc($,3)?100:p){case 100:case 108:case 109:case 115:kc(e,x,x,o&&lc(Pc(e,x,x,0,0,r,a,y,r,O=[],d,w),w),r,w,d,a,o?O:w);break;default:kc($,x,x,x,[""],w,0,a,w)}}c=u=h=0,g=v=1,y=$="",d=l;break;case 58:d=1+ic($),h=f;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==(dc=uc>0?oc(pc,--uc):0,sc--,10===dc&&(sc=1,ac--),dc))continue;switch($+=Js(b),b*g){case 38:v=u>0?1:($+="\f",-1);break;case 44:a[c++]=(ic($)-1)*v,v=1;break;case 64:45===gc()&&($+=yc(fc())),p=gc(),u=d=ic(y=$+=Sc(mc())),b++;break;case 45:45===f&&2==ic($)&&(g=0)}}return i}function Pc(e,t,n,o,r,i,l,a,s,c,u,d){for(var p=r-1,h=0===r?i:[""],f=function(e){return e.length}(h),g=0,m=0,v=0;g<o;++g)for(var b=0,y=rc(e,p+1,p=qs(m=l[g])),O=e;b<f;++b)(O=ec(m>0?h[b]+" "+y:tc(y,/&\f/g,h[b])))&&(s[v++]=O);return hc(e,t,n,0===r?Gs:a,s,c,u,d)}function Mc(e,t,n,o){return hc(e,t,n,Ks,Js(dc),rc(e,2,-2),0,o)}function Tc(e,t,n,o,r){return hc(e,t,n,Us,rc(e,0,o),rc(e,o+1,-1),o,r)}function Ic(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function Ec(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Us:return e.return=e.return||e.value;case Ks:return"";case"@keyframes":return e.return=e.value+"{"+Ic(e.children,o)+"}";case Gs:if(!ic(e.value=e.props.join(",")))return""}return ic(n=Ic(e.children,o))?e.return=e.value+"{"+n+"}":""}function Ac(e,t){const{path:n,parentSelectors:o}=t;As(!1,`[Ant Design Vue CSS-in-JS] ${n?`Error in '${n}': `:""}${e}${o.length?` Selector info: ${o.join(" -> ")}`:""}`)}function Rc(e){var t;return((null===(t=e.match(/:not\(([^)]*)\)/))||void 0===t?void 0:t[1])||"").split(/(\[[^[]*])|(?=[.#])/).filter((e=>e)).length>1}const Dc=(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(Rc)&&Ac("Concat ':not' selector not support in legacy browsers.",n)},jc=(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 Ac(`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]&&Ac(`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||Ac(`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":return void("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)&&Ac(`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))}},Bc=(e,t,n)=>{n.parentSelectors.some((e=>e.split(",").some((e=>e.split("&").length>2))))&&Ac("Should not use more than one `&` in a selector.",n)},Nc="data-ant-cssinjs-cache-path";let zc,_c=!0;function Lc(e){return function(){var e;if(!zc&&(zc={},ms())){const t=document.createElement("div");t.className=Nc,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(":");zc[t]=n}));const o=document.querySelector(`style[${Nc}]`);o&&(_c=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),!!zc[e]}const Qc=ms(),Hc="_multi_value_";function Fc(e){return Ic(Cc(e),Ec).replace(/\{%%%\:[^;];}/g,";")}const Wc=new Set,Vc=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:i,layer:l,path:a,hashPriority:s,transformers:c=[],linters:u=[]}=t;let d="",p={};function h(e){const n=e.getName(i);if(!p[n]){const[o]=Vc(e.style,t,{root:!1,parentSelectors:r});p[n]=`@keyframes ${e.getName(i)}${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 l="string"!=typeof e||n?e:{};if("string"==typeof l)d+=`${l}\n`;else if(l._keyframe)h(l);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}),l);Object.keys(e).forEach((l=>{var a;const c=e[l];if("object"!=typeof c||!c||"animationName"===l&&c._keyframe||function(e){return"object"==typeof e&&e&&("_skip_check_"in e||Hc in e)}(c)){let e=function(e,t){const n=e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`));let o=t;Ys[e]||"number"!=typeof o||0===o||(o=`${o}px`),"animationName"===e&&(null==t?void 0:t._keyframe)&&(h(t),o=t.getName(i)),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[Hc])&&Array.isArray(t)?t.forEach((t=>{e(l,t)})):e(l,t)}else{let e=!1,a=l.trim(),u=!1;(n||o)&&i?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 i=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return o=`${i}${r}${o.slice(i.length)}`,[o,...n.slice(1)].join(" ")})).join(",")}(l,i,s):!n||i||"&"!==a&&""!==a||(a="",u=!0);const[h,f]=Vc(c,t,{root:u,injectHash:e,parentSelectors:[...r,a]});p=fl(fl({},p),f),d+=`${a}${h}`}}))}})),n){if(l&&Fs()){const e=l.split(","),t=e[e.length-1].trim();d=`@layer ${t} {${d}}`,e.length>1&&(d=`@layer ${l}{%%%:%}${d}`)}}else d=`{${d}}`;return[d,p]};function Zc(e,t){const n=ps(),o=Xr((()=>e.value.token._tokenKey)),r=Xr((()=>[o.value,...e.value.path]));let i=Qc;return gs("style",r,(()=>{const{path:l,hashId:a,layer:s,nonce:c,clientOnly:u,order:d=0}=e.value,p=r.value.join("|");if(Lc(p)){const[e,t]=function(e){const t=zc[e];let n=null;if(t&&ms())if(_c)n="_FILE_STYLE__";else{const t=document.querySelector(`style[${as}="${zc[e]}"]`);t?n=t.innerHTML:delete zc[e]}return[n,t]}(p);if(e)return[e,o.value,t,{},u,d]}const h=t(),{hashPriority:f,container:g,transformers:m,linters:v,cache:b}=n.value,[y,O]=Vc(h,{hashId:a,hashPriority:f,layer:s,path:l.join("-"),transformers:m,linters:v}),w=Fc(y),x=function(e,t){return rs(`${e.join("%")}${t}`)}(r.value,w);if(i){const e={mark:as,prepend:"queue",attachTo:g,priority:d},t="function"==typeof c?c():c;t&&(e.csp={nonce:t});const n=ks(w,x,e);n[ss]=b.instanceId,n.setAttribute(ls,o.value),Object.keys(O).forEach((e=>{Wc.has(e)||(Wc.add(e),ks(Fc(O[e]),`_effect-${e}`,{mark:as,prepend:"queue",attachTo:g}))}))}return[w,o.value,x,O,u,d]}),((e,t)=>{let[,,o]=e;(t||n.value.autoClear)&&Qc&&Cs(o,{mark:as})})),e=>e}const Xc=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 Yc(e){return e.notSplit=!0,e}const Kc={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:Yc(["borderTop","borderBottom"]),borderBlockStart:Yc(["borderTop"]),borderBlockEnd:Yc(["borderBottom"]),borderInline:Yc(["borderLeft","borderRight"]),borderInlineStart:Yc(["borderLeft"]),borderInlineEnd:Yc(["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 Gc(e){return{_skip_check_:!0,value:e}}const Uc=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g,qc=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 i=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`${i}rem`};return{visit:e=>{const t=fl({},e);return Object.entries(e).forEach((e=>{let[n,i]=e;if("string"==typeof i&&i.includes("px")){const e=i.replace(Uc,r);t[n]=e}Ys[n]||"number"!=typeof i||0===i||(t[n]=`${i}px`.replace(Uc,r));const l=n.trim();if(l.startsWith("@")&&l.includes("px")&&o){const e=n.replace(Uc,r);t[e]=t[n],delete t[n]}})),t}}},Jc={Theme:js,createTheme:Ns,useStyleRegister:Zc,useCacheToken:Xs,createCache:cs,useStyleInject:ps,useStyleProvider:hs,Keyframes:Xc,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={},i={};let l="";function a(e,n,o){const r=fl(fl({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{[ls]:n,[as]:o}),i=Object.keys(r).map((e=>{const t=r[e];return t?`${e}="${t}"`:null})).filter((e=>e)).join(" ");return t?e:`<style ${i}>${e}</style>`}return o.map((t=>{const n=t.slice(6).replace(/%/g,"|"),[o,l,s,c,u,d]=e.cache.get(t)[1];if(u)return null;const p={"data-vc-order":"prependQueue","data-vc-priority":`${d}`};let h=a(o,l,s,p);return i[n]=s,c&&Object.keys(c).forEach((e=>{r[e]||(r[e]=!0,h+=a(Fc(c[e]),l,`_effect-${e}`,p))})),[d,h]})).filter((e=>e)).sort(((e,t)=>e[0]-t[0])).forEach((e=>{let[,t]=e;l+=t})),l+=a(`.${Nc}{content:"${function(e){return Object.keys(e).map((t=>`${t}:${e[t]}`)).join(";")}(i)}";}`,void 0,void 0,{[Nc]:Nc}),l},legacyLogicalPropertiesTransformer:{visit:e=>{const t={};return Object.keys(e).forEach((n=>{const o=e[n],r=Kc[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]=Gc(o)})):1===r.length?t[r[0]]=Gc(o):2===r.length?r.forEach(((n,o)=>{var r;t[n]=Gc(null!==(r=e[o])&&void 0!==r?r:e[0])})):4===r.length?r.forEach(((n,o)=>{var r,i;t[n]=Gc(null!==(i=null!==(r=e[o])&&void 0!==r?r:e[o-2])&&void 0!==i?i:e[0])})):t[n]=o}})),t}},px2remTransformer:qc,logicalPropertiesLinter:jc,legacyNotSelectorLinter:Dc,parentSelectorLinter:Bc,StyleProvider:fs},eu=Jc,tu="4.1.0",nu=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function ou(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 ru(e){return Math.min(1,Math.max(0,e))}function iu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function lu(e){return e<=1?"".concat(100*Number(e),"%"):e}function au(e){return 1===e.length?"0"+e:String(e)}function su(e,t,n){e=ou(e,255),t=ou(t,255),n=ou(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,l=0,a=(o+r)/2;if(o===r)l=0,i=0;else{var s=o-r;switch(l=a>.5?s/(2-o-r):s/(o+r),o){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:l,l:a}}function cu(e,t,n){return n<0&&(n+=1),n>1&&(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 uu(e,t,n){e=ou(e,255),t=ou(t,255),n=ou(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,l=o,a=o-r,s=0===o?0:a/o;if(o===r)i=0;else{switch(o){case e:i=(t-n)/a+(t<n?6:0);break;case t:i=(n-e)/a+2;break;case n:i=(e-t)/a+4}i/=6}return{h:i,s:s,v:l}}function du(e,t,n,o){var r=[au(Math.round(e).toString(16)),au(Math.round(t).toString(16)),au(Math.round(n).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function pu(e){return hu(e)/255}function hu(e){return parseInt(e,16)}var fu={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function gu(e){var t,n,o,r={r:0,g:0,b:0},i=1,l=null,a=null,s=null,c=!1,u=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(fu[e])e=fu[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=yu.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=yu.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=yu.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=yu.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=yu.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=yu.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=yu.hex8.exec(e))?{r:hu(n[1]),g:hu(n[2]),b:hu(n[3]),a:pu(n[4]),format:t?"name":"hex8"}:(n=yu.hex6.exec(e))?{r:hu(n[1]),g:hu(n[2]),b:hu(n[3]),format:t?"name":"hex"}:(n=yu.hex4.exec(e))?{r:hu(n[1]+n[1]),g:hu(n[2]+n[2]),b:hu(n[3]+n[3]),a:pu(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=yu.hex3.exec(e))&&{r:hu(n[1]+n[1]),g:hu(n[2]+n[2]),b:hu(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(Ou(e.r)&&Ou(e.g)&&Ou(e.b)?(t=e.r,n=e.g,o=e.b,r={r:255*ou(t,255),g:255*ou(n,255),b:255*ou(o,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):Ou(e.h)&&Ou(e.s)&&Ou(e.v)?(l=lu(e.s),a=lu(e.v),r=function(e,t,n){e=6*ou(e,360),t=ou(t,100),n=ou(n,100);var o=Math.floor(e),r=e-o,i=n*(1-t),l=n*(1-r*t),a=n*(1-(1-r)*t),s=o%6;return{r:255*[n,l,i,i,a,n][s],g:255*[a,n,n,l,i,i][s],b:255*[i,i,a,n,n,l][s]}}(e.h,l,a),c=!0,u="hsv"):Ou(e.h)&&Ou(e.s)&&Ou(e.l)&&(l=lu(e.s),s=lu(e.l),r=function(e,t,n){var o,r,i;if(e=ou(e,360),t=ou(t,100),n=ou(n,100),0===t)r=n,i=n,o=n;else{var l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;o=cu(a,l,e+1/3),r=cu(a,l,e),i=cu(a,l,e-1/3)}return{r:255*o,g:255*r,b:255*i}}(e.h,l,s),c=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=iu(i),{ok:c,format:e.format||u,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:i}}var mu="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),vu="[\\s|\\(]+(".concat(mu,")[,|\\s]+(").concat(mu,")[,|\\s]+(").concat(mu,")\\s*\\)?"),bu="[\\s|\\(]+(".concat(mu,")[,|\\s]+(").concat(mu,")[,|\\s]+(").concat(mu,")[,|\\s]+(").concat(mu,")\\s*\\)?"),yu={CSS_UNIT:new RegExp(mu),rgb:new RegExp("rgb"+vu),rgba:new RegExp("rgba"+bu),hsl:new RegExp("hsl"+vu),hsla:new RegExp("hsla"+bu),hsv:new RegExp("hsv"+vu),hsva:new RegExp("hsva"+bu),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ou(e){return Boolean(yu.CSS_UNIT.exec(String(e)))}var wu=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var r=gu(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=iu(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=uu(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=uu(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=su(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=su(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),du(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 i,l=[au(Math.round(e).toString(16)),au(Math.round(t).toString(16)),au(Math.round(n).toString(16)),au((i=o,Math.round(255*parseFloat(i)).toString(16)))];return r&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))&&l[3].startsWith(l[3].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.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*ou(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*ou(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="#"+du(this.r,this.g,this.b,!1),t=0,n=Object.entries(fu);t<n.length;t++){var o=n[t],r=o[0];if(e===o[1])return r}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,o=this.a<1&&this.a>=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=ru(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=ru(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=ru(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=ru(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(),i=n/100;return new e({r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+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,i=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(new e(o));return i},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,i=n.v,l=[],a=1/t;t--;)l.push(new e({h:o,s:r,v:i})),i=(i+a)%1;return l},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],i=360/t,l=1;l<t;l++)r.push(new e({h:(o+l*i)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),xu=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function $u(e){var t=uu(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function Su(e){var t=e.r,n=e.g,o=e.b;return"#".concat(du(t,n,o,!1))}function Cu(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?o+=360:o>=360&&(o-=360),o}function ku(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(o=1),n&&5===t&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2)));var o}function Pu(e,t,n){var o;return(o=n?e.v+.05*t:e.v-.15*t)>1&&(o=1),Number(o.toFixed(2))}function Mu(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=gu(e),r=5;r>0;r-=1){var i=$u(o),l=Su(gu({h:Cu(i,r,!0),s:ku(i,r,!0),v:Pu(i,r,!0)}));n.push(l)}n.push(Su(o));for(var a=1;a<=4;a+=1){var s=$u(o),c=Su(gu({h:Cu(s,a),s:ku(s,a),v:Pu(s,a)}));n.push(c)}return"dark"===t.theme?xu.map((function(e){var o,r,i,l=e.index,a=e.opacity;return Su((o=gu(t.backgroundColor||"#141414"),r=gu(n[l]),i=100*a/100,{r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b}))})):n}var Tu={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"},Iu={},Eu={};Object.keys(Tu).forEach((function(e){Iu[e]=Mu(Tu[e]),Iu[e].primary=Iu[e][5],Eu[e]=Mu(Tu[e],{theme:"dark",backgroundColor:"#141414"}),Eu[e].primary=Eu[e][5]}));var Au=Iu.gold,Ru=Iu.blue;const Du={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"},ju=fl(fl({},Du),{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}),Bu=(e,t)=>new wu(e).setAlpha(t).toRgbString(),Nu=(e,t)=>new wu(e).darken(t).toHexString(),zu=e=>{const t=Mu(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]}},_u=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:Bu(o,.88),colorTextSecondary:Bu(o,.65),colorTextTertiary:Bu(o,.45),colorTextQuaternary:Bu(o,.25),colorFill:Bu(o,.15),colorFillSecondary:Bu(o,.06),colorFillTertiary:Bu(o,.04),colorFillQuaternary:Bu(o,.02),colorBgLayout:Nu(n,4),colorBgContainer:Nu(n,0),colorBgElevated:Nu(n,0),colorBgSpotlight:Bu(o,.85),colorBorder:Nu(n,15),colorBorderSecondary:Nu(n,6)}},Lu=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),i=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(i/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 Qu(e){return e>=0&&e<=255}function Hu(e,t){const{r:n,g:o,b:r,a:i}=new wu(e).toRgb();if(i<1)return e;const{r:l,g:a,b:s}=new wu(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-l*(1-c))/c),t=Math.round((o-a*(1-c))/c),i=Math.round((r-s*(1-c))/c);if(Qu(e)&&Qu(t)&&Qu(i))return new wu({r:e,g:t,b:i,a:Math.round(100*c)/100}).toRgbString()}return new wu({r:n,g:o,b:r,a:1}).toRgbString()}function Fu(e){const{override:t}=e,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["override"]),o=fl({},t);Object.keys(ju).forEach((e=>{delete o[e]}));const r=fl(fl({},n),o),i=1200,l=1600,a=2e3;return fl(fl(fl({},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:Hu(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:Hu(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:Hu(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:Hu(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:i,screenXLMin:i,screenXLMax:1599,screenXXL:l,screenXXLMin:l,screenXXLMax:1999,screenXXXL:a,screenXXXLMin:a,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`\n 0 1px 2px -2px ${new wu("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new wu("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new wu("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 Wu=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Vu=(e,t,n,o,r)=>{const i=e/2,l=i,a=1*n/Math.sqrt(2),s=i-n*(1-1/Math.sqrt(2)),c=i-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*i-c,p=u,h=2*i-a,f=s,g=2*i-0,m=l,v=i*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:v,height:v,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*i-b}px 100%, ${b}px 100%)`,`path('M 0 ${l} A ${n} ${n} 0 0 0 ${a} ${s} L ${c} ${u} A ${t} ${t} 0 0 1 ${d} ${p} L ${h} ${f} A ${n} ${n} 0 0 0 ${g} ${m} Z')`]},content:'""'}}};function Zu(e,t){return nu.reduce(((n,o)=>{const r=e[`${o}-1`],i=e[`${o}-3`],l=e[`${o}-6`],a=e[`${o}-7`];return fl(fl({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:l,textColor:a}))}),{})}const Xu={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Yu=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Ku=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"}}}),Gu=(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"}}}}},Uu=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),qu=e=>({"&:focus-visible":fl({},Uu(e))});function Ju(e,t,n){return o=>{const r=Xr((()=>null==o?void 0:o.value)),[i,l,a]=cd(),{getPrefixCls:s,iconPrefixCls:c}=Xa(),u=Xr((()=>s()));return Zc(Xr((()=>({theme:i.value,token:l.value,hashId:a.value,path:["Shared",u.value]}))),(()=>[{"&":Ku(l.value)}])),[Zc(Xr((()=>({theme:i.value,token:l.value,hashId:a.value,path:[e,r.value,c.value]}))),(()=>{const{token:o,flush:i}=function(e){let t,n=e,o=od;return ed&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(td&&t.add(n),e[n])}),o=(e,n)=>{Array.from(t)}),{token:n,keys:t,flush:o}}(l.value),s=fl(fl({},"function"==typeof n?n(o):n),l.value[e]),d=nd(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:l.value[e]});return i(e,s),[Gu(l.value,r.value),p]})),a]}}const ed="undefined"!=typeof CSSINJS_STATISTIC;let td=!0;function nd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ed)return fl({},...t);td=!1;const o={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),td=!0,o}function od(){}const rd=Ns((function(e){const t=Object.keys(Du).map((t=>{const n=Mu(e[t]);return new Array(10).fill(1).reduce(((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e)),{})})).reduce(((e,t)=>e=fl(fl({},e),t)),{});return fl(fl(fl(fl(fl(fl(fl({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:i,colorError:l,colorInfo:a,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=n(s),p=n(r),h=n(i),f=n(l),g=n(a);return fl(fl({},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:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorBgMask:new wu("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:zu,generateNeutralColorPalettes:_u})),Lu(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)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return fl({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:r+1},(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}})(o))}(e))})),id={token:ju,hashed:!0},ld=Symbol("DesignTokenContext"),ad=wt(),sd=Ln({props:{value:ka()},setup(e,t){let{slots:n}=t;var o;return o=Xr((()=>e.value)),Eo(ld,o),wn(o,(()=>{ad.value=Ct(o),St(ad)}),{immediate:!0,deep:!0}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});function cd(){const e=Ao(ld,Xr((()=>ad.value||id))),t=Xr((()=>`${tu}-${e.value.hashed||""}`)),n=Xr((()=>e.value.theme||rd)),o=Xs(n,Xr((()=>[ju,e.value.token])),Xr((()=>({salt:t.value,override:fl({override:e.value.token},e.value.components),formatToken:Fu}))));return[n,Xr((()=>o.value[0])),Xr((()=>e.value.hashed?o.value[1]:""))]}const ud=Ln({compatConfig:{MODE:3},setup(){const[,e]=cd(),t=Xr((()=>new wu(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{}));return()=>Sr("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[Sr("g",{fill:"none","fill-rule":"evenodd"},[Sr("g",{transform:"translate(24 31.67)"},[Sr("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),Sr("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),Sr("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),Sr("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),Sr("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)]),Sr("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),Sr("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[Sr("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),Sr("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});ud.PRESENTED_IMAGE_DEFAULT=!0;const dd=ud,pd=Ln({compatConfig:{MODE:3},setup(){const[,e]=cd(),t=Xr((()=>{const{colorFill:t,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:r}=e.value;return{borderColor:new wu(t).onBackground(r).toHexString(),shadowColor:new wu(n).onBackground(r).toHexString(),contentColor:new wu(o).onBackground(r).toHexString()}}));return()=>Sr("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[Sr("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[Sr("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),Sr("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[Sr("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),Sr("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)])])])}});pd.PRESENTED_IMAGE_SIMPLE=!0;const hd=pd,fd=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:l}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:l,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}}}}},gd=Ju("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,o=nd(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[fd(o)]})),md=Sr(dd,null,null),vd=Sr(hd,null,null),bd=Ln({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:{prefixCls:String,imageStyle:ka(),image:Ta(),description:Ta()},setup(e,t){let{slots:n={},attrs:o}=t;const{direction:r,prefixCls:i}=Cd("empty",e),[l,a]=gd(i);return()=>{var t,s;const c=i.value,u=fl(fl({},e),o),{image:d=(null===(t=n.image)||void 0===t?void 0:t.call(n))||md,description:p=(null===(s=n.description)||void 0===s?void 0:s.call(n))||void 0,imageStyle:h,class:f=""}=u,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(u,["image","description","imageStyle","class"]);return l(Sr(ns,{componentName:"Empty",children:e=>{const t=void 0!==p?p:e.description;let o=null;return o="string"==typeof d?Sr("img",{alt:"string"==typeof t?t:"empty",src:d},null):d,Sr("div",hl({class:Tl(c,f,a.value,{[`${c}-normal`]:d===vd,[`${c}-rtl`]:"rtl"===r.value})},g),[Sr("div",{class:`${c}-image`,style:h},[o]),t&&Sr("p",{class:`${c}-description`},[t]),n.default&&Sr("div",{class:`${c}-footer`},[da(n.default())])])}},null))}}});bd.PRESENTED_IMAGE_DEFAULT=md,bd.PRESENTED_IMAGE_SIMPLE=vd;const yd=Sa(bd),Od=e=>{const{prefixCls:t}=Cd("empty",e);return(e=>{switch(e){case"Table":case"List":return Sr(yd,{image:yd.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Sr(yd,{image:yd.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return Sr(yd,null,null)}})(e.componentName)};function wd(e){return Sr(Od,{componentName:e},null)}const xd=Symbol("SizeContextKey"),$d=()=>Ao(xd,Ot(void 0)),Sd=e=>{const t=$d();return Eo(xd,Xr((()=>e.value||t.value))),e},Cd=(e,t)=>{const n=$d(),o=Ka(),r=Ao(Va,fl(fl({},Za),{renderEmpty:e=>Yr(Od,{componentName:e})})),i=Xr((()=>r.getPrefixCls(e,t.prefixCls))),l=Xr((()=>{var e,n;return null!==(e=t.direction)&&void 0!==e?e:null===(n=r.direction)||void 0===n?void 0:n.value})),a=Xr((()=>{var e;return null!==(e=t.iconPrefixCls)&&void 0!==e?e:r.iconPrefixCls.value})),s=Xr((()=>r.getPrefixCls())),c=Xr((()=>{var e;return null===(e=r.autoInsertSpaceInButton)||void 0===e?void 0:e.value})),u=r.renderEmpty,d=r.space,p=r.pageHeader,h=r.form,f=Xr((()=>{var e,n;return null!==(e=t.getTargetContainer)&&void 0!==e?e:null===(n=r.getTargetContainer)||void 0===n?void 0:n.value})),g=Xr((()=>{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})),m=Xr((()=>{var e,n;return null!==(e=t.dropdownMatchSelectWidth)&&void 0!==e?e:null===(n=r.dropdownMatchSelectWidth)||void 0===n?void 0:n.value})),v=Xr((()=>{var e;return(void 0===t.virtual?!1!==(null===(e=r.virtual)||void 0===e?void 0:e.value):!1!==t.virtual)&&!1!==m.value})),b=Xr((()=>t.size||n.value)),y=Xr((()=>{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})),O=Xr((()=>{var e;return null!==(e=t.disabled)&&void 0!==e?e:o.value})),w=Xr((()=>{var e;return null!==(e=t.csp)&&void 0!==e?e:r.csp})),x=Xr((()=>{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:i,direction:l,size:b,getTargetContainer:f,getPopupContainer:g,space:d,pageHeader:p,form:h,autoInsertSpaceInButton:c,renderEmpty:u,virtual:v,dropdownMatchSelectWidth:m,rootPrefixCls:s,getPrefixCls:r.getPrefixCls,autocomplete:y,csp:w,iconPrefixCls:a,disabled:O,select:r.select,wave:x}};function kd(e,t){const n=fl({},e);for(let o=0;o<t.length;o+=1)delete n[t[o]];return n}const Pd=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},Md=Ju("Affix",(e=>{const t=nd(e,{zIndexPopup:e.zIndexBase+10});return[Pd(t)]}));function Td(){return"undefined"!=typeof window?window:null}var Id,Ed;(Ed=Id||(Id={}))[Ed.None=0]="None",Ed[Ed.Prepare=1]="Prepare";const Ad=Sa(Ln({compatConfig:{MODE:3},name:"AAffix",inheritAttrs:!1,props:{offsetTop:Number,offsetBottom:Number,target:{type:Function,default:Td},prefixCls:String,onChange:Function,onTestUpdatePosition:Function},setup(e,t){let{slots:n,emit:o,expose:r,attrs:i}=t;const l=wt(),a=wt(),s=it({affixStyle:void 0,placeholderStyle:void 0,status:Id.None,lastAffix:!1,prevTarget:null,timeout:null}),c=jr(),u=Xr((()=>void 0===e.offsetBottom&&void 0===e.offsetTop?0:e.offsetTop)),d=Xr((()=>e.offsetBottom)),p=()=>{fl(s,{status:Id.Prepare,affixStyle:void 0,placeholderStyle:void 0})},h=xa((()=>{p()})),f=xa((()=>{const{target:t}=e,{affixStyle:n}=s;if(t&&n){const e=t();if(e&&l.value){const t=Ba(e),o=Ba(l.value),r=Na(o,t,u.value),i=za(o,t,d.value);if(void 0!==r&&n.top===r||void 0!==i&&n.bottom===i)return}}p()}));r({updatePosition:h,lazyUpdatePosition:f}),wn((()=>e.target),(e=>{const t=(null==e?void 0:e())||null;s.prevTarget!==t&&(Ha(c),t&&(Qa(t,c),h()),s.prevTarget=t)})),wn((()=>[e.offsetTop,e.offsetBottom]),h),Gn((()=>{const{target:t}=e;t&&(s.timeout=setTimeout((()=>{Qa(t(),c),h()})))})),qn((()=>{(()=>{const{status:t,lastAffix:n}=s,{target:r}=e;if(t!==Id.Prepare||!a.value||!l.value||!r)return;const i=r();if(!i)return;const c={status:Id.None},p=Ba(l.value);if(0===p.top&&0===p.left&&0===p.width&&0===p.height)return;const h=Ba(i),f=Na(p,h,u.value),g=za(p,h,d.value);if(0!==p.top||0!==p.left||0!==p.width||0!==p.height){if(void 0!==f){const e=`${p.width}px`,t=`${p.height}px`;c.affixStyle={position:"fixed",top:f,width:e,height:t},c.placeholderStyle={width:e,height:t}}else if(void 0!==g){const e=`${p.width}px`,t=`${p.height}px`;c.affixStyle={position:"fixed",bottom:g,width:e,height:t},c.placeholderStyle={width:e,height:t}}c.lastAffix=!!c.affixStyle,n!==c.lastAffix&&o("change",c.lastAffix),fl(s,c)}})()})),eo((()=>{clearTimeout(s.timeout),Ha(c),h.cancel(),f.cancel()}));const{prefixCls:g}=Cd("affix",e),[m,v]=Md(g);return()=>{var t;const{affixStyle:o,placeholderStyle:r,status:c}=s,u=Tl({[g.value]:o,[v.value]:!0}),d=kd(e,["prefixCls","offsetTop","offsetBottom","target","onChange","onTestUpdatePosition"]);return m(Sr(ga,{onResize:h},{default:()=>[Sr("div",hl(hl(hl({},d),i),{},{ref:l,"data-measure-status":c}),[o&&Sr("div",{style:r,"aria-hidden":"true"},null),Sr("div",{class:u,ref:a,style:o},[null===(t=n.default)||void 0===t?void 0:t.call(n)])])]}))}}}));function Rd(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function Dd(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function jd(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Dd(n.overflowY,t)||Dd(n.overflowX,t)||!!(r=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}}(o=e))&&(r.clientHeight<o.scrollHeight||r.clientWidth<o.scrollWidth)}var o,r;return!1}function Bd(e,t,n,o,r,i,l,a){return i<e&&l>t||i>e&&l<t?0:i<=e&&a<=n||l>=t&&a>=n?i-e-o:l>t&&a<n||i<e&&a>n?l-t+r:0}var Nd=function(e,t){var n=window,o=t.scrollMode,r=t.block,i=t.inline,l=t.boundary,a=t.skipOverflowHiddenElements,s="function"==typeof l?l:function(e){return e!==l};if(!Rd(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,p=[],h=e;Rd(h)&&s(h);){if((h=null==(u=(c=h).parentElement)?c.getRootNode().host||null:u)===d){p.push(h);break}null!=h&&h===document.body&&jd(h)&&!jd(document.documentElement)||null!=h&&jd(h,a)&&p.push(h)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,O=b.width,w=b.top,x=b.right,$=b.bottom,S=b.left,C="start"===r||"nearest"===r?w:"end"===r?$:w+y/2,k="center"===i?S+O/2:"end"===i?x:S,P=[],M=0;M<p.length;M++){var T=p[M],I=T.getBoundingClientRect(),E=I.height,A=I.width,R=I.top,D=I.right,j=I.bottom,B=I.left;if("if-needed"===o&&w>=0&&S>=0&&$<=g&&x<=f&&w>=R&&$<=j&&S>=B&&x<=D)return P;var N=getComputedStyle(T),z=parseInt(N.borderLeftWidth,10),_=parseInt(N.borderTopWidth,10),L=parseInt(N.borderRightWidth,10),Q=parseInt(N.borderBottomWidth,10),H=0,F=0,W="offsetWidth"in T?T.offsetWidth-T.clientWidth-z-L:0,V="offsetHeight"in T?T.offsetHeight-T.clientHeight-_-Q:0,Z="offsetWidth"in T?0===T.offsetWidth?0:A/T.offsetWidth:0,X="offsetHeight"in T?0===T.offsetHeight?0:E/T.offsetHeight:0;if(d===T)H="start"===r?C:"end"===r?C-g:"nearest"===r?Bd(v,v+g,g,_,Q,v+C,v+C+y,y):C-g/2,F="start"===i?k:"center"===i?k-f/2:"end"===i?k-f:Bd(m,m+f,f,z,L,m+k,m+k+O,O),H=Math.max(0,H+v),F=Math.max(0,F+m);else{H="start"===r?C-R-_:"end"===r?C-j+Q+V:"nearest"===r?Bd(R,j,E,_,Q+V,C,C+y,y):C-(R+E/2)+V/2,F="start"===i?k-B-z:"center"===i?k-(B+A/2)+W/2:"end"===i?k-D+L+W:Bd(B,D,A,z,L+W,k,k+O,O);var Y=T.scrollLeft,K=T.scrollTop;C+=K-(H=Math.max(0,Math.min(K+H/X,T.scrollHeight-E/X+V))),k+=Y-(F=Math.max(0,Math.min(Y+F/Z,T.scrollWidth-A/Z+W)))}P.push({el:T,top:H,left:F})}return P};function zd(e){return e===Object(e)&&0!==Object.keys(e).length}function _d(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(zd(t)&&"function"==typeof t.behavior)return t.behavior(n?Nd(e,t):[]);if(n){var o=function(e){return!1===e?{block:"end",inline:"nearest"}:zd(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,i=e.left;o.scroll&&n?o.scroll({top:r,left:i,behavior:t}):(o.scrollTop=r,o.scrollLeft=i)}))}(Nd(e,o),o.behavior)}}function Ld(e){return null!=e&&e===e.window}function Qd(e,t){var n,o;if("undefined"==typeof window)return 0;const r=t?"scrollTop":"scrollLeft";let i=0;return Ld(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[r]:(e instanceof HTMLElement||e)&&(i=e[r]),e&&!Ld(e)&&"number"!=typeof i&&(i=null===(o=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===o?void 0:o[r]),i}function Hd(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=(()=>window),callback:o,duration:r=450}=t,i=n(),l=Qd(i,!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,l,e,r);Ld(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<r?wa(s):"function"==typeof o&&o()};wa(s)}function Fd(){}const Wd=Symbol("anchorContextKey"),Vd=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:o,lineWidthBold:r,colorPrimary:i,lineType:l,colorSplit:a}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,backgroundColor:"transparent",[t]:fl(fl({},Yu(e)),{position:"relative",paddingInlineStart:r,[`${t}-link`]:{paddingBlock:e.anchorPaddingBlock,paddingInline:`${e.anchorPaddingInline}px 0`,"&-title":fl(fl({},Xu),{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 ${l} ${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:i,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},Zd=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}}}}},Xd=Ju("Anchor",(e=>{const{fontSize:t,fontSizeLG:n,padding:o,paddingXXS:r}=e,i=nd(e,{holderOffsetBlock:r,anchorPaddingBlock:r,anchorPaddingBlockSecondary:r/2,anchorPaddingInline:o,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[Vd(i),Zd(i)]})),Yd=Ln({compatConfig:{MODE:3},name:"AAnchorLink",inheritAttrs:!1,props:Jl({prefixCls:String,href:String,title:Ta(),target:String,customTitleProps:ka()},{href:"#"}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t,r=null;const{handleClick:i,scrollTo:l,unregisterLink:a,registerLink:s,activeLink:c}=Ao(Wd,{registerLink:Fd,unregisterLink:Fd,scrollTo:Fd,activeLink:Xr((()=>"")),handleClick:Fd,direction:Xr((()=>"vertical"))}),{prefixCls:u}=Cd("anchor",e),d=t=>{const{href:n}=e;i(t,{title:r,href:n}),l(n)};return wn((()=>e.href),((e,t)=>{Vt((()=>{a(t),s(e)}))})),Gn((()=>{s(e.href)})),Jn((()=>{a(e.href)})),()=>{var t;const{href:i,target:l,title:a=n.title,customTitleProps:s={}}=e,p=u.value;r="function"==typeof a?a(s):a;const h=c.value===i,f=Tl(`${p}-link`,{[`${p}-link-active`]:h},o.class),g=Tl(`${p}-link-title`,{[`${p}-link-title-active`]:h});return Sr("div",hl(hl({},o),{},{class:f}),[Sr("a",{class:g,href:i,title:"string"==typeof r?r:"",target:l,onClick:d},[n.customTitle?n.customTitle(s):r]),null===(t=n.default)||void 0===t?void 0:t.call(n)])}}});function Kd(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Gd(e,t,n){return t&&Kd(e.prototype,t),n&&Kd(e,n),e}function Ud(){return(Ud=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function qd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Jd(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)t.indexOf(n=i[o])>=0||(r[n]=e[n]);return r}function ep(e){return 1==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(e);var t}var tp=Object.prototype,np=tp.toString,op=tp.hasOwnProperty,rp=/^\s*function (\w+)/;function ip(e){var t,n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){var o=n.toString().match(rp);return o?o[1]:""}return""}var lp=function(e){var t,n;return!1!==ep(e)&&"function"==typeof(t=e.constructor)&&!1!==ep(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")},ap=function(e){return e},sp=function(e,t){return op.call(e,t)},cp=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},up=Array.isArray||function(e){return"[object Array]"===np.call(e)},dp=function(e){return"[object Function]"===np.call(e)},pp=function(e){return lp(e)&&sp(e,"_vueTypes_name")},hp=function(e){return lp(e)&&(sp(e,"type")||["_vueTypes_name","validator","default","required"].some((function(t){return sp(e,t)})))};function fp(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function gp(e,t,n){var o;void 0===n&&(n=!1);var r=!0,i="";o=lp(e)?e:{type:e};var l=pp(o)?o._vueTypes_name+" - ":"";if(hp(o)&&null!==o.type){if(void 0===o.type||!0===o.type)return r;if(!o.required&&void 0===t)return r;up(o.type)?(r=o.type.some((function(e){return!0===gp(e,t,!0)})),i=o.type.map((function(e){return ip(e)})).join(" or ")):r="Array"===(i=ip(o))?up(t):"Object"===i?lp(t):"String"===i||"Number"===i||"Boolean"===i||"Function"===i?function(e){if(null==e)return"";var t=e.constructor.toString().match(rp);return t?t[1]:""}(t)===i:t instanceof o.type}if(!r){var a=l+'value "'+t+'" should be of type "'+i+'"';return!1===n?(ap(a),!1):a}if(sp(o,"validator")&&dp(o.validator)){var s=ap,c=[];if(ap=function(e){c.push(e)},r=o.validator(t),ap=s,!r){var u=(c.length>1?"* ":"")+c.join("\n* ");return c.length=0,!1===n?(ap(u),r):u}}return r}function mp(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?dp(e)||!0===gp(this,e,!0)?(this.default=up(e)?function(){return[].concat(e)}:lp(e)?function(){return Object.assign({},e)}:e,this):(ap(this._vueTypes_name+' - invalid default value: "'+e+'"'),this):this}}}),o=n.validator;return dp(o)&&(n.validator=fp(o,n)),n}function vp(e,t){var n=mp(e,t);return Object.defineProperty(n,"validate",{value:function(e){return dp(this.validator)&&ap(this._vueTypes_name+" - calling .validate() will overwrite the current custom validator function. Validator info:\n"+JSON.stringify(this)),this.validator=fp(e,this),this}})}function bp(e,t,n){var o,r,i=(o=t,r={},Object.getOwnPropertyNames(o).forEach((function(e){r[e]=Object.getOwnPropertyDescriptor(o,e)})),Object.defineProperties({},r));if(i._vueTypes_name=e,!lp(n))return i;var l,a,s=n.validator,c=Jd(n,["validator"]);if(dp(s)){var u=i.validator;u&&(u=null!==(a=(l=u).__original)&&void 0!==a?a:l),i.validator=fp(u?function(e){return u.call(this,e)&&s.call(this,e)}:s,i)}return Object.assign(i,c)}function yp(e){return e.replace(/^(?!\s*$)/gm," ")}var Op=function(){function e(){}return e.extend=function(e){var t=this;if(up(e))return e.forEach((function(e){return t.extend(e)})),this;var n=e.name,o=e.validate,r=void 0!==o&&o,i=e.getter,l=void 0!==i&&i,a=Jd(e,["name","validate","getter"]);if(sp(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var s,c=a.type;return pp(c)?(delete a.type,Object.defineProperty(this,n,l?{get:function(){return bp(n,c,a)}}:{value:function(){var e,t=bp(n,c,a);return t.validator&&(t.validator=(e=t.validator).bind.apply(e,[t].concat([].slice.call(arguments)))),t}})):(s=l?{get:function(){var e=Object.assign({},a);return r?vp(n,e):mp(n,e)},enumerable:!0}:{value:function(){var e,t,o=Object.assign({},a);return e=r?vp(n,o):mp(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))},Gd(e,null,[{key:"any",get:function(){return vp("any",{})}},{key:"func",get:function(){return vp("function",{type:Function}).def(this.defaults.func)}},{key:"bool",get:function(){return vp("boolean",{type:Boolean}).def(this.defaults.bool)}},{key:"string",get:function(){return vp("string",{type:String}).def(this.defaults.string)}},{key:"number",get:function(){return vp("number",{type:Number}).def(this.defaults.number)}},{key:"array",get:function(){return vp("array",{type:Array}).def(this.defaults.array)}},{key:"object",get:function(){return vp("object",{type:Object}).def(this.defaults.object)}},{key:"integer",get:function(){return mp("integer",{type:Number,validator:function(e){return cp(e)}}).def(this.defaults.integer)}},{key:"symbol",get:function(){return mp("symbol",{validator:function(e){return"symbol"==typeof e}})}}]),e}();function wp(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 qd(n,t),Gd(n,null,[{key:"sensibleDefaults",get:function(){return Ud({},this.defaults)},set:function(t){this.defaults=!1!==t?Ud({},!0!==t?t:e):{}}}]),n}(Op)).defaults=Ud({},e),t}Op.defaults={},Op.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 mp(e.name||"<<anonymous function>>",{validator:function(n){var o=e(n);return o||ap(this._vueTypes_name+" - "+t),o}})},Op.oneOf=function(e){if(!up(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 mp("oneOf",{type:n.length>0?n:void 0,validator:function(n){var o=-1!==e.indexOf(n);return o||ap(t),o}})},Op.instanceOf=function(e){return mp("instanceOf",{type:e})},Op.oneOfType=function(e){if(!up(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],o=0;o<e.length;o+=1){var r=e[o];if(hp(r)){if(pp(r)&&"oneOf"===r._vueTypes_name){n=n.concat(r.type);continue}if(dp(r.validator)&&(t=!0),!0!==r.type&&r.type){n=n.concat(r.type);continue}}n.push(r)}return n=n.filter((function(e,t){return n.indexOf(e)===t})),mp("oneOfType",t?{type:n,validator:function(t){var n=[],o=e.some((function(e){var o=gp(pp(e)&&"oneOf"===e._vueTypes_name?e.type||null:e,t,!0);return"string"==typeof o&&n.push(o),!0===o}));return o||ap("oneOfType - provided value does not match any of the "+n.length+" passed-in validators:\n"+yp(n.join("\n"))),o}}:{type:n})},Op.arrayOf=function(e){return mp("arrayOf",{type:Array,validator:function(t){var n,o=t.every((function(t){return!0===(n=gp(e,t,!0))}));return o||ap("arrayOf - value validation error:\n"+yp(n)),o}})},Op.objectOf=function(e){return mp("objectOf",{type:Object,validator:function(t){var n,o=Object.keys(t).every((function(o){return!0===(n=gp(e,t[o],!0))}));return o||ap("objectOf - value validation error:\n"+yp(n)),o}})},Op.shape=function(e){var t=Object.keys(e),n=t.filter((function(t){var n;return!!(null===(n=e[t])||void 0===n?void 0:n.required)})),o=mp("shape",{type:Object,validator:function(o){var r=this;if(!lp(o))return!1;var i=Object.keys(o);if(n.length>0&&n.some((function(e){return-1===i.indexOf(e)}))){var l=n.filter((function(e){return-1===i.indexOf(e)}));return ap(1===l.length?'shape - required property "'+l[0]+'" is not defined.':'shape - required properties "'+l.join('", "')+'" are not defined.'),!1}return i.every((function(n){if(-1===t.indexOf(n))return!0===r._vueTypes_isLoose||(ap('shape - shape definition does not include a "'+n+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var i=gp(e[n],o[n],!0);return"string"==typeof i&&ap('shape - "'+n+'" property validation error:\n '+yp(i)),!0===i}))}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),o},Op.utils={validate:function(e,t){return!0===gp(t,e,!0)},toType:function(e,t,n){return void 0===n&&(n=!1),n?vp(e,t):mp(e,t)}},function(e){function t(){return e.apply(this,arguments)||this}qd(t,e)}(wp());const xp=wp({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});function $p(e){return e.default=void 0,e}xp.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 Sp=(e,t,n)=>{As(e,`[ant-design-vue: ${t}] ${n}`)};function Cp(){return window}function kp(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 Pp=/#([\S ]+)$/,Mp=Ln({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:Ia(),direction:xp.oneOf(["vertical","horizontal"]).def("vertical"),onChange:Function,onClick:Function},setup(e,t){let{emit:n,attrs:o,slots:r,expose:i}=t;const{prefixCls:l,getTargetContainer:a,direction:s}=Cd("anchor",e),c=Xr((()=>{var t;return null!==(t=e.direction)&&void 0!==t?t:"vertical"})),u=Ot(null),d=Ot(),p=it({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),h=Ot(null),f=Xr((()=>{const{getContainer:t}=e;return t||(null==a?void 0:a.value)||Cp})),g=t=>{const{getCurrentAnchor:o}=e;h.value!==t&&(h.value="function"==typeof o?o(t):t,n("change",t))},m=t=>{const{offsetTop:n,targetOffset:o}=e;g(t);const r=Pp.exec(t);if(!r)return;const i=document.getElementById(r[1]);if(!i)return;const l=f.value();let a=Qd(l,!0)+kp(i,l);a-=void 0!==o?o:n||0,p.animating=!0,Hd(a,{callback:()=>{p.animating=!1},getContainer:f.value})};i({scrollTo:m});const v=()=>{if(p.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=f.value();return p.links.forEach((r=>{const i=Pp.exec(r.toString());if(!i)return;const l=document.getElementById(i[1]);if(l){const i=kp(l,o);i<e+t&&n.push({link:r,top:i})}})),n.length?n.reduce(((e,t)=>t.top>e.top?t:e)).link:""}(void 0!==o?o:t||0,n);g(r)};(e=>{Eo(Wd,e)})({registerLink:e=>{p.links.includes(e)||p.links.push(e)},unregisterLink:e=>{const t=p.links.indexOf(e);-1!==t&&p.links.splice(t,1)},activeLink:h,scrollTo:m,handleClick:(e,t)=>{n("click",e,t)},direction:c}),Gn((()=>{Vt((()=>{const e=f.value();p.scrollContainer=e,p.scrollEvent=ja(p.scrollContainer,"scroll",v),v()}))})),Jn((()=>{p.scrollEvent&&p.scrollEvent.remove()})),qn((()=>{if(p.scrollEvent){const e=f.value();p.scrollContainer!==e&&(p.scrollContainer=e,p.scrollEvent.remove(),p.scrollEvent=ja(p.scrollContainer,"scroll",v),v())}(()=>{const e=d.value.querySelector(`.${l.value}-link-title-active`);if(e&&u.value){const t="horizontal"===c.value;u.value.style.top=t?"":`${e.offsetTop+e.clientHeight/2}px`,u.value.style.height=t?"":`${e.clientHeight}px`,u.value.style.left=t?`${e.offsetLeft}px`:"",u.value.style.width=t?`${e.clientWidth}px`:"",t&&_d(e,{scrollMode:"if-needed",block:"nearest"})}})()}));const b=e=>Array.isArray(e)?e.map((e=>{const{children:t,key:n,href:o,target:i,class:l,style:a,title:s}=e;return Sr(Yd,{key:n,href:o,target:i,class:l,style:a,title:s,customTitleProps:e},{default:()=>["vertical"===c.value?b(t):null],customTitle:r.customTitle})})):null,[y,O]=Xd(l);return()=>{var t;const{offsetTop:n,affix:i,showInkInFixed:a}=e,p=l.value,g=Tl(`${p}-ink`,{[`${p}-ink-visible`]:h.value}),m=Tl(O.value,e.wrapperClass,`${p}-wrapper`,{[`${p}-wrapper-horizontal`]:"horizontal"===c.value,[`${p}-rtl`]:"rtl"===s.value}),v=Tl(p,{[`${p}-fixed`]:!i&&!a}),w=fl({maxHeight:n?`calc(100vh - ${n}px)`:"100vh"},e.wrapperStyle),x=Sr("div",{class:m,style:w,ref:d},[Sr("div",{class:v},[Sr("span",{class:g,ref:u},null),Array.isArray(e.items)?b(e.items):null===(t=r.default)||void 0===t?void 0:t.call(r)])]);return y(i?Sr(Ad,hl(hl({},o),{},{offsetTop:n,target:f.value}),{default:()=>[x]}):x)}}});function Tp(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 Ip(e,t){const{label:n,value:o,options:r}=e||{};return{label:n||(t?"children":"label"),value:o||"value",options:r||"options"}}function Ep(e){const t=fl({},e);return"props"in t||Object.defineProperty(t,"props",{get:()=>t}),t}function Ap(){return""}function Rp(e){return e?e.ownerDocument:window.document}function Dp(){}Mp.Link=Yd,Mp.install=function(e){return e.component(Mp.name,Mp),e.component(Mp.Link.name,Mp.Link),e};const jp=()=>({action:xp.oneOfType([xp.string,xp.arrayOf(xp.string)]).def([]),showAction:xp.any.def([]),hideAction:xp.any.def([]),getPopupClassNameFromAlign:xp.any.def(Ap),onPopupVisibleChange:Function,afterPopupVisibleChange:xp.func.def(Dp),popup:xp.any,popupStyle:{type:Object,default:void 0},prefixCls:xp.string.def("rc-trigger-popup"),popupClassName:xp.string.def(""),popupPlacement:String,builtinPlacements:xp.object,popupTransitionName:String,popupAnimation:xp.any,mouseEnterDelay:xp.number.def(0),mouseLeaveDelay:xp.number.def(.1),zIndex:Number,focusDelay:xp.number.def(0),blurDelay:xp.number.def(.15),getPopupContainer:Function,getDocument:xp.func.def(Rp),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:xp.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}),Bp={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}},Np=fl(fl({},Bp),{mobile:{type:Object}}),zp=fl(fl({},Bp),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function _p(e){let{prefixCls:t,animation:n,transitionName:o}=e;return n?{name:`${t}-${n}`}:o?{name:o}:{}}function Lp(e){const{prefixCls:t,visible:n,zIndex:o,mask:r,maskAnimation:i,maskTransitionName:l}=e;if(!r)return null;let a={};return(l||i)&&(a=_p({prefixCls:t,transitionName:l,animation:i})),Sr(ni,hl({appear:!0},a),{default:()=>{return[kn(Sr("div",{style:{zIndex:o},class:`${t}-mask`},null),[[(e="if",mn("directives",e)),n]])];var e}})}Lp.displayName="Mask";const Qp=Ln({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:Np,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,slots:o}=t;const r=Ot();return n({forceAlign:()=>{},getElement:()=>r.value}),()=>{var t;const{zIndex:n,visible:i,prefixCls:l,mobile:{popupClassName:a,popupStyle:s,popupMotion:c={},popupRender:u}={}}=e,d=fl({zIndex:n},s);let p=oa(null===(t=o.default)||void 0===t?void 0:t.call(o));p.length>1&&(p=Sr("div",{class:`${l}-content`},[p])),u&&(p=u(p));const h=Tl(l,a);return Sr(ni,hl({ref:r},c),{default:()=>[i?Sr("div",{class:h,style:d},[p]):null]})}}});var Hp=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function l(e){try{s(o.next(e))}catch($pe){i($pe)}}function a(e){try{s(o.throw(e))}catch($pe){i($pe)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}s((o=o.apply(e,t||[])).next())}))};const Fp=["measure","align",null,"motion"];function Wp(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 Vp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wp(Object(n),!0).forEach((function(t){Xp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zp(e){return(Zp="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 Xp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yp,Kp={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function Gp(){if(void 0!==Yp)return Yp;Yp="";var e=document.createElement("p").style;for(var t in Kp)t+"Transform"in e&&(Yp=t);return Yp}function Up(){return Gp()?"".concat(Gp(),"TransitionProperty"):"transitionProperty"}function qp(){return Gp()?"".concat(Gp(),"Transform"):"transform"}function Jp(e,t){var n=Up();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function eh(e,t){var n=qp();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var th,nh=/matrix\((.*)\)/,oh=/matrix3d\((.*)\)/;function rh(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function ih(e,t,n){var o=n;if("object"!==Zp(t))return void 0!==o?("number"==typeof o&&(o="".concat(o,"px")),void(e.style[t]=o)):th(e,t);for(var r in t)t.hasOwnProperty(r)&&ih(e,r,t[r])}function lh(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function ah(e){return lh(e)}function sh(e){return lh(e,!0)}function ch(e){var t=function(e){var t,n,o,r=e.ownerDocument,i=r.body,l=r&&r.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),o=Math.floor(t.top),{left:n-=l.clientLeft||i.clientLeft||0,top:o-=l.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=ah(o),t.top+=sh(o),t}function uh(e){return null!=e&&e==e.window}function dh(e){return uh(e)?e.document:9===e.nodeType?e:e.ownerDocument}var ph=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),hh=/^(top|right|bottom|left)$/,fh="currentStyle",gh="runtimeStyle",mh="left";function vh(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function bh(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function yh(e,t,n){"static"===ih(e,"position")&&(e.style.position="relative");var o=-999,r=-999,i=vh("left",n),l=vh("top",n),a=bh(i),s=bh(l);"left"!==i&&(o=999),"top"!==l&&(r=999);var c,u="",d=ch(e);("left"in t||"top"in t)&&(u=(c=e).style.transitionProperty||c.style[Up()]||"",Jp(e,"none")),"left"in t&&(e.style[a]="",e.style[i]="".concat(o,"px")),"top"in t&&(e.style[s]="",e.style[l]="".concat(r,"px")),rh(e);var p=ch(e),h={};for(var f in t)if(t.hasOwnProperty(f)){var g=vh(f,n),m="left"===f?o:r,v=d[f]-p[f];h[g]=g===f?m+v:m-v}ih(e,h),rh(e),("left"in t||"top"in t)&&Jp(e,u);var b={};for(var y in t)if(t.hasOwnProperty(y)){var O=vh(y,n),w=t[y]-d[y];b[O]=y===O?h[O]+w:h[O]-w}ih(e,b)}function Oh(e,t){var n=ch(e),o=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(qp());if(n&&"none"!==n){var o=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}(e),r={x:o.x,y:o.y};"left"in t&&(r.x=o.x+t.left-n.left),"top"in t&&(r.y=o.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),o=n.getPropertyValue("transform")||n.getPropertyValue(qp());if(o&&"none"!==o){var r,i=o.match(nh);i?((r=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,r[5]=t.y,eh(e,"matrix(".concat(r.join(","),")"))):((r=o.match(oh)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,r[13]=t.y,eh(e,"matrix3d(".concat(r.join(","),")")))}else eh(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,r)}function wh(e,t){for(var n=0;n<e.length;n++)t(e[n])}function xh(e){return"border-box"===th(e,"boxSizing")}"undefined"!=typeof window&&(th=window.getComputedStyle?function(e,t,n){var o=n,r="",i=dh(e);return(o=o||i.defaultView.getComputedStyle(e,null))&&(r=o.getPropertyValue(t)||o[t]),r}:function(e,t){var n=e[fh]&&e[fh][t];if(ph.test(n)&&!hh.test(t)){var o=e.style,r=o[mh],i=e[gh][mh];e[gh][mh]=e[fh][mh],o[mh]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[mh]=r,e[gh][mh]=i}return""===n?"auto":n});var $h=["margin","border","padding"];function Sh(e,t,n){var o,r,i,l=0;for(r=0;r<t.length;r++)if(o=t[r])for(i=0;i<n.length;i++){var a=void 0;a="border"===o?"".concat(o).concat(n[i],"Width"):o+n[i],l+=parseFloat(th(e,a))||0}return l}var Ch={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function kh(e,t,n){var o=n;if(uh(e))return"width"===t?Ch.viewportWidth(e):Ch.viewportHeight(e);if(9===e.nodeType)return"width"===t?Ch.docWidth(e):Ch.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),l=xh(e),a=0;(null==i||i<=0)&&(i=void 0,(null==(a=th(e,t))||Number(a)<0)&&(a=e.style[t]||0),a=Math.floor(parseFloat(a))||0),void 0===o&&(o=l?1:-1);var s=void 0!==i||l,c=i||a;return-1===o?s?c-Sh(e,["border","padding"],r):a:s?1===o?c:c+(2===o?-Sh(e,["border"],r):Sh(e,["margin"],r)):a+Sh(e,$h.slice(o),r)}wh(["Width","Height"],(function(e){Ch["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],Ch["viewport".concat(e)](n))},Ch["viewport".concat(e)]=function(t){var n="client".concat(e),o=t.document,r=o.body,i=o.documentElement[n];return"CSS1Compat"===o.compatMode&&i||r&&r[n]||i}}));var Ph={position:"absolute",visibility:"hidden",display:"block"};function Mh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,r=t[0];return 0!==r.offsetWidth?o=kh.apply(void 0,t):function(e,t,n){var o,r={},i=e.style;for(o in t)t.hasOwnProperty(o)&&(r[o]=i[o],i[o]=t[o]);for(o in n.call(e),t)t.hasOwnProperty(o)&&(i[o]=r[o])}(r,Ph,(function(){o=kh.apply(void 0,t)})),o}function Th(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}wh(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);Ch["outer".concat(t)]=function(t,n){return t&&Mh(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];Ch[e]=function(t,o){var r=o;return void 0!==r?t?(xh(t)&&(r+=Sh(t,["padding","border"],n)),ih(t,e,r)):void 0:t&&Mh(t,e,-1)}}));var Ih={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:dh,offset:function(e,t,n){if(void 0===t)return ch(e);!function(e,t,n){if(n.ignoreShake){var o=ch(e),r=o.left.toFixed(0),i=o.top.toFixed(0),l=t.left.toFixed(0),a=t.top.toFixed(0);if(r===l&&i===a)return}n.useCssRight||n.useCssBottom?yh(e,t,n):n.useCssTransform&&qp()in document.body.style?Oh(e,t):yh(e,t,n)}(e,t,n||{})},isWindow:uh,each:wh,css:ih,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:Th,getWindowScrollLeft:function(e){return ah(e)},getWindowScrollTop:function(e){return sh(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)Ih.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};Th(Ih,Ch);var Eh=Ih.getParent;function Ah(e){if(Ih.isWindow(e)||9===e.nodeType)return null;var t,n=Ih.getDocument(e).body,o=Ih.css(e,"position");if("fixed"!==o&&"absolute"!==o)return"html"===e.nodeName.toLowerCase()?null:Eh(e);for(t=Eh(e);t&&t!==n&&9!==t.nodeType;t=Eh(t))if("static"!==(o=Ih.css(t,"position")))return t;return null}var Rh=Ih.getParent;function Dh(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},o=Ah(e),r=Ih.getDocument(e),i=r.defaultView||r.parentWindow,l=r.body,a=r.documentElement;o;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===o.clientWidth||o===l||o===a||"visible"===Ih.css(o,"overflow")){if(o===l||o===a)break}else{var s=Ih.offset(o);s.left+=o.clientLeft,s.top+=o.clientTop,n.top=Math.max(n.top,s.top),n.right=Math.min(n.right,s.left+o.clientWidth),n.bottom=Math.min(n.bottom,s.top+o.clientHeight),n.left=Math.max(n.left,s.left)}o=Ah(o)}var c=null;Ih.isWindow(e)||9===e.nodeType||(c=e.style.position,"absolute"===Ih.css(e,"position")&&(e.style.position="fixed"));var u=Ih.getWindowScrollLeft(i),d=Ih.getWindowScrollTop(i),p=Ih.viewportWidth(i),h=Ih.viewportHeight(i),f=a.scrollWidth,g=a.scrollHeight,m=window.getComputedStyle(l);if("hidden"===m.overflowX&&(f=i.innerWidth),"hidden"===m.overflowY&&(g=i.innerHeight),e.style&&(e.style.position=c),t||function(e){if(Ih.isWindow(e)||9===e.nodeType)return!1;var t=Ih.getDocument(e),n=t.body,o=null;for(o=Rh(e);o&&o!==n&&o!==t;o=Rh(o))if("fixed"===Ih.css(o,"position"))return!0;return!1}(e))n.left=Math.max(n.left,u),n.top=Math.max(n.top,d),n.right=Math.min(n.right,u+p),n.bottom=Math.min(n.bottom,d+h);else{var v=Math.max(f,u+p);n.right=Math.min(n.right,v);var b=Math.max(g,d+h);n.bottom=Math.min(n.bottom,b)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function jh(e){var t,n,o;if(Ih.isWindow(e)||9===e.nodeType){var r=Ih.getWindow(e);t={left:Ih.getWindowScrollLeft(r),top:Ih.getWindowScrollTop(r)},n=Ih.viewportWidth(r),o=Ih.viewportHeight(r)}else t=Ih.offset(e),n=Ih.outerWidth(e),o=Ih.outerHeight(e);return t.width=n,t.height=o,t}function Bh(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,i=e.height,l=e.left,a=e.top;return"c"===n?a+=i/2:"b"===n&&(a+=i),"c"===o?l+=r/2:"r"===o&&(l+=r),{left:l,top:a}}function Nh(e,t,n,o,r){var i=Bh(t,n[1]),l=Bh(e,n[0]),a=[l.left-i.left,l.top-i.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 zh(e,t,n){return e.left<n.left||e.left+t.width>n.right}function _h(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function Lh(e,t,n){var o=[];return Ih.each(e,(function(e){o.push(e.replace(t,(function(e){return n[e]})))})),o}function Qh(e,t){return e[t]=-e[t],e}function Hh(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Fh(e,t){e[0]=Hh(e[0],t.width),e[1]=Hh(e[1],t.height)}function Wh(e,t,n,o){var r=n.points,i=n.offset||[0,0],l=n.targetOffset||[0,0],a=n.overflow,s=n.source||e;i=[].concat(i),l=[].concat(l);var c={},u=0,d=Dh(s,!(!(a=a||{})||!a.alwaysByViewport)),p=jh(s);Fh(i,p),Fh(l,t);var h=Nh(p,t,r,i,l),f=Ih.merge(p,h);if(d&&(a.adjustX||a.adjustY)&&o){if(a.adjustX&&zh(h,p,d)){var g=Lh(r,/[lr]/gi,{l:"r",r:"l"}),m=Qh(i,0),v=Qh(l,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Nh(p,t,g,m,v),p,d)||(u=1,r=g,i=m,l=v)}if(a.adjustY&&_h(h,p,d)){var b=Lh(r,/[tb]/gi,{t:"b",b:"t"}),y=Qh(i,1),O=Qh(l,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Nh(p,t,b,y,O),p,d)||(u=1,r=b,i=y,l=O)}u&&(h=Nh(p,t,r,i,l),Ih.mix(f,h));var w=zh(h,p,d),x=_h(h,p,d);if(w||x){var $=r;w&&($=Lh(r,/[lr]/gi,{l:"r",r:"l"})),x&&($=Lh(r,/[tb]/gi,{t:"b",b:"t"})),r=$,i=n.offset||[0,0],l=n.targetOffset||[0,0]}c.adjustX=a.adjustX&&w,c.adjustY=a.adjustY&&x,(c.adjustX||c.adjustY)&&(f=function(e,t,n,o){var r=Ih.clone(e),i={width:t.width,height:t.height};return o.adjustX&&r.left<n.left&&(r.left=n.left),o.resizeWidth&&r.left>=n.left&&r.left+i.width>n.right&&(i.width-=r.left+i.width-n.right),o.adjustX&&r.left+i.width>n.right&&(r.left=Math.max(n.right-i.width,n.left)),o.adjustY&&r.top<n.top&&(r.top=n.top),o.resizeHeight&&r.top>=n.top&&r.top+i.height>n.bottom&&(i.height-=r.top+i.height-n.bottom),o.adjustY&&r.top+i.height>n.bottom&&(r.top=Math.max(n.bottom-i.height,n.top)),Ih.mix(r,i)}(h,p,d,c))}return f.width!==p.width&&Ih.css(s,"width",Ih.width(s)+f.width-p.width),f.height!==p.height&&Ih.css(s,"height",Ih.height(s)+f.height-p.height),Ih.offset(s,{left:f.left,top:f.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:r,offset:i,targetOffset:l,overflow:c}}function Vh(e,t,n){var o=n.target||t,r=jh(o),i=!function(e,t){var n=Dh(e,t),o=jh(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 Wh(e,r,n,i)}function Zh(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=da(e)[0]),!r)return null;const i=Cr(r,t,o);return i.props=n?fl(fl({},i.props),t):i.props,Rs("object"!=typeof i.props.class),i}function Xh(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=>Zh(e,t,n)))}function Yh(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];if(Array.isArray(e))return e.map((e=>Yh(e,t,n,o)));{if(!br(e))return e;const r=Zh(e,t,n,o);return Array.isArray(r.children)&&(r.children=Yh(r.children)),r}}Vh.__getOffsetParent=Ah,Vh.__getVisibleRectForElement=Dh;const Kh=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 Gh(e,t){let n=null,o=null;const r=new Ul((function(e){let[{target:r}]=e;if(!document.documentElement.contains(r))return;const{width:i,height:l}=r.getBoundingClientRect(),a=Math.floor(i),s=Math.floor(l);n===a&&o===s||Promise.resolve().then((()=>{t({width:a,height:s})})),n=a,o=s}));return e&&r.observe(e),()=>{r.disconnect()}}function Uh(e,t){return e===t||e!=e&&t!=t}function qh(e,t){for(var n=e.length;n--;)if(Uh(e[n][0],t))return n;return-1}var Jh=Array.prototype.splice;function ef(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}ef.prototype.clear=function(){this.__data__=[],this.size=0},ef.prototype.delete=function(e){var t=this.__data__,n=qh(t,e);return!(n<0||(n==t.length-1?t.pop():Jh.call(t,n,1),--this.size,0))},ef.prototype.get=function(e){var t=this.__data__,n=qh(t,e);return n<0?void 0:t[n][1]},ef.prototype.has=function(e){return qh(this.__data__,e)>-1},ef.prototype.set=function(e,t){var n=this.__data__,o=qh(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};var tf="object"==typeof global&&global&&global.Object===Object&&global,nf="object"==typeof self&&self&&self.Object===Object&&self,of=tf||nf||Function("return this")(),rf=of.Symbol,lf=Object.prototype,af=lf.hasOwnProperty,sf=lf.toString,cf=rf?rf.toStringTag:void 0,uf=Object.prototype.toString,df=rf?rf.toStringTag:void 0;function pf(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":df&&df in Object(e)?function(e){var t=af.call(e,cf),n=e[cf];try{e[cf]=void 0;var o=!0}catch($pe){}var r=sf.call(e);return o&&(t?e[cf]=n:delete e[cf]),r}(e):function(e){return uf.call(e)}(e)}function hf(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ff(e){if(!hf(e))return!1;var t=pf(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var gf,mf=of["__core-js_shared__"],vf=(gf=/[^.]+$/.exec(mf&&mf.keys&&mf.keys.IE_PROTO||""))?"Symbol(src)_1."+gf:"",bf=Function.prototype.toString;function yf(e){if(null!=e){try{return bf.call(e)}catch($pe){}try{return e+""}catch($pe){}}return""}var Of=/^\[object .+?Constructor\]$/,wf=Function.prototype,xf=Object.prototype,$f=wf.toString,Sf=xf.hasOwnProperty,Cf=RegExp("^"+$f.call(Sf).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kf(e){return!(!hf(e)||(t=e,vf&&vf in t))&&(ff(e)?Cf:Of).test(yf(e));var t}function Pf(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return kf(n)?n:void 0}var Mf=Pf(of,"Map"),Tf=Pf(Object,"create"),If=Object.prototype.hasOwnProperty,Ef=Object.prototype.hasOwnProperty;function Af(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Rf(e,t){var n,o,r=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Df(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function jf(e){var t=this.__data__=new ef(e);this.size=t.size}function Bf(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Df;++t<n;)this.add(e[t])}function Nf(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}function zf(e,t){return e.has(t)}function _f(e,t,n,o,r,i){var l=1&n,a=e.length,s=t.length;if(a!=s&&!(l&&s>a))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,h=2&n?new Bf:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var f=e[d],g=t[d];if(o)var m=l?o(g,f,d,t,e,i):o(f,g,d,e,t,i);if(void 0!==m){if(m)continue;p=!1;break}if(h){if(!Nf(t,(function(e,t){if(!zf(h,t)&&(f===e||r(f,e,n,o,i)))return h.push(t)}))){p=!1;break}}else if(f!==g&&!r(f,g,n,o,i)){p=!1;break}}return i.delete(e),i.delete(t),p}Af.prototype.clear=function(){this.__data__=Tf?Tf(null):{},this.size=0},Af.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Af.prototype.get=function(e){var t=this.__data__;if(Tf){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return If.call(t,e)?t[e]:void 0},Af.prototype.has=function(e){var t=this.__data__;return Tf?void 0!==t[e]:Ef.call(t,e)},Af.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Tf&&void 0===t?"__lodash_hash_undefined__":t,this},Df.prototype.clear=function(){this.size=0,this.__data__={hash:new Af,map:new(Mf||ef),string:new Af}},Df.prototype.delete=function(e){var t=Rf(this,e).delete(e);return this.size-=t?1:0,t},Df.prototype.get=function(e){return Rf(this,e).get(e)},Df.prototype.has=function(e){return Rf(this,e).has(e)},Df.prototype.set=function(e,t){var n=Rf(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},jf.prototype.clear=function(){this.__data__=new ef,this.size=0},jf.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},jf.prototype.get=function(e){return this.__data__.get(e)},jf.prototype.has=function(e){return this.__data__.has(e)},jf.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ef){var o=n.__data__;if(!Mf||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Df(o)}return n.set(e,t),this.size=n.size,this},Bf.prototype.add=Bf.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Bf.prototype.has=function(e){return this.__data__.has(e)};var Lf=of.Uint8Array;function Qf(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n}function Hf(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Ff=rf?rf.prototype:void 0,Wf=Ff?Ff.valueOf:void 0;function Vf(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e}var Zf=Array.isArray;function Xf(e,t,n){var o=t(e);return Zf(e)?o:Vf(o,n(e))}function Yf(){return[]}var Kf=Object.prototype.propertyIsEnumerable,Gf=Object.getOwnPropertySymbols,Uf=Gf?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var l=e[n];t(l,n,e)&&(i[r++]=l)}return i}(Gf(e),(function(t){return Kf.call(e,t)})))}:Yf;function qf(e){return null!=e&&"object"==typeof e}function Jf(e){return qf(e)&&"[object Arguments]"==pf(e)}var eg=Object.prototype,tg=eg.hasOwnProperty,ng=eg.propertyIsEnumerable,og=Jf(function(){return arguments}())?Jf:function(e){return qf(e)&&tg.call(e,"callee")&&!ng.call(e,"callee")};const rg=og;var ig="object"==typeof e&&e&&!e.nodeType&&e,lg=ig&&"object"==typeof t&&t&&!t.nodeType&&t,ag=lg&&lg.exports===ig?of.Buffer:void 0,sg=(ag?ag.isBuffer:void 0)||function(){return!1},cg=/^(?:0|[1-9]\d*)$/;function ug(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&cg.test(e))&&e>-1&&e%1==0&&e<t}function dg(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var pg={};function hg(e){return function(t){return e(t)}}pg["[object Float32Array]"]=pg["[object Float64Array]"]=pg["[object Int8Array]"]=pg["[object Int16Array]"]=pg["[object Int32Array]"]=pg["[object Uint8Array]"]=pg["[object Uint8ClampedArray]"]=pg["[object Uint16Array]"]=pg["[object Uint32Array]"]=!0,pg["[object Arguments]"]=pg["[object Array]"]=pg["[object ArrayBuffer]"]=pg["[object Boolean]"]=pg["[object DataView]"]=pg["[object Date]"]=pg["[object Error]"]=pg["[object Function]"]=pg["[object Map]"]=pg["[object Number]"]=pg["[object Object]"]=pg["[object RegExp]"]=pg["[object Set]"]=pg["[object String]"]=pg["[object WeakMap]"]=!1;var fg="object"==typeof e&&e&&!e.nodeType&&e,gg=fg&&"object"==typeof t&&t&&!t.nodeType&&t,mg=gg&&gg.exports===fg&&tf.process,vg=function(){try{var e=gg&&gg.require&&gg.require("util").types;return e||mg&&mg.binding&&mg.binding("util")}catch($pe){}}(),bg=vg&&vg.isTypedArray;const yg=bg?hg(bg):function(e){return qf(e)&&dg(e.length)&&!!pg[pf(e)]};var Og=Object.prototype.hasOwnProperty;function wg(e,t){var n=Zf(e),o=!n&&rg(e),r=!n&&!o&&sg(e),i=!n&&!o&&!r&&yg(e),l=n||o||r||i,a=l?function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}(e.length,String):[],s=a.length;for(var c in e)!t&&!Og.call(e,c)||l&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ug(c,s))||a.push(c);return a}var xg=Object.prototype;function $g(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||xg)}function Sg(e,t){return function(n){return e(t(n))}}var Cg=Sg(Object.keys,Object),kg=Object.prototype.hasOwnProperty;function Pg(e){if(!$g(e))return Cg(e);var t=[];for(var n in Object(e))kg.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Mg(e){return null!=e&&dg(e.length)&&!ff(e)}function Tg(e){return Mg(e)?wg(e):Pg(e)}function Ig(e){return Xf(e,Tg,Uf)}var Eg=Object.prototype.hasOwnProperty,Ag=Pf(of,"DataView"),Rg=Pf(of,"Promise"),Dg=Pf(of,"Set"),jg=Pf(of,"WeakMap"),Bg="[object Map]",Ng="[object Promise]",zg="[object Set]",_g="[object WeakMap]",Lg="[object DataView]",Qg=yf(Ag),Hg=yf(Mf),Fg=yf(Rg),Wg=yf(Dg),Vg=yf(jg),Zg=pf;(Ag&&Zg(new Ag(new ArrayBuffer(1)))!=Lg||Mf&&Zg(new Mf)!=Bg||Rg&&Zg(Rg.resolve())!=Ng||Dg&&Zg(new Dg)!=zg||jg&&Zg(new jg)!=_g)&&(Zg=function(e){var t=pf(e),n="[object Object]"==t?e.constructor:void 0,o=n?yf(n):"";if(o)switch(o){case Qg:return Lg;case Hg:return Bg;case Fg:return Ng;case Wg:return zg;case Vg:return _g}return t});const Xg=Zg;var Yg="[object Arguments]",Kg="[object Array]",Gg="[object Object]",Ug=Object.prototype.hasOwnProperty;function qg(e,t,n,o,r,i){var l=Zf(e),a=Zf(t),s=l?Kg:Xg(e),c=a?Kg:Xg(t),u=(s=s==Yg?Gg:s)==Gg,d=(c=c==Yg?Gg:c)==Gg,p=s==c;if(p&&sg(e)){if(!sg(t))return!1;l=!0,u=!1}if(p&&!u)return i||(i=new jf),l||yg(e)?_f(e,t,n,o,r,i):function(e,t,n,o,r,i,l){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Lf(e),new Lf(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Uh(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=Qf;case"[object Set]":var s=1&o;if(a||(a=Hf),e.size!=t.size&&!s)return!1;var c=l.get(e);if(c)return c==t;o|=2,l.set(e,t);var u=_f(a(e),a(t),o,r,i,l);return l.delete(e),u;case"[object Symbol]":if(Wf)return Wf.call(e)==Wf.call(t)}return!1}(e,t,s,n,o,r,i);if(!(1&n)){var h=u&&Ug.call(e,"__wrapped__"),f=d&&Ug.call(t,"__wrapped__");if(h||f){var g=h?e.value():e,m=f?t.value():t;return i||(i=new jf),r(g,m,n,o,i)}}return!!p&&(i||(i=new jf),function(e,t,n,o,r,i){var l=1&n,a=Ig(e),s=a.length;if(s!=Ig(t).length&&!l)return!1;for(var c=s;c--;){var u=a[c];if(!(l?u in t:Eg.call(t,u)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var h=!0;i.set(e,t),i.set(t,e);for(var f=l;++c<s;){var g=e[u=a[c]],m=t[u];if(o)var v=l?o(m,g,u,t,e,i):o(g,m,u,e,t,i);if(!(void 0===v?g===m||r(g,m,n,o,i):v)){h=!1;break}f||(f="constructor"==u)}if(h&&!f){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,o,r,i))}function Jg(e,t,n,o,r){return e===t||(null==e||null==t||!qf(e)&&!qf(t)?e!=e&&t!=t:qg(e,t,n,o,Jg,r))}function em(e,t){return Jg(e,t)}function tm(e){return"function"!=typeof e?null:e()}function nm(e){return"object"==typeof e&&e?e:null}const om=Ln({compatConfig:{MODE:3},name:"Align",props:{align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean},emits:["align"],setup(e,t){let{expose:n,slots:o}=t;const r=Ot({}),i=Ot(),[l,a]=((e,t)=>{let n=!1,o=null;function r(){clearTimeout(o)}return[function i(l){if(n&&!0!==l)r(),o=setTimeout((()=>{n=!1,i()}),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:l}=e;if(!t&&n&&i.value){const e=i.value;let t;const w=tm(n),x=nm(n);r.value.element=w,r.value.point=x,r.value.align=o;const{activeElement:$}=document;return w&&Kh(w)?t=Vh(e,w,o):x&&(a=e,s=x,c=o,p=Ih.getDocument(a),h=p.defaultView||p.parentWindow,f=Ih.getWindowScrollLeft(h),g=Ih.getWindowScrollTop(h),m=Ih.viewportWidth(h),v=Ih.viewportHeight(h),b={left:u="pageX"in s?s.pageX:f+s.clientX,top:d="pageY"in s?s.pageY:g+s.clientY,width:0,height:0},y=u>=0&&u<=f+m&&d>=0&&d<=g+v,O=[c.points[0],"cc"],t=Wh(a,b,Vp(Vp({},c),{},{points:O}),y)),function(e,t){e!==document.activeElement&&vs(t,e)&&"function"==typeof e.focus&&e.focus()}($,e),l&&t&&l(e,t),!0}var a,s,c,u,d,p,h,f,g,m,v,b,y,O;return!1}),Xr((()=>e.monitorBufferTime))),s=Ot({cancel:()=>{}}),c=Ot({cancel:()=>{}}),u=()=>{const t=e.target,n=tm(t),o=nm(t);var a,u;i.value!==c.value.element&&(c.value.cancel(),c.value.element=i.value,c.value.cancel=Gh(i.value,l)),r.value.element===n&&((a=r.value.point)===(u=o)||a&&u&&("pageX"in u&&"pageY"in u?a.pageX===u.pageX&&a.pageY===u.pageY:"clientX"in u&&"clientY"in u&&a.clientX===u.clientX&&a.clientY===u.clientY))&&em(r.value.align,e.align)||(l(),s.value.element!==n&&(s.value.cancel(),s.value.element=n,s.value.cancel=Gh(n,l)))};Gn((()=>{Vt((()=>{u()}))})),qn((()=>{Vt((()=>{u()}))})),wn((()=>e.disabled),(e=>{e?a():l()}),{immediate:!0,flush:"post"});const d=Ot(null);return wn((()=>e.monitorWindowResize),(e=>{e?d.value||(d.value=ja(window,"resize",l)):d.value&&(d.value.remove(),d.value=null)}),{flush:"post"}),eo((()=>{s.value.cancel(),c.value.cancel(),d.value&&d.value.remove(),a()})),n({forceAlign:()=>l(!0)}),()=>{const e=null==o?void 0:o.default();return e?Zh(e[0],{ref:i},!0,!0):null}}});$a("bottomLeft","bottomRight","topLeft","topRight");const rm=e=>void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down",im=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return fl(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)},lm=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return fl(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)},am=(e,t,n)=>void 0!==n?n:`${e}-${t}`,sm=Ln({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:Bp,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,attrs:o,slots:r}=t;const i=wt(),l=wt(),a=wt(),[s,c]=(e=>{const t=wt({width:0,height:0});return[Xr((()=>{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}}]})(Et(e,"stretch")),u=wt(!1);let d;wn((()=>e.visible),(t=>{clearTimeout(d),t?d=setTimeout((()=>{u.value=e.visible})):u.value=!1}),{immediate:!0});const[p,h]=((e,t)=>{const n=wt(null),o=wt(),r=wt(!1);function i(e){r.value||(n.value=e)}function l(){wa.cancel(o.value)}return wn(e,(()=>{i("measure")}),{immediate:!0,flush:"post"}),Gn((()=>{wn(n,(()=>{"measure"===n.value&&t(),n.value&&(o.value=wa((()=>Hp(void 0,void 0,void 0,(function*(){const e=Fp.indexOf(n.value),t=Fp[e+1];t&&-1!==e&&i(t)})))))}),{immediate:!0,flush:"post"})})),Jn((()=>{r.value=!0,l()})),[n,function(e){l(),o.value=wa((()=>{let t=n.value;switch(n.value){case"align":t="motion";break;case"motion":t="stable"}i(t),null==e||e()}))}]})(u,(()=>{e.stretch&&c(e.getRootDomNode())})),f=wt(),g=()=>{var e;null===(e=i.value)||void 0===e||e.forceAlign()},m=(t,n)=>{var o;const r=e.getClassNameFromAlign(n),i=a.value;a.value!==r&&(a.value=r),"align"===p.value&&(i!==r?Promise.resolve().then((()=>{g()})):h((()=>{var e;null===(e=f.value)||void 0===e||e.call(f)})),null===(o=e.onAlign)||void 0===o||o.call(e,t,n))},v=Xr((()=>{const t="object"==typeof e.animation?e.animation:_p(e);return["onAfterEnter","onAfterLeave"].forEach((e=>{const n=t[e];t[e]=e=>{h(),p.value="stable",null==n||n(e)}})),t})),b=()=>new Promise((e=>{f.value=e}));wn([v,p],(()=>{v.value||"motion"!==p.value||h()}),{immediate:!0}),n({forceAlign:g,getElement:()=>l.value.$el||l.value});const y=Xr((()=>{var t;return!(null===(t=e.align)||void 0===t?void 0:t.points)||"align"!==p.value&&"stable"!==p.value}));return()=>{var t;const{zIndex:n,align:c,prefixCls:d,destroyPopupOnHide:h,onMouseenter:f,onMouseleave:g,onTouchstart:O=(()=>{}),onMousedown:w}=e,x=p.value,$=[fl(fl({},s.value),{zIndex:n,opacity:"motion"!==x&&"stable"!==x&&u.value?0:null,pointerEvents:u.value||"stable"===x?null:"none"}),o.style];let S=oa(null===(t=r.default)||void 0===t?void 0:t.call(r,{visible:e.visible}));S.length>1&&(S=Sr("div",{class:`${d}-content`},[S]));const C=Tl(d,o.class,a.value),k=u.value||!e.visible?im(v.value.name,v.value):{};return Sr(ni,hl(hl({ref:l},k),{},{onBeforeEnter:b}),{default:()=>!h||e.visible?kn(Sr(om,{target:e.point?e.point:e.getRootDomNode,key:"popup",ref:i,monitorWindowResize:!0,disabled:y.value,align:c,onAlign:m},{default:()=>Sr("div",{class:C,onMouseenter:f,onMouseleave:g,onMousedown:Wi(w,["capture"]),[Da?"onTouchstartPassive":"onTouchstart"]:Wi(O,["capture"]),style:$},[S])}),[[yi,u.value]]):null})}}}),cm=Ln({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:zp,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const i=wt(!1),l=wt(!1),a=wt(),s=wt();return wn([()=>e.visible,()=>e.mobile],(()=>{i.value=e.visible,e.visible&&e.mobile&&(l.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=fl(fl(fl({},e),n),{visible:i.value}),r=l.value?Sr(Qp,hl(hl({},t),{},{mobile:e.mobile,ref:a}),{default:o.default}):Sr(sm,hl(hl({},t),{},{ref:a}),{default:o.default});return Sr("div",{ref:s},[Sr(Lp,t,null),r])}}});function um(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function dm(e,t,n){return fl(fl({},e[t]||{}),n)}const pm={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(la(this),fl(fl({},this.$data),n));if(null===e)return;n=fl(fl({},n),e||{})}fl(this.$data,n),this._.isMounted&&this.$forceUpdate(),Vt((()=>{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;o<r;o++)n[o](...e.slice(1));else n(...e.slice(1))}}},hm=Symbol("PortalContextKey"),fm=function(e){Eo(hm,{inTriggerContext:(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inTriggerContext:!0}).inTriggerContext,shouldRender:Xr((()=>{const{sPopupVisible:t,popupRef:n,forceRender:o,autoDestroy:r}=e||{};let i=!1;return(t||n||o)&&(i=!0),!t&&r&&(i=!1),i}))})},gm=Ln({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:xp.func.isRequired,didUpdate:Function},setup(e,t){let n,{slots:o}=t,r=!0;const{shouldRender:i}=(()=>{fm({},{inTriggerContext:!1});const e=Ao(hm,{shouldRender:Xr((()=>!1)),inTriggerContext:!1});return{shouldRender:Xr((()=>e.shouldRender.value||!1===e.inTriggerContext))}})();function l(){i.value&&(n=e.getContainer())}Kn((()=>{r=!1,l()})),Gn((()=>{n||l()}));const a=wn(i,(()=>{i.value&&!n&&(n=e.getContainer()),n&&a()}));return qn((()=>{Vt((()=>{var t;i.value&&(null===(t=e.didUpdate)||void 0===t||t.call(e,e))}))})),()=>{var e;return i.value?r?null===(e=o.default)||void 0===e?void 0:e.call(o):n?Sr(rr,{to:n},o):null:null}}});let mm;function vm(e){if("undefined"==typeof document)return 0;if(e||void 0===mm){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),mm=o-r}return mm}function bm(e){const t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?vm():n}const ym=`vc-util-locker-${Date.now()}`;let Om=0;function wm(e){const t=Xr((()=>!!e&&!!e.value));Om+=1;const n=`${ym}_${Om}`;yn((e=>{if(ms()){if(t.value){const e=vm();ks(`\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 Cs(n);e((()=>{Cs(n)}))}}),{flush:"post"})}let xm=0;const $m=ms(),Sm=e=>{if(!$m)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},Cm=Ln({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:xp.any,visible:{type:Boolean,default:void 0},autoLock:Pa(),didUpdate:Function},setup(e,t){let{slots:n}=t;const o=wt(),r=wt(),i=wt(),l=wt(1),a=ms()&&document.createElement("div"),s=()=>{var e,t;o.value===a&&(null===(t=null===(e=o.value)||void 0===e?void 0:e.parentNode)||void 0===t||t.removeChild(o.value)),o.value=null};let c=null;const u=function(){return!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||o.value&&!o.value.parentNode)||(c=Sm(e.getContainer),!!c&&(c.appendChild(o.value),!0))},d=()=>$m?(o.value||(o.value=a,u(!0)),p(),o.value):null,p=()=>{const{wrapperClassName:t}=e;o.value&&t&&t!==o.value.className&&(o.value.className=t)};return qn((()=>{p(),u()})),wm(Xr((()=>e.autoLock&&e.visible&&ms()&&(o.value===document.body||o.value===a)))),Gn((()=>{let t=!1;wn([()=>e.visible,()=>e.getContainer],((n,o)=>{let[r,i]=n,[l,a]=o;$m&&(c=Sm(e.getContainer),c===document.body&&(r&&!l?xm+=1:t&&(xm-=1))),t&&("function"==typeof i&&"function"==typeof a?i.toString()!==a.toString():i!==a)&&s(),t=!0}),{immediate:!0,flush:"post"}),Vt((()=>{u()||(i.value=wa((()=>{l.value+=1})))}))})),Jn((()=>{const{visible:t}=e;$m&&c===document.body&&(xm=t&&xm?xm-1:xm),s(),wa.cancel(i.value)})),()=>{const{forceRender:t,visible:o}=e;let i=null;const a={getOpenCount:()=>xm,getContainer:d};return l.value&&(t||o||r.value)&&(i=Sr(gm,{getContainer:d,ref:r,didUpdate:e.didUpdate},{default:()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n,a)}})),i}}}),km=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],Pm=Ln({compatConfig:{MODE:3},name:"Trigger",mixins:[pm],inheritAttrs:!1,props:jp(),setup(e){const t=Xr((()=>{const{popupPlacement:t,popupAlign:n,builtinPlacements:o}=e;return t&&o?dm(o,t,n):n})),n=wt(null);return{vcTriggerContext:Ao("vcTriggerContext",{}),popupRef:n,setPopupRef:e=>{n.value=e},triggerRef:wt(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,km.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(){Eo("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),fm(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick((()=>{this.updatedCal()}))},updated(){this.$nextTick((()=>{this.updatedCal()}))},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),wa.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=ja(t,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(t=t||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=ja(t,"touchstart",this.onDocumentClick,!!Da&&{passive:!1})),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(t=t||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=ja(t,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=ja(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&&vs(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){vs(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();vs(n,t)&&!this.isContextMenuOnly()||vs(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:ia(this.triggerRef);return ia(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:ia(this.triggerRef);if(e)return e}catch(i){}return ia(this)},handleGetPopupClassFromAlign(e){const t=[],n=this.$props,{popupPlacement:o,builtinPlacements:r,prefixCls:i,alignPoint:l,getPopupClassNameFromAlign:a}=n;return o&&r&&t.push(function(e,t,n,o){const{points:r}=n,i=Object.keys(e);for(let l=0;l<i.length;l+=1){const n=i[l];if(um(e[n].points,r,o))return`${t}-placement-${n}`}return""}(r,i,e,l)),a&&t.push(a(e)),t.join(" ")},getPopupAlign(){const e=this.$props,{popupPlacement:t,popupAlign:n,builtinPlacements:o}=e;return t&&o?dm(o,t,n):n},getComponent(){const e={};this.isMouseEnterToShow()&&(e.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(e.onMouseleave=this.onPopupMouseleave),e.onMousedown=this.onPopupMouseDown,e[Da?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:t,getRootDomNode:n,$attrs:o}=this,{prefixCls:r,destroyPopupOnHide:i,popupClassName:l,popupAnimation:a,popupTransitionName:s,popupStyle:c,mask:u,maskAnimation:d,maskTransitionName:p,zIndex:h,stretch:f,alignPoint:g,mobile:m,forceRender:v}=this.$props,{sPopupVisible:b,point:y}=this.$data,O=fl(fl({prefixCls:r,destroyPopupOnHide:i,visible:b,point:g?y:null,align:this.align,animation:a,getClassNameFromAlign:t,stretch:f,getRootDomNode:n,mask:u,zIndex:h,transitionName:s,maskAnimation:d,maskTransitionName:p,class:l,style:c,onAlign:o.onPopupAlign||Dp},e),{ref:this.setPopupRef,mobile:m,forceRender:v});return Sr(cm,O,{default:this.$slots.popup||(()=>aa(this,"popup"))})},attachParent(e){wa.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=wa((()=>{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&&(ta(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=sa(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:e}=this,t=da(ra(this)),{alignPoint:n,getPopupContainer:o}=this.$props,r=t[0];this.childOriginEvents=sa(r);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[Da?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(i.onClick=this.createTwoChains("onClick"),i.onMousedown=this.createTwoChains("onMousedown"),i[Da?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(i.onMouseenter=this.onMouseenter,n&&(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&&vs(e.target,e.relatedTarget)||this.createTwoChains("onBlur")(e)});const l=Tl(r&&r.props&&r.props.class,e.class);l&&(i.class=l);const a=Zh(r,fl(fl({},i),{ref:"triggerRef"}),!0,!0),s=Sr(Cm,{key:"portal",getContainer:o&&(()=>o(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return Sr(lr,null,[a,s])}}),Mm=Ln({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:xp.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:xp.oneOfType([Number,Boolean]).def(!0),popupElement:xp.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 i=Xr((()=>{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)})),l=Ot();return r({getPopupElement:()=>l.value}),()=>{const t=fl(fl({},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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["empty"]),{visible:s,dropdownAlign:c,prefixCls:u,popupElement:d,dropdownClassName:p,dropdownStyle:h,direction:f="ltr",placement:g,dropdownMatchSelectWidth:m,containerWidth:v,dropdownRender:b,animation:y,transitionName:O,getPopupContainer:w,getTriggerDOMNode:x,onPopupVisibleChange:$,onPopupMouseEnter:S,onPopupFocusin:C,onPopupFocusout:k}=a,P=`${u}-dropdown`;let M=d;b&&(M=b({menuNode:d,props:e}));const T=y?`${P}-${y}`:O,I=fl({minWidth:`${v}px`},h);return"number"==typeof m?I.width=`${m}px`:m&&(I.width=`${v}px`),Sr(Pm,hl(hl({},e),{},{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:g||("rtl"===f?"bottomRight":"bottomLeft"),builtinPlacements:i.value,prefixCls:P,popupTransitionName:T,popupAlign:c,popupVisible:s,getPopupContainer:w,popupClassName:Tl(p,{[`${P}-empty`]:r}),popupStyle:I,getTriggerDOMNode:x,onPopupVisibleChange:$}),{default:n.default,popup:()=>Sr("div",{ref:l,onMouseenter:S,onFocusin:C,onFocusout:k},[M])})}}}),Tm={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>=Tm.F1&&t<=Tm.F12)return!1;switch(t){case Tm.ALT:case Tm.CAPS_LOCK:case Tm.CONTEXT_MENU:case Tm.CTRL:case Tm.DOWN:case Tm.END:case Tm.ESC:case Tm.HOME:case Tm.INSERT:case Tm.LEFT:case Tm.MAC_FF_META:case Tm.META:case Tm.NUMLOCK:case Tm.NUM_CENTER:case Tm.PAGE_DOWN:case Tm.PAGE_UP:case Tm.PAUSE:case Tm.PRINT_SCREEN:case Tm.RIGHT:case Tm.SHIFT:case Tm.UP:case Tm.WIN_KEY:case Tm.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Tm.ZERO&&e<=Tm.NINE)return!0;if(e>=Tm.NUM_ZERO&&e<=Tm.NUM_MULTIPLY)return!0;if(e>=Tm.A&&e<=Tm.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Tm.SPACE:case Tm.QUESTION_MARK:case Tm.NUM_PLUS:case Tm.NUM_MINUS:case Tm.NUM_PERIOD:case Tm.NUM_DIVISION:case Tm.SEMICOLON:case Tm.DASH:case Tm.EQUALS:case Tm.COMMA:case Tm.PERIOD:case Tm.SLASH:case Tm.APOSTROPHE:case Tm.SINGLE_QUOTE:case Tm.OPEN_SQUARE_BRACKET:case Tm.BACKSLASH:case Tm.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Im=(e,t)=>{let{slots:n}=t;var o;const{class:r,customizeIcon:i,customizeIconProps:l,onMousedown:a,onClick:s}=e;let c;return c="function"==typeof i?i(l):i,Sr("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:Sr("span",{class:r.split(/\s+/).map((e=>`${e}-icon`))},[null===(o=n.default)||void 0===o?void 0:o.call(n)])])};Im.inheritAttrs=!1,Im.displayName="TransBtn",Im.props={class:String,customizeIcon:xp.any,customizeIconProps:xp.any,onMousedown:Function,onClick:Function};const Em=Im;function Am(e){e.target.composing=!0}function Rm(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 Dm(e,t,n,o){e.addEventListener(t,n,o)}const jm={created(e,t){t.modifiers&&t.modifiers.lazy||(Dm(e,"compositionstart",Am),Dm(e,"compositionend",Rm),Dm(e,"change",Rm))}},Bm=Ln({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:{inputRef:xp.any,prefixCls:String,id:String,inputElement:xp.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:xp.oneOfType([xp.number,xp.string]),attrs:xp.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}},setup(e){let t=null;const n=Ao("VCSelectContainerEvent");return()=>{var o;const{prefixCls:r,id:i,inputElement:l,disabled:a,tabindex:s,autofocus:c,autocomplete:u,editable:d,activeDescendantId:p,value:h,onKeydown:f,onMousedown:g,onChange:m,onPaste:v,onCompositionstart:b,onCompositionend:y,onFocus:O,onBlur:w,open:x,inputRef:$,attrs:S}=e;let C=l||kn(Sr("input",null,null),[[jm]]);const k=C.props||{},{onKeydown:P,onInput:M,onFocus:T,onBlur:I,onMousedown:E,onCompositionstart:A,onCompositionend:R,style:D}=k;return C=Zh(C,fl(fl(fl(fl(fl({type:"search"},k),{id:i,ref:$,disabled:a,tabindex:s,autocomplete:u||"off",autofocus:c,class:Tl(`${r}-selection-search-input`,null===(o=null==C?void 0:C.props)||void 0===o?void 0:o.class),role:"combobox","aria-expanded":x,"aria-haspopup":"listbox","aria-owns":`${i}_list`,"aria-autocomplete":"list","aria-controls":`${i}_list`,"aria-activedescendant":p}),S),{value:d?h:"",readonly:!d,unselectable:d?null:"on",style:fl(fl({},D),{opacity:d?null:0}),onKeydown:e=>{f(e),P&&P(e)},onMousedown:e=>{g(e),E&&E(e)},onInput:e=>{m(e),M&&M(e)},onCompositionstart(e){b(e),A&&A(e)},onCompositionend(e){y(e),R&&R(e)},onPaste:v,onFocus:function(){clearTimeout(t),T&&T(arguments.length<=0?void 0:arguments[0]),O&&O(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<e;r++)o[r]=arguments[r];t=setTimeout((()=>{I&&I(o[0]),w&&w(o[0]),null==n||n.blur(o[0])}),100)}}),"textarea"===C.type?{}:{type:"search"}),!0,!0),C}}}),Nm=Bm,zm="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 _m(e,t){return 0===e.indexOf(t)}function Lm(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}:fl({},n);const o={};return Object.keys(e).forEach((n=>{(t.aria&&("role"===n||_m(n,"aria-"))||t.data&&_m(n,"data-")||t.attr&&(zm.includes(n)||zm.includes(n.toLowerCase())))&&(o[n]=e[n])})),o}const Qm=Symbol("OverflowContextProviderKey"),Hm=Ln({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return Eo(Qm,Xr((()=>e.value))),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),Fm=void 0,Wm=Ln({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:xp.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:xp.any,invalidate:Boolean},setup(e,t){let{slots:n,expose:o}=t;const r=Xr((()=>e.responsive&&!e.display)),i=Ot();function l(t){e.registerSize(e.itemKey,t)}return o({itemNodeRef:i}),eo((()=>{l(null)})),()=>{var t;const{prefixCls:o,invalidate:a,item:s,renderItem:c,responsive:u,registerSize:d,itemKey:p,display:h,order:f,component:g="div"}=e,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),v=null===(t=n.default)||void 0===t?void 0:t.call(n),b=c&&s!==Fm?c(s):v;let y;a||(y={opacity:r.value?0:1,height:r.value?0:Fm,overflowY:r.value?"hidden":Fm,order:u?f:Fm,pointerEvents:r.value?"none":Fm,position:r.value?"absolute":Fm});const O={};return r.value&&(O["aria-hidden"]=!0),Sr(ga,{disabled:!u,onResize:e=>{let{offsetWidth:t}=e;l(t)}},{default:()=>Sr(g,hl(hl(hl({class:Tl(!a&&o),style:y},O),m),{},{ref:i}),{default:()=>[b]})})}}});var Vm=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Zm=Ln({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:xp.any,title:xp.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},role:String,tabindex:Number},setup(e,t){let{slots:n,attrs:o}=t;const r=Ao(Qm,Xr((()=>null)));return()=>{var t;if(!r.value){const{component:r="div"}=e,i=Vm(e,["component"]);return Sr(r,hl(hl({},i),o),{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]})}const i=r.value,{className:l}=i,a=Vm(i,["className"]),{class:s}=o,c=Vm(o,["class"]);return Sr(Hm,{value:null},{default:()=>[Sr(Wm,hl(hl(hl({class:Tl(l,s)},a),c),e),n)]})}}}),Xm="responsive",Ym="invalidate";function Km(e){return`+ ${e.length} ...`}const Gm=Ln({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:xp.any,component:String,itemComponent:xp.any,onVisibleChange:Function,ssr:String,onMousedown:Function},emits:["visibleChange"],setup(e,t){let{attrs:n,emit:o,slots:r}=t;const i=Xr((()=>"full"===e.ssr)),l=wt(null),a=Xr((()=>l.value||0)),s=wt(new Map),c=wt(0),u=wt(0),d=wt(0),p=wt(null),h=wt(null),f=Xr((()=>null===h.value&&i.value?Number.MAX_SAFE_INTEGER:h.value||0)),g=wt(!1),m=Xr((()=>`${e.prefixCls}-item`)),v=Xr((()=>Math.max(c.value,u.value))),b=Xr((()=>!(!e.data.length||e.maxCount!==Xm))),y=Xr((()=>e.maxCount===Ym)),O=Xr((()=>b.value||"number"==typeof e.maxCount&&e.data.length>e.maxCount)),w=Xr((()=>{let t=e.data;return b.value?t=null===l.value&&i.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})),x=Xr((()=>b.value?e.data.slice(f.value+1):e.data.slice(w.value.length))),$=(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},S=Xr((()=>e.renderItem||(e=>e))),C=(t,n)=>{h.value=t,n||(g.value=t<e.data.length-1,o("visibleChange",t))},k=(e,t)=>{l.value=t.clientWidth},P=(e,t)=>{const n=new Map(s.value);null===t?n.delete(e):n.set(e,t),s.value=n},M=(e,t)=>{c.value=u.value,u.value=t},T=(e,t)=>{d.value=t},I=e=>s.value.get($(w.value[e],e));return wn([a,s,u,d,()=>e.itemKey,w],(()=>{if(a.value&&v.value&&w.value){let t=d.value;const n=w.value.length,o=n-1;if(!n)return C(0),void(p.value=null);for(let e=0;e<n;e+=1){const n=I(e);if(void 0===n){C(e-1,!0);break}if(t+=n,0===o&&t<=a.value||e===o-1&&t+I(o)<=a.value){C(o),p.value=null;break}if(t+v.value>a.value){C(e-1),p.value=t-n-d.value+u.value;break}}e.suffix&&I(0)+d.value>a.value&&(p.value=null)}})),()=>{const t=g.value&&!!x.value.length,{itemComponent:o,renderRawItem:i,renderRawRest:l,renderRest:a,prefixCls:s="rc-overflow",suffix:c,component:u="div",id:d,onMousedown:h}=e,{class:v,style:C}=n,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(n,["class","style"]);let E={};null!==p.value&&b.value&&(E={position:"absolute",left:`${p.value}px`,top:0});const A={prefixCls:m.value,responsive:b.value,component:o,invalidate:y.value},R=i?(e,t)=>{const n=$(e,t);return Sr(Hm,{key:n,value:fl(fl({},A),{order:t,item:e,itemKey:n,registerSize:P,display:t<=f.value})},{default:()=>[i(e,t)]})}:(e,t)=>{const n=$(e,t);return Sr(Wm,hl(hl({},A),{},{order:t,key:n,item:e,renderItem:S.value,itemKey:n,registerSize:P,display:t<=f.value}),null)};let D=()=>null;const j={order:t?f.value:Number.MAX_SAFE_INTEGER,className:`${m.value} ${m.value}-rest`,registerSize:M,display:t};if(l)l&&(D=()=>Sr(Hm,{value:fl(fl({},A),j)},{default:()=>[l(x.value)]}));else{const e=a||Km;D=()=>Sr(Wm,hl(hl({},A),j),{default:()=>"function"==typeof e?e(x.value):e})}return Sr(ga,{disabled:!b.value,onResize:k},{default:()=>{var e;return Sr(u,hl({id:d,class:Tl(!y.value&&s,v),style:C,onMousedown:h},I),{default:()=>[w.value.map(R),O.value?D():null,c&&Sr(Wm,hl(hl({},A),{},{order:f.value,class:`${m.value}-suffix`,registerSize:T,display:!0,style:E}),{default:()=>c}),null===(e=r.default)||void 0===e?void 0:e.call(r)]})}})}}});Gm.Item=Zm,Gm.RESPONSIVE=Xm,Gm.INVALIDATE=Ym;const Um=Gm,qm=Symbol("TreeSelectLegacyContextPropsKey");function Jm(){return Ao(qm,{})}const ev={id:String,prefixCls:String,values:xp.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:xp.any,placeholder:xp.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:xp.oneOfType([xp.number,xp.string]),removeIcon:xp.any,choiceTransitionName:String,maxTagCount:xp.oneOfType([xp.number,xp.string]),maxTagTextLength:Number,maxTagPlaceholder:xp.any.def((()=>e=>`+ ${e.length} ...`)),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},tv=e=>{e.preventDefault(),e.stopPropagation()},nv=Ln({name:"MultipleSelectSelector",inheritAttrs:!1,props:ev,setup(e){const t=wt(),n=wt(0),o=wt(!1),r=Jm(),i=Xr((()=>`${e.prefixCls}-selection`)),l=Xr((()=>e.open||"tags"===e.mode?e.searchValue:"")),a=Xr((()=>"tags"===e.mode||e.showSearch&&(e.open||o.value)));function s(t,n,o,r,l){return Sr("span",{class:Tl(`${i.value}-item`,{[`${i.value}-item-disabled`]:o}),title:"string"==typeof t||"number"==typeof t?t.toString():void 0},[Sr("span",{class:`${i.value}-item-content`},[n]),r&&Sr(Em,{class:`${i.value}-item-remove`,onMousedown:tv,onClick:l,customizeIcon:e.removeIcon},{default:()=>[kr("×")]})])}function c(t){const{disabled:n,label:o,value:i,option:l}=t,a=!e.disabled&&!n;let c=o;if("number"==typeof e.maxTagTextLength&&("string"==typeof o||"number"==typeof o)){const t=String(c);t.length>e.maxTagTextLength&&(c=`${t.slice(0,e.maxTagTextLength)}...`)}const u=n=>{var o;n&&n.stopPropagation(),null===(o=e.onRemove)||void 0===o||o.call(e,t)};return"function"==typeof e.tagRender?function(t,n,o,i,l,a){var s;let c=a;return r.keyEntities&&(c=(null===(s=r.keyEntities[t])||void 0===s?void 0:s.node)||{}),Sr("span",{key:t,onMousedown:t=>{tv(t),e.onToggleOpen(!open)}},[e.tagRender({label:n,value:t,disabled:o,closable:i,onClose:l,option:c})])}(i,c,n,a,u,l):s(o,c,n,a,u)}function u(t){const{maxTagPlaceholder:n=(e=>`+ ${e.length} ...`)}=e,o="function"==typeof n?n(t):n;return s(o,o,!1)}return Gn((()=>{wn(l,(()=>{n.value=t.value.scrollWidth}),{flush:"post",immediate:!0})})),()=>{const{id:r,prefixCls:s,values:d,open:p,inputRef:h,placeholder:f,disabled:g,autofocus:m,autocomplete:v,activeDescendantId:b,tabindex:y,onInputChange:O,onInputPaste:w,onInputKeyDown:x,onInputMouseDown:$,onInputCompositionStart:S,onInputCompositionEnd:C}=e,k=Sr("div",{class:`${i.value}-search`,style:{width:n.value+"px"},key:"input"},[Sr(Nm,{inputRef:h,open:p,prefixCls:s,id:r,inputElement:null,disabled:g,autofocus:m,autocomplete:v,editable:a.value,activeDescendantId:b,value:l.value,onKeydown:x,onMousedown:$,onChange:O,onPaste:w,onCompositionstart:S,onCompositionend:C,tabindex:y,attrs:Lm(e,!0),onFocus:()=>o.value=!0,onBlur:()=>o.value=!1},null),Sr("span",{ref:t,class:`${i.value}-search-mirror`,"aria-hidden":!0},[l.value,kr(" ")])]),P=Sr(Um,{prefixCls:`${i.value}-overflow`,data:d,renderItem:c,renderRest:u,suffix:k,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return Sr(lr,null,[P,!d.length&&!l.value&&Sr("span",{class:`${i.value}-placeholder`},[f])])}}}),ov={inputElement:xp.any,id:String,prefixCls:String,values:xp.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:xp.any,placeholder:xp.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:xp.oneOfType([xp.number,xp.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},rv=Ln({name:"SingleSelector",setup(e){const t=wt(!1),n=Xr((()=>"combobox"===e.mode)),o=Xr((()=>n.value||e.showSearch)),r=Xr((()=>{let o=e.searchValue||"";return n.value&&e.activeValue&&!t.value&&(o=e.activeValue),o})),i=Jm();wn([n,()=>e.activeValue],(()=>{n.value&&(t.value=!1)}),{immediate:!0});const l=Xr((()=>!("combobox"!==e.mode&&!e.open&&!e.showSearch||!r.value))),a=Xr((()=>{const t=e.values[0];return!t||"string"!=typeof t.label&&"number"!=typeof t.label?void 0:t.label.toString()})),s=()=>{if(e.values[0])return null;const t=l.value?{visibility:"hidden"}:void 0;return Sr("span",{class:`${e.prefixCls}-selection-placeholder`,style:t},[e.placeholder])};return()=>{var c,u,d,p;const{inputElement:h,prefixCls:f,id:g,values:m,inputRef:v,disabled:b,autofocus:y,autocomplete:O,activeDescendantId:w,open:x,tabindex:$,optionLabelRender:S,onInputKeyDown:C,onInputMouseDown:k,onInputChange:P,onInputPaste:M,onInputCompositionStart:T,onInputCompositionEnd:I}=e,E=m[0];let A=null;if(E&&i.customSlots){const e=null!==(c=E.key)&&void 0!==c?c:E.value,t=(null===(u=i.keyEntities[e])||void 0===u?void 0:u.node)||{};A=i.customSlots[null===(d=t.slots)||void 0===d?void 0:d.title]||i.customSlots.title||E.label,"function"==typeof A&&(A=A(t))}else A=S&&E?S(E.option):null==E?void 0:E.label;return Sr(lr,null,[Sr("span",{class:`${f}-selection-search`},[Sr(Nm,{inputRef:v,prefixCls:f,id:g,open:x,inputElement:h,disabled:b,autofocus:y,autocomplete:O,editable:o.value,activeDescendantId:w,value:r.value,onKeydown:C,onMousedown:k,onChange:e=>{t.value=!0,P(e)},onPaste:M,onCompositionstart:T,onCompositionend:I,tabindex:$,attrs:Lm(e,!0)},null)]),!n.value&&E&&!l.value&&Sr("span",{class:`${f}-selection-item`,title:a.value},[Sr(lr,{key:null!==(p=E.key)&&void 0!==p?p:E.value},[A])]),s()])}}});rv.props=ov,rv.inheritAttrs=!1;const iv=rv;function lv(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=null;return Jn((()=>{clearTimeout(e)})),[()=>n,function(o){(o||null===n)&&(n=o),clearTimeout(e),e=setTimeout((()=>{n=null}),t)}]}function av(){const e=t=>{e.current=t};return e}const sv=Ln({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:xp.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:xp.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:xp.oneOfType([xp.number,xp.string]),disabled:{type:Boolean,default:void 0},placeholder:xp.any,removeIcon:xp.any,maxTagCount:xp.oneOfType([xp.number,xp.string]),maxTagTextLength:Number,maxTagPlaceholder:xp.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=av();let r=!1;const[i,l]=lv(0),a=t=>{const{which:n}=t;var o;n!==Tm.UP&&n!==Tm.DOWN||t.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(t),n!==Tm.ENTER||"tags"!==e.mode||r||e.open||e.onSearchSubmit(t.target.value),o=n,[Tm.ESC,Tm.SHIFT,Tm.BACKSPACE,Tm.TAB,Tm.WIN_KEY,Tm.ALT,Tm.META,Tm.WIN_KEY_RIGHT,Tm.CTRL,Tm.SEMICOLON,Tm.EQUALS,Tm.CAPS_LOCK,Tm.CONTEXT_MENU,Tm.F1,Tm.F2,Tm.F3,Tm.F4,Tm.F5,Tm.F6,Tm.F7,Tm.F8,Tm.F9,Tm.F10,Tm.F11,Tm.F12].includes(o)||e.onToggleOpen(!0)},s=()=>{l(!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)},h=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},g=e=>{let{target:t}=e;t!==o.current&&(void 0!==document.body.style.msTouchAction?setTimeout((()=>{o.current.focus()})):o.current.focus())},m=t=>{const n=i();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,i={inputRef:o,onInputKeyDown:a,onInputMouseDown:s,onInputChange:h,onInputPaste:f,onInputCompositionStart:d,onInputCompositionEnd:p},l=Sr("multiple"===r||"tags"===r?nv:iv,hl(hl({},e),i),null);return Sr("div",{ref:n,class:`${t}-selector`,onClick:g,onMousedown:m},[l])}}}),cv=Symbol("BaseSelectContextKey");function uv(){return Ao(cv,{})}const dv=()=>{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 pv(e){return yt(e)?it(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})})):it(e)}const hv=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],fv=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:xp.any,placeholder:xp.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:xp.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:xp.any,clearIcon:xp.any,removeIcon:xp.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 gv(e){return"tags"===e||"multiple"===e}const mv=Ln({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:Jl(fl(fl({},{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:xp.any,emptyOptions:Boolean}),fv()),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const i=Xr((()=>gv(e.mode))),l=Xr((()=>void 0!==e.showSearch?e.showSearch:i.value||"combobox"===e.mode)),a=wt(!1);Gn((()=>{a.value=dv()}));const s=Jm(),c=wt(null),u=av(),d=wt(null),p=wt(null),h=wt(null),f=Ot(!1),[g,m,v]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=wt(!1);let n;const o=()=>{clearTimeout(n)};return Gn((()=>{o()})),[t,(r,i)=>{o(),n=setTimeout((()=>{t.value=r,i&&i()}),e)},o]}();o({focus:()=>{var e;null===(e=p.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=p.value)||void 0===e||e.blur()},scrollTo:e=>{var t;return null===(t=h.value)||void 0===t?void 0:t.scrollTo(e)}});const b=Xr((()=>{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):""})),y=void 0!==e.open?e.open:e.defaultOpen,O=wt(y),w=wt(y),x=t=>{O.value=void 0!==e.open?e.open:t,w.value=O.value};wn((()=>e.open),(()=>{x(e.open)}));const $=Xr((()=>!e.notFoundContent&&e.emptyOptions));yn((()=>{w.value=O.value,(e.disabled||$.value&&w.value&&"combobox"===e.mode)&&(w.value=!1)}));const S=Xr((()=>!$.value&&w.value)),C=t=>{const n=void 0!==t?t:!w.value;w.value===n||e.disabled||(x(n),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(n))},k=Xr((()=>(e.tokenSeparators||[]).some((e=>["\n","\r\n"].includes(e))))),P=(t,n,o)=>{var r,i;let l=!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,...i]=o;if(!r)return[t];const l=t.split(r);return n=n||l.length>1,l.reduce(((t,n)=>[...t,...e(n,i)]),[]).filter((e=>e))}(e,t);return n?o:null}(t,e.tokenSeparators);return"combobox"!==e.mode&&s&&(a="",null===(i=e.onSearchSplit)||void 0===i||i.call(e,s),C(!1),l=!1),e.onSearch&&b.value!==a&&e.onSearch(a,{source:n?"typing":"effect"}),l},M=t=>{var n;t&&t.trim()&&(null===(n=e.onSearch)||void 0===n||n.call(e,t,{source:"submit"}))};wn(w,(()=>{w.value||i.value||"combobox"===e.mode||P("",!1,!1)}),{immediate:!0,flush:"post"}),wn((()=>e.disabled),(()=>{O.value&&e.disabled&&x(!1),e.disabled&&!f.value&&m(!1)}),{immediate:!0});const[T,I]=lv(),E=function(t){var n;const o=T(),{which:r}=t;if(r===Tm.ENTER&&("combobox"!==e.mode&&t.preventDefault(),w.value||C(!0)),I(!!b.value),r===Tm.BACKSPACE&&!o&&i.value&&!b.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 l=arguments.length,a=new Array(l>1?l-1:0),s=1;s<l;s++)a[s-1]=arguments[s];w.value&&h.value&&h.value.onKeydown(t,...a),null===(n=e.onKeydown)||void 0===n||n.call(e,t,...a)},A=function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];w.value&&h.value&&h.value.onKeyup(t,...o),e.onKeyup&&e.onKeyup(t,...o)},R=t=>{const n=e.displayValues.filter((e=>e!==t));e.onDisplayValuesChange(n,{type:"remove",values:[t]})},D=wt(!1),j=Ot(!1),B=()=>{j.value=!0},N=()=>{j.value=!1};Eo("VCSelectContainerEvent",{focus:function(){m(!0),e.disabled||(e.onFocus&&!D.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&C(!0)),D.value=!0},blur:function(){if(j.value)return;if(f.value=!0,m(!1,(()=>{D.value=!1,f.value=!1,C(!1)})),e.disabled)return;const t=b.value;t&&("tags"===e.mode?e.onSearch(t,{source:"submit"}):"multiple"===e.mode&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)}});const z=[];Gn((()=>{z.forEach((e=>clearTimeout(e))),z.splice(0,z.length)})),Jn((()=>{z.forEach((e=>clearTimeout(e))),z.splice(0,z.length)}));const _=function(t){var n,o;const{target:r}=t,i=null===(n=d.value)||void 0===n?void 0:n.getPopupElement();if(i&&i.contains(r)){const e=setTimeout((()=>{var t;const n=z.indexOf(e);-1!==n&&z.splice(n,1),v(),a.value||i.contains(document.activeElement)||null===(t=p.value)||void 0===t||t.focus()}));z.push(e)}for(var l=arguments.length,s=new Array(l>1?l-1:0),c=1;c<l;c++)s[c-1]=arguments[c];null===(o=e.onMousedown)||void 0===o||o.call(e,t,...s)},L=wt(null),Q=()=>{};return Gn((()=>{wn(S,(()=>{var e;if(S.value){const t=Math.ceil(null===(e=c.value)||void 0===e?void 0:e.offsetWidth);L.value===t||Number.isNaN(t)||(L.value=t)}}),{immediate:!0,flush:"post"})})),function(e,t,n){function o(o){var r,i,l;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===(l=null===(i=e[1])||void 0===i?void 0:i.value)||void 0===l?void 0:l.getPopupElement()];t.value&&s.every((e=>e&&!e.contains(a)&&e!==a))&&n(!1)}Gn((()=>{window.addEventListener("mousedown",o)})),Jn((()=>{window.removeEventListener("mousedown",o)}))}([c,d],S,C),function(e){Eo(cv,e)}(pv(fl(fl({},Mt(e)),{open:w,triggerOpen:S,showSearch:l,multiple:i,toggleOpen:C}))),()=>{const t=fl(fl({},e),n),{prefixCls:o,id:a,open:f,defaultOpen:m,mode:v,showSearch:y,searchValue:O,onSearch:x,allowClear:$,clearIcon:T,showArrow:I,inputIcon:D,disabled:j,loading:z,getInputElement:H,getPopupContainer:F,placement:W,animation:V,transitionName:Z,dropdownStyle:X,dropdownClassName:Y,dropdownMatchSelectWidth:K,dropdownRender:G,dropdownAlign:U,showAction:q,direction:J,tokenSeparators:ee,tagRender:te,optionLabelRender:ne,onPopupScroll:oe,onDropdownVisibleChange:re,onFocus:ie,onBlur:le,onKeyup:ae,onKeydown:se,onMousedown:ce,onClear:ue,omitDomProps:de,getRawInputElement:pe,displayValues:he,onDisplayValuesChange:fe,emptyOptions:ge,activeDescendantId:me,activeValue:ve,OptionList:be}=t,ye=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),Oe="combobox"===v&&H&&H()||null,we="function"==typeof pe&&pe(),xe=fl({},ye);let $e;we&&($e=e=>{C(e)}),hv.forEach((e=>{delete xe[e]})),null==de||de.forEach((e=>{delete xe[e]}));const Se=void 0!==I?I:z||!i.value&&"combobox"!==v;let Ce,ke;Se&&(Ce=Sr(Em,{class:Tl(`${o}-arrow`,{[`${o}-arrow-loading`]:z}),customizeIcon:D,customizeIconProps:{loading:z,searchValue:b.value,open:w.value,focused:g.value,showSearch:l.value}},null));const Pe=()=>{null==ue||ue(),fe([],{type:"clear",values:he}),P("",!1,!1)};!j&&$&&(he.length||b.value)&&(ke=Sr(Em,{class:`${o}-clear`,onMousedown:Pe,customizeIcon:T},{default:()=>[kr("×")]}));const Me=Sr(be,{ref:h},fl(fl({},s.customSlots),{option:r.option})),Te=Tl(o,n.class,{[`${o}-focused`]:g.value,[`${o}-multiple`]:i.value,[`${o}-single`]:!i.value,[`${o}-allow-clear`]:$,[`${o}-show-arrow`]:Se,[`${o}-disabled`]:j,[`${o}-loading`]:z,[`${o}-open`]:w.value,[`${o}-customize-input`]:Oe,[`${o}-show-search`]:l.value}),Ie=Sr(Mm,{ref:d,disabled:j,prefixCls:o,visible:S.value,popupElement:Me,containerWidth:L.value,animation:V,transitionName:Z,dropdownStyle:X,dropdownClassName:Y,direction:J,dropdownMatchSelectWidth:K,dropdownRender:G,dropdownAlign:U,placement:W,getPopupContainer:F,empty:ge,getTriggerDOMNode:()=>u.current,onPopupVisibleChange:$e,onPopupMouseEnter:Q,onPopupFocusin:B,onPopupFocusout:N},{default:()=>we?ha(we)&&Zh(we,{ref:u},!1,!0):Sr(sv,hl(hl({},e),{},{domRef:u,prefixCls:o,inputElement:Oe,ref:p,id:a,showSearch:l.value,mode:v,activeDescendantId:me,tagRender:te,optionLabelRender:ne,values:he,open:w.value,onToggleOpen:C,activeValue:ve,searchValue:b.value,onSearch:P,onSearchSubmit:M,onRemove:R,tokenWithEnter:k.value}),null)});let Ee;return Ee=we?Ie:Sr("div",hl(hl({},xe),{},{class:Te,ref:c,onMousedown:_,onKeydown:E,onKeyup:A}),[g.value&&!w.value&&Sr("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${he.map((e=>{let{label:t,value:n}=e;return["number","string"].includes(typeof t)?t:n})).join(", ")}`]),Ie,Ce,ke]),Ee}}}),vv=(e,t)=>{let{height:n,offset:o,prefixCls:r,onInnerResize:i}=e,{slots:l}=t;var a;let s={},c={display:"flex",flexDirection:"column"};return void 0!==o&&(s={height:`${n}px`,position:"relative",overflow:"hidden"},c=fl(fl({},c),{transform:`translateY(${o}px)`,position:"absolute",left:0,right:0,top:0})),Sr("div",{style:s},[Sr(ga,{onResize:e=>{let{offsetHeight:t}=e;t&&i&&i()}},{default:()=>[Sr("div",{style:c,class:Tl({[`${r}-holder-inner`]:r})},[null===(a=l.default)||void 0===a?void 0:a.call(l)])]})])};vv.displayName="Filter",vv.inheritAttrs=!1,vv.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const bv=vv,yv=(e,t)=>{let{setRef:n}=e,{slots:o}=t;var r;const i=oa(null===(r=o.default)||void 0===r?void 0:r.call(o));return i&&i.length?Cr(i[0],{ref:n}):i};yv.props={setRef:{type:Function,default:()=>{}}};const Ov=yv;function wv(e){return"touches"in e?e.touches[0].pageY:e.pageY}const xv=Ln({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:av(),thumbRef:av(),visibleTimeout:null,state:it({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,!!Da&&{passive:!1}),null===(t=this.thumbRef.current)||void 0===t||t.addEventListener("touchstart",this.onMouseDown,!!Da&&{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,!!Da&&{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,!!Da&&{passive:!1}),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,!!Da&&{passive:!1}),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,!!Da&&{passive:!1}),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),wa.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;fl(this.state,{dragging:!0,pageY:wv(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(wa.cancel(this.moveRaf),t){const t=o+(wv(e)-n),i=this.getEnableScrollRange(),l=this.getEnableHeightRange(),a=l?t/l:0,s=Math.ceil(a*i);this.moveRaf=wa((()=>{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();return 0===e||0===t?0: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",i=this.showScroll(),l=i&&t;return Sr("div",{ref:this.scrollbarRef,class:Tl(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:i}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:l?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[Sr("div",{ref:this.thumbRef,class:Tl(`${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)])}}),$v="object"==typeof navigator&&/Firefox/i.test(navigator.userAgent),Sv=(e,t)=>{let n=!1,o=null;return function(r){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const l=r<0&&e.value||r>0&&t.value;return i&&l?(clearTimeout(o),n=!1):l&&!n||(clearTimeout(o),n=!0,o=setTimeout((()=>{n=!1}),50)),!n&&l}},Cv=[],kv={overflowY:"auto",overflowAnchor:"none"},Pv=Ln({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:xp.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=Xr((()=>{const{height:t,itemHeight:n,virtual:o}=e;return!(!1===o||!t||!n)})),r=Xr((()=>{const{height:t,itemHeight:n,data:r}=e;return o.value&&r&&n*r.length>t})),i=it({scrollTop:0,scrollMoving:!1}),l=Xr((()=>e.data||Cv)),a=wt([]);wn(l,(()=>{a.value=pt(l.value).slice()}),{immediate:!0});const s=wt((e=>{}));wn((()=>e.itemKey),(e=>{s.value="function"==typeof e?e:t=>null==t?void 0:t[e]}),{immediate:!0});const c=wt(),u=wt(),d=wt(),p=e=>s.value(e),h={getKey:p};function f(e){let t;t="function"==typeof e?e(i.scrollTop):e;const n=function(e){let t=e;return Number.isNaN(w.value)||(t=Math.min(t,w.value)),t=Math.max(t,0),t}(t);c.value&&(c.value.scrollTop=n),i.scrollTop=n}const[g,m,v,b]=function(e,t,n,o){const r=new Map,i=new Map,l=Ot(Symbol("update"));let a;function s(){wa.cancel(a)}function c(){s(),a=wa((()=>{r.forEach(((e,t)=>{if(e&&e.offsetParent){const{offsetHeight:n}=e;i.get(t)!==n&&(l.value=Symbol("update"),i.set(t,e.offsetHeight))}}))}))}return wn(e,(()=>{l.value=Symbol("update")})),eo((()=>{s()})),[function(e,i){const l=t(e),a=r.get(l);i?(r.set(l,i.$el||i),c()):r.delete(l),!a!=!i&&(i?null==n||n(e):null==o||o(e))},c,i,l]}(a,p,null,null),y=it({scrollHeight:void 0,start:0,end:0,offset:void 0}),O=wt(0);Gn((()=>{Vt((()=>{var e;O.value=(null===(e=u.value)||void 0===e?void 0:e.offsetHeight)||0}))})),qn((()=>{Vt((()=>{var e;O.value=(null===(e=u.value)||void 0===e?void 0:e.offsetHeight)||0}))})),wn([o,a],(()=>{o.value||fl(y,{scrollHeight:void 0,start:0,end:a.value.length-1,offset:void 0})}),{immediate:!0}),wn([o,a,O,r],(()=>{o.value&&!r.value&&fl(y,{scrollHeight:O.value,start:0,end:a.value.length-1,offset:void 0}),c.value&&(i.scrollTop=c.value.scrollTop)}),{immediate:!0}),wn([r,o,()=>i.scrollTop,a,b,()=>e.height,O],(()=>{if(!o.value||!r.value)return;let t,n,l,s=0;const c=a.value.length,u=a.value,d=i.scrollTop,{itemHeight:h,height:f}=e,g=d+f;for(let e=0;e<c;e+=1){const o=u[e],r=p(o);let i=v.get(r);void 0===i&&(i=h);const a=s+i;void 0===t&&a>=d&&(t=e,n=s),void 0===l&&a>g&&(l=e),s=a}void 0===t&&(t=0,n=0,l=Math.ceil(f/h)),void 0===l&&(l=c-1),l=Math.min(l+1,c),fl(y,{scrollHeight:s,start:t,end:l,offset:n})}),{immediate:!0});const w=Xr((()=>y.scrollHeight-e.height)),x=Xr((()=>i.scrollTop<=0)),$=Xr((()=>i.scrollTop>=w.value)),S=Sv(x,$),[C,k]=function(e,t,n,o){let r=0,i=null,l=null,a=!1;const s=Sv(t,n);return[function(t){if(!e.value)return;wa.cancel(i);const{deltaY:n}=t;r+=n,l=n,s(n)||($v||t.preventDefault(),i=wa((()=>{o(r*(a?10:1)),r=0})))},function(t){e.value&&(a=t.detail===l)}]}(o,x,$,(e=>{f((t=>t+e))}));function P(e){o.value&&e.preventDefault()}!function(e,t,n){let o=!1,r=0,i=null,l=null;const a=()=>{i&&(i.removeEventListener("touchmove",s),i.removeEventListener("touchend",c))},s=e=>{if(o){const t=Math.ceil(e.touches[0].pageY);let o=r-t;r=t,n(o)&&e.preventDefault(),clearInterval(l),l=setInterval((()=>{o*=.9333333333333333,(!n(o,!0)||Math.abs(o)<=.1)&&clearInterval(l)}),16)}},c=()=>{o=!1,a()},u=e=>{a(),1!==e.touches.length||o||(o=!0,r=Math.ceil(e.touches[0].pageY),i=e.target,i.addEventListener("touchmove",s,{passive:!1}),i.addEventListener("touchend",c))},d=()=>{};Gn((()=>{document.addEventListener("touchmove",d,{passive:!1}),wn(e,(e=>{t.value.removeEventListener("touchstart",u),a(),clearInterval(l),e&&t.value.addEventListener("touchstart",u,{passive:!1})}),{immediate:!0})})),Jn((()=>{document.removeEventListener("touchmove",d)}))}(o,c,((e,t)=>!S(e,t)&&(C({preventDefault(){},deltaY:e}),!0)));const M=()=>{c.value&&(c.value.removeEventListener("wheel",C,!!Da&&{passive:!1}),c.value.removeEventListener("DOMMouseScroll",k),c.value.removeEventListener("MozMousePixelScroll",P))};yn((()=>{Vt((()=>{c.value&&(M(),c.value.addEventListener("wheel",C,!!Da&&{passive:!1}),c.value.addEventListener("DOMMouseScroll",k),c.value.addEventListener("MozMousePixelScroll",P))}))})),Jn((()=>{M()}));const T=function(e,t,n,o,r,i,l,a){let s;return c=>{if(null==c)return void a();wa.cancel(s);const u=t.value,d=o.itemHeight;if("number"==typeof c)l(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,h)=>{if(c<0||!e.value)return;const f=e.value.clientHeight;let g=!1,m=h;if(f){const i=h||o;let s=0,c=0,p=0;const v=Math.min(u.length,t);for(let e=0;e<=v;e+=1){const o=r(u[e]);c=s;const i=n.get(o);p=c+(void 0===i?d:i),s=p,e===t&&void 0===i&&(g=!0)}const b=e.value.scrollTop;let y=null;switch(i){case"top":y=c-a;break;case"bottom":y=p-f+a;break;default:c<b?m="top":p>b+f&&(m="bottom")}null!==y&&y!==b&&l(y)}s=wa((()=>{g&&i(),p(c-1,m)}),2)};p(5)}}}(c,a,v,e,p,m,f,(()=>{var e;null===(e=d.value)||void 0===e||e.delayHidden()}));n({scrollTo:T});const I=Xr((()=>{let t=null;return e.height&&(t=fl({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},kv),o.value&&(t.overflowY="hidden",i.scrollMoving&&(t.pointerEvents="none"))),t}));return wn([()=>y.start,()=>y.end,a],(()=>{if(e.onVisibleChange){const t=a.value.slice(y.start,y.end+1);e.onVisibleChange(t,a.value)}}),{flush:"post"}),{state:i,mergedData:a,componentStyle:I,onFallbackScroll:function(t){var n;const{scrollTop:o}=t.currentTarget;o!==i.scrollTop&&f(o),null===(n=e.onScroll)||void 0===n||n.call(e,t)},onScrollBar:function(e){f(e)},componentRef:c,useVirtual:o,calRes:y,collectHeight:m,setInstance:g,sharedConfig:h,scrollBarRef:d,fillerInnerRef:u,delayHideScrollBar:()=>{var e;null===(e=d.value)||void 0===e||e.delayHidden()}}},render(){const e=fl(fl({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:o,fullHeight:r,data:i,itemKey:l,virtual:a,component:s="div",onScroll:c,children:u=this.$slots.default,style:d,class:p}=e,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),f=Tl(t,p),{scrollTop:g}=this.state,{scrollHeight:m,offset:v,start:b,end:y}=this.calRes,{componentStyle:O,onFallbackScroll:w,onScrollBar:x,useVirtual:$,collectHeight:S,sharedConfig:C,setInstance:k,mergedData:P,delayHideScrollBar:M}=this;return Sr("div",hl({style:fl(fl({},d),{position:"relative"}),class:f},h),[Sr(s,{class:`${t}-holder`,style:O,ref:"componentRef",onScroll:w,onMouseenter:M},{default:()=>[Sr(bv,{prefixCls:t,height:m,offset:v,onInnerResize:S,ref:"fillerInnerRef"},{default:()=>function(e,t,n,o,r,i){let{getKey:l}=i;return e.slice(t,n+1).map(((e,n)=>{const i=r(e,t+n,{}),a=l(e);return Sr(Ov,{key:a,setRef:t=>o(e,t)},{default:()=>[i]})}))}(P,b,y,k,u,C)})]}),$&&Sr(xv,{ref:"scrollBarRef",prefixCls:t,scrollTop:g,height:n,scrollHeight:m,count:P.length,onScroll:x,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});function Mv(e,t,n){const o=Ot(e());return wn(t,((t,r)=>{n?n(t,r)&&(o.value=e()):o.value=e()})),o}const Tv=Symbol("SelectContextKey");function Iv(e){return"string"==typeof e||"number"==typeof e}const Ev=Ln({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{expose:n,slots:o}=t;const r=uv(),i=Ao(Tv,{}),l=Xr((()=>`${r.prefixCls}-item`)),a=Mv((()=>i.flattenOptions),[()=>r.open,()=>i.flattenOptions],(e=>e[0])),s=av(),c=e=>{e.preventDefault()},u=e=>{s.current&&s.current.scrollTo("number"==typeof e?{index:e}:e)},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=a.value.length;for(let o=0;o<n;o+=1){const r=(e+o*t+n)%n,{group:i,data:l}=a.value[r];if(!i&&!l.disabled)return r}return-1},p=it({activeIndex:d(0)}),h=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];p.activeIndex=e;const n={source:t?"keyboard":"mouse"},o=a.value[e];o?i.onActiveValue(o.value,e,n):i.onActiveValue(null,-1,n)};wn([()=>a.value.length,()=>r.searchValue],(()=>{h(!1!==i.defaultActiveFirstOption?d(0):-1)}),{immediate:!0});const f=e=>i.rawValues.has(e)&&"combobox"!==r.mode;wn([()=>r.open,()=>r.searchValue],(()=>{if(!r.multiple&&r.open&&1===i.rawValues.size){const e=Array.from(i.rawValues)[0],t=pt(a.value).findIndex((t=>{let{data:n}=t;return n[i.fieldNames.value]===e}));-1!==t&&(h(t),Vt((()=>{u(t)})))}r.open&&Vt((()=>{var e;null===(e=s.current)||void 0===e||e.scrollTo(void 0)}))}),{immediate:!0,flush:"post"});const g=e=>{void 0!==e&&i.onSelect(e,{selected:!i.rawValues.has(e)}),r.multiple||r.toggleOpen(!1)},m=e=>"function"==typeof e.label?e.label():e.label;function v(e){const t=a.value[e];if(!t)return null;const n=t.data||{},{value:o}=n,{group:i}=t,l=Lm(n,!0),s=m(t);return t?Sr("div",hl(hl({"aria-label":"string"!=typeof s||i?null:s},l),{},{key:e,role:i?"presentation":"option",id:`${r.id}_list_${e}`,"aria-selected":f(o)}),[o]):null}return n({onKeydown:e=>{const{which:t,ctrlKey:n}=e;switch(t){case Tm.N:case Tm.P:case Tm.UP:case Tm.DOWN:{let e=0;if(t===Tm.UP?e=-1:t===Tm.DOWN?e=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Tm.N?e=1:t===Tm.P&&(e=-1)),0!==e){const t=d(p.activeIndex+e,e);u(t),h(t,!0)}break}case Tm.ENTER:{const t=a.value[p.activeIndex];t&&!t.data.disabled?g(t.value):g(void 0),r.open&&e.preventDefault();break}case Tm.ESC:r.toggleOpen(!1),r.open&&e.stopPropagation()}},onKeyup:()=>{},scrollTo:e=>{u(e)}}),()=>{const{id:e,notFoundContent:t,onPopupScroll:n}=r,{menuItemSelectedIcon:u,fieldNames:d,virtual:b,listHeight:y,listItemHeight:O}=i,w=o.option,{activeIndex:x}=p,$=Object.keys(d).map((e=>d[e]));return 0===a.value.length?Sr("div",{role:"listbox",id:`${e}_list`,class:`${l.value}-empty`,onMousedown:c},[t]):Sr(lr,null,[Sr("div",{role:"listbox",id:`${e}_list`,style:{height:0,width:0,overflow:"hidden"}},[v(x-1),v(x),v(x+1)]),Sr(Pv,{itemKey:"key",ref:s,data:a.value,height:y,itemHeight:O,fullHeight:!1,onMousedown:c,onScroll:n,virtual:b},{default:(e,t)=>{var n;const{group:o,groupOption:r,data:i,value:a}=e,{key:s}=i,c="function"==typeof e.label?e.label():e.label;if(o){const e=null!==(n=i.title)&&void 0!==n?n:Iv(c)&&c;return Sr("div",{class:Tl(l.value,`${l.value}-group`),title:e},[w?w(i):void 0!==c?c:s])}const{disabled:d,title:p,children:v,style:b,class:y,className:O}=i,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(i,["disabled","title","children","style","class","className"]),C=kd(S,$),k=f(a),P=`${l.value}-option`,M=Tl(l.value,P,y,O,{[`${P}-grouped`]:r,[`${P}-active`]:x===t&&!d,[`${P}-disabled`]:d,[`${P}-selected`]:k}),T=m(e),I=!u||"function"==typeof u||k,E="number"==typeof T?T:T||a;let A=Iv(E)?E.toString():void 0;return void 0!==p&&(A=p),Sr("div",hl(hl({},C),{},{"aria-selected":k,class:M,title:A,onMousemove:e=>{S.onMousemove&&S.onMousemove(e),x===t||d||h(t)},onClick:e=>{d||g(a),S.onClick&&S.onClick(e)},style:b}),[Sr("div",{class:`${P}-content`},[w?w(i):E]),ha(u)||k,I&&Sr(Em,{class:`${l.value}-option-state`,customizeIcon:u,customizeIconProps:{isSelected:k}},{default:()=>[k?"✓":null]})])}})])}}}),Av=Ev;function Rv(e){const t=e,{key:n,children:o}=t,r=t.props,{value:i,disabled:l}=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(r,["value","disabled"]);return fl({key:n,value:void 0!==i?i:n,children:null==o?void 0:o.default,disabled:l||""===l},a)}function Dv(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return oa(e).map(((e,n)=>{var o;if(!ha(e)||!e.type)return null;const{type:{isSelectOptGroup:r},key:i,children:l,props:a}=e;if(t||!r)return Rv(e);const s=l&&l.default?l.default():void 0,c=(null==a?void 0:a.label)||(null===(o=l.label)||void 0===o?void 0:o.call(l))||i;return fl(fl({key:`__RC_SELECT_GRP__${null===i?n:String(i)}__`},a),{label:c,options:Dv(s||[])})})).filter((e=>e))}function jv(e,t,n){const o=wt(),r=wt(),i=wt(),l=wt([]);return wn([e,t],(()=>{e.value?l.value=pt(e.value).slice():l.value=Dv(t.value)}),{immediate:!0,deep:!0}),yn((()=>{const e=l.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<n.length;r+=1){const i=n[r];!i[s.options]||o?(t.set(i[s.value],i),a.set(i[s.label],i)):e(i[s.options],!0)}}(e),o.value=e,r.value=t,i.value=a})),{options:o,valueOptions:r,labelOptions:i}}let Bv=0;const Nv=ms();function zv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ot("");const t=`rc_select_${function(){let e;return Nv?(e=Bv,Bv+=1):e="TEST_OR_SSR",e}()}`;return e.value||t}function _v(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function Lv(e,t){return _v(e).join("").toUpperCase().includes(t)}function Qv(e,t){const{defaultValue:n,value:o=Ot()}=t||{};let r="function"==typeof e?e():e;void 0!==o.value&&(r=Ct(o)),void 0!==n&&(r="function"==typeof n?n():n);const i=Ot(r),l=Ot(r);return yn((()=>{let e=void 0!==o.value?o.value:i.value;t.postState&&(e=t.postState(e)),l.value=e})),wn(o,(()=>{i.value=o.value})),[l,function(e){const n=l.value;i.value=e,pt(l.value)!==e&&t.onChange&&t.onChange(e,n)}]}function Hv(e){const t=Ot("function"==typeof e?e():e);return[t,function(e){t.value=e}]}const Fv=["inputValue"];function Wv(){return fl(fl({},fv()),{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:xp.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:xp.any,defaultValue:xp.any,onChange:Function,children:Array})}const Vv=Ln({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:Jl(Wv(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:n,attrs:o,slots:r}=t;const i=zv(Et(e,"id")),l=Xr((()=>gv(e.mode))),a=Xr((()=>!(e.options||!e.children))),s=Xr((()=>(void 0!==e.filterOption||"combobox"!==e.mode)&&e.filterOption)),c=Xr((()=>Ip(e.fieldNames,a.value))),[u,d]=Qv("",{value:Xr((()=>void 0!==e.searchValue?e.searchValue:e.inputValue)),postState:e=>e||""}),p=jv(Et(e,"options"),Et(e,"children"),c),{valueOptions:h,labelOptions:f,options:g}=p,m=t=>_v(t).map((t=>{var n,o;let r,i,l,a;var s;(s=t)&&"object"==typeof s?(l=t.key,i=t.label,r=null!==(n=t.value)&&void 0!==n?n:l):r=t;const u=h.value.get(r);return u&&(void 0===i&&(i=null==u?void 0:u[e.optionLabelProp||c.value.label]),void 0===l&&(l=null!==(o=null==u?void 0:u.key)&&void 0!==o?o:r),a=null==u?void 0:u.disabled),{label:i,value:r,key:l,disabled:a,option:u}})),[v,b]=Qv(e.defaultValue,{value:Et(e,"value")}),y=Xr((()=>{var t;const n=m(v.value);return"combobox"!==e.mode||(null===(t=n[0])||void 0===t?void 0:t.value)?n:[]})),[O,w]=((e,t)=>{const n=wt({values:new Map,options:new Map});return[Xr((()=>{const{values:o,options:r}=n.value,i=e.value.map((e=>{var t;return void 0===e.label?fl(fl({},e),{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,a=new Map;return i.forEach((e=>{l.set(e.value,e),a.set(e.value,t.value.get(e.value)||r.get(e.value))})),n.value.values=l,n.value.options=a,i})),e=>t.value.get(e)||n.value.options.get(e)]})(y,h),x=Xr((()=>{if(!e.mode&&1===O.value.length){const e=O.value[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return O.value.map((e=>{var t;return fl(fl({},e),{label:null!==(t="function"==typeof e.label?e.label():e.label)&&void 0!==t?t:e.value})}))})),$=Xr((()=>new Set(O.value.map((e=>e.value)))));yn((()=>{var t;if("combobox"===e.mode){const e=null===(t=O.value[0])||void 0===t?void 0:t.value;null!=e&&d(String(e))}}),{flush:"post"});const S=(e,t)=>{const n=null!=t?t:e;return{[c.value.value]:e,[c.value.label]:n}},C=wt();yn((()=>{if("tags"!==e.mode)return void(C.value=g.value);const t=g.value.slice();[...O.value].sort(((e,t)=>e.value<t.value?-1:1)).forEach((e=>{const n=e.value;(e=>h.value.has(e))(n)||t.push(S(n,e.label))})),C.value=t}));const k=(P=C,M=c,T=u,I=s,E=Et(e,"optionFilterProp"),Xr((()=>{const e=T.value,t=null==E?void 0:E.value,n=null==I?void 0:I.value;if(!e||!1===n)return P.value;const{options:o,label:r,value:i}=M.value,l=[],a="function"==typeof n,s=e.toUpperCase(),c=a?n:(e,n)=>t?Lv(n[t],s):n[o]?Lv(n["children"!==r?r:"label"],s):Lv(n[i],s),u=a?e=>Ep(e):e=>e;return P.value.forEach((t=>{if(t[o])if(c(e,u(t)))l.push(t);else{const n=t[o].filter((t=>c(e,u(t))));n.length&&l.push(fl(fl({},t),{[o]:n}))}else c(e,u(t))&&l.push(t)})),l})));var P,M,T,I,E;const A=Xr((()=>"tags"!==e.mode||!u.value||k.value.some((t=>t[e.optionFilterProp||"value"]===u.value))?k.value:[S(u.value),...k.value])),R=Xr((()=>e.filterSort?[...A.value].sort(((t,n)=>e.filterSort(t,n))):A.value)),D=Xr((()=>function(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=[],{label:r,value:i,options:l}=Ip(t,!1);return function e(t,a){t.forEach((t=>{const s=t[r];if(a||!(l in t)){const e=t[i];o.push({key:Tp(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:Tp(t,o.length),group:!0,data:t,label:r}),e(t[l],!0)}}))}(e,!1),o}(R.value,{fieldNames:c.value,childrenAsData:a.value}))),j=t=>{const n=m(t);if(b(n),e.onChange&&(n.length!==O.value.length||n.some(((e,t)=>{var n;return(null===(n=O.value[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){const t=e.labelInValue?n.map((e=>fl(fl({},e),{originLabel:e.label,label:"function"==typeof e.label?e.label():e.label}))):n.map((e=>e.value)),o=n.map((e=>Ep(w(e.value))));e.onChange(l.value?t:t[0],l.value?o:o[0])}},[B,N]=Hv(null),[z,_]=Hv(0),L=Xr((()=>void 0!==e.defaultActiveFirstOption?e.defaultActiveFirstOption:"combobox"!==e.mode)),Q=(t,n)=>{const o=()=>{var n;const o=w(t),r=null==o?void 0:o[c.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,Ep(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)}},H=(e,t)=>{j(e),"remove"!==t.type&&"clear"!==t.type||t.values.forEach((e=>{Q(e.value,!1)}))},F=(t,n)=>{var o;if(d(t),N(null),"submit"!==n.source)"blur"!==n.source&&("combobox"===e.mode&&j(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([...$.value,e]));j(t),Q(e,!0),d("")}}},W=t=>{let n=t;"tags"!==e.mode&&(n=t.map((e=>{const t=f.value.get(e);return null==t?void 0:t.value})).filter((e=>void 0!==e)));const o=Array.from(new Set([...$.value,...n]));j(o),o.forEach((e=>{Q(e,!0)}))},V=Xr((()=>!1!==e.virtual&&!1!==e.dropdownMatchSelectWidth));!function(e){Eo(Tv,e)}(pv(fl(fl({},p),{flattenOptions:D,onActiveValue:function(t,n){let{source:o="keyboard"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_(n),e.backfill&&"combobox"===e.mode&&null!==t&&"keyboard"===o&&N(String(t))},defaultActiveFirstOption:L,onSelect:(t,n)=>{let o;const r=!l.value||n.selected;o=r?l.value?[...O.value,t]:[t]:O.value.filter((e=>e.value!==t)),j(o),Q(t,r),"combobox"===e.mode?N(""):l.value&&!e.autoClearSearchValue||(d(""),N(""))},menuItemSelectedIcon:Et(e,"menuItemSelectedIcon"),rawValues:$,fieldNames:c,virtual:V,listHeight:Et(e,"listHeight"),listItemHeight:Et(e,"listItemHeight"),childrenAsData:a})));const Z=Ot();n({focus(){var e;null===(e=Z.value)||void 0===e||e.focus()},blur(){var e;null===(e=Z.value)||void 0===e||e.blur()},scrollTo(e){var t;null===(t=Z.value)||void 0===t||t.scrollTo(e)}});const X=Xr((()=>kd(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()=>Sr(mv,hl(hl(hl({},X.value),o),{},{id:i,prefixCls:e.prefixCls,ref:Z,omitDomProps:Fv,mode:e.mode,displayValues:x.value,onDisplayValuesChange:H,searchValue:u.value,onSearch:F,onSearchSplit:W,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:Av,emptyOptions:!D.value.length,activeValue:B.value,activeDescendantId:`${i}_list_${z.value}`}),r)}}),Zv=()=>null;Zv.isSelectOption=!0,Zv.displayName="ASelectOption";const Xv=Zv,Yv=()=>null;Yv.isSelectOptGroup=!0,Yv.displayName="ASelectOptGroup";const Kv=Yv,Gv={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 Uv=Symbol("iconContext"),qv=function(){return Ao(Uv,{prefixCls:Ot("anticon"),rootClassName:Ot(""),csp:Ot()})};function Jv(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var eb="data-vc-order",tb=new Map;function nb(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"vc-icon-key"}function ob(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function rb(e){return Array.from((tb.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function ib(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Jv())return null;var n=t.csp,o=t.prepend,r=document.createElement("style");r.setAttribute(eb,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o)),n&&n.nonce&&(r.nonce=n.nonce),r.innerHTML=e;var i=ob(t),l=i.firstChild;if(o){if("queue"===o){var a=rb(i).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(eb))}));if(a.length)return i.insertBefore(r,a[a.length-1].nextSibling),r}i.insertBefore(r,l)}else i.appendChild(r);return r}function lb(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n,o,r=tb.get(e);if(!(r&&(n=document,o=r,n&&n.contains&&n.contains(o)))){var i=ib("",t),l=i.parentNode;tb.set(e,l),e.removeChild(i)}}(ob(n),n);var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return rb(ob(t)).find((function(n){return n.getAttribute(nb(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=ib(e,n);return r.setAttribute(nb(n),t),r}function ab(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){sb(e,t,n[t])}))}return e}function sb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cb(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function ub(e,t,n){return Yr(e.tag,n?ab({key:t},n,e.attrs):ab({key:t},e.attrs),(e.children||[]).map((function(n,o){return ub(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})))}function db(e){return Mu(e)[0]}function pb(e){return e?Array.isArray(e)?e:[e]:[]}function hb(e){return e&&e.getRootNode&&e.getRootNode()}function fb(e){return function(e){return!!Jv()&&hb(e)instanceof ShadowRoot}(e)?hb(e):null}var gb=["icon","primaryColor","secondaryColor"];function mb(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){bb(e,t,n[t])}))}return e}function bb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yb=it({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1}),Ob=function(e,t){var n=vb({},e,t.attrs),o=n.icon,r=n.primaryColor,i=n.secondaryColor,l=mb(n,gb),a=yb;if(r&&(a={primaryColor:r,secondaryColor:i||db(r)}),cb(o),!cb(o))return null;var s=o;return s&&"function"==typeof s.icon&&(s=vb({},s,{icon:s.icon(a.primaryColor,a.secondaryColor)})),ub(s.icon,"svg-".concat(s.name),vb({},l,{"data-icon":s.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Ob.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Ob.inheritAttrs=!1,Ob.displayName="IconBase",Ob.getTwoToneColors=function(){return vb({},yb)},Ob.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;yb.primaryColor=t,yb.secondaryColor=n||db(t),yb.calculated=!!n};const wb=Ob;function xb(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){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(s){a=!0,r=s}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$b(e,t):void 0}}(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 $b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Sb(e){var t=xb(pb(e),2),n=t[0],o=t[1];return wb.setTwoToneColors({primaryColor:n,secondaryColor:o})}var Cb=Ln({name:"InsertStyles",setup:function(){var e,t,n,o,r;return e=qv(),t=e.prefixCls,n=e.csp,o=jr(),r="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\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)),Vt((function(){if(Jv()){var e=fb(o.vnode.el);lb(r,"@ant-design-vue-icons",{prepend:!0,csp:n.value,attachTo:e})}})),function(){return null}}}),kb=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Pb(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){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(s){a=!0,r=s}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Mb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mb(e,t):void 0}}(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 Mb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Tb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Ib(e,t,n[t])}))}return e}function Ib(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eb(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}Sb(Ru.primary);var Ab=function(e,t){var n,o=Tb({},e,t.attrs),r=o.class,i=o.icon,l=o.spin,a=o.rotate,s=o.tabindex,c=o.twoToneColor,u=o.onClick,d=Eb(o,kb),p=qv(),h=p.prefixCls,f=p.rootClassName,g=(Ib(n={},f.value,!!f.value),Ib(n,h.value,!0),Ib(n,"".concat(h.value,"-").concat(i.name),Boolean(i.name)),Ib(n,"".concat(h.value,"-spin"),!!l||"loading"===i.name),n),m=s;void 0===m&&u&&(m=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=Pb(pb(c),2),y=b[0],O=b[1];return Sr("span",Tb({role:"img","aria-label":i.name},d,{onClick:u,class:[g,r],tabindex:m}),[Sr(wb,{icon:i,primaryColor:y,secondaryColor:O,style:v},null),Sr(Cb,null,null)])};Ab.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},Ab.displayName="AntdIcon",Ab.inheritAttrs=!1,Ab.getTwoToneColor=function(){var e=wb.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ab.setTwoToneColor=Sb;const Rb=Ab;function Db(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){jb(e,t,n[t])}))}return e}function jb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bb=function(e,t){var n=Db({},e,t.attrs);return Sr(Rb,Db({},n,{icon:Gv}),null)};Bb.displayName="DownOutlined",Bb.inheritAttrs=!1;const Nb=Bb,zb={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function _b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Lb(e,t,n[t])}))}return e}function Lb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qb=function(e,t){var n=_b({},e,t.attrs);return Sr(Rb,_b({},n,{icon:zb}),null)};Qb.displayName="LoadingOutlined",Qb.inheritAttrs=!1;const Hb=Qb,Fb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};function Wb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Vb(e,t,n[t])}))}return e}function Vb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zb=function(e,t){var n=Wb({},e,t.attrs);return Sr(Rb,Wb({},n,{icon:Fb}),null)};Zb.displayName="CheckOutlined",Zb.inheritAttrs=!1;const Xb=Zb,Yb={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function Kb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Gb(e,t,n[t])}))}return e}function Gb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ub=function(e,t){var n=Kb({},e,t.attrs);return Sr(Rb,Kb({},n,{icon:Yb}),null)};Ub.displayName="CloseOutlined",Ub.inheritAttrs=!1;const qb=Ub,Jb={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function ey(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){ty(e,t,n[t])}))}return e}function ty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ny=function(e,t){var n=ey({},e,t.attrs);return Sr(Rb,ey({},n,{icon:Jb}),null)};ny.displayName="CloseCircleFilled",ny.inheritAttrs=!1;const oy=ny,ry={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};function iy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){ly(e,t,n[t])}))}return e}function ly(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ay=function(e,t){var n=iy({},e,t.attrs);return Sr(Rb,iy({},n,{icon:ry}),null)};ay.displayName="SearchOutlined",ay.inheritAttrs=!1;const sy=ay;function cy(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{loading:n,multiple:o,prefixCls:r,hasFeedback:i,feedbackIcon:l,showArrow:a}=e,s=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),c=e.clearIcon||t.clearIcon&&t.clearIcon(),u=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),d=e.removeIcon||t.removeIcon&&t.removeIcon(),p=null!=c?c:Sr(oy,null,null),h=e=>Sr(lr,null,[!1!==a&&e,i&&l]);let f=null;if(void 0!==s)f=h(s);else if(n)f=h(Sr(Hb,{spin:!0},null));else{const e=`${r}-suffix`;f=t=>{let{open:n,showSearch:o}=t;return h(Sr(n&&o?sy:Nb,{class:e},null))}}let g=null;g=void 0!==u?u:o?Sr(Xb,null,null):null;let m=null;return m=void 0!==d?d:Sr(qb,null,null),{clearIcon:p,suffixIcon:f,itemIcon:g,removeIcon:m}}function uy(e){const t=Symbol("contextKey");return{useProvide:(e,n)=>{const o=it({});return Eo(t,o),yn((()=>{fl(o,e,n||{})})),o},useInject:()=>Ao(t,e)||{}}}const dy=Symbol("ContextProps"),py=Symbol("InternalContextProps"),hy={id:Xr((()=>{})),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},fy={addFormItemField:()=>{},removeFormItemField:()=>{}},gy=()=>{const e=Ao(py,fy),t=Symbol("FormItemFieldKey"),n=jr();return e.addFormItemField(t,n.type),Jn((()=>{e.removeFormItemField(t)})),Eo(py,fy),Eo(dy,hy),Ao(dy,hy)},my=Ln({compatConfig:{MODE:3},name:"AFormItemRest",setup(e,t){let{slots:n}=t;return Eo(py,fy),Eo(dy,hy),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),vy=uy({}),by=Ln({name:"NoFormStatus",setup(e,t){let{slots:n}=t;return vy.useProvide({}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});function yy(e,t,n){return Tl({[`${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 Oy=(e,t)=>t||e,wy=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},xy=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"}}}}},$y=Ju("Space",(e=>[xy(e),wy(e)]));function Sy(e){return"symbol"==typeof e||qf(e)&&"[object Symbol]"==pf(e)}function Cy(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}var ky=rf?rf.prototype:void 0,Py=ky?ky.toString:void 0;function My(e){if("string"==typeof e)return e;if(Zf(e))return Cy(e,My)+"";if(Sy(e))return Py?Py.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var Ty=/\s/,Iy=/^\s+/;function Ey(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Ty.test(e.charAt(t)););return t}(e)+1).replace(Iy,""):e}var Ay=/^[-+]0x[0-9a-f]+$/i,Ry=/^0b[01]+$/i,Dy=/^0o[0-7]+$/i,jy=parseInt;function By(e){if("number"==typeof e)return e;if(Sy(e))return NaN;if(hf(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=hf(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ey(e);var n=Ry.test(e);return n||Dy.test(e)?jy(e.slice(2),n?2:8):Ay.test(e)?NaN:+e}var Ny=1/0;function zy(e){var t=function(e){return e?(e=By(e))===Ny||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),n=t%1;return t==t?n?t-n:t:0}function _y(e){return e}var Ly,Qy,Hy,Fy=Object.create,Wy=function(){function e(){}return function(t){if(!hf(t))return{};if(Fy)return Fy(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Vy=Date.now,Zy=function(){try{var e=Pf(Object,"defineProperty");return e({},"",{}),e}catch($pe){}}(),Xy=Zy?function(e,t){return Zy(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:_y,Yy=(Ly=Xy,Qy=0,Hy=0,function(){var e=Vy(),t=16-(e-Hy);if(Hy=e,t>0){if(++Qy>=800)return arguments[0]}else Qy=0;return Ly.apply(void 0,arguments)});function Ky(e,t,n,o){for(var r=e.length,i=n+(o?1:-1);o?i--:++i<r;)if(t(e[i],i,e))return i;return-1}function Gy(e){return e!=e}function Uy(e,t){return!(null==e||!e.length)&&function(e,t,n){return t==t?function(e,t,n){for(var o=n-1,r=e.length;++o<r;)if(e[o]===t)return o;return-1}(e,t,n):Ky(e,Gy,n)}(e,t,0)>-1}function qy(e,t,n){"__proto__"==t&&Zy?Zy(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Jy=Object.prototype.hasOwnProperty;function eO(e,t,n){var o=e[t];Jy.call(e,t)&&Uh(o,n)&&(void 0!==n||t in e)||qy(e,t,n)}function tO(e,t,n,o){var r=!n;n||(n={});for(var i=-1,l=t.length;++i<l;){var a=t[i],s=o?o(n[a],e[a],a,n,e):void 0;void 0===s&&(s=e[a]),r?qy(n,a,s):eO(n,a,s)}return n}var nO=Math.max;function oO(e,t,n){return t=nO(void 0===t?e.length-1:t,0),function(){for(var o=arguments,r=-1,i=nO(o.length-t,0),l=Array(i);++r<i;)l[r]=o[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=o[r];return a[t]=n(l),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,a)}}var rO=Object.prototype.hasOwnProperty;function iO(e){if(!hf(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=$g(e),n=[];for(var o in e)("constructor"!=o||!t&&rO.call(e,o))&&n.push(o);return n}function lO(e){return Mg(e)?wg(e,!0):iO(e)}var aO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sO=/^\w*$/;function cO(e,t){if(Zf(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Sy(e))||sO.test(e)||!aO.test(e)||null!=t&&e in Object(t)}function uO(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var l=e.apply(this,o);return n.cache=i.set(r,l)||i,l};return n.cache=new(uO.Cache||Df),n}uO.Cache=Df;var dO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pO=/\\(\\)?/g,hO=function(e){var t=uO(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(dO,(function(e,n,o,r){t.push(o?r.replace(pO,"$1"):n||e)})),t}));function fO(e,t){return Zf(e)?e:cO(e,t)?[e]:hO(function(e){return null==e?"":My(e)}(e))}function gO(e){if("string"==typeof e||Sy(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function mO(e,t){for(var n=0,o=(t=fO(t,e)).length;null!=e&&n<o;)e=e[gO(t[n++])];return n&&n==o?e:void 0}var vO=rf?rf.isConcatSpreadable:void 0;function bO(e){return Zf(e)||rg(e)||!!(vO&&e&&e[vO])}function yO(e,t,n,o,r){var i=-1,l=e.length;for(n||(n=bO),r||(r=[]);++i<l;){var a=e[i];t>0&&n(a)?t>1?yO(a,t-1,n,o,r):Vf(r,a):o||(r[r.length]=a)}return r}function OO(e){return null!=e&&e.length?yO(e,1):[]}function wO(e){return Yy(oO(e,void 0,OO),e+"")}var xO=Sg(Object.getPrototypeOf,Object),$O=Function.prototype,SO=Object.prototype,CO=$O.toString,kO=SO.hasOwnProperty,PO=CO.call(Object);function MO(e){if(!qf(e)||"[object Object]"!=pf(e))return!1;var t=xO(e);if(null===t)return!0;var n=kO.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&CO.call(n)==PO}var TO="object"==typeof e&&e&&!e.nodeType&&e,IO=TO&&"object"==typeof t&&t&&!t.nodeType&&t,EO=IO&&IO.exports===TO?of.Buffer:void 0,AO=EO?EO.allocUnsafe:void 0,RO=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Vf(t,Uf(e)),e=xO(e);return t}:Yf;function DO(e){return Xf(e,lO,RO)}var jO=Object.prototype.hasOwnProperty;function BO(e){var t=new e.constructor(e.byteLength);return new Lf(t).set(new Lf(e)),t}var NO=/\w*$/,zO=rf?rf.prototype:void 0,_O=zO?zO.valueOf:void 0;function LO(e,t,n){var o,r,i,l=e.constructor;switch(t){case"[object ArrayBuffer]":return BO(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return function(e,t){var n=t?BO(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?BO(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return(i=new(r=e).constructor(r.source,NO.exec(r))).lastIndex=r.lastIndex,i;case"[object Symbol]":return o=e,_O?Object(_O.call(o)):{}}}var QO,HO=vg&&vg.isMap,FO=HO?hg(HO):function(e){return qf(e)&&"[object Map]"==Xg(e)},WO=vg&&vg.isSet,VO=WO?hg(WO):function(e){return qf(e)&&"[object Set]"==Xg(e)},ZO="[object Arguments]",XO="[object Function]",YO="[object Object]",KO={};function GO(e,t,n,o,r,i){var l,a=1&t,s=2&t,c=4&t;if(n&&(l=r?n(e,o,r,i):n(e)),void 0!==l)return l;if(!hf(e))return e;var u=Zf(e);if(u){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&jO.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<o;)t[n]=e[n];return t}(e,l)}else{var d=Xg(e),p=d==XO||"[object GeneratorFunction]"==d;if(sg(e))return function(e,t){if(t)return e.slice();var n=e.length,o=AO?AO(n):new e.constructor(n);return e.copy(o),o}(e,a);if(d==YO||d==ZO||p&&!r){if(l=s||p?{}:function(e){return"function"!=typeof e.constructor||$g(e)?{}:Wy(xO(e))}(e),!a)return s?function(e,t){return tO(e,RO(e),t)}(e,function(e,t){return e&&tO(t,lO(t),e)}(l,e)):function(e,t){return tO(e,Uf(e),t)}(e,function(e,t){return e&&tO(t,Tg(t),e)}(l,e))}else{if(!KO[d])return r?e:{};l=LO(e,d,a)}}i||(i=new jf);var h=i.get(e);if(h)return h;i.set(e,l),VO(e)?e.forEach((function(o){l.add(GO(o,t,n,o,e,i))})):FO(e)&&e.forEach((function(o,r){l.set(r,GO(o,t,n,r,e,i))}));var f=u?void 0:(c?s?DO:Ig:s?lO:Tg)(e);return function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););}(f||e,(function(o,r){f&&(o=e[r=o]),eO(l,r,GO(o,t,n,r,e,i))})),l}function UO(e){return GO(e,5)}function qO(e){return e==e&&!hf(e)}function JO(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}function ew(e){var t=function(e){for(var t=Tg(e),n=t.length;n--;){var o=t[n],r=e[o];t[n]=[o,r,qO(r)]}return t}(e);return 1==t.length&&t[0][2]?JO(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,o){var r=n.length,i=r,l=!o;if(null==e)return!i;for(e=Object(e);r--;){var a=n[r];if(l&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<i;){var s=(a=n[r])[0],c=e[s],u=a[1];if(l&&a[2]){if(void 0===c&&!(s in e))return!1}else{var d=new jf;if(o)var p=o(c,u,s,e,t,d);if(!(void 0===p?Jg(u,c,3,o,d):p))return!1}}return!0}(n,e,t)}}function tw(e,t){return null!=e&&t in Object(e)}function nw(e,t){return null!=e&&function(e,t,n){for(var o=-1,r=(t=fO(t,e)).length,i=!1;++o<r;){var l=gO(t[o]);if(!(i=null!=e&&n(e,l)))break;e=e[l]}return i||++o!=r?i:!!(r=null==e?0:e.length)&&dg(r)&&ug(l,r)&&(Zf(e)||rg(e))}(e,t,tw)}function ow(e,t){return cO(e)&&qO(t)?JO(gO(e),t):function(n){var o=function(e,t,n){var o=null==e?void 0:mO(e,t);return void 0===o?n:o}(n,e);return void 0===o&&o===t?nw(n,e):Jg(t,o,3)}}function rw(e){return cO(e)?(t=gO(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return mO(t,e)}}(e);var t}function iw(e){return"function"==typeof e?e:null==e?_y:"object"==typeof e?Zf(e)?ow(e[0],e[1]):ew(e):rw(e)}function lw(e,t,n,o){for(var r=-1,i=null==e?0:e.length;++r<i;){var l=e[r];t(o,l,n(l),e)}return o}KO[ZO]=KO["[object Array]"]=KO["[object ArrayBuffer]"]=KO["[object DataView]"]=KO["[object Boolean]"]=KO["[object Date]"]=KO["[object Float32Array]"]=KO["[object Float64Array]"]=KO["[object Int8Array]"]=KO["[object Int16Array]"]=KO["[object Int32Array]"]=KO["[object Map]"]=KO["[object Number]"]=KO[YO]=KO["[object RegExp]"]=KO["[object Set]"]=KO["[object String]"]=KO["[object Symbol]"]=KO["[object Uint8Array]"]=KO["[object Uint8ClampedArray]"]=KO["[object Uint16Array]"]=KO["[object Uint32Array]"]=!0,KO["[object Error]"]=KO[XO]=KO["[object WeakMap]"]=!1;const aw=function(e,t,n){for(var o=-1,r=Object(e),i=n(e),l=i.length;l--;){var a=i[QO?l:++o];if(!1===t(r[a],a,r))break}return e};var sw=function(e,t){return function(n,o){if(null==n)return n;if(!Mg(n))return e(n,o);for(var r=n.length,i=t?r:-1,l=Object(n);(t?i--:++i<r)&&!1!==o(l[i],i,l););return n}}((function(e,t){return e&&aw(e,t,Tg)}));function cw(e,t,n,o){return sw(e,(function(e,r,i){t(o,e,n(e),i)})),o}var uw=function(){return of.Date.now()},dw=Math.max,pw=Math.min;function hw(e,t,n){var o,r,i,l,a,s,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=o,i=r;return o=r=void 0,c=t,l=e.apply(i,n)}function f(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-c>=i}function g(){var e=uw();if(f(e))return m(e);a=setTimeout(g,function(e){var n=t-(e-s);return d?pw(n,i-(e-c)):n}(e))}function m(e){return a=void 0,p&&o?h(e):(o=r=void 0,l)}function v(){var e=uw(),n=f(e);if(o=arguments,r=this,s=e,n){if(void 0===a)return function(e){return c=e,a=setTimeout(g,t),u?h(e):l}(s);if(d)return clearTimeout(a),a=setTimeout(g,t),h(s)}return void 0===a&&(a=setTimeout(g,t)),l}return t=By(t)||0,hf(n)&&(u=!!n.leading,i=(d="maxWait"in n)?dw(By(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==a&&clearTimeout(a),c=0,o=s=r=a=void 0},v.flush=function(){return void 0===a?l:m(uw())},v}function fw(e,t,n){for(var o=-1,r=null==e?0:e.length;++o<r;)if(n(t,e[o]))return!0;return!1}var gw,mw=Math.max,vw=(gw=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=null==n?0:zy(n);return r<0&&(r=mw(o+r,0)),Ky(e,iw(t),r)},function(e,t,n){var o=Object(e);if(!Mg(e)){var r=iw(t);e=Tg(e),t=function(e){return r(o[e],e,o)}}var i=gw(e,t,n);return i>-1?o[r?e[i]:i]:void 0}),bw=Math.min;function yw(e){return function(e){return qf(e)&&Mg(e)}(e)?e:[]}var Ow=function(e,t){return Yy(oO(e,t,_y),e+"")}((function(e){var t=Cy(e,yw);return t.length&&t[0]===e[0]?function(e,t,n){for(var o=n?fw:Uy,r=e[0].length,i=e.length,l=i,a=Array(i),s=1/0,c=[];l--;){var u=e[l];l&&t&&(u=Cy(u,hg(t))),s=bw(u.length,s),a[l]=!n&&(t||r>=120&&u.length>=120)?new Bf(l&&u):void 0}u=e[0];var d=-1,p=a[0];e:for(;++d<r&&c.length<s;){var h=u[d],f=t?t(h):h;if(h=n||0!==h?h:0,!(p?zf(p,f):o(c,f,n))){for(l=i;--l;){var g=a[l];if(!(g?zf(g,f):o(e[l],f,n)))continue e}p&&p.push(f),c.push(h)}}return c}(t):[]}));function ww(e,t){return t.length<2?e:mO(e,function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o<r;)i[o]=e[o+t];return i}(t,0,-1))}var xw=Object.prototype.hasOwnProperty;function $w(e){if(null==e)return!0;if(Mg(e)&&(Zf(e)||"string"==typeof e||"function"==typeof e.splice||sg(e)||yg(e)||rg(e)))return!e.length;var t=Xg(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if($g(e))return!Pg(e).length;for(var n in e)if(xw.call(e,n))return!1;return!0}function Sw(e,t){return null==(e=ww(e,t=fO(t,e)))||delete e[gO((n=t,o=null==n?0:n.length,o?n[o-1]:void 0))];var n,o}function Cw(e){return MO(e)?void 0:e}var kw=wO((function(e,t){var n={};if(null==e)return n;var o=!1;t=Cy(t,(function(t){return t=fO(t,e),o||(o=t.length>1),t})),tO(e,DO(e),n),o&&(n=GO(n,7,Cw));for(var r=t.length;r--;)Sw(n,t[r]);return n}));function Pw(e,t,n,o){if(!hf(e))return e;for(var r=-1,i=(t=fO(t,e)).length,l=i-1,a=e;null!=a&&++r<i;){var s=gO(t[r]),c=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(r!=l){var u=a[s];void 0===(c=o?o(u,s,a):void 0)&&(c=hf(u)?u:ug(t[r+1])?[]:{})}eO(a,s,c),a=a[s]}return e}var Mw,Tw,Iw=(Mw=function(e,t,n){e[n?0:1].push(t)},Tw=function(){return[[],[]]},function(e,t){var n=Zf(e)?lw:cw,o=Tw?Tw():{};return n(e,Mw,iw(t),o)});const Ew=Iw;function Aw(e,t){return function(e,t,n){for(var o=-1,r=t.length,i={};++o<r;){var l=t[o],a=mO(e,l);n(a,l)&&Pw(i,fO(l,e),a)}return i}(e,t,(function(t,n){return nw(e,n)}))}var Rw=wO((function(e,t){return null==e?{}:Aw(e,t)})),Dw=Dg&&1/Hf(new Dg([,-0]))[1]==1/0?function(e){return new Dg(e)}:function(){};function jw(e){return e&&e.length?function(e,t,n){var o=-1,r=Uy,i=e.length,l=!0,a=[],s=a;if(n)l=!1,r=fw;else if(i>=200){var c=t?null:Dw(e);if(c)return Hf(c);l=!1,r=zf,s=new Bf}else s=t?[]:a;e:for(;++o<i;){var u=e[o],d=t?t(u):u;if(u=n||0!==u?u:0,l&&d==d){for(var p=s.length;p--;)if(s[p]===d)continue e;t&&s.push(d),a.push(u)}else r(s,d,n)||(s!==a&&s.push(d),a.push(u))}return a}(e):[]}const Bw=uy(null),Nw=(e,t)=>{const n=Bw.useInject(),o=Xr((()=>{if(!n||$w(n))return"";const{compactDirection:o,isFirstItem:r,isLastItem:i}=n,l="vertical"===o?"-vertical-":"-";return Tl({[`${e.value}-compact${l}item`]:!0,[`${e.value}-compact${l}first-item`]:r,[`${e.value}-compact${l}last-item`]:i,[`${e.value}-compact${l}item-rtl`]:"rtl"===t.value})}));return{compactSize:Xr((()=>null==n?void 0:n.compactSize)),compactDirection:Xr((()=>null==n?void 0:n.compactDirection)),compactItemClassnames:o}},zw=Ln({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return Bw.useProvide(null),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),_w=Ln({name:"CompactItem",props:{compactSize:String,compactDirection:xp.oneOf($a("horizontal","vertical")).def("horizontal"),isFirstItem:Pa(),isLastItem:Pa()},setup(e,t){let{slots:n}=t;return Bw.useProvide(e),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),Lw=Ln({name:"ASpaceCompact",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},direction:xp.oneOf($a("horizontal","vertical")).def("horizontal"),align:xp.oneOf($a("start","end","center","baseline")),block:{type:Boolean,default:void 0}},setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:i}=Cd("space-compact",e),l=Bw.useInject(),[a,s]=$y(r),c=Xr((()=>Tl(r.value,s.value,{[`${r.value}-rtl`]:"rtl"===i.value,[`${r.value}-block`]:e.block,[`${r.value}-vertical`]:"vertical"===e.direction})));return()=>{var t;const i=oa((null===(t=o.default)||void 0===t?void 0:t.call(o))||[]);return 0===i.length?null:a(Sr("div",hl(hl({},n),{},{class:[c.value,n.class]}),[i.map(((t,n)=>{var o;const a=t&&t.key||`${r.value}-item-${n}`,s=!l||$w(l);return Sr(_w,{key:a,compactSize:null!==(o=e.size)&&void 0!==o?o:"middle",compactDirection:e.direction,isFirstItem:0===n&&(s||(null==l?void 0:l.isFirstItem)),isLastItem:n===i.length-1&&(s||(null==l?void 0:l.isLastItem))},{default:()=>[t]})}))]))}}}),Qw=e=>({animationDuration:e,animationFillMode:"both"}),Hw=e=>({animationDuration:e,animationFillMode:"both"}),Fw=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 `]:fl(fl({},Qw(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:fl(fl({},Hw(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"}}},Ww=new Xc("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Vw=new Xc("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Zw=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[Fw(o,Ww,Vw,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},Xw=new Xc("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Yw=new Xc("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Kw=new Xc("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Gw=new Xc("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Uw=new Xc("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),qw=new Xc("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Jw={"move-up":{inKeyframes:new Xc("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 Xc("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:Xw,outKeyframes:Yw},"move-left":{inKeyframes:Kw,outKeyframes:Gw},"move-right":{inKeyframes:Uw,outKeyframes:qw}},ex=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Jw[t];return[Fw(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},tx=new Xc("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),nx=new Xc("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ox=new Xc("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),rx=new Xc("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ix=new Xc("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),lx=new Xc("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),ax=new Xc("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),sx=new Xc("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),cx={"slide-up":{inKeyframes:tx,outKeyframes:nx},"slide-down":{inKeyframes:ox,outKeyframes:rx},"slide-left":{inKeyframes:ix,outKeyframes:lx},"slide-right":{inKeyframes:ax,outKeyframes:sx}},ux=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=cx[t];return[Fw(o,r,i,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}}]},dx=new Xc("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),px=new Xc("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),hx=new Xc("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),fx=new Xc("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),gx=new Xc("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),mx=new Xc("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),vx=new Xc("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),bx=new Xc("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),yx=new Xc("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Ox=new Xc("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),wx=new Xc("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),xx=new Xc("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),$x={zoom:{inKeyframes:dx,outKeyframes:px},"zoom-big":{inKeyframes:hx,outKeyframes:fx},"zoom-big-fast":{inKeyframes:hx,outKeyframes:fx},"zoom-left":{inKeyframes:vx,outKeyframes:bx},"zoom-right":{inKeyframes:yx,outKeyframes:Ox},"zoom-up":{inKeyframes:gx,outKeyframes:mx},"zoom-down":{inKeyframes:wx,outKeyframes:xx}},Sx=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=$x[t];return[Fw(o,r,i,"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}}]},Cx=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`}}}),kx=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"}},Px=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`;return[{[`${n}-dropdown`]:fl(fl({},Yu(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:tx},[`\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:ox},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:nx},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:rx},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${o}-empty`]:fl(fl({},kx(e)),{color:e.colorTextDisabled}),[`${o}`]:fl(fl({},kx(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":fl({flex:"auto"},Xu),"&-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"}})},ux(e,"slide-up"),ux(e,"slide-down"),ex(e,"move-up"),ex(e,"move-down")]};function Mx(e){let{controlHeightSM:t,controlHeight:n,lineWidth:o}=e;const r=(n-t)/2-o;return[r,Math.ceil(r/2)]}function Tx(e,t){const{componentCls:n,iconCls:o}=e,r=`${n}-selection-overflow`,i=e.controlHeightSM,[l]=Mx(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:l-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${i}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:i,marginTop:2,marginBottom:2,lineHeight:i-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:4,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":fl(fl({},{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"}}),{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-l,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}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 Ix(e){const{componentCls:t}=e,n=nd(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,o]=Mx(e);return[Tx(e),Tx(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:o}}},Tx(nd(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function Ex(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,i=e.controlHeight-2*e.lineWidth,l=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:fl(fl({},Yu(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:`${i}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}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:l},[`&${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:i},"&:after":{lineHeight:`${i}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 Ax(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[Ex(e),Ex(nd(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}}}},Ex(nd(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function Rx(e,t,n){const{focusElCls:o,focus:r,borderElCls:i}=n,l=i?"> *":"",a=["hover",r?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${l}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":fl(fl({[a]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function Dx(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 jx(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:fl(fl({},Rx(e,o,t)),Dx(n,o,t))}}const Bx=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"}}}},Nx=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:o,borderHoverColor:r,outlineColor:i,antCls:l}=t;return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${l}-pagination-size-changer)`]:fl(fl({},n?{[`${o}-selector`]:{borderColor:r}}:{}),{[`${o}-focused& ${o}-selector`]:{borderColor:r,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${o}-selector`]:{borderColor:r,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},zx=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"}}}},_x=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:fl(fl({},Yu(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:fl(fl({},Bx(e)),zx(e)),[`${t}-selection-item`]:fl({flex:1,fontWeight:"normal"},Xu),[`${t}-selection-placeholder`]:fl(fl({},Xu),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:fl(fl({},{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"}}),{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}}}},Lx=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%"}}},_x(e),Ax(e),Ix(e),Px(e),{[`${t}-rtl`]:{direction:"rtl"}},Nx(t,nd(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),Nx(`${t}-status-error`,nd(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),Nx(`${t}-status-warning`,nd(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),jx(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Qx=Ju("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=nd(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[Lx(o)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50}))),Hx=()=>fl(fl({},kd(Wv(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:Aa([Array,Object,String,Number]),defaultValue:Aa([Array,Object,String,Number]),notFoundContent:xp.any,suffixIcon:xp.any,itemIcon:xp.any,size:Ea(),mode:Ea(),bordered:Pa(!0),transitionName:String,choiceTransitionName:Ea(""),popupClassName:String,dropdownClassName:String,placement:Ea(),status:Ea(),"onUpdate:value":Ma()}),Fx="SECRET_COMBOBOX_MODE_DO_NOT_USE",Wx=Ln({compatConfig:{MODE:3},name:"ASelect",Option:Xv,OptGroup:Kv,inheritAttrs:!1,props:Jl(Hx(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:Fx,slots:Object,setup(e,t){let{attrs:n,emit:o,slots:r,expose:i}=t;const l=Ot(),a=gy(),s=vy.useInject(),c=Xr((()=>Oy(s.status,e.status))),u=Xr((()=>{const{mode:t}=e;if("combobox"!==t)return t===Fx?"combobox":t})),{prefixCls:d,direction:p,configProvider:h,renderEmpty:f,size:g,getPrefixCls:m,getPopupContainer:v,disabled:b,select:y}=Cd("select",e),{compactSize:O,compactItemClassnames:w}=Nw(d,p),x=Xr((()=>O.value||g.value)),$=Ka(),S=Xr((()=>{var e;return null!==(e=b.value)&&void 0!==e?e:$.value})),[C,k]=Qx(d),P=Xr((()=>m())),M=Xr((()=>void 0!==e.placement?e.placement:"rtl"===p.value?"bottomRight":"bottomLeft")),T=Xr((()=>am(P.value,rm(M.value),e.transitionName))),I=Xr((()=>Tl({[`${d.value}-lg`]:"large"===x.value,[`${d.value}-sm`]:"small"===x.value,[`${d.value}-rtl`]:"rtl"===p.value,[`${d.value}-borderless`]:!e.bordered,[`${d.value}-in-form-item`]:s.isFormItemInput},yy(d.value,c.value,s.hasFeedback),w.value,k.value))),E=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o("update:value",t[0]),o("change",...t),a.onFieldChange()},A=e=>{o("blur",e),a.onFieldBlur()};i({blur:()=>{var e;null===(e=l.value)||void 0===e||e.blur()},focus:()=>{var e;null===(e=l.value)||void 0===e||e.focus()},scrollTo:e=>{var t;null===(t=l.value)||void 0===t||t.scrollTo(e)}});const R=Xr((()=>"multiple"===u.value||"tags"===u.value)),D=Xr((()=>void 0!==e.showArrow?e.showArrow:e.loading||!(R.value||"combobox"===u.value)));return()=>{var t,o,i,c;const{notFoundContent:h,listHeight:g=256,listItemHeight:m=24,popupClassName:b,dropdownClassName:O,virtual:w,dropdownMatchSelectWidth:x,id:$=a.id.value,placeholder:P=(null===(t=r.placeholder)||void 0===t?void 0:t.call(r)),showArrow:M}=e,{hasFeedback:j,feedbackIcon:B}=s;let N;N=void 0!==h?h:r.notFoundContent?r.notFoundContent():"combobox"===u.value?null:(null==f?void 0:f("Select"))||Sr(Od,{componentName:"Select"},null);const{suffixIcon:z,itemIcon:_,removeIcon:L,clearIcon:Q}=cy(fl(fl({},e),{multiple:R.value,prefixCls:d.value,hasFeedback:j,feedbackIcon:B,showArrow:D.value}),r),H=kd(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),F=Tl(b||O,{[`${d.value}-dropdown-${p.value}`]:"rtl"===p.value},k.value);return C(Sr(Vv,hl(hl(hl({ref:l,virtual:w,dropdownMatchSelectWidth:x},H),n),{},{showSearch:null!==(o=e.showSearch)&&void 0!==o?o:null===(i=null==y?void 0:y.value)||void 0===i?void 0:i.showSearch,placeholder:P,listHeight:g,listItemHeight:m,mode:u.value,prefixCls:d.value,direction:p.value,inputIcon:z,menuItemSelectedIcon:_,removeIcon:L,clearIcon:Q,notFoundContent:N,class:[I.value,n.class],getPopupContainer:null==v?void 0:v.value,dropdownClassName:F,onChange:E,onBlur:A,id:$,dropdownRender:H.dropdownRender||r.dropdownRender,transitionName:T.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:j||M,disabled:S.value}),{option:r.option}))}}});Wx.install=function(e){return e.component(Wx.name,Wx),e.component(Wx.Option.displayName,Wx.Option),e.component(Wx.OptGroup.displayName,Wx.OptGroup),e};const Vx=Wx.Option,Zx=Wx.OptGroup,Xx=()=>null;Xx.isSelectOption=!0,Xx.displayName="AAutoCompleteOption";const Yx=Xx,Kx=()=>null;Kx.isSelectOptGroup=!0,Kx.displayName="AAutoCompleteOptGroup";const Gx=Kx,Ux=Yx,qx=Gx,Jx=Ln({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:fl(fl({},kd(Hx(),["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;Rs(),Rs(),Rs(!e.dropdownClassName);const i=Ot(),l=()=>{var e;const t=oa(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=i.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=i.value)||void 0===e||e.blur()}});const{prefixCls:a}=Cd("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:h}=o,f={[h]:!!h,[`${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(ha(e))return e;switch(typeof e){case"string":return Sr(Yx,{key:e,value:e},{default:()=>[e]});case"object":return Sr(Yx,{key:e.value,value:e.value},{default:()=>[e.text]});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}})):[]}const g=kd(fl(fl(fl({},e),o),{mode:Wx.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:l,notFoundContent:d,class:f,popupClassName:e.popupClassName||e.dropdownClassName,ref:i}),["dataSource","loading"]);return Sr(Wx,g,hl({default:()=>[p]},kd(n,["default","dataSource","options"])))}}}),e$=fl(Jx,{Option:Yx,OptGroup:Gx,install:e=>(e.component(Jx.name,Jx),e.component(Yx.displayName,Yx),e.component(Gx.displayName,Gx),e)}),t$={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 n$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){o$(e,t,n[t])}))}return e}function o$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r$=function(e,t){var n=n$({},e,t.attrs);return Sr(Rb,n$({},n,{icon:t$}),null)};r$.displayName="CheckCircleOutlined",r$.inheritAttrs=!1;const i$=r$,l$={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:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};function a$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){s$(e,t,n[t])}))}return e}function s$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c$=function(e,t){var n=a$({},e,t.attrs);return Sr(Rb,a$({},n,{icon:l$}),null)};c$.displayName="ExclamationCircleOutlined",c$.inheritAttrs=!1;const u$=c$,d$={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:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};function p$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){h$(e,t,n[t])}))}return e}function h$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f$=function(e,t){var n=p$({},e,t.attrs);return Sr(Rb,p$({},n,{icon:d$}),null)};f$.displayName="InfoCircleOutlined",f$.inheritAttrs=!1;const g$=f$,m$={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};function v$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){b$(e,t,n[t])}))}return e}function b$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y$=function(e,t){var n=v$({},e,t.attrs);return Sr(Rb,v$({},n,{icon:m$}),null)};y$.displayName="CloseCircleOutlined",y$.inheritAttrs=!1;const O$=y$,w$={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 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function x$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){$$(e,t,n[t])}))}return e}function $$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S$=function(e,t){var n=x$({},e,t.attrs);return Sr(Rb,x$({},n,{icon:w$}),null)};S$.displayName="CheckCircleFilled",S$.inheritAttrs=!1;const C$=S$,k$={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 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};function P$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){M$(e,t,n[t])}))}return e}function M$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T$=function(e,t){var n=P$({},e,t.attrs);return Sr(Rb,P$({},n,{icon:k$}),null)};T$.displayName="ExclamationCircleFilled",T$.inheritAttrs=!1;const I$=T$,E$={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 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};function A$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){R$(e,t,n[t])}))}return e}function R$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D$=function(e,t){var n=A$({},e,t.attrs);return Sr(Rb,A$({},n,{icon:E$}),null)};D$.displayName="InfoCircleFilled",D$.inheritAttrs=!1;const j$=D$,B$=(e,t,n,o,r)=>({backgroundColor:e,border:`${o.lineWidth}px ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),N$=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:i,fontSizeLG:l,lineHeight:a,borderRadiusLG:s,motionEaseInOutCirc:c,alertIconSizeLG:u,colorText:d,paddingContentVerticalSM:p,alertPaddingHorizontal:h,paddingMD:f,paddingContentHorizontalLG:g}=e;return{[t]:fl(fl({},Yu(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${p}px ${h}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:i,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:g,paddingBlock:f,[`${t}-icon`]:{marginInlineEnd:r,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:d,fontSize:l},[`${t}-description`]:{display:"block"}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},z$=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:i,colorWarningBorder:l,colorWarningBg:a,colorError:s,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:p,colorInfoBg:h}=e;return{[t]:{"&-success":B$(r,o,n,e,t),"&-info":B$(h,p,d,e,t),"&-warning":B$(a,l,i,e,t),"&-error":fl(fl({},B$(u,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},_$=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:i,colorIcon:l,colorIconHover:a}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:i,lineHeight:`${i}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:l,transition:`color ${o}`,"&:hover":{color:a}}},"&-close-text":{color:l,transition:`color ${o}`,"&:hover":{color:a}}}}},L$=e=>[N$(e),z$(e),_$(e)],Q$=Ju("Alert",(e=>{const{fontSizeHeading3:t}=e,n=nd(e,{alertIconSizeLG:t,alertPaddingHorizontal:12});return[L$(n)]})),H$={success:C$,info:j$,error:oy,warning:I$},F$={success:i$,info:g$,error:O$,warning:u$},W$=$a("success","info","warning","error"),V$=Sa(Ln({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:{type:xp.oneOf(W$),closable:{type:Boolean,default:void 0},closeText:xp.any,message:xp.any,description:xp.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:xp.any,closeIcon:xp.any,onClose:Function},setup(e,t){let{slots:n,emit:o,attrs:r,expose:i}=t;const{prefixCls:l,direction:a}=Cd("alert",e),[s,c]=Q$(l),u=wt(!1),d=wt(!1),p=wt(),h=e=>{e.preventDefault();const t=p.value;t.style.height=`${t.offsetHeight}px`,t.style.height=`${t.offsetHeight}px`,u.value=!0,o("close",e)},f=()=>{var t;u.value=!1,d.value=!0,null===(t=e.afterClose)||void 0===t||t.call(e)},g=Xr((()=>{const{type:t}=e;return void 0!==t?t:e.banner?"warning":"info"}));i({animationEnd:f});const m=wt({});return()=>{var t,o,i,v,b,y,O,w,x,$;const{banner:S,closeIcon:C=(null===(t=n.closeIcon)||void 0===t?void 0:t.call(n))}=e;let{closable:k,showIcon:P}=e;const M=null!==(o=e.closeText)&&void 0!==o?o:null===(i=n.closeText)||void 0===i?void 0:i.call(n),T=null!==(v=e.description)&&void 0!==v?v:null===(b=n.description)||void 0===b?void 0:b.call(n),I=null!==(y=e.message)&&void 0!==y?y:null===(O=n.message)||void 0===O?void 0:O.call(n),E=null!==(w=e.icon)&&void 0!==w?w:null===(x=n.icon)||void 0===x?void 0:x.call(n),A=null===($=n.action)||void 0===$?void 0:$.call(n);P=!(!S||void 0!==P)||P;const R=(T?F$:H$)[g.value]||null;M&&(k=!0);const D=l.value,j=Tl(D,{[`${D}-${g.value}`]:!0,[`${D}-closing`]:u.value,[`${D}-with-description`]:!!T,[`${D}-no-icon`]:!P,[`${D}-banner`]:!!S,[`${D}-closable`]:k,[`${D}-rtl`]:"rtl"===a.value,[c.value]:!0}),B=k?Sr("button",{type:"button",onClick:h,class:`${D}-close-icon`,tabindex:0},[M?Sr("span",{class:`${D}-close-text`},[M]):void 0===C?Sr(qb,null,null):C]):null,N=E&&(ha(E)?Zh(E,{class:`${D}-icon`}):Sr("span",{class:`${D}-icon`},[E]))||Sr(R,{class:`${D}-icon`},null),z=im(`${D}-motion`,{appear:!1,css:!0,onAfterLeave:f,onBeforeLeave:e=>{e.style.maxHeight=`${e.offsetHeight}px`},onLeave:e=>{e.style.maxHeight="0px"}});return s(d.value?null:Sr(ni,z,{default:()=>[kn(Sr("div",hl(hl({role:"alert"},r),{},{style:[r.style,m.value],class:[r.class,j],"data-show":!u.value,ref:p}),[P?N:null,Sr("div",{class:`${D}-content`},[I?Sr("div",{class:`${D}-message`},[I]):null,T?Sr("div",{class:`${D}-description`},[T]):null]),A?Sr("div",{class:`${D}-action`},[A]):null,B]),[[yi,!u.value]])]}))}}})),Z$=["xxxl","xxl","xl","lg","md","sm","xs"];function X$(){const[,e]=cd();return Xr((()=>{const t=(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}`}))(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(fl(fl({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}))}function Y$(){const e=wt({});let t=null;const n=X$();return Gn((()=>{t=n.value.subscribe((t=>{e.value=t}))})),eo((()=>{n.value.unsubscribe(t)})),e}function K$(e){const t=wt();return yn((()=>{t.value=e()}),{flush:"sync"}),t}const G$=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:i,containerSize:l,containerSizeLG:a,containerSizeSM:s,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:p,borderRadiusLG:h,borderRadiusSM:f,lineWidth:g,lineType:m}=e,v=(e,t,r)=>({width:e,height:e,lineHeight:e-2*g+"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]:fl(fl(fl(fl({},Yu(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${g}px ${m} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),v(l,c,p)),{"&-lg":fl({},v(a,u,h)),"&-sm":fl({},v(s,d,f)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},U$=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}}}},q$=Ju("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=nd(e,{avatarBg:n,avatarColor:t});return[G$(o),U$(o)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:i,fontSizeXL:l,fontSizeHeading3:a,marginXS:s,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:Math.round((i+l)/2),textFontSizeLG:a,textFontSizeSM:r,groupSpace:c,groupOverlapping:-s,groupBorderColor:u}})),J$=Symbol("AvatarContextKey"),eS=Ln({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:xp.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=wt(!0),i=wt(!1),l=wt(1),a=wt(null),s=wt(null),{prefixCls:c}=Cd("avatar",e),[u,d]=q$(c),p=Ao(J$,{}),h=Xr((()=>"default"===e.size?p.size:e.size)),f=Y$(),g=K$((()=>{if("object"!=typeof e.size)return;const t=Z$.find((e=>f.value[e]));return e.size[t]})),m=()=>{if(!a.value||!s.value)return;const t=a.value.offsetWidth,n=s.value.offsetWidth;if(0!==t&&0!==n){const{gap:o=4}=e;2*o<n&&(l.value=n-2*o<t?(n-2*o)/t:1)}},v=()=>{const{loadError:t}=e;!1!==(null==t?void 0:t())&&(r.value=!1)};return wn((()=>e.src),(()=>{Vt((()=>{r.value=!0,l.value=1}))})),wn((()=>e.gap),(()=>{Vt((()=>{m()}))})),Gn((()=>{Vt((()=>{m(),i.value=!0}))})),()=>{var t,f;const{shape:b,src:y,alt:O,srcset:w,draggable:x,crossOrigin:$}=e,S=null!==(t=p.shape)&&void 0!==t?t:b,C=fa(n,e,"icon"),k=c.value,P={[`${o.class}`]:!!o.class,[k]:!0,[`${k}-lg`]:"large"===h.value,[`${k}-sm`]:"small"===h.value,[`${k}-${S}`]:!0,[`${k}-image`]:y&&r.value,[`${k}-icon`]:C,[d.value]:!0},M="number"==typeof h.value?{width:`${h.value}px`,height:`${h.value}px`,lineHeight:`${h.value}px`,fontSize:C?h.value/2+"px":"18px"}:{},T=null===(f=n.default)||void 0===f?void 0:f.call(n);let I;if(y&&r.value)I=Sr("img",{draggable:x,src:y,srcset:w,onError:v,alt:O,crossorigin:$},null);else if(C)I=C;else if(i.value||1!==l.value){const e=`scale(${l.value}) translateX(-50%)`,t={msTransform:e,WebkitTransform:e,transform:e},n="number"==typeof h.value?{lineHeight:`${h.value}px`}:{};I=Sr(ga,{onResize:m},{default:()=>[Sr("span",{class:`${k}-string`,ref:a,style:fl(fl({},n),t)},[T])]})}else I=Sr("span",{class:`${k}-string`,ref:a,style:{opacity:0}},[T]);return u(Sr("span",hl(hl({},o),{},{ref:s,class:P,style:[M,(E=!!C,g.value?{width:`${g.value}px`,height:`${g.value}px`,lineHeight:`${g.value}px`,fontSize:(E?g.value/2:18)+"px"}:{}),o.style]}),[I]));var E}}}),tS={adjustX:1,adjustY:1},nS=[0,0],oS={left:{points:["cr","cl"],overflow:tS,offset:[-4,0],targetOffset:nS},right:{points:["cl","cr"],overflow:tS,offset:[4,0],targetOffset:nS},top:{points:["bc","tc"],overflow:tS,offset:[0,-4],targetOffset:nS},bottom:{points:["tc","bc"],overflow:tS,offset:[0,4],targetOffset:nS},topLeft:{points:["bl","tl"],overflow:tS,offset:[0,-4],targetOffset:nS},leftTop:{points:["tr","tl"],overflow:tS,offset:[-4,0],targetOffset:nS},topRight:{points:["br","tr"],overflow:tS,offset:[0,-4],targetOffset:nS},rightTop:{points:["tl","tr"],overflow:tS,offset:[4,0],targetOffset:nS},bottomRight:{points:["tr","br"],overflow:tS,offset:[0,4],targetOffset:nS},rightBottom:{points:["bl","br"],overflow:tS,offset:[4,0],targetOffset:nS},bottomLeft:{points:["tl","bl"],overflow:tS,offset:[0,4],targetOffset:nS},leftBottom:{points:["br","bl"],overflow:tS,offset:[-4,0],targetOffset:nS}},rS=Ln({compatConfig:{MODE:3},name:"TooltipContent",props:{prefixCls:String,id:String,overlayInnerStyle:xp.any},setup(e,t){let{slots:n}=t;return()=>{var t;return Sr("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 iS(){}const lS=Ln({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:xp.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:xp.string.def("right"),transitionName:String,animation:xp.any,afterVisibleChange:xp.func.def((()=>{})),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:xp.string.def("rc-tooltip"),mouseEnterDelay:xp.number.def(.1),mouseLeaveDelay:xp.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:xp.object.def((()=>({}))),arrowContent:xp.any.def(null),tipId:String,builtinPlacements:xp.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 i=wt(),l=()=>{const{prefixCls:t,tipId:o,overlayInnerStyle:r}=e;return[Sr("div",{class:`${t}-arrow`,key:"arrow"},[fa(n,e,"arrowContent")]),Sr(rS,{key:"content",prefixCls:t,id:o,overlayInnerStyle:r},{overlay:n.overlay})]};r({getPopupDomNode:()=>i.value.getPopupDomNode(),triggerDOM:i,forcePopupAlign:()=>{var e;return null===(e=i.value)||void 0===e?void 0:e.forcePopupAlign()}});const a=wt(!1),s=wt(!1);return yn((()=>{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:h,transitionName:f,animation:g,placement:m,align:v,destroyTooltipOnHide:b,defaultVisible:y}=e,O=fl({},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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]));void 0!==e.visible&&(O.popupVisible=e.visible);const w=fl(fl(fl({popupClassName:t,prefixCls:p,action:r,builtinPlacements:oS,popupPlacement:m,popupAlign:v,afterPopupVisibleChange:h,popupTransitionName:f,popupAnimation:g,defaultPopupVisible:y,destroyPopupOnHide:a.value,autoDestroy:s.value,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:c},O),o),{onPopupVisibleChange:e.onVisibleChange||iS,onPopupAlign:e.onPopupAlign||iS,ref:i,popup:l()});return Sr(Pm,w,{default:n.default})}}}),aS=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:ka(),overlayInnerStyle:ka(),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:ka(),builtinPlacements:ka(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),sS={adjustX:1,adjustY:1},cS={adjustX:0,adjustY:0},uS=[0,0];function dS(e){return"boolean"==typeof e?e?sS:cS:fl(fl({},cS),e)}function pS(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:r,arrowPointAtCenter:i}=e,l={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(l).forEach((e=>{l[e]=i?fl(fl({},l[e]),{overflow:dS(r),targetOffset:uS}):fl(fl({},oS[e]),{overflow:dS(r)}),l[e].ignoreShake=!0})),l}function hS(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let t=0,n=e.length;t<n;t++)if(void 0!==e[t])return e[t]}const fS=nu.map((e=>`${e}-inverse`)),gS=["success","processing","error","default","warning"];function mS(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?nu.includes(e):[...fS,...nu].includes(e)}function vS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.map((e=>`${t}${e}`)).join(",")}function bS(e){const{sizePopupArrow:t,contentRadius:n,borderRadiusOuter:o,limitVerticalRadius:r}=e,i=t/2-Math.ceil(o*(Math.sqrt(2)-1)),l=(n>12?n+2:12)-i;return{dropdownArrowOffset:l,dropdownArrowOffsetVertical:r?8-i:l}}function yS(e,t){const{componentCls:n,sizePopupArrow:o,marginXXS:r,borderRadiusXS:i,borderRadiusOuter:l,boxShadowPopoverArrow:a}=e,{colorBg:s,showArrowCls:c,contentRadius:u=e.borderRadiusLG,limitVerticalRadius:d}=t,{dropdownArrowOffsetVertical:p,dropdownArrowOffset:h}=bS({sizePopupArrow:o,contentRadius:u,borderRadiusOuter:l,limitVerticalRadius:d}),f=o/2+r;return{[n]:{[`${n}-arrow`]:[fl(fl({position:"absolute",zIndex:1,display:"block"},Vu(o,i,l,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:h}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}},[[`&-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:h}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}},[[`&-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},[vS(["&-placement-topLeft","&-placement-top","&-placement-topRight"],c)]:{paddingBottom:f},[vS(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"],c)]:{paddingTop:f},[vS(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"],c)]:{paddingRight:{_skip_check_:!0,value:f}},[vS(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"],c)]:{paddingLeft:{_skip_check_:!0,value:f}}}}}const OS=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:a,boxShadowSecondary:s,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:fl(fl(fl(fl({},Yu(e)),{position:"absolute",zIndex:l,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:i,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,8)}},[`${t}-content`]:{position:"relative"}}),Zu(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},yS(nd(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},wS=()=>fl(fl({},aS()),{title:xp.any}),xS=Sa(Ln({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:Jl(wS(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r,expose:i}=t;const{prefixCls:l,getPopupContainer:a,direction:s,rootPrefixCls:c}=Cd("tooltip",e),u=Xr((()=>{var t;return null!==(t=e.open)&&void 0!==t?t:e.visible})),d=Ot(hS([e.open,e.visible])),p=Ot();let h;wn(u,(e=>{wa.cancel(h),h=wa((()=>{d.value=!!e}))}));const f=()=>{var t;const o=null!==(t=e.title)&&void 0!==t?t:n.title;return!o&&0!==o},g=e=>{const t=f();void 0===u.value&&(d.value=!t&&e),t||(o("update:visible",e),o("visibleChange",e),o("update:open",e),o("openChange",e))};i({getPopupDomNode:()=>p.value.getPopupDomNode(),open:d,forcePopupAlign:()=>{var e;return null===(e=p.value)||void 0===e?void 0:e.forcePopupAlign()}});const m=Xr((()=>{const{builtinPlacements:t,arrowPointAtCenter:n,autoAdjustOverflow:o}=e;return t||pS({arrowPointAtCenter:n,autoAdjustOverflow:o})})),v=e=>e||""===e,b=e=>{const t=e.type;if("object"==typeof t&&e.props&&((!0===t.__ANT_BUTTON||"button"===t)&&v(e.props.disabled)||!0===t.__ANT_SWITCH&&(v(e.props.disabled)||v(e.props.loading))||!0===t.__ANT_RADIO&&v(e.props.disabled))){const{picked:t,omitted:n}=((e,t)=>{const n={},o=fl({},e);return t.forEach((t=>{e&&t in e&&(n[t]=e[t],delete o[t])})),{picked:n,omitted:o}})(ca(e),["position","left","right","top","bottom","float","display","zIndex"]),o=fl(fl({display:"inline-block"},t),{cursor:"not-allowed",lineHeight:1,width:e.props&&e.props.block?"100%":void 0}),r=Zh(e,{style:fl(fl({},n),{pointerEvents:"none"})},!0);return Sr("span",{style:o,class:`${l.value}-disabled-compatible-wrapper`},[r])}return e},y=()=>{var t,o;return null!==(t=e.title)&&void 0!==t?t:null===(o=n.title)||void 0===o?void 0:o.call(n)},O=(e,t)=>{const n=m.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}`}},w=Xr((()=>function(e,t){const n=mS(t),o=Tl({[`${e}-${t}`]:t&&n}),r={},i={};return t&&!n&&(r.background=t,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:i}}(l.value,e.color))),x=Xr((()=>r["data-popover-inject"])),[$,S]=((e,t)=>Ju("Tooltip",(e=>{if(!1===(null==t?void 0:t.value))return[];const{borderRadius:n,colorTextLightSolid:o,colorBgDefault:r,borderRadiusOuter:i}=e,l=nd(e,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:n,tooltipBg:r,tooltipRadiusOuter:i>4?4:i});return[OS(l),Sx(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}))(e))(l,Xr((()=>!x.value)));return()=>{var t,o;const{openClassName:i,overlayClassName:h,overlayStyle:v,overlayInnerStyle:x}=e;let C=null!==(o=da(null===(t=n.default)||void 0===t?void 0:t.call(n)))&&void 0!==o?o:null;C=1===C.length?C[0]:C;let k=d.value;if(void 0===u.value&&f()&&(k=!1),!C)return null;const P=b(!ha(C)||1===(M=C).length&&M[0].type===lr?Sr("span",null,[C]):C);var M;const T=Tl({[i||`${l.value}-open`]:!0,[P.props&&P.props.class]:P.props&&P.props.class}),I=Tl(h,{[`${l.value}-rtl`]:"rtl"===s.value},w.value.className,S.value),E=fl(fl({},w.value.overlayStyle),x),A=w.value.arrowStyle,R=fl(fl(fl({},r),e),{prefixCls:l.value,getPopupContainer:null==a?void 0:a.value,builtinPlacements:m.value,visible:k,ref:p,overlayClassName:I,overlayStyle:fl(fl({},A),v),overlayInnerStyle:E,onVisibleChange:g,onPopupAlign:O,transitionName:am(c.value,"zoom-big-fast",e.transitionName)});return $(Sr(lS,R,{default:()=>[d.value?Zh(P,{class:T}):P],arrowContent:()=>Sr("span",{class:`${l.value}-arrow-content`},null),overlay:y}))}}})),$S=e=>{const{componentCls:t,popoverBg:n,popoverColor:o,width:r,fontWeightStrong:i,popoverPadding:l,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,marginXS:d,colorBgElevated:p}=e;return[{[t]:fl(fl({},Yu(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:l},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:i},[`${t}-inner-content`]:{color:o}})},yS(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",[`${t}-content`]:{display:"inline-block"}}}]},SS=e=>{const{componentCls:t}=e;return{[t]:nu.map((n=>{const o=e[`${n}-6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}},CS=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:r,paddingSM:i,controlHeight:l,fontSize:a,lineHeight:s,padding:c}=e,u=l-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:`${i}px ${c}px`}}}},kS=Ju("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,r=nd(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[$S(r),SS(r),o&&CS(r),Sx(r,"zoom-big")]}),(e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}})),PS=Sa(Ln({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:Jl(fl(fl({},aS()),{content:Ta(),title:Ta()}),fl(fl({},{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const i=Ot();Rs(void 0===e.visible),n({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:l,configProvider:a}=Cd("popover",e),[s,c]=kS(l),u=Xr((()=>a.getPrefixCls())),d=()=>{var t,n;const{title:r=da(null===(t=o.title)||void 0===t?void 0:t.call(o)),content:i=da(null===(n=o.content)||void 0===n?void 0:n.call(o))}=e,a=!!(Array.isArray(r)?r.length:r),s=!!(Array.isArray(i)?i.length:r);return a||s?Sr(lr,null,[a&&Sr("div",{class:`${l.value}-title`},[r]),Sr("div",{class:`${l.value}-inner-content`},[i])]):null};return()=>{const t=Tl(e.overlayClassName,c.value);return s(Sr(xS,hl(hl(hl({},kd(e,["title","content"])),r),{},{prefixCls:l.value,ref:i,overlayClassName:t,transitionName:am(u.value,"zoom-big",e.transitionName),"data-popover-inject":!0}),{title:d,default:o.default}))}}})),MS=Ln({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:i}=Cd("avatar",e),l=Xr((()=>`${r.value}-group`)),[a,s]=q$(r);return yn((()=>{(e=>{Eo(J$,e)})({size:e.size,shape:e.shape})})),()=>{const{maxPopoverPlacement:t="top",maxCount:r,maxStyle:c,maxPopoverTrigger:u="hover",shape:d}=e,p={[l.value]:!0,[`${l.value}-rtl`]:"rtl"===i.value,[`${o.class}`]:!!o.class,[s.value]:!0},h=fa(n,e),f=oa(h).map(((e,t)=>Zh(e,{key:`avatar-key-${t}`}))),g=f.length;if(r&&r<g){const e=f.slice(0,r),n=f.slice(r,g);return e.push(Sr(PS,{key:"avatar-popover-key",content:n,trigger:u,placement:t,overlayClassName:`${l.value}-popover`},{default:()=>[Sr(eS,{style:c,shape:d},{default:()=>["+"+(g-r)]})]})),a(Sr("div",hl(hl({},o),{},{class:p,style:o.style}),[e]))}return a(Sr("div",hl(hl({},o),{},{class:p,style:o.style}),[f]))}}});function TS(e){let t,{prefixCls:n,value:o,current:r,offset:i=0}=e;return i&&(t={position:"absolute",top:`${i}00%`,left:0}),Sr("p",{style:t,class:Tl(`${n}-only-unit`,{current:r})},[o])}function IS(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}eS.Group=MS,eS.install=function(e){return e.component(eS.name,eS),e.component(MS.name,MS),e};const ES=Ln({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(e){const t=Xr((()=>Number(e.value))),n=Xr((()=>Math.abs(e.count))),o=it({prevValue:t.value,prevCount:n.value}),r=()=>{o.prevValue=t.value,o.prevCount=n.value},i=Ot();return wn(t,(()=>{clearTimeout(i.value),i.value=setTimeout((()=>{r()}),1e3)}),{flush:"post"}),eo((()=>{clearTimeout(i.value)})),()=>{let i,l={};const a=t.value;if(o.prevValue===a||Number.isNaN(a)||Number.isNaN(o.prevValue))i=[TS(fl(fl({},e),{current:!0}))],l={transition:"none"};else{i=[];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));i=r.map(((t,n)=>{const o=t%10;return TS(fl(fl({},e),{value:o,offset:n-s,current:n===s}))}));const c=o.prevCount<n.value?1:-1;l={transform:`translateY(${-IS(o.prevValue,a,c)}00%)`}}return Sr("span",{class:`${e.prefixCls}-only`,style:l,onTransitionend:()=>r()},[i])}}}),AS=Ln({compatConfig:{MODE:3},name:"ScrollNumber",inheritAttrs:!1,props:{prefixCls:String,count:xp.any,component:String,title:xp.any,show:Boolean},setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r}=Cd("scroll-number",e);return()=>{var t;const i=fl(fl({},e),n),{prefixCls:l,count:a,title:s,show:c,component:u="sup",class:d,style:p}=i,h=fl(fl({},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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(i,["prefixCls","count","title","show","component","class","style"])),{style:p,"data-show":e.show,class:Tl(r.value,d),title:s});let f=a;if(a&&Number(a)%1==0){const e=String(a).split("");f=e.map(((t,n)=>Sr(ES,{prefixCls:r.value,count:Number(a),value:t,key:e.length-n},null)))}p&&p.borderColor&&(h.style=fl(fl({},p),{boxShadow:`0 0 0 1px ${p.borderColor} inset`}));const g=da(null===(t=o.default)||void 0===t?void 0:t.call(o));return g&&g.length?Zh(g,{class:Tl(`${r.value}-custom-component`)},!1):Sr(u,h,{default:()=>[f]})}}}),RS=new Xc("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),DS=new Xc("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),jS=new Xc("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),BS=new Xc("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),NS=new Xc("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),zS=new Xc("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),_S=e=>{const{componentCls:t,iconCls:n,antCls:o,badgeFontHeight:r,badgeShadowSize:i,badgeHeightSm:l,motionDurationSlow:a,badgeStatusSize:s,marginXS:c,badgeRibbonOffset:u}=e,d=`${o}-scroll-number`,p=`${o}-ribbon`,h=`${o}-ribbon-wrapper`,f=Zu(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t} ${t}-color-${e}`]:{background:o,[`&:not(${t}-count)`]:{color:o}}}})),g=Zu(e,((e,t)=>{let{darkColor:n}=t;return{[`&${p}-color-${e}`]:{background:n,color:n}}}));return{[t]:fl(fl(fl(fl({},Yu(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 ${i}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:l,height:l,fontSize:e.badgeFontSizeSm,lineHeight:`${l}px`,borderRadius:l/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 ${i}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:zS,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:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:RS,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:DS,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:jS,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:BS,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:NS,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%)"}}}),[`${h}`]:{position:"relative"},[`${p}`]:fl(fl(fl(fl({},Yu(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}}),g),{[`&${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"}})}},LS=Ju("Badge",(e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r,marginXS:i,colorBorderBg:l}=e,a=Math.round(t*n),s=nd(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:l,badgeHeightSm:t,badgeDotSize:o/2,badgeFontSizeSm:o,badgeStatusSize:o/2,badgeProcessingDuration:"1.2s",badgeRibbonOffset:i,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[_S(s)]})),QS=Ln({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:{prefix:String,color:{type:String},text:xp.any,placement:{type:String,default:"end"}},slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:i}=Cd("ribbon",e),[l,a]=LS(r),s=Xr((()=>mS(e.color,!1))),c=Xr((()=>[r.value,`${r.value}-placement-${e.placement}`,{[`${r.value}-rtl`]:"rtl"===i.value,[`${r.value}-color-${e.color}`]:s.value}]));return()=>{var t,i;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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(n,["class","style"]),h={},f={};return e.color&&!s.value&&(h.background=e.color,f.color=e.color),l(Sr("div",hl({class:`${r.value}-wrapper ${a.value}`},p),[null===(t=o.default)||void 0===t?void 0:t.call(o),Sr("div",{class:[c.value,u,a.value],style:fl(fl({},h),d)},[Sr("span",{class:`${r.value}-text`},[e.text||(null===(i=o.text)||void 0===i?void 0:i.call(o))]),Sr("div",{class:`${r.value}-corner`,style:f},null)])]))}}}),HS=e=>!isNaN(parseFloat(e))&&isFinite(e),FS=Ln({compatConfig:{MODE:3},name:"ABadge",Ribbon:QS,inheritAttrs:!1,props:{count:xp.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:xp.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:i}=Cd("badge",e),[l,a]=LS(r),s=Xr((()=>e.count>e.overflowCount?`${e.overflowCount}+`:e.count)),c=Xr((()=>"0"===s.value||0===s.value)),u=Xr((()=>null===e.count||c.value&&!e.showZero)),d=Xr((()=>(null!==e.status&&void 0!==e.status||null!==e.color&&void 0!==e.color)&&u.value)),p=Xr((()=>e.dot&&!c.value)),h=Xr((()=>p.value?"":s.value)),f=Xr((()=>(null===h.value||void 0===h.value||""===h.value||c.value&&!e.showZero)&&!p.value)),g=Ot(e.count),m=Ot(h.value),v=Ot(p.value);wn([()=>e.count,h,p],(()=>{f.value||(g.value=e.count,m.value=h.value,v.value=p.value)}),{immediate:!0});const b=Xr((()=>mS(e.color,!1))),y=Xr((()=>({[`${r.value}-status-dot`]:d.value,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:b.value}))),O=Xr((()=>e.color&&!b.value?{background:e.color,color:e.color}:{})),w=Xr((()=>({[`${r.value}-dot`]:v.value,[`${r.value}-count`]:!v.value,[`${r.value}-count-sm`]:"small"===e.size,[`${r.value}-multiple-words`]:!v.value&&m.value&&m.value.toString().length>1,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:b.value})));return()=>{var t,s;const{offset:c,title:u,color:p}=e,h=o.style,v=fa(n,e,"text"),x=r.value,$=g.value;let S=oa(null===(t=n.default)||void 0===t?void 0:t.call(n));S=S.length?S:null;const C=!(f.value&&!n.count),k=(()=>{if(!c)return fl({},h);const e={marginTop:HS(c[1])?`${c[1]}px`:c[1]};return"rtl"===i.value?e.left=`${parseInt(c[0],10)}px`:e.right=-parseInt(c[0],10)+"px",fl(fl({},e),h)})(),P=null!=u?u:"string"==typeof $||"number"==typeof $?$:void 0,M=C||!v?null:Sr("span",{class:`${x}-status-text`},[v]),T="object"==typeof $||void 0===$&&n.count?Zh(null!=$?$:null===(s=n.count)||void 0===s?void 0:s.call(n),{style:k},!1):null,I=Tl(x,{[`${x}-status`]:d.value,[`${x}-not-a-wrapper`]:!S,[`${x}-rtl`]:"rtl"===i.value},o.class,a.value);if(!S&&d.value){const e=k.color;return l(Sr("span",hl(hl({},o),{},{class:I,style:k}),[Sr("span",{class:y.value,style:O.value},null),Sr("span",{style:{color:e},class:`${x}-status-text`},[v])]))}const E=im(S?`${x}-zoom`:"",{appear:!1});let A=fl(fl({},k),e.numberStyle);return p&&!b.value&&(A=A||{},A.background=p),l(Sr("span",hl(hl({},o),{},{class:I}),[S,Sr(ni,E,{default:()=>[kn(Sr(AS,{prefixCls:e.scrollNumberPrefixCls,show:C,class:w.value,count:m.value,title:P,style:A,key:"scrollNumber"},{default:()=>[T]}),[[yi,C]])]}),M]))}}});FS.install=function(e){return e.component(FS.name,FS),e.component(QS.name,QS),e};const WS={adjustX:1,adjustY:1},VS=[0,0],ZS={topLeft:{points:["bl","tl"],overflow:WS,offset:[0,-4],targetOffset:VS},topCenter:{points:["bc","tc"],overflow:WS,offset:[0,-4],targetOffset:VS},topRight:{points:["br","tr"],overflow:WS,offset:[0,-4],targetOffset:VS},bottomLeft:{points:["tl","bl"],overflow:WS,offset:[0,4],targetOffset:VS},bottomCenter:{points:["tc","bc"],overflow:WS,offset:[0,4],targetOffset:VS},bottomRight:{points:["tr","br"],overflow:WS,offset:[0,4],targetOffset:VS}},XS=Ln({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:xp.string.def("rc-dropdown"),transitionName:String,overlayClassName:xp.string.def(""),openClassName:String,animation:xp.any,align:xp.object,overlayStyle:{type:Object,default:void 0},placement:xp.string.def("bottomLeft"),overlay:xp.any,trigger:xp.oneOfType([xp.string,xp.arrayOf(xp.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:xp.array,hideAction:xp.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:xp.number.def(.15),mouseLeaveDelay:xp.number.def(.1)},emits:["visibleChange","overlayClick"],setup(e,t){let{slots:n,emit:o,expose:r}=t;const i=Ot(!!e.visible);wn((()=>e.visible),(e=>{void 0!==e&&(i.value=e)}));const l=Ot();r({triggerRef:l});const a=t=>{void 0===e.visible&&(i.value=!1),o("overlayClick",t)},s=t=>{void 0===e.visible&&(i.value=t),o("visibleChange",t)},c=()=>{var t;const o=null===(t=n.overlay)||void 0===t?void 0:t.call(n),r={prefixCls:`${e.prefixCls}-menu`,onClick:a};return Sr(lr,{key:na},[e.arrow&&Sr("div",{class:`${e.prefixCls}-arrow`},null),Zh(o,r,!1)])},u=Xr((()=>{const{minOverlayWidthMatchTrigger:t=!e.alignPoint}=e;return t})),d=()=>{var t;const o=null===(t=n.default)||void 0===t?void 0:t.call(n);return i.value&&o?Zh(o[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):o},p=Xr((()=>e.hideAction||-1===e.trigger.indexOf("contextmenu")?e.hideAction:["click"]));return()=>{const{prefixCls:t,arrow:n,showAction:o,overlayStyle:r,trigger:a,placement:h,align:f,getPopupContainer:g,transitionName:m,animation:v,overlayClassName: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);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return Sr(Pm,hl(hl({},y),{},{prefixCls:t,ref:l,popupClassName:Tl(b,{[`${t}-show-arrow`]:n}),popupStyle:r,builtinPlacements:ZS,action:a,showAction:o,hideAction:p.value||[],popupPlacement:h,popupAlign:f,popupTransitionName:m,popupAnimation:v,popupVisible:i.value,stretch:u.value?"minWidth":"",onPopupVisibleChange:s,getPopupContainer:g}),{popup:c,default:d})}}}),YS=e=>{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}}}}},KS=Ju("Wave",(e=>[YS(e)]));function GS(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 US(e){return Number.isNaN(e)?0:e}const qS=Ln({props:{target:ka(),className:String},setup(e){const t=wt(null),[n,o]=Hv(null),[r,i]=Hv([]),[l,a]=Hv(0),[s,c]=Hv(0),[u,d]=Hv(0),[p,h]=Hv(0),[f,g]=Hv(!1);function m(){const{target:t}=e,n=getComputedStyle(t);o(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return GS(t)?t:GS(n)?n:GS(o)?o:null}(t));const r="static"===n.position,{borderLeftWidth:l,borderTopWidth:s}=n;a(r?t.offsetLeft:US(-parseFloat(l))),c(r?t.offsetTop:US(-parseFloat(s))),d(t.offsetWidth),h(t.offsetHeight);const{borderTopLeftRadius:u,borderTopRightRadius:p,borderBottomLeftRadius:f,borderBottomRightRadius:g}=n;i([u,p,g,f].map((e=>US(parseFloat(e)))))}let v,b,y;const O=()=>{clearTimeout(y),wa.cancel(b),null==v||v.disconnect()},w=()=>{var e;const n=null===(e=t.value)||void 0===e?void 0:e.parentElement;n&&(Yi(null,n),n.parentElement&&n.parentElement.removeChild(n))};Gn((()=>{O(),y=setTimeout((()=>{w()}),5e3);const{target:t}=e;t&&(b=wa((()=>{m(),g(!0)})),"undefined"!=typeof ResizeObserver&&(v=new ResizeObserver(m),v.observe(t)))})),Jn((()=>{O()}));const x=e=>{"opacity"===e.propertyName&&w()};return()=>{if(!f.value)return null;const o={left:`${l.value}px`,top:`${s.value}px`,width:`${u.value}px`,height:`${p.value}px`,borderRadius:r.value.map((e=>`${e}px`)).join(" ")};return n&&(o["--wave-color"]=n.value),Sr(ni,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[Sr("div",{ref:t,class:e.className,style:o,onTransitionend:x},null)]})}}});function JS(e,t,n){return function(){var o;const r=ia(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),Yi(Sr(qS,{target:e,className:t},null),n)}(r,t.value)}}const eC=Ln({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:n}=t;const o=jr(),{prefixCls:r,wave:i}=Cd("wave",e),[,l]=KS(r),a=JS(o,Xr((()=>Tl(r.value,l.value))),i);let s;const c=()=>{ia(o).removeEventListener("click",s,!0)};return Gn((()=>{wn((()=>e.disabled),(()=>{c(),Vt((()=>{const t=ia(o);null==t||t.removeEventListener("click",s,!0),t&&1===t.nodeType&&!e.disabled&&(s=e=>{"INPUT"===e.target.tagName||!Kh(e.target)||!t.getAttribute||t.getAttribute("disabled")||t.disabled||t.className.includes("disabled")||t.className.includes("-leave")||a()},t.addEventListener("click",s,!0))}))}),{immediate:!0,flush:"post"})})),Jn((()=>{c()})),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)[0]}}});function tC(e){return"danger"===e?{danger:!0}:{type:e}}const nC=()=>({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:xp.any,href:String,target:String,title:String,onClick:Ca(),onMousedown:Ca()}),oC=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},rC=e=>{Vt((()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")}))},iC=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},lC=Ln({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 Sr("span",{class:`${n}-loading-icon`},[Sr(Hb,null,null)]);const r=!!o;return Sr(ni,{name:`${n}-loading-icon-motion`,onBeforeEnter:oC,onEnter:rC,onAfterEnter:iC,onBeforeLeave:rC,onLeave:e=>{setTimeout((()=>{oC(e)}))},onAfterLeave:iC},{default:()=>[r?Sr("span",{class:`${n}-loading-icon`},[Sr(Hb,null,null)]):null]})}}),aC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),sC=e=>{const{componentCls:t,fontSize:n,lineWidth:o,colorPrimaryHover:r,colorErrorHover:i}=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}},aC(`${t}-primary`,r),aC(`${t}-danger`,i)]}};function cC(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function uC(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:fl(fl({},cC(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 dC=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)":fl({},qu(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:'""'}}}}}}},pC=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),hC=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),fC=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),gC=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),mC=(e,t,n,o,r,i,l)=>({[`&${e}-background-ghost`]:fl(fl({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},pC(fl({backgroundColor:"transparent"},i),fl({backgroundColor:"transparent"},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:r||void 0}})}),vC=e=>({"&:disabled":fl({},gC(e))}),bC=e=>fl({},vC(e)),yC=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),OC=e=>fl(fl(fl(fl(fl({},bC(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),pC({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),mC(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:fl(fl(fl({color:e.colorError,borderColor:e.colorError},pC({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),mC(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),vC(e))}),wC=e=>fl(fl(fl(fl(fl({},bC(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),pC({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),mC(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`]:fl(fl(fl({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},pC({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),mC(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),vC(e))}),xC=e=>fl(fl({},OC(e)),{borderStyle:"dashed"}),$C=e=>fl(fl(fl({color:e.colorLink},pC({color:e.colorLinkHover},{color:e.colorLinkActive})),yC(e)),{[`&${e.componentCls}-dangerous`]:fl(fl({color:e.colorError},pC({color:e.colorErrorHover},{color:e.colorErrorActive})),yC(e))}),SC=e=>fl(fl(fl({},pC({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),yC(e)),{[`&${e.componentCls}-dangerous`]:fl(fl({color:e.colorError},yC(e)),pC({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),CC=e=>fl(fl({},gC(e)),{[`&${e.componentCls}:hover`]:fl({},gC(e))}),kC=e=>{const{componentCls:t}=e;return{[`${t}-default`]:OC(e),[`${t}-primary`]:wC(e),[`${t}-dashed`]:xC(e),[`${t}-link`]:$C(e),[`${t}-text`]:SC(e),[`${t}-disabled`]:CC(e)}},PC=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,iconCls:o,controlHeight:r,fontSize:i,lineHeight:l,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:c}=e,u=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:i,height:r,padding:`${Math.max(0,(r-i*l)/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}`]:hC(e)},{[`${n}${n}-round${t}`]:fC(e)}]},MC=e=>PC(e),TC=e=>{const t=nd(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return PC(t,`${e.componentCls}-sm`)},IC=e=>{const t=nd(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return PC(t,`${e.componentCls}-lg`)},EC=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},AC=Ju("Button",(e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,o=nd(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[dC(o),TC(o),MC(o),IC(o),EC(o),kC(o),sC(o),jx(e,{focus:!1}),uC(e)]})),RC=uy(),DC=Ln({compatConfig:{MODE:3},name:"AButtonGroup",props:{prefixCls:String,size:{type:String}},setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=Cd("btn-group",e),[,,i]=cd();RC.useProvide(it({size:Xr((()=>e.size))}));const l=Xr((()=>{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:Sp(!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 Sr("div",{class:l.value},[oa(null===(e=n.default)||void 0===e?void 0:e.call(n))])}}}),jC=/^[\u4e00-\u9fa5]{2}$/,BC=jC.test.bind(jC);function NC(e){return"text"===e||"link"===e}const zC=Ln({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Jl(nC(),{type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r,expose:i}=t;const{prefixCls:l,autoInsertSpaceInButton:a,direction:s,size:c}=Cd("btn",e),[u,d]=AC(l),p=RC.useInject(),h=Ka(),f=Xr((()=>{var t;return null!==(t=e.disabled)&&void 0!==t?t:h.value})),g=wt(null),m=wt(void 0);let v=!1;const b=wt(!1),y=wt(!1),O=Xr((()=>!1!==a.value)),{compactSize:w,compactItemClassnames:x}=Nw(l,s),$=Xr((()=>"object"==typeof e.loading&&e.loading.delay?e.loading.delay||!0:!!e.loading));wn($,(e=>{clearTimeout(m.value),"number"==typeof $.value?m.value=setTimeout((()=>{b.value=e}),$.value):b.value=e}),{immediate:!0});const S=Xr((()=>{const{type:t,shape:n="default",ghost:o,block:r,danger:i}=e,a=l.value,u=w.value||(null==p?void 0:p.size)||c.value,h=u&&{large:"lg",small:"sm",middle:void 0}[u]||"";return[x.value,{[d.value]:!0,[`${a}`]:!0,[`${a}-${n}`]:"default"!==n&&n,[`${a}-${t}`]:t,[`${a}-${h}`]:h,[`${a}-loading`]:b.value,[`${a}-background-ghost`]:o&&!NC(t),[`${a}-two-chinese-chars`]:y.value&&O.value,[`${a}-block`]:r,[`${a}-dangerous`]:!!i,[`${a}-rtl`]:"rtl"===s.value}]})),C=()=>{const e=g.value;if(!e||!1===a.value)return;const t=e.textContent;v&&BC(t)?y.value||(y.value=!0):y.value&&(y.value=!1)},k=e=>{b.value||f.value?e.preventDefault():r("click",e)},P=e=>{r("mousedown",e)};return yn((()=>{Sp(!(e.ghost&&NC(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")})),Gn(C),qn(C),Jn((()=>{m.value&&clearTimeout(m.value)})),i({focus:()=>{var e;null===(e=g.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=g.value)||void 0===e||e.blur()}}),()=>{var t,r;const{icon:i=(null===(t=n.icon)||void 0===t?void 0:t.call(n))}=e,a=oa(null===(r=n.default)||void 0===r?void 0:r.call(n));v=1===a.length&&!i&&!NC(e.type);const{type:s,htmlType:c,href:d,title:p,target:h}=e,m=b.value?"loading":i,y=fl(fl({},o),{title:p,disabled:f.value,class:[S.value,o.class,{[`${l.value}-icon-only`]:0===a.length&&!!m}],onClick:k,onMousedown:P});f.value||delete y.disabled;const w=i&&!b.value?i:Sr(lC,{existIcon:!!i,prefixCls:l.value,loading:!!b.value},null),x=a.map((e=>((e,t)=>{const n=t?" ":"";if(e.type===ar){let t=e.children.trim();return BC(t)&&(t=t.split("").join(n)),Sr("span",null,[t])}return e})(e,v&&O.value)));if(void 0!==d)return u(Sr("a",hl(hl({},y),{},{href:d,target:h,ref:g}),[w,x]));let $=Sr("button",hl(hl({},y),{},{ref:g,type:c}),[w,x]);if(!NC(s)){const e=function(){return $}();$=Sr(eC,{ref:"wave",disabled:!!b.value},{default:()=>[e]})}return u($)}}});zC.Group=DC,zC.install=function(e){return e.component(zC.name,zC),e.component(DC.name,DC),e};const _C=()=>({arrow:Aa([Boolean,Object]),trigger:{type:[Array,String]},menu:ka(),overlay:xp.any,visible:Pa(),open:Pa(),disabled:Pa(),danger:Pa(),autofocus:Pa(),align:ka(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:ka(),forceRender:Pa(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:Pa(),destroyPopupOnHide:Pa(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),LC=nC(),QC={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 HC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){FC(e,t,n[t])}))}return e}function FC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var WC=function(e,t){var n=HC({},e,t.attrs);return Sr(Rb,HC({},n,{icon:QC}),null)};WC.displayName="EllipsisOutlined",WC.inheritAttrs=!1;const VC=WC,ZC=e=>{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}}}}},XC=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},YC=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,dropdownArrowOffset:i,sizePopupArrow:l,antCls:a,iconCls:s,motionDurationMid:c,dropdownPaddingVertical:u,fontSize:d,dropdownEdgeChildPadding:p,colorTextDisabled:h,fontSizeIcon:f,controlPaddingHorizontal:g,colorBgElevated:m,boxShadowPopoverArrow:v}=e;return[{[t]:fl(fl({},Yu(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:l/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`]:fl({position:"absolute",zIndex:1,display:"block"},Vu(l,e.borderRadiusXS,e.borderRadiusOuter,m,v)),[`\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:i}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:i}},[`\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:i}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:i}},[`&${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:tx},[`&${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:ox},[`&${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:nx},[`&${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:rx}})},{[`${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]:fl(fl({padding:p,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},qu(e)),{[`${n}-item-group-title`]:{padding:`${u}px ${g}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`]:fl(fl({clear:"both",margin:0,padding:`${u}px ${g}px`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},qu(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:m,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:g+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:m,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[ux(e,"slide-up"),ux(e,"slide-down"),ex(e,"move-up"),ex(e,"move-down"),Sx(e,"zoom-big")]]},KC=Ju("Dropdown",((e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:o,sizePopupArrow:r,controlHeight:i,fontSize:l,lineHeight:a,paddingXXS:s,componentCls:c,borderRadiusOuter:u,borderRadiusLG:d}=e,p=(i-l*a)/2,{dropdownArrowOffset:h}=bS({sizePopupArrow:r,contentRadius:d,borderRadiusOuter:u}),f=nd(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:r/2+o,dropdownArrowOffset:h,dropdownPaddingVertical:p,dropdownEdgeChildPadding:s});return[YC(f),ZC(f),XC(f)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50}))),GC=zC.Group,UC=Ln({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Jl(fl(fl({},_C()),{type:LC.type,size:String,htmlType:LC.htmlType,href:String,disabled:Pa(),prefixCls:String,icon:xp.any,title:String,loading:LC.loading,onClick:Ca()}),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const i=e=>{r("update:visible",e),r("visibleChange",e),r("update:open",e),r("openChange",e)},{prefixCls:l,direction:a,getPopupContainer:s}=Cd("dropdown",e),c=Xr((()=>`${l.value}-button`)),[u,d]=KC(l);return()=>{var t,r;const l=fl(fl({},e),o),{type:p="default",disabled:h,danger:f,loading:g,htmlType:m,class:v="",overlay:b=(null===(t=n.overlay)||void 0===t?void 0:t.call(n)),trigger:y,align:O,open:w,visible:x,onVisibleChange:$,placement:S=("rtl"===a.value?"bottomLeft":"bottomRight"),href:C,title:k,icon:P=(null===(r=n.icon)||void 0===r?void 0:r.call(n))||Sr(VC,null,null),mouseEnterDelay:M,mouseLeaveDelay:T,overlayClassName:I,overlayStyle:E,destroyPopupOnHide:A,onClick:R,"onUpdate:open":D}=l,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(l,["type","disabled","danger","loading","htmlType","class","overlay","trigger","align","open","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:open"]),B={align:O,disabled:h,trigger:h?[]:y,placement:S,getPopupContainer:null==s?void 0:s.value,onOpenChange:i,mouseEnterDelay:M,mouseLeaveDelay:T,open:null!=w?w:x,overlayClassName:I,overlayStyle:E,destroyPopupOnHide:A},N=Sr(zC,{danger:f,type:p,disabled:h,loading:g,onClick:R,htmlType:m,href:C,title:k},{default:n.default}),z=Sr(zC,{danger:f,type:p,icon:P},null);return u(Sr(GC,hl(hl({},j),{},{class:Tl(c.value,v,d.value)}),{default:()=>[n.leftButton?n.leftButton({button:N}):N,Sr(ak,B,{default:()=>[n.rightButton?n.rightButton({button:z}):z],overlay:()=>b})]}))}}}),qC={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 JC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){ek(e,t,n[t])}))}return e}function ek(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tk=function(e,t){var n=JC({},e,t.attrs);return Sr(Rb,JC({},n,{icon:qC}),null)};tk.displayName="RightOutlined",tk.inheritAttrs=!1;const nk=tk,ok=Symbol("OverrideContextKey"),rk=()=>Ao(ok,void 0),ik=e=>{var t,n,o;const{prefixCls:r,mode:i,selectable:l,validator:a,onClick:s,expandIcon:c}=rk()||{};Eo(ok,{prefixCls:Xr((()=>{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:Xr((()=>{var t,n;return null!==(n=null===(t=e.mode)||void 0===t?void 0:t.value)&&void 0!==n?n:null==i?void 0:i.value})),selectable:Xr((()=>{var t,n;return null!==(n=null===(t=e.selectable)||void 0===t?void 0:t.value)&&void 0!==n?n:null==l?void 0:l.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})},lk=Ln({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:Jl(_C(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i,rootPrefixCls:l,direction:a,getPopupContainer:s}=Cd("dropdown",e),[c,u]=KC(i),d=Xr((()=>{const{placement:t="",transitionName:n}=e;return void 0!==n?n:t.includes("top")?`${l.value}-slide-down`:`${l.value}-slide-up`}));ik({prefixCls:Xr((()=>`${i.value}-menu`)),expandIcon:Xr((()=>Sr("span",{class:`${i.value}-menu-submenu-arrow`},[Sr(nk,{class:`${i.value}-menu-submenu-arrow-icon`},null)]))),mode:Xr((()=>"vertical")),selectable:Xr((()=>!1)),onClick:()=>{},validator:e=>{Rs()}});const p=()=>{var t,o,r;const l=e.overlay||(null===(t=n.overlay)||void 0===t?void 0:t.call(n)),a=Array.isArray(l)?l[0]:l;if(!a)return null;const s=a.props||{};Sp(!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&&ha(u)?u:Sr("span",{class:`${i.value}-menu-submenu-arrow`},[Sr(nk,{class:`${i.value}-menu-submenu-arrow-icon`},null)]);return ha(a)?Zh(a,{mode:"vertical",selectable:c,expandIcon:()=>d}):a},h=Xr((()=>{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 Sp(!t.includes("Center"),"Dropdown",`You are using '${t}' placement in Dropdown, which is deprecated. Try to use '${e}' instead.`),e}return t})),f=Xr((()=>"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:l,trigger:m,disabled:v,overlayClassName:b}=e,y=null===(t=n.default)||void 0===t?void 0:t.call(n)[0],O=Zh(y,fl({class:Tl(null===(r=null==y?void 0:y.props)||void 0===r?void 0:r.class,{[`${i.value}-rtl`]:"rtl"===a.value},`${i.value}-trigger`)},v?{disabled:v}:{})),w=Tl(b,u.value,{[`${i.value}-rtl`]:"rtl"===a.value}),x=v?[]:m;let $;x&&x.includes("contextmenu")&&($=!0);const S=pS({arrowPointAtCenter:"object"==typeof l&&l.pointAtCenter,autoAdjustOverflow:!0}),C=kd(fl(fl(fl({},e),o),{visible:f.value,builtinPlacements:S,overlayClassName:w,arrow:!!l,alignPoint:$,prefixCls:i.value,getPopupContainer:null==s?void 0:s.value,transitionName:d.value,trigger:x,onVisibleChange:g,placement:h.value}),["overlay","onUpdate:visible"]);return c(Sr(XS,C,{default:()=>[O],overlay:p}))}}});lk.Button=UC;const ak=lk,sk=Ln({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:{prefixCls:String,href:String,separator:xp.any,dropdownProps:ka(),overlay:xp.any,onClick:Ca()},slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i}=Cd("breadcrumb",e),l=e=>{r("click",e)};return()=>{var t;const r=null!==(t=fa(n,e,"separator"))&&void 0!==t?t:"/",a=fa(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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["class","style"]);let d;return d=void 0!==e.href?Sr("a",hl({class:`${i.value}-link`,onClick:l},u),[a]):Sr("span",hl({class:`${i.value}-link`,onClick:l},u),[a]),d=((t,o)=>{const r=fa(n,e,"overlay");return r?Sr(ak,hl(hl({},e.dropdownProps),{},{overlay:r,placement:"bottom"}),{default:()=>[Sr("span",{class:`${o}-overlay-link`},[t,Sr(Nb,null,null)])]}):t})(d,i.value),null!=a?Sr("li",{class:s,style:c},[d,r&&Sr("span",{class:`${i.value}-separator`},[r])]):null}}});function ck(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 i=Object.keys(e),l=Object.keys(t);if(i.length!==l.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let s=0;s<i.length;s++){const l=i[s];if(!a(l))return!1;const c=e[l],u=t[l];if(r=n?n.call(o,c,u,l):void 0,!1===r||void 0===r&&c!==u)return!1}return!0}(pt(e),pt(t))}const uk=Symbol("menuContextKey"),dk=e=>{Eo(uk,e)},pk=()=>Ao(uk),hk=Symbol("ForceRenderKey"),fk=()=>Ao(hk,!1),gk=Symbol("menuFirstLevelContextKey"),mk=e=>{Eo(gk,e)},vk=Ln({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=fl({},pk());return void 0!==e.mode&&(o.mode=Et(e,"mode")),void 0!==e.overflowDisabled&&(o.overflowDisabled=Et(e,"overflowDisabled")),dk(o),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),bk=dk,yk=Symbol("siderCollapsed"),Ok=Symbol("siderHookProvider"),wk="$$__vc-menu-more__key",xk=Symbol("KeyPathContext"),$k=()=>Ao(xk,{parentEventKeys:Xr((()=>[])),parentKeys:Xr((()=>[])),parentInfo:{}}),Sk=Symbol("measure"),Ck=Ln({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return Eo(Sk,!0),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),kk=()=>Ao(Sk,!1),Pk=(e,t,n)=>{const{parentEventKeys:o,parentKeys:r}=$k(),i=Xr((()=>[...o.value,e])),l=Xr((()=>[...r.value,t]));return Eo(xk,{parentEventKeys:i,parentKeys:l,parentInfo:n}),l};function Mk(e){const{mode:t,rtl:n,inlineIndent:o}=pk();return Xr((()=>"inline"!==t.value?null:n.value?{paddingRight:e.value*o.value+"px"}:{paddingLeft:e.value*o.value+"px"}))}let Tk=0;const Ik=Ln({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:{id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:xp.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:ka()},slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const i=jr(),l=kk(),a="symbol"==typeof i.vnode.key?String(i.vnode.key):i.vnode.key;Sp("symbol"!=typeof i.vnode.key,"MenuItem",`MenuItem \`:key="${String(a)}"\` not support Symbol type`);const s=`menu_item_${++Tk}_$$_${a}`,{parentEventKeys:c,parentKeys:u}=$k(),{prefixCls:d,activeKeys:p,disabled:h,changeActiveKeys:f,rtl:g,inlineCollapsed:m,siderCollapsed:v,onItemClick:b,selectedKeys:y,registerMenuInfo:O,unRegisterMenuInfo:w}=pk(),x=Ao(gk,!0),$=wt(!1),S=Xr((()=>[...u.value,a]));O(s,{eventKey:s,key:a,parentEventKeys:c,parentKeys:u,isLeaf:!0}),Jn((()=>{w(s)})),wn(p,(()=>{$.value=!!p.value.find((e=>e===a))}),{immediate:!0});const C=Xr((()=>h.value||e.disabled)),k=Xr((()=>y.value.includes(a))),P=Xr((()=>{const t=`${d.value}-item`;return{[`${t}`]:!0,[`${t}-danger`]:e.danger,[`${t}-active`]:$.value,[`${t}-selected`]:k.value,[`${t}-disabled`]:C.value}})),M=t=>({key:a,eventKey:s,keyPath:S.value,eventKeyPath:[...c.value,s],domEvent:t,item:fl(fl({},e),r)}),T=e=>{if(C.value)return;const t=M(e);o("click",e),b(t)},I=e=>{C.value||(f(S.value),o("mouseenter",e))},E=e=>{C.value||(f([]),o("mouseleave",e))},A=e=>{if(o("keydown",e),e.which===Tm.ENTER){const t=M(e);o("click",e),b(t)}},R=e=>{f(S.value),o("focus",e)},D=(e,t)=>{const n=Sr("span",{class:`${d.value}-title-content`},[t]);return(!e||ha(t)&&"span"===t.type)&&t&&m.value&&x&&"string"==typeof t?Sr("div",{class:`${d.value}-inline-collapsed-noicon`},[t.charAt(0)]):n},j=Mk(Xr((()=>S.value.length)));return()=>{var t,o,i,s,c;if(l)return null;const u=null!==(t=e.title)&&void 0!==t?t:null===(o=n.title)||void 0===o?void 0:o.call(n),p=oa(null===(i=n.default)||void 0===i?void 0:i.call(n)),h=p.length;let f=u;void 0===u?f=x&&h?p:"":!1===u&&(f="");const b={title:f};v.value||m.value||(b.title=null,b.open=!1);const y={};"option"===e.role&&(y["aria-selected"]=k.value);const O=null!==(s=e.icon)&&void 0!==s?s:null===(c=n.icon)||void 0===c?void 0:c.call(n,e);return Sr(xS,hl(hl({},b),{},{placement:g.value?"left":"right",overlayClassName:`${d.value}-inline-collapsed-tooltip`}),{default:()=>[Sr(Um.Item,hl(hl(hl({component:"li"},r),{},{id:e.id,style:fl(fl({},r.style||{}),j.value),class:[P.value,{[`${r.class}`]:!!r.class,[`${d.value}-item-only-child`]:1===(O?h+1:h)}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":a,"aria-disabled":e.disabled},y),{},{onMouseenter:I,onMouseleave:E,onClick:T,onKeydown:A,onFocus:R,title:"string"==typeof u?u:void 0}),{default:()=>[Zh("function"==typeof O?O(e.originItemValue):O,{class:`${d.value}-item-icon`},!1),D(O,p)]})]})}}}),Ek={adjustX:1,adjustY:1},Ak={topLeft:{points:["bl","tl"],overflow:Ek,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ek,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ek,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ek,offset:[4,0]}},Rk={topLeft:{points:["bl","tl"],overflow:Ek,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ek,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ek,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ek,offset:[4,0]}},Dk={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},jk=Ln({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=wt(!1),{getPopupContainer:i,rtl:l,subMenuOpenDelay:a,subMenuCloseDelay:s,builtinPlacements:c,triggerSubMenuAction:u,forceSubMenuRender:d,motion:p,defaultMotions:h,rootClassName:f}=pk(),g=fk(),m=Xr((()=>l.value?fl(fl({},Rk),c.value):fl(fl({},Ak),c.value))),v=Xr((()=>Dk[e.mode])),b=wt();wn((()=>e.visible),(e=>{wa.cancel(b.value),b.value=wa((()=>{r.value=e}))}),{immediate:!0}),Jn((()=>{wa.cancel(b.value)}));const y=e=>{o("visibleChange",e)},O=Xr((()=>{var t,n;const o=p.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?im(r.name,{css:!0}):void 0}));return()=>{const{prefixCls:t,popupClassName:o,mode:c,popupOffset:p,disabled:h}=e;return Sr(Pm,{prefixCls:t,popupClassName:Tl(`${t}-popup`,{[`${t}-rtl`]:l.value},o,f.value),stretch:"horizontal"===c?"minWidth":null,getPopupContainer:i.value,builtinPlacements:m.value,popupPlacement:v.value,popupVisible:r.value,popupAlign:p&&{offset:p},action:h?[]:[u.value],mouseEnterDelay:a.value,mouseLeaveDelay:s.value,onPopupVisibleChange:y,forceRender:g||d.value,popupAnimation:O.value},{popup:n.popup,default:n.default})}}}),Bk=(e,t)=>{let{slots:n,attrs:o}=t;var r;const{prefixCls:i,mode:l}=pk();return Sr("ul",hl(hl({},o),{},{class:Tl(i.value,`${i.value}-sub`,`${i.value}-${"inline"===l.value?"inline":"vertical"}`),"data-menu-list":!0}),[null===(r=n.default)||void 0===r?void 0:r.call(n)])};Bk.displayName="SubMenuList";const Nk=Bk,zk=Ln({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t;const o=Xr((()=>"inline")),{motion:r,mode:i,defaultMotions:l}=pk(),a=Xr((()=>i.value===o.value)),s=Ot(!a.value),c=Xr((()=>!!a.value&&e.open));wn(i,(()=>{a.value&&(s.value=!1)}),{flush:"post"});const u=Xr((()=>{var t,n;const i=r.value||(null===(t=l.value)||void 0===t?void 0:t[o.value])||(null===(n=l.value)||void 0===n?void 0:n.other);return fl(fl({},"function"==typeof i?i():i),{appear:e.keyPath.length<=1})}));return()=>{var t;return s.value?null:Sr(vk,{mode:o.value},{default:()=>[Sr(ni,u.value,{default:()=>[kn(Sr(Nk,{id:e.id},{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]}),[[yi,c.value]])]})]})}}});let _k=0;const Lk=Ln({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:{icon:xp.any,title:xp.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:ka()},slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;var i,l;mk(!1);const a=kk(),s=jr(),c="symbol"==typeof s.vnode.key?String(s.vnode.key):s.vnode.key;Sp("symbol"!=typeof s.vnode.key,"SubMenu",`SubMenu \`:key="${String(c)}"\` not support Symbol type`);const u=ql(c)?c:`sub_menu_${++_k}_$$_not_set_key`,d=null!==(i=e.eventKey)&&void 0!==i?i:ql(c)?`sub_menu_${++_k}_$$_${c}`:u,{parentEventKeys:p,parentInfo:h,parentKeys:f}=$k(),g=Xr((()=>[...f.value,u])),m=wt([]),v={eventKey:d,key:u,parentEventKeys:p,childrenEventKeys:m,parentKeys:f};null===(l=h.childrenEventKeys)||void 0===l||l.value.push(d),Jn((()=>{var e;h.childrenEventKeys&&(h.childrenEventKeys.value=null===(e=h.childrenEventKeys)||void 0===e?void 0:e.value.filter((e=>e!=d)))})),Pk(d,u,v);const{prefixCls:b,activeKeys:y,disabled:O,changeActiveKeys:w,mode:x,inlineCollapsed:$,openKeys:S,overflowDisabled:C,onOpenChange:k,registerMenuInfo:P,unRegisterMenuInfo:M,selectedSubMenuKeys:T,expandIcon:I,theme:E}=pk(),A=null!=c,R=!a&&(fk()||!A);(e=>{Eo(hk,e)})(R),(a&&A||!a&&!A||R)&&(P(d,v),Jn((()=>{M(d)})));const D=Xr((()=>`${b.value}-submenu`)),j=Xr((()=>O.value||e.disabled)),B=wt(),N=wt(),z=Xr((()=>S.value.includes(u))),_=Xr((()=>!C.value&&z.value)),L=Xr((()=>T.value.includes(u))),Q=wt(!1);wn(y,(()=>{Q.value=!!y.value.find((e=>e===u))}),{immediate:!0});const H=e=>{j.value||(r("titleClick",e,u),"inline"===x.value&&k(u,!z.value))},F=e=>{j.value||(w(g.value),r("mouseenter",e))},W=e=>{j.value||(w([]),r("mouseleave",e))},V=Mk(Xr((()=>g.value.length))),Z=e=>{"inline"!==x.value&&k(u,e)},X=()=>{w(g.value)},Y=d&&`${d}-popup`,K=Xr((()=>Tl(b.value,`${b.value}-${e.theme||E.value}`,e.popupClassName))),G=Xr((()=>"inline"!==x.value&&g.value.length>1?"vertical":x.value)),U=Xr((()=>"horizontal"===x.value?"vertical":x.value)),q=Xr((()=>"horizontal"===G.value?"vertical":G.value)),J=()=>{var t,o;const r=D.value,i=null!==(t=e.icon)&&void 0!==t?t:null===(o=n.icon)||void 0===o?void 0:o.call(n,e),l=e.expandIcon||n.expandIcon||I.value,a=((t,n)=>{if(!n)return $.value&&!f.value.length&&t&&"string"==typeof t?Sr("div",{class:`${b.value}-inline-collapsed-noicon`},[t.charAt(0)]):Sr("span",{class:`${b.value}-title-content`},[t]);const o=ha(t)&&"span"===t.type;return Sr(lr,null,[Zh("function"==typeof n?n(e.originItemValue):n,{class:`${b.value}-item-icon`},!1),o?t:Sr("span",{class:`${b.value}-title-content`},[t])])})(fa(n,e,"title"),i);return Sr("div",{style:V.value,class:`${r}-title`,tabindex:j.value?null:-1,ref:B,title:"string"==typeof a?a:null,"data-menu-id":u,"aria-expanded":_.value,"aria-haspopup":!0,"aria-controls":Y,"aria-disabled":j.value,onClick:H,onFocus:X},[a,"horizontal"!==x.value&&l?l(fl(fl({},e),{isOpen:_.value})):Sr("i",{class:`${r}-arrow`},null)])};return()=>{var t;if(a)return A?null===(t=n.default)||void 0===t?void 0:t.call(n):null;const r=D.value;let i=()=>null;if(C.value||"inline"===x.value)i=()=>Sr(jk,null,{default:J});else{const t="horizontal"===x.value?[0,8]:[10,0];i=()=>Sr(jk,{mode:G.value,prefixCls:r,visible:!e.internalPopupClose&&_.value,popupClassName:K.value,popupOffset:e.popupOffset||t,disabled:j.value,onVisibleChange:Z},{default:()=>[J()],popup:()=>Sr(vk,{mode:q.value},{default:()=>[Sr(Nk,{id:Y,ref:N},{default:n.default})]})})}return Sr(vk,{mode:U.value},{default:()=>[Sr(Um.Item,hl(hl({component:"li"},o),{},{role:"none",class:Tl(r,`${r}-${x.value}`,o.class,{[`${r}-open`]:_.value,[`${r}-active`]:Q.value,[`${r}-selected`]:L.value,[`${r}-disabled`]:j.value}),onMouseenter:F,onMouseleave:W,"data-submenu-id":u}),{default:()=>Sr(lr,null,[i(),!C.value&&Sr(zk,{id:Y,open:_.value,keyPath:g.value},{default:n.default})])})]})}}});function Qk(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function Hk(e,t){e.classList?e.classList.add(t):Qk(e,t)||(e.className=`${e.className} ${t}`)}function Fk(e,t){if(e.classList)e.classList.remove(t);else if(Qk(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const Wk=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",Hk(t,e)},onEnter:e=>{Vt((()=>{e.style.height=`${e.scrollHeight}px`,e.style.opacity="1"}))},onAfterEnter:t=>{t&&(Fk(t,e),t.style.height=null,t.style.opacity=null)},onBeforeLeave:t=>{Hk(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&&(Fk(t,e),t.style&&(t.style.height=null,t.style.opacity=null))}}},Vk=Ln({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:{title:xp.any,originItemValue:ka()},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=pk(),i=Xr((()=>`${r.value}-item-group`)),l=kk();return()=>{var t,r;return l?null===(t=n.default)||void 0===t?void 0:t.call(n):Sr("li",hl(hl({},o),{},{onClick:e=>e.stopPropagation(),class:i.value}),[Sr("div",{title:"string"==typeof e.title?e.title:void 0,class:`${i.value}-title`},[fa(n,e,"title")]),Sr("ul",{class:`${i.value}-list`},[null===(r=n.default)||void 0===r?void 0:r.call(n)])])}}}),Zk=Ln({compatConfig:{MODE:3},name:"AMenuDivider",props:{prefixCls:String,dashed:Boolean},setup(e){const{prefixCls:t}=pk(),n=Xr((()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed})));return()=>Sr("li",{class:n.value},null)}});function Xk(e,t,n){return(e||[]).map(((e,o)=>{if(e&&"object"==typeof e){const r=e,{label:i,children:l,key:a,type:s}=r,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(r,["label","children","key","type"]),u=null!=a?a:`tmp-${o}`,d=n?n.parentKeys.slice():[],p=[],h={eventKey:u,key:u,parentEventKeys:Ot(d),parentKeys:Ot(d),childrenEventKeys:Ot(p),isLeaf:!1};if(l||"group"===s){if("group"===s){const o=Xk(l,t,n);return Sr(Vk,hl(hl({key:u},c),{},{title:i,originItemValue:e}),{default:()=>[o]})}t.set(u,h),n&&n.childrenEventKeys.push(u);const o=Xk(l,t,{childrenEventKeys:p,parentKeys:[].concat(d,u)});return Sr(Lk,hl(hl({key:u},c),{},{title:i,originItemValue:e}),{default:()=>[o]})}return"divider"===s?Sr(Zk,hl({key:u},c),null):(h.isLeaf=!0,t.set(u,h),Sr(Ik,hl(hl({key:u},c),{},{originItemValue:e}),{default:()=>[i]}))}return null})).filter((e=>e))}const Yk=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:o,colorSplit:r,lineWidth:i,lineType:l,menuItemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${i}px ${l} ${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"}}}},Kk=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})`}}}}},Gk=e=>fl({},Uu(e)),Uk=(e,t)=>{const{componentCls:n,colorItemText:o,colorItemTextSelected:r,colorGroupTitle:i,colorItemBg:l,colorSubItemBg:a,colorItemBgSelected:s,colorActiveBarHeight:c,colorActiveBarWidth:u,colorActiveBarBorderSize:d,motionDurationSlow:p,motionEaseInOut:h,motionEaseOut:f,menuItemPaddingInline:g,motionDurationMid:m,colorItemTextHover:v,lineType:b,colorSplit:y,colorItemTextDisabled:O,colorDangerItemText:w,colorDangerItemTextHover:x,colorDangerItemTextSelected:$,colorDangerItemBgActive:S,colorDangerItemBgSelected:C,colorItemBgHover:k,menuSubMenuBg:P,colorItemTextSelectedHorizontal:M,colorItemBgSelectedHorizontal:T}=e;return{[`${n}-${t}`]:{color:o,background:l,[`&${n}-root:focus-visible`]:fl({},Gk(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${O} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:s}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:s}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:$},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:C}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:fl({},Gk(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:l},[`&${n}-horizontal`]:fl(fl({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${p} ${h}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:c,borderBottomColor:M}},"&-selected":{color:M,backgroundColor:T,"&::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 ${m} ${f}`,`opacity ${m} ${f}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(",")}}}}}},qk=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:i,marginXS:l,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+i+l}}},Jk=e=>{const{componentCls:t,iconCls:n,menuItemHeight:o,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:l,motionDurationMid:a,motionEaseOut:s,paddingXL:c,fontSizeSM:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:h,boxShadowSecondary:f}=e,g={height:o,lineHeight:`${o}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":fl({[`&${t}-root`]:{boxShadow:"none"}},qk(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:fl(fl({},qk(e)),{boxShadow:f})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${2.5*l}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`]:g,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:g}},{[`${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`]:fl(fl({},Xu),{paddingInline:h})}}]},eP=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:l,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} ${i}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:n,fontSize:n,transition:[`font-size ${r} ${l}`,`margin ${o} ${i}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s-n,opacity:1,transition:[`opacity ${o} ${i}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:fl({},{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"}}),[`&${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"}}}},tP=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:i,menuArrowOffset:l}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*i,height:.15*i,backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${l})`},"&::after":{transform:`rotate(-45deg) translateY(${l})`}}}}},nP=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:l,lineHeight:a,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:p,borderRadiusLG:h,radiusSubMenuItem:f,menuArrowSize:g,menuArrowOffset:m,lineType:v,menuPanelMaskInset:b}=e;return[{"":{[`${n}`]:fl(fl({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:fl(fl(fl(fl(fl(fl(fl({},Yu(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} ${l}`,`background ${r} ${l}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`,`padding ${i} ${l}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${l}`,`padding ${r} ${l}`].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:v,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),eP(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:h,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}`]:fl(fl(fl({borderRadius:h},eP(e)),tP(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${l}`}})}}),tP(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${m})`},"&::after":{transform:`rotate(45deg) translateX(-${m})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*g}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${m})`},"&::before":{transform:`rotate(45deg) translateX(${m})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},oP=[],rP=Ln({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(e,t){let{slots:n,emit:o,attrs:r}=t;const{direction:i,getPrefixCls:l}=Cd("menu",e),a=rk(),s=Xr((()=>{var t;return l("menu",e.prefixCls||(null===(t=null==a?void 0:a.prefixCls)||void 0===t?void 0:t.value))})),[c,u]=((e,t)=>Ju("Menu",((e,n)=>{let{overrideComponentToken:o}=n;if(!1===(null==t?void 0:t.value))return[];const{colorBgElevated:r,colorPrimary:i,colorError:l,colorErrorHover:a,colorTextLightSolid:s}=e,{controlHeightLG:c,fontSize:u}=e,d=u/7*5,p=nd(e,{menuItemHeight:c,menuItemPaddingInline:e.margin,menuArrowSize:d,menuHorizontalHeight:1.15*c,menuArrowOffset:.25*d+"px",menuPanelMaskInset:-7,menuSubMenuBg:r}),h=new wu(s).setAlpha(.65).toRgbString(),f=nd(p,{colorItemText:h,colorItemTextHover:s,colorGroupTitle:h,colorItemTextSelected:s,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:i,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new wu(s).setAlpha(.25).toRgbString(),colorDangerItemText:l,colorDangerItemTextHover:a,colorDangerItemTextSelected:s,colorDangerItemBgActive:l,colorDangerItemBgSelected:l,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:s,colorItemBgSelectedHorizontal:i},fl({},o));return[nP(p),Yk(p),Jk(p),Uk(p,"light"),Uk(f,"dark"),Kk(p),Cx(p),ux(p,"slide-up"),ux(p,"slide-down"),Sx(p,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:o,colorErrorBg:r,colorText:i,colorTextDescription:l,colorBgContainer:a,colorFillAlter:s,colorFillContent:c,lineWidth:u,lineWidthBold:d,controlItemBgActive:p,colorBgTextHover:h}=e;return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,colorItemText:i,colorItemTextHover:i,colorItemTextHoverHorizontal:t,colorGroupTitle:l,colorItemTextSelected:t,colorItemTextSelectedHorizontal:t,colorItemBg:a,colorItemBgHover:h,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))(s,Xr((()=>!a))),d=wt(new Map),p=Ao(yk,Ot(void 0)),h=Xr((()=>void 0!==p.value?p.value:e.inlineCollapsed)),{itemsNodes:f}=function(e){const t=wt([]),n=wt(!1),o=wt(new Map);return wn((()=>e.items),(()=>{const r=new Map;n.value=!1,e.items?(n.value=!0,t.value=Xk(e.items,r)):t.value=void 0,o.value=r}),{immediate:!0,deep:!0}),{itemsNodes:t,store:o,hasItmes:n}}(e),g=wt(!1);Gn((()=>{g.value=!0})),yn((()=>{Sp(!(!0===e.inlineCollapsed&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Sp(!(void 0!==p.value&&!0===e.inlineCollapsed),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")}));const m=Ot([]),v=Ot([]),b=Ot({});wn(d,(()=>{const e={};for(const t of d.value.values())e[t.key]=t;b.value=e}),{flush:"post"}),yn((()=>{if(void 0!==e.activeKey){let t=[];const n=e.activeKey?b.value[e.activeKey]:void 0;t=n&&void 0!==e.activeKey?jw([].concat(Ct(n.parentKeys),e.activeKey)):[],ck(m.value,t)||(m.value=t)}})),wn((()=>e.selectedKeys),(e=>{e&&(v.value=e.slice())}),{immediate:!0,deep:!0});const y=Ot([]);wn([b,v],(()=>{let e=[];v.value.forEach((t=>{const n=b.value[t];n&&(e=e.concat(Ct(n.parentKeys)))})),e=jw(e),ck(y.value,e)||(y.value=e)}),{immediate:!0});const O=Ot([]);let w;wn((()=>e.openKeys),(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O.value;ck(O.value,e)||(O.value=e.slice())}),{immediate:!0,deep:!0});const x=Xr((()=>!!e.disabled)),$=Xr((()=>"rtl"===i.value)),S=Ot("vertical"),C=wt(!1);yn((()=>{var t;"inline"!==e.mode&&"vertical"!==e.mode||!h.value?(S.value=e.mode,C.value=!1):(S.value="vertical",C.value=h.value),(null===(t=null==a?void 0:a.mode)||void 0===t?void 0:t.value)&&(S.value=a.mode.value)}));const k=Xr((()=>"inline"===S.value)),P=e=>{O.value=e,o("update:openKeys",e),o("openChange",e)},M=Ot(O.value),T=wt(!1);wn(O,(()=>{k.value&&(M.value=O.value)}),{immediate:!0}),wn(k,(()=>{T.value?k.value?O.value=M.value:P(oP):T.value=!0}),{immediate:!0});const I=Xr((()=>({[`${s.value}`]:!0,[`${s.value}-root`]:!0,[`${s.value}-${S.value}`]:!0,[`${s.value}-inline-collapsed`]:C.value,[`${s.value}-rtl`]:$.value,[`${s.value}-${e.theme}`]:!0}))),E=Xr((()=>l())),A=Xr((()=>({horizontal:{name:`${E.value}-slide-up`},inline:Wk(`${E.value}-motion-collapse`),other:{name:`${E.value}-zoom-big`}})));mk(!0);const R=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[],n=d.value;return e.forEach((e=>{const{key:o,childrenEventKeys:r}=n.get(e);t.push(o,...R(Ct(r)))})),t},D=Ot(0),j=Xr((()=>{var t;return e.expandIcon||n.expandIcon||(null===(t=null==a?void 0:a.expandIcon)||void 0===t?void 0:t.value)?t=>{let o=e.expandIcon||n.expandIcon;return o="function"==typeof o?o(t):o,Zh(o,{class:`${s.value}-submenu-expand-icon`},!1)}:null}));return bk({prefixCls:s,activeKeys:m,openKeys:O,selectedKeys:v,changeActiveKeys:t=>{clearTimeout(w),w=setTimeout((()=>{void 0===e.activeKey&&(m.value=t),o("update:activeKey",t[t.length-1])}))},disabled:x,rtl:$,mode:S,inlineIndent:Xr((()=>e.inlineIndent)),subMenuCloseDelay:Xr((()=>e.subMenuCloseDelay)),subMenuOpenDelay:Xr((()=>e.subMenuOpenDelay)),builtinPlacements:Xr((()=>e.builtinPlacements)),triggerSubMenuAction:Xr((()=>e.triggerSubMenuAction)),getPopupContainer:Xr((()=>e.getPopupContainer)),inlineCollapsed:C,theme:Xr((()=>e.theme)),siderCollapsed:p,defaultMotions:Xr((()=>g.value?A.value:null)),motion:Xr((()=>g.value?e.motion:null)),overflowDisabled:wt(void 0),onOpenChange:(e,t)=>{var n;const o=(null===(n=b.value[e])||void 0===n?void 0:n.childrenEventKeys)||[];let r=O.value.filter((t=>t!==e));if(t)r.push(e);else if("inline"!==S.value){const e=R(Ct(o));r=jw(r.filter((t=>!e.includes(t))))}ck(O,r)||P(r)},onItemClick:t=>{var n;o("click",t),(t=>{if(e.selectable){const{key:n}=t,r=v.value.includes(n);let i;i=e.multiple?r?v.value.filter((e=>e!==n)):[...v.value,n]:[n];const l=fl(fl({},t),{selectedKeys:i});ck(i,v.value)||(void 0===e.selectedKeys&&(v.value=i),o("update:selectedKeys",i),r&&e.multiple?o("deselect",l):o("select",l))}"inline"!==S.value&&!e.multiple&&O.value.length&&P(oP)})(t),null===(n=null==a?void 0:a.onClick)||void 0===n||n.call(a)},registerMenuInfo:(e,t)=>{d.value.set(e,t),d.value=new Map(d.value)},unRegisterMenuInfo:e=>{d.value.delete(e),d.value=new Map(d.value)},selectedSubMenuKeys:y,expandIcon:j,forceSubMenuRender:Xr((()=>e.forceSubMenuRender)),rootClassName:u}),()=>{var t,o;const i=f.value||oa(null===(t=n.default)||void 0===t?void 0:t.call(n)),l=D.value>=i.length-1||"horizontal"!==S.value||e.disabledOverflow,a="horizontal"!==S.value||e.disabledOverflow?i:i.map(((e,t)=>Sr(vk,{key:e.key,overflowDisabled:t>D.value},{default:()=>e}))),d=(null===(o=n.overflowedIndicator)||void 0===o?void 0:o.call(n))||Sr(VC,null,null);return c(Sr(Um,hl(hl({},r),{},{onMousedown:e.onMousedown,prefixCls:`${s.value}-overflow`,component:"ul",itemComponent:Ik,class:[I.value,r.class,u.value],role:"menu",id:e.id,data:a,renderRawItem:e=>e,renderRawRest:e=>{const t=e.length,n=t?i.slice(-t):null;return Sr(lr,null,[Sr(Lk,{eventKey:wk,key:wk,title:d,disabled:l,internalPopupClose:0===t},{default:()=>n}),Sr(Ck,null,{default:()=>[Sr(Lk,{eventKey:wk,key:wk,title:d,disabled:l,internalPopupClose:0===t},{default:()=>n})]})])},maxCount:"horizontal"!==S.value||e.disabledOverflow?Um.INVALIDATE:Um.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:e=>{D.value=e}}),{default:()=>[Sr(rr,{to:"body"},{default:()=>[Sr("div",{style:{display:"none"},"aria-hidden":!0},[Sr(Ck,null,{default:()=>[a]})])]})]}))}}});rP.install=function(e){return e.component(rP.name,rP),e.component(Ik.name,Ik),e.component(Lk.name,Lk),e.component(Zk.name,Zk),e.component(Vk.name,Vk),e},rP.Item=Ik,rP.Divider=Zk,rP.SubMenu=Lk,rP.ItemGroup=Vk;const iP=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:fl(fl({},Yu(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[n]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:fl({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}},qu(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"}})}},lP=Ju("Breadcrumb",(e=>{const t=nd(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[iP(t)]}));function aP(e){const{route:t,params:n,routes:o,paths:r}=e,i=o.indexOf(t)===o.length-1,l=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 i?Sr("span",null,[l]):Sr("a",{href:`#/${r.join("/")}`},[l])}const sP=Ln({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:{prefixCls:String,routes:{type:Array},params:xp.any,separator:xp.any,itemRender:{type:Function}},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Cd("breadcrumb",e),[l,a]=lP(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,h=oa(fa(n,e)),f=null!==(t=fa(n,e,"separator"))&&void 0!==t?t:"/",g=e.itemRender||n.itemRender||aP;d&&d.length>0?u=(e=>{let{routes:t=[],params:n={},separator:o,itemRender:r=aP}=e;const i=[];return t.map((e=>{const l=s(e.path,n);l&&i.push(l);const a=[...i];let u=null;e.children&&e.children.length&&(u=Sr(rP,{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),Sr(sk,hl(hl({},d),{},{key:l||e.breadcrumbName}),{default:()=>[r({route:e,params:n,routes:t,paths:a})]})}))})({routes:d,params:p,separator:f,itemRender:g}):h.length&&(u=h.map(((e,t)=>(Rs("object"==typeof e.type&&(e.type.__ANT_BREADCRUMB_ITEM||e.type.__ANT_BREADCRUMB_SEPARATOR)),Cr(e,{separator:f,key:t})))));const m={[r.value]:!0,[`${r.value}-rtl`]:"rtl"===i.value,[`${o.class}`]:!!o.class,[a.value]:!0};return l(Sr("nav",hl(hl({},o),{},{class:m}),[Sr("ol",null,[u])]))}}}),cP=Ln({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}=Cd("breadcrumb",e);return()=>{var e;const{separator:t,class:i}=o,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["separator","class"]),a=oa(null===(e=n.default)||void 0===e?void 0:e.call(n));return Sr("span",hl({class:[`${r.value}-separator`,i]},l),[a.length>0?a:"/"])}}});function uP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}sP.Item=sk,sP.Separator=cP,sP.install=function(e){return e.component(sP.name,sP),e.component(sk.name,sk),e.component(cP.name,cP),e},"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var dP={exports:{}};dP.exports=function(){var e=1e3,t=6e4,n=36e5,o="millisecond",r="second",i="minute",l="hour",a="day",s="week",c="month",u="quarter",d="year",p="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,m={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])+"]"}},v=function(e,t,n){var o=String(e);return!o||o.length>=t?e:""+Array(t+1-o.length).join(n)+e},b={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),o=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+v(o,2,"0")+":"+v(r,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var o=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(o,c),i=n-r<0,l=t.clone().add(o+(i?-1:1),c);return+(-(o+(n-r)/(i?r-l:l-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:s,d:a,D:p,h:l,m:i,s:r,ms:o,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",O={};O[y]=m;var w="$isDayjsObject",x=function(e){return e instanceof k||!(!e||!e[w])},$=function e(t,n,o){var r;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();O[i]&&(r=i),n&&(O[i]=n,r=i);var l=t.split("-");if(!r&&l.length>1)return e(l[0])}else{var a=t.name;O[a]=t,r=a}return!o&&r&&(y=r),r||!o&&y},S=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new k(n)},C=b;C.l=$,C.i=x,C.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function m(e){this.$L=$(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.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,i=(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,i)):new Date(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)}}return new Date(t)}(e),this.init()},v.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()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,o=!!C.u(t)||t,u=C.p(e),h=function(e,t){var r=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return o?r:r.endOf(a)},f=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(o?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case d:return o?h(1,0):h(31,11);case c:return o?h(1,m):h(0,m+1);case s:var y=this.$locale().weekStart||0,O=(g<y?g+7:g)-y;return h(o?v-O:v+(6-O),m);case a:case p:return f(b+"Hours",0);case l:return f(b+"Minutes",1);case i:return f(b+"Seconds",2);case r:return f(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,s=C.p(e),u="set"+(this.$u?"UTC":""),h=(n={},n[a]=u+"Date",n[p]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[l]=u+"Hours",n[i]=u+"Minutes",n[r]=u+"Seconds",n[o]=u+"Milliseconds",n)[s],f=s===a?this.$D+(t-this.$W):t;if(s===c||s===d){var g=this.clone().set(p,1);g.$d[h](f),g.init(),this.$d=g.set(p,Math.min(this.$D,g.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(o,u){var p,h=this;o=Number(o);var f=C.p(u),g=function(e){var t=S(h);return C.w(t.date(t.date()+Math.round(e*o)),h)};if(f===c)return this.set(c,this.$M+o);if(f===d)return this.set(d,this.$y+o);if(f===a)return g(1);if(f===s)return g(7);var m=(p={},p[i]=t,p[l]=n,p[r]=e,p)[f]||1,v=this.$d.getTime()+o*m;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var o=e||"YYYY-MM-DDTHH:mm:ssZ",r=C.z(this),i=this.$H,l=this.$m,a=this.$M,s=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,r,i){return e&&(e[n]||e(t,o))||r[n].slice(0,i)},p=function(e){return C.s(i%12||12,e,"0")},f=u||function(e,t,n){var o=e<12?"AM":"PM";return n?o.toLowerCase():o};return o.replace(g,(function(e,o){return o||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return a+1;case"MM":return C.s(a+1,2,"0");case"MMM":return d(n.monthsShort,a,c,3);case"MMMM":return d(c,a);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return C.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return f(i,l,!0);case"A":return f(i,l,!1);case"m":return String(l);case"mm":return C.s(l,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(o,p,h){var f,g=this,m=C.p(p),v=S(o),b=(v.utcOffset()-this.utcOffset())*t,y=this-v,O=function(){return C.m(g,v)};switch(m){case d:f=O()/12;break;case c:f=O();break;case u:f=O()/3;break;case s:f=(y-b)/6048e5;break;case a:f=(y-b)/864e5;break;case l:f=y/n;break;case i:f=y/t;break;case r:f=y/e;break;default:f=y}return h?f:C.a(f)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return O[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),o=$(e,t,!0);return o&&(n.$L=o),n},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),P=k.prototype;return S.prototype=P,[["$ms",o],["$s",r],["$m",i],["$H",l],["$W",a],["$M",c],["$y",d],["$D",p]].forEach((function(e){P[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,k,S),e.$i=!0),S},S.locale=$,S.isDayjs=x,S.unix=function(e){return S(1e3*e)},S.en=O[y],S.Ls=O,S.p={},S}();const pP=uP(dP.exports);var hP={exports:{}};!function(e,t){e.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,o=(n<t?n+7:n)-t;return this.$utils().u(e)?o:this.subtract(o,"day").add(e,"day")}}}(hP);const fP=uP(hP.exports);var gP={exports:{}};!function(e,t){e.exports=function(e,t,n){var o=t.prototype,r=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,o,i){var l=e.name?e:e.$locale(),a=r(l[t]),s=r(l[n]),c=a||s.map((function(e){return e.slice(0,o)}));if(!i)return c;var u=l.weekStart;return c.map((function(e,t){return c[(t+(u||0))%7]}))},l=function(){return n.Ls[n.locale()]},a=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))},s=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return a(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return s.bind(this)()},n.localeData=function(){var e=l();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return a(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(l(),"months")},n.monthsShort=function(){return i(l(),"monthsShort","months",3)},n.weekdays=function(e){return i(l(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(l(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(l(),"weekdaysMin","weekdays",2,e)}}}(gP);const mP=uP(gP.exports);var vP={exports:{}};!function(e,t){var n,o;e.exports=(n="week",o="year",function(e,t,r){var i=t.prototype;i.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var t=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=r(this).startOf(o).add(1,o).date(t),l=r(this).endOf(n);if(i.isBefore(l))return 1}var a=r(this).startOf(o).date(t).startOf(n).subtract(1,"millisecond"),s=this.diff(a,n,!0);return s<0?r(this).startOf("week").week():Math.ceil(s)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})}(vP);const bP=uP(vP.exports);var yP={exports:{}};!function(e,t){e.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}}}(yP);const OP=uP(yP.exports);var wP={exports:{}};!function(e,t){var n,o;e.exports=(n="month",o="quarter",function(e,t){var r=t.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 i=r.add;r.add=function(e,t){return e=Number(e),this.$utils().p(t)===o?this.add(3*e,n):i.bind(this)(e,t)};var l=r.startOf;r.startOf=function(e,t){var r=this.$utils(),i=!!r.u(t)||t;if(r.p(e)===o){var a=this.quarter()-1;return i?this.month(3*a).startOf(n).startOf("day"):this.month(3*a+2).endOf(n).endOf("day")}return l.bind(this)(e,t)}})}(wP);const xP=uP(wP.exports);var $P={exports:{}};!function(e,t){e.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(),i=(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)(i)}}}($P);const SP=uP($P.exports);var CP={exports:{}};!function(e,t){e.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]+/,i={},l=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=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,o=i.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=i.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=l(e)}],YYYY:[/\d{4}/,a("year")],Z:s,ZZ:s};function p(n){var o,r;o=n,r=i&&i.formats;for(var l=(n=o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,o){var i=o&&o.toUpperCase();return n||r[o]||e[o]||r[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=l.length,s=0;s<a;s+=1){var c=l[s],u=d[c],p=u&&u[0],h=u&&u[1];l[s]=h?{regex:p,parser:h}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,o=0;n<a;n+=1){var r=l[n];if("string"==typeof r)o+=r.length;else{var i=r.regex,s=r.parser,c=e.slice(o),u=i.exec(c)[0];s.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(l=e.parseTwoDigitYear);var o=t.prototype,r=o.parse;o.parse=function(e){var t=e.date,o=e.utc,l=e.args;this.$u=o;var a=l[1];if("string"==typeof a){var s=!0===l[2],c=!0===l[3],u=s||c,d=l[2];c&&(d=l[2]),i=this.$locale(),!s&&d&&(i=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=p(t)(e),r=o.year,i=o.month,l=o.day,a=o.hours,s=o.minutes,c=o.seconds,u=o.milliseconds,d=o.zone,h=new Date,f=l||(r||i?1:h.getDate()),g=r||h.getFullYear(),m=0;r&&!i||(m=i>0?i-1:h.getMonth());var v=a||0,b=s||0,y=c||0,O=u||0;return d?new Date(Date.UTC(g,m,f,v,b,y,O+60*d.offset*1e3)):n?new Date(Date.UTC(g,m,f,v,b,y,O)):new Date(g,m,f,v,b,y,O)}catch(w){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("")),i={}}else if(a instanceof Array)for(var h=a.length,f=1;f<=h;f+=1){l[1]=a[f-1];var g=n.apply(this,l);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}f===h&&(this.$d=new Date(""))}else r.call(this,e)}}}()}(CP);const kP=uP(CP.exports);pP.extend(kP),pP.extend(SP),pP.extend(fP),pP.extend(mP),pP.extend(bP),pP.extend(OP),pP.extend(xP),pP.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 PP={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"},MP=e=>PP[e]||e.split("_")[0],TP=()=>{Es(Is,!1,"Not match any format. Please help to fire a issue about this.")},IP=/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;function EP(e,t,n){const o=[...new Set(e.split(n))];let r=0;for(let i=0;i<o.length;i++){const e=o[i];if(r+=e.length,r>t)return e;r+=n.length}}const AP=(e,t)=>{if(!e)return null;if(pP.isDayjs(e))return e;const n=t.matchAll(IP);let o=pP(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=EP(e,n,t).match(/\d+/)[0];o=o.quarter(parseInt(r))}if("wo"===t.toLowerCase()){const t=e.slice(n-1,n),r=EP(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},RP={getNow:()=>pP(),getFixedDate:e=>pP(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=>pP().locale(MP(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>t.locale(MP(e)).weekday(0),getWeek:(e,t)=>t.locale(MP(e)).week(),getShortWeekDays:e=>pP().locale(MP(e)).localeData().weekdaysMin(),getShortMonths:e=>pP().locale(MP(e)).localeData().monthsShort(),format:(e,t,n)=>t.locale(MP(e)).format(n),parse:(e,t,n)=>{const o=MP(e);for(let r=0;r<n.length;r+=1){const e=n[r],i=t;if(e.includes("wo")||e.includes("Wo")){const e=i.split("-")[0],t=i.split("-")[1],n=pP(e,"YYYY").startOf("year").locale(o);for(let o=0;o<=52;o+=1){const e=n.add(o,"week");if(e.format("Wo")===t)return e}return TP(),null}const l=pP(i,e,!0).locale(o);if(l.isValid())return l}return t||TP(),null}},toDate:(e,t)=>Array.isArray(e)?e.map((e=>AP(e,t))):AP(e,t),toString:(e,t)=>Array.isArray(e)?e.map((e=>pP.isDayjs(e)?e.format(t):e)):pP.isDayjs(e)?e.format(t):e};function DP(e){const t=ho();return fl(fl({},e),t)}const jP=Symbol("PanelContextProps"),BP=e=>{Eo(jP,e)},NP=()=>Ao(jP,{}),zP={visibility:"hidden"};function _P(e,t){let{slots:n}=t;var o;const r=DP(e),{prefixCls:i,prevIcon:l="",nextIcon:a="",superPrevIcon:s="«",superNextIcon:c="»",onSuperPrev:u,onSuperNext:d,onPrev:p,onNext:h}=r,{hideNextBtn:f,hidePrevBtn:g}=NP();return Sr("div",{class:i},[u&&Sr("button",{type:"button",onClick:u,tabindex:-1,class:`${i}-super-prev-btn`,style:g.value?zP:{}},[s]),p&&Sr("button",{type:"button",onClick:p,tabindex:-1,class:`${i}-prev-btn`,style:g.value?zP:{}},[l]),Sr("div",{class:`${i}-view`},[null===(o=n.default)||void 0===o?void 0:o.call(n)]),h&&Sr("button",{type:"button",onClick:h,tabindex:-1,class:`${i}-next-btn`,style:f.value?zP:{}},[a]),d&&Sr("button",{type:"button",onClick:d,tabindex:-1,class:`${i}-super-next-btn`,style:f.value?zP:{}},[c])])}function LP(e){const t=DP(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecades:i,onNextDecades:l}=t,{hideHeader:a}=NP();if(a)return null;const s=`${n}-header`,c=o.getYear(r),u=Math.floor(c/nM)*nM,d=u+nM-1;return Sr(_P,hl(hl({},t),{},{prefixCls:s,onSuperPrev:i,onSuperNext:l}),{default:()=>[u,kr("-"),d]})}function QP(e,t,n,o,r){let i=e.setHour(t,n);return i=e.setMinute(i,o),i=e.setSecond(i,r),i}function HP(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 FP(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 WP(e){const{prefixCls:t,disabledDate:n,onSelect:o,picker:r,rowNum:i,colNum:l,prefixColumn:a,rowClassName:s,baseDate:c,getCellClassName:u,getCellText:d,getCellNode:p,getCellDate:h,generateConfig:f,titleCell:g,headerCells:m}=DP(e),{onDateMouseenter:v,onDateMouseleave:b,mode:y}=NP(),O=`${t}-cell`,w=[];for(let x=0;x<i;x+=1){const e=[];let t;for(let i=0;i<l;i+=1){const s=h(c,x*l+i),m=mM({cellDate:s,mode:y.value,disabledDate:n,generateConfig:f});0===i&&(t=s,a&&e.push(a(t)));const w=g&&g(s);e.push(Sr("td",{key:i,title:w,class:Tl(O,fl({[`${O}-disabled`]:m,[`${O}-start`]:1===d(s)||"year"===r&&Number(w)%10==0,[`${O}-end`]:w===FP(f,s)||"year"===r&&Number(w)%10==9},u(s))),onClick:e=>{e.stopPropagation(),m||o(s)},onMouseenter:()=>{!m&&v&&v(s)},onMouseleave:()=>{!m&&b&&b(s)}},[p?p(s):Sr("div",{class:`${O}-inner`},[d(s)])]))}w.push(Sr("tr",{key:x,class:s&&s(t)},[e]))}return Sr("div",{class:`${t}-body`},[Sr("table",{class:`${t}-content`},[m&&Sr("thead",null,[Sr("tr",null,[m])]),Sr("tbody",null,[w])])])}function VP(e){const t=DP(e),n=tM-1,{prefixCls:o,viewDate:r,generateConfig:i}=t,l=`${o}-cell`,a=i.getYear(r),s=Math.floor(a/tM)*tM,c=Math.floor(a/nM)*nM,u=c+nM-1,d=i.setYear(r,c-Math.ceil((12*tM-nM)/2));return Sr(WP,hl(hl({},t),{},{rowNum:4,colNum:3,baseDate:d,getCellText:e=>{const t=i.getYear(e);return`${t}-${t+n}`},getCellClassName:e=>{const t=i.getYear(e);return{[`${l}-in-view`]:c<=t&&t+n<=u,[`${l}-selected`]:t===s}},getCellDate:(e,t)=>i.addYear(e,t*tM)}),null)}_P.displayName="Header",_P.inheritAttrs=!1,LP.displayName="DecadeHeader",LP.inheritAttrs=!1,WP.displayName="PanelBody",WP.inheritAttrs=!1,VP.displayName="DecadeBody",VP.inheritAttrs=!1;const ZP=new Map;function XP(e,t,n){if(ZP.get(e)&&wa.cancel(ZP.get(e)),n<=0)return void ZP.set(e,wa((()=>{e.scrollTop=t})));const o=(t-e.scrollTop)/n*10;ZP.set(e,wa((()=>{e.scrollTop+=o,e.scrollTop!==t&&XP(e,t,n-10)})))}function YP(e,t){let{onLeftRight:n,onCtrlLeftRight:o,onUpDown:r,onPageUpDown:i,onEnter:l}=t;const{which:a,ctrlKey:s,metaKey:c}=e;switch(a){case Tm.LEFT:if(s||c){if(o)return o(-1),!0}else if(n)return n(-1),!0;break;case Tm.RIGHT:if(s||c){if(o)return o(1),!0}else if(n)return n(1),!0;break;case Tm.UP:if(r)return r(-1),!0;break;case Tm.DOWN:if(r)return r(1),!0;break;case Tm.PAGE_UP:if(i)return i(-1),!0;break;case Tm.PAGE_DOWN:if(i)return i(1),!0;break;case Tm.ENTER:if(l)return l(),!0}return!1}function KP(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 GP(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 UP=null;const qP=new Set,JP={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 eM(e,t){return e.some((e=>e&&e.contains(t)))}const tM=10,nM=10*tM;function oM(e){const t=DP(e),{prefixCls:n,onViewDateChange:o,generateConfig:r,viewDate:i,operationRef:l,onSelect:a,onPanelChange:s}=t,c=`${n}-decade-panel`;l.value={onKeydown:e=>YP(e,{onLeftRight:e=>{a(r.addYear(i,e*tM),"key")},onCtrlLeftRight:e=>{a(r.addYear(i,e*nM),"key")},onUpDown:e=>{a(r.addYear(i,e*tM*3),"key")},onEnter:()=>{s("year",i)}})};const u=e=>{const t=r.addYear(i,e*nM);o(t),s(null,t)};return Sr("div",{class:c},[Sr(LP,hl(hl({},t),{},{prefixCls:n,onPrevDecades:()=>{u(-1)},onNextDecades:()=>{u(1)}}),null),Sr(VP,hl(hl({},t),{},{prefixCls:n,onSelect:e=>{a(e,"mouse"),s("year",e)}}),null)])}function rM(e,t){return!e&&!t||!(!e||!t)&&void 0}function iM(e,t,n){const o=rM(t,n);return"boolean"==typeof o?o:e.getYear(t)===e.getYear(n)}function lM(e,t){return Math.floor(e.getMonth(t)/3)+1}function aM(e,t,n){const o=rM(t,n);return"boolean"==typeof o?o:iM(e,t,n)&&lM(e,t)===lM(e,n)}function sM(e,t,n){const o=rM(t,n);return"boolean"==typeof o?o:iM(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function cM(e,t,n){const o=rM(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 uM(e,t,n,o){const r=rM(n,o);return"boolean"==typeof r?r:e.locale.getWeek(t,n)===e.locale.getWeek(t,o)}function dM(e,t,n){return cM(e,t,n)&&function(e,t,n){const o=rM(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 pM(e,t,n,o){return!!(t&&n&&o)&&!cM(e,t,o)&&!cM(e,n,o)&&e.isAfter(o,t)&&e.isAfter(n,o)}function hM(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 fM(e,t){let{generateConfig:n,locale:o,format:r}=t;return"function"==typeof r?r(e):n.locale.format(o.locale,e,r)}function gM(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 mM(e){let{cellDate:t,mode:n,disabledDate:o,generateConfig:r}=e;if(!o)return!1;const i=(e,n,i)=>{let l=n;for(;l<=i;){let n;switch(e){case"date":if(n=r.setDate(t,l),!o(n))return!1;break;case"month":if(n=r.setMonth(t,l),!mM({cellDate:n,mode:"month",generateConfig:r,disabledDate:o}))return!1;break;case"year":if(n=r.setYear(t,l),!mM({cellDate:n,mode:"year",generateConfig:r,disabledDate:o}))return!1}l+=1}return!0};switch(n){case"date":case"week":return o(t);case"month":return i("date",1,r.getDate(r.getEndDate(t)));case"quarter":{const e=3*Math.floor(r.getMonth(t)/3);return i("month",e,e+2)}case"year":return i("month",0,11);case"decade":{const e=r.getYear(t),n=Math.floor(e/tM)*tM;return i("year",n,n+tM-1)}}}function vM(e){const t=DP(e),{hideHeader:n}=NP();if(n.value)return null;const{prefixCls:o,generateConfig:r,locale:i,value:l,format:a}=t;return Sr(_P,{prefixCls:`${o}-header`},{default:()=>[l?fM(l,{locale:i,format:a,generateConfig:r}):" "]})}oM.displayName="DecadePanel",oM.inheritAttrs=!1,vM.displayName="TimeHeader",vM.inheritAttrs=!1;const bM=Ln({name:"TimeUnitColumn",props:["prefixCls","units","onSelect","value","active","hideDisabledOptions"],setup(e){const{open:t}=NP(),n=wt(null),o=Ot(new Map),r=Ot();return wn((()=>e.value),(()=>{const r=o.value.get(e.value);r&&!1!==t.value&&XP(n.value,r.offsetTop,120)})),Jn((()=>{var e;null===(e=r.value)||void 0===e||e.call(r)})),wn(t,(()=>{var i;null===(i=r.value)||void 0===i||i.call(r),Vt((()=>{if(t.value){const t=o.value.get(e.value);t&&(r.value=function(e,t){let n;return function o(){Kh(e)?t():n=wa((()=>{o()}))}(),()=>{wa.cancel(n)}}(t,(()=>{XP(n.value,t.offsetTop,0)})))}}))}),{immediate:!0,flush:"post"}),()=>{const{prefixCls:t,units:r,onSelect:i,value:l,active:a,hideDisabledOptions:s}=e,c=`${t}-cell`;return Sr("ul",{class:Tl(`${t}-column`,{[`${t}-column-active`]:a}),ref:n,style:{position:"relative"}},[r.map((e=>s&&e.disabled?null:Sr("li",{key:e.value,ref:t=>{o.value.set(e.value,t)},class:Tl(c,{[`${c}-disabled`]:e.disabled,[`${c}-selected`]:l===e.value}),onClick:()=>{e.disabled||i(e.value)}},[Sr("div",{class:`${c}-inner`},[e.label])])))])}}});function yM(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",o=String(e);for(;o.length<t;)o=`${n}${e}`;return o}function OM(e){return null==e?[]:Array.isArray(e)?e:[e]}function wM(e){const t={};return Object.keys(e).forEach((n=>{!n.startsWith("data-")&&!n.startsWith("aria-")&&"role"!==n&&"name"!==n||n.startsWith("data-__")||(t[n]=e[n])})),t}function xM(e,t){return e?e[t]:null}function $M(e,t,n){const o=[xM(e,0),xM(e,1)];return o[n]="function"==typeof t?t(o[n]):t,o[0]||o[1]?o:null}function SM(e,t,n,o){const r=[];for(let i=e;i<=t;i+=n)r.push({label:yM(i,2),value:i,disabled:(o||[]).includes(i)});return r}const CM=Ln({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=Xr((()=>e.value?e.generateConfig.getHour(e.value):-1)),n=Xr((()=>!!e.use12Hours&&t.value>=12)),o=Xr((()=>e.use12Hours?t.value%12:t.value)),r=Xr((()=>e.value?e.generateConfig.getMinute(e.value):-1)),i=Xr((()=>e.value?e.generateConfig.getSecond(e.value):-1)),l=Ot(e.generateConfig.getNow()),a=Ot(),s=Ot(),c=Ot();Un((()=>{l.value=e.generateConfig.getNow()})),yn((()=>{if(e.disabledTime){const t=e.disabledTime(l);[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 i=e.value||e.generateConfig.getNow();const l=Math.max(0,n),a=Math.max(0,o),s=Math.max(0,r);return i=QP(e.generateConfig,i,e.use12Hours&&t?l+12:l,a,s),i},d=Xr((()=>{var t;return SM(0,23,null!==(t=e.hourStep)&&void 0!==t?t:1,a.value&&a.value())})),p=Xr((()=>{if(!e.use12Hours)return[!1,!1];const t=[!0,!0];return d.value.forEach((e=>{let{disabled:n,value:o}=e;n||(o>=12?t[1]=!1:t[0]=!1)})),t})),h=Xr((()=>e.use12Hours?d.value.filter(n.value?e=>e.value>=12:e=>e.value<12).map((e=>{const t=e.value%12,n=0===t?"12":yM(t,2);return fl(fl({},e),{label:n,value:t})})):d.value)),f=Xr((()=>{var n;return SM(0,59,null!==(n=e.minuteStep)&&void 0!==n?n:1,s.value&&s.value(t.value))})),g=Xr((()=>{var n;return SM(0,59,null!==(n=e.secondStep)&&void 0!==n?n:1,c.value&&c.value(t.value,r.value))}));return()=>{const{prefixCls:t,operationRef:l,activeColumnIndex:a,showHour:s,showMinute:c,showSecond:d,use12Hours:m,hideDisabledOptions:v,onSelect:b}=e,y=[],O=`${t}-content`,w=`${t}-time-panel`;function x(e,t,n,o,r){!1!==e&&y.push({node:Zh(t,{prefixCls:w,value:n,active:a===y.length,onSelect:r,units:o,hideDisabledOptions:v}),onSelect:r,value:n,units:o})}l.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<o;r+=1){const i=t.units[(n+e*r+o)%o];if(!0!==i.disabled){t.onSelect(i.value);break}}}}},x(s,Sr(bM,{key:"hour"},null),o.value,h.value,(e=>{b(u(n.value,e,r.value,i.value),"mouse")})),x(c,Sr(bM,{key:"minute"},null),r.value,f.value,(e=>{b(u(n.value,o.value,e,i.value),"mouse")})),x(d,Sr(bM,{key:"second"},null),i.value,g.value,(e=>{b(u(n.value,o.value,r.value,e),"mouse")}));let $=-1;return"boolean"==typeof n.value&&($=n.value?1:0),x(!0===m,Sr(bM,{key:"12hours"},null),$,[{label:"AM",value:0,disabled:p.value[0]},{label:"PM",value:1,disabled:p.value[1]}],(e=>{b(u(!!e,o.value,r.value,i.value),"mouse")})),Sr("div",{class:O},[y.map((e=>{let{node:t}=e;return t}))])}}});function kM(e){const t=DP(e),{generateConfig:n,format:o="HH:mm:ss",prefixCls:r,active:i,operationRef:l,showHour:a,showMinute:s,showSecond:c,use12Hours:u=!1,onSelect:d,value:p}=t,h=`${r}-time-panel`,f=Ot(),g=Ot(-1),m=[a,s,c,u].filter((e=>!1!==e)).length;return l.value={onKeydown:e=>YP(e,{onLeftRight:e=>{g.value=(g.value+e+m)%m},onUpDown:e=>{-1===g.value?g.value=0:f.value&&f.value.onUpDown(e)},onEnter:()=>{d(p||n.getNow(),"key"),g.value=-1}}),onBlur:()=>{g.value=-1}},Sr("div",{class:Tl(h,{[`${h}-active`]:i})},[Sr(vM,hl(hl({},t),{},{format:o,prefixCls:r}),null),Sr(CM,hl(hl({},t),{},{prefixCls:r,activeColumnIndex:g.value,operationRef:f}),null)])}function PM(e){let{cellPrefixCls:t,generateConfig:n,rangedValue:o,hoverRangedValue:r,isInView:i,isSameCell:l,offsetCell:a,today:s,value:c}=e;return function(e){const u=a(e,-1),d=a(e,1),p=xM(o,0),h=xM(o,1),f=xM(r,0),g=xM(r,1),m=pM(n,f,g,e);function v(e){return l(p,e)}function b(e){return l(h,e)}const y=l(f,e),O=l(g,e),w=(m||O)&&(!i(u)||b(u)),x=(m||y)&&(!i(d)||v(d));return{[`${t}-in-view`]:i(e),[`${t}-in-range`]:pM(n,p,h,e),[`${t}-range-start`]:v(e),[`${t}-range-end`]:b(e),[`${t}-range-start-single`]:v(e)&&!h,[`${t}-range-end-single`]:b(e)&&!p,[`${t}-range-start-near-hover`]:v(e)&&(l(u,f)||pM(n,f,g,u)),[`${t}-range-end-near-hover`]:b(e)&&(l(d,g)||pM(n,f,g,d)),[`${t}-range-hover`]:m,[`${t}-range-hover-start`]:y,[`${t}-range-hover-end`]:O,[`${t}-range-hover-edge-start`]:w,[`${t}-range-hover-edge-end`]:x,[`${t}-range-hover-edge-start-near-range`]:w&&l(u,h),[`${t}-range-hover-edge-end-near-range`]:x&&l(d,p),[`${t}-today`]:l(s,e),[`${t}-selected`]:l(c,e)}}}kM.displayName="TimePanel",kM.inheritAttrs=!1;const MM=Symbol("RangeContextProps"),TM=()=>Ao(MM,{rangedValue:Ot(),hoverRangedValue:Ot(),inRange:Ot(),panelPosition:Ot()}),IM=Ln({compatConfig:{MODE:3},name:"PanelContextProvider",inheritAttrs:!1,props:{value:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t;const o={rangedValue:Ot(e.value.rangedValue),hoverRangedValue:Ot(e.value.hoverRangedValue),inRange:Ot(e.value.inRange),panelPosition:Ot(e.value.panelPosition)};return(e=>{Eo(MM,e)})(o),wn((()=>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 EM(e){const t=DP(e),{prefixCls:n,generateConfig:o,prefixColumn:r,locale:i,rowCount:l,viewDate:a,value:s,dateRender:c}=t,{rangedValue:u,hoverRangedValue:d}=TM(),p=function(e,t,n){const o=t.locale.getWeekFirstDay(e),r=t.setDate(n,1),i=t.getWeekDay(r);let l=t.addDate(r,o-i);return t.getMonth(l)===t.getMonth(n)&&t.getDate(l)>1&&(l=t.addDate(l,-7)),l}(i.locale,o,a),h=`${n}-cell`,f=o.locale.getWeekFirstDay(i.locale),g=o.getNow(),m=[],v=i.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(i.locale):[]);r&&m.push(Sr("th",{key:"empty","aria-label":"empty cell"},null));for(let O=0;O<7;O+=1)m.push(Sr("th",{key:O},[v[(O+f)%7]]));const b=PM({cellPrefixCls:h,today:g,value:s,generateConfig:o,rangedValue:r?null:u.value,hoverRangedValue:r?null:d.value,isSameCell:(e,t)=>cM(o,e,t),isInView:e=>sM(o,e,a),offsetCell:(e,t)=>o.addDate(e,t)}),y=c?e=>c({current:e,today:g}):void 0;return Sr(WP,hl(hl({},t),{},{rowNum:l,colNum:7,baseDate:p,getCellNode:y,getCellText:o.getDate,getCellClassName:b,getCellDate:o.addDate,titleCell:e=>fM(e,{locale:i,format:"YYYY-MM-DD",generateConfig:o}),headerCells:m}),null)}function AM(e){const t=DP(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:i,onNextMonth:l,onPrevMonth:a,onNextYear:s,onPrevYear:c,onYearClick:u,onMonthClick:d}=t,{hideHeader:p}=NP();if(p.value)return null;const h=`${n}-header`,f=r.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(r.locale):[]),g=o.getMonth(i),m=Sr("button",{type:"button",key:"year",onClick:u,tabindex:-1,class:`${n}-year-btn`},[fM(i,{locale:r,format:r.yearFormat,generateConfig:o})]),v=Sr("button",{type:"button",key:"month",onClick:d,tabindex:-1,class:`${n}-month-btn`},[r.monthFormat?fM(i,{locale:r,format:r.monthFormat,generateConfig:o}):f[g]]),b=r.monthBeforeYear?[v,m]:[m,v];return Sr(_P,hl(hl({},t),{},{prefixCls:h,onSuperPrev:c,onPrev:a,onNext:l,onSuperNext:s}),{default:()=>[b]})}function RM(e){const t=DP(e),{prefixCls:n,panelName:o="date",keyboardConfig:r,active:i,operationRef:l,generateConfig:a,value:s,viewDate:c,onViewDateChange:u,onPanelChange:d,onSelect:p}=t,h=`${n}-${o}-panel`;l.value={onKeydown:e=>YP(e,fl({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,7*e),"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)},g=e=>{const t=a.addMonth(c,e);u(t),d(null,t)};return Sr("div",{class:Tl(h,{[`${h}-active`]:i})},[Sr(AM,hl(hl({},t),{},{prefixCls:n,value:s,viewDate:c,onPrevYear:()=>{f(-1)},onNextYear:()=>{f(1)},onPrevMonth:()=>{g(-1)},onNextMonth:()=>{g(1)},onMonthClick:()=>{d("month",c)},onYearClick:()=>{d("year",c)}}),null),Sr(EM,hl(hl({},t),{},{onSelect:e=>p(e,"mouse"),prefixCls:n,value:s,viewDate:c,rowCount:6}),null)])}EM.displayName="DateBody",EM.inheritAttrs=!1,EM.props=["prefixCls","generateConfig","value?","viewDate","locale","rowCount","onSelect","dateRender?","disabledDate?","prefixColumn?","rowClassName?"],AM.displayName="DateHeader",AM.inheritAttrs=!1,RM.displayName="DatePanel",RM.inheritAttrs=!1;const DM=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}("date","time");function jM(e){const t=DP(e),{prefixCls:n,operationRef:o,generateConfig:r,value:i,defaultValue:l,disabledTime:a,showTime:s,onSelect:c}=t,u=`${n}-datetime-panel`,d=Ot(null),p=Ot({}),h=Ot({}),f="object"==typeof s?fl({},s):{},g=e=>{h.value.onBlur&&h.value.onBlur(e),d.value=null};o.value={onKeydown:e=>{if(e.which===Tm.TAB){const t=function(e){const t=DM.indexOf(d.value)+e;return DM[t]||null}(e.shiftKey?-1:1);return d.value=t,t&&e.preventDefault(),!0}if(d.value){const t="date"===d.value?p:h;return t.value&&t.value.onKeydown&&t.value.onKeydown(e),!0}return!![Tm.LEFT,Tm.RIGHT,Tm.UP,Tm.DOWN].includes(e.which)&&(d.value="date",!0)},onBlur:g,onClose:g};const m=(e,t)=>{let n=e;"date"===t&&!i&&f.defaultValue?(n=r.setHour(n,r.getHour(f.defaultValue)),n=r.setMinute(n,r.getMinute(f.defaultValue)),n=r.setSecond(n,r.getSecond(f.defaultValue))):"time"===t&&!i&&l&&(n=r.setYear(n,r.getYear(l)),n=r.setMonth(n,r.getMonth(l)),n=r.setDate(n,r.getDate(l))),c&&c(n,"mouse")},v=a?a(i||null):{};return Sr("div",{class:Tl(u,{[`${u}-active`]:d.value})},[Sr(RM,hl(hl({},t),{},{operationRef:p,active:"date"===d.value,onSelect:e=>{m(HP(r,e,i||"object"!=typeof s?null:s.defaultValue),"date")}}),null),Sr(kM,hl(hl(hl(hl({},t),{},{format:void 0},f),v),{},{disabledTime:null,defaultValue:void 0,operationRef:h,active:"time"===d.value,onSelect:e=>{m(e,"time")}}),null)])}function BM(e){const t=DP(e),{prefixCls:n,generateConfig:o,locale:r,value:i}=t,l=`${n}-cell`,a=`${n}-week-panel-row`;return Sr(RM,hl(hl({},t),{},{panelName:"week",prefixColumn:e=>Sr("td",{key:"week",class:Tl(l,`${l}-week`)},[o.locale.getWeek(r.locale,e)]),rowClassName:e=>Tl(a,{[`${a}-selected`]:uM(o,r.locale,i,e)}),keyboardConfig:{onLeftRight:null}}),null)}function NM(e){const t=DP(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:i,onNextYear:l,onPrevYear:a,onYearClick:s}=t,{hideHeader:c}=NP();if(c.value)return null;const u=`${n}-header`;return Sr(_P,hl(hl({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:l}),{default:()=>[Sr("button",{type:"button",onClick:s,class:`${n}-year-btn`},[fM(i,{locale:r,format:r.yearFormat,generateConfig:o})])]})}function zM(e){const t=DP(e),{prefixCls:n,locale:o,value:r,viewDate:i,generateConfig:l,monthCellRender:a}=t,{rangedValue:s,hoverRangedValue:c}=TM(),u=PM({cellPrefixCls:`${n}-cell`,value:r,generateConfig:l,rangedValue:s.value,hoverRangedValue:c.value,isSameCell:(e,t)=>sM(l,e,t),isInView:()=>!0,offsetCell:(e,t)=>l.addMonth(e,t)}),d=o.shortMonths||(l.locale.getShortMonths?l.locale.getShortMonths(o.locale):[]),p=l.setMonth(i,0),h=a?e=>a({current:e,locale:o}):void 0;return Sr(WP,hl(hl({},t),{},{rowNum:4,colNum:3,baseDate:p,getCellNode:h,getCellText:e=>o.monthFormat?fM(e,{locale:o,format:o.monthFormat,generateConfig:l}):d[l.getMonth(e)],getCellClassName:u,getCellDate:l.addMonth,titleCell:e=>fM(e,{locale:o,format:"YYYY-MM",generateConfig:l})}),null)}function _M(e){const t=DP(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:i,value:l,viewDate:a,onPanelChange:s,onSelect:c}=t,u=`${n}-month-panel`;o.value={onKeydown:e=>YP(e,{onLeftRight:e=>{c(i.addMonth(l||a,e),"key")},onCtrlLeftRight:e=>{c(i.addYear(l||a,e),"key")},onUpDown:e=>{c(i.addMonth(l||a,3*e),"key")},onEnter:()=>{s("date",l||a)}})};const d=e=>{const t=i.addYear(a,e);r(t),s(null,t)};return Sr("div",{class:u},[Sr(NM,hl(hl({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",a)}}),null),Sr(zM,hl(hl({},t),{},{prefixCls:n,onSelect:e=>{c(e,"mouse"),s("date",e)}}),null)])}function LM(e){const t=DP(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:i,onNextYear:l,onPrevYear:a,onYearClick:s}=t,{hideHeader:c}=NP();if(c.value)return null;const u=`${n}-header`;return Sr(_P,hl(hl({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:l}),{default:()=>[Sr("button",{type:"button",onClick:s,class:`${n}-year-btn`},[fM(i,{locale:r,format:r.yearFormat,generateConfig:o})])]})}function QM(e){const t=DP(e),{prefixCls:n,locale:o,value:r,viewDate:i,generateConfig:l}=t,{rangedValue:a,hoverRangedValue:s}=TM(),c=PM({cellPrefixCls:`${n}-cell`,value:r,generateConfig:l,rangedValue:a.value,hoverRangedValue:s.value,isSameCell:(e,t)=>aM(l,e,t),isInView:()=>!0,offsetCell:(e,t)=>l.addMonth(e,3*t)}),u=l.setDate(l.setMonth(i,0),1);return Sr(WP,hl(hl({},t),{},{rowNum:1,colNum:4,baseDate:u,getCellText:e=>fM(e,{locale:o,format:o.quarterFormat||"[Q]Q",generateConfig:l}),getCellClassName:c,getCellDate:(e,t)=>l.addMonth(e,3*t),titleCell:e=>fM(e,{locale:o,format:"YYYY-[Q]Q",generateConfig:l})}),null)}function HM(e){const t=DP(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:i,value:l,viewDate:a,onPanelChange:s,onSelect:c}=t,u=`${n}-quarter-panel`;o.value={onKeydown:e=>YP(e,{onLeftRight:e=>{c(i.addMonth(l||a,3*e),"key")},onCtrlLeftRight:e=>{c(i.addYear(l||a,e),"key")},onUpDown:e=>{c(i.addYear(l||a,e),"key")}})};const d=e=>{const t=i.addYear(a,e);r(t),s(null,t)};return Sr("div",{class:u},[Sr(LM,hl(hl({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",a)}}),null),Sr(QM,hl(hl({},t),{},{prefixCls:n,onSelect:e=>{c(e,"mouse")}}),null)])}function FM(e){const t=DP(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecade:i,onNextDecade:l,onDecadeClick:a}=t,{hideHeader:s}=NP();if(s.value)return null;const c=`${n}-header`,u=o.getYear(r),d=Math.floor(u/VM)*VM,p=d+VM-1;return Sr(_P,hl(hl({},t),{},{prefixCls:c,onSuperPrev:i,onSuperNext:l}),{default:()=>[Sr("button",{type:"button",onClick:a,class:`${n}-decade-btn`},[d,kr("-"),p])]})}function WM(e){const t=DP(e),{prefixCls:n,value:o,viewDate:r,locale:i,generateConfig:l}=t,{rangedValue:a,hoverRangedValue:s}=TM(),c=`${n}-cell`,u=l.getYear(r),d=Math.floor(u/VM)*VM,p=d+VM-1,h=l.setYear(r,d-Math.ceil((12-VM)/2)),f=PM({cellPrefixCls:c,value:o,generateConfig:l,rangedValue:a.value,hoverRangedValue:s.value,isSameCell:(e,t)=>iM(l,e,t),isInView:e=>{const t=l.getYear(e);return d<=t&&t<=p},offsetCell:(e,t)=>l.addYear(e,t)});return Sr(WP,hl(hl({},t),{},{rowNum:4,colNum:3,baseDate:h,getCellText:l.getYear,getCellClassName:f,getCellDate:l.addYear,titleCell:e=>fM(e,{locale:i,format:"YYYY",generateConfig:l})}),null)}jM.displayName="DatetimePanel",jM.inheritAttrs=!1,BM.displayName="WeekPanel",BM.inheritAttrs=!1,NM.displayName="MonthHeader",NM.inheritAttrs=!1,zM.displayName="MonthBody",zM.inheritAttrs=!1,_M.displayName="MonthPanel",_M.inheritAttrs=!1,LM.displayName="QuarterHeader",LM.inheritAttrs=!1,QM.displayName="QuarterBody",QM.inheritAttrs=!1,HM.displayName="QuarterPanel",HM.inheritAttrs=!1,FM.displayName="YearHeader",FM.inheritAttrs=!1,WM.displayName="YearBody",WM.inheritAttrs=!1;const VM=10;function ZM(e){const t=DP(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:i,value:l,viewDate:a,sourceMode:s,onSelect:c,onPanelChange:u}=t,d=`${n}-year-panel`;o.value={onKeydown:e=>YP(e,{onLeftRight:e=>{c(i.addYear(l||a,e),"key")},onCtrlLeftRight:e=>{c(i.addYear(l||a,e*VM),"key")},onUpDown:e=>{c(i.addYear(l||a,3*e),"key")},onEnter:()=>{u("date"===s?"date":"month",l||a)}})};const p=e=>{const t=i.addYear(a,10*e);r(t),u(null,t)};return Sr("div",{class:d},[Sr(FM,hl(hl({},t),{},{prefixCls:n,onPrevDecade:()=>{p(-1)},onNextDecade:()=>{p(1)},onDecadeClick:()=>{u("decade",a)}}),null),Sr(WM,hl(hl({},t),{},{prefixCls:n,onSelect:e=>{u("date"===s?"date":"month",e),c(e,"mouse")}}),null)])}function XM(e,t,n){return n?Sr("div",{class:`${e}-footer-extra`},[n(t)]):null}function YM(e){let t,n,{prefixCls:o,components:r={},needConfirmButton:i,onNow:l,onOk:a,okDisabled:s,showNow:c,locale:u}=e;if(i){const e=r.button||"button";l&&!1!==c&&(t=Sr("li",{class:`${o}-now`},[Sr("a",{class:`${o}-now-btn`,onClick:l},[u.now])])),n=i&&Sr("li",{class:`${o}-ok`},[Sr(e,{disabled:s,onClick:e=>{e.stopPropagation(),a&&a()}},{default:()=>[u.ok]})])}return t||n?Sr("ul",{class:`${o}-ranges`},[t,n]):null}ZM.displayName="YearPanel",ZM.inheritAttrs=!1;const KM=Ln({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=Xr((()=>"date"===e.picker&&!!e.showTime||"time"===e.picker)),r=Xr((()=>24%e.hourStep==0)),i=Xr((()=>60%e.minuteStep==0)),l=Xr((()=>60%e.secondStep==0)),a=NP(),{operationRef:s,onSelect:c,hideRanges:u,defaultOpenValue:d}=a,{inRange:p,panelPosition:h,rangedValue:f,hoverRangedValue:g}=TM(),m=Ot({}),[v,b]=Qv(null,{value:Et(e,"value"),defaultValue:e.defaultValue,postState:t=>!t&&(null==d?void 0:d.value)&&"time"===e.picker?d.value:t}),[y,O]=Qv(null,{value:Et(e,"pickerValue"),defaultValue:e.defaultPickerValue||v.value,postState:t=>{const{generateConfig:n,showTime:o,defaultValue:r}=e,i=n.getNow();return t?!v.value&&e.showTime?HP(n,Array.isArray(t)?t[0]:t,"object"==typeof o?o.defaultValue||i:r||i):t:i}}),w=t=>{O(t),e.onPickerValueChange&&e.onPickerValueChange(t)},x=t=>{const n=JP[e.picker];return n?n(t):t},[$,S]=Qv((()=>"time"===e.picker?"time":x("date")),{value:Et(e,"mode")});wn((()=>e.picker),(()=>{S(e.picker)}));const C=Ot($.value),k=(t,n)=>{const{onPanelChange:o,generateConfig:r}=e,i=x(t||$.value);var l;l=$.value,C.value=l,S(i),o&&($.value!==i||dM(r,y.value,y.value))&&o(n,i)},P=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{picker:r,generateConfig:i,onSelect:l,onChange:a,disabledDate:s}=e;($.value===r||o)&&(b(t),l&&l(t),c&&c(t,n),!a||dM(i,t,v.value)||(null==s?void 0:s(t))||a(t))},M=e=>!(!m.value||!m.value.onKeydown)&&([Tm.LEFT,Tm.RIGHT,Tm.UP,Tm.DOWN,Tm.PAGE_UP,Tm.PAGE_DOWN,Tm.ENTER].includes(e.which)&&e.preventDefault(),m.value.onKeydown(e)),T=e=>{m.value&&m.value.onBlur&&m.value.onBlur(e)},I=()=>{const{generateConfig:t,hourStep:n,minuteStep:o,secondStep:a}=e,s=t.getNow(),c=function(e,t,n,o,r,i){const l=Math.floor(e/o)*o;if(l<e)return[l,60-r,60-i];const a=Math.floor(t/r)*r;return a<t?[l,a,60-i]:[l,a,Math.floor(n/i)*i]}(t.getHour(s),t.getMinute(s),t.getSecond(s),r.value?n:1,i.value?o:1,l.value?a:1),u=QP(t,s,c[0],c[1],c[2]);P(u,"submit")},E=Xr((()=>{const{prefixCls:t,direction:n}=e;return Tl(`${t}-panel`,{[`${t}-panel-has-range`]:f&&f.value&&f.value[0]&&f.value[1],[`${t}-panel-has-range-hover`]:g&&g.value&&g.value[0]&&g.value[1],[`${t}-panel-rtl`]:"rtl"===n})}));return BP(fl(fl({},a),{mode:$,hideHeader:Xr((()=>{var t;return void 0!==e.hideHeader?e.hideHeader:null===(t=a.hideHeader)||void 0===t?void 0:t.value})),hidePrevBtn:Xr((()=>p.value&&"right"===h.value)),hideNextBtn:Xr((()=>p.value&&"left"===h.value))})),wn((()=>e.value),(()=>{e.value&&O(e.value)})),()=>{const{prefixCls:t="ant-picker",locale:r,generateConfig:i,disabledDate:l,picker:a="date",tabindex:c=0,showNow:d,showTime:p,showToday:f,renderExtraFooter:g,onMousedown:b,onOk:O,components:x}=e;let S;s&&"right"!==h.value&&(s.value={onKeydown:M,onClose:()=>{m.value&&m.value.onClose&&m.value.onClose()}});const A=fl(fl(fl({},n),e),{operationRef:m,prefixCls:t,viewDate:y.value,value:v.value,onViewDateChange:w,sourceMode:C.value,onPanelChange:k,disabledDate:l});switch(delete A.onChange,delete A.onSelect,$.value){case"decade":S=Sr(oM,hl(hl({},A),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null);break;case"year":S=Sr(ZM,hl(hl({},A),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null);break;case"month":S=Sr(_M,hl(hl({},A),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null);break;case"quarter":S=Sr(HM,hl(hl({},A),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null);break;case"week":S=Sr(BM,hl(hl({},A),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null);break;case"time":delete A.showTime,S=Sr(kM,hl(hl(hl({},A),"object"==typeof p?p:null),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null);break;default:S=Sr(p?jM:RM,hl(hl({},A),{},{onSelect:(e,t)=>{w(e),P(e,t)}}),null)}let R,D,j;if((null==u?void 0:u.value)||(R=XM(t,$.value,g),D=YM({prefixCls:t,components:x,needConfirmButton:o.value,okDisabled:!v.value||l&&l(v.value),locale:r,showNow:d,onNow:o.value&&I,onOk:()=>{v.value&&(P(v.value,"submit",!0),O&&O(v.value))}})),f&&"date"===$.value&&"date"===a&&!p){const e=i.getNow(),n=`${t}-today-btn`,o=l&&l(e);j=Sr("a",{class:Tl(n,o&&`${n}-disabled`),"aria-disabled":o,onClick:()=>{o||P(e,"mouse",!0)}},[r.today])}return Sr("div",{tabindex:c,class:Tl(E.value,n.class),style:n.style,onKeydown:M,onBlur:T,onMousedown:b},[S,R||D||j?Sr("div",{class:`${t}-footer`},[R,D,j]):null])}}}),GM=e=>Sr(KM,e),UM={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 qM(e,t){let{slots:n}=t;const{prefixCls:o,popupStyle:r,visible:i,dropdownClassName:l,dropdownAlign:a,transitionName:s,getPopupContainer:c,range:u,popupPlacement:d,direction:p}=DP(e),h=`${o}-dropdown`;return Sr(Pm,{showAction:[],hideAction:[],popupPlacement:void 0!==d?d:"rtl"===p?"bottomRight":"bottomLeft",builtinPlacements:UM,prefixCls:h,popupTransitionName:s,popupAlign:a,popupVisible:i,popupClassName:Tl(l,{[`${h}-range`]:u,[`${h}-rtl`]:"rtl"===p}),popupStyle:r,getPopupContainer:c},{default:n.default,popup:n.popupElement})}const JM=Ln({name:"PresetPanel",props:{prefixCls:String,presets:{type:Array,default:()=>[]},onClick:Function,onHover:Function},setup:e=>()=>e.presets.length?Sr("div",{class:`${e.prefixCls}-presets`},[Sr("ul",null,[e.presets.map(((t,n)=>{let{label:o,value:r}=t;return Sr("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 eT(e){let{open:t,value:n,isClickOutside:o,triggerOpen:r,forwardKeydown:i,onKeydown:l,blurToCancel:a,onSubmit:s,onCancel:c,onFocus:u,onBlur:d}=e;const p=wt(!1),h=wt(!1),f=wt(!1),g=wt(!1),m=wt(!1),v=Xr((()=>({onMousedown:()=>{p.value=!0,r(!0)},onKeydown:e=>{if(l(e,(()=>{m.value=!0})),!m.value){switch(e.which){case Tm.ENTER:return t.value?!1!==s()&&(p.value=!0):r(!0),void e.preventDefault();case Tm.TAB:return void(p.value&&t.value&&!e.shiftKey?(p.value=!1,e.preventDefault()):!p.value&&t.value&&!i(e)&&e.shiftKey&&(p.value=!0,e.preventDefault()));case Tm.ESC:return p.value=!0,void c()}t.value||[Tm.SHIFT].includes(e.which)?p.value||i(e):r(!0)}},onFocus:e=>{p.value=!0,h.value=!0,u&&u(e)},onBlur:e=>{!f.value&&o(document.activeElement)?(a.value?setTimeout((()=>{let{activeElement:e}=document;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;o(e)&&c()}),0):t.value&&(r(!1),g.value&&s()),h.value=!1,d&&d(e)):f.value=!1}})));wn(t,(()=>{g.value=!1})),wn(n,(()=>{g.value=!0}));const b=wt();return Gn((()=>{var e;b.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?h.value&&!e||r(!1):(f.value=!0,wa((()=>{f.value=!1})))}},!UP&&"undefined"!=typeof window&&window.addEventListener&&(UP=e=>{[...qP].forEach((t=>{t(e)}))},window.addEventListener("mousedown",UP)),qP.add(e),()=>{qP.delete(e),0===qP.size&&(window.removeEventListener("mousedown",UP),UP=null)})})),Jn((()=>{b.value&&b.value()})),[v,{focused:h,typing:p}]}function tT(e){let{valueTexts:t,onTextChange:n}=e;const o=Ot("");function r(){o.value=t.value[0]}return wn((()=>[...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 nT(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const i=Mv((()=>{if(!e.value)return[[""],""];let t="";const i=[];for(let l=0;l<n.value.length;l+=1){const a=n.value[l],s=fM(e.value,{generateConfig:o.value,locale:r.value,format:a});i.push(s),0===l&&(t=s)}return[i,t]}),[e,n],((e,t)=>t[0]!==e[0]||!ck(t[1],e[1])));return[Xr((()=>i.value[0])),Xr((()=>i.value[1]))]}function oT(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const i=Ot(null);let l;function a(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];wa.cancel(l),t?i.value=e:l=wa((()=>{i.value=e}))}const[,s]=nT(i,{formatList:n,generateConfig:o,locale:r});function c(){a(null,arguments.length>0&&void 0!==arguments[0]&&arguments[0])}return wn(e,(()=>{c(!0)})),Jn((()=>{wa.cancel(l)})),[s,function(e){a(e)},c]}function rT(e,t){return Xr((()=>(null==e?void 0:e.value)?e.value:(null==t?void 0:t.value)?(As(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.keys(t.value).map((e=>{const n=t.value[e];return{label:e,value:"function"==typeof n?n():n}}))):[]))}const iT=Ln({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=Ot(null),i=rT(Xr((()=>e.presets))),l=Xr((()=>{var t;return null!==(t=e.picker)&&void 0!==t?t:"date"})),a=Xr((()=>"date"===l.value&&!!e.showTime||"time"===l.value)),s=Xr((()=>OM(KP(e.format,l.value,e.showTime,e.use12Hours)))),c=Ot(null),u=Ot(null),d=Ot(null),[p,h]=Qv(null,{value:Et(e,"value"),defaultValue:e.defaultValue}),f=Ot(p.value),g=e=>{f.value=e},m=Ot(null),[v,b]=Qv(!1,{value:Et(e,"open"),defaultValue:e.defaultOpen,postState:t=>!e.disabled&&t,onChange:t=>{e.onOpenChange&&e.onOpenChange(t),!t&&m.value&&m.value.onClose&&m.value.onClose()}}),[y,O]=nT(f,{formatList:s,generateConfig:Et(e,"generateConfig"),locale:Et(e,"locale")}),[w,x,$]=tT({valueTexts:y,onTextChange:t=>{const n=gM(t,{locale:e.locale,formatList:s.value,generateConfig:e.generateConfig});!n||e.disabledDate&&e.disabledDate(n)||g(n)}}),S=t=>{const{onChange:n,generateConfig:o,locale:r}=e;g(t),h(t),n&&!dM(o,p.value,t)&&n(t,t?fM(t,{generateConfig:o,locale:r,format:s.value[0]}):"")},C=t=>{e.disabled&&t||b(t)},k=function(){e.onMouseup&&e.onMouseup(...arguments),r.value&&(r.value.focus(),C(!0))},[P,{focused:M,typing:T}]=eT({blurToCancel:a,open:v,value:w,triggerOpen:C,forwardKeydown:e=>!!(v.value&&m.value&&m.value.onKeydown)&&m.value.onKeydown(e),isClickOutside:e=>!eM([c.value,u.value,d.value],e),onSubmit:()=>!(!f.value||e.disabledDate&&e.disabledDate(f.value)||(S(f.value),C(!1),$(),0)),onCancel:()=>{C(!1),g(p.value),$()},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)}});wn([v,y],(()=>{v.value||(g(p.value),y.value.length&&""!==y.value[0]?O.value!==w.value&&$():x(""))})),wn(l,(()=>{v.value||$()})),wn(p,(()=>{g(p.value)}));const[I,E,A]=oT(w,{formatList:s,generateConfig:Et(e,"generateConfig"),locale:Et(e,"locale")});return BP({operationRef:m,hideHeader:Xr((()=>"time"===l.value)),onSelect:(e,t)=>{("submit"===t||"key"!==t&&!a.value)&&(S(e),C(!1))},open:v,defaultOpenValue:Et(e,"defaultOpenValue"),onDateMouseenter:E,onDateMouseleave:A}),o({focus:()=>{r.value&&r.value.focus()},blur:()=>{r.value&&r.value.blur()}}),()=>{const{prefixCls:t="rc-picker",id:o,tabindex:l,dropdownClassName:a,dropdownAlign:h,popupStyle:m,transitionName:b,generateConfig:y,locale:O,inputReadOnly:$,allowClear:E,autofocus:R,picker:D="date",defaultOpenValue:j,suffixIcon:B,clearIcon:N,disabled:z,placeholder:_,getPopupContainer:L,panelRender:Q,onMousedown:H,onMouseenter:F,onMouseleave:W,onContextmenu:V,onClick:Z,onSelect:X,direction:Y,autocomplete:K="off"}=e,G=fl(fl(fl({},e),n),{class:Tl({[`${t}-panel-focused`]:!T.value}),style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null});let U=Sr("div",{class:`${t}-panel-layout`},[Sr(JM,{prefixCls:t,presets:i.value,onClick:e=>{S(e),C(!1)}},null),Sr(GM,hl(hl({},G),{},{generateConfig:y,value:f.value,locale:O,tabindex:-1,onSelect:e=>{null==X||X(e),g(e)},direction:Y,onPanelChange:(t,n)=>{const{onPanelChange:o}=e;A(!0),null==o||o(t,n)}}),null)]);Q&&(U=Q(U));const q=Sr("div",{class:`${t}-panel-container`,ref:c,onMousedown:e=>{e.preventDefault()}},[U]);let J,ee;B&&(J=Sr("span",{class:`${t}-suffix`},[B])),E&&p.value&&!z&&(ee=Sr("span",{onMousedown:e=>{e.preventDefault(),e.stopPropagation()},onMouseup:e=>{e.preventDefault(),e.stopPropagation(),S(null),C(!1)},class:`${t}-clear`,role:"button"},[N||Sr("span",{class:`${t}-clear-btn`},null)]));const te=fl(fl(fl(fl({id:o,tabindex:l,disabled:z,readonly:$||"function"==typeof s.value[0]||!T.value,value:I.value||w.value,onInput:e=>{x(e.target.value)},autofocus:R,placeholder:_,ref:r,title:w.value},P.value),{size:GP(D,s.value[0],y)}),wM(e)),{autocomplete:K}),ne=e.inputRender?e.inputRender(te):Sr("input",te,null),oe="rtl"===Y?"bottomRight":"bottomLeft";return Sr("div",{ref:d,class:Tl(t,n.class,{[`${t}-disabled`]:z,[`${t}-focused`]:M.value,[`${t}-rtl`]:"rtl"===Y}),style:n.style,onMousedown:H,onMouseup:k,onMouseenter:F,onMouseleave:W,onContextmenu:V,onClick:Z},[Sr("div",{class:Tl(`${t}-input`,{[`${t}-input-placeholder`]:!!I.value}),ref:u},[ne,J,ee]),Sr(qM,{visible:v.value,popupStyle:m,prefixCls:t,dropdownClassName:a,dropdownAlign:h,getPopupContainer:L,transitionName:b,popupPlacement:oe,direction:Y},{default:()=>[Sr("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>q})])}}});function lT(e,t,n,o){const r=hM(e,n,o,1);function i(n){return n(e,t)?"same":n(r,t)?"closing":"far"}switch(n){case"year":return i(((e,t)=>function(e,t,n){const o=rM(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 i(((e,t)=>iM(o,e,t)));default:return i(((e,t)=>sM(o,e,t)))}}function aT(e){let{values:t,picker:n,defaultDates:o,generateConfig:r}=e;const i=Ot([xM(o,0),xM(o,1)]),l=Ot(null),a=Xr((()=>xM(t.value,0))),s=Xr((()=>xM(t.value,1))),c=e=>i.value[e]?i.value[e]:xM(l.value,e)||function(e,t,n,o){const r=xM(e,0),i=xM(e,1);if(0===t)return r;if(r&&i)switch(lT(r,i,n,o)){case"same":case"closing":return r;default:return hM(i,n,o,-1)}return r}(t.value,e,n.value,r.value)||a.value||s.value||r.value.getNow(),u=Ot(null),d=Ot(null);return yn((()=>{u.value=c(0),d.value=c(1)})),[u,d,function(e,n){if(e){let o=$M(l.value,e,n);i.value=$M(i.value,null,n)||[null,null];const r=(n+1)%2;xM(t.value,r)||(o=$M(o,e,r)),l.value=o}else(a.value||s.value)&&(l.value=null)}]}function sT(e){return!!ee()&&(te(e),!0)}function cT(e){var t;const n="function"==typeof(o=e)?o():Ct(o);var o;return null!==(t=null==n?void 0:n.$el)&&void 0!==t?t:n}function uT(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=wt(),o=()=>n.value=Boolean(e());return o(),function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];jr()?Gn(e):t?e():Vt(e)}(o,t),n}var dT;const pT="undefined"!=typeof window;pT&&(null===(dT=null===window||void 0===window?void 0:window.navigator)||void 0===dT?void 0:dT.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const hT=pT?window:void 0;function fT(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{window:o=hT}=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);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(n,["window"]);let i;const l=uT((()=>o&&"ResizeObserver"in o)),a=()=>{i&&(i.disconnect(),i=void 0)},s=wn((()=>cT(e)),(e=>{a(),l.value&&o&&e&&(i=new ResizeObserver(t),i.observe(e,r))}),{immediate:!0,flush:"post"}),c=()=>{a(),s()};return sT(c),{isSupported:l,stop:c}}function gT(e){let t=arguments.length>1&&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=wt(t.width),i=wt(t.height);return fT(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),i.value=n.reduce(((e,t)=>{let{blockSize:n}=t;return e+n}),0)):(r.value=t.contentRect.width,i.value=t.contentRect.height)}),n),wn((()=>cT(e)),(e=>{r.value=e?t.width:0,i.value=e?t.height:0})),{width:r,height:i}}function mT(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function vT(e,t,n,o){return!!e||!(!o||!o[t])||!!n[(t+1)%2]}const bT=Ln({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(e,t){let{attrs:n,expose:o}=t;const r=Xr((()=>"date"===e.picker&&!!e.showTime||"time"===e.picker)),i=rT(Xr((()=>e.presets)),Xr((()=>e.ranges))),l=Ot({}),a=Ot(null),s=Ot(null),c=Ot(null),u=Ot(null),d=Ot(null),p=Ot(null),h=Ot(null),f=Ot(null),g=Xr((()=>OM(KP(e.format,e.picker,e.showTime,e.use12Hours)))),[m,v]=Qv(0,{value:Et(e,"activePickerIndex")}),b=Ot(null),y=Xr((()=>{const{disabled:t}=e;return Array.isArray(t)?t:[t||!1,t||!1]})),[O,w]=Qv(null,{value:Et(e,"value"),defaultValue:e.defaultValue,postState:t=>"time"!==e.picker||e.order?mT(t,e.generateConfig):t}),[x,$,S]=aT({values:O,picker:Et(e,"picker"),defaultDates:e.defaultPickerValue,generateConfig:Et(e,"generateConfig")}),[C,k]=Qv(O.value,{postState:t=>{let n=t;if(y.value[0]&&y.value[1])return n;for(let o=0;o<2;o+=1)!y.value[o]||xM(n,o)||xM(e.allowEmpty,o)||(n=$M(n,e.generateConfig.getNow(),o));return n}}),[P,M]=Qv([e.picker,e.picker],{value:Et(e,"mode")});wn((()=>e.picker),(()=>{M([e.picker,e.picker])}));const[T,I]=function(e,t){let{picker:n,locale:o,selectedValue:r,disabledDate:i,disabled:l,generateConfig:a}=e;const s=Xr((()=>xM(r.value,0))),c=Xr((()=>xM(r.value,1)));function u(e){return a.value.locale.getWeekFirstDate(o.value.locale,e)}function d(e){return 100*a.value.getYear(e)+a.value.getMonth(e)}function p(e){return 10*a.value.getYear(e)+lM(a.value,e)}return[e=>{var o;if(i&&(null===(o=null==i?void 0:i.value)||void 0===o?void 0:o.call(i,e)))return!0;if(l[1]&&c)return!cM(a.value,e,c.value)&&a.value.isAfter(e,c.value);if(t.value[1]&&c.value)switch(n.value){case"quarter":return p(e)>p(c.value);case"month":return d(e)>d(c.value);case"week":return u(e)>u(c.value);default:return!cM(a.value,e,c.value)&&a.value.isAfter(e,c.value)}return!1},e=>{var o;if(null===(o=i.value)||void 0===o?void 0:o.call(i,e))return!0;if(l[0]&&s)return!cM(a.value,e,c.value)&&a.value.isAfter(s.value,e);if(t.value[0]&&s.value)switch(n.value){case"quarter":return p(e)<p(s.value);case"month":return d(e)<d(s.value);case"week":return u(e)<u(s.value);default:return!cM(a.value,e,s.value)&&a.value.isAfter(s.value,e)}return!1}]}({picker:Et(e,"picker"),selectedValue:C,locale:Et(e,"locale"),disabled:y,disabledDate:Et(e,"disabledDate"),generateConfig:Et(e,"generateConfig")},l),[E,A]=Qv(!1,{value:Et(e,"open"),defaultValue:e.defaultOpen,postState:e=>!y.value[m.value]&&e,onChange:t=>{var n;null===(n=e.onOpenChange)||void 0===n||n.call(e,t),!t&&b.value&&b.value.onClose&&b.value.onClose()}}),R=Xr((()=>E.value&&0===m.value)),D=Xr((()=>E.value&&1===m.value)),j=Ot(0),B=Ot(0),N=Ot(0),{width:z}=gT(a);wn([E,z],(()=>{!E.value&&a.value&&(N.value=z.value)}));const{width:_}=gT(s),{width:L}=gT(f),{width:Q}=gT(c),{width:H}=gT(d);wn([m,E,_,L,Q,H,()=>e.direction],(()=>{B.value=0,m.value?c.value&&d.value&&(B.value=Q.value+H.value,_.value&&L.value&&B.value>_.value-L.value-("rtl"===e.direction||f.value.offsetLeft>B.value?0:f.value.offsetLeft)&&(j.value=B.value)):0===m.value&&(j.value=0)}),{immediate:!0});const F=Ot();function W(e,t){if(e)clearTimeout(F.value),l.value[t]=!0,v(t),A(e),E.value||S(null,t);else if(m.value===t){A(e);const t=l.value;F.value=setTimeout((()=>{t===l.value&&(l.value={})}))}}function V(e){W(!0,e),setTimeout((()=>{const t=[p,h][e];t.value&&t.value.focus()}),0)}function Z(t,n){let o=t,r=xM(o,0),i=xM(o,1);const{generateConfig:a,locale:s,picker:c,order:u,onCalendarChange:d,allowEmpty:p,onChange:h,showTime:f}=e;r&&i&&a.isAfter(r,i)&&("week"===c&&!uM(a,s.locale,r,i)||"quarter"===c&&!aM(a,r,i)||"week"!==c&&"quarter"!==c&&"time"!==c&&!(f?dM(a,r,i):cM(a,r,i))?(0===n?(o=[r,null],i=null):(r=null,o=[null,i]),l.value={[n]:!0}):"time"===c&&!1===u||(o=mT(o,a))),k(o);const v=o&&o[0]?fM(o[0],{generateConfig:a,locale:s,format:g.value[0]}):"",b=o&&o[1]?fM(o[1],{generateConfig:a,locale:s,format:g.value[0]}):"";d&&d(o,[v,b],{range:0===n?"start":"end"});const x=vT(r,0,y.value,p),$=vT(i,1,y.value,p);(null===o||x&&$)&&(w(o),!h||dM(a,xM(O.value,0),r)&&dM(a,xM(O.value,1),i)||h(o,[v,b]));let S=null;0!==n||y.value[1]?1!==n||y.value[0]||(S=0):S=1,null===S||S===m.value||l.value[S]&&xM(o,S)||!xM(o,n)?W(!1,n):V(S)}const X=e=>!!(E&&b.value&&b.value.onKeydown)&&b.value.onKeydown(e),Y={formatList:g,generateConfig:Et(e,"generateConfig"),locale:Et(e,"locale")},[K,G]=nT(Xr((()=>xM(C.value,0))),Y),[U,q]=nT(Xr((()=>xM(C.value,1))),Y),J=(t,n)=>{const o=gM(t,{locale:e.locale,formatList:g.value,generateConfig:e.generateConfig});o&&!(0===n?T:I)(o)&&(k($M(C.value,o,n)),S(o,n))},[ee,te,ne]=tT({valueTexts:K,onTextChange:e=>J(e,0)}),[oe,re,ie]=tT({valueTexts:U,onTextChange:e=>J(e,1)}),[le,ae]=Hv(null),[se,ce]=Hv(null),[ue,de,pe]=oT(ee,Y),[he,fe,ge]=oT(oe,Y),me=(t,n)=>({forwardKeydown:X,onBlur:t=>{var n;null===(n=e.onBlur)||void 0===n||n.call(e,t)},isClickOutside:e=>!eM([s.value,c.value,u.value,a.value],e),onFocus:n=>{var o;v(t),null===(o=e.onFocus)||void 0===o||o.call(e,n)},triggerOpen:e=>{W(e,t)},onSubmit:()=>{if(!C.value||e.disabledDate&&e.disabledDate(C.value[t]))return!1;Z(C.value,t),n()},onCancel:()=>{W(!1,t),k(O.value),n()}}),[ve,{focused:be,typing:ye}]=eT(fl(fl({},me(0,ne)),{blurToCancel:r,open:R,value:ee,onKeydown:(t,n)=>{var o;null===(o=e.onKeydown)||void 0===o||o.call(e,t,n)}})),[Oe,{focused:we,typing:xe}]=eT(fl(fl({},me(1,ie)),{blurToCancel:r,open:D,value:oe,onKeydown:(t,n)=>{var o;null===(o=e.onKeydown)||void 0===o||o.call(e,t,n)}})),$e=t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),E.value||p.value.contains(t.target)||h.value.contains(t.target)||(y.value[0]?y.value[1]||V(1):V(0))},Se=t=>{var n;null===(n=e.onMousedown)||void 0===n||n.call(e,t),!E.value||!be.value&&!we.value||p.value.contains(t.target)||h.value.contains(t.target)||t.preventDefault()},Ce=Xr((()=>{var t;return(null===(t=O.value)||void 0===t?void 0:t[0])?fM(O.value[0],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""})),ke=Xr((()=>{var t;return(null===(t=O.value)||void 0===t?void 0:t[1])?fM(O.value[1],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""}));wn([E,K,U],(()=>{E.value||(k(O.value),K.value.length&&""!==K.value[0]?G.value!==ee.value&&ne():te(""),U.value.length&&""!==U.value[0]?q.value!==oe.value&&ie():re(""))})),wn([Ce,ke],(()=>{k(O.value)})),o({focus:()=>{p.value&&p.value.focus()},blur:()=>{p.value&&p.value.blur(),h.value&&h.value.blur()}});const Pe=Xr((()=>E.value&&se.value&&se.value[0]&&se.value[1]&&e.generateConfig.isAfter(se.value[1],se.value[0])?se.value:null));function Me(){let t=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:i,direction:l,disabledTime:a,prefixCls:s,locale:c}=e;let u=r;if(r&&"object"==typeof r&&r.defaultValue){const e=r.defaultValue;u=fl(fl({},r),{defaultValue:xM(e,m.value)||void 0})}let d=null;return i&&(d=e=>{let{current:t,today:n}=e;return i({current:t,today:n,info:{range:m.value?"end":"start"}})}),Sr(IM,{value:{inRange:!0,panelPosition:t,rangedValue:le.value||C.value,hoverRangedValue:Pe.value}},{default:()=>[Sr(GM,hl(hl(hl({},e),n),{},{dateRender:d,showTime:u,mode:P.value[m.value],generateConfig:o,style:void 0,direction:l,disabledDate:0===m.value?T:I,disabledTime:e=>!!a&&a(e,0===m.value?"start":"end"),class:Tl({[`${s}-panel-focused`]:0===m.value?!ye.value:!xe.value}),value:xM(C.value,m.value),locale:c,tabIndex:-1,onPanelChange:(n,r)=>{var i,l,a;0===m.value&&pe(!0),1===m.value&&ge(!0),i=$M(P.value,r,m.value),l=$M(C.value,n,m.value),M(i),null===(a=e.onPanelChange)||void 0===a||a.call(e,l,i);let s=n;"right"===t&&P.value[m.value]===r&&(s=hM(s,r,o,-1)),S(s,m.value)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:0===m.value?xM(C.value,1):xM(C.value,0)}),null)]})}return BP({operationRef:b,hideHeader:Xr((()=>"time"===e.picker)),onDateMouseenter:e=>{ce($M(C.value,e,m.value)),0===m.value?de(e):fe(e)},onDateMouseleave:()=>{ce($M(C.value,null,m.value)),0===m.value?pe():ge()},hideRanges:Xr((()=>!0)),onSelect:(e,t)=>{const n=$M(C.value,e,m.value);"submit"===t||"key"!==t&&!r.value?(Z(n,m.value),0===m.value?pe():ge()):k(n)},open:E}),()=>{const{prefixCls:t="rc-picker",id:o,popupStyle:l,dropdownClassName:v,transitionName:b,dropdownAlign:w,getPopupContainer:k,generateConfig:M,locale:T,placeholder:I,autofocus:A,picker:R="date",showTime:D,separator:z="~",disabledDate:_,panelRender:L,allowClear:Q,suffixIcon:H,clearIcon:F,inputReadOnly:V,renderExtraFooter:X,onMouseenter:Y,onMouseleave:K,onMouseup:G,onOk:U,components:q,direction:J,autocomplete:ne="off"}=e,ie="rtl"===J?{right:`${B.value}px`}:{left:`${B.value}px`},le=Sr("div",{class:Tl(`${t}-range-wrapper`,`${t}-${R}-range-wrapper`),style:{minWidth:`${N.value}px`}},[Sr("div",{ref:f,class:`${t}-range-arrow`,style:ie},null),function(){let e;const n=XM(t,P.value[m.value],X),o=YM({prefixCls:t,components:q,needConfirmButton:r.value,okDisabled:!xM(C.value,m.value)||_&&_(C.value[m.value]),locale:T,onOk:()=>{xM(C.value,m.value)&&(Z(C.value,m.value),U&&U(C.value))}});if("time"===R||D)e=Me();else{const t=0===m.value?x.value:$.value,n=hM(t,R,M),o=P.value[m.value]===R,r=Me(!!o&&"left",{pickerValue:t,onPickerValueChange:e=>{S(e,m.value)}}),i=Me("right",{pickerValue:n,onPickerValueChange:e=>{S(hM(e,R,M,-1),m.value)}});e=Sr(lr,null,"rtl"===J?[i,o&&r]:[r,o&&i])}let l=Sr("div",{class:`${t}-panel-layout`},[Sr(JM,{prefixCls:t,presets:i.value,onClick:e=>{Z(e,null),W(!1,m.value)},onHover:e=>{ae(e)}},null),Sr("div",null,[Sr("div",{class:`${t}-panels`},[e]),(n||o)&&Sr("div",{class:`${t}-footer`},[n,o])])]);return L&&(l=L(l)),Sr("div",{class:`${t}-panel-container`,style:{marginLeft:`${j.value}px`},ref:s,onMousedown:e=>{e.preventDefault()}},[l])}()]);let se,ce;H&&(se=Sr("span",{class:`${t}-suffix`},[H])),Q&&(xM(O.value,0)&&!y.value[0]||xM(O.value,1)&&!y.value[1])&&(ce=Sr("span",{onMousedown:e=>{e.preventDefault(),e.stopPropagation()},onMouseup:e=>{e.preventDefault(),e.stopPropagation();let t=O.value;y.value[0]||(t=$M(t,null,0)),y.value[1]||(t=$M(t,null,1)),Z(t,null),W(!1,m.value)},class:`${t}-clear`},[F||Sr("span",{class:`${t}-clear-btn`},null)]));const de={size:GP(R,g.value[0],M)};let pe=0,fe=0;c.value&&u.value&&d.value&&(0===m.value?fe=c.value.offsetWidth:(pe=B.value,fe=u.value.offsetWidth));const ge="rtl"===J?{right:`${pe}px`}:{left:`${pe}px`};return Sr("div",hl({ref:a,class:Tl(t,`${t}-range`,n.class,{[`${t}-disabled`]:y.value[0]&&y.value[1],[`${t}-focused`]:0===m.value?be.value:we.value,[`${t}-rtl`]:"rtl"===J}),style:n.style,onClick:$e,onMouseenter:Y,onMouseleave:K,onMousedown:Se,onMouseup:G},wM(e)),[Sr("div",{class:Tl(`${t}-input`,{[`${t}-input-active`]:0===m.value,[`${t}-input-placeholder`]:!!ue.value}),ref:c},[Sr("input",hl(hl(hl({id:o,disabled:y.value[0],readonly:V||"function"==typeof g.value[0]||!ye.value,value:ue.value||ee.value,onInput:e=>{te(e.target.value)},autofocus:A,placeholder:xM(I,0)||"",ref:p},ve.value),de),{},{autocomplete:ne}),null)]),Sr("div",{class:`${t}-range-separator`,ref:d},[z]),Sr("div",{class:Tl(`${t}-input`,{[`${t}-input-active`]:1===m.value,[`${t}-input-placeholder`]:!!he.value}),ref:u},[Sr("input",hl(hl(hl({disabled:y.value[1],readonly:V||"function"==typeof g.value[0]||!xe.value,value:he.value||oe.value,onInput:e=>{re(e.target.value)},placeholder:xM(I,1)||"",ref:h},Oe.value),de),{},{autocomplete:ne}),null)]),Sr("div",{class:`${t}-active-bar`,style:fl(fl({},ge),{width:`${fe}px`,position:"absolute"})},null),se,ce,Sr(qM,{visible:E.value,popupStyle:l,prefixCls:t,dropdownClassName:v,dropdownAlign:w,getPopupContainer:k,transitionName:b,range:!0,direction:J},{default:()=>[Sr("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>le})])}}}),yT=bT,OT={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:xp.any,required:Boolean},wT=Ln({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:Jl(OT,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup(e,t){let{attrs:n,emit:o,expose:r}=t;const i=Ot(void 0===e.checked?e.defaultChecked:e.checked),l=Ot();wn((()=>e.checked),(()=>{i.value=e.checked})),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 a=Ot(),s=t=>{if(e.disabled)return;void 0===e.checked&&(i.value=t.target.checked),t.shiftKey=a.value;const n={target:fl(fl({},e),{checked:t.target.checked}),stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t};void 0!==e.checked&&(l.value.checked=!!e.checked),o("change",n),a.value=!1},c=e=>{o("click",e),a.value=e.shiftKey};return()=>{const{prefixCls:t,name:o,id:r,type:a,disabled:u,readonly:d,tabindex:p,autofocus:h,value:f,required:g}=e,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:v,onFocus:b,onBlur:y,onKeydown:O,onKeypress:w,onKeyup:x}=n,$=fl(fl({},m),n),S=Object.keys($).reduce(((e,t)=>((t.startsWith("data-")||t.startsWith("aria-")||"role"===t)&&(e[t]=$[t]),e)),{}),C=Tl(t,v,{[`${t}-checked`]:i.value,[`${t}-disabled`]:u}),k=fl(fl({name:o,id:r,type:a,readonly:d,disabled:u,tabindex:p,class:`${t}-input`,checked:!!i.value,autofocus:h,value:f},S),{onChange:s,onClick:c,onFocus:b,onBlur:y,onKeydown:O,onKeypress:w,onKeyup:x,required:g});return Sr("span",{class:C},[Sr("input",hl({ref:l},k),null),Sr("span",{class:`${t}-inner`},null)])}}}),xT=Symbol("radioGroupContextKey"),$T=Symbol("radioOptionTypeContextKey"),ST=new Xc("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),CT=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:fl(fl({},Yu(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"}})}},kT=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:o,radioSize:r,motionDurationSlow:i,motionDurationMid:l,motionEaseInOut:a,motionEaseInOutCirc:s,radioButtonBg:c,colorBorder:u,lineWidth:d,radioDotSize:p,colorBgContainerDisabled:h,colorTextDisabled:f,paddingXS:g,radioDotDisabledColor:m,lineType:v,radioDotDisabledSize:b,wireframe:y,colorWhite:O}=e,w=`${t}-inner`;return{[`${t}-wrapper`]:fl(fl({},Yu(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 ${v} ${o}`,borderRadius:"50%",visibility:"hidden",animationName:ST,animationDuration:i,animationTimingFunction:a,animationFillMode:"both",content:'""'},[t]:fl(fl({},Yu(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &,\n &:hover ${w}`]:{borderColor:o},[`${t}-input:focus-visible + ${w}`]:fl({},Uu(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:O,borderBlockStart:0,borderInlineStart:0,borderRadius:r,transform:"scale(0)",opacity:0,transition:`all ${i} ${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 ${l}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[w]:{borderColor:o,backgroundColor:y?c:o,"&::after":{transform:`scale(${p/r})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:h,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${b/r})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},PT=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:i,colorBorder:l,motionDurationSlow:a,motionDurationMid:s,radioButtonPaddingHorizontal:c,fontSize:u,radioButtonBg:d,fontSizeLG:p,controlHeightLG:h,controlHeightSM:f,paddingXS:g,borderRadius:m,borderRadiusSM:v,borderRadiusLG:b,radioCheckedColor:y,radioButtonCheckedBg:O,radioButtonHoverColor:w,radioButtonActiveColor:x,radioSolidCheckedColor:$,colorTextDisabled:S,colorBgContainerDisabled:C,radioDisabledButtonCheckedColor:k,radioDisabledButtonCheckedBg:P}=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 ${i} ${l}`,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:l,transition:`background-color ${a}`,content:'""'}},"&:first-child":{borderInlineStart:`${r}px ${i} ${l}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${o}-group-large &`]:{height:h,fontSize:p,lineHeight:h-2*r+"px","&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${o}-group-small &`]:{height:f,paddingInline:g-r,paddingBlock:0,lineHeight:f-2*r+"px","&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:y},"&:has(:focus-visible)":fl({},Uu(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:O,borderColor:y,"&::before":{backgroundColor:y},"&:first-child":{borderColor:y},"&:hover":{color:w,borderColor:w,"&::before":{backgroundColor:w}},"&:active":{color:x,borderColor:x,"&::before":{backgroundColor:x}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:$,background:y,borderColor:y,"&:hover":{color:$,background:w,borderColor:w},"&:active":{color:$,background:x,borderColor:x}},"&-disabled":{color:S,backgroundColor:C,borderColor:l,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:C,borderColor:l}},[`&-disabled${o}-button-wrapper-checked`]:{color:k,backgroundColor:P,borderColor:l,boxShadow:"none"}}}},MT=Ju("Radio",(e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:o,colorTextDisabled:r,colorBgContainer:i,fontSizeLG:l,controlOutline:a,colorPrimaryHover:s,colorPrimaryActive:c,colorText:u,colorPrimary:d,marginXS:p,controlOutlineWidth:h,colorTextLightSolid:f,wireframe:g}=e,m=`0 0 0 ${h}px ${a}`,v=l-8,b=nd(e,{radioFocusShadow:m,radioButtonFocusShadow:m,radioSize:l,radioDotSize:g?v:l-2*(4+n),radioDotDisabledSize:v,radioCheckedColor:d,radioDotDisabledColor:r,radioSolidCheckedColor:f,radioButtonBg:i,radioButtonCheckedBg:i,radioButtonColor:u,radioButtonHoverColor:s,radioButtonActiveColor:c,radioButtonPaddingHorizontal:t-n,radioDisabledButtonCheckedBg:o,radioDisabledButtonCheckedColor:r,radioWrapperMarginRight:p});return[CT(b),kT(b),PT(b)]})),TT=()=>({prefixCls:String,checked:Pa(),disabled:Pa(),isGroup:Pa(),value:xp.any,name:String,id:String,autofocus:Pa(),onChange:Ma(),onFocus:Ma(),onBlur:Ma(),onClick:Ma(),"onUpdate:checked":Ma(),"onUpdate:value":Ma()}),IT=Ln({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:TT(),setup(e,t){let{emit:n,expose:o,slots:r,attrs:i}=t;const l=gy(),a=vy.useInject(),s=Ao($T,void 0),c=Ao(xT,void 0),u=Ka(),d=Xr((()=>{var e;return null!==(e=g.value)&&void 0!==e?e:u.value})),p=Ot(),{prefixCls:h,direction:f,disabled:g}=Cd("radio",e),m=Xr((()=>"button"===(null==c?void 0:c.optionType.value)||"button"===s?`${h.value}-button`:h.value)),v=Ka(),[b,y]=MT(h);o({focus:()=>{p.value.focus()},blur:()=>{p.value.blur()}});const O=e=>{const t=e.target.checked;n("update:checked",t),n("update:value",t),n("change",e),l.onFieldChange()},w=e=>{n("change",e),c&&c.onChange&&c.onChange(e)};return()=>{var t;const n=c,{prefixCls:o,id:s=l.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);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","id"]),h=fl(fl({prefixCls:m.value,id:s},kd(u,["onUpdate:checked","onUpdate:value"])),{disabled:null!==(t=g.value)&&void 0!==t?t:v.value});n?(h.name=n.name.value,h.onChange=w,h.checked=e.value===n.value.value,h.disabled=d.value||n.disabled.value):h.onChange=O;const x=Tl({[`${m.value}-wrapper`]:!0,[`${m.value}-wrapper-checked`]:h.checked,[`${m.value}-wrapper-disabled`]:h.disabled,[`${m.value}-wrapper-rtl`]:"rtl"===f.value,[`${m.value}-wrapper-in-form-item`]:a.isFormItemInput},i.class,y.value);return b(Sr("label",hl(hl({},i),{},{class:x}),[Sr(wT,hl(hl({},h),{},{type:"radio",ref:p}),null),r.default&&Sr("span",null,[r.default()])]))}}}),ET=Ln({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:{prefixCls:String,value:xp.any,size:Ea(),options:Ia(),disabled:Pa(),name:String,buttonStyle:Ea("outline"),id:String,optionType:Ea("default"),onChange:Ma(),"onUpdate:value":Ma()},setup(e,t){let{slots:n,emit:o,attrs:r}=t;const i=gy(),{prefixCls:l,direction:a,size:s}=Cd("radio",e),[c,u]=MT(l),d=Ot(e.value),p=Ot(!1);return wn((()=>e.value),(e=>{d.value=e,p.value=!1})),(e=>{Eo(xT,e)})({onChange:t=>{const n=d.value,{value:r}=t.target;"value"in e||(d.value=r),p.value||r===n||(p.value=!0,o("update:value",r),o("change",t),i.onFieldChange()),Vt((()=>{p.value=!1}))},value:d,disabled:Xr((()=>e.disabled)),name:Xr((()=>e.name)),optionType:Xr((()=>e.optionType))}),()=>{var t;const{options:o,buttonStyle:p,id:h=i.id.value}=e,f=`${l.value}-group`,g=Tl(f,`${f}-${p}`,{[`${f}-${s.value}`]:s.value,[`${f}-rtl`]:"rtl"===a.value},r.class,u.value);let m=null;return m=o&&o.length>0?o.map((t=>{if("string"==typeof t||"number"==typeof t)return Sr(IT,{key:t,prefixCls:l.value,disabled:e.disabled,value:t,checked:d.value===t},{default:()=>[t]});const{value:n,disabled:o,label:r}=t;return Sr(IT,{key:`radio-group-value-options-${n}`,prefixCls:l.value,disabled:o||e.disabled,value:n,checked:d.value===n},{default:()=>[r]})})):null===(t=n.default)||void 0===t?void 0:t.call(n),c(Sr("div",hl(hl({},r),{},{class:g,id:h}),[m]))}}}),AT=Ln({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:TT(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Cd("radio",e);return(e=>{Eo($T,e)})("button"),()=>{var t;return Sr(IT,hl(hl(hl({},o),e),{},{prefixCls:r.value}),{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]})}}});function RT(e){const{fullscreen:t,validRange:n,generateConfig:o,locale:r,prefixCls:i,value:l,onChange:a,divRef:s}=e,c=o.getYear(l||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?"年":"",h=[];for(let f=u;f<d;f++)h.push({label:`${f}${p}`,value:f});return Sr(Wx,{size:t?void 0:"small",options:h,value:c,class:`${i}-year-select`,onChange:e=>{let t=o.setYear(l,e);if(n){const[e,r]=n,i=o.getYear(t),l=o.getMonth(t);i===o.getYear(r)&&l>o.getMonth(r)&&(t=o.setMonth(t,o.getMonth(r))),i===o.getYear(e)&&l<o.getMonth(e)&&(t=o.setMonth(t,o.getMonth(e)))}a(t)},getPopupContainer:()=>s.value},null)}function DT(e){const{prefixCls:t,fullscreen:n,validRange:o,value:r,generateConfig:i,locale:l,onChange:a,divRef:s}=e,c=i.getMonth(r||i.getNow());let u=0,d=11;if(o){const[e,t]=o,n=i.getYear(r);i.getYear(t)===n&&(d=i.getMonth(t)),i.getYear(e)===n&&(u=i.getMonth(e))}const p=l.shortMonths||i.locale.getShortMonths(l.locale),h=[];for(let f=u;f<=d;f+=1)h.push({label:p[f],value:f});return Sr(Wx,{size:n?void 0:"small",class:`${t}-month-select`,value:c,options:h,onChange:e=>{a(i.setMonth(r,e))},getPopupContainer:()=>s.value},null)}function jT(e){const{prefixCls:t,locale:n,mode:o,fullscreen:r,onModeChange:i}=e;return Sr(ET,{onChange:e=>{let{target:{value:t}}=e;i(t)},value:o,size:r?void 0:"small",class:`${t}-mode-switch`},{default:()=>[Sr(AT,{value:"month"},{default:()=>[n.month]}),Sr(AT,{value:"year"},{default:()=>[n.year]})]})}IT.Group=ET,IT.Button=AT,IT.install=function(e){return e.component(IT.name,IT),e.component(IT.Group.name,IT.Group),e.component(IT.Button.name,IT.Button),e},RT.inheritAttrs=!1,DT.inheritAttrs=!1,jT.inheritAttrs=!1;const BT=Ln({name:"CalendarHeader",inheritAttrs:!1,props:["mode","prefixCls","value","validRange","generateConfig","locale","mode","fullscreen"],setup(e,t){let{attrs:n}=t;const o=Ot(null),r=vy.useInject();return vy.useProvide(r,{isFormItemInput:!1}),()=>{const t=fl(fl({},e),n),{prefixCls:r,fullscreen:i,mode:l,onChange:a,onModeChange:s}=t,c=fl(fl({},t),{fullscreen:i,divRef:o});return Sr("div",{class:`${r}-header`,ref:o},[Sr(RT,hl(hl({},c),{},{onChange:e=>{a(e,"year")}}),null),"month"===l&&Sr(DT,hl(hl({},c),{},{onChange:e=>{a(e,"month")}}),null),Sr(jT,hl(hl({},c),{},{onModeChange:s}),null)])}}}),NT=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),zT=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),_T=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),LT=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":fl({},zT(nd(e,{inputBorderHoverColor:e.colorBorder})))}),QT=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:o,borderRadiusLG:r,inputPaddingHorizontalLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:o,borderRadius:r}},HT=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),FT=(e,t)=>{const{componentCls:n,colorError:o,colorWarning:r,colorErrorOutline:i,colorWarningOutline:l,colorErrorBorderHover:a,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:a},"&:focus, &-focused":fl({},_T(nd(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:i}))),[`${n}-prefix`]:{color:o}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":fl({},_T(nd(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:l}))),[`${n}-prefix`]:{color:r}}}},WT=e=>fl(fl({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}`},NT(e.colorTextPlaceholder)),{"&:hover":fl({},zT(e)),"&:focus, &-focused":fl({},_T(e)),"&-disabled, &[disabled]":fl({},LT(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":fl({},QT(e)),"&-sm":fl({},HT(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),VT=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`]:fl({},QT(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:fl({},HT(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`]:fl(fl({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`}}}},ZT=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o}=e,r=(n-2*o-16)/2;return{[t]:fl(fl(fl(fl({},Yu(e)),WT(e)),FT(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:r,paddingBottom:r}}})}},XT=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}}}},YT=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:i,colorIconHover:l,iconCls:a}=e;return{[`${t}-affix-wrapper`]:fl(fl(fl(fl(fl({},WT(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:fl(fl({},zT(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}}}),XT(e)),{[`${a}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:l}}}),FT(e,`${t}-affix-wrapper`))}},KT=e=>{const{componentCls:t,colorError:n,colorSuccess:o,borderRadiusLG:r,borderRadiusSM:i}=e;return{[`${t}-group`]:fl(fl(fl({},Yu(e)),VT(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:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon:last-child`]:{color:o,borderColor:o}}}})}},GT=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 UT(e){return nd(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 qT=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"}}}}},JT=Ju("Input",(e=>{const t=UT(e);return[ZT(t),qT(t),YT(t),KT(t),GT(t),jx(t)]})),eI=(e,t,n,o)=>{const{lineHeight:r}=e,i=Math.floor(n*r)+2,l=Math.max((t-i)/2,0);return{padding:`${l}px ${o}px ${Math.max(t-i-l,0)}px`}},tI=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:o,pickerPanelCellHeight:r,motionDurationSlow:i,borderRadiusSM:l,motionDurationMid:a,controlItemBgHover:s,lineWidth:c,lineType:u,colorPrimary:d,controlItemBgActive:p,colorTextLightSolid:h,controlHeightSM:f,pickerDateHoverRangeBorderColor:g,pickerCellBorderGap:m,pickerBasicCellHoverWithRangeColor:v,pickerPanelCellWidth:b,colorTextDisabled:y,colorBgContainerDisabled:O}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",transition:`all ${i}`,content:'""'},[o]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:`${r}px`,borderRadius:l,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:l,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:h,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 ${g}`,borderBottom:`${c}px dashed ${g}`,transform:"translateY(-50%)",transition:`all ${i}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:m},[`&-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:v},[`&-in-view${n}-range-start:not(${n}-range-start-single):not(${n}-range-end) ${o}`]:{borderStartStartRadius:l,borderEndStartRadius:l,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${n}-range-end:not(${n}-range-end-single):not(${n}-range-start) ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:l,borderEndEndRadius:l},[`&-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 ${g}`,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 ${g}`,borderStartEndRadius:c,borderEndEndRadius:c},"&-disabled":{color:y,pointerEvents:"none",[o]:{background:"transparent"},"&::before":{background:O}},[`&-disabled${n}-today ${o}::before`]:{borderColor:y}}},nI=e=>{const{componentCls:t,pickerCellInnerCls:n,pickerYearMonthCellWidth:o,pickerControlIconSize:r,pickerPanelCellWidth:i,paddingSM:l,paddingXS:a,paddingXXS:s,colorBgContainer:c,lineWidth:u,lineType:d,borderRadiusLG:p,colorPrimary:h,colorTextHeading:f,colorSplit:g,pickerControlIconBorderWidth:m,colorIcon:v,pickerTextHeight:b,motionDurationMid:y,colorIconHover:O,fontWeightStrong:w,pickerPanelCellHeight:x,pickerCellPaddingVertical:$,colorTextDisabled:S,colorText:C,fontSize:k,pickerBasicCellHoverWithRangeColor:P,motionDurationSlow:M,pickerPanelWithoutTimeCellHeight:T,pickerQuarterPanelContentHeight:I,colorLink:E,colorLinkActive:A,colorLinkHover:R,pickerDateHoverRangeBorderColor:D,borderRadiusSM:j,colorTextLightSolid:B,borderRadius:N,controlItemBgHover:z,pickerTimePanelColumnHeight:_,pickerTimePanelColumnWidth:L,pickerTimePanelCellHeight:Q,controlItemBgActive:H,marginXXS:F}=e,W=7*i+2*l+4,V=(W-2*a)/3-o-l;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:c,border:`${u}px ${d} ${g}`,borderRadius:p,outline:"none","&-focused":{borderColor:h},"&-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:W},"&-header":{display:"flex",padding:`0 ${a}px`,color:f,borderBottom:`${u}px ${d} ${g}`,"> *":{flex:"none"},button:{padding:0,color:v,lineHeight:`${b}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${y}`},"> button":{minWidth:"1.6em",fontSize:k,"&:hover":{color:O}},"&-view":{flex:"auto",fontWeight:w,lineHeight:`${b}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:a},"&:hover":{color:h}}}},"&-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:m,borderBlockEndWidth:0,borderInlineStartWidth:m,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:m,borderBlockEndWidth:0,borderInlineStartWidth:m,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:x,fontWeight:"normal"},th:{height:x+2*$,color:C,verticalAlign:"middle"}},"&-cell":fl({padding:`${$}px 0`,color:S,cursor:"pointer","&-in-view":{color:C}},tI(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:P,transition:`all ${M}`,content:'""'}},[`&-date-panel\n ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start\n ${n}::after`]:{insetInlineEnd:-(i-x)/2,insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}::after`]:{insetInlineEnd:0,insetInlineStart:-(i-x)/2},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:4*T},[n]:{padding:`0 ${a}px`}},"&-quarter-panel":{[`${t}-content`]:{height:I}},[`&-panel ${t}-footer`]:{borderTop:`${u}px ${d} ${g}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:b-2*u+"px",textAlign:"center","&-extra":{padding:`0 ${l}`,lineHeight:b-2*u+"px",textAlign:"start","&:not(:last-child)":{borderBottom:`${u}px ${d} ${g}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:E,"&:hover":{color:R},"&:active":{color:A},[`&${t}-today-btn-disabled`]:{color:S,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:j,borderBottomStartRadius:j,borderStartEndRadius:0,borderBottomEndRadius:0,[`${t}-panel-rtl &`]:{insetInlineEnd:V,borderInlineEnd:`${u}px dashed ${D}`,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:j,borderBottomEndRadius:j}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:V,borderInlineEnd:`${u}px dashed ${D}`,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:N,borderEndEndRadius:N,[`${t}-panel-rtl &`]:{insetInlineStart:V,borderInlineStart:`${u}px dashed ${D}`,borderStartStartRadius:N,borderEndStartRadius:N,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-week-panel":{[`${t}-body`]:{padding:`${a}px ${l}px`},[`${t}-cell`]:{[`&:hover ${n},\n &-selected ${n},\n ${n}`]:{background:"transparent !important"}},"&-row":{td:{transition:`background ${y}`,"&:first-child":{borderStartStartRadius:j,borderEndStartRadius:j},"&:last-child":{borderStartEndRadius:j,borderEndEndRadius:j}},"&:hover td":{background:z},"&-selected td,\n &-selected:hover td":{background:h,[`&${t}-cell-week`]:{color:new wu(B).setAlpha(.5).toHexString()},[`&${t}-cell-today ${n}::before`]:{borderColor:B},[n]:{color:B}}}},"&-date-panel":{[`${t}-body`]:{padding:`${a}px ${l}px`},[`${t}-content`]:{width:7*i,th:{width:i}}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${u}px ${d} ${g}`},[`${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:_},"&-column":{flex:"1 0 auto",width:L,margin:`${s}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${y}`,overflowX:"hidden","&::after":{display:"block",height:_-Q,content:'""'},"&:not(:first-child)":{borderInlineStart:`${u}px ${d} ${g}`},"&-active":{background:new wu(H).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:F,[`${t}-time-panel-cell-inner`]:{display:"block",width:L-2*F,height:Q,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(L-Q)/2,color:C,lineHeight:`${Q}px`,borderRadius:j,cursor:"pointer",transition:`background ${y}`,"&:hover":{background:z}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:H}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:S,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:_-Q+2*s}}}},oI=e=>{const{componentCls:t,colorBgContainer:n,colorError:o,colorErrorOutline:r,colorWarning:i,colorWarningOutline:l}=e;return{[t]:{[`&-status-error${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:o},"&-focused, &:focus":fl({},_T(nd(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:r}))),[`${t}-active-bar`]:{background:o}},[`&-status-warning${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:i},"&-focused, &:focus":fl({},_T(nd(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:l}))),[`${t}-active-bar`]:{background:i}}}}},rI=e=>{const{componentCls:t,antCls:n,boxShadowPopoverArrow:o,controlHeight:r,fontSize:i,inputPaddingHorizontal:l,colorBgContainer:a,lineWidth:s,lineType:c,colorBorder:u,borderRadius:d,motionDurationMid:p,colorBgContainerDisabled:h,colorTextDisabled:f,colorTextPlaceholder:g,controlHeightLG:m,fontSizeLG:v,controlHeightSM:b,inputPaddingHorizontalSM:y,paddingXS:O,marginXS:w,colorTextDescription:x,lineWidthBold:$,lineHeight:S,colorPrimary:C,motionDurationSlow:k,zIndexPopup:P,paddingXXS:M,paddingSM:T,pickerTextHeight:I,controlItemBgActive:E,colorPrimaryBorder:A,sizePopupArrow:R,borderRadiusXS:D,borderRadiusOuter:j,colorBgElevated:B,borderRadiusLG:N,boxShadowSecondary:z,borderRadiusSM:_,colorSplit:L,controlItemBgHover:Q,presetsWidth:H,presetsMaxWidth:F}=e;return[{[t]:fl(fl(fl({},Yu(e)),eI(e,r,i,l)),{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":fl({},zT(e)),"&-focused":fl({},_T(e)),[`&${t}-disabled`]:{background:h,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":fl(fl({},WT(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:g}}},"&-large":fl(fl({},eI(e,m,v,l)),{[`${t}-input > input`]:{fontSize:v}}),"&-small":fl({},eI(e,b,i,y)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:O/2,color:f,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:w}}},[`${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:x}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:v,color:f,fontSize:v,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:x},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-clear`]:{insetInlineEnd:l},"&:hover":{[`${t}-clear`]:{opacity:1}},[`${t}-active-bar`]:{bottom:-s,height:$,marginInlineStart:l,background:C,opacity:0,transition:`all ${k} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${O}px`,lineHeight:1},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:y},[`${t}-active-bar`]:{marginInlineStart:y}}},"&-dropdown":fl(fl(fl({},Yu(e)),nI(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:P,[`&${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:ox},[`&${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:tx},[`&${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:rx},[`&${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:nx},[`${t}-panel > ${t}-time-panel`]:{paddingTop:M},[`${t}-ranges`]:{marginBottom:0,padding:`${M}px ${T}px`,overflow:"hidden",lineHeight:I-2*s-O/2+"px",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${t}-preset > ${n}-tag-blue`]:{color:C,background:E,borderColor:A,cursor:"pointer"},[`${t}-ok`]:{marginInlineStart:"auto"}},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:fl({position:"absolute",zIndex:1,display:"none",marginInlineStart:1.5*l,transition:`left ${k} ease-out`},Vu(R,D,j,B,o)),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:B,borderRadius:N,boxShadow:z,transition:`margin ${k}`,[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:H,maxWidth:F,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:O,borderInlineEnd:`${s}px ${c} ${L}`,li:fl(fl({},Xu),{borderRadius:_,paddingInline:O,paddingBlock:(b-Math.round(i*S))/2,cursor:"pointer",transition:`all ${k}`,"+ li":{marginTop:w},"&:hover":{background:Q}})}},[`${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*R/3+"px 0","&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},ux(e,"slide-up"),ux(e,"slide-down"),ex(e,"move-up"),ex(e,"move-down")]},iI=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:o,colorPrimary:r,paddingXXS:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerTextHeight:n,pickerPanelCellWidth:1.5*o,pickerPanelCellHeight:o,pickerDateHoverRangeBorderColor:new wu(r).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new wu(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:i,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}},lI=Ju("DatePicker",(e=>{const t=nd(UT(e),iI(e));return[rI(t),oI(t),jx(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}))),aI=e=>{const{calendarCls:t,componentCls:n,calendarFullBg:o,calendarFullPanelBg:r,calendarItemActiveBg:i}=e;return{[t]:fl(fl(fl({},nI(e)),Yu(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:i}},"&-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"}}}}}}},sI=Ju("Calendar",(e=>{const t=`${e.componentCls}-calendar`,n=nd(UT(e),iI(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[aI(n)]}),{yearControlWidth:80,monthControlWidth:70,miniContentHeight:256}),cI=Sa(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 r=Ln({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,i){let{emit:l,slots:a,attrs:s}=i;const c=r,{prefixCls:u,direction:d}=Cd("picker",c),[p,h]=sI(u),f=Xr((()=>`${u.value}-calendar`)),g=t=>c.valueFormat?e.toString(t,c.valueFormat):t,m=Xr((()=>c.value?c.valueFormat?e.toDate(c.value,c.valueFormat):c.value:""===c.value?void 0:c.value)),v=Xr((()=>c.defaultValue?c.valueFormat?e.toDate(c.defaultValue,c.valueFormat):c.defaultValue:""===c.defaultValue?void 0:c.defaultValue)),[b,y]=Qv((()=>m.value||e.getNow()),{defaultValue:v.value,value:m}),[O,w]=Qv("month",{value:Et(c,"mode")}),x=Xr((()=>"year"===O.value?"month":"date")),$=Xr((()=>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))})),S=(e,t)=>{l("panelChange",g(e),t)},C=e=>{w(e),S(b.value,e)},k=(e,r)=>{(e=>{if(y(e),!o(e,b.value)){("date"===x.value&&!n(e,b.value)||"month"===x.value&&!t(e,b.value))&&S(e,O.value);const o=g(e);l("update:value",o),l("change",o)}})(e),l("select",g(e),{source:r})},P=Xr((()=>{const{locale:e}=c,t=fl(fl({},Ja),e);return t.lang=fl(fl({},t.lang),(e||{}).lang),t})),[M]=os("Calendar",P);return()=>{const t=e.getNow(),{dateFullCellRender:r=(null==a?void 0:a.dateFullCellRender),dateCellRender:i=(null==a?void 0:a.dateCellRender),monthFullCellRender:l=(null==a?void 0:a.monthFullCellRender),monthCellRender:g=(null==a?void 0:a.monthCellRender),headerRender:m=(null==a?void 0:a.headerRender),fullscreen:v=!0,validRange:y}=c;return p(Sr("div",hl(hl({},s),{},{class:Tl(f.value,{[`${f.value}-full`]:v,[`${f.value}-mini`]:!v,[`${f.value}-rtl`]:"rtl"===d.value},s.class,h.value)}),[m?m({value:b.value,type:O.value,onChange:e=>{k(e,"customize")},onTypeChange:C}):Sr(BT,{prefixCls:f.value,value:b.value,generateConfig:e,mode:O.value,fullscreen:v,locale:M.value.lang,validRange:y,onChange:k,onModeChange:C},null),Sr(GM,{value:b.value,prefixCls:u.value,locale:M.value.lang,generateConfig:e,dateRender:n=>{let{current:l}=n;return r?r({current:l}):Sr("div",{class:Tl(`${u.value}-cell-inner`,`${f.value}-date`,{[`${f.value}-date-today`]:o(t,l)})},[Sr("div",{class:`${f.value}-date-value`},[String(e.getDate(l)).padStart(2,"0")]),Sr("div",{class:`${f.value}-date-content`},[i&&i({current:l})])])},monthCellRender:o=>((o,r)=>{let{current:i}=o;if(l)return l({current:i});const a=r.shortMonths||e.locale.getShortMonths(r.locale);return Sr("div",{class:Tl(`${u.value}-cell-inner`,`${f.value}-date`,{[`${f.value}-date-today`]:n(t,i)})},[Sr("div",{class:`${f.value}-date-value`},[a[e.getMonth(i)]]),Sr("div",{class:`${f.value}-date-content`},[g&&g({current:i})])])})(o,M.value.lang),onSelect:e=>{k(e,x.value)},mode:x.value,picker:x.value,disabledDate:$.value,hideHeader:!0},null)]))}}});return r.install=function(e){return e.component(r.name,r),e},r}(RP));function uI(e){const t=wt([]),n=wt("function"==typeof e?e():e),o=function(e){const t=wt(),n=wt(!1);return Jn((()=>{n.value=!0,wa.cancel(t.value)})),function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];n.value||(wa.cancel(t.value),t.value=wa((()=>{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 dI=Ln({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=Ot();function i(t){var n;(null===(n=e.tab)||void 0===n?void 0:n.disabled)||e.onClick(t)}n({domRef:r});const l=Xr((()=>{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:h,removeAriaLabel:f,editable:g,onFocus:m}=e,v=`${n}-tab`,b=Sr("div",{key:c,ref:r,class:Tl(v,{[`${v}-with-remove`]:l.value,[`${v}-active`]:s,[`${v}-disabled`]:d}),style:o.style,onClick:i},[Sr("div",{role:"tab","aria-selected":s,id:a&&`${a}-tab-${c}`,class:`${v}-btn`,"aria-controls":a&&`${a}-panel-${c}`,"aria-disabled":d,tabindex:d?null:0,onClick:e=>{e.stopPropagation(),i(e)},onKeydown:e=>{[Tm.SPACE,Tm.ENTER].includes(e.which)&&(e.preventDefault(),i(e))},onFocus:m},["function"==typeof u?u():u]),l.value&&Sr("button",{type:"button","aria-label":f||"remove",tabindex:0,class:`${v}-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=g.removeIcon)||void 0===t?void 0:t.call(g))||"×"])]);return h?h(b):b}}}),pI={width:0,height:0,left:0,top:0},hI=Ln({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=Ot();return n({domRef:r}),()=>{const{prefixCls:t,editable:n,locale:i}=e;return n&&!1!==n.showAdd?Sr("button",{ref:r,type:"button",class:`${t}-nav-add`,style:o.style,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:e=>{n.onEdit("add",{event:e})}},[n.addIcon?n.addIcon():"+"]):null}}}),fI=Ln({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:{prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:xp.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:Ma()},emits:["tabClick"],slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const[r,i]=Hv(!1),[l,a]=Hv(null),s=t=>{const n=e.tabs.filter((e=>!e.disabled));let o=n.findIndex((e=>e.key===l.value))||0;const r=n.length;for(let e=0;e<r;e+=1){o=(o+t+r)%r;const e=n[o];if(!e.disabled)return void a(e.key)}},c=t=>{const{which:n}=t;if(r.value)switch(n){case Tm.UP:s(-1),t.preventDefault();break;case Tm.DOWN:s(1),t.preventDefault();break;case Tm.ESC:i(!1);break;case Tm.SPACE:case Tm.ENTER:null!==l.value&&e.onTabClick(l.value,t)}else[Tm.DOWN,Tm.SPACE,Tm.ENTER].includes(n)&&(i(!0),t.preventDefault())},u=Xr((()=>`${e.id}-more-popup`)),d=Xr((()=>null!==l.value?`${u.value}-${l.value}`:null));return Gn((()=>{wn(l,(()=>{const e=document.getElementById(d.value);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),{flush:"post",immediate:!0})})),wn(r,(()=>{r.value||a(null)})),ik({}),()=>{var t;const{prefixCls:a,id:s,tabs:p,locale:h,mobile:f,moreIcon:g=(null===(t=o.moreIcon)||void 0===t?void 0:t.call(o))||Sr(VC,null,null),moreTransitionName:m,editable:v,tabBarGutter:b,rtl:y,onTabClick:O,popupClassName:w}=e;if(!p.length)return null;const x=`${a}-dropdown`,$=null==h?void 0:h.dropdownAriaLabel,S={[y?"marginRight":"marginLeft"]:b};p.length||(S.visibility="hidden",S.order=1);const C=Tl({[`${x}-rtl`]:y,[`${w}`]:!0}),k=f?null:Sr(XS,{prefixCls:x,trigger:["hover"],visible:r.value,transitionName:m,onVisibleChange:i,overlayClassName:C,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>Sr(rP,{onClick:e=>{let{key:t,domEvent:n}=e;O(t,n),i(!1)},id:u.value,tabindex:-1,role:"listbox","aria-activedescendant":d.value,selectedKeys:[l.value],"aria-label":void 0!==$?$:"expanded dropdown"},{default:()=>[p.map((t=>{var n,o;const r=v&&!1!==t.closable&&!t.disabled;return Sr(Ik,{key:t.key,id:`${u.value}-${t.key}`,role:"option","aria-controls":s&&`${s}-panel-${t.key}`,disabled:t.disabled},{default:()=>[Sr("span",null,["function"==typeof t.tab?t.tab():t.tab]),r&&Sr("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${x}-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=v.removeIcon)||void 0===o?void 0:o.call(v))||"×"])]})}))]}),default:()=>Sr("button",{type:"button",class:`${a}-nav-more`,style:S,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":u.value,id:`${s}-more`,"aria-expanded":r.value,onKeydown:c},[g])});return Sr("div",{class:Tl(`${a}-nav-operations`,n.class),style:n.style},[k,Sr(hI,{prefixCls:a,locale:h,editable:v},null)])}}}),gI=Symbol("tabsContextKey"),mI=()=>Ao(gI,{tabs:Ot([]),prefixCls:Ot()}),vI=Math.pow(.995,20);function bI(e,t){const n=Ot(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 yI=()=>{const e=Ot(new Map);return Un((()=>{e.value=new Map})),[t=>n=>{e.value.set(t,n)},e]},OI={width:0,height:0,left:0,top:0,right:0},wI=Ln({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:{id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:ka(),editable:ka(),moreIcon:xp.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:ka(),popupClassName:String,getPopupContainer:Ma(),onTabClick:{type:Function},onTabScroll:{type:Function}},slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:n,slots:o}=t;const{tabs:r,prefixCls:i}=mI(),l=wt(),a=wt(),s=wt(),c=wt(),[u,d]=yI(),p=Xr((()=>"top"===e.tabPosition||"bottom"===e.tabPosition)),[h,f]=bI(0,((t,n)=>{p.value&&e.onTabScroll&&e.onTabScroll({direction:t>n?"left":"right"})})),[g,m]=bI(0,((t,n)=>{!p.value&&e.onTabScroll&&e.onTabScroll({direction:t>n?"top":"bottom"})})),[v,b]=Hv(0),[y,O]=Hv(0),[w,x]=Hv(null),[$,S]=Hv(null),[C,k]=Hv(0),[P,M]=Hv(0),[T,I]=uI(new Map),E=function(e,t){const n=Ot(new Map);return yn((()=>{var o,r;const i=new Map,l=e.value,a=t.value.get(null===(o=l[0])||void 0===o?void 0:o.key)||pI,s=a.left+a.width;for(let e=0;e<l.length;e+=1){const{key:n}=l[e];let o=t.value.get(n);o||(o=t.value.get(null===(r=l[e-1])||void 0===r?void 0:r.key)||pI);const a=i.get(n)||fl({},o);a.right=s-a.left-a.width,i.set(n,a)}n.value=new Map(i)})),n}(r,T),A=Xr((()=>`${i.value}-nav-operations-hidden`)),R=wt(0),D=wt(0);yn((()=>{p.value?e.rtl?(R.value=0,D.value=Math.max(0,v.value-w.value)):(R.value=Math.min(0,w.value-v.value),D.value=0):(R.value=Math.min(0,$.value-y.value),D.value=0)}));const j=e=>e<R.value?R.value:e>D.value?D.value:e,B=wt(),[N,z]=Hv(),_=()=>{z(Date.now())},L=()=>{clearTimeout(B.value)},Q=(e,t)=>{e((e=>j(e+t)))};!function(e,t){const[n,o]=Hv(),[r,i]=Hv(0),[l,a]=Hv(0),[s,c]=Hv(),u=Ot(),d=Ot(),p=Ot({onTouchStart:function(e){const{screenX:t,screenY:n}=e.touches[0];o({x:t,y:n}),clearInterval(u.value)},onTouchMove:function(e){if(!n.value)return;e.preventDefault();const{screenX:l,screenY:s}=e.touches[0],u=l-n.value.x,d=s-n.value.y;t(u,d),o({x:l,y:s});const p=Date.now();a(p-r.value),i(p),c({x:u,y:d})},onTouchEnd:function(){if(!n.value)return;const e=s.value;if(o(null),c(null),e){const n=e.x/l.value,o=e.y/l.value,r=Math.abs(n),i=Math.abs(o);if(Math.max(r,i)<.1)return;let a=n,s=o;u.value=setInterval((()=>{Math.abs(a)<.01&&Math.abs(s)<.01?clearInterval(u.value):(a*=vI,s*=vI,t(20*a,20*s))}),20)}},onWheel:function(e){const{deltaX:n,deltaY:o}=e;let r=0;const i=Math.abs(n),l=Math.abs(o);i===l?r="x"===d.value?n:o:i>l?(r=n,d.value="x"):(r=o,d.value="y"),t(-r,-r)&&e.preventDefault()}});function h(e){p.value.onTouchStart(e)}function f(e){p.value.onTouchMove(e)}function g(e){p.value.onTouchEnd(e)}function m(e){p.value.onWheel(e)}Gn((()=>{var t,n;document.addEventListener("touchmove",f,{passive:!1}),document.addEventListener("touchend",g,{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",m,{passive:!1})})),Jn((()=>{document.removeEventListener("touchmove",f),document.removeEventListener("touchend",g)}))}(l,((e,t)=>{if(p.value){if(w.value>=v.value)return!1;Q(f,e)}else{if($.value>=y.value)return!1;Q(m,t)}return L(),_(),!0})),wn(N,(()=>{L(),N.value&&(B.value=setTimeout((()=>{z(0)}),100))}));const H=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.activeKey;const n=E.value.get(t)||{width:0,height:0,left:0,right:0,top:0};if(p.value){let t=h.value;e.rtl?n.right<h.value?t=n.right:n.right+n.width>h.value+w.value&&(t=n.right+n.width-w.value):n.left<-h.value?t=-n.left:n.left+n.width>-h.value+w.value&&(t=-(n.left+n.width-w.value)),m(0),f(j(t))}else{let e=g.value;n.top<-g.value?e=-n.top:n.top+n.height>-g.value+$.value&&(e=-(n.top+n.height-$.value)),f(0),m(j(e))}},F=wt(0),W=wt(0);yn((()=>{let t,n,o,i,l,a;const s=E.value;["top","bottom"].includes(e.tabPosition)?(t="width",i=w.value,l=v.value,a=C.value,n=e.rtl?"right":"left",o=Math.abs(h.value)):(t="height",i=$.value,l=v.value,a=P.value,n="top",o=-g.value);let c=i;l+a>i&&l<i&&(c=i-a);const u=r.value;if(!u.length)return[F.value,W.value]=[0,0];const d=u.length;let p=d;for(let e=0;e<d;e+=1){const r=s.get(u[e].key)||OI;if(r[n]+r[t]>o+c){p=e-1;break}}let f=0;for(let e=d-1;e>=0;e-=1)if((s.get(u[e].key)||OI)[n]<o){f=e+1;break}return[F.value,W.value]=[f,p]}));const V=()=>{var e,t,n,o,i;const s=(null===(e=l.value)||void 0===e?void 0:e.offsetWidth)||0,u=(null===(t=l.value)||void 0===t?void 0:t.offsetHeight)||0,p=(null===(n=c.value)||void 0===n?void 0:n.$el)||{},h=p.offsetWidth||0,f=p.offsetHeight||0;x(s),S(u),k(h),M(f);const g=((null===(o=a.value)||void 0===o?void 0:o.offsetWidth)||0)-h,m=((null===(i=a.value)||void 0===i?void 0:i.offsetHeight)||0)-f;b(g),O(m),I((()=>{const e=new Map;return r.value.forEach((t=>{let{key:n}=t;const o=d.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}))},Z=Xr((()=>[...r.value.slice(0,F.value),...r.value.slice(W.value+1)])),[X,Y]=Hv(),K=Xr((()=>E.value.get(e.activeKey))),G=wt(),U=()=>{wa.cancel(G.value)};wn([K,p,()=>e.rtl],(()=>{const t={};K.value&&(p.value?(e.rtl?t.right=Pl(K.value.right):t.left=Pl(K.value.left),t.width=Pl(K.value.width)):(t.top=Pl(K.value.top),t.height=Pl(K.value.height))),U(),G.value=wa((()=>{Y(t)}))})),wn([()=>e.activeKey,K,E,p],(()=>{H()}),{flush:"post"}),wn([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>r.value],(()=>{V()}),{flush:"post"});const q=e=>{let{position:t,prefixCls:n,extra:o}=e;if(!o)return null;const r=null==o?void 0:o({position:t});return r?Sr("div",{class:`${n}-extra-content`},[r]):null};return Jn((()=>{L(),U()})),()=>{const{id:t,animated:d,activeKey:f,rtl:m,editable:b,locale:O,tabPosition:x,tabBarGutter:S,onTabClick:C}=e,{class:k,style:P}=n,M=i.value,T=!!Z.value.length,I=`${M}-nav-wrap`;let E,R,D,j;p.value?m?(R=h.value>0,E=h.value+w.value<v.value):(E=h.value<0,R=-h.value+w.value<v.value):(D=g.value<0,j=-g.value+$.value<y.value);const B={};"top"===x||"bottom"===x?B[m?"marginRight":"marginLeft"]="number"==typeof S?`${S}px`:S:B.marginTop="number"==typeof S?`${S}px`:S;const z=r.value.map(((e,n)=>{const{key:r}=e;return Sr(dI,{id:t,prefixCls:M,key:r,tab:e,style:0===n?void 0:B,closable:e.closable,editable:b,active:r===f,removeAriaLabel:null==O?void 0:O.removeAriaLabel,ref:u(r),onClick:e=>{C(r,e)},onFocus:()=>{H(r),_(),l.value&&(m||(l.value.scrollLeft=0),l.value.scrollTop=0)}},o)}));return Sr("div",{role:"tablist",class:Tl(`${M}-nav`,k),style:P,onKeydown:()=>{_()}},[Sr(q,{position:"left",prefixCls:M,extra:o.leftExtra},null),Sr(ga,{onResize:V},{default:()=>[Sr("div",{class:Tl(I,{[`${I}-ping-left`]:E,[`${I}-ping-right`]:R,[`${I}-ping-top`]:D,[`${I}-ping-bottom`]:j}),ref:l},[Sr(ga,{onResize:V},{default:()=>[Sr("div",{ref:a,class:`${M}-nav-list`,style:{transform:`translate(${h.value}px, ${g.value}px)`,transition:N.value?"none":void 0}},[z,Sr(hI,{ref:c,prefixCls:M,locale:O,editable:b,style:fl(fl({},0===z.length?void 0:B),{visibility:T?"hidden":null})},null),Sr("div",{class:Tl(`${M}-ink-bar`,{[`${M}-ink-bar-animated`]:d.inkBar}),style:X.value},null)])]})])]}),Sr(fI,hl(hl({},e),{},{removeAriaLabel:null==O?void 0:O.removeAriaLabel,ref:s,prefixCls:M,tabs:Z.value,class:!T&&A.value}),Rw(o,["moreIcon"])),Sr(q,{position:"right",prefixCls:M,extra:o.rightExtra},null),Sr(q,{position:"right",prefixCls:M,extra:o.tabBarExtraContent},null)])}}}),xI=Ln({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}=mI();return()=>{const{id:o,activeKey:r,animated:i,tabPosition:l,rtl:a,destroyInactiveTabPane:s}=e,c=i.tabPane,u=n.value,d=t.value.findIndex((e=>e.key===r));return Sr("div",{class:`${u}-content-holder`},[Sr("div",{class:[`${u}-content`,`${u}-content-${l}`,{[`${u}-content-animated`]:c}],style:d&&c?{[a?"marginRight":"marginLeft"]:`-${d}00%`}:null},[t.value.map((e=>Zh(e.node,{key:e.key,prefixCls:u,tabKey:e.key,id:o,animated:c,active:e.key===r,destroyInactiveTabPane:s})))])])}}}),$I={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 SI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){CI(e,t,n[t])}))}return e}function CI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kI=function(e,t){var n=SI({},e,t.attrs);return Sr(Rb,SI({},n,{icon:$I}),null)};kI.displayName="PlusOutlined",kI.inheritAttrs=!1;const PI=kI,MI=e=>{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}`}}}}},[ux(e,"slide-up"),ux(e,"slide-down")]]},TI=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:o,tabsCardGutter:r,colorSplit:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${e.lineWidth}px ${e.lineType} ${i}`,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}}}}}}},II=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:fl(fl({},Yu(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":fl(fl({},Xu),{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"}}})}})}},EI=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}}}}}},AI=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`}}}}}},RI=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:o,iconCls:r,tabsHorizontalGutter:i}=e,l=`${t}-tab`;return{[l]:{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":fl({"&:focus:not(:focus-visible), &:active":{color:n}},qu(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},[`&${l}-active ${l}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${r}`]:{margin:0},[r]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${i}px`}}}},DI=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"}}}}},jI=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:o,tabsCardGutter:r,tabsHoverColor:i,tabsActiveColor:l,colorSplit:a}=e;return{[t]:fl(fl(fl(fl({},Yu(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`]:fl({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:i},"&:active, &:focus:not(:focus-visible)":{color:l}},qu(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),RI(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"}}}}}},BI=Ju("Tabs",(e=>{const t=e.controlHeightLG,n=nd(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[AI(n),DI(n),EI(n),II(n),TI(n),jI(n),MI(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50})));let NI=0;const zI=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:Ma(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:Ea(),animated:Aa([Boolean,Object]),renderTabBar:Ma(),tabBarGutter:{type:Number},tabBarStyle:ka(),tabPosition:Ea(),destroyInactiveTabPane:Pa(),hideAdd:Boolean,type:Ea(),size:Ea(),centered:Boolean,onEdit:Ma(),onChange:Ma(),onTabClick:Ma(),onTabScroll:Ma(),"onUpdate:activeKey":Ma(),locale:ka(),onPrevClick:Ma(),onNextClick:Ma(),tabBarExtraContent:xp.any}),_I=Ln({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:fl(fl({},Jl(zI(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:Ia()}),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;Sp(!(void 0!==e.onPrevClick||void 0!==e.onNextClick),"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),Sp(!(void 0!==e.tabBarExtraContent),"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),Sp(!(void 0!==o.tabBarExtraContent),"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:r,direction:i,size:l,rootPrefixCls:a,getPopupContainer:s}=Cd("tabs",e),[c,u]=BI(r),d=Xr((()=>"rtl"===i.value)),p=Xr((()=>{const{animated:t,tabPosition:n}=e;return!1===t||["left","right"].includes(n)?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:fl({inkBar:!0,tabPane:!1},"object"==typeof t?t:{})})),[h,f]=Hv(!1);Gn((()=>{f(dv())}));const[g,m]=Qv((()=>{var t;return null===(t=e.tabs[0])||void 0===t?void 0:t.key}),{value:Xr((()=>e.activeKey)),defaultValue:e.defaultActiveKey}),[v,b]=Hv((()=>e.tabs.findIndex((e=>e.key===g.value))));yn((()=>{var t;let n=e.tabs.findIndex((e=>e.key===g.value));-1===n&&(n=Math.max(0,Math.min(v.value,e.tabs.length-1)),m(null===(t=e.tabs[n])||void 0===t?void 0:t.key)),b(n)}));const[y,O]=Qv(null,{value:Xr((()=>e.id))}),w=Xr((()=>h.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition));Gn((()=>{e.id||(O(`rc-tabs-${NI}`),NI+=1)}));const x=(t,n)=>{var o,r;null===(o=e.onTabClick)||void 0===o||o.call(e,t,n);const i=t!==g.value;m(t),i&&(null===(r=e.onChange)||void 0===r||r.call(e,t))};return(e=>{Eo(gI,e)})({tabs:Xr((()=>e.tabs)),prefixCls:r}),()=>{const{id:t,type:i,tabBarGutter:f,tabBarStyle:m,locale:v,destroyInactiveTabPane:b,renderTabBar:O=o.renderTabBar,onTabScroll:$,hideAdd:S,centered:C}=e,k={id:y.value,activeKey:g.value,animated:p.value,tabPosition:w.value,rtl:d.value,mobile:h.value};let P,M;"editable-card"===i&&(P={onEdit:(t,n)=>{let{key:o,event:r}=n;var i;null===(i=e.onEdit)||void 0===i||i.call(e,"add"===t?r:o,t)},removeIcon:()=>Sr(qb,null,null),addIcon:o.addIcon?o.addIcon:()=>Sr(PI,null,null),showAdd:!0!==S});const T=fl(fl({},k),{moreTransitionName:`${a.value}-slide-up`,editable:P,locale:v,tabBarGutter:f,onTabClick:x,onTabScroll:$,style:m,getPopupContainer:s.value,popupClassName:Tl(e.popupClassName,u.value)});M=O?O(fl(fl({},T),{DefaultTabBar:wI})):Sr(wI,T,Rw(o,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const I=r.value;return c(Sr("div",hl(hl({},n),{},{id:t,class:Tl(I,`${I}-${w.value}`,{[u.value]:!0,[`${I}-${l.value}`]:l.value,[`${I}-card`]:["card","editable-card"].includes(i),[`${I}-editable-card`]:"editable-card"===i,[`${I}-centered`]:C,[`${I}-mobile`]:h.value,[`${I}-editable`]:"editable-card"===i,[`${I}-rtl`]:d.value},n.class)}),[M,Sr(xI,hl(hl({destroyInactiveTabPane:b},k),{},{animated:p.value}),null)]))}}}),LI=Ln({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:Jl(zI(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=e=>{r("update:activeKey",e),r("change",e)};return()=>{var t;const r=oa(null===(t=o.default)||void 0===t?void 0:t.call(o)).map((e=>{if(ha(e)){const t=fl({},e.props||{});for(const[e,d]of Object.entries(t))delete t[e],t[wl(e)]=d;const n=e.children||{},o=void 0!==e.key?e.key:void 0,{tab:r=n.tab,disabled:i,forceRender:l,closable:a,animated:s,active:c,destroyInactiveTabPane:u}=t;return fl(fl({key:o},t),{node:e,closeIcon:n.closeIcon,tab:r,disabled:""===i||i,forceRender:""===l||l,closable:""===a||a,animated:""===s||s,active:""===c||c,destroyInactiveTabPane:""===u||u})}return null})).filter((e=>e));return Sr(_I,hl(hl(hl({},kd(e,["onUpdate:activeKey"])),n),{},{onChange:i,tabs:r}),o)}}}),QI=Ln({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:{tab:xp.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=Ot(e.forceRender);wn([()=>e.active,()=>e.destroyInactiveTabPane],(()=>{e.active?r.value=!0:e.destroyInactiveTabPane&&(r.value=!1)}),{immediate:!0});const i=Xr((()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"}));return()=>{var t;const{prefixCls:l,forceRender:a,id:s,active:c,tabKey:u}=e;return Sr("div",{id:s&&`${s}-panel-${u}`,role:"tabpanel",tabindex:c?0:-1,"aria-labelledby":s&&`${s}-tab-${u}`,"aria-hidden":!c,style:[i.value,n.style],class:[`${l}-tabpane`,c&&`${l}-tabpane-active`,n.class]},[(c||r.value||a)&&(null===(t=o.default)||void 0===t?void 0:t.call(o))])}}});LI.TabPane=QI,LI.install=function(e){return e.component(LI.name,LI),e.component(QI.name,QI),e};const HI=e=>{const{antCls:t,componentCls:n,cardHeadHeight:o,cardPaddingBase:r,cardHeadTabsMarginBottom:i}=e;return fl(fl({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":fl(fl({display:"inline-block",flex:1},Xu),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},FI=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}}},WI=e=>{const{componentCls:t,iconCls:n,cardActionsLiMargin:o,cardActionsIconSize:r,colorBorderSecondary:i}=e;return fl(fl({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${i}`,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} ${i}`}}})},VI=e=>fl(fl({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":fl({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Xu),"&-description":{color:e.colorTextDescription}}),ZI=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`}}},XI=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},YI=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:o,colorBorderSecondary:r,boxShadow:i,cardPaddingBase:l}=e;return{[t]:fl(fl({},Yu(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:HI(e),[`${t}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:fl({padding:l,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:FI(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:WI(e),[`${t}-meta`]:VI(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`]:ZI(e),[`${t}-loading`]:XI(e),[`${t}-rtl`]:{direction:"rtl"}}},KI=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"}}}}},GI=Ju("Card",(e=>{const t=nd(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[YI(t),KI(t)]})),UI=Ln({compatConfig:{MODE:3},name:"SkeletonTitle",props:{prefixCls:String,width:{type:[Number,String]}},setup:e=>()=>{const{prefixCls:t,width:n}=e;return Sr("h3",{class:t,style:{width:"number"==typeof n?`${n}px`:n}},null)}}),qI=Ln({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 Sr("li",{key:n,style:{width:"number"==typeof o?`${o}px`:o}},null)}));return Sr("ul",{class:t},[o])}}),JI=()=>({prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}),eE=e=>{const{prefixCls:t,size:n,shape:o}=e,r=Tl({[`${t}-lg`]:"large"===n,[`${t}-sm`]:"small"===n}),i=Tl({[`${t}-circle`]:"circle"===o,[`${t}-square`]:"square"===o,[`${t}-round`]:"round"===o}),l="number"==typeof n?{width:`${n}px`,height:`${n}px`,lineHeight:`${n}px`}:{};return Sr("span",{class:Tl(t,r,i),style:l},null)};eE.displayName="SkeletonElement";const tE=eE,nE=new Xc("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),oE=e=>({height:e,lineHeight:`${e}px`}),rE=e=>fl({width:e},oE(e)),iE=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:nE,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),lE=e=>fl({width:5*e,minWidth:5*e},oE(e)),aE=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i}=e;return{[`${t}`]:fl({display:"inline-block",verticalAlign:"top",background:n},rE(o)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:fl({},rE(r)),[`${t}${t}-sm`]:fl({},rE(i))}},sE=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:o,controlHeightLG:r,controlHeightSM:i,color:l}=e;return{[`${o}`]:fl({display:"inline-block",verticalAlign:"top",background:l,borderRadius:n},lE(t)),[`${o}-lg`]:fl({},lE(r)),[`${o}-sm`]:fl({},lE(i))}},cE=e=>fl({width:e},oE(e)),uE=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:o,borderRadiusSM:r}=e;return{[`${t}`]:fl(fl({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:o,borderRadius:r},cE(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:fl(fl({},cE(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},dE=(e,t,n)=>{const{skeletonButtonCls:o}=e;return{[`${n}${o}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${o}-round`]:{borderRadius:t}}},pE=e=>fl({width:2*e,minWidth:2*e},oE(e)),hE=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i,color:l}=e;return fl(fl(fl(fl(fl({[`${n}`]:fl({display:"inline-block",verticalAlign:"top",background:l,borderRadius:t,width:2*o,minWidth:2*o},pE(o))},dE(e,o,n)),{[`${n}-lg`]:fl({},pE(r))}),dE(e,r,`${n}-lg`)),{[`${n}-sm`]:fl({},pE(i))}),dE(e,i,`${n}-sm`))},fE=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:o,skeletonParagraphCls:r,skeletonButtonCls:i,skeletonInputCls:l,skeletonImageCls:a,controlHeight:s,controlHeightLG:c,controlHeightSM:u,color:d,padding:p,marginSM:h,borderRadius:f,skeletonTitleHeight:g,skeletonBlockRadius:m,skeletonParagraphLineHeight:v,controlHeightXS:b,skeletonParagraphMarginTop:y}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[`${n}`]:fl({display:"inline-block",verticalAlign:"top",background:d},rE(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:fl({},rE(c)),[`${n}-sm`]:fl({},rE(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${o}`]:{width:"100%",height:g,background:d,borderRadius:m,[`+ ${r}`]:{marginBlockStart:u}},[`${r}`]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:m,"+ 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:h,[`+ ${r}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:fl(fl(fl(fl({display:"inline-block",width:"auto"},hE(e)),aE(e)),sE(e)),uE(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${l}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${o},\n ${r} > li,\n ${n},\n ${i},\n ${l},\n ${a}\n `]:fl({},iE(e))}}},gE=Ju("Skeleton",(e=>{const{componentCls:t}=e,n=nd(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[fE(n)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}));function mE(e){return e&&"object"==typeof e?e:{}}const vE=Ln({compatConfig:{MODE:3},name:"ASkeleton",props:Jl({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}=Cd("skeleton",e),[i,l]=gE(o);return()=>{var t;const{loading:a,avatar:s,title:c,paragraph:u,active:d,round:p}=e,h=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=fl(fl({prefixCls:`${h}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),mE(s));o=Sr("div",{class:`${h}-header`},[Sr(tE,e,null)])}if(t||n){let o,r;if(t){const t=fl(fl({prefixCls:`${h}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),mE(c));o=Sr(UI,t,null)}if(n){const n=fl(fl({prefixCls:`${h}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),mE(u));r=Sr(qI,n,null)}a=Sr("div",{class:`${h}-content`},[o,r])}const f=Tl(h,{[`${h}-with-avatar`]:e,[`${h}-active`]:d,[`${h}-rtl`]:"rtl"===r.value,[`${h}-round`]:p,[l.value]:!0});return i(Sr("div",{class:f},[o,a]))}return null===(t=n.default)||void 0===t?void 0:t.call(n)}}}),bE=Ln({compatConfig:{MODE:3},name:"ASkeletonButton",props:Jl(fl(fl({},JI()),{size:String,block:Boolean}),{size:"default"}),setup(e){const{prefixCls:t}=Cd("skeleton",e),[n,o]=gE(t),r=Xr((()=>Tl(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value)));return()=>n(Sr("div",{class:r.value},[Sr(tE,hl(hl({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),yE=Ln({compatConfig:{MODE:3},name:"ASkeletonInput",props:fl(fl({},kd(JI(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=Cd("skeleton",e),[n,o]=gE(t),r=Xr((()=>Tl(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value)));return()=>n(Sr("div",{class:r.value},[Sr(tE,hl(hl({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),OE=Ln({compatConfig:{MODE:3},name:"ASkeletonImage",props:kd(JI(),["size","shape","active"]),setup(e){const{prefixCls:t}=Cd("skeleton",e),[n,o]=gE(t),r=Xr((()=>Tl(t.value,`${t.value}-element`,o.value)));return()=>n(Sr("div",{class:r.value},[Sr("div",{class:`${t.value}-image`},[Sr("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[Sr("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)])])]))}}),wE=Ln({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:Jl(fl(fl({},JI()),{shape:String}),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=Cd("skeleton",e),[n,o]=gE(t),r=Xr((()=>Tl(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},o.value)));return()=>n(Sr("div",{class:r.value},[Sr(tE,hl(hl({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}});vE.Button=bE,vE.Avatar=wE,vE.Input=yE,vE.Image=OE,vE.Title=UI,vE.install=function(e){return e.component(vE.name,vE),e.component(vE.Button.name,bE),e.component(vE.Avatar.name,wE),e.component(vE.Input.name,yE),e.component(vE.Image.name,OE),e.component(vE.Title.name,UI),e};const{TabPane:xE}=LI,$E=Ln({compatConfig:{MODE:3},name:"ACard",inheritAttrs:!1,props:{prefixCls:String,title:xp.any,extra:xp.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:xp.any,tabList:{type:Array},tabBarExtraContent:xp.any,activeTabKey:String,defaultActiveTabKey:String,cover:xp.any,onTabChange:{type:Function}},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i,size:l}=Cd("card",e),[a,s]=GI(r),c=e=>e.map(((t,n)=>br(t)&&!ua(t)||!br(t)?Sr("li",{style:{width:100/e.length+"%"},key:`action-${n}`},[Sr("span",null,[t])]):null)),u=t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},d=function(){let e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{t&&MO(t.type)&&t.type.__ANT_CARD_GRID&&(e=!0)})),e};return()=>{var t,p,h,f,g,m;const{headStyle:v={},bodyStyle:b={},loading:y,bordered:O=!0,type:w,tabList:x,hoverable:$,activeTabKey:S,defaultActiveTabKey:C,tabBarExtraContent:k=pa(null===(t=n.tabBarExtraContent)||void 0===t?void 0:t.call(n)),title:P=pa(null===(p=n.title)||void 0===p?void 0:p.call(n)),extra:M=pa(null===(h=n.extra)||void 0===h?void 0:h.call(n)),actions:T=pa(null===(f=n.actions)||void 0===f?void 0:f.call(n)),cover:I=pa(null===(g=n.cover)||void 0===g?void 0:g.call(n))}=e,E=oa(null===(m=n.default)||void 0===m?void 0:m.call(n)),A=r.value,R={[`${A}`]:!0,[s.value]:!0,[`${A}-loading`]:y,[`${A}-bordered`]:O,[`${A}-hoverable`]:!!$,[`${A}-contain-grid`]:d(E),[`${A}-contain-tabs`]:x&&x.length,[`${A}-${l.value}`]:l.value,[`${A}-type-${w}`]:!!w,[`${A}-rtl`]:"rtl"===i.value},D=Sr(vE,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[E]}),j=void 0!==S,B={size:"large",[j?"activeKey":"defaultActiveKey"]:j?S:C,onChange:u,class:`${A}-head-tabs`};let N;const z=x&&x.length?Sr(LI,B,{default:()=>[x.map((e=>{const{tab:t,slots:o}=e,r=null==o?void 0:o.tab;Sp(!o,"Card","tabList slots is deprecated, Please use `customTab` instead.");let i=void 0!==t?t:n[r]?n[r](e):null;return i=lo(n,"customTab",e,(()=>[i])),Sr(xE,{tab:i,key:e.key,disabled:e.disabled},null)}))],rightExtra:k?()=>k:null}):null;(P||M||z)&&(N=Sr("div",{class:`${A}-head`,style:v},[Sr("div",{class:`${A}-head-wrapper`},[P&&Sr("div",{class:`${A}-head-title`},[P]),M&&Sr("div",{class:`${A}-extra`},[M])]),z]));const _=I?Sr("div",{class:`${A}-cover`},[I]):null,L=Sr("div",{class:`${A}-body`,style:b},[y?D:E]),Q=T&&T.length?Sr("ul",{class:`${A}-actions`},[c(T)]):null;return a(Sr("div",hl(hl({ref:"cardContainerRef"},o),{},{class:[R,o.class]}),[N,_,E&&E.length?L:null,Q]))}}}),SE=$E,CE=Ln({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}=Cd("card",e);return()=>{const t={[`${o.value}-meta`]:!0},r=fa(n,e,"avatar"),i=fa(n,e,"title"),l=fa(n,e,"description"),a=r?Sr("div",{class:`${o.value}-meta-avatar`},[r]):null,s=i?Sr("div",{class:`${o.value}-meta-title`},[i]):null,c=l?Sr("div",{class:`${o.value}-meta-description`},[l]):null,u=s||c?Sr("div",{class:`${o.value}-meta-detail`},[s,c]):null;return Sr("div",{class:t},[a,u])}}}),kE=Ln({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}=Cd("card",e),r=Xr((()=>({[`${o.value}-grid`]:!0,[`${o.value}-grid-hoverable`]:e.hoverable})));return()=>{var e;return Sr("div",{class:r.value},[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}});SE.Meta=CE,SE.Grid=kE,SE.install=function(e){return e.component(SE.name,SE),e.component(CE.name,CE),e.component(kE.name,kE),e};const PE=()=>({openAnimation:xp.object,prefixCls:String,header:xp.any,headerClass:String,showArrow:Pa(),isActive:Pa(),destroyInactivePanel:Pa(),disabled:Pa(),accordion:Pa(),forceRender:Pa(),expandIcon:Ma(),extra:xp.any,panelKey:Aa(),collapsible:Ea(),role:String,onItemClick:Ma()}),ME=e=>{const{componentCls:t,collapseContentBg:n,padding:o,collapseContentPaddingHorizontal:r,collapseHeaderBg:i,collapseHeaderPadding:l,collapsePanelBorderRadius:a,lineWidth:s,lineType:c,colorBorder:u,colorText:d,colorTextHeading:p,colorTextDisabled:h,fontSize:f,lineHeight:g,marginSM:m,paddingSM:v,motionDurationSlow:b,fontSizeIcon:y}=e,O=`${s}px ${c} ${u}`;return{[t]:fl(fl({},Yu(e)),{backgroundColor:i,border:O,borderBottom:0,borderRadius:`${a}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:O,"&: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:l,color:p,lineHeight:g,cursor:"pointer",transition:`all ${b}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:f*g,display:"flex",alignItems:"center",paddingInlineEnd:m},[`${t}-arrow`]:fl(fl({},{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"}}),{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:v}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:O,[`& > ${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:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:m}}}}})}},TE=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},IE=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}}}},EE=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}}}}}},AE=Ju("Collapse",(e=>{const t=nd(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[ME(t),IE(t),EE(t),TE(t),Cx(t)]}));function RE(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 DE=Ln({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Jl({prefixCls:String,activeKey:Aa([Array,Number,String]),defaultActiveKey:Aa([Array,Number,String]),accordion:Pa(),destroyInactivePanel:Pa(),bordered:Pa(),expandIcon:Ma(),openAnimation:xp.object,expandIconPosition:Ea(),collapsible:Ea(),ghost:Pa(),onChange:Ma(),"onUpdate:activeKey":Ma()},{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=Ot(RE(hS([e.activeKey,e.defaultActiveKey])));wn((()=>e.activeKey),(()=>{i.value=RE(e.activeKey)}),{deep:!0});const{prefixCls:l,direction:a,rootPrefixCls:s}=Cd("collapse",e),[c,u]=AE(l),d=Xr((()=>{const{expandIconPosition:t}=e;return void 0!==t?t:"rtl"===a.value?"end":"start"})),p=t=>{const{expandIcon:n=o.expandIcon}=e,r=n?n(t):Sr(nk,{rotate:t.isActive?90:void 0},null);return Sr("div",{class:[`${l.value}-expand-icon`,u.value],onClick:()=>["header","icon"].includes(e.collapsible)&&h(t.panelKey)},[ha(Array.isArray(n)?r[0]:r)?Zh(r,{class:`${l.value}-arrow`},!1):r])},h=t=>{let n=i.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&&(i.value=t);const n=e.accordion?t[0]:t;r("update:activeKey",n),r("change",n)})(n)},f=(t,n)=>{var o,r,a;if(ua(t))return;const c=i.value,{accordion:u,destroyInactivePanel:d,collapsible:f,openAnimation:g}=e,m=g||Wk(`${s.value}-motion-collapse`),v=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:O,disabled:w}=t.props||{};let x=!1;x=u?c[0]===v:c.indexOf(v)>-1;let $=null!=O?O:f;return(w||""===w)&&($="disabled"),Zh(t,{key:v,panelKey:v,header:b,headerClass:y,isActive:x,prefixCls:l.value,destroyInactivePanel:d,openAnimation:m,accordion:u,onItemClick:"disabled"===$?null:h,expandIcon:p,collapsible:$})};return()=>{const{accordion:t,bordered:r,ghost:i}=e,s=Tl(l.value,{[`${l.value}-borderless`]:!r,[`${l.value}-icon-position-${d.value}`]:!0,[`${l.value}-rtl`]:"rtl"===a.value,[`${l.value}-ghost`]:!!i,[n.class]:!!n.class},u.value);return c(Sr("div",hl(hl({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}),[oa(null===(p=o.default)||void 0===p?void 0:p.call(o)).map(f)]));var p}}}),jE=Ln({compatConfig:{MODE:3},name:"PanelContent",props:PE(),setup(e,t){let{slots:n}=t;const o=wt(!1);return yn((()=>{(e.isActive||e.forceRender)&&(o.value=!0)})),()=>{var t;if(!o.value)return null;const{prefixCls:r,isActive:i,role:l}=e;return Sr("div",{class:Tl(`${r}-content`,{[`${r}-content-active`]:i,[`${r}-content-inactive`]:!i}),role:l},[Sr("div",{class:`${r}-content-box`},[null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}}),BE=Ln({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Jl(PE(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;Sp(void 0===e.disabled,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:i}=Cd("collapse",e),l=()=>{o("itemClick",e.panelKey)},a=e=>{"Enter"!==e.key&&13!==e.keyCode&&13!==e.which||l()};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:h,forceRender:f,openAnimation:g,expandIcon:m=n.expandIcon,extra:v=(null===(o=n.extra)||void 0===o?void 0:o.call(n)),collapsible:b}=e,y="disabled"===b,O=i.value,w=Tl(`${O}-header`,{[c]:c,[`${O}-header-collapsible-only`]:"header"===b,[`${O}-icon-collapsible-only`]:"icon"===b}),x=Tl({[`${O}-item`]:!0,[`${O}-item-active`]:u,[`${O}-item-disabled`]:y,[`${O}-no-arrow`]:!d,[`${r.class}`]:!!r.class});let $=Sr("i",{class:"arrow"},null);d&&"function"==typeof m&&($=m(e));const S=kn(Sr(jE,{prefixCls:O,isActive:u,forceRender:f,role:h?"tabpanel":null},{default:n.default}),[[yi,u]]),C=fl({appear:!1,css:!1},g);return Sr("div",hl(hl({},r),{},{class:x}),[Sr("div",{class:w,onClick:()=>!["header","icon"].includes(b)&&l(),role:h?"tab":"button",tabindex:y?-1:0,"aria-expanded":u,onKeypress:a},[d&&$,Sr("span",{onClick:()=>"header"===b&&l(),class:`${O}-header-text`},[s]),v&&Sr("div",{class:`${O}-extra`},[v])]),Sr(ni,C,{default:()=>[!p||u?S:null]})])}}});DE.Panel=BE,DE.install=function(e){return e.component(DE.name,DE),e.component(BE.name,BE),e};const NE=function(e){let t="";const n=Object.keys(e);return n.forEach((function(o,r){let i=e[o];(function(e){return/[height|width]$/.test(e)})(o=o.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase())&&"number"==typeof i&&(i+="px"),t+=!0===i?o:!1===i?"not "+o:"("+o+": "+i+")",r<n.length-1&&(t+=" and ")})),t};function zE(e){let t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,o){t+=NE(n),o<e.length-1&&(t+=", ")})),t):NE(e)}const _E={accessibility:{type:Boolean,default:!0},adaptiveHeight:{type:Boolean,default:!1},afterChange:xp.any.def(null),arrows:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!1},autoplaySpeed:xp.number.def(3e3),beforeChange:xp.any.def(null),centerMode:{type:Boolean,default:!1},centerPadding:xp.string.def("50px"),cssEase:xp.string.def("ease"),dots:{type:Boolean,default:!1},dotsClass:xp.string.def("slick-dots"),draggable:{type:Boolean,default:!0},unslick:{type:Boolean,default:!1},easing:xp.string.def("linear"),edgeFriction:xp.number.def(.35),fade:{type:Boolean,default:!1},focusOnSelect:{type:Boolean,default:!1},infinite:{type:Boolean,default:!0},initialSlide:xp.number.def(0),lazyLoad:xp.any.def(null),verticalSwiping:{type:Boolean,default:!1},asNavFor:xp.any.def(null),pauseOnDotsHover:{type:Boolean,default:!1},pauseOnFocus:{type:Boolean,default:!1},pauseOnHover:{type:Boolean,default:!0},responsive:xp.array,rows:xp.number.def(1),rtl:{type:Boolean,default:!1},slide:xp.string.def("div"),slidesPerRow:xp.number.def(1),slidesToScroll:xp.number.def(1),slidesToShow:xp.number.def(1),speed:xp.number.def(500),swipe:{type:Boolean,default:!0},swipeEvent:xp.any.def(null),swipeToSlide:{type:Boolean,default:!1},touchMove:{type:Boolean,default:!0},touchThreshold:xp.number.def(5),useCSS:{type:Boolean,default:!0},useTransform:{type:Boolean,default:!0},variableWidth:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},waitForAnimate:{type:Boolean,default:!0},children:xp.array,__propsSymbol__:xp.any},LE={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function QE(e,t,n){return Math.max(t,Math.min(e,n))}const HE=e=>{["touchstart","touchmove","wheel"].includes(e.type)||e.preventDefault()},FE=e=>{const t=[],n=WE(e),o=VE(e);for(let r=n;r<o;r++)e.lazyLoadedList.indexOf(r)<0&&t.push(r);return t},WE=e=>e.currentSlide-ZE(e),VE=e=>e.currentSlide+XE(e),ZE=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,XE=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,YE=e=>e&&e.offsetWidth||0,KE=e=>e&&e.offsetHeight||0,GE=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,i=Math.atan2(r,o);return t=Math.round(180*i/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"},UE=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},qE=(e,t)=>{const n={};return t.forEach((t=>n[t]=e[t])),n},JE=(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(;n<t;)r.push(n),n=o+e.slidesToScroll,o+=Math.min(e.slidesToScroll,e.slidesToShow);return r})(e);let o=0;if(t>n[n.length-1])t=n[n.length-1];else for(const r in n){if(t<n[r]){t=o;break}o=n[r]}return t},eA=e=>{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+KE(o)/2>-1*e.swipeLeft)return n=o,!1}else if(o.offsetLeft-t+YE(o)/2>-1*e.swipeLeft)return n=o,!1;return!0})),!n)return 0;const i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},tA=(e,t)=>t.reduce(((t,n)=>t&&e.hasOwnProperty(n)),!0)?null:void 0,nA=e=>{let t,n;tA(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);const o=e.slideCount+2*e.slidesToShow;e.vertical?n=o*e.slideHeight:t=aA(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=fl(fl({},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},oA=e=>{tA(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);const t=nA(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},rA=e=>{if(e.unslick)return 0;tA(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);const{slideIndex:t,trackRef:n,infinite:o,centerMode:r,slideCount:i,slidesToShow:l,slidesToScroll:a,slideWidth:s,listWidth:c,variableWidth:u,slideHeight:d,fade:p,vertical:h}=e;let f,g,m=0,v=0;if(p||1===e.slideCount)return 0;let b=0;if(o?(b=-iA(e),i%a!=0&&t+a>i&&(b=-(t>i?l-(t-i):i%a)),r&&(b+=parseInt(l/2))):(i%a!=0&&t+a>i&&(b=l-i%a),r&&(b=parseInt(l/2))),m=b*s,v=b*d,f=h?t*d*-1+v:t*s*-1+m,!0===u){let i;const l=n;if(i=t+iA(e),g=l&&l.childNodes[i],f=g?-1*g.offsetLeft:0,!0===r){i=o?t+iA(e):t,g=l&&l.children[i],f=0;for(let e=0;e<i;e++)f-=l&&l.children[e]&&l.children[e].offsetWidth;f-=parseInt(e.centerPadding),f+=g&&(c-g.offsetWidth)/2}}return f},iA=e=>e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0),lA=e=>e.unslick||!e.infinite?0:e.slideCount,aA=e=>1===e.slideCount?1:iA(e)+e.slideCount+lA(e),sA=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+cA(e)?"left":"right":e.targetSlide<e.currentSlide-uA(e)?"right":"left",cA=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?0:t-1},uA=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},dA=()=>!("undefined"==typeof window||!window.document||!window.document.createElement),pA=e=>{let t,n,o,r;r=e.rtl?e.slideCount-1-e.index:e.index;const i=r<0||r>=e.slideCount;let l;return 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.currentSlide+e.slidesToShow,l=e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":i,"slick-current":r===l}},hA=(e,t)=>e.key+"-"+t,fA=function(e,t){let n;const o=[],r=[],i=[],l=t.length,a=WE(e),s=VE(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:Sr("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}(fl(fl({},e),{index:c})),h=u.props.class||"";let f=pA(fl(fl({},e),{index:c}));if(o.push(Yh(u,{key:"original"+hA(u,c),tabindex:"-1","data-index":c,"aria-hidden":!f["slick-active"],class:Tl(f,h),style:fl(fl({outline:"none"},u.props.style||{}),p),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(d)}})),e.infinite&&!1===e.fade){const o=l-c;o<=iA(e)&&l!==e.slidesToShow&&(n=-o,n>=a&&(u=t),f=pA(fl(fl({},e),{index:n})),r.push(Yh(u,{key:"precloned"+hA(u,n),class:Tl(f,h),tabindex:"-1","data-index":n,"aria-hidden":!f["slick-active"],style:fl(fl({},u.props.style||{}),p),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(d)}}))),l!==e.slidesToShow&&(n=l+c,n<s&&(u=t),f=pA(fl(fl({},e),{index:n})),i.push(Yh(u,{key:"postcloned"+hA(u,n),tabindex:"-1","data-index":n,"aria-hidden":!f["slick-active"],class:Tl(f,h),style:fl(fl({},u.props.style||{}),p),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(d)}})))}})),e.rtl?r.concat(o,i).reverse():r.concat(o,i)},gA=(e,t)=>{let{attrs:n,slots:o}=t;const r=fA(n,oa(null==o?void 0:o.default())),{onMouseenter:i,onMouseover:l,onMouseleave:a}=n,s={onMouseenter:i,onMouseover:l,onMouseleave:a},c=fl({class:"slick-track",style:n.trackStyle},s);return Sr("div",c,[r])};gA.inheritAttrs=!1;const mA=gA,vA=(e,t)=>{let{attrs:n}=t;const{slideCount:o,slidesToScroll:r,slidesToShow:i,infinite:l,currentSlide:a,appendDots:s,customPaging:c,clickHandler:u,dotsClass:d,onMouseenter:p,onMouseover:h,onMouseleave:f}=n,g=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:i,infinite:l}),m={onMouseenter:p,onMouseover:h,onMouseleave:f};let v=[];for(let b=0;b<g;b++){let e=function(e){e&&e.preventDefault(),u(p)};const t=(b+1)*r-1,n=l?t:QE(t,0,o-1),i=n-(r-1),s=l?i:QE(i,0,o-1),d=Tl({"slick-active":l?a>=s&&a<=n:a===s}),p={message:"dots",index:b,slidesToScroll:r,currentSlide:a};v=v.concat(Sr("li",{key:b,class:d},[Zh(c({i:b}),{onClick:e})]))}return Zh(s({dots:v}),fl({class:d},m))};vA.inheritAttrs=!1;const bA=vA;function yA(){}function OA(e,t,n){n&&n.preventDefault(),t(e,n)}const wA=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,infinite:r,currentSlide:i,slideCount:l,slidesToShow:a}=n,s={"slick-arrow":!0,"slick-prev":!0};let c=function(e){OA({message:"previous"},o,e)};!r&&(0===i||l<=a)&&(s["slick-disabled"]=!0,c=yA);const u={key:"0","data-role":"none",class:s,style:{display:"block"},onClick:c},d={currentSlide:i,slideCount:l};let p;return p=n.prevArrow?Zh(n.prevArrow(fl(fl({},u),d)),{key:"0",class:s,style:{display:"block"},onClick:c},!1):Sr("button",hl({key:"0",type:"button"},u),[" ",kr("Previous")]),p};wA.inheritAttrs=!1;const xA=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,currentSlide:r,slideCount:i}=n,l={"slick-arrow":!0,"slick-next":!0};let a=function(e){OA({message:"next"},o,e)};UE(n)||(l["slick-disabled"]=!0,a=yA);const s={key:"1","data-role":"none",class:Tl(l),style:{display:"block"},onClick:a},c={currentSlide:r,slideCount:i};let u;return u=n.nextArrow?Zh(n.nextArrow(fl(fl({},s),c)),{key:"1",class:Tl(l),style:{display:"block"},onClick:a},!1):Sr("button",hl({key:"1",type:"button"},s),[" ",kr("Next")]),u};function $A(){}xA.inheritAttrs=!1;const SA={name:"InnerSlider",mixins:[pm],inheritAttrs:!1,props:fl({},_E),data(){this.preProps=fl({},this.$props),this.list=null,this.track=null,this.callbackTimers=[],this.clickable=!0,this.debouncedResize=null;const e=this.ssrInit();return fl(fl(fl({},LE),{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=fl(fl({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=fl({},e)}},mounted(){if(this.__emit("init"),this.lazyLoad){const e=FE(fl(fl({},this.$props),this.$data));e.length>0&&(this.setState((t=>({lazyLoadedList:t.lazyLoadedList.concat(e)}))),this.__emit("lazyLoad",e))}this.$nextTick((()=>{const e=fl({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 Ul((()=>{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=FE(fl(fl({},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=KE(e)+"px"}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=hw((()=>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=fl(fl({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(YE(n)),r=e.trackRef,i=Math.ceil(YE(r));let l;if(e.vertical)l=o;else{let t=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(t*=o/100),l=Math.ceil((o-t)/e.slidesToShow)}const a=n&&KE(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=FE(fl(fl({},e),{currentSlide:c,lazyLoadedList:u}));u=u.concat(d);const p={slideCount:t,slideWidth:l,listWidth:o,trackWidth:i,currentSlide:c,slideHeight:a,listHeight:s,lazyLoadedList:u};return null===e.autoplaying&&e.autoplay&&(p.autoplaying="playing"),p})(e);e=fl(fl(fl({},e),o),{slideIndex:o.currentSlide});const r=rA(e);e=fl(fl({},e),{left:r});const i=nA(e);(t||this.children.length!==e.children.length)&&(o.trackStyle=i),this.setState(o,n)},ssrInit(){const e=this.children;if(this.variableWidth){let t=0,n=0;const o=[],r=iA(fl(fl(fl({},this.$props),this.$data),{slideCount:e.length})),i=lA(fl(fl(fl({},this.$props),this.$data),{slideCount:e.length}));e.forEach((e=>{var n,r;const i=(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(i),t+=i}));for(let e=0;e<r;e++)n+=o[o.length-1-e],t+=o[o.length-1-e];for(let e=0;e<i;e++)t+=o[e];for(let e=0;e<this.currentSlide;e++)n+=o[e];const l={width:t+"px",left:-n+"px"};if(this.centerMode){const e=`${o[this.currentSlide]}px`;l.left=`calc(${l.left} + (100% - ${e}) / 2 ) `}return{trackStyle:l}}const t=e.length,n=fl(fl(fl({},this.$props),this.$data),{slideCount:t}),o=iA(n)+lA(n)+t,r=100/this.slidesToShow*o,i=100/o;let l=-i*(iA(n)+this.currentSlide)*r/100;return this.centerMode&&(l+=(100-i*r/100)/2),{slideWidth:i+"%",trackStyle:{width:r+"%",left:l+"%"}}},checkImagesLoad(){const e=this.list&&this.list.querySelectorAll&&this.list.querySelectorAll(".slick-slide img")||[],t=e.length;let n=0;Array.prototype.forEach.call(e,(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=fl(fl({},this.$props),this.$data);for(let n=this.currentSlide;n<this.slideCount+lA(t);n++)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}for(let n=this.currentSlide-1;n>=-iA(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:i,afterChange:l}=this.$props,{state:a,nextState:s}=(e=>{const{waitForAnimate:t,animating:n,fade:o,infinite:r,index:i,slideCount:l,lazyLoad:a,currentSlide:s,centerMode:c,slidesToScroll:u,slidesToShow:d,useCSS:p}=e;let{lazyLoadedList:h}=e;if(t&&n)return{};let f,g,m,v=i,b={},y={};const O=r?i:QE(i,0,l-1);if(o){if(!r&&(i<0||i>=l))return{};i<0?v=i+l:i>=l&&(v=i-l),a&&h.indexOf(v)<0&&(h=h.concat(v)),b={animating:!0,currentSlide:v,lazyLoadedList:h,targetSlide:v},y={animating:!1,targetSlide:v}}else f=v,v<0?(f=v+l,r?l%u!=0&&(f=l-l%u):f=0):!UE(e)&&v>s?v=f=s:c&&v>=l?(v=r?l:l-1,f=r?0:l-1):v>=l&&(f=v-l,r?l%u!=0&&(f=0):f=l-d),!r&&v+d>=l&&(f=l-d),g=rA(fl(fl({},e),{slideIndex:v})),m=rA(fl(fl({},e),{slideIndex:f})),r||(g===m&&(v=f),g=m),a&&(h=h.concat(FE(fl(fl({},e),{currentSlide:v})))),p?(b={animating:!0,currentSlide:f,trackStyle:oA(fl(fl({},e),{left:g})),lazyLoadedList:h,targetSlide:O},y={animating:!1,currentSlide:f,trackStyle:nA(fl(fl({},e),{left:m})),swipeLeft:null,targetSlide:O}):b={currentSlide:f,trackStyle:nA(fl(fl({},e),{left:m})),lazyLoadedList:h,targetSlide:O};return{state:b,nextState:y}})(fl(fl(fl({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),l&&l(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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(s,["animating"]);this.setState(t,(()=>{this.callbackTimers.push(setTimeout((()=>this.setState({animating:e})),10)),l&&l(a.currentSlide),delete this.animationEndCallback}))}),i))}))},changeSlide(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=((e,t)=>{let n,o,r;const{slidesToScroll:i,slidesToShow:l,slideCount:a,currentSlide:s,targetSlide:c,lazyLoad:u,infinite:d}=e,p=a%i!=0?0:(a-s)%i;if("previous"===t.message)o=0===p?i:l-p,r=s-o,u&&!d&&(n=s-o,r=-1===n?a-1:n),d||(r=c-i);else if("next"===t.message)o=0===p?i:p,r=s+o,u&&!d&&(r=(s+i)%a+p),d||(r=c+i);else if("dots"===t.message)r=t.index*t.slidesToScroll;else if("children"===t.message){if(r=t.index,d){const n=sA(fl(fl({},e),{targetSlide:r}));r>t.currentSlide&&"left"===n?r-=a:r<t.currentSlide&&"right"===n&&(r+=a)}}else"index"===t.message&&(r=Number(t.index));return r})(fl(fl({},this.$props),this.$data),e);if((0===n||n)&&(!0===t?this.slideHandler(n,t):this.slideHandler(n),this.$props.autoplay&&this.handleAutoPlay("update"),this.$props.focusOnSelect)){const e=this.list.querySelectorAll(".slick-current");e[0]&&e[0].focus()}},clickHandler(e){!1===this.clickable&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler(e){const t=((e,t,n)=>e.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&&HE(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:i,verticalSwiping:l,rtl:a,currentSlide:s,edgeFriction:c,edgeDragged:u,onEdge:d,swiped:p,swiping:h,slideCount:f,slidesToScroll:g,infinite:m,touchObject:v,swipeEvent:b,listHeight:y,listWidth:O}=t;if(n)return;if(o)return HE(e);let w;r&&i&&l&&HE(e);let x={};const $=rA(t);v.curX=e.touches?e.touches[0].pageX:e.clientX,v.curY=e.touches?e.touches[0].pageY:e.clientY,v.swipeLength=Math.round(Math.sqrt(Math.pow(v.curX-v.startX,2)));const S=Math.round(Math.sqrt(Math.pow(v.curY-v.startY,2)));if(!l&&!h&&S>10)return{scrolling:!0};l&&(v.swipeLength=S);let C=(a?-1:1)*(v.curX>v.startX?1:-1);l&&(C=v.curY>v.startY?1:-1);const k=Math.ceil(f/g),P=GE(t.touchObject,l);let M=v.swipeLength;return m||(0===s&&("right"===P||"down"===P)||s+1>=k&&("left"===P||"up"===P)||!UE(t)&&("left"===P||"up"===P))&&(M=v.swipeLength*c,!1===u&&d&&(d(P),x.edgeDragged=!0)),!p&&b&&(b(P),x.swiped=!0),w=r?$+M*(y/O)*C:a?$-M*C:$+M*C,l&&(w=$+M*C),x=fl(fl({},x),{touchObject:v,swipeLeft:w,trackStyle:nA(fl(fl({},t),{left:w}))}),Math.abs(v.curX-v.startX)<.8*Math.abs(v.curY-v.startY)||v.swipeLength>10&&(x.swiping=!0,HE(e)),x})(e,fl(fl(fl({},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:i,touchThreshold:l,verticalSwiping:a,listHeight:s,swipeToSlide:c,scrolling:u,onSwipe:d,targetSlide:p,currentSlide:h,infinite:f}=t;if(!n)return o&&HE(e),{};const g=a?s/l:i/l,m=GE(r,a),v={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u)return v;if(!r.swipeLength)return v;if(r.swipeLength>g){let n,o;HE(e),d&&d(m);const r=f?h:p;switch(m){case"left":case"up":o=r+eA(t),n=c?JE(t,o):o,v.currentDirection=0;break;case"right":case"down":o=r-eA(t),n=c?JE(t,o):o,v.currentDirection=1;break;default:n=r}v.triggerSlideHandler=n}else{const e=rA(t);v.trackStyle=oA(fl(fl({},t),{left:e}))}return v})(e,fl(fl(fl({},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(!UE(fl(fl({},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 Sr("button",null,[t+1])},appendDots(e){let{dots:t}=e;return Sr("ul",{style:{display:"block"}},[t])}},render(){const e=Tl("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=fl(fl({},this.$props),this.$data);let n=qE(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,i,l;if(n=fl(fl({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:o?this.onTrackLeave:$A,onMouseover:o?this.onTrackOver:$A}),!0===this.dots&&this.slideCount>=this.slidesToShow){let e=qE(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:i}=this.$props;e=fl(fl({},e),{clickHandler:this.changeSlide,onMouseover:i?this.onDotsOver:$A,onMouseleave:i?this.onDotsLeave:$A}),r=Sr(bA,e,null)}const a=qE(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&&(i=Sr(wA,a,null),l=Sr(xA,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=fl(fl({},u),d),h=this.touchMove;let f={ref:this.listRefHandler,class:"slick-list",style:p,onClick:this.clickHandler,onMousedown:h?this.swipeStart:$A,onMousemove:this.dragging&&h?this.swipeMove:$A,onMouseup:h?this.swipeEnd:$A,onMouseleave:this.dragging&&h?this.swipeEnd:$A,[Da?"onTouchstartPassive":"onTouchstart"]:h?this.swipeStart:$A,[Da?"onTouchmovePassive":"onTouchmove"]:this.dragging&&h?this.swipeMove:$A,onTouchend:h?this.touchEnd:$A,onTouchcancel:this.dragging&&h?this.swipeEnd:$A,onKeydown:this.accessibility?this.keyHandler:$A},g={class:e,dir:"ltr",style:this.$attrs.style};return this.unslick&&(f={class:"slick-list",ref:this.listRefHandler},g={class:e}),Sr("div",g,[this.unslick?"":i,Sr("div",f,[Sr(mA,n,{default:()=>[this.children]})]),this.unslick?"":l,this.unslick?"":r])}},CA=Ln({name:"Slider",mixins:[pm],inheritAttrs:!1,props:fl({},_E),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=zE(0===n?{minWidth:0,maxWidth:t}:{minWidth:e[n-1]+1,maxWidth:t}),dA()&&this.media(o,(()=>{this.setState({breakpoint:t})}))}));const t=zE({minWidth:e.slice(-1)[0]});dA()&&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":fl(fl({},this.$props),n[0].settings)):t=fl({},this.$props),t.centerMode&&(t.slidesToScroll,t.slidesToScroll=1),t.fade&&(t.slidesToShow,t.slidesToScroll,t.slidesToShow=1,t.slidesToScroll=1);let o=ra(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 i=null;for(let a=0;a<o.length;a+=t.rows*t.slidesPerRow){const n=[];for(let r=a;r<a+t.rows*t.slidesPerRow;r+=t.slidesPerRow){const l=[];for(let n=r;n<r+t.slidesPerRow&&(t.variableWidth&&(null===(e=o[n].props)||void 0===e?void 0:e.style)&&(i=o[n].props.style.width),!(n>=o.length));n+=1)l.push(Zh(o[n],{key:100*a+10*r+n,tabindex:-1,style:{width:100/t.slidesPerRow+"%",display:"inline-block"}}));n.push(Sr("div",{key:10*a+r},[l]))}t.variableWidth?r.push(Sr("div",{key:a,style:{width:i}},[n])):r.push(Sr("div",{key:a},[n]))}if("unslick"===t){const e="regular slider "+(this.className||"");return Sr("div",{class:e},[o])}r.length<=t.slidesToShow&&(t.unslick=!0);const l=fl(fl(fl({},this.$attrs),t),{children:r,ref:this.innerSliderRefHandler});return Sr(SA,hl(hl({},l),{},{__propsSymbol__:[]}),this.$slots)}}),kA=e=>{const{componentCls:t,antCls:n,carouselArrowSize:o,carouselDotOffset:r,marginXXS:i}=e,l=1.25*-o,a=i;return{[t]:fl(fl({},Yu(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:l,"&::before":{content:'"←"'}},".slick-next":{insetInlineEnd:l,"&::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}}}}})}},PA=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:fl(fl({},r),{margin:`${o}px 0`,verticalAlign:"baseline",button:r,"&.slick-active":fl(fl({},r),{button:r})})}}}},MA=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"}}}}]},TA=Ju("Carousel",(e=>{const{controlHeightLG:t,controlHeightSM:n}=e,o=nd(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[kA(o),PA(o),MA(o)]}),{dotWidth:16,dotHeight:3,dotWidthActive:24}),IA=Ln({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:{effect:Ea(),dots:Pa(!0),vertical:Pa(),autoplay:Pa(),easing:String,beforeChange:Ma(),afterChange:Ma(),prefixCls:String,accessibility:Pa(),nextArrow:xp.any,prevArrow:xp.any,pauseOnHover:Pa(),adaptiveHeight:Pa(),arrows:Pa(!1),autoplaySpeed:Number,centerMode:Pa(),centerPadding:String,cssEase:String,dotsClass:String,draggable:Pa(!1),fade:Pa(),focusOnSelect:Pa(),infinite:Pa(),initialSlide:Number,lazyLoad:Ea(),rtl:Pa(),slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:Pa(),swipeToSlide:Pa(),swipeEvent:Ma(),touchMove:Pa(),touchThreshold:Number,variableWidth:Pa(),useCSS:Pa(),slickGoTo:Number,responsive:Array,dotPosition:Ea(),verticalSwiping:Pa(!1)},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=Ot();r({goTo:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;null===(n=i.value)||void 0===n||n.slickGoTo(e,t)},autoplay:e=>{var t,n;null===(n=null===(t=i.value)||void 0===t?void 0:t.innerSlider)||void 0===n||n.handleAutoPlay(e)},prev:()=>{var e;null===(e=i.value)||void 0===e||e.slickPrev()},next:()=>{var e;null===(e=i.value)||void 0===e||e.slickNext()},innerSlider:Xr((()=>{var e;return null===(e=i.value)||void 0===e?void 0:e.innerSlider}))}),yn((()=>{Rs(void 0===e.vertical)}));const{prefixCls:l,direction:a}=Cd("carousel",e),[s,c]=TA(l),u=Xr((()=>e.dotPosition?e.dotPosition:void 0!==e.vertical&&e.vertical?"right":"bottom")),d=Xr((()=>"left"===u.value||"right"===u.value)),p=Xr((()=>{const t="slick-dots";return Tl({[t]:!0,[`${t}-${u.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})}));return()=>{const{dots:t,arrows:r,draggable:u,effect:h}=e,{class:f,style:g}=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["class","style"]),v="fade"===h||e.fade,b=Tl(l.value,{[`${l.value}-rtl`]:"rtl"===a.value,[`${l.value}-vertical`]:d.value,[`${f}`]:!!f},c.value);return s(Sr("div",{class:b,style:g},[Sr(CA,hl(hl(hl({ref:i},e),m),{},{dots:!!t,dotsClass:p.value,arrows:r,draggable:u,fade:v,vertical:d.value}),n)]))}}}),EA=Sa(IA),AA="__RC_CASCADER_SPLIT__",RA="SHOW_PARENT",DA="SHOW_CHILD";function jA(e){return e.join(AA)}function BA(e){return e.map(jA)}function NA(e,t){var n,o;return null!==(n=e.isLeaf)&&void 0!==n?n:!(null===(o=e[t.children])||void 0===o?void 0:o.length)}function zA(e){const t=e.parentElement;if(!t)return;const n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}const _A=Symbol("TreeContextKey"),LA=Ln({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return Eo(_A,Xr((()=>e.value))),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),QA=()=>Ao(_A,Xr((()=>({})))),HA=Symbol("KeysStateKey"),FA=()=>Ao(HA,{expandedKeys:wt([]),selectedKeys:wt([]),loadedKeys:wt([]),loadingKeys:wt([]),checkedKeys:wt([]),halfCheckedKeys:wt([]),expandedKeysSet:Xr((()=>new Set)),selectedKeysSet:Xr((()=>new Set)),loadedKeysSet:Xr((()=>new Set)),loadingKeysSet:Xr((()=>new Set)),checkedKeysSet:Xr((()=>new Set)),halfCheckedKeysSet:Xr((()=>new Set)),flattenNodes:wt([])}),WA=e=>{let{prefixCls:t,level:n,isStart:o,isEnd:r}=e;const i=`${t}-indent-unit`,l=[];for(let a=0;a<n;a+=1)l.push(Sr("span",{key:a,class:{[i]:!0,[`${i}-start`]:o[a],[`${i}-end`]:r[a]}},null));return Sr("span",{"aria-hidden":"true",class:`${t}-indent`},[l])},VA={eventKey:[String,Number],prefixCls:String,title:xp.any,data:{type:Object,default:void 0},parent:{type:Object,default:void 0},isStart:{type:Array},isEnd:{type:Array},active:{type:Boolean,default:void 0},onMousemove:{type:Function},isLeaf:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},selectable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},disableCheckbox:{type:Boolean,default:void 0},icon:xp.any,switcherIcon:xp.any,domRef:{type:Function}},ZA={prefixCls:{type:String},motion:{type:Object},focusable:{type:Boolean},activeItem:{type:Object},focused:{type:Boolean},tabindex:{type:Number},checkable:{type:Boolean},selectable:{type:Boolean},disabled:{type:Boolean},height:{type:Number},itemHeight:{type:Number},virtual:{type:Boolean},onScroll:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onActiveChange:{type:Function},onContextmenu:{type:Function},onListChangeStart:{type:Function},onListChangeEnd:{type:Function}},XA=()=>({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:xp.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:xp.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:xp.any,switcherIcon:xp.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object}),YA="open",KA="close",GA=Ln({compatConfig:{MODE:3},name:"ATreeNode",inheritAttrs:!1,props:VA,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 i=wt(!1),l=QA(),{expandedKeysSet:a,selectedKeysSet:s,loadedKeysSet:c,loadingKeysSet:u,checkedKeysSet:d,halfCheckedKeysSet:p}=FA(),{dragOverNodeKey:h,dropPosition:f,keyEntities:g}=l.value,m=Xr((()=>uR(e.eventKey,{expandedKeysSet:a.value,selectedKeysSet:s.value,loadedKeysSet:c.value,loadingKeysSet:u.value,checkedKeysSet:d.value,halfCheckedKeysSet:p.value,dragOverNodeKey:h,dropPosition:f,keyEntities:g}))),v=K$((()=>m.value.expanded)),b=K$((()=>m.value.selected)),y=K$((()=>m.value.checked)),O=K$((()=>m.value.loaded)),w=K$((()=>m.value.loading)),x=K$((()=>m.value.halfChecked)),$=K$((()=>m.value.dragOver)),S=K$((()=>m.value.dragOverGapTop)),C=K$((()=>m.value.dragOverGapBottom)),k=K$((()=>m.value.pos)),P=wt(),M=Xr((()=>{const{eventKey:t}=e,{keyEntities:n}=l.value,{children:o}=n[t]||{};return!!(o||[]).length})),T=Xr((()=>{const{isLeaf:t}=e,{loadData:n}=l.value,o=M.value;return!1!==t&&(t||!n&&!o||n&&O.value&&!o)})),I=Xr((()=>T.value?null:v.value?YA:KA)),E=Xr((()=>{const{disabled:t}=e,{disabled:n}=l.value;return!(!n&&!t)})),A=Xr((()=>{const{checkable:t}=e,{checkable:n}=l.value;return!(!n||!1===t)&&n})),R=Xr((()=>{const{selectable:t}=e,{selectable:n}=l.value;return"boolean"==typeof t?t:n})),D=Xr((()=>{const{data:t,active:n,checkable:o,disableCheckbox:r,disabled:i,selectable:l}=e;return fl(fl({active:n,checkable:o,disableCheckbox:r,disabled:i,selectable:l},t),{dataRef:t,data:t,isLeaf:T.value,checked:y.value,expanded:v.value,loading:w.value,selected:b.value,halfChecked:x.value})})),j=jr(),B=Xr((()=>{const{eventKey:t}=e,{keyEntities:n}=l.value,{parent:o}=n[t]||{};return fl(fl({},dR(fl({},e,m.value))),{parent:o})})),N=it({eventData:B,eventKey:Xr((()=>e.eventKey)),selectHandle:P,pos:k,key:j.vnode.key});r(N);const z=e=>{const{onNodeDoubleClick:t}=l.value;t(e,B.value)},_=t=>{if(E.value)return;const{disableCheckbox:n}=e,{onNodeCheck:o}=l.value;if(!A.value||n)return;t.preventDefault();const r=!y.value;o(t,B.value,r)},L=e=>{const{onNodeClick:t}=l.value;t(e,B.value),R.value?(e=>{if(E.value)return;const{onNodeSelect:t}=l.value;e.preventDefault(),t(e,B.value)})(e):_(e)},Q=e=>{const{onNodeMouseEnter:t}=l.value;t(e,B.value)},H=e=>{const{onNodeMouseLeave:t}=l.value;t(e,B.value)},F=e=>{const{onNodeContextMenu:t}=l.value;t(e,B.value)},W=e=>{const{onNodeDragStart:t}=l.value;e.stopPropagation(),i.value=!0,t(e,N);try{e.dataTransfer.setData("text/plain","")}catch(n){}},V=e=>{const{onNodeDragEnter:t}=l.value;e.preventDefault(),e.stopPropagation(),t(e,N)},Z=e=>{const{onNodeDragOver:t}=l.value;e.preventDefault(),e.stopPropagation(),t(e,N)},X=e=>{const{onNodeDragLeave:t}=l.value;e.stopPropagation(),t(e,N)},Y=e=>{const{onNodeDragEnd:t}=l.value;e.stopPropagation(),i.value=!1,t(e,N)},K=e=>{const{onNodeDrop:t}=l.value;e.preventDefault(),e.stopPropagation(),i.value=!1,t(e,N)},G=e=>{const{onNodeExpand:t}=l.value;w.value||t(e,B.value)},U=()=>{const{draggable:e,prefixCls:t}=l.value;return e&&(null==e?void 0:e.icon)?Sr("span",{class:`${t}-draggable-icon`},[e.icon]):null},q=()=>{const{loadData:e,onNodeLoad:t}=l.value;w.value||e&&v.value&&!T.value&&(M.value||O.value||t(B.value))};Gn((()=>{q()})),qn((()=>{q()}));const J=()=>{const{prefixCls:t}=l.value,n=(()=>{var t,n,r;const{switcherIcon:i=o.switcherIcon||(null===(t=l.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:a}=l.value,s=i||a;return"function"==typeof s?s(D.value):s})();if(T.value)return!1!==n?Sr("span",{class:Tl(`${t}-switcher`,`${t}-switcher-noop`)},[n]):null;const r=Tl(`${t}-switcher`,`${t}-switcher_${v.value?YA:KA}`);return!1!==n?Sr("span",{onClick:G,class:r},[n]):null},ee=()=>{var t,n;const{disableCheckbox:o}=e,{prefixCls:r}=l.value,i=E.value;return A.value?Sr("span",{class:Tl(`${r}-checkbox`,y.value&&`${r}-checkbox-checked`,!y.value&&x.value&&`${r}-checkbox-indeterminate`,(i||o)&&`${r}-checkbox-disabled`),onClick:_},[null===(n=(t=l.value).customCheckable)||void 0===n?void 0:n.call(t)]):null},te=()=>{const{prefixCls:e}=l.value;return Sr("span",{class:Tl(`${e}-iconEle`,`${e}-icon__${I.value||"docu"}`,w.value&&`${e}-icon_loading`)},null)},ne=()=>{const{disabled:t,eventKey:n}=e,{draggable:o,dropLevelOffset:r,dropPosition:i,prefixCls:a,indent:s,dropIndicatorRender:c,dragOverNodeKey:u,direction:d}=l.value;return t||!1===o||u!==n?null:c({dropPosition:i,dropLevelOffset:r,indent:s,prefixCls:a,direction:d})},oe=()=>{var t,n,r,a,s,c;const{icon:u=o.icon,data:d}=e,p=o.title||(null===(t=l.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===(a=l.value.slots)||void 0===a?void 0:a.title)||e.title,{prefixCls:h,showIcon:f,icon:g,loadData:m}=l.value,v=E.value,y=`${h}-node-content-wrapper`;let O,x;if(f){const e=u||(null===(s=l.value.slots)||void 0===s?void 0:s[null===(c=null==d?void 0:d.slots)||void 0===c?void 0:c.icon])||g;O=e?Sr("span",{class:Tl(`${h}-iconEle`,`${h}-icon__customize`)},["function"==typeof e?e(D.value):e]):te()}else m&&w.value&&(O=te());x="function"==typeof p?p(D.value):p,x=void 0===x?"---":x;const $=Sr("span",{class:`${h}-title`},[x]);return Sr("span",{ref:P,title:"string"==typeof p?p:"",class:Tl(`${y}`,`${y}-${I.value||"normal"}`,!v&&(b.value||i.value)&&`${h}-node-selected`),onMouseenter:Q,onMouseleave:H,onContextmenu:F,onClick:L,onDblclick:z},[O,$,ne()])};return()=>{const t=fl(fl({},e),n),{eventKey:o,isLeaf:r,isStart:i,isEnd:a,domRef:s,active:c,data:u,onMousemove:d,selectable:p}=t,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"]),{prefixCls:f,filterTreeNode:g,keyEntities:m,dropContainerKey:O,dropTargetKey:k,draggingNodeKey:P}=l.value,M=E.value,T=Lm(h,{aria:!0,data:!0}),{level:I}=m[o]||{},A=a[a.length-1],R=(()=>{const{data:t}=e,{draggable:n}=l.value;return!(!n||n.nodeDraggable&&!n.nodeDraggable(t))})(),D=!M&&R,j=P===o,N=void 0!==p?{"aria-selected":!!p}:void 0;return Sr("div",hl(hl({ref:s,class:Tl(n.class,`${f}-treenode`,{[`${f}-treenode-disabled`]:M,[`${f}-treenode-switcher-${v.value?"open":"close"}`]:!r,[`${f}-treenode-checkbox-checked`]:y.value,[`${f}-treenode-checkbox-indeterminate`]:x.value,[`${f}-treenode-selected`]:b.value,[`${f}-treenode-loading`]:w.value,[`${f}-treenode-active`]:c,[`${f}-treenode-leaf-last`]:A,[`${f}-treenode-draggable`]:D,dragging:j,"drop-target":k===o,"drop-container":O===o,"drag-over":!M&&$.value,"drag-over-gap-top":!M&&S.value,"drag-over-gap-bottom":!M&&C.value,"filter-node":g&&g(B.value)}),style:n.style,draggable:D,"aria-grabbed":j,onDragstart:D?W:void 0,onDragenter:R?V:void 0,onDragover:R?Z:void 0,onDragleave:R?X:void 0,onDrop:R?K:void 0,onDragend:R?Y:void 0,onMousemove:d},N),T),[Sr(WA,{prefixCls:f,level:I,isStart:i,isEnd:a},null),U(),J(),ee(),oe()])}}});function UA(e,t){if(!e)return[];const n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function qA(e,t){const n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function JA(e){return e.split("-")}function eR(e,t){return`${e}-${t}`}function tR(e){if(e.parent){const t=JA(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function nR(e,t,n,o,r,i,l,a,s,c){var u;const{clientX:d,clientY:p}=e,{top:h,height:f}=e.target.getBoundingClientRect(),g=(("rtl"===c?-1:1)*(((null==r?void 0:r.x)||0)-d)-12)/o;let m=a[n.eventKey];if(p<h+f/2){const e=l.findIndex((e=>e.key===m.key)),t=l[e<=0?0:e-1].key;m=a[t]}const v=m.key,b=m,y=m.key;let O=0,w=0;if(!s.has(v))for(let C=0;C<g&&tR(m);C+=1)m=m.parent,w+=1;const x=t.eventData,$=m.node;let S=!0;return function(e){const t=JA(e.pos);return 0===Number(t[t.length-1])}(m)&&0===m.level&&p<h+f/2&&i({dragNode:x,dropNode:$,dropPosition:-1})&&m.key===n.eventKey?O=-1:(b.children||[]).length&&s.has(y)?i({dragNode:x,dropNode:$,dropPosition:0})?O=0:S=!1:0===w?g>-1.5?i({dragNode:x,dropNode:$,dropPosition:1})?O=1:S=!1:i({dragNode:x,dropNode:$,dropPosition:0})?O=0:i({dragNode:x,dropNode:$,dropPosition:1})?O=1:S=!1:i({dragNode:x,dropNode:$,dropPosition:1})?O=1:S=!1,{dropPosition:O,dropLevelOffset:w,dropTargetKey:m.key,dropTargetPos:m.pos,dragOverNodeKey:y,dropContainerKey:0===O?null:(null===(u=m.parent)||void 0===u?void 0:u.key)||null,dropAllowed:S}}function oR(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function rR(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 iR(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:i,node:l}=r;l.disabled||i&&o(i.key)}return(e||[]).forEach((e=>{o(e)})),[...n]}function lR(e,t){return null!=e?e:t}function aR(e){const{title:t,_title:n,key:o,children:r}=e||{},i=t||"title";return{title:i,_title:n||[i],key:o||"key",children:r||"children"}}function sR(e){return function e(){return da(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((t=>{var n,o,r,i;if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return null;const l=t.children||{},a=t.key,s={};for(const[e,$]of Object.entries(t.props))s[wl(e)]=$;const{isLeaf:c,checkable:u,selectable:d,disabled:p,disableCheckbox:h}=s,f={isLeaf:c||""===c||void 0,checkable:u||""===u||void 0,selectable:d||""===d||void 0,disabled:p||""===p||void 0,disableCheckbox:h||""===h||void 0},g=fl(fl({},s),f),{title:m=(null===(n=l.title)||void 0===n?void 0:n.call(l,g)),icon:v=(null===(o=l.icon)||void 0===o?void 0:o.call(l,g)),switcherIcon:b=(null===(r=l.switcherIcon)||void 0===r?void 0:r.call(l,g))}=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);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(s,["title","icon","switcherIcon"]),O=null===(i=l.default)||void 0===i?void 0:i.call(l),w=fl(fl(fl({},y),{title:m,icon:v,switcherIcon:b,key:a,isLeaf:c}),f),x=e(O);return x.length&&(w.children=x),w}))}(e)}function cR(e){let{initWrapper:t,processEntity:n,onProcessFinished:o,externalGetKey:r,childrenPropName:i,fieldNames:l}=arguments.length>1&&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:i,fieldNames:l}=o,{key:a,children:s}=aR(l),c=r||s;let u;i?"string"==typeof i?u=e=>e[i]:"function"==typeof i&&(u=e=>i(e)):u=(e,t)=>lR(e[a],t),function n(o,r,i,l){const a=o?o[c]:e,s=o?eR(i.pos,r):"0",d=o?[...l,o]:[];if(o){const e=u(o,s),n={node:o,index:r,pos:s,key:e,parentPos:i.node?i.pos:null,level:i.level+1,nodes:d};t(n)}a&&a.forEach(((e,t)=>{n(e,t,{node:o,pos:s,level:i?i.level+1:-1},d)}))}(null)}(e,(e=>{const{node:t,index:o,pos:r,key:i,parentPos:l,level:a,nodes:d}=e,p={node:t,nodes:d,index:o,key:i,pos:r,level:a},h=lR(i,r);s[r]=p,c[h]=p,p.parent=s[l],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),n&&n(p,u)}),{externalGetKey:a,childrenPropName:i,fieldNames:l}),o&&o(u),u}function uR(e,t){let{expandedKeysSet:n,selectedKeysSet:o,loadedKeysSet:r,loadingKeysSet:i,checkedKeysSet:l,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:i.has(e),checked:l.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 dR(e){const{data:t,expanded:n,selected:o,checked:r,loaded:i,loading:l,halfChecked:a,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:p,eventKey:h}=e,f=fl(fl({dataRef:t},t),{expanded:n,selected:o,checked:r,loaded:i,loading:l,halfChecked:a,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:p,eventKey:h,key:h});return"props"in f||Object.defineProperty(f,"props",{get:()=>e}),f}const pR="__rc_cascader_search_mark__",hR=(e,t,n)=>{let{label:o}=n;return t.some((t=>String(t[o]).toLowerCase().includes(e.toLowerCase())))},fR=e=>{let{path:t,fieldNames:n}=e;return t.map((e=>e[n.label])).join(" / ")};function gR(e,t,n){const o=new Set(e);return e.filter((e=>{const r=t[e],i=r?r.parent:null,l=r?r.children:null;return n===DA?!(l&&l.some((e=>e.key&&o.has(e.key)))):!(i&&!i.node.disabled&&o.has(i.key))}))}function mR(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var r;let i=t;const l=[];for(let a=0;a<e.length;a+=1){const t=e[a],s=null==i?void 0:i.findIndex((e=>{const r=e[n.value];return o?String(r)===String(t):r===t})),c=-1!==s?null==i?void 0:i[s]:null;l.push({value:null!==(r=null==c?void 0:c[n.value])&&void 0!==r?r:t,index:s,option:c}),i=null==c?void 0:c[n.children]}return l}function vR(e,t){const n=new Set;return e.forEach((e=>{t.has(e)||n.add(e)})),n}function bR(e){const{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!(!t&&!n)||!1===o}function yR(e,t,n,o,r,i){let l;l=i||bR;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),i=new Set;for(let a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((e=>{const{key:t,node:n,children:i=[]}=e;r.has(t)&&!o(n)&&i.filter((e=>!o(e.node))).forEach((e=>{r.add(e.key)}))}));const l=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||l.has(e.parent.key))return;if(o(e.parent.node))return void l.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&&!i.has(t)||(s=!0)})),a&&r.add(t.key),s&&i.add(t.key),l.add(t.key)}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(vR(i,r))}}(a,r,o,l):function(e,t,n,o,r){const i=new Set(e);let l=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;i.has(t)||l.has(t)||r(n)||o.filter((e=>!r(e.node))).forEach((e=>{i.delete(e.key)}))}));l=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=i.has(t);o&&!n&&(o=!1),s||!n&&!l.has(t)||(s=!0)})),o||i.delete(t.key),s&&l.add(t.key),a.add(t.key)}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(vR(l,i))}}(a,t.halfCheckedKeys,r,o,l),s}const OR=Symbol("CascaderContextKey"),wR=()=>Ao(OR),xR=(e,t,n,o,r,i)=>{const l=uv(),a=Xr((()=>"rtl"===l.direction)),[s,c,u]=[Ot([]),Ot(),Ot([])];yn((()=>{let e=-1,r=t.value;const i=[],l=[],a=o.value.length;for(let t=0;t<a&&r;t+=1){const a=r.findIndex((e=>e[n.value.value]===o.value[t]));if(-1===a)break;e=a,i.push(e),l.push(o.value[t]),r=r[e][n.value.children]}let d=t.value;for(let t=0;t<i.length-1;t+=1)d=d[i[t]][n.value.children];[s.value,c.value,u.value]=[l,e,d]}));const d=e=>{r(e)},p=()=>{if(s.value.length>1){const e=s.value.slice(0,-1);d(e)}else l.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]];d(e)}};e.expose({onKeydown:e=>{const{which:t}=e;switch(t){case Tm.UP:case Tm.DOWN:{let e=0;t===Tm.UP?e=-1:t===Tm.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;r<t;r+=1){o=(o+e+t)%t;const r=u.value[o];if(r&&!r.disabled){const e=r[n.value.value],t=s.value.slice(0,-1).concat(e);return void d(t)}}})(e);break}case Tm.LEFT:a.value?h():p();break;case Tm.RIGHT:a.value?p():h();break;case Tm.BACKSPACE:l.searchValue||p();break;case Tm.ENTER:if(s.value.length){const e=u.value[c.value],t=(null==e?void 0:e[pR])||[];t.length?i(t.map((e=>e[n.value.value])),t[t.length-1]):i(s.value,e)}break;case Tm.ESC:l.toggleOpen(!1),open&&e.stopPropagation()}},onKeyup:()=>{}})};function $R(e){let{prefixCls:t,checked:n,halfChecked:o,disabled:r,onClick:i}=e;const{customSlots:l,checkable:a}=wR(),s=!1!==a.value?l.value.checkable:a.value,c="function"==typeof s?s():"boolean"==typeof s?null:s;return Sr("span",{class:{[t]:!0,[`${t}-checked`]:n,[`${t}-indeterminate`]:!n&&o,[`${t}-disabled`]:r},onClick:i},[c])}$R.props=["prefixCls","checked","halfChecked","disabled","onClick"],$R.displayName="Checkbox",$R.inheritAttrs=!1;const SR="__cascader_fix_label__";function CR(e){let{prefixCls:t,multiple:n,options:o,activeValue:r,prevValuePath:i,onToggleOpen:l,onSelect:a,onActive:s,checkedSet:c,halfCheckedSet:u,loadingKeys:d,isSelectable:p}=e;var h,f,g,m,v,b;const y=`${t}-menu`,O=`${t}-menu-item`,{fieldNames:w,changeOnSelect:x,expandTrigger:$,expandIcon:S,loadingIcon:C,dropdownMenuColumnStyle:k,customSlots:P}=wR(),M=null!==(h=S.value)&&void 0!==h?h:null===(g=(f=P.value).expandIcon)||void 0===g?void 0:g.call(f),T=null!==(m=C.value)&&void 0!==m?m:null===(b=(v=P.value).loadingIcon)||void 0===b?void 0:b.call(v),I="hover"===$.value;return Sr("ul",{class:y,role:"menu"},[o.map((e=>{var o;const{disabled:h}=e,f=e[pR],g=null!==(o=e[SR])&&void 0!==o?o:e[w.value.label],m=e[w.value.value],v=NA(e,w.value),b=f?f.map((e=>e[w.value.value])):[...i,m],y=jA(b),$=d.includes(y),S=c.has(y),C=u.has(y),P=()=>{h||I&&v||s(b)},E=()=>{p(e)&&a(b,v)};let A;return"string"==typeof e.title?A=e.title:"string"==typeof g&&(A=g),Sr("li",{key:y,class:[O,{[`${O}-expand`]:!v,[`${O}-active`]:r===m,[`${O}-disabled`]:h,[`${O}-loading`]:$}],style:k.value,role:"menuitemcheckbox",title:A,"aria-checked":S,"data-path-key":y,onClick:()=>{P(),n&&!v||E()},onDblclick:()=>{x.value&&l(!1)},onMouseenter:()=>{I&&P()},onMousedown:e=>{e.preventDefault()}},[n&&Sr($R,{prefixCls:`${t}-checkbox`,checked:S,halfChecked:C,disabled:h,onClick:e=>{e.stopPropagation(),E()}},null),Sr("div",{class:`${O}-content`},[g]),!$&&M&&!v&&Sr("div",{class:`${O}-expand-icon`},[M]),$&&T&&Sr("div",{class:`${O}-loading-icon`},[T])])}))])}CR.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"],CR.displayName="Column",CR.inheritAttrs=!1;const kR=Ln({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){const{attrs:n,slots:o}=t,r=uv(),i=Ot(),l=Xr((()=>"rtl"===r.direction)),{options:a,values:s,halfValues:c,fieldNames:u,changeOnSelect:d,onSelect:p,searchOptions:h,dropdownPrefixCls:f,loadData:g,expandTrigger:m,customSlots:v}=wR(),b=Xr((()=>f.value||r.prefixCls)),y=wt([]);yn((()=>{y.value.length&&y.value.forEach((e=>{const t=mR(e.split(AA),a.value,u.value,!0).map((e=>{let{option:t}=e;return t})),n=t[t.length-1];(!n||n[u.value.children]||NA(n,u.value))&&(y.value=y.value.filter((t=>t!==e)))}))}));const O=Xr((()=>new Set(BA(s.value)))),w=Xr((()=>new Set(BA(c.value)))),[x,$]=(()=>{const e=uv(),{values:t}=wR(),[n,o]=Hv([]);return wn((()=>e.open),(()=>{if(e.open&&!e.multiple){const e=t.value[0];o(e||[])}}),{immediate:!0}),[n,o]})(),S=e=>{$(e),(e=>{if(!g.value||r.searchValue)return;const t=mR(e,a.value,u.value).map((e=>{let{option:t}=e;return t})),n=t[t.length-1];if(n&&!NA(n,u.value)){const n=jA(e);y.value=[...y.value,n],g.value(t)}})(e)},C=e=>{const{disabled:t}=e,n=NA(e,u.value);return!t&&(n||d.value||r.multiple)},k=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(e),!r.multiple&&(t||d.value&&("hover"===m.value||n))&&r.toggleOpen(!1)},P=Xr((()=>r.searchValue?h.value:a.value)),M=Xr((()=>{const e=[{options:P.value}];let t=P.value;for(let n=0;n<x.value.length;n+=1){const o=x.value[n],r=t.find((e=>e[u.value.value]===o)),i=null==r?void 0:r[u.value.children];if(!(null==i?void 0:i.length))break;t=i,e.push({options:i})}return e}));xR(t,P,u,x,S,((e,t)=>{C(t)&&k(e,NA(t,u.value),!0)}));const T=e=>{e.preventDefault()};return Gn((()=>{wn(x,(e=>{var t;for(let n=0;n<e.length;n+=1){const o=jA(e.slice(0,n+1)),r=null===(t=i.value)||void 0===t?void 0:t.querySelector(`li[data-path-key="${o.replace(/\\{0,2}"/g,'\\"')}"]`);r&&zA(r)}}),{flush:"post",immediate:!0})})),()=>{var e,t,a,s,c;const{notFoundContent:d=(null===(e=o.notFoundContent)||void 0===e?void 0:e.call(o))||(null===(a=(t=v.value).notFoundContent)||void 0===a?void 0:a.call(t)),multiple:p,toggleOpen:h}=r,f=!(null===(c=null===(s=M.value[0])||void 0===s?void 0:s.options)||void 0===c?void 0:c.length),g=[{[u.value.value]:"__EMPTY__",[SR]:d,disabled:!0}],m=fl(fl({},n),{multiple:!f&&p,onSelect:k,onActive:S,onToggleOpen:h,checkedSet:O.value,halfCheckedSet:w.value,loadingKeys:y.value,isSelectable:C}),$=(f?[{options:g}]:M.value).map(((e,t)=>{const n=x.value.slice(0,t),o=x.value[t];return Sr(CR,hl(hl({key:t},m),{},{prefixCls:b.value,options:e.options,prevValuePath:n,activeValue:o}),null)}));return Sr("div",{class:[`${b.value}-menus`,{[`${b.value}-menu-empty`]:f,[`${b.value}-rtl`]:l.value}],onMousedown:T,ref:i},[$])}}});function PR(e){const t=Ot(0),n=wt();return yn((()=>{const o=new Map;let r=0;const i=e.value||{};for(const e in i)if(Object.prototype.hasOwnProperty.call(i,e)){const t=i[e],{level:n}=t;let l=o.get(n);l||(l=new Set,o.set(n,l)),l.add(t),r=Math.max(r,n)}t.value=r,n.value=o})),{maxLevel:t,levelEntities:n}}function MR(){return fl(fl({},fl(fl({},kd(fv(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:ka(),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:RA},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:xp.any,loadingIcon:xp.any})),{onChange:Function,customSlots:Object})}function TR(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 IR=Ln({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:Jl(MR(),{}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const i=zv(Et(e,"id")),l=Xr((()=>!!e.checkable)),[a,s]=Qv(e.defaultValue,{value:Xr((()=>e.value)),postState:TR}),c=Xr((()=>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=Xr((()=>e.options||[])),d=(p=u,h=c,Xr((()=>cR(p.value,{fieldNames:h.value,initWrapper:e=>fl(fl({},e),{pathKeyEntities:{}}),processEntity:(e,t)=>{const n=e.nodes.map((e=>e[h.value.value])).join(AA);t.pathKeyEntities[n]=e,e.key=n}}).pathKeyEntities)));var p,h;const f=e=>{const t=d.value;return e.map((e=>{const{nodes:n}=t[e];return n.map((e=>e[c.value.value]))}))},[g,m]=Qv("",{value:Xr((()=>e.searchValue)),postState:e=>e||""}),v=(t,n)=>{m(t),"blur"!==n.source&&e.onSearch&&e.onSearch(t)},{showSearch:b,searchConfig:y}=function(e){const t=wt(!1),n=Ot({});return yn((()=>{if(!e.value)return t.value=!1,void(n.value={});let o={matchInputWidth:!0,limit:50};e.value&&"object"==typeof e.value&&(o=fl(fl({},o),e.value)),o.limit<=0&&delete o.limit,t.value=!0,n.value=o})),{showSearch:t,searchConfig:n}}(Et(e,"showSearch")),O=((e,t,n,o,r,i)=>Xr((()=>{const{filter:l=hR,render:a=fR,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],h=r[n.value.children];h&&0!==h.length&&!i.value||l(e.value,p,{label:n.value.label})&&u.push(fl(fl({},r),{[n.value.label]:a({inputValue:e.value,path:p,prefixCls:o.value,fieldNames:n.value}),[pR]:p})),h&&t(r[n.value.children],p)}))}(t.value,[]),c&&u.sort(((t,o)=>c(t[pR],o[pR],e.value,n.value))),s>0?u.slice(0,s):u):[]})))(g,u,c,Xr((()=>e.dropdownPrefixCls||e.prefixCls)),y,Et(e,"changeOnSelect")),w=((e,t,n)=>Xr((()=>{const o=[],r=[];return n.value.forEach((n=>{mR(n,e.value,t.value).every((e=>e.option))?r.push(n):o.push(n)})),[r,o]})))(u,c,a),[x,$,S]=[Ot([]),Ot([]),Ot([])],{maxLevel:C,levelEntities:k}=PR(d);yn((()=>{const[e,t]=w.value;if(!l.value||!a.value.length)return void([x.value,$.value,S.value]=[e,[],t]);const n=BA(e),o=d.value,{checkedKeys:r,halfCheckedKeys:i}=yR(n,!0,o,C.value,k.value);[x.value,$.value,S.value]=[f(r),f(i),t]}));const P=((e,t,n,o,r)=>Xr((()=>{const i=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=ha(t)?Zh(t,{key:n}):t;return 0===n?[o]:[...e," / ",o]}),[])});return e.value.map((e=>{const o=mR(e,t.value,n.value),r=i({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}))}),l=jA(e);return{label:r,value:l,key:l,valueCells:e}}))})))(Xr((()=>{const t=gR(BA(x.value),d.value,e.showCheckedStrategy);return[...S.value,...f(t)]})),u,c,l,Et(e,"displayRender")),M=t=>{if(s(t),e.onChange){const n=TR(t),o=n.map((e=>mR(e,u.value,c.value).map((e=>e.option)))),r=l.value?n:n[0],i=l.value?o:o[0];e.onChange(r,i)}},T=t=>{if(m(""),l.value){const n=jA(t),o=BA(x.value),r=BA($.value),i=o.includes(n),l=S.value.some((e=>jA(e)===n));let a=x.value,s=S.value;if(l&&!i)s=S.value.filter((e=>jA(e)!==n));else{const t=i?o.filter((e=>e!==n)):[...o,n];let l;({checkedKeys:l}=yR(t,!i||{checked:!1,halfCheckedKeys:r},d.value,C.value,k.value));const s=gR(l,d.value,e.showCheckedStrategy);a=f(s)}M([...s,...a])}else M(t)},I=(e,t)=>{if("clear"===t.type)return void M([]);const{valueCells:n}=t.values[0];T(n)},E=Xr((()=>void 0!==e.open?e.open:e.popupVisible)),A=Xr((()=>e.dropdownClassName||e.popupClassName)),R=Xr((()=>e.dropdownStyle||e.popupStyle||{})),D=Xr((()=>e.placement||e.popupPlacement)),j=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:B,checkable:N,dropdownPrefixCls:z,loadData:_,expandTrigger:L,expandIcon:Q,loadingIcon:H,dropdownMenuColumnStyle:F,customSlots:W}=Mt(e);(e=>{Eo(OR,e)})({options:u,fieldNames:c,values:x,halfValues:$,changeOnSelect:B,onSelect:T,checkable:N,searchOptions:O,dropdownPrefixCls:z,loadData:_,expandTrigger:L,expandIcon:Q,loadingIcon:H,dropdownMenuColumnStyle:F,customSlots:W});const V=Ot();o({focus(){var e;null===(e=V.value)||void 0===e||e.focus()},blur(){var e;null===(e=V.value)||void 0===e||e.blur()},scrollTo(e){var t;null===(t=V.value)||void 0===t||t.scrollTo(e)}});const Z=Xr((()=>kd(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=!(g.value?O.value:u.value).length,{dropdownMatchSelectWidth:o=!1}=e,a=g.value&&y.value.matchInputWidth||t?{}:{minWidth:"auto"};return Sr(mv,hl(hl(hl({},Z.value),n),{},{ref:V,id:i,prefixCls:e.prefixCls,dropdownMatchSelectWidth:o,dropdownStyle:fl(fl({},R.value),a),displayValues:P.value,onDisplayValuesChange:I,mode:l.value?"multiple":void 0,searchValue:g.value,onSearch:v,showSearch:b.value,OptionList:kR,emptyOptions:t,open:E.value,dropdownClassName:A.value,placement:D.value,onDropdownVisibleChange:j,getRawInputElement:()=>{var e;return null===(e=r.default)||void 0===e?void 0:e.call(r)}}),r)}}}),ER={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 AR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){RR(e,t,n[t])}))}return e}function RR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var DR=function(e,t){var n=AR({},e,t.attrs);return Sr(Rb,AR({},n,{icon:ER}),null)};DR.displayName="LeftOutlined",DR.inheritAttrs=!1;const jR=DR,BR=()=>ms()&&window.document.documentElement,NR=e=>{if(ms()&&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 zR(e,t){return Array.isArray(e)||void 0===t?NR(e):((e,t)=>{if(!NR(e))return!1;const n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o})(e,t)}let _R;const LR=()=>{const e=wt(!1);return Gn((()=>{e.value=(()=>{if(!BR())return!1;if(void 0!==_R)return _R;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),_R=1===e.scrollHeight,document.body.removeChild(e),_R})()})),e},QR=Symbol("rowContextKey"),HR=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"}}}},FR=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},WR=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:o}=e,r={};for(let i=o;i>=0;i--)0===i?(r[`${n}${t}-${i}`]={display:"none"},r[`${n}-push-${i}`]={insetInlineStart:"auto"},r[`${n}-pull-${i}`]={insetInlineEnd:"auto"},r[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},r[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},r[`${n}${t}-offset-${i}`]={marginInlineEnd:0},r[`${n}${t}-order-${i}`]={order:0}):(r[`${n}${t}-${i}`]={display:"block",flex:`0 0 ${i/o*100}%`,maxWidth:i/o*100+"%"},r[`${n}${t}-push-${i}`]={insetInlineStart:i/o*100+"%"},r[`${n}${t}-pull-${i}`]={insetInlineEnd:i/o*100+"%"},r[`${n}${t}-offset-${i}`]={marginInlineStart:i/o*100+"%"},r[`${n}${t}-order-${i}`]={order:i});return r})(e,t),VR=Ju("Grid",(e=>[HR(e)])),ZR=Ju("Grid",(e=>{const t=nd(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[FR(t),WR(t,""),WR(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:fl({},WR(e,n))}))(t,n[e],e))).reduce(((e,t)=>fl(fl({},e),t)),{})]})),XR=Ln({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:{align:Aa([String,Object]),justify:Aa([String,Object]),prefixCls:String,gutter:Aa([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Cd("row",e),[l,a]=VR(r);let s;const c=X$(),u=Ot({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),d=Ot({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),p=t=>Xr((()=>{if("string"==typeof e[t])return e[t];if("object"!=typeof e[t])return"";for(let n=0;n<Z$.length;n++){const o=Z$[n];if(!d.value[o])continue;const r=e[t][o];if(void 0!==r)return r}return""})),h=p("align"),f=p("justify"),g=LR();Gn((()=>{s=c.value.subscribe((t=>{d.value=t;const n=e.gutter||0;(!Array.isArray(n)&&"object"==typeof n||Array.isArray(n)&&("object"==typeof n[0]||"object"==typeof n[1]))&&(u.value=t)}))})),Jn((()=>{c.value.unsubscribe(s)}));const m=Xr((()=>{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<Z$.length;o++){const r=Z$[o];if(u.value[r]&&void 0!==e[r]){t[n]=e[r];break}}else t[n]=e})),t}));var v;v={gutter:m,supportFlexGap:g,wrap:Xr((()=>e.wrap))},Eo(QR,v);const b=Xr((()=>Tl(r.value,{[`${r.value}-no-wrap`]:!1===e.wrap,[`${r.value}-${f.value}`]:f.value,[`${r.value}-${h.value}`]:h.value,[`${r.value}-rtl`]:"rtl"===i.value},o.class,a.value))),y=Xr((()=>{const e=m.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),g.value?t.rowGap=`${e[1]}px`:o&&(t.marginTop=o,t.marginBottom=o),t}));return()=>{var e;return l(Sr("div",hl(hl({},o),{},{class:b.value,style:fl(fl({},y.value),o.style)}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}});function YR(){return YR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},YR.apply(this,arguments)}function KR(e){return(KR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function GR(e,t){return(GR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function UR(e,t,n){return(UR=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch($pe){return!1}}()?Reflect.construct.bind():function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&GR(r,n.prototype),r}).apply(null,arguments)}function qR(e){var t="function"==typeof Map?new Map:void 0;return qR=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return UR(e,arguments,KR(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),GR(o,e)},qR(e)}var JR=/%[sdj%]/g,eD=function(){};function tD(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function nD(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(JR,(function(e){if("%%"===e)return"%";if(r>=i)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 oD(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 rD(e,t,n){var o=0,r=e.length;!function i(l){if(l&&l.length)n(l);else{var a=o;o+=1,a<r?t(e[a],i):n([])}}([])}var iD=function(e){var t,n;function o(t,n){var o;return(o=e.call(this,"Async Validation Error")||this).errors=t,o.fields=n,o}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,GR(t,n),o}(qR(Error));function lD(e,t,n,o,r){if(t.first){var i=new Promise((function(t,i){var l=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);rD(l,n,(function(e){return o(e),e.length?i(new iD(e,tD(e))):t(r)}))}));return i.catch((function(e){return e})),i}var l=!0===t.firstFields?Object.keys(e):t.firstFields||[],a=Object.keys(e),s=a.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===s)return o(u),u.length?i(new iD(u,tD(u))):t(r)};a.length||(o(u),t(r)),a.forEach((function(t){var o=e[t];-1!==l.indexOf(t)?rD(o,n,d):function(e,t,n){var o=[],r=0,i=e.length;function l(e){o.push.apply(o,e||[]),++r===i&&n(o)}e.forEach((function(e){t(e,l)}))}(o,n,d)}))}));return d.catch((function(e){return e})),d}function aD(e,t){return function(n){var o,r;return o=e.fullFields?function(e,t){for(var n=e,o=0;o<t.length;o++){if(null==n)return n;n=n[t[o]]}return n}(t,e.fullFields):t[n.field||e.fullField],(r=n)&&void 0!==r.message?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:"function"==typeof n?n():n,fieldValue:o,field:n.field||e.fullField}}}function sD(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"==typeof o&&"object"==typeof e[n]?e[n]=YR({},e[n],o):e[n]=o}return e}var cD,uD=function(e,t,n,o,r,i){!e.required||n.hasOwnProperty(e.field)&&!oD(t,i||e.type)||o.push(nD(r.messages.required,e.fullField))},dD=/^(([^<>()\[\]\\.,;:\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,}))$/,pD=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,hD={integer:function(e){return hD.number(e)&&parseInt(e,10)===e},float:function(e){return hD.number(e)&&!hD.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch($pe){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&&!hD.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(dD)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(cD)return cD;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(),i=new RegExp("(?:^"+n+"$)|(?:^"+r+"$)"),l=new RegExp("^"+n+"$"),a=new RegExp("^"+r+"$"),s=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+r+t(e)+")","g")};s.v4=function(e){return e&&e.exact?l: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 cD=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(pD)}},fD="enum",gD={required:uD,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(nD(r.messages.whitespace,e.fullField))},type:function(e,t,n,o,r){if(e.required&&void 0===t)uD(e,t,n,o,r);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?hD[i](t)||o.push(nD(r.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&o.push(nD(r.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,o,r){var i="number"==typeof e.len,l="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),i?s!==e.len&&o.push(nD(r.messages[c].len,e.fullField,e.len)):l&&!a&&s<e.min?o.push(nD(r.messages[c].min,e.fullField,e.min)):a&&!l&&s>e.max?o.push(nD(r.messages[c].max,e.fullField,e.max)):l&&a&&(s<e.min||s>e.max)&&o.push(nD(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[fD]=Array.isArray(e[fD])?e[fD]:[],-1===e[fD].indexOf(t)&&o.push(nD(r.messages[fD],e.fullField,e[fD].join(", ")))},pattern:function(e,t,n,o,r){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||o.push(nD(r.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||o.push(nD(r.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},mD=function(e,t,n,o,r){var i=e.type,l=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(oD(t,i)&&!e.required)return n();gD.required(e,t,o,l,r,i),oD(t,i)||gD.type(e,t,o,l,r)}n(l)},vD={string:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(oD(t,"string")&&!e.required)return n();gD.required(e,t,o,i,r,"string"),oD(t,"string")||(gD.type(e,t,o,i,r),gD.range(e,t,o,i,r),gD.pattern(e,t,o,i,r),!0===e.whitespace&&gD.whitespace(e,t,o,i,r))}n(i)},method:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(oD(t)&&!e.required)return n();gD.required(e,t,o,i,r),void 0!==t&&gD.type(e,t,o,i,r)}n(i)},number:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),oD(t)&&!e.required)return n();gD.required(e,t,o,i,r),void 0!==t&&(gD.type(e,t,o,i,r),gD.range(e,t,o,i,r))}n(i)},boolean:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(oD(t)&&!e.required)return n();gD.required(e,t,o,i,r),void 0!==t&&gD.type(e,t,o,i,r)}n(i)},regexp:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(oD(t)&&!e.required)return n();gD.required(e,t,o,i,r),oD(t)||gD.type(e,t,o,i,r)}n(i)},integer:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(oD(t)&&!e.required)return n();gD.required(e,t,o,i,r),void 0!==t&&(gD.type(e,t,o,i,r),gD.range(e,t,o,i,r))}n(i)},float:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(oD(t)&&!e.required)return n();gD.required(e,t,o,i,r),void 0!==t&&(gD.type(e,t,o,i,r),gD.range(e,t,o,i,r))}n(i)},array:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();gD.required(e,t,o,i,r,"array"),null!=t&&(gD.type(e,t,o,i,r),gD.range(e,t,o,i,r))}n(i)},object:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(oD(t)&&!e.required)return n();gD.required(e,t,o,i,r),void 0!==t&&gD.type(e,t,o,i,r)}n(i)},enum:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(oD(t)&&!e.required)return n();gD.required(e,t,o,i,r),void 0!==t&&gD.enum(e,t,o,i,r)}n(i)},pattern:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(oD(t,"string")&&!e.required)return n();gD.required(e,t,o,i,r),oD(t,"string")||gD.pattern(e,t,o,i,r)}n(i)},date:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(oD(t,"date")&&!e.required)return n();var l;gD.required(e,t,o,i,r),oD(t,"date")||(l=t instanceof Date?t:new Date(t),gD.type(e,l,o,i,r),l&&gD.range(e,l.getTime(),o,i,r))}n(i)},url:mD,hex:mD,email:mD,required:function(e,t,n,o,r){var i=[],l=Array.isArray(t)?"array":typeof t;gD.required(e,t,o,i,r,l),n(i)},any:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(oD(t)&&!e.required)return n();gD.required(e,t,o,i,r)}n(i)}};function bD(){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 yD=bD(),OD=function(){function e(e){this.rules=null,this._messages=yD,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=sD(bD(),e)),this._messages},t.validate=function(t,n,o){var r=this;void 0===n&&(n={}),void 0===o&&(o=function(){});var i=t,l=n,a=o;if("function"==typeof l&&(a=l,l={}),!this.rules||0===Object.keys(this.rules).length)return a&&a(null,i),Promise.resolve(i);if(l.messages){var s=this.messages();s===yD&&(s=bD()),sD(s,l.messages),l.messages=s}else l.messages=this.messages();var c={};(l.keys||Object.keys(this.rules)).forEach((function(e){var n=r.rules[e],o=i[e];n.forEach((function(n){var l=n;"function"==typeof l.transform&&(i===t&&(i=YR({},i)),o=i[e]=l.transform(o)),(l="function"==typeof l?{validator:l}:YR({},l)).validator=r.getValidationMethod(l),l.validator&&(l.field=e,l.fullField=l.fullField||e,l.type=r.getType(l),c[e]=c[e]||[],c[e].push({rule:l,value:o,source:i,field:e}))}))}));var u={};return lD(c,l,(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 YR({},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];!l.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==r.message&&(c=[].concat(r.message));var d=c.map(aD(r,i));if(l.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(aD(r,i)):l.error&&(d=[l.error(r,nD(l.messages.required,r.field))]),n(d);var p={};r.defaultField&&Object.keys(t.value).map((function(e){p[e]=r.defaultField})),p=YR({},p,t.rule.fields);var h={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];h[e]=n.map(s.bind(null,e))}));var f=new e(h);f.messages(l.messages),t.rule.options&&(t.rule.options.messages=l.messages,t.rule.options.error=l.error),f.validate(t.value,t.rule.options||l,(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,l);else if(r.validator){try{o=r.validator(r,t.value,c,t.source,l)}catch(d){console.error,l.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){for(var t,n,o=[],r={},l=0;l<e.length;l++)t=e[l],n=void 0,Array.isArray(t)?o=(n=o).concat.apply(n,t):o.push(t);o.length?(r=tD(o),a(o,r)):a(null,i)}(e)}),i)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!vD.hasOwnProperty(e.type))throw new Error(nD("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?vD.required:vD[this.getType(e)]||void 0},e}();function wD(e){return null==e?[]:Array.isArray(e)?e:[e]}function xD(e,t){let n=e;for(let o=0;o<t.length;o+=1){if(null==n)return;n=n[t[o]]}return n}function $D(e,t,n,o){if(!t.length)return n;const[r,...i]=t;let l;return l=e||"number"!=typeof r?Array.isArray(e)?[...e]:fl({},e):[],o&&void 0===n&&1===i.length?delete l[r][i[0]]:l[r]=$D(l[r],i,n,o),l}function SD(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!xD(e,t.slice(0,-1))?e:$D(e,t,n,o)}function CD(e){return wD(e)}function kD(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function PD(e,t){const n=Array.isArray(e)?[...e]:fl({},e);return t?(Object.keys(t).forEach((e=>{const o=n[e],r=t[e],i=kD(o)&&kD(r);n[e]=i?PD(o,r||{}):r})),n):n}function MD(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.reduce(((e,t)=>PD(e,t)),e)}function TD(e,t){let n={};return t.forEach((t=>{const o=function(e,t){return xD(e,t)}(e,t);n=function(e,t,n){return SD(e,t,n,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(n,t,o)})),n}OD.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");vD[e]=t},OD.warning=eD,OD.messages=yD,OD.validators=vD;const ID="'${name}' is not a valid ${type}",ED={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:ID,method:ID,array:ID,object:ID,number:ID,date:ID,boolean:ID,integer:ID,float:ID,regexp:ID,email:ID,url:ID,hex:ID},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 AD=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function l(e){try{s(o.next(e))}catch($pe){i($pe)}}function a(e){try{s(o.throw(e))}catch($pe){i($pe)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}s((o=o.apply(e,t||[])).next())}))};const RD=OD;function DD(e,t,n,o,r){return AD(this,void 0,void 0,(function*(){const i=fl({},n);delete i.ruleIndex,delete i.trigger;let l=null;i&&"array"===i.type&&i.defaultField&&(l=i.defaultField,delete i.defaultField);const a=new RD({[e]:[i]}),s=MD({},ED,o.validateMessages);a.messages(s);let c=[];try{yield Promise.resolve(a.validate({[e]:t},fl({},o)))}catch(p){c=p.errors?p.errors.map(((e,t)=>{let{message:n}=e;return ha(n)?Cr(n,{key:`error_${t}`}):n})):[s.default()]}if(!c.length&&l)return(yield Promise.all(t.map(((t,n)=>DD(`${e}.${n}`,t,l,o,r))))).reduce(((e,t)=>[...e,...t]),[]);const u=fl(fl(fl({},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 jD(e,t,n,o,r,i){const l=e.join("."),a=n.map(((e,t)=>{const n=e.validator,o=fl(fl({},e),{ruleIndex:t});return n&&(o.validator=(e,t,o)=>{let r=!1;const i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((()=>{r||o(...t)}))}));r=i&&"function"==typeof i.then&&"function"==typeof i.catch,r&&i.then((()=>{o()})).catch((e=>{o(e||" ")}))}),o})).sort(((e,t)=>{let{warningOnly:n,ruleIndex:o}=e,{warningOnly:r,ruleIndex:i}=t;return!!n==!!r?o-i:n?1:-1}));let s;if(!0===r)s=new Promise(((e,n)=>AD(this,void 0,void 0,(function*(){for(let e=0;e<a.length;e+=1){const r=a[e],s=yield DD(l,t,r,o,i);if(s.length)return void n([{errors:s,rule:r}])}e([])}))));else{const e=a.map((e=>DD(l,t,e,o,i).then((t=>({errors:t,rule:e})))));s=(r?function(e){return AD(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 AD(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 BD=Symbol("formContextKey"),ND=e=>{Eo(BD,e)},zD=()=>Ao(BD,{name:Xr((()=>{})),labelAlign:Xr((()=>"right")),vertical:Xr((()=>!1)),addField:(e,t)=>{},removeField:e=>{},model:Xr((()=>{})),rules:Xr((()=>{})),colon:Xr((()=>{})),labelWrap:Xr((()=>{})),labelCol:Xr((()=>{})),requiredMark:Xr((()=>!1)),validateTrigger:Xr((()=>{})),onValidate:()=>{},validateMessages:Xr((()=>ED))}),_D=Symbol("formItemPrefixContextKey"),LD=["xs","sm","md","lg","xl","xxl"],QD=Ln({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:i,wrap:l}=Ao(QR,{gutter:Xr((()=>{})),wrap:Xr((()=>{})),supportFlexGap:Xr((()=>{}))}),{prefixCls:a,direction:s}=Cd("col",e),[c,u]=ZR(a),d=Xr((()=>{const{span:t,order:n,offset:r,push:i,pull:l}=e,c=a.value;let d={};return LD.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),d=fl(fl({},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})})),Tl(c,{[`${c}-${t}`]:void 0!==t,[`${c}-order-${n}`]:n,[`${c}-offset-${r}`]:r,[`${c}-push-${i}`]:i,[`${c}-pull-${l}`]:l},d,o.class,u.value)})),p=Xr((()=>{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&&!i.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!==l.value||o.minWidth||(o.minWidth=0)),o}));return()=>{var e;return c(Sr("div",hl(hl({},o),{},{class:d.value,style:[p.value,o.style]}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}}),HD={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 FD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){WD(e,t,n[t])}))}return e}function WD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var VD=function(e,t){var n=FD({},e,t.attrs);return Sr(Rb,FD({},n,{icon:HD}),null)};VD.displayName="QuestionCircleOutlined",VD.inheritAttrs=!1;const ZD=VD,XD=(e,t)=>{let{slots:n,emit:o,attrs:r}=t;var i,l,a,s,c;const{prefixCls:u,htmlFor:d,labelCol:p,labelAlign:h,colon:f,required:g,requiredMark:m}=fl(fl({},e),r),[v]=os("Form"),b=null!==(i=e.label)&&void 0!==i?i:null===(l=n.label)||void 0===l?void 0:l.call(n);if(!b)return null;const{vertical:y,labelAlign:O,labelCol:w,labelWrap:x,colon:$}=zD(),S=p||(null==w?void 0:w.value)||{},C=`${u}-item-label`,k=Tl(C,"left"===(h||(null==O?void 0:O.value))&&`${C}-left`,S.class,{[`${C}-wrap`]:!!x.value});let P=b;const M=!0===f||!1!==(null==$?void 0:$.value)&&!1!==f;if(M&&!y.value&&"string"==typeof b&&""!==b.trim()&&(P=b.replace(/[:|]\s*$/,"")),e.tooltip||n.tooltip){const t=Sr("span",{class:`${u}-item-tooltip`},[Sr(xS,{title:e.tooltip},{default:()=>[Sr(ZD,null,null)]})]);P=Sr(lr,null,[P,n.tooltip?null===(a=n.tooltip)||void 0===a?void 0:a.call(n,{class:`${u}-item-tooltip`}):t])}"optional"!==m||g||(P=Sr(lr,null,[P,Sr("span",{class:`${u}-item-optional`},[(null===(s=v.value)||void 0===s?void 0:s.optional)||(null===(c=ts.Form)||void 0===c?void 0:c.optional)])]));const T=Tl({[`${u}-item-required`]:g,[`${u}-item-required-mark-optional`]:"optional"===m,[`${u}-item-no-colon`]:!M});return Sr(QD,hl(hl({},S),{},{class:k}),{default:()=>[Sr("label",{for:d,class:T,title:"string"==typeof b?b:"",onClick:e=>o("click",e)},[P])]})};XD.displayName="FormItemLabel",XD.inheritAttrs=!1;const YD=XD,KD=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)"}}}}},GD=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}}),UD=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},qD=e=>{const{componentCls:t}=e;return{[e.componentCls]:fl(fl(fl({},Yu(e)),GD(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":fl({},UD(e,e.controlHeightSM)),"&-large":fl({},UD(e,e.controlHeightLG))})}},JD=e=>{const{formItemCls:t,iconCls:n,componentCls:o,rootPrefixCls:r}=e;return{[t]:fl(fl({},Yu(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:dx,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},ej=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"}}}},tj=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"}}}}},nj=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),oj=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:nj(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label,\n ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},rj=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`]:nj(e),[`@media (max-width: ${e.screenXSMax}px)`]:[oj(e),{[t]:{[`.${o}-col-xs-24${n}-label`]:nj(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${o}-col-sm-24${n}-label`]:nj(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${o}-col-md-24${n}-label`]:nj(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${o}-col-lg-24${n}-label`]:nj(e)}}}},ij=Ju("Form",((e,t)=>{let{rootPrefixCls:n}=t;const o=nd(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[qD(o),JD(o),KD(o),ej(o),tj(o),rj(o),Cx(o),dx]})),lj=Ln({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}=Ao(_D,{prefixCls:Xr((()=>""))}),i=Xr((()=>`${o.value}-item-explain`)),l=Xr((()=>!(!e.errors||!e.errors.length))),a=Ot(r.value),[,s]=ij(o);return wn([l,r],(()=>{l.value&&(a.value=r.value)})),()=>{var t,r;const l=Wk(`${o.value}-show-help-item`),c=lm(`${o.value}-show-help-item`,l);return c.role="alert",c.class=[s.value,i.value,n.class,`${o.value}-show-help`],Sr(ni,hl(hl({},im(`${o.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[kn(Sr(zi,hl(hl({},c),{},{tag:"div"}),{default:()=>[null===(r=e.errors)||void 0===r?void 0:r.map(((e,t)=>Sr("div",{key:t,class:a.value?`${i.value}-${a.value}`:""},[e])))]}),[[yi,!!(null===(t=e.errors)||void 0===t?void 0:t.length)]])]})}}}),aj=Ln({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:n}=t;const o=zD(),{wrapperCol:r}=o,i=fl({},o);var l;return delete i.labelCol,delete i.wrapperCol,ND(i),l={prefixCls:Xr((()=>e.prefixCls)),status:Xr((()=>e.status))},Eo(_D,l),()=>{var t,o,i;const{prefixCls:l,wrapperCol:a,marginBottom:s,onErrorVisibleChanged:c,help:u=(null===(t=n.help)||void 0===t?void 0:t.call(n)),errors:d=da(null===(o=n.errors)||void 0===o?void 0:o.call(n)),extra:p=(null===(i=n.extra)||void 0===i?void 0:i.call(n))}=e,h=`${l}-item`,f=a||(null==r?void 0:r.value)||{},g=Tl(`${h}-control`,f.class);return Sr(QD,hl(hl({},f),{},{class:g}),{default:()=>{var e;return Sr(lr,null,[Sr("div",{class:`${h}-control-input`},[Sr("div",{class:`${h}-control-input-content`},[null===(e=n.default)||void 0===e?void 0:e.call(n)])]),null!==s||d.length?Sr("div",{style:{display:"flex",flexWrap:"nowrap"}},[Sr(lj,{errors:d,help:u,class:`${h}-explain-connected`,onErrorVisibleChanged:c},null),!!s&&Sr("div",{style:{width:0,height:`${s}px`}},null)]):null,p?Sr("div",{class:`${h}-extra`},[p]):null])}})}}});$a("success","warning","error","validating","");const sj={success:C$,warning:I$,error:oy,validating:Hb};function cj(e,t,n){let o=e;const r=t;let i=0;try{for(let e=r.length;i<e-1&&(o||n);++i){const e=r[i];if(!(e in o)){if(n)throw Error("please transfer a valid name path to form item!");break}o=o[e]}if(n&&!o)throw Error("please transfer a valid name path to form item!")}catch(l){}return{o:o,k:r[i],v:o?o[r[i]]:void 0}}let uj=0;const dj=Ln({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:{htmlFor:String,prefixCls:String,label:xp.any,help:xp.any,extra:xp.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:xp.oneOf($a("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String},slots:Object,setup(e,t){let{slots:n,attrs:o,expose:r}=t;e.prop;const i="form-item-"+ ++uj,{prefixCls:l}=Cd("form",e),[a,s]=ij(l),c=wt(),u=zD(),d=Xr((()=>e.name||e.prop)),p=wt([]),h=wt(!1),f=wt(),g=Xr((()=>CD(d.value))),m=Xr((()=>{if(g.value.length){const e=u.name.value,t=g.value.join("_");return e?`${e}_${t}`:`form_item_${t}`}})),v=Xr((()=>(()=>{const e=u.model.value;return e&&d.value?cj(e,g.value,!0).v:void 0})())),b=wt(UO(v.value)),y=Xr((()=>{let t=void 0!==e.validateTrigger?e.validateTrigger:u.validateTrigger.value;return t=void 0===t?"change":t,wD(t)})),O=Xr((()=>{let t=u.rules.value;const n=e.rules,o=void 0!==e.required?{required:!!e.required,trigger:y.value}:[],r=cj(t,g.value);t=t?r.o[r.k]||r.v:[];const i=[].concat(n||t||[]);return vw(i,(e=>e.required))?i:i.concat(o)})),w=Xr((()=>{const t=O.value;let n=!1;return t&&t.length&&t.every((e=>!e.required||(n=!0,!1))),n||e.required})),x=wt();yn((()=>{x.value=e.validateStatus}));const $=Xr((()=>{let t={};return"string"==typeof e.label?t.label=e.label:e.name&&(t.label=String(e.name)),e.messageVariables&&(t=fl(fl({},t),e.messageVariables)),t})),S=t=>{if(0===g.value.length)return;const{validateFirst:n=!1}=e,{triggerName:o}=t||{};let r=O.value;if(o&&(r=r.filter((e=>{const{trigger:t}=e;return!t&&!y.value.length||wD(t||y.value).includes(o)}))),!r.length)return Promise.resolve();const i=jD(g.value,v.value,r,fl({validateMessages:u.validateMessages.value},t),n,$.value);return x.value="validating",p.value=[],i.catch((e=>e)).then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if("validating"===x.value){const t=e.filter((e=>e&&e.errors.length));x.value=t.length?"error":"success",p.value=t.map((e=>e.errors)),u.onValidate(d.value,!p.value.length,p.value.length?pt(p.value[0]):null)}})),i},C=()=>{S({triggerName:"blur"})},k=()=>{h.value?h.value=!1:S({triggerName:"change"})},P=()=>{x.value=e.validateStatus,h.value=!1,p.value=[]},M=()=>{var t;x.value=e.validateStatus,h.value=!0,p.value=[];const n=u.model.value||{},o=v.value,r=cj(n,g.value,!0);Array.isArray(o)?r.o[r.k]=[].concat(null!==(t=b.value)&&void 0!==t?t:[]):r.o[r.k]=b.value,Vt((()=>{h.value=!1}))},T=Xr((()=>void 0===e.htmlFor?m.value:e.htmlFor)),I=()=>{const e=T.value;if(!e||!f.value)return;const t=f.value.$el.querySelector(`[id="${e}"]`);t&&t.focus&&t.focus()};r({onFieldBlur:C,onFieldChange:k,clearValidate:P,resetField:M}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xr((()=>!0));const n=Ot(new Map);wn([t,n],(()=>{})),Eo(dy,e),Eo(py,{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:()=>{e.autoLink&&C()},onFieldChange:()=>{e.autoLink&&k()},clearValidate:P},Xr((()=>!!(e.autoLink&&u.model.value&&d.value))));let E=!1;wn(d,(e=>{e?E||(E=!0,u.addField(i,{fieldValue:v,fieldId:m,fieldName:d,resetField:M,clearValidate:P,namePath:g,validateRules:S,rules:O})):(E=!1,u.removeField(i))}),{immediate:!0}),Jn((()=>{u.removeField(i)}));const A=function(e){const t=wt(e.value.slice());let n=null;return yn((()=>{clearTimeout(n),n=setTimeout((()=>{t.value=e.value}),e.value.length?0:10)})),t}(p),R=Xr((()=>void 0!==e.validateStatus?e.validateStatus:A.value.length?"error":x.value)),D=Xr((()=>({[`${l.value}-item`]:!0,[s.value]:!0,[`${l.value}-item-has-feedback`]:R.value&&e.hasFeedback,[`${l.value}-item-has-success`]:"success"===R.value,[`${l.value}-item-has-warning`]:"warning"===R.value,[`${l.value}-item-has-error`]:"error"===R.value,[`${l.value}-item-is-validating`]:"validating"===R.value,[`${l.value}-item-hidden`]:e.hidden}))),j=it({});vy.useProvide(j),yn((()=>{let t;if(e.hasFeedback){const e=R.value&&sj[R.value];t=e?Sr("span",{class:Tl(`${l.value}-item-feedback-icon`,`${l.value}-item-feedback-icon-${R.value}`)},[Sr(e,null,null)]):null}fl(j,{status:R.value,hasFeedback:e.hasFeedback,feedbackIcon:t,isFormItemInput:!0})}));const B=wt(null),N=wt(!1);Gn((()=>{wn(N,(()=>{N.value&&(()=>{if(c.value){const e=getComputedStyle(c.value);B.value=parseInt(e.marginBottom,10)}})()}),{flush:"post",immediate:!0})}));const z=e=>{e||(B.value=null)};return()=>{var t,r;if(e.noStyle)return null===(t=n.default)||void 0===t?void 0:t.call(n);const i=null!==(r=e.help)&&void 0!==r?r:n.help?da(n.help()):null,s=!!(null!=i&&Array.isArray(i)&&i.length||A.value.length);return N.value=s,a(Sr("div",{class:[D.value,s?`${l.value}-item-with-help`:"",o.class],ref:c},[Sr(XR,hl(hl({},o),{},{class:`${l.value}-row`,key:"row"}),{default:()=>{var t,o;return Sr(lr,null,[Sr(YD,hl(hl({},e),{},{htmlFor:T.value,required:w.value,requiredMark:u.requiredMark.value,prefixCls:l.value,onClick:I,label:e.label}),{label:n.label,tooltip:n.tooltip}),Sr(aj,hl(hl({},e),{},{errors:null!=i?wD(i):A.value,marginBottom:B.value,prefixCls:l.value,status:R.value,ref:f,help:i,extra:null!==(t=e.extra)&&void 0!==t?t:null===(o=n.extra)||void 0===o?void 0:o.call(n),onErrorVisibleChanged:z}),{default:n.default})])}}),!!B.value&&Sr("div",{class:`${l.value}-margin-offset`,style:{marginBottom:`-${B.value}px`}},null)]))}}});function pj(e){let t=!1,n=e.length;const o=[];return e.length?new Promise(((r,i)=>{e.forEach(((e,l)=>{e.catch((e=>(t=!0,e))).then((e=>{n-=1,o[l]=e,n>0||(t&&i(o),r(o))}))}))})):Promise.resolve([])}function hj(e){let t=!1;return e&&e.length&&e.every((e=>!e.required||(t=!0,!1))),t}function fj(e){return null==e?[]:Array.isArray(e)?e:[e]}function gj(e,t,n){let o=e;const r=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split(".");let i=0;for(let l=r.length;i<l-1&&(o||n);++i){const e=r[i];if(!(e in o)){if(n)throw new Error("please transfer a valid name path to validate!");break}o=o[e]}return{o:o,k:r[i],v:o?o[r[i]]:null,isValid:o&&r[i]in o}}const mj=Ln({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:Jl({layout:xp.oneOf($a("horizontal","inline","vertical")),labelCol:ka(),wrapperCol:ka(),colon:Pa(),labelAlign:Ea(),labelWrap:Pa(),prefixCls:String,requiredMark:Aa([String,Boolean]),hideRequiredMark:Pa(),model:xp.object,rules:ka(),validateMessages:ka(),validateOnRuleChange:Pa(),scrollToFirstError:Ta(),onSubmit:Ma(),name:String,validateTrigger:Aa([String,Array]),size:Ea(),disabled:Pa(),onValuesChange:Ma(),onFieldsChange:Ma(),onFinish:Ma(),onFinishFailed:Ma(),onValidate:Ma()},{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:dj,useForm:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ot({}),n=arguments.length>2?arguments[2]:void 0;const o=UO(Ct(e)),r=it({}),i=wt([]),l=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=fj(e.trigger||"change");return Ow(n,t).length})):e};let a=null;const s=function(e,t,o){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const l=jD([e],t,o,fl({validateMessages:ED},i),!!i.validateFirst);return r[e]?(r[e].validateStatus="validating",l.catch((e=>e)).then((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var o;if("validating"===r[e].validateStatus){const i=t.filter((e=>e&&e.errors.length));r[e].validateStatus=i.length?"error":"success",r[e].help=i.length?i.map((e=>e.errors)):null,null===(o=null==n?void 0:n.onValidate)||void 0===o||o.call(n,e,!i.length,i.length?pt(r[e].help[0]):null)}})),l):l.catch((e=>e))},c=(n,o)=>{let r=[],c=!0;n?r=Array.isArray(n)?n:[n]:(c=!1,r=i.value);const u=function(n){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const i=[],c={};for(let a=0;a<n.length;a++){const u=n[a],d=gj(Ct(e),u,r);if(!d.isValid)continue;c[u]=d.v;const p=l(Ct(t)[u],fj(o&&o.trigger));p.length&&i.push(s(u,d.v,p,o||{}).then((()=>({name:u,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:u,errors:t,warnings:n}):{name:u,errors:t,warnings:n}})))}const u=pj(i);a=u;const d=u.then((()=>a===u?Promise.resolve(c):Promise.reject([]))).catch((e=>{const t=e.filter((e=>e&&e.errors.length));return Promise.reject({values:c,errorFields:t,outOfDate:a!==u})}));return d.catch((e=>e)),d}(r,o||{},c);return u.catch((e=>e)),u};let u=o,d=!0;const p=e=>{const t=[];i.value.forEach((o=>{const r=gj(e,o,!1),i=gj(u,o,!1);!(d&&(null==n?void 0:n.immediate)&&r.isValid)&&em(r.v,i.v)||t.push(o)})),c(t,{trigger:"change"}),d=!1,u=UO(pt(e))},h=null==n?void 0:n.debounce;let f=!0;return wn(t,(()=>{i.value=t?Object.keys(Ct(t)):[],!f&&n&&n.validateOnRuleChange&&c(),f=!1}),{deep:!0,immediate:!0}),wn(i,(()=>{const e={};i.value.forEach((n=>{e[n]=fl({},r[n],{autoLink:!1,required:hj(Ct(t)[n])}),delete r[n]}));for(const t in r)Object.prototype.hasOwnProperty.call(r,t)&&delete r[t];fl(r,e)}),{immediate:!0}),wn(e,h&&h.wait?hw(p,h.wait,kw(h,["wait"])):p,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:o,validateInfos:r,resetFields:n=>{fl(Ct(e),fl(fl({},UO(o)),n)),Vt((()=>{Object.keys(r).forEach((e=>{r[e]={autoLink:!1,required:hj(Ct(t)[e])}}))}))},validate:c,validateField:s,mergeValidateInfo:e=>{const t={autoLink:!1},n=[],o=Array.isArray(e)?e:[e];for(let r=0;r<o.length;r++){const e=o[r];"error"===(null==e?void 0:e.validateStatus)&&(t.validateStatus="error",e.help&&n.push(e.help)),t.required=t.required||(null==e?void 0:e.required)}return t.help=n,t},clearValidate:e=>{let t=[];t=e?Array.isArray(e)?e:[e]:i.value,t.forEach((e=>{r[e]&&fl(r[e],{validateStatus:"",help:null})}))}}},setup(e,t){let{emit:n,slots:o,expose:r,attrs:i}=t;const{prefixCls:l,direction:a,form:s,size:c,disabled:u}=Cd("form",e),d=Xr((()=>""===e.requiredMark||e.requiredMark)),p=Xr((()=>{var t;return void 0!==d.value?d.value:s&&void 0!==(null===(t=s.value)||void 0===t?void 0:t.requiredMark)?s.value.requiredMark:!e.hideRequiredMark}));Sd(c),Ga(u);const h=Xr((()=>{var t,n;return null!==(t=e.colon)&&void 0!==t?t:null===(n=s.value)||void 0===n?void 0:n.colon})),{validateMessages:f}=Ao(Wa,{validateMessages:Xr((()=>{}))}),g=Xr((()=>fl(fl(fl({},ED),f.value),e.validateMessages))),[m,v]=ij(l),b=Xr((()=>Tl(l.value,{[`${l.value}-${e.layout}`]:!0,[`${l.value}-hide-required-mark`]:!1===p.value,[`${l.value}-rtl`]:"rtl"===a.value,[`${l.value}-${c.value}`]:c.value},v.value))),y=Ot(),O={},w=e=>{const t=!!e,n=t?wD(e).map(CD):[];return t?Object.values(O).filter((e=>n.findIndex((t=>{return n=t,o=e.fieldName.value,em(wD(n),wD(o));var n,o}))>-1)):Object.values(O)},x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=w(e?[e]:void 0);if(n.length){const e=n[0].fieldId.value,o=e?document.getElementById(e):null;o&&_d(o,fl({scrollMode:"if-needed",block:"nearest"},t))}},$=function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t){const t=[];return Object.values(O).forEach((e=>{let{namePath:n}=e;t.push(n.value)})),TD(e.model,t)}return TD(e.model,t)},S=(t,n)=>{if(Rs(),!e.model)return Rs(),Promise.reject("Form `model` is required for validateFields to work.");const o=!!t,r=o?wD(t).map(CD):[],i=[];Object.values(O).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 l=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,l)){const t=e.validateRules(fl({validateMessages:g.value},n));i.push(t.then((()=>({name:l,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:l,errors:t,warnings:n}):{name:l,errors:t,warnings:n}})))}}));const l=pj(i);y.value=l;const a=l.then((()=>y.value===l?Promise.resolve($(r)):Promise.reject([]))).catch((e=>{const t=e.filter((e=>e&&e.errors.length));return Promise.reject({values:$(r),errorFields:t,outOfDate:y.value!==l})}));return a.catch((e=>e)),a},C=function(){return S(...arguments)},k=t=>{t.preventDefault(),t.stopPropagation(),n("submit",t),e.model&&S().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),x(t.errorFields[0].name,e)}})(t)}))};return r({resetFields:t=>{e.model?w(t).forEach((e=>{e.resetField()})):Rs()},clearValidate:e=>{w(e).forEach((e=>{e.clearValidate()}))},validateFields:S,getFieldsValue:$,validate:function(){return C(...arguments)},scrollToField:x}),ND({model:Xr((()=>e.model)),name:Xr((()=>e.name)),labelAlign:Xr((()=>e.labelAlign)),labelCol:Xr((()=>e.labelCol)),labelWrap:Xr((()=>e.labelWrap)),wrapperCol:Xr((()=>e.wrapperCol)),vertical:Xr((()=>"vertical"===e.layout)),colon:h,requiredMark:p,validateTrigger:Xr((()=>e.validateTrigger)),rules:Xr((()=>e.rules)),addField:(e,t)=>{O[e]=t},removeField:e=>{delete O[e]},onValidate:(e,t,o)=>{n("validate",e,t,o)},validateMessages:g}),wn((()=>e.rules),(()=>{e.validateOnRuleChange&&S()})),()=>{var e;return m(Sr("form",hl(hl({},i),{},{onSubmit:k,class:[b.value,i.class]}),[null===(e=o.default)||void 0===e?void 0:e.call(o)]))}}}),vj=mj;vj.useInjectFormItemContext=gy,vj.ItemRest=my,vj.install=function(e){return e.component(vj.name,vj),e.component(vj.Item.name,vj.Item),e.component(my.name,my),e};const bj=new Xc("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),yj=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:fl(fl({},Yu(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:fl(fl({},Yu(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]:fl(fl({},Yu(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`]:fl({},Uu(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:bj,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 Oj(e,t){const n=nd(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[yj(n)]}const wj=Ju("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[Oj(n,e)]})),xj=e=>{const{prefixCls:t,componentCls:n,antCls:o}=e,r=`${n}-menu-item`,i=`\n &${r}-expand ${r}-expand-icon,\n ${r}-loading-icon\n `,l=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[{[n]:{width:e.controlWidth}},{[`${n}-dropdown`]:[Oj(`${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":fl(fl({},Xu),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:`${l}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"},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive}},"&-content":{flex:"auto"},[i]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${n}-dropdown-rtl`]:{direction:"rtl"}},jx(e)]},$j=Ju("Cascader",(e=>[xj(e)]),{controlWidth:184,controlItemWidth:111,dropdownHeight:180}),Sj=e=>{let{inputValue:t,path:n,prefixCls:o,fieldNames:r}=e;const i=[],l=t.toLowerCase();return n.forEach(((e,t)=>{0!==t&&i.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 i=0;return o.forEach(((t,o)=>{const l=i+t.length;let a=e.slice(i,l);i=l,o%2==1&&(a=Sr("span",{class:`${n}-menu-item-keyword`,key:"seperator"},[a])),r.push(a)})),r}(String(n),l,o)),i.push(n)})),i},Cj=Ln({compatConfig:{MODE:3},name:"ACascader",inheritAttrs:!1,props:Jl(fl(fl({},kd(MR(),["customSlots","checkable","options"])),{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:xp.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:i}=t;const l=gy(),a=vy.useInject(),s=Xr((()=>Oy(a.status,e.status))),{prefixCls:c,rootPrefixCls:u,getPrefixCls:d,direction:p,getPopupContainer:h,renderEmpty:f,size:g,disabled:m}=Cd("cascader",e),v=Xr((()=>d("select",e.prefixCls))),{compactSize:b,compactItemClassnames:y}=Nw(v,p),O=Xr((()=>b.value||g.value)),w=Ka(),x=Xr((()=>{var e;return null!==(e=m.value)&&void 0!==e?e:w.value})),[$,S]=Qx(v),[C]=$j(c),k=Xr((()=>"rtl"===p.value)),P=Xr((()=>{if(!e.showSearch)return e.showSearch;let t={render:Sj};return"object"==typeof e.showSearch&&(t=fl(fl({},t),e.showSearch)),t})),M=Xr((()=>Tl(e.popupClassName||e.dropdownClassName,`${c.value}-dropdown`,{[`${c.value}-dropdown-rtl`]:k.value},S.value))),T=Ot();o({focus(){var e;null===(e=T.value)||void 0===e||e.focus()},blur(){var e;null===(e=T.value)||void 0===e||e.blur()}});const I=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i("update:value",t[0]),i("change",...t),l.onFieldChange()},E=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i("blur",...t),l.onFieldBlur()},A=Xr((()=>void 0!==e.showArrow?e.showArrow:e.loading||!e.multiple)),R=Xr((()=>void 0!==e.placement?e.placement:"rtl"===p.value?"bottomRight":"bottomLeft"));return()=>{var t,o;const{notFoundContent:i=(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:g,bordered:m,allowClear:b,choiceTransitionName:w,transitionName:D,id:j=l.id.value}=e,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);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["notFoundContent","expandIcon","multiple","bordered","allowClear","choiceTransitionName","transitionName","id"]),N=i||f("Cascader");let z=d;d||(z=k.value?Sr(jR,null,null):Sr(nk,null,null));const _=Sr("span",{class:`${v.value}-menu-item-loading-icon`},[Sr(Hb,{spin:!0},null)]),{suffixIcon:L,removeIcon:Q,clearIcon:H}=cy(fl(fl({},e),{hasFeedback:a.hasFeedback,feedbackIcon:a.feedbackIcon,multiple:g,prefixCls:v.value,showArrow:A.value}),r);return C($(Sr(IR,hl(hl(hl({},B),n),{},{id:j,prefixCls:v.value,class:[c.value,{[`${v.value}-lg`]:"large"===O.value,[`${v.value}-sm`]:"small"===O.value,[`${v.value}-rtl`]:k.value,[`${v.value}-borderless`]:!m,[`${v.value}-in-form-item`]:a.isFormItemInput},yy(v.value,s.value,a.hasFeedback),y.value,n.class,S.value],disabled:x.value,direction:p.value,placement:R.value,notFoundContent:N,allowClear:b,showSearch:P.value,expandIcon:z,inputIcon:L,removeIcon:Q,clearIcon:H,loadingIcon:_,checkable:!!g,dropdownClassName:M.value,dropdownPrefixCls:c.value,choiceTransitionName:am(u.value,"",w),transitionName:am(u.value,rm(R.value),D),getPopupContainer:null==h?void 0:h.value,customSlots:fl(fl({},r),{checkable:()=>Sr("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:I,onBlur:E,ref:T}),r)))}}}),kj=Sa(fl(Cj,{SHOW_CHILD:DA,SHOW_PARENT:RA})),Pj=Symbol("CheckboxGroupContext");var Mj=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Tj=Ln({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:fl(fl({},{prefixCls:String,defaultChecked:Pa(),checked:Pa(),disabled:Pa(),isGroup:Pa(),value:xp.any,name:String,id:String,indeterminate:Pa(),type:Ea("checkbox"),autofocus:Pa(),onChange:Ma(),"onUpdate:checked":Ma(),onClick:Ma(),skipGroup:Pa(!1)}),{indeterminate:Pa(!1)}),setup(e,t){let{emit:n,attrs:o,slots:r,expose:i}=t;const l=gy(),a=vy.useInject(),{prefixCls:s,direction:c,disabled:u}=Cd("checkbox",e),d=Ka(),[p,h]=wj(s),f=Ao(Pj,void 0),g=Symbol("checkboxUniId"),m=Xr((()=>(null==f?void 0:f.disabled.value)||u.value));yn((()=>{!e.skipGroup&&f&&f.registerValue(g,e.value)})),Jn((()=>{f&&f.cancelValue(g)})),Gn((()=>{Rs(!(void 0===e.checked&&!f&&void 0!==e.value))}));const v=e=>{const t=e.target.checked;n("update:checked",t),n("change",e),l.onFieldChange()},b=Ot();return i({focus:()=>{var e;null===(e=b.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=b.value)||void 0===e||e.blur()}}),()=>{var t;const i=oa(null===(t=r.default)||void 0===t?void 0:t.call(r)),{indeterminate:u,skipGroup:g,id:y=l.id.value}=e,O=Mj(e,["indeterminate","skipGroup","id"]),{onMouseenter:w,onMouseleave:x,onInput:$,class:S,style:C}=o,k=Mj(o,["onMouseenter","onMouseleave","onInput","class","style"]),P=fl(fl(fl(fl({},O),{id:y,prefixCls:s.value}),k),{disabled:m.value});f&&!g?(P.onChange=function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];n("change",...o),f.toggleOption({label:i,value:e.value})},P.name=f.name.value,P.checked=f.mergedValue.value.includes(e.value),P.disabled=m.value||d.value,P.indeterminate=u):P.onChange=v;const M=Tl({[`${s.value}-wrapper`]:!0,[`${s.value}-rtl`]:"rtl"===c.value,[`${s.value}-wrapper-checked`]:P.checked,[`${s.value}-wrapper-disabled`]:P.disabled,[`${s.value}-wrapper-in-form-item`]:a.isFormItemInput},S,h.value),T=Tl({[`${s.value}-indeterminate`]:u},h.value);return p(Sr("label",{class:M,style:C,onMouseenter:w,onMouseleave:x},[Sr(wT,hl(hl({"aria-checked":u?"mixed":void 0},P),{},{class:T,ref:b}),null),i.length?Sr("span",null,[i]):null]))}}}),Ij=Ln({compatConfig:{MODE:3},name:"ACheckboxGroup",inheritAttrs:!1,props:fl(fl({},{name:String,prefixCls:String,options:Ia([]),disabled:Boolean,id:String}),{defaultValue:Ia(),value:Ia(),onChange:Ma(),"onUpdate:value":Ma()}),setup(e,t){let{slots:n,attrs:o,emit:r,expose:i}=t;const l=gy(),{prefixCls:a,direction:s}=Cd("checkbox",e),c=Xr((()=>`${a.value}-group`)),[u,d]=wj(c),p=Ot((void 0===e.value?e.defaultValue:e.value)||[]);wn((()=>e.value),(()=>{p.value=e.value||[]}));const h=Xr((()=>e.options.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e)))),f=Ot(Symbol()),g=Ot(new Map),m=Ot(new Map);return wn(f,(()=>{const e=new Map;for(const t of g.value.values())e.set(t,!0);m.value=e})),Eo(Pj,{cancelValue:e=>{g.value.delete(e),f.value=Symbol()},registerValue:(e,t)=>{g.value.set(e,t),f.value=Symbol()},toggleOption:t=>{const n=p.value.indexOf(t.value),o=[...p.value];-1===n?o.push(t.value):o.splice(n,1),void 0===e.value&&(p.value=o);const i=o.filter((e=>m.value.has(e))).sort(((e,t)=>h.value.findIndex((t=>t.value===e))-h.value.findIndex((e=>e.value===t))));r("update:value",i),r("change",i),l.onFieldChange()},mergedValue:p,name:Xr((()=>e.name)),disabled:Xr((()=>e.disabled))}),i({mergedValue:p}),()=>{var t;const{id:r=l.id.value}=e;let i=null;return h.value&&h.value.length>0&&(i=h.value.map((t=>{var o;return Sr(Tj,{prefixCls:a.value,key:t.value.toString(),disabled:"disabled"in t?t.disabled:e.disabled,indeterminate:t.indeterminate,value:t.value,checked:-1!==p.value.indexOf(t.value),onChange:t.onChange,class:`${c.value}-item`},{default:()=>[void 0!==n.label?null===(o=n.label)||void 0===o?void 0:o.call(n,t):t.label]})}))),u(Sr("div",hl(hl({},o),{},{class:[c.value,{[`${c.value}-rtl`]:"rtl"===s.value},o.class,d.value],id:r}),[i||(null===(t=n.default)||void 0===t?void 0:t.call(n))]))}}});Tj.Group=Ij,Tj.install=function(e){return e.component(Tj.name,Tj),e.component(Ij.name,Ij),e};const Ej={useBreakpoint:Y$},Aj=Sa(QD),Rj=e=>{const{componentCls:t,commentBg:n,commentPaddingBase:o,commentNestIndent:r,commentFontSizeBase:i,commentFontSizeSm:l,commentAuthorNameColor:a,commentAuthorTimeColor:s,commentActionColor:c,commentActionHoverColor:u,commentActionsMarginBottom:d,commentActionsMarginTop:p,commentContentDetailPMarginBottom:h}=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:i,wordWrap:"break-word","&-author":{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:e.marginXXS,fontSize:i,"& > a,& > span":{paddingRight:e.paddingXS,fontSize:l,lineHeight:"18px"},"&-name":{color:a,fontSize:i,transition:`color ${e.motionDurationSlow}`,"> *":{color:a,"&:hover":{color:a}}},"&-time":{color:s,whiteSpace:"nowrap",cursor:"auto"}},"&-detail p":{marginBottom:h,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:p,marginBottom:d,paddingLeft:0,"> li":{display:"inline-block",color:c,"> span":{marginRight:"10px",color:c,fontSize:l,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,userSelect:"none","&:hover":{color:u}}}},[`${t}-nested`]:{marginLeft:r},"&-rtl":{direction:"rtl"}}}},Dj=Ju("Comment",(e=>{const t=nd(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[Rj(t)]})),jj=Sa(Ln({compatConfig:{MODE:3},name:"AComment",inheritAttrs:!1,props:{actions:Array,author:xp.any,avatar:xp.any,content:xp.any,prefixCls:String,datetime:xp.any},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Cd("comment",e),[l,a]=Dj(r),s=(e,t)=>Sr("div",{class:`${e}-nested`},[t]),c=e=>e&&e.length?e.map(((e,t)=>Sr("li",{key:`action-${t}`},[e]))):null;return()=>{var t,u,d,p,h,f,g,m,v,b,y;const O=r.value,w=null!==(t=e.actions)&&void 0!==t?t:null===(u=n.actions)||void 0===u?void 0:u.call(n),x=null!==(d=e.author)&&void 0!==d?d:null===(p=n.author)||void 0===p?void 0:p.call(n),$=null!==(h=e.avatar)&&void 0!==h?h:null===(f=n.avatar)||void 0===f?void 0:f.call(n),S=null!==(g=e.content)&&void 0!==g?g:null===(m=n.content)||void 0===m?void 0:m.call(n),C=null!==(v=e.datetime)&&void 0!==v?v:null===(b=n.datetime)||void 0===b?void 0:b.call(n),k=Sr("div",{class:`${O}-avatar`},["string"==typeof $?Sr("img",{src:$,alt:"comment-avatar"},null):$]),P=w?Sr("ul",{class:`${O}-actions`},[c(Array.isArray(w)?w:[w])]):null,M=Sr("div",{class:`${O}-content-author`},[x&&Sr("span",{class:`${O}-content-author-name`},[x]),C&&Sr("span",{class:`${O}-content-author-time`},[C])]),T=Sr("div",{class:`${O}-content`},[M,Sr("div",{class:`${O}-content-detail`},[S]),P]),I=Sr("div",{class:`${O}-inner`},[k,T]),E=oa(null===(y=n.default)||void 0===y?void 0:y.call(n));return l(Sr("div",hl(hl({},o),{},{class:[O,{[`${O}-rtl`]:"rtl"===i.value},o.class,a.value]}),[I,E&&E.length?s(O,E):null]))}}}));let Bj=fl({},ts.Modal);const Nj="internalMark",zj=Ln({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;Rs(e.ANT_MARK__===Nj);const o=it({antLocale:fl(fl({},e.locale),{exist:!0}),ANT_MARK__:Nj});return Eo("localeData",o),wn((()=>e.locale),(e=>{var t;t=e&&e.Modal,Bj=t?fl(fl({},Bj),t):fl({},ts.Modal),o.antLocale=fl(fl({},e),{exist:!0})}),{immediate:!0}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});zj.install=function(e){return e.component(zj.name,zj),e};const _j=Sa(zj),Lj=Ln({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,i=!1;const l=Xr((()=>void 0===e.duration?4.5:e.duration)),a=()=>{l.value&&!i&&(n=setTimeout((()=>{c()}),1e3*l.value))},s=()=>{n&&(clearTimeout(n),n=null)},c=t=>{t&&t.stopPropagation(),s();const{onClose:n,noticeKey:o}=e;n&&n(o)};return Gn((()=>{a()})),eo((()=>{i=!0,s()})),wn([l,()=>e.updateMark,()=>e.visible],((e,t)=>{let[n,o,r]=e,[i,l,c]=t;(n!==i||o!==l||r!==c&&c)&&(s(),a())}),{flush:"post"}),()=>{var t,n;const{prefixCls:i,closable:l,closeIcon:u=(null===(t=r.closeIcon)||void 0===t?void 0:t.call(r)),onClick:d,holder:p}=e,{class:h,style:f}=o,g=`${i}-notice`,m=Object.keys(o).reduce(((e,t)=>((t.startsWith("data-")||t.startsWith("aria-")||"role"===t)&&(e[t]=o[t]),e)),{}),v=Sr("div",hl({class:Tl(g,h,{[`${g}-closable`]:l}),style:f,onMouseenter:s,onMouseleave:a,onClick:d},m),[Sr("div",{class:`${g}-content`},[null===(n=r.default)||void 0===n?void 0:n.call(r)]),l?Sr("a",{tabindex:0,onClick:c,class:`${g}-close`},[u||Sr("span",{class:`${g}-close-x`},null)]):null]);return p?Sr(rr,{to:p},{default:()=>v}):v}}});let Qj=0;const Hj=Date.now();function Fj(){const e=Qj;return Qj+=1,`rcNotification_${Hj}_${e}`}const Wj=Ln({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(e,t){let{attrs:n,expose:o,slots:r}=t;const i=new Map,l=Ot([]),a=Xr((()=>{const{prefixCls:t,animation:n="fade"}=e;let o=e.transitionName;return!o&&n&&(o=`${t}-${n}`),lm(o)})),s=e=>{l.value=l.value.filter((t=>{let{notice:{key:n,userPassKey:o}}=t;return(o||n)!==e}))};return o({add:(t,n)=>{const o=t.key||Fj(),r=fl(fl({},t),{key:o}),{maxCount:i}=e,a=l.value.map((e=>e.notice.key)).indexOf(o),s=l.value.concat();-1!==a?s.splice(a,1,{notice:r,holderCallback:n}):(i&&l.value.length>=i&&(r.key=s[0].notice.key,r.updateMark=Fj(),r.userPassKey=o,s.shift()),s.push({notice:r,holderCallback:n})),l.value=s},remove:s,notices:l}),()=>{var t;const{prefixCls:o,closeIcon:c=(null===(t=r.closeIcon)||void 0===t?void 0:t.call(r,{prefixCls:o}))}=e,u=l.value.map(((t,n)=>{let{notice:r,holderCallback:a}=t;const u=n===l.value.length-1?r.updateMark:void 0,{key:d,userPassKey:p}=r,{content:h}=r,f=fl(fl(fl({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?Sr("div",{key:d,class:`${o}-hook-holder`,ref:e=>{void 0!==d&&(e?(i.set(d,e),a(e,f)):i.delete(d))}},null):Sr(Lj,hl(hl({},f),{},{class:Tl(f.class,e.hashId)}),{default:()=>["function"==typeof h?h({prefixCls:o}):h]})})),d={[o]:1,[n.class]:!!n.class,[e.hashId]:!0};return Sr("div",{class:d,style:n.style||{top:"65px",left:"50%"}},[Sr(zi,hl({tag:"div"},a.value),{default:()=>[u]})])}}});Wj.newInstance=function(e,t){const n=e||{},{name:o="notification",getContainer:r,appContext:i,prefixCls:l,rootPrefixCls:a,transitionName:s,hasTransitionName:c,useStyle:u}=n,d=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(n,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),p=document.createElement("div");r?r().appendChild(p):document.body.appendChild(p);const h=Ln({compatConfig:{MODE:3},name:"NotificationWrapper",setup(e,n){let{attrs:r}=n;const i=wt(),d=Xr((()=>GB.getPrefixCls(o,l))),[,h]=u(d);return Gn((()=>{t({notice(e){var t;null===(t=i.value)||void 0===t||t.add(e)},removeNotice(e){var t;null===(t=i.value)||void 0===t||t.remove(e)},destroy(){Yi(null,p),p.parentNode&&p.parentNode.removeChild(p)},component:i})})),()=>{const e=GB,t=e.getRootPrefixCls(a,d.value),n=c?s:`${d.value}-${s}`;return Sr(eN,hl(hl({},e),{},{prefixCls:t}),{default:()=>[Sr(Wj,hl(hl({ref:i},r),{},{prefixCls:d.value,transitionName:n,hashId:h.value}),null)]})}}}),f=Sr(h,d);f.appContext=i||f.appContext,Yi(f,p)};const Vj=Wj;let Zj=0;const Xj=Date.now();function Yj(){const e=Zj;return Zj+=1,`rcNotification_${Xj}_${e}`}const Kj=Ln({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,i=Xr((()=>e.notices)),l=Xr((()=>{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 lm(t)})),a=Ot({});wn(i,(()=>{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=Xr((()=>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),h=null===(s=e.getStyles)||void 0===s?void 0:s.call(e,t),f=d.map(((t,n)=>{let{notice:o,holderCallback:l}=t;const a=n===i.value.length-1?o.updateMark:void 0,{key:s,userPassKey:d}=o,{content:p}=o,h=fl(fl(fl({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 l?Sr("div",{key:s,class:`${c}-hook-holder`,ref:e=>{void 0!==s&&(e?(r.set(s,e),l(e,h)):r.delete(s))}},null):Sr(Lj,hl(hl({},h),{},{class:Tl(h.class,e.hashId)}),{default:()=>["function"==typeof p?p({prefixCls:c}):p]})})),g={[c]:1,[`${c}-${t}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[p]:!!p};return Sr("div",{key:t,class:g,style:n.style||h||{top:"65px",left:"50%"}},[Sr(zi,hl(hl({tag:"div"},l.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 Sr(gm,{getContainer:e.getContainer},{default:()=>[d]})}}}),Gj=()=>document.body;let Uj=0;function qj(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{getContainer:t=Gj,motion:n,prefixCls:o,maxCount:r,getClassName:i,getStyles:l,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),c=wt([]),u=wt(),d=e=>{c.value=c.value.filter((t=>{let{notice:{key:n,userPassKey:o}}=t;return(o||n)!==e}))},p=Xr((()=>Sr(Kj,{ref:u,prefixCls:o,maxCount:r,notices:c.value,remove:d,getClassName:i,getStyles:l,animation:n,hashId:e.hashId,onAllRemoved:a,getContainer:t},null))),h=wt([]),f={open:e=>{const t=function(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach((t=>{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-${Uj}`,Uj+=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 wn(h,(()=>{h.value.length&&(h.value.forEach((e=>{switch(e.type){case"open":((e,t)=>{const n=e.key||Yj(),o=fl(fl({},e),{key:n}),i=c.value.map((e=>e.notice.key)).indexOf(n),l=c.value.concat();-1!==i?l.splice(i,1,{notice:o,holderCallback:t}):(r&&c.value.length>=r&&(o.key=l[0].notice.key,o.updateMark=Yj(),o.userPassKey=n,l.shift()),l.push({notice:o,holderCallback:t})),c.value=l})(e.config);break;case"close":d(e.key);break;case"destroy":c.value=[]}})),h.value=[])})),[f,()=>p.value]}const Jj=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:o,colorBgElevated:r,colorSuccess:i,colorError:l,colorWarning:a,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:p,paddingXS:h,borderRadiusLG:f,zIndexPopup:g,messageNoticeContentPadding:m}=e,v=new Xc("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),b=new Xc("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:fl(fl({},Yu(e)),{position:"fixed",top:p,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:v,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:h,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:c},[`${t}-notice-content`]:{display:"inline-block",padding:m,background:r,borderRadius:f,boxShadow:o,pointerEvents:"all"},[`${t}-success ${n}`]:{color:i},[`${t}-error ${n}`]:{color:l},[`${t}-warning ${n}`]:{color:a},[`\n ${t}-info ${n},\n ${t}-loading ${n}`]:{color:s}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},eB=Ju("Message",(e=>{const t=nd(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[Jj(t)]}),(e=>({height:150,zIndexPopup:e.zIndexPopupBase+10}))),tB={info:Sr(j$,null,null),success:Sr(C$,null,null),error:Sr(oy,null,null),warning:Sr(I$,null,null),loading:Sr(Hb,null,null)},nB=Ln({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var t;return Sr("div",{class:Tl(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||tB[e.type],Sr("span",null,[null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}}),oB=Ln({name:"Holder",inheritAttrs:!1,props:["top","prefixCls","getContainer","maxCount","duration","rtl","transitionName","onAllRemoved"],setup(e,t){let{expose:n}=t;var o,r;const{getPrefixCls:i,getPopupContainer:l}=Cd("message",e),a=Xr((()=>i("message",e.prefixCls))),[,s]=eB(a),c=Sr("span",{class:`${a.value}-close-x`},[Sr(qb,{class:`${a.value}-close-icon`},null)]),[u,d]=qj({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:()=>Tl(s.value,e.rtl?`${a.value}-rtl`:""),motion:()=>{var t;return _p({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:l.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return n(fl(fl({},u),{prefixCls:a,hashId:s})),d}});let rB=0;function iB(e){const t=wt(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:i}=t.value,l=`${r}-notice`,{content:a,icon:s,type:c,key:u,class:d,onClose:p}=e,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["content","icon","type","key","class","onClose"]);let f=u;return null==f&&(rB+=1,f=`antd-message-${rB}`),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(fl(fl({},h),{key:f,content:()=>Sr(nB,{prefixCls:r,type:c,icon:"function"==typeof s?s():s},{default:()=>["function"==typeof a?a():a]}),placement:"top",class:Tl(c&&`${l}-${c}`,i,d),onClose:()=>{null==p||p(),e()}})),()=>{o(f)})))},i={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=>{i[e]=(t,n,o)=>{let i,l,a;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?a=n:(l=n,a=o);const s=fl(fl({onClose:a,duration:l},i),{type:e});return r(s)}})),[i,()=>Sr(oB,hl(hl({key:n},e),{},{ref:t}),null)]}function lB(e){return iB(e)}let aB,sB,cB,uB=3,dB=1,pB="",hB="move-up",fB=!1,gB=()=>document.body,mB=!1;const vB={info:j$,success:C$,error:oy,warning:I$,loading:Hb},bB=Object.keys(vB),yB={open:function(e){const t=void 0!==e.duration?e.duration:uB,n=e.key||dB++,o=new Promise((o=>{const r=()=>("function"==typeof e.onClose&&e.onClose(),o(!0));!function(e,t){sB?t(sB):Vj.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||pB,rootPrefixCls:e.rootPrefixCls,transitionName:hB,hasTransitionName:fB,style:{top:aB},getContainer:gB||e.getPopupContainer,maxCount:cB,name:"message",useStyle:eB},(e=>{sB?t(sB):(sB=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=vB[e.type],r=o?Sr(o,null,null):"",i=Tl(`${n}-custom-content`,{[`${n}-${e.type}`]:e.type,[`${n}-rtl`]:!0===mB});return Sr("div",{class:i},["function"==typeof e.icon?e.icon():e.icon||r,Sr("span",null,["function"==typeof e.content?e.content():e.content])])},onClose:r,onClick:e.onClick})}))})),r=()=>{sB&&sB.removeNotice(n)};return r.then=(e,t)=>o.then(e,t),r.promise=o,r},config:function(e){void 0!==e.top&&(aB=e.top,sB=null),void 0!==e.duration&&(uB=e.duration),void 0!==e.prefixCls&&(pB=e.prefixCls),void 0!==e.getContainer&&(gB=e.getContainer,sB=null),void 0!==e.transitionName&&(hB=e.transitionName,sB=null,fB=!0),void 0!==e.maxCount&&(cB=e.maxCount,sB=null),void 0!==e.rtl&&(mB=e.rtl)},destroy(e){if(sB)if(e){const{removeNotice:t}=sB;t(e)}else{const{destroy:e}=sB;e(),sB=null}}};function OB(e,t){e[t]=(n,o,r)=>function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(n)?e.open(fl(fl({},n),{type:t})):("function"==typeof o&&(r=o,o=void 0),e.open({content:n,duration:o,type:t,onClose:r}))}bB.forEach((e=>OB(yB,e))),yB.warn=yB.warning,yB.useMessage=lB;const wB=yB,xB=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 Xc("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 Xc("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 Xc("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}})}}}},$B=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:o,fontSizeLG:r,notificationMarginBottom:i,borderRadiusLG:l,colorSuccess:a,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:p,notificationPadding:h,notificationMarginEdge:f,motionDurationMid:g,motionEaseInOut:m,fontSize:v,lineHeight:b,width:y,notificationIconSize:O}=e,w=`${n}-notice`,x=new Xc("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:y},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),$=new Xc("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:fl(fl(fl(fl({},Yu(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:m,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:m,animationFillMode:"both",animationDuration:g,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:x,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:$,animationPlayState:"running"}}),xB(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[w]:{position:"relative",width:y,maxWidth:`calc(100vw - ${2*f}px)`,marginBottom:i,marginInlineStart:"auto",padding:h,overflow:"hidden",lineHeight:b,wordWrap:"break-word",background:p,borderRadius:l,boxShadow:o,[`${n}-close-icon`]:{fontSize:v,cursor:"pointer"},[`${w}-message`]:{marginBottom:e.marginXS,color:d,fontSize:r,lineHeight:e.lineHeightLG},[`${w}-description`]:{fontSize:v},[`&${w}-closable ${w}-message`]:{paddingInlineEnd:e.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+O,fontSize:r},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.marginSM+O,fontSize:v},[`${w}-icon`]:{position:"absolute",fontSize:O,lineHeight:0,[`&-success${t}`]:{color:a},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${w}-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}},[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${w}-pure-panel`]:{margin:0}}]},SB=Ju("Notification",(e=>{const t=e.paddingMD,n=e.paddingLG,o=nd(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[$B(o)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})));function CB(e,t){return t||Sr("span",{class:`${e}-close-x`},[Sr(qb,{class:`${e}-close-icon`},null)])}Sr(j$,null,null),Sr(C$,null,null),Sr(oy,null,null),Sr(I$,null,null),Sr(Hb,null,null);const kB={success:C$,info:j$,error:oy,warning:I$};function PB(e){let{prefixCls:t,icon:n,type:o,message:r,description:i,btn:l}=e,a=null;return n?a=Sr("span",{class:`${t}-icon`},[Ml(n)]):o&&(a=Sr(kB[o],{class:`${t}-icon ${t}-icon-${o}`},null)),Sr("div",{class:Tl({[`${t}-with-icon`]:a}),role:"alert"},[a,Sr("div",{class:`${t}-message`},[r]),Sr("div",{class:`${t}-description`},[i]),l&&Sr("div",{class:`${t}-btn`},[l])])}function MB(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}const TB=Ln({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(e,t){let{expose:n}=t;const{getPrefixCls:o,getPopupContainer:r}=Cd("notification",e),i=Xr((()=>e.prefixCls||o("notification"))),[,l]=SB(i),[a,s]=qj({prefixCls:i.value,getStyles:t=>{var n,o;return MB(t,null!==(n=e.top)&&void 0!==n?n:24,null!==(o=e.bottom)&&void 0!==o?o:24)},getClassName:()=>Tl(l.value,{[`${i.value}-rtl`]:e.rtl}),motion:()=>function(e){return{name:`${e}-fade`}}(i.value),closable:!0,closeIcon:CB(i.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:l.value,onAllRemoved:e.onAllRemoved});return n(fl(fl({},a),{prefixCls:i.value,hashId:l})),s}});function IB(e){const t=wt(null),n=Symbol("notificationHolderKey"),o=e=>{if(!t.value)return;const{open:n,prefixCls:o,hashId:r}=t.value,i=`${o}-notice`,{message:l,description:a,icon:s,type:c,btn:u,class:d}=e;return n(fl(fl({placement:"topRight"},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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["message","description","icon","type","btn","class"])),{content:()=>Sr(PB,{prefixCls:i,icon:"function"==typeof s?s():s,type:c,message:"function"==typeof l?l():l,description:"function"==typeof a?a():a,btn:"function"==typeof u?u():u},null),class:Tl(c&&`${i}-${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(fl(fl({},t),{type:e}))})),[r,()=>Sr(TB,hl(hl({key:n},e),{},{ref:t}),null)]}function EB(e){return IB(e)}const AB={};let RB,DB=4.5,jB="24px",BB="24px",NB="",zB="topRight",_B=()=>document.body,LB=null,QB=!1;const HB={success:i$,info:g$,error:O$,warning:u$},FB={open:function(e){const{icon:t,type:n,description:o,message:r,btn:i}=e,l=void 0===e.duration?DB:e.duration;!function(e,t){let{prefixCls:n,placement:o=zB,getContainer:r=_B,top:i,bottom:l,closeIcon:a=LB,appContext:s}=e;const{getPrefixCls:c}=qB(),u=c("notification",n||NB),d=`${u}-${o}-${QB}`,p=AB[d];if(p)return void Promise.resolve(p).then((e=>{t(e)}));const h=Tl(`${u}-${o}`,{[`${u}-rtl`]:!0===QB});Vj.newInstance({name:"notification",prefixCls:n||NB,useStyle:SB,class:h,style:MB(o,null!=i?i:jB,null!=l?l:BB),appContext:s,getContainer:r,closeIcon:e=>{let{prefixCls:t}=e;return Sr("span",{class:`${t}-close-x`},[Ml(a,{},Sr(qb,{class:`${t}-close-icon`},null))])},maxCount:RB,hasTransitionName:!0},(e=>{AB[d]=e,t(e)}))}(e,(a=>{a.notice({content:e=>{let{prefixCls:l}=e;const a=`${l}-notice`;let s=null;if(t)s=()=>Sr("span",{class:`${a}-icon`},[Ml(t)]);else if(n){const e=HB[n];s=()=>Sr(e,{class:`${a}-icon ${a}-icon-${n}`},null)}return Sr("div",{class:s?`${a}-with-icon`:""},[s&&s(),Sr("div",{class:`${a}-message`},[!o&&s?Sr("span",{class:`${a}-message-single-line-auto-margin`},null):null,Ml(r)]),Sr("div",{class:`${a}-description`},[Ml(o)]),i?Sr("span",{class:`${a}-btn`},[Ml(i)]):null])},duration:l,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})}))},close(e){Object.keys(AB).forEach((t=>Promise.resolve(AB[t]).then((t=>{t.removeNotice(e)}))))},config:function(e){const{duration:t,placement:n,bottom:o,top:r,getContainer:i,closeIcon:l,prefixCls:a}=e;void 0!==a&&(NB=a),void 0!==t&&(DB=t),void 0!==n&&(zB=n),void 0!==o&&(BB="number"==typeof o?`${o}px`:o),void 0!==r&&(jB="number"==typeof r?`${r}px`:r),void 0!==i&&(_B=i),void 0!==l&&(LB=l),void 0!==e.rtl&&(QB=e.rtl),void 0!==e.maxCount&&(RB=e.maxCount)},destroy(){Object.keys(AB).forEach((e=>{Promise.resolve(AB[e]).then((e=>{e.destroy()})),delete AB[e]}))}};["success","info","warning","error"].forEach((e=>{FB[e]=t=>FB.open(fl(fl({},t),{type:e}))})),FB.warn=FB.warning,FB.useNotification=EB;const WB=FB,VB=`-ant-${Date.now()}-${Math.random()}`;function ZB(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 wu(e),i=Mu(r.toRgbString());n[`${t}-color`]=o(r),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=r.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new wu(t.primaryColor),i=Mu(e.toRgbString());i.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 l=new wu(i[0]);n["primary-color-active-deprecated-f-30"]=o(l,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=o(l,(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);ms()?ks(n,`${VB}-dynamic-theme`):Rs()}function XB(){return GB.prefixCls||"ant"}function YB(){return GB.iconPrefixCls||Fa}const KB=it({}),GB=it({});let UB;yn((()=>{fl(GB,KB),GB.prefixCls=XB(),GB.iconPrefixCls=YB(),GB.getPrefixCls=(e,t)=>t||(e?`${GB.prefixCls}-${e}`:GB.prefixCls),GB.getRootPrefixCls=()=>GB.prefixCls?GB.prefixCls:XB()}));const qB=()=>({getPrefixCls:(e,t)=>t||(e?`${XB()}-${e}`:XB()),getIconPrefixCls:YB,getRootPrefixCls:()=>GB.prefixCls?GB.prefixCls:XB()}),JB=Ln({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:ka(),input:ka(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:ka(),pageHeader:ka(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:ka(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:ka(),pagination:ka(),theme:ka(),select:ka(),wave:ka()},setup(e,t){let{slots:n}=t;const o=Xa(),r=Xr((()=>e.iconPrefixCls||o.iconPrefixCls.value||Fa)),i=Xr((()=>r.value!==o.iconPrefixCls.value)),l=Xr((()=>{var t;return e.csp||(null===(t=o.csp)||void 0===t?void 0:t.value)})),a=(e=>{const[t,n]=cd();return Zc(Xr((()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]}))),(()=>[{[`.${e.value}`]:fl(fl({},{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"}}),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}]))})(r),s=function(e,t){const n=Xr((()=>(null==e?void 0:e.value)||{})),o=Xr((()=>!1!==n.value.inherit&&(null==t?void 0:t.value)?t.value:id));return Xr((()=>{if(!(null==e?void 0:e.value))return null==t?void 0:t.value;const r=fl({},o.value.components);return Object.keys(e.value.components||{}).forEach((t=>{r[t]=fl(fl({},r[t]),e.value.components[t])})),fl(fl(fl({},o.value),n.value),{token:fl(fl({},o.value.token),n.value.token),components:r})}))}(Xr((()=>e.theme)),Xr((()=>{var e;return null===(e=o.theme)||void 0===e?void 0:e.value}))),c=Xr((()=>{var t,n;return null!==(t=e.autoInsertSpaceInButton)&&void 0!==t?t:null===(n=o.autoInsertSpaceInButton)||void 0===n?void 0:n.value})),u=Xr((()=>{var t;return e.locale||(null===(t=o.locale)||void 0===t?void 0:t.value)}));wn(u,(()=>{KB.locale=u.value}),{immediate:!0});const d=Xr((()=>{var t;return e.direction||(null===(t=o.direction)||void 0===t?void 0:t.value)})),p=Xr((()=>{var t,n;return null!==(t=e.space)&&void 0!==t?t:null===(n=o.space)||void 0===n?void 0:n.value})),h=Xr((()=>{var t,n;return null!==(t=e.virtual)&&void 0!==t?t:null===(n=o.virtual)||void 0===n?void 0:n.value})),f=Xr((()=>{var t,n;return null!==(t=e.dropdownMatchSelectWidth)&&void 0!==t?t:null===(n=o.dropdownMatchSelectWidth)||void 0===n?void 0:n.value})),g=Xr((()=>{var t;return void 0!==e.getTargetContainer?e.getTargetContainer:null===(t=o.getTargetContainer)||void 0===t?void 0:t.value})),m=Xr((()=>{var t;return void 0!==e.getPopupContainer?e.getPopupContainer:null===(t=o.getPopupContainer)||void 0===t?void 0:t.value})),v=Xr((()=>{var t;return void 0!==e.pageHeader?e.pageHeader:null===(t=o.pageHeader)||void 0===t?void 0:t.value})),b=Xr((()=>{var t;return void 0!==e.input?e.input:null===(t=o.input)||void 0===t?void 0:t.value})),y=Xr((()=>{var t;return void 0!==e.pagination?e.pagination:null===(t=o.pagination)||void 0===t?void 0:t.value})),O=Xr((()=>{var t;return void 0!==e.form?e.form:null===(t=o.form)||void 0===t?void 0:t.value})),w=Xr((()=>{var t;return void 0!==e.select?e.select:null===(t=o.select)||void 0===t?void 0:t.value})),x=Xr((()=>e.componentSize)),$=Xr((()=>e.componentDisabled)),S=Xr((()=>{var t,n;return null!==(t=e.wave)&&void 0!==t?t:null===(n=o.wave)||void 0===n?void 0:n.value})),C={csp:l,autoInsertSpaceInButton:c,locale:u,direction:d,space:p,virtual:h,dropdownMatchSelectWidth:f,getPrefixCls:(t,n)=>{const{prefixCls:r="ant"}=e;if(n)return n;const i=r||o.getPrefixCls("");return t?`${i}-${t}`:i},iconPrefixCls:r,theme:Xr((()=>{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||wd)(t),getTargetContainer:g,getPopupContainer:m,pageHeader:v,input:b,pagination:y,form:O,select:w,componentSize:x,componentDisabled:$,transformCellText:Xr((()=>e.transformCellText)),wave:S},k=Xr((()=>{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);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["algorithm","token"]),r=t&&(!Array.isArray(t)||t.length>0)?Ns(t):void 0;return fl(fl({},o),{theme:r,token:fl(fl({},ju),n)})})),P=Xr((()=>{var t,n;let o={};return u.value&&(o=(null===(t=u.value.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(n=ts.Form)||void 0===n?void 0:n.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(o=fl(fl({},o),e.form.validateMessages)),o}));return(e=>{Eo(Va,e)})(C),Eo(Wa,{validateMessages:P}),Sd(x),Ga($),yn((()=>{d.value&&(wB.config({rtl:"rtl"===d.value}),WB.config({rtl:"rtl"===d.value}))})),()=>Sr(ns,{children:(t,o,r)=>(t=>{var o,r;let l=i.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 l}();l=Sr(sd,{value:k.value},{default:()=>[e]})}return Sr(_j,{locale:u.value||t,ANT_MARK__:Nj},{default:()=>[l]})})(r)},null)}});JB.config=e=>{UB&&UB(),UB=yn((()=>{fl(KB,it(e)),fl(GB,it(e))})),e.theme&&ZB(XB(),e.theme)},JB.install=function(e){e.component(JB.name,JB)};const eN=JB,tN=(e,t)=>{let{attrs:n,slots:o}=t;return Sr(zC,hl(hl({size:"small",type:"primary"},e),n),o)},nN=(e,t,n)=>{const o=Sl(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},oN=e=>Zu(e,((t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:i,darkColor:l}=n;return{[`${e.componentCls}-${t}`]:{color:o,background:i,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})),rN=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r}=e,i=o-n,l=t-n;return{[r]:fl(fl({},Yu(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,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:l,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:i}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},iN=Ju("Tag",(e=>{const{fontSize:t,lineHeight:n,lineWidth:o,fontSizeIcon:r}=e,i=Math.round(t*n),l=nd(e,{tagFontSize:e.fontSizeSM,tagLineHeight:i-2*o,tagDefaultBg:e.colorFillAlter,tagDefaultColor:e.colorText,tagIconSize:r-2*o,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[rN(l),oN(l),nN(l,"success","Success"),nN(l,"processing","Info"),nN(l,"error","Error"),nN(l,"warning","Warning")]})),lN=Ln({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:i}=Cd("tag",e),[l,a]=iN(i),s=t=>{const{checked:n}=e;o("update:checked",!n),o("change",!n),o("click",t)},c=Xr((()=>Tl(i.value,a.value,{[`${i.value}-checkable`]:!0,[`${i.value}-checkable-checked`]:e.checked})));return()=>{var e;return l(Sr("span",hl(hl({},r),{},{class:[c.value,r.class],onClick:s}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}}),aN=Ln({compatConfig:{MODE:3},name:"ATag",inheritAttrs:!1,props:{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:xp.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},onClick:Ca(),"onUpdate:visible":Function,icon:xp.any,bordered:{type:Boolean,default:!0}},slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{prefixCls:i,direction:l}=Cd("tag",e),[a,s]=iN(i),c=wt(!0);yn((()=>{void 0!==e.visible&&(c.value=e.visible)}));const u=t=>{t.stopPropagation(),o("update:visible",!1),o("close",t),t.defaultPrevented||void 0===e.visible&&(c.value=!1)},d=Xr((()=>{return mS(e.color)||(t=e.color,gS.includes(t));var t})),p=Xr((()=>Tl(i.value,s.value,{[`${i.value}-${e.color}`]:d.value,[`${i.value}-has-color`]:e.color&&!d.value,[`${i.value}-hidden`]:!c.value,[`${i.value}-rtl`]:"rtl"===l.value,[`${i.value}-borderless`]:!e.bordered}))),h=e=>{o("click",e)};return()=>{var t,o,l;const{icon:s=(null===(t=n.icon)||void 0===t?void 0:t.call(n)),color:c,closeIcon:f=(null===(o=n.closeIcon)||void 0===o?void 0:o.call(n)),closable:g=!1}=e,m={backgroundColor:c&&!d.value?c:void 0},v=s||null,b=null===(l=n.default)||void 0===l?void 0:l.call(n),y=v?Sr(lr,null,[v,Sr("span",null,[b])]):b,O=void 0!==e.onClick,w=Sr("span",hl(hl({},r),{},{onClick:h,class:[p.value,r.class],style:[m,r.style]}),[y,g?f?Sr("span",{class:`${i.value}-close-icon`,onClick:u},[f]):Sr(qb,{class:`${i.value}-close-icon`,onClick:u},null):null]);return a(O?Sr(eC,null,{default:()=>[w]}):w)}}});aN.CheckableTag=lN,aN.install=function(e){return e.component(aN.name,aN),e.component(lN.name,lN),e};const sN=aN,cN={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 uN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){dN(e,t,n[t])}))}return e}function dN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pN=function(e,t){var n=uN({},e,t.attrs);return Sr(Rb,uN({},n,{icon:cN}),null)};pN.displayName="CalendarOutlined",pN.inheritAttrs=!1;const hN=pN,fN={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};function gN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){mN(e,t,n[t])}))}return e}function mN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vN=function(e,t){var n=gN({},e,t.attrs);return Sr(Rb,gN({},n,{icon:fN}),null)};vN.displayName="ClockCircleOutlined",vN.inheritAttrs=!1;const bN=vN;function yN(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function ON(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function wN(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function xN(){return{id:String,dropdownClassName:String,popupClassName:String,popupStyle:ka(),transitionName:String,placeholder:String,allowClear:Pa(),autofocus:Pa(),disabled:Pa(),tabindex:Number,open:Pa(),defaultOpen:Pa(),inputReadOnly:Pa(),format:Aa([String,Function,Array]),getPopupContainer:Ma(),panelRender:Ma(),onChange:Ma(),"onUpdate:value":Ma(),onOk:Ma(),onOpenChange:Ma(),"onUpdate:open":Ma(),onFocus:Ma(),onBlur:Ma(),onMousedown:Ma(),onMouseup:Ma(),onMouseenter:Ma(),onMouseleave:Ma(),onClick:Ma(),onContextmenu:Ma(),onKeydown:Ma(),role:String,name:String,autocomplete:String,direction:Ea(),showToday:Pa(),showTime:Aa([Boolean,Object]),locale:ka(),size:Ea(),bordered:Pa(),dateRender:Ma(),disabledDate:Ma(),mode:Ea(),picker:Ea(),valueFormat:String,placement:Ea(),status:Ea(),disabledHours:Ma(),disabledMinutes:Ma(),disabledSeconds:Ma()}}function $N(){return{defaultPickerValue:Aa([Object,String]),defaultValue:Aa([Object,String]),value:Aa([Object,String]),presets:Ia(),disabledTime:Ma(),renderExtraFooter:Ma(),showNow:Pa(),monthCellRender:Ma(),monthCellContentRender:Ma()}}function SN(){return{allowEmpty:Ia(),dateRender:Ma(),defaultPickerValue:Ia(),defaultValue:Ia(),value:Ia(),presets:Ia(),disabledTime:Ma(),disabled:Aa([Boolean,Array]),renderExtraFooter:Ma(),separator:{type:String},showTime:Aa([Boolean,Object]),ranges:ka(),placeholder:Ia(),mode:Ia(),onChange:Ma(),"onUpdate:value":Ma(),onCalendarChange:Ma(),onPanelChange:Ma(),onOk:Ma()}}function CN(e,t){function n(n,o){return Ln({compatConfig:{MODE:3},name:o,inheritAttrs:!1,props:fl(fl(fl({},xN()),$N()),t),slots:Object,setup(t,o){let{slots:r,expose:i,attrs:l,emit:a}=o;const s=t,c=gy(),u=vy.useInject(),{prefixCls:d,direction:p,getPopupContainer:h,size:f,rootPrefixCls:g,disabled:m}=Cd("picker",s),{compactSize:v,compactItemClassnames:b}=Nw(d,p),y=Xr((()=>v.value||f.value)),[O,w]=lI(d),x=Ot();i({focus:()=>{var e;null===(e=x.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=x.value)||void 0===e||e.blur()}});const $=t=>s.valueFormat?e.toString(t,s.valueFormat):t,S=(e,t)=>{const n=$(e);a("update:value",n),a("change",n,t),c.onFieldChange()},C=e=>{a("update:open",e),a("openChange",e)},k=e=>{a("focus",e)},P=e=>{a("blur",e),c.onFieldBlur()},M=(e,t)=>{const n=$(e);a("panelChange",n,t)},T=e=>{const t=$(e);a("ok",t)},[I]=os("DatePicker",Ja),E=Xr((()=>s.value?s.valueFormat?e.toDate(s.value,s.valueFormat):s.value:""===s.value?void 0:s.value)),A=Xr((()=>s.defaultValue?s.valueFormat?e.toDate(s.defaultValue,s.valueFormat):s.defaultValue:""===s.defaultValue?void 0:s.defaultValue)),R=Xr((()=>s.defaultPickerValue?s.valueFormat?e.toDate(s.defaultPickerValue,s.valueFormat):s.defaultPickerValue:""===s.defaultPickerValue?void 0:s.defaultPickerValue));return()=>{var t,o,i,a,f,v;const $=fl(fl({},I.value),s.locale),D=fl(fl({},s),l),{bordered:j=!0,placeholder:B,suffixIcon:N=(null===(t=r.suffixIcon)||void 0===t?void 0:t.call(r)),showToday:z=!0,transitionName:_,allowClear:L=!0,dateRender:Q=r.dateRender,renderExtraFooter:H=r.renderExtraFooter,monthCellRender:F=r.monthCellRender||s.monthCellContentRender||r.monthCellContentRender,clearIcon:W=(null===(o=r.clearIcon)||void 0===o?void 0:o.call(r)),id:V=c.id.value}=D,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(D,["bordered","placeholder","suffixIcon","showToday","transitionName","allowClear","dateRender","renderExtraFooter","monthCellRender","clearIcon","id"]),X=""===D.showTime||D.showTime,{format:Y}=D;let K={};n&&(K.picker=n);const G=n||D.picker||"date";K=fl(fl(fl({},K),X?RN(fl({format:Y,picker:G},"object"==typeof X?X:{})):{}),"time"===G?RN(fl(fl({format:Y},Z),{picker:G})):{});const U=d.value,q=Sr(lr,null,[N||Sr("time"===n?bN:hN,null,null),u.hasFeedback&&u.feedbackIcon]);return O(Sr(iT,hl(hl(hl({monthCellRender:F,dateRender:Q,renderExtraFooter:H,ref:x,placeholder:yN($,G,B),suffixIcon:q,dropdownAlign:wN(p.value,s.placement),clearIcon:W||Sr(oy,null,null),allowClear:L,transitionName:_||`${g.value}-slide-up`},Z),K),{},{id:V,picker:G,value:E.value,defaultValue:A.value,defaultPickerValue:R.value,showToday:z,locale:$.lang,class:Tl({[`${U}-${y.value}`]:y.value,[`${U}-borderless`]:!j},yy(U,Oy(u.status,s.status),u.hasFeedback),l.class,w.value,b.value),disabled:m.value,prefixCls:U,getPopupContainer:l.getCalendarContainer||h.value,generateConfig:e,prevIcon:(null===(i=r.prevIcon)||void 0===i?void 0:i.call(r))||Sr("span",{class:`${U}-prev-icon`},null),nextIcon:(null===(a=r.nextIcon)||void 0===a?void 0:a.call(r))||Sr("span",{class:`${U}-next-icon`},null),superPrevIcon:(null===(f=r.superPrevIcon)||void 0===f?void 0:f.call(r))||Sr("span",{class:`${U}-super-prev-icon`},null),superNextIcon:(null===(v=r.superNextIcon)||void 0===v?void 0:v.call(r))||Sr("span",{class:`${U}-super-next-icon`},null),components:AN,direction:p.value,dropdownClassName:Tl(w.value,s.popupClassName,s.dropdownClassName),onChange:S,onOpenChange:C,onFocus:k,onBlur:P,onPanelChange:M,onOk:T}),null))}}})}return{DatePicker:n(void 0,"ADatePicker"),WeekPicker:n("week","AWeekPicker"),MonthPicker:n("month","AMonthPicker"),YearPicker:n("year","AYearPicker"),TimePicker:n("time","TimePicker"),QuarterPicker:n("quarter","AQuarterPicker")}}const kN={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};function PN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){MN(e,t,n[t])}))}return e}function MN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var TN=function(e,t){var n=PN({},e,t.attrs);return Sr(Rb,PN({},n,{icon:kN}),null)};TN.displayName="SwapRightOutlined",TN.inheritAttrs=!1;const IN=TN;function EN(e,t){return Ln({compatConfig:{MODE:3},name:"ARangePicker",inheritAttrs:!1,props:fl(fl(fl({},xN()),SN()),t),slots:Object,setup(t,n){let{expose:o,slots:r,attrs:i,emit:l}=n;const a=t,s=gy(),c=vy.useInject(),{prefixCls:u,direction:d,getPopupContainer:p,size:h,rootPrefixCls:f,disabled:g}=Cd("picker",a),{compactSize:m,compactItemClassnames:v}=Nw(u,d),b=Xr((()=>m.value||h.value)),[y,O]=lI(u),w=Ot();o({focus:()=>{var e;null===(e=w.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=w.value)||void 0===e||e.blur()}});const x=t=>a.valueFormat?e.toString(t,a.valueFormat):t,$=(e,t)=>{const n=x(e);l("update:value",n),l("change",n,t),s.onFieldChange()},S=e=>{l("update:open",e),l("openChange",e)},C=e=>{l("focus",e)},k=e=>{l("blur",e),s.onFieldBlur()},P=(e,t)=>{const n=x(e);l("panelChange",n,t)},M=e=>{const t=x(e);l("ok",t)},T=(e,t,n)=>{const o=x(e);l("calendarChange",o,t,n)},[I]=os("DatePicker",Ja),E=Xr((()=>a.value&&a.valueFormat?e.toDate(a.value,a.valueFormat):a.value)),A=Xr((()=>a.defaultValue&&a.valueFormat?e.toDate(a.defaultValue,a.valueFormat):a.defaultValue)),R=Xr((()=>a.defaultPickerValue&&a.valueFormat?e.toDate(a.defaultPickerValue,a.valueFormat):a.defaultPickerValue));return()=>{var t,n,o,l,h,m,x;const D=fl(fl({},I.value),a.locale),j=fl(fl({},a),i),{prefixCls:B,bordered:N=!0,placeholder:z,suffixIcon:_=(null===(t=r.suffixIcon)||void 0===t?void 0:t.call(r)),picker:L="date",transitionName:Q,allowClear:H=!0,dateRender:F=r.dateRender,renderExtraFooter:W=r.renderExtraFooter,separator:V=(null===(n=r.separator)||void 0===n?void 0:n.call(r)),clearIcon:Z=(null===(o=r.clearIcon)||void 0===o?void 0:o.call(r)),id:X=s.id.value}=j,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(j,["prefixCls","bordered","placeholder","suffixIcon","picker","transitionName","allowClear","dateRender","renderExtraFooter","separator","clearIcon","id"]);delete Y["onUpdate:value"],delete Y["onUpdate:open"];const{format:K,showTime:G}=j;let U={};U=fl(fl(fl({},U),G?RN(fl({format:K,picker:L},G)):{}),"time"===L?RN(fl(fl({format:K},kd(Y,["disabledTime"])),{picker:L})):{});const q=u.value,J=Sr(lr,null,[_||Sr("time"===L?bN:hN,null,null),c.hasFeedback&&c.feedbackIcon]);return y(Sr(yT,hl(hl(hl({dateRender:F,renderExtraFooter:W,separator:V||Sr("span",{"aria-label":"to",class:`${q}-separator`},[Sr(IN,null,null)]),ref:w,dropdownAlign:wN(d.value,a.placement),placeholder:ON(D,L,z),suffixIcon:J,clearIcon:Z||Sr(oy,null,null),allowClear:H,transitionName:Q||`${f.value}-slide-up`},Y),U),{},{disabled:g.value,id:X,value:E.value,defaultValue:A.value,defaultPickerValue:R.value,picker:L,class:Tl({[`${q}-${b.value}`]:b.value,[`${q}-borderless`]:!N},yy(q,Oy(c.status,a.status),c.hasFeedback),i.class,O.value,v.value),locale:D.lang,prefixCls:q,getPopupContainer:i.getCalendarContainer||p.value,generateConfig:e,prevIcon:(null===(l=r.prevIcon)||void 0===l?void 0:l.call(r))||Sr("span",{class:`${q}-prev-icon`},null),nextIcon:(null===(h=r.nextIcon)||void 0===h?void 0:h.call(r))||Sr("span",{class:`${q}-next-icon`},null),superPrevIcon:(null===(m=r.superPrevIcon)||void 0===m?void 0:m.call(r))||Sr("span",{class:`${q}-super-prev-icon`},null),superNextIcon:(null===(x=r.superNextIcon)||void 0===x?void 0:x.call(r))||Sr("span",{class:`${q}-super-next-icon`},null),components:AN,direction:d.value,dropdownClassName:Tl(O.value,a.popupClassName,a.dropdownClassName),onChange:$,onOpenChange:S,onFocus:C,onBlur:k,onPanelChange:P,onOk:M,onCalendarChange:T}),null))}}})}const AN={button:tN,rangeItem:function(e,t){let{slots:n,attrs:o}=t;return Sr(sN,hl(hl({color:"blue"},e),o),n)}};function RN(e){const{format:t,picker:n,showHour:o,showMinute:r,showSecond:i,use12Hours:l}=e,a=(s=t,s?Array.isArray(s)?s:[s]:[])[0];var s;const c=fl({},e);return a&&"string"==typeof a&&(a.includes("s")||void 0!==i||(c.showSecond=!1),a.includes("m")||void 0!==r||(c.showMinute=!1),a.includes("H")||a.includes("h")||void 0!==o||(c.showHour=!1),(a.includes("a")||a.includes("A"))&&void 0===l&&(c.use12Hours=!0)),"time"===n?c:("function"==typeof a&&delete c.format,{showTime:c})}function DN(e,t){const{DatePicker:n,WeekPicker:o,MonthPicker:r,YearPicker:i,TimePicker:l,QuarterPicker:a}=CN(e,t);return{DatePicker:n,WeekPicker:o,MonthPicker:r,YearPicker:i,TimePicker:l,QuarterPicker:a,RangePicker:EN(e,t)}}const{DatePicker:jN,WeekPicker:BN,MonthPicker:NN,YearPicker:zN,TimePicker:_N,QuarterPicker:LN,RangePicker:QN}=DN(RP),HN=fl(jN,{WeekPicker:BN,MonthPicker:NN,YearPicker:zN,RangePicker:QN,TimePicker:_N,QuarterPicker:LN,install:e=>(e.component(jN.name,jN),e.component(QN.name,QN),e.component(NN.name,NN),e.component(BN.name,BN),e.component(LN.name,LN),e)});function FN(e){return null!=e}const WN=e=>{const{itemPrefixCls:t,component:n,span:o,labelStyle:r,contentStyle:i,bordered:l,label:a,content:s,colon:c}=e,u=n;return l?Sr(u,{class:[{[`${t}-item-label`]:FN(a),[`${t}-item-content`]:FN(s)}],colSpan:o},{default:()=>[FN(a)&&Sr("span",{style:r},[a]),FN(s)&&Sr("span",{style:i},[s])]}):Sr(u,{class:[`${t}-item`],colSpan:o},{default:()=>[Sr("div",{class:`${t}-item-container`},[(a||0===a)&&Sr("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!c}],style:r},[a]),(s||0===s)&&Sr("span",{class:`${t}-item-content`,style:i},[s])])]})},VN=e=>{const t=(e,t,n)=>{let{colon:o,prefixCls:r,bordered:i}=t,{component:l,type:a,showLabel:s,showContent:c,labelStyle:u,contentStyle:d}=n;return e.map(((e,t)=>{var n,p;const h=e.props||{},{prefixCls:f=r,span:g=1,labelStyle:m=h["label-style"],contentStyle:v=h["content-style"],label:b=(null===(p=null===(n=e.children)||void 0===n?void 0:n.label)||void 0===p?void 0:p.call(n))}=h,y=ra(e),O=function(e){const t=((br(e)?e.props:e.$attrs)||{}).class||{};let n={};return"string"==typeof t?t.split(" ").forEach((e=>{n[e.trim()]=!0})):Array.isArray(t)?Tl(t).split(" ").forEach((e=>{n[e.trim()]=!0})):n=fl(fl({},n),t),n}(e),w=ca(e),{key:x}=e;return"string"==typeof l?Sr(WN,{key:`${a}-${String(x)||t}`,class:O,style:w,labelStyle:fl(fl({},u),m),contentStyle:fl(fl({},d),v),span:g,colon:o,component:l,itemPrefixCls:f,bordered:i,label:s?b:null,content:c?y:null},null):[Sr(WN,{key:`label-${String(x)||t}`,class:O,style:fl(fl(fl({},u),w),m),span:1,colon:o,component:l[0],itemPrefixCls:f,bordered:i,label:b},null),Sr(WN,{key:`content-${String(x)||t}`,class:O,style:fl(fl(fl({},d),w),v),span:2*g-1,component:l[1],itemPrefixCls:f,bordered:i,content:y},null)]}))},{prefixCls:n,vertical:o,row:r,index:i,bordered:l}=e,{labelStyle:a,contentStyle:s}=Ao(qN,{labelStyle:Ot({}),contentStyle:Ot({})});return o?Sr(lr,null,[Sr("tr",{key:`label-${i}`,class:`${n}-row`},[t(r,e,{component:"th",type:"label",showLabel:!0,labelStyle:a.value,contentStyle:s.value})]),Sr("tr",{key:`content-${i}`,class:`${n}-row`},[t(r,e,{component:"td",type:"content",showContent:!0,labelStyle:a.value,contentStyle:s.value})])]):Sr("tr",{key:i,class:`${n}-row`},[t(r,e,{component:l?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:a.value,contentStyle:s.value})])},ZN=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:o,descriptionsMiddlePadding:r,descriptionsBg:i}=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:i,"&::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}}}}},XN=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:r,descriptionsItemLabelColonMarginLeft:i,descriptionsTitleMarginBottom:l}=e;return{[t]:fl(fl(fl({},Yu(e)),ZN(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:fl(fl({},Xu),{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:`${i}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}}}})}},YN=Ju("Descriptions",(e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,o=e.colorText,r=`${e.paddingXS}px ${e.padding}px`,i=`${e.padding}px ${e.paddingLG}px`,l=`${e.paddingSM}px ${e.paddingLG}px`,a=nd(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:o,descriptionItemPaddingBottom:e.padding,descriptionsSmallPadding:r,descriptionsDefaultPadding:i,descriptionsMiddlePadding:l,descriptionsItemLabelColonMarginRight:e.marginXS,descriptionsItemLabelColonMarginLeft:e.marginXXS/2});return[XN(a)]}));xp.any;const KN=Ln({compatConfig:{MODE:3},name:"ADescriptionsItem",props:{prefixCls:String,label:xp.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)}}}),GN={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function UN(e,t,n){let o=e;return(void 0===n||n>t)&&(o=Zh(e,{span:t}),Rs()),o}const qN=Symbol("descriptionsContext"),JN=Ln({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:{prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:xp.any,extra:xp.any,column:{type:[Number,Object],default:()=>GN},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}},slots:Object,Item:KN,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Cd("descriptions",e);let l;const a=Ot({}),[s,c]=YN(r),u=X$();Kn((()=>{l=u.value.subscribe((t=>{"object"==typeof e.column&&(a.value=t)}))})),Jn((()=>{u.value.unsubscribe(l)})),Eo(qN,{labelStyle:Et(e,"labelStyle"),contentStyle:Et(e,"contentStyle")});const d=Xr((()=>function(e,t){if("number"==typeof e)return e;if("object"==typeof e)for(let n=0;n<Z$.length;n++){const o=Z$[n];if(t[o]&&void 0!==e[o])return e[o]||GN[o]}return 3}(e.column,a.value)));return()=>{var t,l,a;const{size:u,bordered:p=!1,layout:h="horizontal",colon:f=!0,title:g=(null===(t=n.title)||void 0===t?void 0:t.call(n)),extra:m=(null===(l=n.extra)||void 0===l?void 0:l.call(n))}=e,v=function(e,t){const n=oa(e),o=[];let r=[],i=t;return n.forEach(((e,l)=>{var a;const s=null===(a=e.props)||void 0===a?void 0:a.span,c=s||1;if(l===n.length-1)return r.push(UN(e,i,s)),void o.push(r);c<i?(i-=c,r.push(e)):(r.push(UN(e,i,c)),o.push(r),i=t,r=[])})),o}(null===(a=n.default)||void 0===a?void 0:a.call(n),d.value);return s(Sr("div",hl(hl({},o),{},{class:[r.value,{[`${r.value}-${u}`]:"default"!==u,[`${r.value}-bordered`]:!!p,[`${r.value}-rtl`]:"rtl"===i.value},o.class,c.value]}),[(g||m)&&Sr("div",{class:`${r.value}-header`},[g&&Sr("div",{class:`${r.value}-title`},[g]),m&&Sr("div",{class:`${r.value}-extra`},[m])]),Sr("div",{class:`${r.value}-view`},[Sr("table",null,[Sr("tbody",null,[v.map(((e,t)=>Sr(VN,{key:t,index:t,colon:f,prefixCls:r.value,vertical:"vertical"===h,bordered:p,row:e},null)))])])])]))}}});JN.install=function(e){return e.component(JN.name,JN),e.component(JN.Item.name,JN.Item),e};const ez=JN,tz=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r}=e;return{[t]:fl(fl({},Yu(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}}})}},nz=Ju("Divider",(e=>{const t=nd(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[tz(t)]}),{sizePaddingEdgeHorizontal:0}),oz=Sa(Ln({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:i}=Cd("divider",e),[l,a]=nz(r),s=Xr((()=>"left"===e.orientation&&null!=e.orientationMargin)),c=Xr((()=>"right"===e.orientation&&null!=e.orientationMargin)),u=Xr((()=>{const{type:t,dashed:n,plain:o}=e,l=r.value;return{[l]:!0,[a.value]:!!a.value,[`${l}-${t}`]:!0,[`${l}-dashed`]:!!n,[`${l}-plain`]:!!o,[`${l}-rtl`]:"rtl"===i.value,[`${l}-no-default-orientation-margin-left`]:s.value,[`${l}-no-default-orientation-margin-right`]:c.value}})),d=Xr((()=>{const t="number"==typeof e.orientationMargin?`${e.orientationMargin}px`:e.orientationMargin;return fl(fl({},s.value&&{marginLeft:t}),c.value&&{marginRight:t})})),p=Xr((()=>e.orientation.length>0?"-"+e.orientation:e.orientation));return()=>{var e;const t=oa(null===(e=n.default)||void 0===e?void 0:e.call(n));return l(Sr("div",hl(hl({},o),{},{class:[u.value,t.length?`${r.value}-with-text ${r.value}-with-text${p.value}`:"",o.class],role:"separator"}),[t.length?Sr("span",{class:`${r.value}-inner-text`,style:d.value},[t]):null]))}}}));ak.Button=UC,ak.install=function(e){return e.component(ak.name,ak),e.component(UC.name,UC),e};const rz=()=>({prefixCls:String,width:xp.oneOfType([xp.string,xp.number]),height:xp.oneOfType([xp.string,xp.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:ka(),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:Ia(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:Ma(),maskMotion:ka()});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 iz=!("undefined"!=typeof window&&window.document&&window.document.createElement),lz=Ln({compatConfig:{MODE:3},inheritAttrs:!1,props:fl(fl({},rz()),{getContainer:Function,getOpenCount:Function,scrollLocker:xp.any,inline:Boolean}),emits:["close","handleClick","change"],setup(e,t){let{emit:n,slots:o}=t;const r=wt(),i=wt(),l=wt(),a=wt(),s=wt();let c=[];Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()).toString())).toString(16),Gn((()=>{Vt((()=>{var t;const{open:n,getContainer:o,showMask:r,autofocus:i}=e,l=null==o?void 0:o();f(e),n&&(l&&(l.parentNode,document.body),Vt((()=>{i&&u()})),r&&(null===(t=e.scrollLocker)||void 0===t||t.lock()))}))})),wn((()=>e.level),(()=>{f(e)}),{flush:"post"}),wn((()=>e.open),(()=>{const{open:t,getContainer:n,scrollLocker:o,showMask:r,autofocus:i}=e,l=null==n?void 0:n();l&&(l.parentNode,document.body),t?(i&&u(),r&&(null==o||o.lock())):null==o||o.unLock()}),{flush:"post"}),eo((()=>{var t;const{open:n}=e;n&&(document.body.style.touchAction=""),null===(t=e.scrollLocker)||void 0===t||t.unLock()})),wn((()=>e.placement),(e=>{e&&(s.value=null)}));const u=()=>{var e,t;null===(t=null===(e=i.value)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)},d=e=>{n("close",e)},p=e=>{e.keyCode===Tm.ESC&&(e.stopPropagation(),d(e))},h=()=>{const{open:t,afterVisibleChange:n}=e;n&&n(!!t)},f=e=>{let{level:t,getContainer:n}=e;if(iz)return;const o=null==n?void 0:n(),r=o?o.parentNode:null;var i;c=[],"all"===t?(r?Array.prototype.slice.call(r.children):[]).forEach((e=>{"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&"LINK"!==e.nodeName&&e!==o&&c.push(e)})):t&&(i=t,Array.isArray(i)?i:[i]).forEach((e=>{document.querySelectorAll(e).forEach((e=>{c.push(e)}))}))},g=e=>{n("handleClick",e)},m=wt(!1);return wn(i,(()=>{Vt((()=>{m.value=!0}))})),()=>{var t,n;const{width:c,height:u,open:f,prefixCls:v,placement:b,level:y,levelMove:O,ease:w,duration:x,getContainer:$,onChange:S,afterVisibleChange:C,showMask:k,maskClosable:P,maskStyle:M,keyboard:T,getOpenCount:I,scrollLocker:E,contentWrapperStyle:A,style:R,class:D,rootClassName:j,rootStyle:B,maskMotion:N,motion:z,inline:_}=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class","rootClassName","rootStyle","maskMotion","motion","inline"]),Q=f&&m.value,H=Tl(v,{[`${v}-${b}`]:!0,[`${v}-open`]:Q,[`${v}-inline`]:_,"no-mask":!k,[j]:!0}),F="function"==typeof z?z(b):z;return Sr("div",hl(hl({},kd(L,["autofocus"])),{},{tabindex:-1,class:H,style:B,ref:i,onKeydown:Q&&T?p:void 0}),[Sr(ni,N,{default:()=>[k&&kn(Sr("div",{class:`${v}-mask`,onClick:P?d:void 0,style:M,ref:l},null),[[yi,Q]])]}),Sr(ni,hl(hl({},F),{},{onAfterEnter:h,onAfterLeave:h}),{default:()=>[kn(Sr("div",{class:`${v}-content-wrapper`,style:[A],ref:r},[Sr("div",{class:[`${v}-content`,D],style:R,ref:s},[null===(t=o.default)||void 0===t?void 0:t.call(o)]),o.handler?Sr("div",{onClick:g,ref:a},[null===(n=o.handler)||void 0===n?void 0:n.call(o)]):null]),[[yi,Q]])]})])}}});var az=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const sz=Ln({compatConfig:{MODE:3},inheritAttrs:!1,props:Jl(fl(fl({},rz()),{forceRender:{type:Boolean,default:void 0},getContainer:xp.oneOfType([xp.string,xp.func,xp.object,xp.looseBool])}),{prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",afterVisibleChange:()=>{},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=Ot(null),i=e=>{n("handleClick",e)},l=e=>{n("close",e)};return()=>{const{getContainer:t,wrapperClassName:n,rootClassName:a,rootStyle:s,forceRender:c}=e,u=az(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let d=null;if(!t)return Sr(lz,hl(hl({},u),{},{rootClassName:a,rootStyle:s,open:e.open,onClose:l,onHandleClick:i,inline:!0}),o);const p=!!o.handler||c;return(p||e.open||r.value)&&(d=Sr(Cm,{autoLock:!0,visible:e.open,forceRender:p,getContainer:t,wrapperClassName:n},{default:t=>{var{visible:n,afterClose:c}=t,d=az(t,["visible","afterClose"]);return Sr(lz,hl(hl(hl({ref:r},u),d),{},{rootClassName:a,rootStyle:s,open:void 0!==n?n:e.open,afterVisibleChange:void 0!==c?c:e.afterVisibleChange,onClose:l,onHandleClick:i}),o)}})),d}}}),cz=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%)"}}}]}}}},uz=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:o,colorBgElevated:r,motionDurationSlow:i,motionDurationMid:l,padding:a,paddingLG:s,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:p,colorSplit:h,marginSM:f,colorIcon:g,colorIconHover:m,colorText:v,fontWeightStrong:b,drawerFooterPaddingVertical:y,drawerFooterPaddingHorizontal:O}=e,w=`${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"},[w]:{position:"absolute",zIndex:n,transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${w}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${w}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${w}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${w}`]:{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} ${h}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:f,color:g,fontWeight:b,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${l}`,textRendering:"auto","&:focus, &:hover":{color:m,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:v,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 ${O}px`,borderTop:`${d}px ${p} ${h}`},"&-rtl":{direction:"rtl"}}}},dz=Ju("Drawer",(e=>{const t=nd(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[uz(t),cz(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase}))),pz=["top","right","bottom","left"],hz={distance:180},fz=Sa(Ln({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:Jl({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:xp.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:ka(),rootClassName:String,rootStyle:ka(),size:{type:String},drawerStyle:ka(),headerStyle:ka(),bodyStyle:ka(),contentWrapperStyle:{type:Object,default:void 0},title:xp.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:xp.oneOfType([xp.string,xp.number]),height:xp.oneOfType([xp.string,xp.number]),zIndex:Number,prefixCls:String,push:xp.oneOfType([xp.looseBool,{type:Object}]),placement:xp.oneOf(pz),keyboard:{type:Boolean,default:void 0},extra:xp.any,footer:xp.any,footerStyle:ka(),level:xp.any,levelMove:{type:[Number,Array,Function]},handle:xp.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:hz}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const i=wt(!1),l=wt(!1),a=wt(null),s=wt(!1),c=wt(!1),u=Xr((()=>{var t;return null!==(t=e.open)&&void 0!==t?t:e.visible}));wn(u,(()=>{u.value?s.value=!0:c.value=!1}),{immediate:!0}),wn([u,s],(()=>{u.value&&s.value&&(c.value=!0)}),{immediate:!0});const d=Ao("parentDrawerOpts",null),{prefixCls:p,getPopupContainer:h,direction:f}=Cd("drawer",e),[g,m]=dz(p),v=Xr((()=>void 0===e.getContainer&&(null==h?void 0:h.value)?()=>h.value(document.body):e.getContainer));Sp(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Eo("parentDrawerOpts",{setPush:()=>{i.value=!0},setPull:()=>{i.value=!1,Vt((()=>{b()}))}}),Gn((()=>{u.value&&d&&d.setPush()})),eo((()=>{d&&d.setPull()})),wn(c,(()=>{d&&(c.value?d.setPush():d.setPull())}),{flush:"post"});const b=()=>{var e,t;null===(t=null===(e=a.value)||void 0===e?void 0:e.domFocus)||void 0===t||t.call(e)},y=e=>{n("update:visible",!1),n("update:open",!1),n("close",e)},O=t=>{var o;t||(!1===l.value&&(l.value=!0),e.destroyOnClose&&(s.value=!1)),null===(o=e.afterVisibleChange)||void 0===o||o.call(e,t),n("afterVisibleChange",t),n("afterOpenChange",t)},w=Xr((()=>{const{push:t,placement:n}=e;let o;return o="boolean"==typeof t?t?hz.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})),x=Xr((()=>{var t;return null!==(t=e.width)&&void 0!==t?t:"large"===e.size?736:378})),$=Xr((()=>{var t;return null!==(t=e.height)&&void 0!==t?t:"large"===e.size?736:378})),S=Xr((()=>{const{mask:t,placement:n}=e;if(!c.value&&!t)return{};const o={};return"left"===n||"right"===n?o.width=HS(x.value)?`${x.value}px`:x.value:o.height=HS($.value)?`${$.value}px`:$.value,o})),C=Xr((()=>{const{zIndex:t,contentWrapperStyle:n}=e,o=S.value;return[{zIndex:t,transform:i.value?w.value:void 0},fl({},n),o]})),k=t=>{const{closable:n,headerStyle:r}=e,i=fa(o,e,"extra"),l=fa(o,e,"title");return l||n?Sr("div",{class:Tl(`${t}-header`,{[`${t}-header-close-only`]:n&&!l&&!i}),style:r},[Sr("div",{class:`${t}-header-title`},[P(t),l&&Sr("div",{class:`${t}-title`},[l])]),i&&Sr("div",{class:`${t}-extra`},[i])]):null},P=t=>{var n;const{closable:r}=e,i=o.closeIcon?null===(n=o.closeIcon)||void 0===n?void 0:n.call(o):e.closeIcon;return r&&Sr("button",{key:"closer",onClick:y,"aria-label":"Close",class:`${t}-close`},[void 0===i?Sr(qb,null,null):i])},M=t=>{const n=fa(o,e,"footer");return n?Sr("div",{class:`${t}-footer`,style:e.footerStyle},[n]):null},T=Xr((()=>Tl({"no-mask":!e.mask,[`${p.value}-rtl`]:"rtl"===f.value},e.rootClassName,m.value))),I=Xr((()=>im(am(p.value,"mask-motion")))),E=e=>im(am(p.value,`panel-motion-${e}`));return()=>{const{width:t,height:n,placement:i,mask:u,forceRender:d}=e,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["width","height","placement","mask","forceRender"]),f=fl(fl(fl({},r),kd(h,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:d,onClose:y,afterVisibleChange:O,handler:!1,prefixCls:p.value,open:c.value,showMask:u,placement:i,ref:a});return g(Sr(zw,null,{default:()=>[Sr(sz,hl(hl({},f),{},{maskMotion:I.value,motion:E,width:x.value,height:$.value,getContainer:v.value,rootClassName:T.value,rootStyle:e.rootStyle,contentWrapperStyle:C.value}),{handler:e.handle?()=>e.handle:o.handle,default:()=>(t=>{var n;if(l.value&&!e.forceRender&&!s.value)return null;const{bodyStyle:r,drawerStyle:i}=e;return Sr("div",{class:`${t}-wrapper-body`,style:i},[k(t),Sr("div",{key:"body",class:`${t}-body`,style:r},[null===(n=o.default)||void 0===n?void 0:n.call(o)]),M(t)])})(p.value)})]}))}}})),gz={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 mz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){vz(e,t,n[t])}))}return e}function vz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bz=function(e,t){var n=mz({},e,t.attrs);return Sr(Rb,mz({},n,{icon:gz}),null)};bz.displayName="FileTextOutlined",bz.inheritAttrs=!1;const yz=bz,Oz=()=>({prefixCls:String,description:xp.any,type:Ea("default"),shape:Ea("circle"),tooltip:xp.any,href:String,target:Ma(),badge:ka(),onClick:Ma()}),wz=Ln({compatConfig:{MODE:3},name:"AFloatButtonContent",inheritAttrs:!1,props:{prefixCls:Ea()},setup(e,t){let{attrs:n,slots:o}=t;return()=>{var t;const{prefixCls:r}=e,i=da(null===(t=o.description)||void 0===t?void 0:t.call(o));return Sr("div",hl(hl({},n),{},{class:[n.class,`${r}-content`]}),[o.icon||i.length?Sr(lr,null,[o.icon&&Sr("div",{class:`${r}-icon`},[o.icon()]),i.length?Sr("div",{class:`${r}-description`},[i]):null]):Sr("div",{class:`${r}-icon`},[Sr(yz,null,null)])])}}}),xz=Symbol("floatButtonGroupContext"),$z=()=>Ao(xz,{shape:Ot()}),Sz=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2),Cz=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:r}=e,i=`${t}-group`,l=new Xc("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 Xc("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[{[`${i}-wrap`]:fl({},Fw(`${i}-wrap`,l,a,o,!0))},{[`${i}-wrap`]:{[`\n &${i}-wrap-enter,\n &${i}-wrap-appear\n `]:{opacity:0,animationTimingFunction:r},[`&${i}-wrap-leave`]:{animationTimingFunction:r}}}]},kz=e=>{const{antCls:t,componentCls:n,floatButtonSize:o,margin:r,borderRadiusLG:i,borderRadiusSM:l,badgeOffset:a,floatButtonBodyPadding:s}=e,c=`${n}-group`;return{[c]:fl(fl({},Yu(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:o,height:"auto",boxShadow:"none",minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:i,[`${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:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&: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:i,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:s,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&: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:l}}}}},Pz=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:r,floatButtonSize:i,borderRadiusLG:l,badgeOffset:a,dotOffsetInSquare:s,dotOffsetInCircle:c}=e;return{[n]:fl(fl({},Yu(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",justifyContent:"center",alignItems:"center",width:i,height:i,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:i,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:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:i,borderRadius:l,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{height:"auto",borderRadius:l}},[`${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}}}}}},Mz=Ju("FloatButton",(e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:o,marginXXL:r,marginLG:i,fontSize:l,fontSizeIcon:a,controlItemBgHover:s,paddingXXS:c,borderRadiusLG:u}=e,d=nd(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:s,floatButtonFontSize:l,floatButtonIconSize:1.5*a,floatButtonSize:o,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:i,floatButtonBodySize:o-2*c,floatButtonBodyPadding:c,badgeOffset:1.5*c,dotOffsetInCircle:Sz(o/2),dotOffsetInSquare:Sz(u)});return[kz(d),Pz(d),Zw(e),Cz(d)]})),Tz="float-btn",Iz=Ln({compatConfig:{MODE:3},name:"AFloatButton",inheritAttrs:!1,props:Jl(Oz(),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:i}=Cd(Tz,e),[l,a]=Mz(r),{shape:s}=$z(),c=Ot(null),u=Xr((()=>(null==s?void 0:s.value)||e.shape));return()=>{var t;const{prefixCls:s,type:d="default",shape:p="circle",description:h=(null===(t=o.description)||void 0===t?void 0:t.call(o)),tooltip:f,badge:g={}}=e,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","type","shape","description","tooltip","badge"]),v=Tl(r.value,`${r.value}-${d}`,`${r.value}-${u.value}`,{[`${r.value}-rtl`]:"rtl"===i.value},n.class,a.value),b=Sr(xS,{placement:"left"},{title:o.tooltip||f?()=>o.tooltip&&o.tooltip()||f:void 0,default:()=>Sr(FS,g,{default:()=>[Sr("div",{class:`${r.value}-body`},[Sr(wz,{prefixCls:r.value},{icon:o.icon,description:()=>h})])]})});return l(e.href?Sr("a",hl(hl(hl({ref:c},n),m),{},{class:v}),[b]):Sr("button",hl(hl(hl({ref:c},n),m),{},{class:v,type:"button"}),[b]))}}}),Ez=Ln({compatConfig:{MODE:3},name:"AFloatButtonGroup",inheritAttrs:!1,props:Jl(fl(fl({},Oz()),{trigger:Ea(),open:Pa(),onOpenChange:Ma(),"onUpdate:open":Ma()}),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:o,emit:r}=t;const{prefixCls:i,direction:l}=Cd(Tz,e),[a,s]=Mz(i),[c,u]=Qv(!1,{value:Xr((()=>e.open))}),d=Ot(null),p=Ot(null);(e=>{Eo(xz,e)})({shape:Xr((()=>e.shape))});const h={onMouseenter(){var t;u(!0),r("update:open",!0),null===(t=e.onOpenChange)||void 0===t||t.call(e,!0)},onMouseleave(){var t;u(!1),r("update:open",!1),null===(t=e.onOpenChange)||void 0===t||t.call(e,!1)}},f=Xr((()=>"hover"===e.trigger?h:{})),g=t=>{var n,o,i;(null===(n=d.value)||void 0===n?void 0:n.contains(t.target))?(null===(o=ia(p.value))||void 0===o?void 0:o.contains(t.target))&&(()=>{var t;const n=!c.value;r("update:open",n),null===(t=e.onOpenChange)||void 0===t||t.call(e,n),u(n)})():(u(!1),r("update:open",!1),null===(i=e.onOpenChange)||void 0===i||i.call(e,!1))};return wn(Xr((()=>e.trigger)),(e=>{ms()&&(document.removeEventListener("click",g),"click"===e&&document.addEventListener("click",g))}),{immediate:!0}),Jn((()=>{document.removeEventListener("click",g)})),()=>{var t;const{shape:r="circle",type:u="default",tooltip:h,description:g,trigger:m}=e,v=`${i.value}-group`,b=Tl(v,s.value,n.class,{[`${v}-rtl`]:"rtl"===l.value,[`${v}-${r}`]:r,[`${v}-${r}-shadow`]:!m}),y=Tl(s.value,`${v}-wrap`),O=im(`${v}-wrap`);return a(Sr("div",hl(hl({ref:d},n),{},{class:b},f.value),[m&&["click","hover"].includes(m)?Sr(lr,null,[Sr(ni,O,{default:()=>[kn(Sr("div",{class:y},[o.default&&o.default()]),[[yi,c.value]])]}),Sr(Iz,{ref:p,type:u,shape:r,tooltip:h,description:g},{icon:()=>{var e,t;return c.value?(null===(e=o.closeIcon)||void 0===e?void 0:e.call(o))||Sr(qb,null,null):(null===(t=o.icon)||void 0===t?void 0:t.call(o))||Sr(yz,null,null)},tooltip:o.tooltip,description:o.description})]):null===(t=o.default)||void 0===t?void 0:t.call(o)]))}}}),Az={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 Rz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Dz(e,t,n[t])}))}return e}function Dz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jz=function(e,t){var n=Rz({},e,t.attrs);return Sr(Rb,Rz({},n,{icon:Az}),null)};jz.displayName="VerticalAlignTopOutlined",jz.inheritAttrs=!1;const Bz=jz,Nz=Ln({compatConfig:{MODE:3},name:"ABackTop",inheritAttrs:!1,props:Jl(fl(fl({},Oz()),{prefixCls:String,duration:Number,target:Ma(),visibilityHeight:Number,onClick:Ma()}),{visibilityHeight:400,target:()=>window,duration:450,type:"default",shape:"circle"}),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i,direction:l}=Cd(Tz,e),[a]=Mz(i),s=Ot(),c=it({visible:0===e.visibilityHeight,scrollEvent:null}),u=()=>s.value&&s.value.ownerDocument?s.value.ownerDocument:window,d=t=>{const{target:n=u,duration:o}=e;Hd(0,{getContainer:n,duration:o}),r("click",t)},p=xa((t=>{const{visibilityHeight:n}=e,o=Qd(t.target,!0);c.visible=o>=n})),h=()=>{const{target:t}=e,n=(t||u)();p({target:n}),null==n||n.addEventListener("scroll",p)},f=()=>{const{target:t}=e,n=(t||u)();p.cancel(),null==n||n.removeEventListener("scroll",p)};wn((()=>e.target),(()=>{f(),Vt((()=>{h()}))})),Gn((()=>{Vt((()=>{h()}))})),Fn((()=>{Vt((()=>{h()}))})),Wn((()=>{f()})),Jn((()=>{f()}));const g=$z();return()=>{const{description:t,type:r,shape:u,tooltip:p,badge:h}=e,f=fl(fl({},o),{shape:(null==g?void 0:g.shape.value)||u,onClick:d,class:{[`${i.value}`]:!0,[`${o.class}`]:o.class,[`${i.value}-rtl`]:"rtl"===l.value},description:t,type:r,tooltip:p,badge:h}),m=im("fade");return a(Sr(ni,m,{default:()=>[kn(Sr(Iz,hl(hl({},f),{},{ref:s}),{icon:()=>{var e;return(null===(e=n.icon)||void 0===e?void 0:e.call(n))||Sr(Bz,null,null)}}),[[yi,c.visible]])]}))}}});Iz.Group=Ez,Iz.BackTop=Nz,Iz.install=function(e){return e.component(Iz.name,Iz),e.component(Ez.name,Ez),e.component(Nz.name,Nz),e};const zz=e=>null!=e&&(!Array.isArray(e)||da(e).length);function _z(e){return zz(e.prefix)||zz(e.suffix)||zz(e.allowClear)}function Lz(e){return zz(e.addonBefore)||zz(e.addonAfter)}function Qz(e){return null==e?"":String(e)}function Hz(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 Fz(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 Wz=()=>fl(fl({},{addonBefore:xp.any,addonAfter:xp.any,prefix:xp.any,suffix:xp.any,clearIcon:xp.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:xp.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}}),Vz=()=>fl(fl({},Wz()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:Ea("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}),Zz=Ln({name:"BaseInput",inheritAttrs:!1,props:Wz(),setup(e,t){let{slots:n,attrs:o}=t;const r=Ot(),i=t=>{var n;if(null===(n=r.value)||void 0===n?void 0:n.contains(t.target)){const{triggerFocus:t}=e;null==t||t()}},l=()=>{var t;const{allowClear:o,value:r,disabled:i,readonly:l,handleReset:a,suffix:s=n.suffix,prefixCls:c}=e;if(!o)return null;const u=!i&&!l&&r,d=`${c}-clear-icon`,p=(null===(t=n.clearIcon)||void 0===t?void 0:t.call(n))||"*";return Sr("span",{onClick:a,onMousedown:e=>e.preventDefault(),class:Tl({[`${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:h,prefixCls:f,prefix:g=(null===(t=n.prefix)||void 0===t?void 0:t.call(n)),suffix:m=(null===(a=n.suffix)||void 0===a?void 0:a.call(n)),addonAfter:v=n.addonAfter,addonBefore:b=n.addonBefore,inputElement:y,affixWrapperClassName:O,wrapperClassName:w,groupClassName:x}=e;let $=Zh(y,{value:c,hidden:h});if(_z({prefix:g,suffix:m,allowClear:d})){const e=`${f}-affix-wrapper`,t=Tl(e,{[`${e}-disabled`]:u,[`${e}-focused`]:s,[`${e}-readonly`]:p,[`${e}-input-with-clear-btn`]:m&&d&&c},!Lz({addonAfter:v,addonBefore:b})&&o.class,O),n=(m||d)&&Sr("span",{class:`${f}-suffix`},[l(),m]);$=Sr("span",{class:t,style:o.style,hidden:!Lz({addonAfter:v,addonBefore:b})&&h,onMousedown:i,ref:r},[g&&Sr("span",{class:`${f}-prefix`},[g]),Zh(y,{style:null,value:c,hidden:null}),n])}if(Lz({addonAfter:v,addonBefore:b})){const e=`${f}-group`,t=`${e}-addon`,n=Tl(`${f}-wrapper`,e,w),r=Tl(`${f}-group-wrapper`,o.class,x);return Sr("span",{class:r,style:o.style,hidden:h},[Sr("span",{class:n},[b&&Sr("span",{class:t},[b]),Zh($,{style:null,hidden:null}),v&&Sr("span",{class:t},[v])])])}return $}}}),Xz=Ln({name:"VCInput",inheritAttrs:!1,props:Vz(),setup(e,t){let{slots:n,attrs:o,expose:r,emit:i}=t;const l=wt(void 0===e.value?e.defaultValue:e.value),a=wt(!1),s=wt(),c=wt();wn((()=>e.value),(()=>{l.value=e.value})),wn((()=>e.disabled),(()=>{e.disabled&&(a.value=!1)}));const u=e=>{s.value&&Fz(s.value,e)};r({focus:u,blur:()=>{var e;null===(e=s.value)||void 0===e||e.blur()},input:s,stateValue:l,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 d=e=>{i("change",e)},p=(t,n)=>{l.value!==t&&(void 0===e.value?l.value=t:Vt((()=>{var e;s.value.value!==l.value&&(null===(e=c.value)||void 0===e||e.$forceUpdate())})),Vt((()=>{n&&n()})))},h=t=>{const{value:n,composing:o}=t.target;if((t.isComposing||o)&&e.lazy||l.value===n)return;const r=t.target.value;Hz(s.value,t,d),p(r)},f=e=>{13===e.keyCode&&i("pressEnter",e),i("keydown",e)},g=e=>{a.value=!0,i("focus",e)},m=e=>{a.value=!1,i("blur",e)},v=e=>{Hz(s.value,e,d),p("",(()=>{u()}))},b=()=>{var t,r;const{addonBefore:i=n.addonBefore,addonAfter:l=n.addonAfter,disabled:a,valueModifiers:c={},htmlSize:u,autocomplete:d,prefixCls:p,inputClassName:v,prefix:b=(null===(t=n.prefix)||void 0===t?void 0:t.call(n)),suffix:y=(null===(r=n.suffix)||void 0===r?void 0:r.call(n)),allowClear:O,type:w="text"}=e,x=fl(fl(fl({},kd(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"])),o),{autocomplete:d,onChange:h,onInput:h,onFocus:g,onBlur:m,onKeydown:f,class:Tl(p,{[`${p}-disabled`]:a},v,!Lz({addonAfter:l,addonBefore:i})&&!_z({prefix:b,suffix:y,allowClear:O})&&o.class),ref:s,key:"ant-input",size:u,type:w});return c.lazy&&delete x.onInput,x.autofocus||delete x.autofocus,kn(Sr("input",kd(x,["size"]),null),[[jm]])},y=()=>{var t;const{maxlength:o,suffix:r=(null===(t=n.suffix)||void 0===t?void 0:t.call(n)),showCount:i,prefixCls:a}=e,s=Number(o)>0;if(r||i){const e=[...Qz(l.value)].length,t="object"==typeof i?i.formatter({count:e,maxlength:o}):`${e}${s?` / ${o}`:""}`;return Sr(lr,null,[!!i&&Sr("span",{class:Tl(`${a}-show-count-suffix`,{[`${a}-show-count-has-suffix`]:!!r})},[t]),r])}return null};return Gn((()=>{})),()=>{const{prefixCls:t,disabled:r}=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","disabled"]);return Sr(Zz,hl(hl(hl({},i),o),{},{ref:c,prefixCls:t,inputElement:b(),handleReset:v,value:Qz(l.value),focused:a.value,triggerFocus:u,suffix:y(),disabled:r}),n)}}}),Yz=()=>kd(Vz(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),Kz=()=>fl(fl({},kd(Yz(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Ca(),onCompositionend:Ca(),valueModifiers:Object}),Gz=Ln({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:Yz(),setup(e,t){let{slots:n,attrs:o,expose:r,emit:i}=t;const l=Ot(),a=gy(),s=vy.useInject(),c=Xr((()=>Oy(s.status,e.status))),{direction:u,prefixCls:d,size:p,autocomplete:h}=Cd("input",e),{compactSize:f,compactItemClassnames:g}=Nw(d,u),m=Xr((()=>f.value||p.value)),[v,b]=JT(d),y=Ka();r({focus:e=>{var t;null===(t=l.value)||void 0===t||t.focus(e)},blur:()=>{var e;null===(e=l.value)||void 0===e||e.blur()},input:l,setSelectionRange:(e,t,n)=>{var o;null===(o=l.value)||void 0===o||o.setSelectionRange(e,t,n)},select:()=>{var e;null===(e=l.value)||void 0===e||e.select()}});const O=Ot([]),w=()=>{O.value.push(setTimeout((()=>{var e,t,n,o;(null===(e=l.value)||void 0===e?void 0:e.input)&&"password"===(null===(t=l.value)||void 0===t?void 0:t.input.getAttribute("type"))&&(null===(n=l.value)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(o=l.value)||void 0===o||o.input.removeAttribute("value"))})))};Gn((()=>{w()})),Un((()=>{O.value.forEach((e=>clearTimeout(e)))})),Jn((()=>{O.value.forEach((e=>clearTimeout(e)))}));const x=e=>{w(),i("blur",e),a.onFieldBlur()},$=e=>{w(),i("focus",e)},S=e=>{i("update:value",e.target.value),i("change",e),i("input",e),a.onFieldChange()};return()=>{var t,r,i,p,f,O;const{hasFeedback:w,feedbackIcon:C}=s,{allowClear:k,bordered:P=!0,prefix:M=(null===(t=n.prefix)||void 0===t?void 0:t.call(n)),suffix:T=(null===(r=n.suffix)||void 0===r?void 0:r.call(n)),addonAfter:I=(null===(i=n.addonAfter)||void 0===i?void 0:i.call(n)),addonBefore:E=(null===(p=n.addonBefore)||void 0===p?void 0:p.call(n)),id:A=(null===(f=a.id)||void 0===f?void 0:f.value)}=e,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),D=(w||T)&&Sr(lr,null,[T,w&&C]),j=d.value,B=_z({prefix:M,suffix:T})||!!w,N=n.clearIcon||(()=>Sr(oy,null,null));return v(Sr(Xz,hl(hl(hl({},o),kd(R,["onUpdate:value","onChange","onInput"])),{},{onChange:S,id:A,disabled:null!==(O=e.disabled)&&void 0!==O?O:y.value,ref:l,prefixCls:j,autocomplete:h.value,onBlur:x,onFocus:$,prefix:M,suffix:D,allowClear:k,addonAfter:I&&Sr(zw,null,{default:()=>[Sr(by,null,{default:()=>[I]})]}),addonBefore:E&&Sr(zw,null,{default:()=>[Sr(by,null,{default:()=>[E]})]}),class:[o.class,g.value],inputClassName:Tl({[`${j}-sm`]:"small"===m.value,[`${j}-lg`]:"large"===m.value,[`${j}-rtl`]:"rtl"===u.value,[`${j}-borderless`]:!P},!B&&yy(j,c.value),b.value),affixWrapperClassName:Tl({[`${j}-affix-wrapper-sm`]:"small"===m.value,[`${j}-affix-wrapper-lg`]:"large"===m.value,[`${j}-affix-wrapper-rtl`]:"rtl"===u.value,[`${j}-affix-wrapper-borderless`]:!P},yy(`${j}-affix-wrapper`,c.value,w),b.value),wrapperClassName:Tl({[`${j}-group-rtl`]:"rtl"===u.value},b.value),groupClassName:Tl({[`${j}-group-wrapper-sm`]:"small"===m.value,[`${j}-group-wrapper-lg`]:"large"===m.value,[`${j}-group-wrapper-rtl`]:"rtl"===u.value},yy(`${j}-group-wrapper`,c.value,w),b.value)}),fl(fl({},n),{clearIcon:N})))}}}),Uz=Ln({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:i,getPrefixCls:l}=Cd("input-group",e),a=vy.useInject();vy.useProvide(a,{isFormItemInput:!1});const s=Xr((()=>l("input"))),[c,u]=JT(s),d=Xr((()=>{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"===i.value}}));return()=>{var e;return c(Sr("span",hl(hl({},o),{},{class:Tl(d.value,o.class)}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}}),qz=Ln({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:fl(fl({},Yz()),{inputPrefixCls:String,enterButton:xp.any,onSearch:{type:Function}}),setup(e,t){let{slots:n,attrs:o,expose:r,emit:i}=t;const l=wt(),a=wt(!1);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 s=e=>{i("update:value",e.target.value),e&&e.target&&"click"===e.type&&i("search",e.target.value,e),i("change",e)},c=e=>{var t;document.activeElement===(null===(t=l.value)||void 0===t?void 0:t.input)&&e.preventDefault()},u=e=>{var t,n;i("search",null===(n=null===(t=l.value)||void 0===t?void 0:t.input)||void 0===n?void 0:n.stateValue,e)},d=t=>{a.value||e.loading||u(t)},p=e=>{a.value=!0,i("compositionstart",e)},h=e=>{a.value=!1,i("compositionend",e)},{prefixCls:f,getPrefixCls:g,direction:m,size:v}=Cd("input-search",e),b=Xr((()=>g("input",e.inputPrefixCls)));return()=>{var t,r,i,a;const{disabled:g,loading:y,addonAfter:O=(null===(t=n.addonAfter)||void 0===t?void 0:t.call(n)),suffix:w=(null===(r=n.suffix)||void 0===r?void 0:r.call(n))}=e,x=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:$=null!==(a=null===(i=n.enterButton)||void 0===i?void 0:i.call(n))&&void 0!==a&&a}=e;$=$||""===$;const S="boolean"==typeof $?Sr(sy,null,null):null,C=`${f.value}-button`,k=Array.isArray($)?$[0]:$;let P;const M=k.type&&MO(k.type)&&k.type.__ANT_BUTTON;if(M||"button"===k.tagName)P=Zh(k,fl({onMousedown:c,onClick:u,key:"enterButton"},M?{class:C,size:v.value}:{}),!1);else{const e=S&&!$;P=Sr(zC,{class:C,type:$?"primary":void 0,size:v.value,disabled:g,key:"enterButton",onMousedown:c,onClick:u,loading:y,icon:e?S:null},{default:()=>[e?null:S||$]})}O&&(P=[P,O]);const T=Tl(f.value,{[`${f.value}-rtl`]:"rtl"===m.value,[`${f.value}-${v.value}`]:!!v.value,[`${f.value}-with-button`]:!!$},o.class);return Sr(Gz,hl(hl(hl({ref:l},kd(x,["onUpdate:value","onSearch","enterButton"])),o),{},{onPressEnter:d,onCompositionstart:p,onCompositionend:h,size:v.value,prefixCls:b.value,addonAfter:P,suffix:w,onChange:s,class:T,disabled:g}),n)}}}),Jz=e=>null!=e&&(!Array.isArray(e)||da(e).length),e_=["text","input"],t_=Ln({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:xp.oneOf($a("text","input")),value:Ta(),defaultValue:Ta(),allowClear:{type:Boolean,default:void 0},element:Ta(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:Ta(),prefix:Ta(),addonBefore:Ta(),addonAfter:Ta(),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=vy.useInject(),i=t=>{const{value:o,disabled:r,readonly:i,handleReset:l,suffix:a=n.suffix}=e,s=`${t}-clear-icon`;return Sr(oy,{onClick:l,onMousedown:e=>e.preventDefault(),class:Tl({[`${s}-hidden`]:!(!r&&!i&&o),[`${s}-has-suffix`]:!!a},s),role:"button"},null)};return()=>{var t;const{prefixCls:l,inputType:a,element:s=(null===(t=n.element)||void 0===t?void 0:t.call(n))}=e;return a===e_[0]?((t,l)=>{const{value:a,allowClear:s,direction:c,bordered:u,hidden:d,status:p,addonAfter:h=n.addonAfter,addonBefore:f=n.addonBefore,hashId:g}=e,{status:m,hasFeedback:v}=r;if(!s)return Zh(l,{value:a,disabled:e.disabled});const b=Tl(`${t}-affix-wrapper`,`${t}-affix-wrapper-textarea-with-clear-btn`,yy(`${t}-affix-wrapper`,Oy(m,p),v),{[`${t}-affix-wrapper-rtl`]:"rtl"===c,[`${t}-affix-wrapper-borderless`]:!u,[`${o.class}`]:(y={addonAfter:h,addonBefore:f},!(Jz(y.addonBefore)||Jz(y.addonAfter))&&o.class)},g);var y;return Sr("span",{class:b,style:o.style,hidden:d},[Zh(l,{style:null,value:a,disabled:e.disabled}),i(t)])})(l,s):null}}}),n_=["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"],o_={};let r_;function i_(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;r_||(r_=document.createElement("textarea"),r_.setAttribute("tab-index","-1"),r_.setAttribute("aria-hidden","true"),document.body.appendChild(r_)),e.getAttribute("wrap")?r_.setAttribute("wrap",e.getAttribute("wrap")):r_.removeAttribute("wrap");const{paddingSize:r,borderSize:i,boxSizing:l,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&&o_[n])return o_[n];const o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),l=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),a={sizingStyle:n_.map((e=>`${e}:${o.getPropertyValue(e)}`)).join(";"),paddingSize:i,borderSize:l,boxSizing:r};return t&&n&&(o_[n]=a),a}(e,t);let s,c,u;r_.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`),r_.value=e.value||e.placeholder||"";let d=r_.scrollHeight;if("border-box"===l?d+=i:"content-box"===l&&(d-=r),null!==n||null!==o){r_.value=" ";const e=r_.scrollHeight-r;null!==n&&(s=e*n,"border-box"===l&&(s=s+r+i),d=Math.max(s,d)),null!==o&&(c=e*o,"border-box"===l&&(c=c+r+i),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 l_=Ln({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:Kz(),setup(e,t){let{attrs:n,emit:o,expose:r}=t;const i=Ot(),l=Ot({}),a=Ot(2);Jn((()=>{wa.cancel(void 0),wa.cancel(void 0)}));const s=Ot(),c=Ot();yn((()=>{const t=e.autoSize||e.autosize;t?(s.value=t.minRows,c.value=t.maxRows):(s.value=void 0,c.value=void 0)}));const u=Xr((()=>!(!e.autoSize&&!e.autosize))),d=()=>{a.value=0};wn([()=>e.value,s,c,u],(()=>{u.value&&d()}),{immediate:!0,flush:"post"});const p=Ot();wn([a,i],(()=>{if(i.value)if(0===a.value)a.value=1;else if(1===a.value){const e=i_(i.value,!1,s.value,c.value);a.value=2,p.value=e}else(()=>{try{if(document.activeElement===i.value){const e=i.value.selectionStart,t=i.value.selectionEnd,n=i.value.scrollTop;i.value.setSelectionRange(e,t),i.value.scrollTop=n}}catch($pe){}})()}),{immediate:!0,flush:"post"});const h=jr(),f=Ot(),g=()=>{wa.cancel(f.value)},m=e=>{2===a.value&&(o("resize",e),u.value&&(g(),f.value=wa((()=>{d()}))))};return Jn((()=>{g()})),r({resizeTextarea:()=>{d()},textArea:i,instance:h}),Rs(void 0===e.autosize),()=>(()=>{const{prefixCls:t,disabled:o}=e,r=kd(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","lazy","maxlength","valueModifiers"]),s=Tl(t,n.class,{[`${t}-disabled`]:o}),c=u.value?p.value:null,d=[n.style,l.value,c],h=fl(fl(fl({},r),n),{style:d,class:s});return 0!==a.value&&1!==a.value||d.push({overflowX:"hidden",overflowY:"hidden"}),h.autofocus||delete h.autofocus,0===h.rows&&delete h.rows,Sr(ga,{onResize:m,disabled:!u.value},{default:()=>[kn(Sr("textarea",hl(hl({},h),{},{ref:i}),null),[[jm]])]})})()}});function a_(e,t){return[...e||""].slice(0,t).join("")}function s_(e,t,n,o){let r=n;return e?r=a_(n,o):[...t||""].length<n.length&&[...n||""].length>o&&(r=t),r}const c_=Ln({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:Kz(),setup(e,t){let{attrs:n,expose:o,emit:r}=t;const i=gy(),l=vy.useInject(),a=Xr((()=>Oy(l.status,e.status))),s=wt(void 0===e.value?e.defaultValue:e.value),c=wt(),u=wt(""),{prefixCls:d,size:p,direction:h}=Cd("input",e),[f,g]=JT(d),m=Ka(),v=Xr((()=>""===e.showCount||e.showCount||!1)),b=Xr((()=>Number(e.maxlength)>0)),y=wt(!1),O=wt(),w=wt(0),x=e=>{y.value=!0,O.value=u.value,w.value=e.currentTarget.selectionStart,r("compositionstart",e)},$=t=>{var n;y.value=!1;let o=t.currentTarget.value;b.value&&(o=s_(w.value>=e.maxlength+1||w.value===(null===(n=O.value)||void 0===n?void 0:n.length),O.value,o,e.maxlength)),o!==u.value&&(k(o),Hz(t.currentTarget,t,T,o)),r("compositionend",t)},S=jr();wn((()=>e.value),(()=>{var t;S.vnode.props,s.value=null!==(t=e.value)&&void 0!==t?t:""}));const C=e=>{var t;Fz(null===(t=c.value)||void 0===t?void 0:t.textArea,e)},k=(t,n)=>{s.value!==t&&(void 0===e.value?s.value=t:Vt((()=>{var e,t,n;c.value.textArea.value!==u.value&&(null===(n=null===(e=c.value)||void 0===e?void 0:(t=e.instance).update)||void 0===n||n.call(t))})),Vt((()=>{n&&n()})))},P=e=>{13===e.keyCode&&r("pressEnter",e),r("keydown",e)},M=t=>{const{onBlur:n}=e;null==n||n(t),i.onFieldBlur()},T=e=>{r("update:value",e.target.value),r("change",e),r("input",e),i.onFieldChange()},I=e=>{Hz(c.value.textArea,e,T),k("",(()=>{C()}))},E=t=>{const{composing:n}=t.target;let o=t.target.value;if(y.value=!(!t.isComposing&&!n),!(y.value&&e.lazy||s.value===o)){if(b.value){const n=t.target;o=s_(n.selectionStart>=e.maxlength+1||n.selectionStart===o.length||!n.selectionStart,u.value,o,e.maxlength)}Hz(t.currentTarget,t,T,o),k(o)}},A=()=>{var t,o;const{class:r}=n,{bordered:l=!0}=e,s=fl(fl(fl({},kd(e,["allowClear"])),n),{class:[{[`${d.value}-borderless`]:!l,[`${r}`]:r&&!v.value,[`${d.value}-sm`]:"small"===p.value,[`${d.value}-lg`]:"large"===p.value},yy(d.value,a.value),g.value],disabled:m.value,showCount:null,prefixCls:d.value,onInput:E,onChange:E,onBlur:M,onKeydown:P,onCompositionstart:x,onCompositionend:$});return(null===(t=e.valueModifiers)||void 0===t?void 0:t.lazy)&&delete s.onInput,Sr(l_,hl(hl({},s),{},{id:null!==(o=null==s?void 0:s.id)&&void 0!==o?o:i.id.value,ref:c,maxlength:e.maxlength}),null)};return o({focus:C,blur:()=>{var e,t;null===(t=null===(e=c.value)||void 0===e?void 0:e.textArea)||void 0===t||t.blur()},resizableTextArea:c}),yn((()=>{let t=Qz(s.value);y.value||!b.value||null!==e.value&&void 0!==e.value||(t=a_(t,e.maxlength)),u.value=t})),()=>{var t;const{maxlength:o,bordered:r=!0,hidden:i}=e,{style:a,class:s}=n,c=fl(fl(fl({},e),n),{prefixCls:d.value,inputType:"text",handleReset:I,direction:h.value,bordered:r,style:v.value?void 0:a,hashId:g.value,disabled:null!==(t=e.disabled)&&void 0!==t?t:m.value});let p=Sr(t_,hl(hl({},c),{},{value:u.value,status:e.status}),{element:A});if(v.value||l.hasFeedback){const e=[...u.value].length;let t="";t="object"==typeof v.value?v.value.formatter({value:u.value,count:e,maxlength:o}):`${e}${b.value?` / ${o}`:""}`,p=Sr("div",{hidden:i,class:Tl(`${d.value}-textarea`,{[`${d.value}-textarea-rtl`]:"rtl"===h.value,[`${d.value}-textarea-show-count`]:v.value,[`${d.value}-textarea-in-form-item`]:l.isFormItemInput},`${d.value}-textarea-show-count`,s,g.value),style:a,"data-count":"object"!=typeof t?t:void 0},[p,l.hasFeedback&&Sr("span",{class:`${d.value}-textarea-suffix`},[l.feedbackIcon])])}return f(p)}}}),u_={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 d_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){p_(e,t,n[t])}))}return e}function p_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h_=function(e,t){var n=d_({},e,t.attrs);return Sr(Rb,d_({},n,{icon:u_}),null)};h_.displayName="EyeOutlined",h_.inheritAttrs=!1;const f_=h_,g_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};function m_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){v_(e,t,n[t])}))}return e}function v_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b_=function(e,t){var n=m_({},e,t.attrs);return Sr(Rb,m_({},n,{icon:g_}),null)};b_.displayName="EyeInvisibleOutlined",b_.inheritAttrs=!1;const y_=b_,O_={click:"onClick",hover:"onMouseover"},w_=e=>Sr(e?f_:y_,null,null),x_=Ln({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:fl(fl({},Yz()),{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:i}=t;const l=wt(!1),a=()=>{const{disabled:t}=e;t||(l.value=!l.value,i("update:visible",l.value))};yn((()=>{void 0!==e.visible&&(l.value=!!e.visible)}));const s=wt();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}=Cd("input-password",e),d=Xr((()=>u("input",e.inputPrefixCls))),p=()=>{const{size:t,visibilityToggle:r}=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["size","visibilityToggle"]),u=r&&(t=>{const{action:o,iconRender:r=n.iconRender||w_}=e,i=O_[o]||"",s=r(l.value),c={[i]:a,class:`${t}-icon`,key:"passwordIcon",onMousedown:e=>{e.preventDefault()},onMouseup:e=>{e.preventDefault()}};return Zh(ha(s)?s:Sr("span",null,[s]),c)})(c.value),p=Tl(c.value,o.class,{[`${c.value}-${t}`]:!!t}),h=fl(fl(fl({},kd(i,["suffix","iconRender","action"])),o),{type:l.value?"text":"password",class:p,prefixCls:d.value,suffix:u});return t&&(h.size=t),Sr(Gz,hl({ref:s},h),n)};return()=>p()}});function $_(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 S_(){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:xp.shape({x:Number,y:Number}).loose,title:xp.any,footer:xp.any,transitionName:String,maskTransitionName:String,animation:xp.any,maskAnimation:xp.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:xp.any,maskProps:xp.any,wrapProps:xp.any,getContainer:xp.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:xp.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function C_(e,t,n){let o=t;return!o&&n&&(o=`${e}-${n}`),o}Gz.Group=Uz,Gz.Search=qz,Gz.TextArea=c_,Gz.Password=x_,Gz.install=function(e){return e.component(Gz.name,Gz),e.component(Gz.Group.name,Gz.Group),e.component(Gz.Search.name,Gz.Search),e.component(Gz.TextArea.name,Gz.TextArea),e.component(Gz.Password.name,Gz.Password),e};let k_=-1;function P_(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 M_={width:0,height:0,overflow:"hidden",outline:"none"},T_=Ln({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:fl(fl({},S_()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const i=Ot(),l=Ot(),a=Ot();n({focus:()=>{var e;null===(e=i.value)||void 0===e||e.focus()},changeActive:e=>{const{activeElement:t}=document;e&&t===l.value?i.value.focus():e||t!==i.value||l.value.focus()}});const s=Ot(),c=Xr((()=>{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=()=>{Vt((()=>{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+=P_(r),n.top+=P_(r,!0),n}(a.value);s.value=e.mousePosition?`${e.mousePosition.x-t.left}px ${e.mousePosition.y-t.top}px`:""}}))},d=t=>{e.onVisibleChanged(t)};return()=>{var t,n,s,p;const{prefixCls:h,footer:f=(null===(t=o.footer)||void 0===t?void 0:t.call(o)),title:g=(null===(n=o.title)||void 0===n?void 0:n.call(o)),ariaId:m,closable:v,closeIcon:b=(null===(s=o.closeIcon)||void 0===s?void 0:s.call(o)),onClose:y,bodyStyle:O,bodyProps:w,onMousedown:x,onMouseup:$,visible:S,modalRender:C=o.modalRender,destroyOnClose:k,motionName:P}=e;let M,T,I;f&&(M=Sr("div",{class:`${h}-footer`},[f])),g&&(T=Sr("div",{class:`${h}-header`},[Sr("div",{class:`${h}-title`,id:m},[g])])),v&&(I=Sr("button",{type:"button",onClick:y,"aria-label":"Close",class:`${h}-close`},[b||Sr("span",{class:`${h}-close-x`},null)]));const E=Sr("div",{class:`${h}-content`},[I,T,Sr("div",hl({class:`${h}-body`,style:O},w),[null===(p=o.default)||void 0===p?void 0:p.call(o)]),M]),A=im(P);return Sr(ni,hl(hl({},A),{},{onBeforeEnter:u,onAfterEnter:()=>d(!0),onAfterLeave:()=>d(!1)}),{default:()=>[S||!k?kn(Sr("div",hl(hl({},r),{},{ref:a,key:"dialog-element",role:"document",style:[c.value,r.style],class:[h,r.class],onMousedown:x,onMouseup:$}),[Sr("div",{tabindex:0,ref:i,style:M_,"aria-hidden":"true"},null),C?C({originVNode:E}):E,Sr("div",{tabindex:0,ref:l,style:M_,"aria-hidden":"true"},null)]),[[yi,S]]):null]})}}}),I_=Ln({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,i=im(r);return Sr(ni,i,{default:()=>[kn(Sr("div",hl({class:`${t}-mask`},o),null),[[yi,n]])]})}}),E_=Ln({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:Jl(fl(fl({},S_()),{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=wt(),i=wt(),l=wt(),a=wt(e.visible),s=wt(`vcDialogTitle${k_+=1,k_}`),c=t=>{var n,o;if(t)vs(i.value,document.activeElement)||(r.value=document.activeElement,null===(n=l.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($pe){}r.value=null}t&&(null===(o=e.afterClose)||void 0===o||o.call(e))}},u=t=>{var n;null===(n=e.onClose)||void 0===n||n.call(e,t)},d=wt(!1),p=wt(),h=()=>{clearTimeout(p.value),d.value=!0},f=()=>{p.value=setTimeout((()=>{d.value=!1}))},g=t=>{if(!e.maskClosable)return null;d.value?d.value=!1:i.value===t.target&&u(t)},m=t=>{if(e.keyboard&&t.keyCode===Tm.ESC)return t.stopPropagation(),void u(t);e.visible&&t.keyCode===Tm.TAB&&l.value.changeActive(!t.shiftKey)};return wn((()=>e.visible),(()=>{e.visible&&(a.value=!0)}),{flush:"post"}),Jn((()=>{var t;clearTimeout(p.value),null===(t=e.scrollLocker)||void 0===t||t.unLock()})),yn((()=>{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:d,maskTransitionName:p,maskAnimation:v,zIndex:b,wrapClassName:y,rootClassName:O,wrapStyle:w,closable:x,maskProps:$,maskStyle:S,transitionName:C,animation:k,wrapProps:P,title:M=o.title}=e,{style:T,class:I}=n;return Sr("div",hl({class:[`${t}-root`,O]},Lm(e,{data:!0})),[Sr(I_,{prefixCls:t,visible:r&&d,motionName:C_(t,p,v),style:fl({zIndex:b},S),maskProps:$},null),Sr("div",hl({tabIndex:-1,onKeydown:m,class:Tl(`${t}-wrap`,y),ref:i,onClick:g,role:"dialog","aria-labelledby":M?s.value:null,style:fl(fl({zIndex:b},w),{display:a.value?null:"none"})},P),[Sr(T_,hl(hl({},kd(e,["scrollLocker"])),{},{style:T,class:I,onMousedown:h,onMouseup:f,ref:l,closable:x,ariaId:s.value,prefixCls:t,visible:d,onClose:u,onVisibleChanged:c,motionName:C_(t,C,k)}),o)])])}}}),A_=S_(),R_=Ln({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:Jl(A_,{visible:!1}),setup(e,t){let{attrs:n,slots:o}=t;const r=Ot(e.visible);return fm({},{inTriggerContext:!1}),wn((()=>e.visible),(()=>{e.visible&&(r.value=!0)}),{flush:"post"}),()=>{const{visible:t,getContainer:i,forceRender:l,destroyOnClose:a=!1,afterClose:s}=e;let c=fl(fl(fl({},e),n),{ref:"_component",key:"dialog"});return!1===i?Sr(E_,hl(hl({},c),{},{getOpenCount:()=>2}),o):l||!a||r.value?Sr(Cm,{autoLock:!0,visible:t,forceRender:l,getContainer:i},{default:e=>(c=fl(fl(fl({},c),e),{afterClose:()=>{null==s||s(),r.value=!1}}),Sr(E_,c,o))}):null}}});function D_(e,t,n,o){const r=t+n,i=(n-o)/2;if(n>o){if(t>0)return{[e]:i};if(t<0&&r<o)return{[e]:-i}}else if(t<0||r>o)return{[e]:t<0?i:-i};return{}}function j_(e,t,n,o){const{width:r,height:i}={width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight};let l=null;return e<=r&&t<=i?l={x:0,y:0}:(e>r||t>i)&&(l=fl(fl({},D_("x",n,e,r)),D_("y",o,t,i))),l}const B_=Symbol("previewGroupContext"),N_=e=>{Eo(B_,e)},z_=()=>Ao(B_,{isPreviewGroup:wt(!1),previewUrls:Xr((()=>new Map)),setPreviewUrls:()=>{},current:Ot(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""}),__=Ln({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t;const o=Xr((()=>{const t={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return"object"==typeof e.preview?W_(e.preview,t):t})),r=it(new Map),i=Ot(),l=Xr((()=>o.value.visible)),a=Xr((()=>o.value.getContainer)),[s,c]=Qv(!!l.value,{value:l,onChange:(e,t)=>{var n,r;null===(r=(n=o.value).onVisibleChange)||void 0===r||r.call(n,e,t)}}),u=Ot(null),d=Xr((()=>void 0!==l.value)),p=Xr((()=>Array.from(r.keys()))),h=Xr((()=>p.value[o.value.current])),f=Xr((()=>new Map(Array.from(r).filter((e=>{let[,{canPreview:t}]=e;return!!t})).map((e=>{let[t,{url:n}]=e;return[t,n]}))))),g=e=>{i.value=e},m=e=>{u.value=e},v=e=>{null==e||e.stopPropagation(),c(!1),m(null)};return wn(h,(e=>{g(e)}),{immediate:!0,flush:"post"}),yn((()=>{s.value&&d.value&&g(h.value)}),{flush:"post"}),N_({isPreviewGroup:wt(!0),previewUrls:f,setPreviewUrls:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];r.set(e,{url:t,canPreview:n})},current:i,setCurrent:g,setShowPreview:c,setMousePosition:m,registerImage:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return r.set(e,{url:t,canPreview:n}),()=>{r.delete(e)}}}),()=>{const 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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o.value,[]);return Sr(lr,null,[n.default&&n.default(),Sr(H_,hl(hl({},t),{},{"ria-hidden":!s.value,visible:s.value,prefixCls:e.previewPrefixCls,onClose:v,mousePosition:u.value,src:f.value.get(i.value),icons:e.icons,getContainer:a.value}),null)])}}}),L_=__,Q_={x:0,y:0},H_=Ln({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:fl(fl({},S_()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),emits:["close","afterClose"],setup(e,t){let{emit:n,attrs:o}=t;const{rotateLeft:r,rotateRight:i,zoomIn:l,zoomOut:a,close:s,left:c,right:u,flipX:d,flipY:p}=it(e.icons),h=wt(1),f=wt(0),g=it({x:1,y:1}),[m,v]=function(e){const t=Ot(null),n=it(fl({},e)),o=Ot([]);return Gn((()=>{t.value&&wa.cancel(t.value)})),[n,e=>{null===t.value&&(o.value=[],t.value=wa((()=>{let e;o.value.forEach((t=>{e=fl(fl({},e),t)})),fl(n,e),t.value=null}))),o.value.push(e)}]}(Q_),b=()=>n("close"),y=wt(),O=it({originX:0,originY:0,deltaX:0,deltaY:0}),w=wt(!1),x=z_(),{previewUrls:$,current:S,isPreviewGroup:C,setCurrent:k}=x,P=Xr((()=>$.value.size)),M=Xr((()=>Array.from($.value.keys()))),T=Xr((()=>M.value.indexOf(S.value))),I=Xr((()=>C.value?$.value.get(S.value):e.src)),E=Xr((()=>C.value&&P.value>1)),A=wt({wheelDirection:0}),R=()=>{h.value=1,f.value=0,g.x=1,g.y=1,v(Q_),n("afterClose")},D=e=>{e?h.value+=.5:h.value++,v(Q_)},j=e=>{h.value>1&&(e?h.value-=.5:h.value--),v(Q_)},B=e=>{e.preventDefault(),e.stopPropagation(),T.value>0&&k(M.value[T.value-1])},N=e=>{e.preventDefault(),e.stopPropagation(),T.value<P.value-1&&k(M.value[T.value+1])},z=Tl({[`${e.prefixCls}-moving`]:w.value}),_=`${e.prefixCls}-operations-operation`,L=`${e.prefixCls}-operations-icon`,Q=[{icon:s,onClick:b,type:"close"},{icon:l,onClick:()=>D(),type:"zoomIn"},{icon:a,onClick:()=>j(),type:"zoomOut",disabled:Xr((()=>1===h.value))},{icon:i,onClick:()=>{f.value+=90},type:"rotateRight"},{icon:r,onClick:()=>{f.value-=90},type:"rotateLeft"},{icon:d,onClick:()=>{g.x=-g.x},type:"flipX"},{icon:p,onClick:()=>{g.y=-g.y},type:"flipY"}],H=()=>{if(e.visible&&w.value){const e=y.value.offsetWidth*h.value,t=y.value.offsetHeight*h.value,{left:n,top:o}=$_(y.value),r=f.value%180!=0;w.value=!1;const i=j_(r?t:e,r?e:t,n,o);i&&v(fl({},i))}},F=e=>{0===e.button&&(e.preventDefault(),e.stopPropagation(),O.deltaX=e.pageX-m.x,O.deltaY=e.pageY-m.y,O.originX=m.x,O.originY=m.y,w.value=!0)},W=t=>{e.visible&&w.value&&v({x:t.pageX-O.deltaX,y:t.pageY-O.deltaY})},V=t=>{if(!e.visible)return;t.preventDefault();const n=t.deltaY;A.value={wheelDirection:n}},Z=t=>{e.visible&&E.value&&(t.preventDefault(),t.keyCode===Tm.LEFT?T.value>0&&k(M.value[T.value-1]):t.keyCode===Tm.RIGHT&&T.value<P.value-1&&k(M.value[T.value+1]))},X=()=>{e.visible&&(1!==h.value&&(h.value=1),m.x===Q_.x&&m.y===Q_.y||v(Q_))};let Y=()=>{};return Gn((()=>{wn([()=>e.visible,w],(()=>{let e,t;Y();const n=ja(window,"mouseup",H,!1),o=ja(window,"mousemove",W,!1),r=ja(window,"wheel",V,{passive:!1}),i=ja(window,"keydown",Z,!1);try{window.top!==window.self&&(e=ja(window.top,"mouseup",H,!1),t=ja(window.top,"mousemove",W,!1))}catch(l){}Y=()=>{n.remove(),o.remove(),r.remove(),i.remove(),e&&e.remove(),t&&t.remove()}}),{flush:"post",immediate:!0}),wn([A],(()=>{const{wheelDirection:e}=A.value;e>0?j(!0):e<0&&D(!0)}))})),eo((()=>{Y()})),()=>{const{visible:t,prefixCls:n,rootClassName:r}=e;return Sr(R_,hl(hl({},o),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:n,onClose:b,afterClose:R,visible:t,wrapClassName:z,rootClassName:r,getContainer:e.getContainer}),{default:()=>[Sr("div",{class:[`${e.prefixCls}-operations-wrapper`,r]},[Sr("ul",{class:`${e.prefixCls}-operations`},[Q.map((t=>{let{icon:n,onClick:o,type:r,disabled:i}=t;return Sr("li",{class:Tl(_,{[`${e.prefixCls}-operations-operation-disabled`]:i&&(null==i?void 0:i.value)}),onClick:o,key:r},[Cr(n,{class:L})])}))])]),Sr("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${m.x}px, ${m.y}px, 0)`}},[Sr("img",{onMousedown:F,onDblclick:X,ref:y,class:`${e.prefixCls}-img`,src:I.value,alt:e.alt,style:{transform:`scale3d(${g.x*h.value}, ${g.y*h.value}, 1) rotate(${f.value}deg)`}},null)]),E.value&&Sr("div",{class:Tl(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:T.value<=0}),onClick:B},[c]),E.value&&Sr("div",{class:Tl(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:T.value>=P.value-1}),onClick:N},[u])]})}}}),F_=()=>({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:xp.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),W_=(e,t)=>{const n=fl({},e);return Object.keys(t).forEach((o=>{void 0===e[o]&&(n[o]=t[o])})),n};let V_=0;const Z_=Ln({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:F_(),emits:["click","error"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=Xr((()=>e.prefixCls)),l=Xr((()=>`${i.value}-preview`)),a=Xr((()=>{const t={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return"object"==typeof e.preview?W_(e.preview,t):t})),s=Xr((()=>{var t;return null!==(t=a.value.src)&&void 0!==t?t:e.src})),c=Xr((()=>e.placeholder&&!0!==e.placeholder||o.placeholder)),u=Xr((()=>a.value.visible)),d=Xr((()=>a.value.getContainer)),p=Xr((()=>void 0!==u.value)),[h,f]=Qv(!!u.value,{value:u,onChange:(e,t)=>{var n,o;null===(o=(n=a.value).onVisibleChange)||void 0===o||o.call(n,e,t)}}),g=Ot(c.value?"loading":"normal");wn((()=>e.src),(()=>{g.value=c.value?"loading":"normal"}));const m=Ot(null),v=Xr((()=>"error"===g.value)),b=z_(),{isPreviewGroup:y,setCurrent:O,setShowPreview:w,setMousePosition:x,registerImage:$}=b,S=Ot(V_++),C=Xr((()=>e.preview&&!v.value)),k=()=>{g.value="normal"},P=e=>{g.value="error",r("error",e)},M=e=>{if(!p.value){const{left:t,top:n}=$_(e.target);y.value?(O(S.value),x({x:t,y:n})):m.value={x:t,y:n}}y.value?w(!0):f(!0),r("click",e)},T=()=>{f(!1),p.value||(m.value=null)},I=Ot(null);wn((()=>I),(()=>{"loading"===g.value&&I.value.complete&&(I.value.naturalWidth||I.value.naturalHeight)&&k()}));let E=()=>{};Gn((()=>{wn([s,C],(()=>{if(E(),!y.value)return()=>{};E=$(S.value,s.value,C.value),C.value||E()}),{flush:"post",immediate:!0})})),eo((()=>{E()}));const A=e=>{return"number"==typeof(t=e)||qf(t)&&"[object Number]"==pf(t)?e+"px":e;var t};return()=>{const{prefixCls:t,wrapperClassName:i,fallback:c,src:u,placeholder:p,wrapperStyle:f,rootClassName:b}=e,{width:O,height:w,crossorigin:x,decoding:$,alt:S,sizes:E,srcset:R,usemap:D,class:j,style:B}=n,N=a.value,{icons:z,maskClassName:_}=N,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(N,["icons","maskClassName"]),Q=Tl(t,i,b,{[`${t}-error`]:v.value}),H=v.value&&c?c:s.value,F={crossorigin:x,decoding:$,alt:S,sizes:E,srcset:R,usemap:D,width:O,height:w,class:Tl(`${t}-img`,{[`${t}-img-placeholder`]:!0===p},j),style:fl({height:A(w)},B)};return Sr(lr,null,[Sr("div",{class:Q,onClick:C.value?M:e=>{r("click",e)},style:fl({width:A(O),height:A(w)},f)},[Sr("img",hl(hl(hl({},F),v.value&&c?{src:c}:{onLoad:k,onError:P,src:u}),{},{ref:I}),null),"loading"===g.value&&Sr("div",{"aria-hidden":"true",class:`${t}-placeholder`},[p||o.placeholder&&o.placeholder()]),o.previewMask&&C.value&&Sr("div",{class:[`${t}-mask`,_]},[o.previewMask()])]),!y.value&&C.value&&Sr(H_,hl(hl({},L),{},{"aria-hidden":!h.value,visible:h.value,prefixCls:l.value,onClose:T,mousePosition:m.value,src:H,alt:S,getContainer:d.value,icons:z,rootClassName:b}),null)])}}});Z_.PreviewGroup=L_;const X_=Z_,Y_={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 K_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){G_(e,t,n[t])}))}return e}function G_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U_=function(e,t){var n=K_({},e,t.attrs);return Sr(Rb,K_({},n,{icon:Y_}),null)};U_.displayName="RotateLeftOutlined",U_.inheritAttrs=!1;const q_=U_,J_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-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 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};function eL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){tL(e,t,n[t])}))}return e}function tL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nL=function(e,t){var n=eL({},e,t.attrs);return Sr(Rb,eL({},n,{icon:J_}),null)};nL.displayName="RotateRightOutlined",nL.inheritAttrs=!1;const oL=nL,rL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};function iL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){lL(e,t,n[t])}))}return e}function lL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aL=function(e,t){var n=iL({},e,t.attrs);return Sr(Rb,iL({},n,{icon:rL}),null)};aL.displayName="ZoomInOutlined",aL.inheritAttrs=!1;const sL=aL,cL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};function uL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){dL(e,t,n[t])}))}return e}function dL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pL=function(e,t){var n=uL({},e,t.attrs);return Sr(Rb,uL({},n,{icon:cL}),null)};pL.displayName="ZoomOutOutlined",pL.inheritAttrs=!1;const hL=pL,fL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};function gL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){mL(e,t,n[t])}))}return e}function mL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vL=function(e,t){var n=gL({},e,t.attrs);return Sr(Rb,gL({},n,{icon:fL}),null)};vL.displayName="SwapOutlined",vL.inheritAttrs=!1;const bL=vL;function yL(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const OL=e=>{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`]:fl(fl({},yL("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:fl(fl({},yL("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Zw(e)}]},wL=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]:fl(fl({},Yu(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`]:fl({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}},qu(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"}}}]},xL=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:fl({},{"&::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"}}},$L=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},SL=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}}}},CL=Ju("Modal",(e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5,r=nd(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[wL(r),xL(r),$L(r),OL(r),e.wireframe&&SL(r),Sx(r,"zoom")]})),kL=e=>({position:e||"absolute",inset:0}),PL=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new wu("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:fl(fl({},Xu),{padding:`0 ${o}px`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},ML=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,previewOperationColorDisabled:r,motionDurationSlow:i}=e,l=new wu(n).setAlpha(.1),a=l.clone().setAlpha(.2);return{[`${t}-operations`]:fl(fl({},Yu(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:l.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${i}`,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}})}},TL=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:i,motionDurationSlow:l}=e,a=new wu(t).setAlpha(.1),s=a.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:i+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 ${l}`,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}}},IL=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:fl(fl({},kL()),{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":fl(fl({},kL()),{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%"},"&":[ML(e),TL(e)]}]},EL=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`]:fl({},PL(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:fl({},kL())}}},AL=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Sx(e,"zoom"),"&":Zw(e,!0)}},RL=Ju("Image",(e=>{const t=`${e.componentCls}-preview`,n=nd(e,{previewCls:t,modalMaskBg:new wu("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[EL(n),IL(n),OL(nd(n,{componentCls:t})),AL(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new wu(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new wu(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),DL={rotateLeft:Sr(q_,null,null),rotateRight:Sr(oL,null,null),zoomIn:Sr(sL,null,null),zoomOut:Sr(hL,null,null),close:Sr(qb,null,null),left:Sr(jR,null,null),right:Sr(nk,null,null),flipX:Sr(bL,null,null),flipY:Sr(bL,{rotate:90},null)},jL=Ln({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:Ta()},setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,rootPrefixCls:i}=Cd("image",e),l=Xr((()=>`${r.value}-preview`)),[a,s]=RL(r),c=Xr((()=>{const{preview:t}=e;if(!1===t)return t;const n="object"==typeof t?t:{};return fl(fl({},n),{rootClassName:s.value,transitionName:am(i.value,"zoom",n.transitionName),maskTransitionName:am(i.value,"fade",n.maskTransitionName)})}));return()=>a(Sr(L_,hl(hl({},fl(fl({},n),e)),{},{preview:c.value,icons:DL,previewPrefixCls:l.value}),o))}}),BL=Ln({name:"AImage",inheritAttrs:!1,props:F_(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,rootPrefixCls:i,configProvider:l}=Cd("image",e),[a,s]=RL(r),c=Xr((()=>{const{preview:t}=e;if(!1===t)return t;const n="object"==typeof t?t:{};return fl(fl({icons:DL},n),{transitionName:am(i.value,"zoom",n.transitionName),maskTransitionName:am(i.value,"fade",n.maskTransitionName)})}));return()=>{var t,i;const u=(null===(i=null===(t=l.locale)||void 0===t?void 0:t.value)||void 0===i?void 0:i.Image)||ts.Image,d=()=>Sr("div",{class:`${r.value}-mask-info`},[Sr(f_,null,null),null==u?void 0:u.preview]),{previewMask:p=n.previewMask||d}=e;return a(Sr(X_,hl(hl({},fl(fl(fl({},o),e),{prefixCls:r.value})),{},{preview:c.value,rootClassName:Tl(e.rootClassName,s.value)}),fl(fl({},n),{previewMask:"function"==typeof p?p:null})))}}});BL.PreviewGroup=jL,BL.install=function(e){return e.component(BL.name,BL),e.component(BL.PreviewGroup.name,BL.PreviewGroup),e};const NL=BL,zL={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 _L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){LL(e,t,n[t])}))}return e}function LL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QL=function(e,t){var n=_L({},e,t.attrs);return Sr(Rb,_L({},n,{icon:zL}),null)};QL.displayName="UpOutlined",QL.inheritAttrs=!1;const HL=QL;function FL(){return"function"==typeof BigInt}function WL(e){let t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t=`0${t}`);const o=t||"0",r=o.split("."),i=r[0]||"0",l=r[1]||"0";"0"===i&&"0"===l&&(n=!1);const a=n?"-":"";return{negative:n,negativeStr:a,trimStr:o,integerStr:i,decimalStr:l,fullStr:`${a}${o}`}}function VL(e){const t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ZL(e){const t=String(e);if(VL(e)){let e=Number(t.slice(t.indexOf("e-")+2));const n=t.match(/\.(\d+)/);return(null==n?void 0:n[1])&&(e+=n[1].length),e}return t.includes(".")&&YL(t)?t.length-t.indexOf(".")-1:0}function XL(e){let t=String(e);if(VL(e)){if(e>Number.MAX_SAFE_INTEGER)return String(FL()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(FL()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(ZL(t))}return WL(t).fullStr}function YL(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}function KL(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}class GL{constructor(e){this.origin="",KL(e)?this.empty=!0:(this.origin=String(e),this.number=Number(e))}negate(){return new GL(-this.toNumber())}add(e){if(this.isInvalidate())return new GL(e);const t=Number(e);if(Number.isNaN(t))return this;const n=this.number+t;if(n>Number.MAX_SAFE_INTEGER)return new GL(Number.MAX_SAFE_INTEGER);if(n<Number.MIN_SAFE_INTEGER)return new GL(Number.MIN_SAFE_INTEGER);const o=Math.max(ZL(this.number),ZL(t));return new GL(n.toFixed(o))}isEmpty(){return this.empty}isNaN(){return Number.isNaN(this.number)}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(e){return this.toNumber()===(null==e?void 0:e.toNumber())}lessEquals(e){return this.add(e.negate().toString()).toNumber()<=0}toNumber(){return this.number}toString(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":XL(this.number)}}class UL{constructor(e){if(this.origin="",KL(e))return void(this.empty=!0);if(this.origin=String(e),"-"===e||Number.isNaN(e))return void(this.nan=!0);let t=e;if(VL(t)&&(t=Number(t)),t="string"==typeof t?t:XL(t),YL(t)){const e=WL(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 UL(this.toString());return e.negative=!e.negative,e}add(e){if(this.isInvalidate())return new UL(e);const t=new UL(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:i}=WL(o),l=`${r}${i.padStart(n+1,"0")}`;return new UL(`${l.slice(0,-n)}.${l.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.origin:this.isInvalidate()?"":WL(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr}}function qL(e){return FL()?new UL(e):new GL(e)}function JL(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";const{negativeStr:r,integerStr:i,decimalStr:l}=WL(e),a=`${t}${l}`,s=`${r}${i}`;if(n>=0){const i=Number(l[n]);return i>=5&&!o?JL(qL(e).add(`${r}0.${"0".repeat(n)}${10-i}`).toString(),t,n,o):0===n?s:`${s}${t}${l.padEnd(n,"0").slice(0,n)}`}return".0"===a?s:`${s}${a}`}const eQ=Ln({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:Ma()},slots:Object,setup(e,t){let{slots:n,emit:o}=t;const r=Ot(),i=(e,t)=>{e.preventDefault(),o("step",t),r.value=setTimeout((function e(){o("step",t),r.value=setTimeout(e,200)}),600)},l=()=>{clearTimeout(r.value)};return Jn((()=>{l()})),()=>{if(dv())return null;const{prefixCls:t,upDisabled:o,downDisabled:r}=e,a=`${t}-handler`,s=Tl(a,`${a}-up`,{[`${a}-up-disabled`]:o}),c=Tl(a,`${a}-down`,{[`${a}-down-disabled`]:r}),u={unselectable:"on",role:"button",onMouseup:l,onMouseleave:l},{upNode:d,downNode:p}=n;return Sr("div",{class:`${a}-wrap`},[Sr("span",hl(hl({},u),{},{onMousedown:e=>{i(e,!0)},"aria-label":"Increase Value","aria-disabled":o,class:s}),[(null==d?void 0:d())||Sr("span",{unselectable:"on",class:`${t}-handler-up-inner`},null)]),Sr("span",hl(hl({},u),{},{onMousedown:e=>{i(e,!1)},"aria-label":"Decrease Value","aria-disabled":r,class:c}),[(null==p?void 0:p())||Sr("span",{unselectable:"on",class:`${t}-handler-down-inner`},null)])])}}}),tQ=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),nQ=e=>{const t=qL(e);return t.isInvalidate()?null:t},oQ=()=>({stringMode:Pa(),defaultValue:Aa([String,Number]),value:Aa([String,Number]),prefixCls:Ea(),min:Aa([String,Number]),max:Aa([String,Number]),step:Aa([String,Number],1),tabindex:Number,controls:Pa(!0),readonly:Pa(),disabled:Pa(),autofocus:Pa(),keyboard:Pa(!0),parser:Ma(),formatter:Ma(),precision:Number,decimalSeparator:String,onInput:Ma(),onChange:Ma(),onPressEnter:Ma(),onStep:Ma(),onBlur:Ma(),onFocus:Ma()}),rQ=Ln({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:fl(fl({},oQ()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:i}=t;const l=wt(),a=wt(!1),s=wt(!1),c=wt(!1),u=wt(qL(e.value)),d=(t,n)=>{if(!n)return e.precision>=0?e.precision:Math.max(ZL(t),ZL(e.step))},p=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,"")},h=wt(""),f=(t,n)=>{if(e.formatter)return e.formatter(t,{userTyping:n,input:String(h.value)});let o="number"==typeof t?XL(t):t;if(!n){const t=d(o,n);YL(o)&&(e.decimalSeparator||t>=0)&&(o=JL(o,e.decimalSeparator||".",t))}return o},g=(()=>{const t=e.value;return u.value.isInvalidate()&&["string","number"].includes(typeof t)?Number.isNaN(t)?"":t:f(u.value.toString(),!1)})();function m(e,t){h.value=f(e.isInvalidate()?e.toString(!1):e.toString(!t),t)}h.value=g;const v=Xr((()=>nQ(e.max))),b=Xr((()=>nQ(e.min))),y=Xr((()=>!(!v.value||!u.value||u.value.isInvalidate())&&v.value.lessEquals(u.value))),O=Xr((()=>!(!b.value||!u.value||u.value.isInvalidate())&&u.value.lessEquals(b.value))),[w,x]=function(e,t){const n=Ot(null);return[function(){try{const{selectionStart:t,selectionEnd:o,value:r}=e.value,i=r.substring(0,t),l=r.substring(o);n.value={start:t,end:o,value:r,beforeTxt:i,afterTxt:l}}catch($pe){}},function(){if(e.value&&n.value&&t.value)try{const{value:t}=e.value,{beforeTxt:o,afterTxt:r,start:i}=n.value;let l=t.length;if(t.endsWith(r))l=t.length-n.value.afterTxt.length;else if(t.startsWith(o))l=o.length;else{const e=o[i-1],n=t.indexOf(e,i-1);-1!==n&&(l=n+1)}e.value.setSelectionRange(l,l)}catch($pe){$pe.message}}]}(l,a),$=e=>v.value&&!e.lessEquals(v.value)?v.value:b.value&&!b.value.lessEquals(e)?b.value:null,S=e=>!$(e),C=(t,n)=>{var o;let r=t,i=S(r)||r.isEmpty();if(r.isEmpty()||n||(r=$(r)||r,i=!0),!e.readonly&&!e.disabled&&i){const t=r.toString(),i=d(t,n);return i>=0&&(r=qL(JL(t,".",i))),r.equals(u.value)||(l=r,void 0===e.value&&(u.value=l),null===(o=e.onChange)||void 0===o||o.call(e,r.isEmpty()?null:tQ(e.stringMode,r)),void 0===e.value&&m(r,n)),r}var l;return u.value},k=(()=>{const e=wt(0),t=()=>{wa.cancel(e.value)};return Jn((()=>{t()})),n=>{t(),e.value=wa((()=>{n()}))}})(),P=t=>{var n;if(w(),h.value=t,!c.value){const e=qL(p(t));e.isNaN()||C(e,!0)}null===(n=e.onInput)||void 0===n||n.call(e,t),k((()=>{let n=t;e.parser||(n=t.replace(/。/g,".")),n!==t&&P(n)}))},M=()=>{c.value=!0},T=()=>{c.value=!1,P(l.value.value)},I=e=>{P(e.target.value)},E=t=>{var n,o;if(t&&y.value||!t&&O.value)return;s.value=!1;let r=qL(e.step);t||(r=r.negate());const i=(u.value||qL(0)).add(r.toString()),a=C(i,!1);null===(n=e.onStep)||void 0===n||n.call(e,tQ(e.stringMode,a),{offset:e.step,type:t?"up":"down"}),null===(o=l.value)||void 0===o||o.focus()},A=t=>{const n=qL(p(h.value));let o=n;o=n.isNaN()?u.value:C(n,t),void 0!==e.value?m(u.value,!1):o.isNaN()||m(o,!1)},R=t=>{var n;const{which:o}=t;s.value=!0,o===Tm.ENTER&&(c.value||(s.value=!1),A(!1),null===(n=e.onPressEnter)||void 0===n||n.call(e,t)),!1!==e.keyboard&&!c.value&&[Tm.UP,Tm.DOWN].includes(o)&&(E(Tm.UP===o),t.preventDefault())},D=()=>{s.value=!1},j=e=>{A(!1),a.value=!1,s.value=!1,r("blur",e)};return wn((()=>e.precision),(()=>{u.value.isInvalidate()||m(u.value,!1)}),{flush:"post"}),wn((()=>e.value),(()=>{const t=qL(e.value);u.value=t;const n=qL(p(h.value));t.equals(n)&&s.value&&!e.formatter||m(t,s.value)}),{flush:"post"}),wn(h,(()=>{e.formatter&&x()}),{flush:"post"}),wn((()=>e.disabled),(e=>{e&&(a.value=!1)})),i({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 t=fl(fl({},n),e),{prefixCls:i="rc-input-number",min:s,max:c,step:d=1,defaultValue:p,value:f,disabled:g,readonly:m,keyboard:v,controls:b=!0,autofocus:w,stringMode:x,parser:$,formatter:C,precision:k,decimalSeparator:P,onChange:A,onInput:B,onPressEnter:N,onStep:z,lazy:_,class:L,style:Q}=t,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:F,downHandler:W}=o,V=`${i}-input`,Z={};return _?Z.onChange=I:Z.onInput=I,Sr("div",{class:Tl(i,L,{[`${i}-focused`]:a.value,[`${i}-disabled`]:g,[`${i}-readonly`]:m,[`${i}-not-a-number`]:u.value.isNaN(),[`${i}-out-of-range`]:!u.value.isInvalidate()&&!S(u.value)}),style:Q,onKeydown:R,onKeyup:D},[b&&Sr(eQ,{prefixCls:i,upDisabled:y.value,downDisabled:O.value,onStep:E},{upNode:F,downNode:W}),Sr("div",{class:`${V}-wrap`},[Sr("input",hl(hl(hl({autofocus:w,autocomplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":c,"aria-valuenow":u.value.isInvalidate()?null:u.value.toString(),step:d},H),{},{ref:l,class:V,value:h.value,disabled:g,readonly:m,onFocus:e=>{a.value=!0,r("focus",e)}},Z),{},{onBlur:j,onCompositionstart:M,onCompositionend:T}),null)])])}}});function iQ(e){return null!=e}const lQ=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorBorder:r,borderRadius:i,fontSizeLG:l,controlHeightLG:a,controlHeightSM:s,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:p,colorPrimary:h,controlHeight:f,inputPaddingHorizontal:g,colorBgContainer:m,colorTextDisabled:v,borderRadiusSM:b,borderRadiusLG:y,controlWidth:O,handleVisible:w}=e;return[{[t]:fl(fl(fl(fl({},Yu(e)),WT(e)),FT(e,t)),{display:"inline-block",width:O,margin:0,padding:0,border:`${n}px ${o} ${r}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:l,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":fl({},zT(e)),"&-focused":fl({},_T(e)),"&-disabled":fl(fl({},LT(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:c}},"&-group":fl(fl(fl({},Yu(e)),VT(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":fl(fl({width:"100%",height:f-2*n,padding:`0 ${g}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${p} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},NT(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:m,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:!0===w?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:h}},"&-up-inner, &-down-inner":fl(fl({},{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"}}),{color:d,transition:`all ${p} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${o} ${r}`,borderEndEndRadius:i},"&-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:v}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},aQ=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:o,controlWidth:r,borderRadiusLG:i,borderRadiusSM:l}=e;return{[`${t}-affix-wrapper`]:fl(fl(fl({},WT(e)),FT(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:r,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:i},"&-sm":{borderRadius:l},[`&:not(${t}-affix-wrapper-disabled):hover`]:fl(fl({},zT(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}}})}},sQ=Ju("InputNumber",(e=>{const t=UT(e);return[lQ(t),aQ(t),jx(t)]}),(e=>({controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:"auto"}))),cQ=oQ(),uQ=Ln({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:fl(fl({},cQ),{size:Ea(),bordered:Pa(!0),placeholder:String,name:String,id:String,type:String,addonBefore:xp.any,addonAfter:xp.any,prefix:xp.any,"onUpdate:value":cQ.onChange,valueModifiers:Object,status:Ea()}),slots:Object,setup(e,t){let{emit:n,expose:o,attrs:r,slots:i}=t;const l=gy(),a=vy.useInject(),s=Xr((()=>Oy(a.status,e.status))),{prefixCls:c,size:u,direction:d,disabled:p}=Cd("input-number",e),{compactSize:h,compactItemClassnames:f}=Nw(c,d),g=Ka(),m=Xr((()=>{var e;return null!==(e=p.value)&&void 0!==e?e:g.value})),[v,b]=sQ(c),y=Xr((()=>h.value||u.value)),O=wt(void 0===e.value?e.defaultValue:e.value),w=wt(!1);wn((()=>e.value),(()=>{O.value=e.value}));const x=wt(null),$=()=>{var e;null===(e=x.value)||void 0===e||e.focus()};o({focus:$,blur:()=>{var e;null===(e=x.value)||void 0===e||e.blur()}});const S=t=>{void 0===e.value&&(O.value=t),n("update:value",t),n("change",t),l.onFieldChange()},C=e=>{w.value=!1,n("blur",e),l.onFieldBlur()},k=e=>{w.value=!0,n("focus",e)};return()=>{var t,n,o,u;const{hasFeedback:p,isFormItemInput:h,feedbackIcon:g}=a,P=null!==(t=e.id)&&void 0!==t?t:l.id.value,M=fl(fl(fl({},r),e),{id:P,disabled:m.value}),{class:T,bordered:I,readonly:E,style:A,addonBefore:R=(null===(n=i.addonBefore)||void 0===n?void 0:n.call(i)),addonAfter:D=(null===(o=i.addonAfter)||void 0===o?void 0:o.call(i)),prefix:j=(null===(u=i.prefix)||void 0===u?void 0:u.call(i)),valueModifiers:B={}}=M,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(M,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),z=c.value,_=Tl({[`${z}-lg`]:"large"===y.value,[`${z}-sm`]:"small"===y.value,[`${z}-rtl`]:"rtl"===d.value,[`${z}-readonly`]:E,[`${z}-borderless`]:!I,[`${z}-in-form-item`]:h},yy(z,s.value),T,f.value,b.value);let L=Sr(rQ,hl(hl({},kd(N,["size","defaultValue"])),{},{ref:x,lazy:!!B.lazy,value:O.value,class:_,prefixCls:z,readonly:E,onChange:S,onBlur:C,onFocus:k}),{upHandler:i.upIcon?()=>Sr("span",{class:`${z}-handler-up-inner`},[i.upIcon()]):()=>Sr(HL,{class:`${z}-handler-up-inner`},null),downHandler:i.downIcon?()=>Sr("span",{class:`${z}-handler-down-inner`},[i.downIcon()]):()=>Sr(Nb,{class:`${z}-handler-down-inner`},null)});const Q=iQ(R)||iQ(D),H=iQ(j);if(H||p){const e=Tl(`${z}-affix-wrapper`,yy(`${z}-affix-wrapper`,s.value,p),{[`${z}-affix-wrapper-focused`]:w.value,[`${z}-affix-wrapper-disabled`]:m.value,[`${z}-affix-wrapper-sm`]:"small"===y.value,[`${z}-affix-wrapper-lg`]:"large"===y.value,[`${z}-affix-wrapper-rtl`]:"rtl"===d.value,[`${z}-affix-wrapper-readonly`]:E,[`${z}-affix-wrapper-borderless`]:!I,[`${T}`]:!Q&&T},b.value);L=Sr("div",{class:e,style:A,onClick:$},[H&&Sr("span",{class:`${z}-prefix`},[j]),L,p&&Sr("span",{class:`${z}-suffix`},[g])])}if(Q){const e=`${z}-group`,t=`${e}-addon`,n=R?Sr("div",{class:t},[R]):null,o=D?Sr("div",{class:t},[D]):null,r=Tl(`${z}-wrapper`,e,{[`${e}-rtl`]:"rtl"===d.value},b.value),i=Tl(`${z}-group-wrapper`,{[`${z}-group-wrapper-sm`]:"small"===y.value,[`${z}-group-wrapper-lg`]:"large"===y.value,[`${z}-group-wrapper-rtl`]:"rtl"===d.value},yy(`${c}-group-wrapper`,s.value,p),T,b.value);L=Sr("div",{class:i,style:A},[Sr("div",{class:r},[n&&Sr(zw,null,{default:()=>[Sr(by,null,{default:()=>[n]})]}),L,o&&Sr(zw,null,{default:()=>[Sr(by,null,{default:()=>[o]})]})])])}return v(Zh(L,{style:A}))}}}),dQ=fl(uQ,{install:e=>(e.component(uQ.name,uQ),e)}),pQ=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}}}},hQ=e=>{const{antCls:t,componentCls:n,colorText:o,colorTextLightSolid:r,colorBgHeader:i,colorBgBody:l,colorBgTrigger:a,layoutHeaderHeight:s,layoutHeaderPaddingInline:c,layoutHeaderColor:u,layoutFooterPadding:d,layoutTriggerHeight:p,layoutZeroTriggerSize:h,motionDurationMid:f,motionDurationSlow:g,fontSize:m,borderRadius:v}=e;return{[n]:fl(fl({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:l,"&, *":{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:i,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:o,fontSize:m,background:l},[`${n}-content`]:{flex:"auto",minHeight:0},[`${n}-sider`]:{position:"relative",minWidth:0,background:i,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:-h,zIndex:1,width:h,height:h,color:r,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:i,borderStartStartRadius:0,borderStartEndRadius:v,borderEndEndRadius:v,borderEndStartRadius:0,cursor:"pointer",transition:`background ${g} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${g}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-h,borderStartStartRadius:v,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:v}}}}},pQ(e)),{"&-rtl":{direction:"rtl"}})}},fQ=Ju("Layout",(e=>{const{colorText:t,controlHeightSM:n,controlHeight:o,controlHeightLG:r,marginXXS:i}=e,l=1.25*r,a=nd(e,{layoutHeaderHeight:2*o,layoutHeaderPaddingInline:l,layoutHeaderColor:t,layoutFooterPadding:`${n}px ${l}px`,layoutTriggerHeight:r+2*i,layoutZeroTriggerSize:r});return[hQ(a)]}),(e=>{const{colorBgLayout:t}=e;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}})),gQ=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function mQ(e){let{suffixCls:t,tagName:n,name:o}=e;return e=>Ln({compatConfig:{MODE:3},name:o,props:gQ(),setup(o,r){let{slots:i}=r;const{prefixCls:l}=Cd(t,o);return()=>{const t=fl(fl({},o),{prefixCls:l.value,tagName:n});return Sr(e,t,i)}}})}const vQ=Ln({compatConfig:{MODE:3},props:gQ(),setup(e,t){let{slots:n}=t;return()=>Sr(e.tagName,{class:e.prefixCls},n)}}),bQ=Ln({compatConfig:{MODE:3},inheritAttrs:!1,props:gQ(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Cd("",e),[l,a]=fQ(r),s=Ot([]);Eo(Ok,{addSider:e=>{s.value=[...s.value,e]},removeSider:e=>{s.value=s.value.filter((t=>t!==e))}});const c=Xr((()=>{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"===i.value}}));return()=>{const{tagName:t}=e;return l(Sr(t,fl(fl({},o),{class:[c.value,o.class]}),n))}}}),yQ=mQ({suffixCls:"layout",tagName:"section",name:"ALayout"})(bQ),OQ=mQ({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(vQ),wQ=mQ({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(vQ),xQ=mQ({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(vQ),$Q=yQ,SQ={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 CQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){kQ(e,t,n[t])}))}return e}function kQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var PQ=function(e,t){var n=CQ({},e,t.attrs);return Sr(Rb,CQ({},n,{icon:SQ}),null)};PQ.displayName="BarsOutlined",PQ.inheritAttrs=!1;const MQ=PQ,TQ={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1999.98px"},IQ=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),EQ=Ln({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:Jl({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:xp.any,width:xp.oneOfType([xp.number,xp.string]),collapsedWidth:xp.oneOfType([xp.number,xp.string]),breakpoint:xp.oneOf($a("xs","sm","md","lg","xl","xxl","xxxl")),theme:xp.oneOf($a("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:i}=Cd("layout-sider",e),l=Ao(Ok,void 0),a=wt(!!(void 0!==e.collapsed?e.collapsed:e.defaultCollapsed)),s=wt(!1);wn((()=>e.collapsed),(()=>{a.value=!!e.collapsed})),Eo(yk,a);const c=(t,o)=>{void 0===e.collapsed&&(a.value=t),n("update:collapsed",t),n("collapse",t,o)},u=wt((e=>{s.value=e.matches,n("breakpoint",e.matches),a.value!==e.matches&&c(e.matches,"responsive")}));let d;function p(e){return u.value(e)}const h=IQ("ant-sider-");l&&l.addSider(h),Gn((()=>{wn((()=>e.breakpoint),(()=>{try{null==d||d.removeEventListener("change",p)}catch(t){null==d||d.removeListener(p)}if("undefined"!=typeof window){const{matchMedia:n}=window;if(n&&e.breakpoint&&e.breakpoint in TQ){d=n(`(max-width: ${TQ[e.breakpoint]})`);try{d.addEventListener("change",p)}catch(t){d.addListener(p)}p(d)}}}),{immediate:!0})})),Jn((()=>{try{null==d||d.removeEventListener("change",p)}catch(e){null==d||d.removeListener(p)}l&&l.removeSider(h)}));const f=()=>{c(!a.value,"clickTrigger")};return()=>{var t,n;const l=i.value,{collapsedWidth:c,width:u,reverseArrow:d,zeroWidthTriggerStyle:p,trigger:h=(null===(t=r.trigger)||void 0===t?void 0:t.call(r)),collapsible:g,theme:m}=e,v=a.value?c:u,b=HS(v)?`${v}px`:String(v),y=0===parseFloat(String(c||0))?Sr("span",{onClick:f,class:Tl(`${l}-zero-width-trigger`,`${l}-zero-width-trigger-${d?"right":"left"}`),style:p},[h||Sr(MQ,null,null)]):null,O={expanded:Sr(d?nk:jR,null,null),collapsed:Sr(d?jR:nk,null,null)},w=a.value?"collapsed":"expanded",x=null!==h?y||Sr("div",{class:`${l}-trigger`,onClick:f,style:{width:b}},[h||O[w]]):null,$=[o.style,{flex:`0 0 ${b}`,maxWidth:b,minWidth:b,width:b}],S=Tl(l,`${l}-${m}`,{[`${l}-collapsed`]:!!a.value,[`${l}-has-trigger`]:g&&null!==h&&!y,[`${l}-below`]:!!s.value,[`${l}-zero-width`]:0===parseFloat(b)},o.class);return Sr("aside",hl(hl({},o),{},{class:S,style:$}),[Sr("div",{class:`${l}-children`},[null===(n=r.default)||void 0===n?void 0:n.call(r)]),g||s.value&&y?x:null])}}}),AQ=OQ,RQ=wQ,DQ=EQ,jQ=xQ,BQ=fl($Q,{Header:OQ,Footer:wQ,Content:xQ,Sider:EQ,install:e=>(e.component($Q.name,$Q),e.component(OQ.name,OQ),e.component(wQ.name,wQ),e.component(EQ.name,EQ),e.component(xQ.name,xQ),e)});function NQ(e,t,n){var o=(n||{}).atBegin;return function(e,t,n){var o,r=n||{},i=r.noTrailing,l=void 0!==i&&i,a=r.noLeading,s=void 0!==a&&a,c=r.debounceMode,u=void 0===c?void 0:c,d=!1,p=0;function h(){o&&clearTimeout(o)}function f(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=this,c=Date.now()-p;function f(){p=Date.now(),t.apply(a,r)}function g(){o=void 0}d||(s||!u||o||f(),h(),void 0===u&&c>e?s?(p=Date.now(),l||(o=setTimeout(u?g:f,e))):f():!0!==l&&(o=setTimeout(u?g:f,void 0===u?e-c:e)))}return f.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;h(),d=!n},f}(e,t,{debounceMode:!1!==(void 0!==o&&o)})}const zQ=new Xc("antSpinMove",{to:{opacity:1}}),_Q=new Xc("antRotate",{to:{transform:"rotate(405deg)"}}),LQ=e=>({[`${e.componentCls}`]:fl(fl({},Yu(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:zQ,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:_Q,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"}})}),QQ=Ju("Spin",(e=>{const t=nd(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[LQ(t)]}),{contentHeight:400});let HQ=null;const FQ=Ln({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:Jl({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:xp.any,delay:Number,indicator:xp.any},{size:"default",spinning:!0,wrapperClassName:""}),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,size:i,direction:l}=Cd("spin",e),[a,s]=QQ(r),c=wt(e.spinning&&(u=e.spinning,d=e.delay,!(u&&d&&!isNaN(Number(d)))));var u,d;let p;return wn([()=>e.spinning,()=>e.delay],(()=>{null==p||p.cancel(),p=NQ(e.delay,(()=>{c.value=e.spinning})),null==p||p()}),{immediate:!0,flush:"post"}),Jn((()=>{null==p||p.cancel()})),()=>{var t,u;const{class: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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(n,["class"]),{tip:h=(null===(t=o.tip)||void 0===t?void 0:t.call(o))}=e,f=null===(u=o.default)||void 0===u?void 0:u.call(o),g={[s.value]:!0,[r.value]:!0,[`${r.value}-sm`]:"small"===i.value,[`${r.value}-lg`]:"large"===i.value,[`${r.value}-spinning`]:c.value,[`${r.value}-show-text`]:!!h,[`${r.value}-rtl`]:"rtl"===l.value,[d]:!!d},m=Sr("div",hl(hl({},p),{},{class:g,"aria-live":"polite","aria-busy":c.value}),[function(t){const n=`${t}-dot`;let r=fa(o,e,"indicator");return null===r?null:(Array.isArray(r)&&(r=1===r.length?r[0]:r),br(r)?Cr(r,{class:n}):HQ&&br(HQ())?Cr(HQ(),{class:n}):Sr("span",{class:`${n} ${t}-dot-spin`},[Sr("i",{class:`${t}-dot-item`},null),Sr("i",{class:`${t}-dot-item`},null),Sr("i",{class:`${t}-dot-item`},null),Sr("i",{class:`${t}-dot-item`},null)]))}(r.value),h?Sr("div",{class:`${r.value}-text`},[h]):null]);if(f&&da(f).length){const t={[`${r.value}-container`]:!0,[`${r.value}-blur`]:c.value};return a(Sr("div",{class:[`${r.value}-nested-loading`,e.wrapperClassName,s.value]},[c.value&&Sr("div",{key:"loading"},[m]),Sr("div",{class:t,key:"container"},[f])]))}return a(m)}}});FQ.setDefaultIndicator=function(e){const t=e.indicator;HQ="function"==typeof t?t:()=>Sr(t,null,null)},FQ.install=function(e){return e.component(FQ.name,FQ),e};const WQ={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 VQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){ZQ(e,t,n[t])}))}return e}function ZQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XQ=function(e,t){var n=VQ({},e,t.attrs);return Sr(Rb,VQ({},n,{icon:WQ}),null)};XQ.displayName="DoubleLeftOutlined",XQ.inheritAttrs=!1;const YQ=XQ,KQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};function GQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){UQ(e,t,n[t])}))}return e}function UQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qQ=function(e,t){var n=GQ({},e,t.attrs);return Sr(Rb,GQ({},n,{icon:KQ}),null)};qQ.displayName="DoubleRightOutlined",qQ.inheritAttrs=!1;const JQ=qQ,eH=Ln({name:"MiniSelect",compatConfig:{MODE:3},inheritAttrs:!1,props:Hx(),Option:Wx.Option,setup(e,t){let{attrs:n,slots:o}=t;return()=>{const t=fl(fl(fl({},e),{size:"small"}),n);return Sr(Wx,t,o)}}}),tH=Ln({name:"MiddleSelect",inheritAttrs:!1,props:Hx(),Option:Wx.Option,setup(e,t){let{attrs:n,slots:o}=t;return()=>{const t=fl(fl(fl({},e),{size:"middle"}),n);return Sr(Wx,t,o)}}}),nH=Ln({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:xp.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)},i=t=>{n("keypress",t,r,e.page)};return()=>{const{showTitle:t,page:n,itemRender:l}=e,{class:a,style:s}=o,c=`${e.rootPrefixCls}-item`,u=Tl(c,`${c}-${e.page}`,{[`${c}-active`]:e.active,[`${c}-disabled`]:!e.page},a);return Sr("li",{onClick:r,onKeypress:i,title:t?String(n):null,tabindex:"0",class:u,style:s},[l({page:n,type:"page",originalElement:Sr("a",{rel:"nofollow"},[n])})])}}}),oH=13,rH=38,iH=40,lH=Ln({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:xp.any,current:Number,pageSizeOptions:xp.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:xp.object,rootPrefixCls:String,selectPrefixCls:String,goButton:xp.any},setup(e){const t=Ot(""),n=Xr((()=>!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)},i=o=>{const{goButton:r,quickGo:i,rootPrefixCls:l}=e;r||""===t.value||(o.relatedTarget&&(o.relatedTarget.className.indexOf(`${l}-item-link`)>=0||o.relatedTarget.className.indexOf(`${l}-item`)>=0)||i(n.value),t.value="")},l=o=>{""!==t.value&&(o.keyCode!==oH&&"click"!==o.type||(e.quickGo(n.value),t.value=""))},a=Xr((()=>{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:h,pageSize:f,disabled:g}=e,m=`${n}-options`;let v=null,b=null,y=null;if(!c&&!u)return null;if(c&&p){const t=e.buildOptionText||o,n=a.value.map(((e,n)=>Sr(p.Option,{key:n,value:e},{default:()=>[t({value:e})]})));v=Sr(p,{disabled:g,prefixCls:h,showSearch:!1,class:`${m}-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?Sr("button",{type:"button",onClick:l,onKeyup:l,disabled:g,class:`${m}-quick-jumper-button`},[s.jump_to_confirm]):Sr("span",{onClick:l,onKeyup:l},[d])),b=Sr("div",{class:`${m}-quick-jumper`},[s.jump_to,kn(Sr("input",{disabled:g,type:"text",value:t.value,onInput:r,onChange:r,onKeyup:l,onBlur:i},null),[[jm]]),s.page,y])),Sr("li",{class:`${m}`},[v,b])}}});function aH(e,t,n){const o=void 0===e?t.statePageSize:e;return Math.floor((n.total-1)/o)+1}const sH=Ln({compatConfig:{MODE:3},name:"Pagination",mixins:[pm],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:xp.string.def("rc-pagination"),selectPrefixCls:xp.string.def("rc-select"),current:Number,defaultCurrent:xp.number.def(1),total:xp.number.def(0),pageSize:Number,defaultPageSize:xp.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:xp.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:xp.oneOfType([xp.looseBool,xp.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:xp.arrayOf(xp.oneOfType([xp.number,xp.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:xp.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:xp.func.def((function(e){let{originalElement:t}=e;return t})),prevIcon:xp.any,nextIcon:xp.any,jumpPrevIcon:xp.any,jumpNextIcon:xp.any,totalBoundaryShowSizeChanger:xp.number.def(50)},data(){const e=this.$props;let t=hS([this.current,this.defaultCurrent]);const n=hS([this.pageSize,this.defaultPageSize]);return t=Math.min(t,aH(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=aH(e,this.$data,this.$props);n=n>o?o:n,ta(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=aH(this.pageSize,this.$data,this.$props);if(ta(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(aH(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:n}=this.$props;return aa(this,e,this.$props)||Sr("button",{type:"button","aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){const t=e.target.value,n=aH(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!==rH&&e.keyCode!==iH||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===oH?this.handleChange(t):e.keyCode===rH?this.handleChange(t-1):e.keyCode===iH&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const n=t,o=aH(e,this.$data,this.$props);t=t>o?o:t,0===o&&(t=this.stateCurrent),"number"==typeof e&&(ta(this,"pageSize")||this.setState({statePageSize:e}),ta(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=aH(void 0,this.$data,this.$props);return n>e?n=e:n<1&&(n=1),ta(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.stateCurrent<aH(void 0,this.$data,this.$props)},getShowSizeChanger(){const{showSizeChanger:e,total:t,totalBoundaryShowSizeChanger:n}=this.$props;return void 0!==e?e:t>n},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;r<n;r++)o[r-2]=arguments[r];t(...o)}},runIfEnterPrev(e){this.runIfEnter(e,this.prev)},runIfEnterNext(e){this.runIfEnter(e,this.next)},runIfEnterJumpPrev(e){this.runIfEnter(e,this.jumpPrev)},runIfEnterJumpNext(e){this.runIfEnter(e,this.jumpNext)},handleGoTO(e){e.keyCode!==oH&&"click"!==e.type||this.handleChange(this.stateCurrentInputValue)},renderPrev(e){const{itemRender:t}=this.$props,n=t({page:e,type:"prev",originalElement:this.getItemIcon("prevIcon","prev page")}),o=!this.hasPrev();return ha(n)?Zh(n,o?{disabled:o}:{}):n},renderNext(e){const{itemRender:t}=this.$props,n=t({page:e,type:"next",originalElement:this.getItemIcon("nextIcon","next page")}),o=!this.hasNext();return ha(n)?Zh(n,o?{disabled:o}:{}):n}},render(){const{prefixCls:e,disabled:t,hideOnSinglePage:n,total:o,locale:r,showQuickJumper:i,showLessItems:l,showTitle:a,showTotal:s,simple:c,itemRender:u,showPrevNextJumpers:d,jumpPrevIcon:p,jumpNextIcon:h,selectComponentClass:f,selectPrefixCls:g,pageSizeOptions:m}=this.$props,{stateCurrent:v,statePageSize:b}=this,y=ea(this.$attrs).extraAttrs,{class:O}=y,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(y,["class"]);if(!0===n&&this.total<=b)return null;const x=aH(void 0,this.$data,this.$props),$=[];let S=null,C=null,k=null,P=null,M=null;const T=i&&i.goButton,I=l?1:2,E=v-1>0?v-1:0,A=v+1<x?v+1:x,R=this.hasPrev(),D=this.hasNext();if(c)return T&&(M="boolean"==typeof T?Sr("button",{type:"button",onClick:this.handleGoTO,onKeyup:this.handleGoTO},[r.jump_to_confirm]):Sr("span",{onClick:this.handleGoTO,onKeyup:this.handleGoTO},[T]),M=Sr("li",{title:a?`${r.jump_to}${v}/${x}`:null,class:`${e}-simple-pager`},[M])),Sr("ul",hl({class:Tl(`${e} ${e}-simple`,{[`${e}-disabled`]:t},O)},w),[Sr("li",{title:a?r.prev_page:null,onClick:this.prev,tabindex:R?0:null,onKeypress:this.runIfEnterPrev,class:Tl(`${e}-prev`,{[`${e}-disabled`]:!R}),"aria-disabled":!R},[this.renderPrev(E)]),Sr("li",{title:a?`${v}/${x}`:null,class:`${e}-simple-pager`},[kn(Sr("input",{type:"text",value:this.stateCurrentInputValue,disabled:t,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onInput:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"},null),[[jm]]),Sr("span",{class:`${e}-slash`},[kr("")]),x]),Sr("li",{title:a?r.next_page:null,onClick:this.next,tabindex:D?0:null,onKeypress:this.runIfEnterNext,class:Tl(`${e}-next`,{[`${e}-disabled`]:!D}),"aria-disabled":!D},[this.renderNext(A)]),M]);if(x<=3+2*I){const t={locale:r,rootPrefixCls:e,showTitle:a,itemRender:u,onClick:this.handleChange,onKeypress:this.runIfEnter};x||$.push(Sr(nH,hl(hl({},t),{},{key:"noPager",page:1,class:`${e}-item-disabled`}),null));for(let e=1;e<=x;e+=1){const n=v===e;$.push(Sr(nH,hl(hl({},t),{},{key:e,page:e,active:n}),null))}}else{const t=l?r.prev_3:r.prev_5,n=l?r.next_3:r.next_5;d&&(S=Sr("li",{title:this.showTitle?t:null,key:"prev",onClick:this.jumpPrev,tabindex:"0",onKeypress:this.runIfEnterJumpPrev,class:Tl(`${e}-jump-prev`,{[`${e}-jump-prev-custom-icon`]:!!p})},[u({page:this.getJumpPrevPage(),type:"jump-prev",originalElement:this.getItemIcon("jumpPrevIcon","prev page")})]),C=Sr("li",{title:this.showTitle?n:null,key:"next",tabindex:"0",onClick:this.jumpNext,onKeypress:this.runIfEnterJumpNext,class:Tl(`${e}-jump-next`,{[`${e}-jump-next-custom-icon`]:!!h})},[u({page:this.getJumpNextPage(),type:"jump-next",originalElement:this.getItemIcon("jumpNextIcon","next page")})])),P=Sr(nH,{locale:r,last:!0,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:x,page:x,active:!1,showTitle:a,itemRender:u},null),k=Sr(nH,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:1,page:1,active:!1,showTitle:a,itemRender:u},null);let o=Math.max(1,v-I),i=Math.min(v+I,x);v-1<=I&&(i=1+2*I),x-v<=I&&(o=x-2*I);for(let l=o;l<=i;l+=1){const t=v===l;$.push(Sr(nH,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:l,page:l,active:t,showTitle:a,itemRender:u},null))}v-1>=2*I&&3!==v&&($[0]=Sr(nH,{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),$.unshift(S)),x-v>=2*I&&v!==x-2&&($[$.length-1]=Sr(nH,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:i,page:i,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:u},null),$.push(C)),1!==o&&$.unshift(k),i!==x&&$.push(P)}let j=null;s&&(j=Sr("li",{class:`${e}-total-text`},[s(o,[0===o?0:(v-1)*b+1,v*b>o?o:v*b])]));const B=!R||!x,N=!D||!x,z=this.buildOptionText||this.$slots.buildOptionText;return Sr("ul",hl(hl({unselectable:"on",ref:"paginationNode"},w),{},{class:Tl({[`${e}`]:!0,[`${e}-disabled`]:t},O)}),[j,Sr("li",{title:a?r.prev_page:null,onClick:this.prev,tabindex:B?null:0,onKeypress:this.runIfEnterPrev,class:Tl(`${e}-prev`,{[`${e}-disabled`]:B}),"aria-disabled":B},[this.renderPrev(E)]),$,Sr("li",{title:a?r.next_page:null,onClick:this.next,tabindex:N?null:0,onKeypress:this.runIfEnterNext,class:Tl(`${e}-next`,{[`${e}-disabled`]:N}),"aria-disabled":N},[this.renderNext(A)]),Sr(lH,{disabled:t,locale:r,rootPrefixCls:e,selectComponentClass:f,selectPrefixCls:g,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:v,pageSize:b,pageSizeOptions:m,buildOptionText:z||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:T},null)])}}),cH=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"}}}}}},uH=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:fl(fl({},HT(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},dH=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"}}}}},pH=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":fl({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Uu(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`]:fl({},Uu(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:fl(fl({},WT(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},hH=e=>{const{componentCls:t}=e;return{[`${t}-item`]:fl(fl({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}}},qu(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},fH=e=>{const{componentCls:t}=e;return{[t]:fl(fl(fl(fl(fl(fl(fl(fl({},Yu(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"}}),hH(e)),pH(e)),dH(e)),uH(e)),cH(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"}}},gH=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}}}}},mH=Ju("Pagination",(e=>{const t=nd(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"},UT(e));return[fH(t),e.wireframe&&gH(t)]})),vH=Sa(Ln({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:{total:Number,defaultCurrent:Number,disabled:Pa(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:Pa(),showSizeChanger:Pa(),pageSizeOptions:Ia(),buildOptionText:Ma(),showQuickJumper:Aa([Boolean,Object]),showTotal:Ma(),size:Ea(),simple:Pa(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:Ma(),role:String,responsive:Boolean,showLessItems:Pa(),onChange:Ma(),onShowSizeChange:Ma(),"onUpdate:current":Ma(),"onUpdate:pageSize":Ma()},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,configProvider:i,direction:l,size:a}=Cd("pagination",e),[s,c]=mH(r),u=Xr((()=>i.getPrefixCls("select",e.selectPrefixCls))),d=Y$(),[p]=os("Pagination",Ua,Et(e,"locale"));return()=>{var t;const{itemRender:i=n.itemRender,buildOptionText:h=n.buildOptionText,selectComponentClass:f,responsive:g}=e,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["itemRender","buildOptionText","selectComponentClass","responsive"]),v="small"===a.value||!(!(null===(t=d.value)||void 0===t?void 0:t.xs)||a.value||!g),b=fl(fl(fl(fl(fl({},m),(e=>{const t=Sr("span",{class:`${e}-item-ellipsis`},[kr("•••")]);return{prevIcon:Sr("button",{class:`${e}-item-link`,type:"button",tabindex:-1},["rtl"===l.value?Sr(nk,null,null):Sr(jR,null,null)]),nextIcon:Sr("button",{class:`${e}-item-link`,type:"button",tabindex:-1},["rtl"===l.value?Sr(jR,null,null):Sr(nk,null,null)]),jumpPrevIcon:Sr("a",{rel:"nofollow",class:`${e}-item-link`},[Sr("div",{class:`${e}-item-container`},["rtl"===l.value?Sr(JQ,{class:`${e}-item-link-icon`},null):Sr(YQ,{class:`${e}-item-link-icon`},null),t])]),jumpNextIcon:Sr("a",{rel:"nofollow",class:`${e}-item-link`},[Sr("div",{class:`${e}-item-container`},["rtl"===l.value?Sr(YQ,{class:`${e}-item-link-icon`},null):Sr(JQ,{class:`${e}-item-link-icon`},null),t])])}})(r.value)),{prefixCls:r.value,selectPrefixCls:u.value,selectComponentClass:f||(v?eH:tH),locale:p.value,buildOptionText:h}),o),{class:Tl({[`${r.value}-mini`]:v,[`${r.value}-rtl`]:"rtl"===l.value},o.class,c.value),itemRender:i});return s(Sr(sH,b,null))}}})),bH=Ln({compatConfig:{MODE:3},name:"AListItemMeta",props:{avatar:xp.any,description:xp.any,prefixCls:String,title:xp.any},displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Cd("list",e);return()=>{var t,r,i,l,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!==(i=e.description)&&void 0!==i?i:null===(l=n.description)||void 0===l?void 0:l.call(n),p=null!==(a=e.avatar)&&void 0!==a?a:null===(s=n.avatar)||void 0===s?void 0:s.call(n),h=Sr("div",{class:`${o.value}-item-meta-content`},[u&&Sr("h4",{class:`${o.value}-item-meta-title`},[u]),d&&Sr("div",{class:`${o.value}-item-meta-description`},[d])]);return Sr("div",{class:c},[p&&Sr("div",{class:`${o.value}-item-meta-avatar`},[p]),(u||d)&&h])}}}),yH=Symbol("ListContextKey"),OH=Ln({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:bH,props:{prefixCls:String,extra:xp.any,actions:xp.array,grid:Object,colStyle:{type:Object,default:void 0}},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{itemLayout:r,grid:i}=Ao(yH,{grid:Ot(),itemLayout:Ot()}),{prefixCls:l}=Cd("list",e),a=()=>{var e;const t=(null===(e=n.default)||void 0===e?void 0:e.call(n))||[];let o;return t.forEach((e=>{var t;(t=e)&&t.type===ar&&!ua(e)&&(o=!0)})),o&&t.length>1},s=()=>{var t,o;const i=null!==(t=e.extra)&&void 0!==t?t:null===(o=n.extra)||void 0===o?void 0:o.call(n);return"vertical"===r.value?!!i:!a()};return()=>{var t,a,c,u,d;const{class:p}=o,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["class"]),f=l.value,g=null!==(t=e.extra)&&void 0!==t?t:null===(a=n.extra)||void 0===a?void 0:a.call(n),m=null===(c=n.default)||void 0===c?void 0:c.call(n);let v=null!==(u=e.actions)&&void 0!==u?u:oa(null===(d=n.actions)||void 0===d?void 0:d.call(n));v=v&&!Array.isArray(v)?[v]:v;const b=v&&v.length>0&&Sr("ul",{class:`${f}-item-action`,key:"actions"},[v.map(((e,t)=>Sr("li",{key:`${f}-item-action-${t}`},[e,t!==v.length-1&&Sr("em",{class:`${f}-item-action-split`},null)])))]),y=i.value?"div":"li",O=Sr(y,hl(hl({},h),{},{class:Tl(`${f}-item`,{[`${f}-item-no-flex`]:!s()},p)}),{default:()=>["vertical"===r.value&&g?[Sr("div",{class:`${f}-item-main`,key:"content"},[m,b]),Sr("div",{class:`${f}-item-extra`,key:"extra"},[g])]:[m,b,Zh(g,{key:"extra"})]]});return i.value?Sr(QD,{flex:1,style:e.colStyle},{default:()=>[O]}):O}}}),wH=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:o,margin:r,padding:i,listItemPaddingSM:l,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:l}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:`${i}px ${o}px`}}}},xH=e=>{const{componentCls:t,screenSM:n,screenMD:o,marginLG:r,marginSM:i,margin:l}=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:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${l}px`}}}}}},$H=e=>{const{componentCls:t,antCls:n,controlHeight:o,minHeight:r,paddingSM:i,marginLG:l,padding:a,listItemPadding:s,colorPrimary:c,listItemPaddingSM:u,listItemPaddingLG:d,paddingXS:p,margin:h,colorText:f,colorTextDescription:g,motionDurationSlow:m,lineWidth:v}=e;return{[`${t}`]:fl(fl({},Yu(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:l,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 ${m}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:g,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:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:v,height:Math.ceil(e.fontSize*e.lineHeight)-2*e.marginXXS,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${a}px 0`,color:g,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:h,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:l},[`${t}-item-meta`]:{marginBlockEnd:a,[`${t}-item-meta-title`]:{marginBlockEnd:i,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"}}}}},SH=Ju("List",(e=>{const t=nd(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[$H(t),wH(t),xH(t)]}),{contentWidth:220}),CH=Ln({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:OH,props:Jl({bordered:Pa(),dataSource:Ia(),extra:{validator:()=>!0},grid:ka(),itemLayout:String,loading:Aa([Boolean,Object]),loadMore:{validator:()=>!0},pagination:Aa([Boolean,Object]),prefixCls:String,rowKey:Aa([String,Number,Function]),renderItem:Ma(),size:String,split:Pa(),header:{validator:()=>!0},footer:{validator:()=>!0},locale:ka()},{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;var r,i;Eo(yH,{grid:Et(e,"grid"),itemLayout:Et(e,"itemLayout")});const l={current:1,total:0},{prefixCls:a,direction:s,renderEmpty:c}=Cd("list",e),[u,d]=SH(a),p=Xr((()=>e.pagination&&"object"==typeof e.pagination?e.pagination:{})),h=Ot(null!==(r=p.value.defaultCurrent)&&void 0!==r?r:1),f=Ot(null!==(i=p.value.defaultPageSize)&&void 0!==i?i:10);wn(p,(()=>{"current"in p.value&&(h.value=p.value.current),"pageSize"in p.value&&(f.value=p.value.pageSize)}));const g=[],m=e=>(t,n)=>{h.value=t,f.value=n,p.value[e]&&p.value[e](t,n)},v=m("onChange"),b=m("onShowSizeChange"),y=Xr((()=>"boolean"==typeof e.loading?{spinning:e.loading}:e.loading)),O=Xr((()=>y.value&&y.value.spinning)),w=Xr((()=>{let t="";switch(e.size){case"large":t="lg";break;case"small":t="sm"}return t})),x=Xr((()=>({[`${a.value}`]:!0,[`${a.value}-vertical`]:"vertical"===e.itemLayout,[`${a.value}-${w.value}`]:w.value,[`${a.value}-split`]:e.split,[`${a.value}-bordered`]:e.bordered,[`${a.value}-loading`]:O.value,[`${a.value}-grid`]:!!e.grid,[`${a.value}-rtl`]:"rtl"===s.value}))),$=Xr((()=>{const t=fl(fl(fl({},l),{total:e.dataSource.length,current:h.value,pageSize:f.value}),e.pagination||{}),n=Math.ceil(t.total/t.pageSize);return t.current>n&&(t.current=n),t})),S=Xr((()=>{let t=[...e.dataSource];return e.pagination&&e.dataSource.length>($.value.current-1)*$.value.pageSize&&(t=[...e.dataSource].splice(($.value.current-1)*$.value.pageSize,$.value.pageSize)),t})),C=Y$(),k=K$((()=>{for(let e=0;e<Z$.length;e+=1){const t=Z$[e];if(C.value[t])return t}})),P=Xr((()=>{if(!e.grid)return;const t=k.value&&e.grid[k.value]?e.grid[k.value]:e.grid.column;return t?{width:100/t+"%",maxWidth:100/t+"%"}:void 0}));return()=>{var t,r,i,l,s,p,h,f;const m=null!==(t=e.loadMore)&&void 0!==t?t:null===(r=n.loadMore)||void 0===r?void 0:r.call(n),w=null!==(i=e.footer)&&void 0!==i?i:null===(l=n.footer)||void 0===l?void 0:l.call(n),C=null!==(s=e.header)&&void 0!==s?s:null===(p=n.header)||void 0===p?void 0:p.call(n),k=oa(null===(h=n.default)||void 0===h?void 0:h.call(n)),M=!!(m||e.pagination||w),T=Tl(fl(fl({},x.value),{[`${a.value}-something-after-last-item`]:M}),o.class,d.value),I=e.pagination?Sr("div",{class:`${a.value}-pagination`},[Sr(vH,hl(hl({},$.value),{},{onChange:v,onShowSizeChange:b}),null)]):null;let E=O.value&&Sr("div",{style:{minHeight:"53px"}},null);if(S.value.length>0){g.length=0;const t=S.value.map(((t,o)=>((t,o)=>{var r;const i=null!==(r=e.renderItem)&&void 0!==r?r:n.renderItem;if(!i)return null;let l;const a=typeof e.rowKey;return l="function"===a?e.rowKey(t):"string"===a||"number"===a?t[e.rowKey]:t.key,l||(l=`list-item-${o}`),g[o]=l,i({item:t,index:o})})(t,o))),o=t.map(((e,t)=>Sr("div",{key:g[t],style:P.value},[e])));E=e.grid?Sr(XR,{gutter:e.grid.gutter},{default:()=>[o]}):Sr("ul",{class:`${a.value}-items`},[t])}else k.length||O.value||(E=Sr("div",{class:`${a.value}-empty-text`},[(null===(f=e.locale)||void 0===f?void 0:f.emptyText)||c("List")]));const A=$.value.position||"bottom";return u(Sr("div",hl(hl({},o),{},{class:T}),[("top"===A||"both"===A)&&I,C&&Sr("div",{class:`${a.value}-header`},[C]),Sr(FQ,y.value,{default:()=>[E,k]}),w&&Sr("div",{class:`${a.value}-footer`},[w]),m||("bottom"===A||"both"===A)&&I]))}}});CH.install=function(e){return e.component(CH.name,CH),e.component(CH.Item.name,CH.Item),e.component(CH.Item.Meta.name,CH.Item.Meta),e};const kH=CH;function PH(e){return(e||"").toLowerCase()}function MH(e,t){const{measureLocation:n,prefix:o,targetText:r,selectionStart:i,split:l}=t;let a=e.slice(0,n);a[a.length-l.length]===l&&(a=a.slice(0,a.length-l.length)),a&&(a=`${a}${l}`);let s=function(e,t,n){const o=e[0];if(!o||o===n)return e;let r=e;const i=t.length;for(let l=0;l<i;l+=1){if(PH(r[l])!==PH(t[l])){r=r.slice(l);break}l===i-1&&(r=r.slice(i))}return r}(e.slice(i),r.slice(i-n-o.length),l);s.slice(0,l.length)===l&&(s=s.slice(l.length));const c=`${a}${o}${r}${l}`;return{text:`${c}${s}`,selectionLocation:c.length}}function TH(e,t){let{value:n=""}=t;const o=e.toLowerCase();return-1!==n.toLowerCase().indexOf(o)}const IH=Symbol("MentionsContextKey");function EH(){}const AH=Ln({compatConfig:{MODE:3},name:"DropdownMenu",props:{prefixCls:String,options:{type:Array,default:()=>[]}},setup(e,t){let{slots:n}=t;const{activeIndex:o,setActiveIndex:r,selectOption:i,onFocus:l=EH,loading:a}=Ao(IH,{activeIndex:wt(),loading:wt(!1)});let s;const c=e=>{clearTimeout(s),s=setTimeout((()=>{l(e)}))};return Jn((()=>{clearTimeout(s)})),()=>{var t;const{prefixCls:l,options:s}=e,u=s[o.value]||{};return Sr(rP,{prefixCls:`${l}-menu`,activeKey:u.value,onSelect:e=>{let{key:t}=e;const n=s.find((e=>{let{value:n}=e;return n===t}));i(n)},onMousedown:c},{default:()=>[!a.value&&s.map(((e,t)=>{var o,i;const{value:l,disabled:a,label:s=e.value,class:c,style:u}=e;return Sr(Ik,{key:l,disabled:a,onMouseenter:()=>{r(t)},class:c,style:u},{default:()=>[null!==(i=null===(o=n.option)||void 0===o?void 0:o.call(n,e))&&void 0!==i?i:"function"==typeof s?s(e):s]})})),a.value||0!==s.length?null:Sr(Ik,{key:"notFoundContent",disabled:!0},{default:()=>[null===(t=n.notFoundContent)||void 0===t?void 0:t.call(n)]}),a.value&&Sr(Ik,{key:"loading",disabled:!0},{default:()=>[Sr(FQ,{size:"small"},null)]})]})}}}),RH={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}}},DH=Ln({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 Sr(AH,{prefixCls:o(),options:t},{notFoundContent:n.notFoundContent,option:n.option})},i=Xr((()=>{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:l,getPopupContainer:a}=e;return Sr(Pm,{prefixCls:o(),popupVisible:t,popup:r(),popupClassName:e.dropdownClassName,popupPlacement:i.value,popupTransitionName:l,builtinPlacements:RH,getPopupContainer:a},{default:n.default})}}}),jH=$a("top","bottom"),BH={autofocus:{type:Boolean,default:void 0},prefix:xp.oneOfType([xp.string,xp.arrayOf(xp.string)]),prefixCls:String,value:String,disabled:{type:Boolean,default:void 0},split:String,transitionName:String,placement:xp.oneOf(jH),character:xp.any,characterRender:Function,filterOption:{type:[Boolean,Function]},validateSearch:Function,getPopupContainer:{type:Function},options:Ia(),loading:{type:Boolean,default:void 0},rows:[Number,String],direction:{type:String}},NH=fl(fl({},BH),{dropdownClassName:String}),zH={prefix:"@",split:" ",rows:1,validateSearch:function(e,t){const{split:n}=t;return!n||-1===e.indexOf(n)},filterOption:()=>TH};Jl(NH,zH);var _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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function LH(){}const QH=Ln({compatConfig:{MODE:3},name:"Mentions",inheritAttrs:!1,props:Jl(NH,zH),emits:["change","select","search","focus","blur","pressenter"],setup(e,t){let{emit:n,attrs:o,expose:r,slots:i}=t;const l=Ot(null),a=Ot(null),s=Ot(),c=it({value:e.value||"",measuring:!1,measureLocation:0,measureText:null,measurePrefix:"",activeIndex:0,isFocus:!1});yn((()=>{c.value=e.value}));const u=e=>{n("change",e)},d=e=>{let{target:{value:t,composing:n},isComposing:o}=e;o||n||u(t)},p=e=>{fl(c,{measuring:!1,measureLocation:0,measureText:null}),null==e||e()},h=e=>{const{which:t}=e;if(c.measuring)if(t===Tm.UP||t===Tm.DOWN){const n=x.value.length,o=t===Tm.UP?-1:1,r=(c.activeIndex+o+n)%n;c.activeIndex=r,e.preventDefault()}else if(t===Tm.ESC)p();else if(t===Tm.ENTER){if(e.preventDefault(),!x.value.length)return void p();const t=x.value[c.activeIndex];O(t)}},f=t=>{const{key:o,which:r}=t,{measureText:i,measuring:l}=c,{prefix:a,validateSearch:s}=e,u=t.target;if(u.composing)return;const d=function(e){const{selectionStart:t}=e;return e.value.slice(0,t)}(u),{location:h,prefix:f}=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:""})}(d,a);if(-1===[Tm.ESC,Tm.UP,Tm.DOWN,Tm.ENTER].indexOf(r))if(-1!==h){const t=d.slice(h+f.length),r=s(t,e),a=!!w(t).length;r?(o===f||"Shift"===o||l||t!==i&&a)&&((e,t,n)=>{fl(c,{measuring:!0,measureText:e,measurePrefix:t,measureLocation:n,activeIndex:0})})(t,f,h):l&&p(),r&&n("search",t,f)}else l&&p()},g=e=>{c.measuring||n("pressenter",e)},m=e=>{b(e)},v=e=>{y(e)},b=e=>{clearTimeout(s.value);const{isFocus:t}=c;!t&&e&&n("focus",e),c.isFocus=!0},y=e=>{s.value=setTimeout((()=>{c.isFocus=!1,p(),n("blur",e)}),100)},O=t=>{const{split:o}=e,{value:r=""}=t,{text:i,selectionLocation:l}=MH(c.value,{measureLocation:c.measureLocation,targetText:r,prefix:c.measurePrefix,selectionStart:a.value.selectionStart,split:o});u(i),p((()=>{var e,t;e=a.value,t=l,e.setSelectionRange(t,t),e.blur(),e.focus()})),n("select",t,c.measurePrefix)},w=t=>{const n=t||c.measureText||"",{filterOption:o}=e;return e.options.filter((e=>0==!!o||o(n,e)))},x=Xr((()=>w()));return r({blur:()=>{a.value.blur()},focus:()=>{a.value.focus()}}),Eo(IH,{activeIndex:Et(c,"activeIndex"),setActiveIndex:e=>{c.activeIndex=e},selectOption:O,onFocus:b,onBlur:y,loading:Et(e,"loading")}),qn((()=>{Vt((()=>{c.measuring&&(l.value.scrollTop=a.value.scrollTop)}))})),()=>{const{measureLocation:t,measurePrefix:n,measuring:r}=c,{prefixCls:s,placement:u,transitionName:p,getPopupContainer:b,direction:y}=e,O=_H(e,["prefixCls","placement","transitionName","getPopupContainer","direction"]),{class:w,style:$}=o,S=_H(o,["class","style"]),C=fl(fl(fl({},kd(O,["value","prefix","split","validateSearch","filterOption","options","loading"])),S),{onChange:LH,onSelect:LH,value:c.value,onInput:d,onBlur:v,onKeydown:h,onKeyup:f,onFocus:m,onPressenter:g});return Sr("div",{class:Tl(s,w),style:$},[kn(Sr("textarea",hl({ref:a},C),null),[[jm]]),r&&Sr("div",{ref:l,class:`${s}-measure`},[c.value.slice(0,t),Sr(DH,{prefixCls:s,transitionName:p,dropdownClassName:e.dropdownClassName,placement:u,options:r?x.value:[],visible:!0,direction:y,getPopupContainer:b},{default:()=>[Sr("span",null,[n])],notFoundContent:i.notFoundContent,option:i.option}),c.value.slice(t+n.length)])])}}}),HH=fl(fl({},{value:String,disabled:Boolean,payload:ka()}),{label:Ta([])}),FH={name:"Option",props:HH,render(e,t){let{slots:n}=t;var o;return null===(o=n.default)||void 0===o?void 0:o.call(n)}};fl({compatConfig:{MODE:3}},FH);const WH=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:o,controlPaddingHorizontal:r,colorText:i,motionDurationSlow:l,lineHeight:a,controlHeight:s,inputPaddingHorizontal:c,inputPaddingVertical:u,fontSize:d,colorBgElevated:p,borderRadiusLG:h,boxShadowSecondary:f}=e,g=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{[t]:fl(fl(fl(fl(fl({},Yu(e)),WT(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:a,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),FT(e,t)),{"&-disabled":{"> textarea":fl({},LT(e))},"&-focused":fl({},_T(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:i,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":fl({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"inherit"},NT(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":fl(fl({},Yu(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",backgroundColor:p,borderRadius:h,outline:"none",boxShadow:f,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,marginBottom:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":fl(fl({},Xu),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${g}px ${r}px`,color:i,fontWeight:"normal",lineHeight:a,cursor:"pointer",transition:`background ${l} ease`,"&:hover":{backgroundColor:o},"&:first-child":{borderStartStartRadius:h,borderStartEndRadius:h,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:h,borderEndEndRadius:h},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:o,cursor:"not-allowed"}},"&-selected":{color:i,fontWeight:e.fontWeightStrong,backgroundColor:o},"&-active":{backgroundColor:o}})}})})}},VH=Ju("Mentions",(e=>{const t=UT(e);return[WH(t)]}),(e=>({dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50})));var ZH=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function XH(){return!0}const YH=Ln({compatConfig:{MODE:3},name:"AMentions",inheritAttrs:!1,props:fl(fl({},BH),{loading:{type:Boolean,default:void 0},onFocus:{type:Function},onBlur:{type:Function},onSelect:{type:Function},onChange:{type:Function},onPressenter:{type:Function},"onUpdate:value":{type:Function},notFoundContent:xp.any,defaultValue:String,id:String,status:String}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r,expose:i}=t;var l,a;const{prefixCls:s,renderEmpty:c,direction:u}=Cd("mentions",e),[d,p]=VH(s),h=wt(!1),f=wt(null),g=wt(null!==(a=null!==(l=e.value)&&void 0!==l?l:e.defaultValue)&&void 0!==a?a:""),m=gy(),v=vy.useInject(),b=Xr((()=>Oy(v.status,e.status)));ik({prefixCls:Xr((()=>`${s.value}-menu`)),mode:Xr((()=>"vertical")),selectable:Xr((()=>!1)),onClick:()=>{},validator:e=>{Rs()}}),wn((()=>e.value),(e=>{g.value=e}));const y=e=>{h.value=!0,o("focus",e)},O=e=>{h.value=!1,o("blur",e),m.onFieldBlur()},w=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o("select",...t),h.value=!0},x=t=>{void 0===e.value&&(g.value=t),o("update:value",t),o("change",t),m.onFieldChange()},$=()=>{const t=e.notFoundContent;return void 0!==t?t:n.notFoundContent?n.notFoundContent():c("Select")};i({focus:()=>{f.value.focus()},blur:()=>{f.value.blur()}});const S=Xr((()=>e.loading?XH:e.filterOption));return()=>{const{disabled:t,getPopupContainer:o,rows:i=1,id:l=m.id.value}=e,a=ZH(e,["disabled","getPopupContainer","rows","id"]),{hasFeedback:c,feedbackIcon:C}=v,{class:k}=r,P=ZH(r,["class"]),M=kd(a,["defaultValue","onUpdate:value","prefixCls"]),T=Tl({[`${s.value}-disabled`]:t,[`${s.value}-focused`]:h.value,[`${s.value}-rtl`]:"rtl"===u.value},yy(s.value,b.value),!c&&k,p.value),I=fl(fl(fl(fl({prefixCls:s.value},M),{disabled:t,direction:u.value,filterOption:S.value,getPopupContainer:o,options:e.loading?[{value:"ANTDV_SEARCHING",disabled:!0,label:Sr(FQ,{size:"small"},null)}]:e.options||oa((null===(E=n.default)||void 0===E?void 0:E.call(n))||[]).map((e=>{var t,n;return fl(fl({},la(e)),{label:null===(n=null===(t=e.children)||void 0===t?void 0:t.default)||void 0===n?void 0:n.call(t)})})),class:T}),P),{rows:i,onChange:x,onSelect:w,onFocus:y,onBlur:O,ref:f,value:g.value,id:l});var E;const A=Sr(QH,hl(hl({},I),{},{dropdownClassName:p.value}),{notFoundContent:$,option:n.option});return d(c?Sr("div",{class:Tl(`${s.value}-affix-wrapper`,yy(`${s.value}-affix-wrapper`,b.value,c),k,p.value)},[A,Sr("span",{class:`${s.value}-suffix`},[C])]):A)}}}),KH=Ln(fl(fl({compatConfig:{MODE:3}},FH),{name:"AMentionsOption",props:HH})),GH=fl(YH,{Option:KH,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(YH.name,YH),e.component(KH.name,KH),e)});let UH;const qH=e=>{UH={x:e.pageX,y:e.pageY},setTimeout((()=>UH=null),100)};BR()&&ja(document.documentElement,"click",qH,!0);const JH=Ln({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:Jl({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:xp.any,closable:{type:Boolean,default:void 0},closeIcon:xp.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:xp.any,okText:xp.any,okType:String,cancelText:xp.any,icon:xp.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:ka(),cancelButtonProps:ka(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:ka(),maskStyle:ka(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:ka()},{width:520,confirmLoading:!1,okType:"primary"}),setup(e,t){let{emit:n,slots:o,attrs:r}=t;const[i]=os("Modal"),{prefixCls:l,rootPrefixCls:a,direction:s,getPopupContainer:c}=Cd("modal",e),[u,d]=CL(l);Rs(void 0===e.visible);const p=e=>{n("update:visible",!1),n("update:open",!1),n("cancel",e),n("change",!1)},h=e=>{n("ok",e)},f=()=>{var t,n;const{okText:r=(null===(t=o.okText)||void 0===t?void 0:t.call(o)),okType:l,cancelText:a=(null===(n=o.cancelText)||void 0===n?void 0:n.call(o)),confirmLoading:s}=e;return Sr(lr,null,[Sr(zC,hl({onClick:p},e.cancelButtonProps),{default:()=>[a||i.value.cancelText]}),Sr(zC,hl(hl({},tC(l)),{},{loading:s,onClick:h},e.okButtonProps),{default:()=>[r||i.value.okText]})])};return()=>{var t,n;const{prefixCls:i,visible:h,open:g,wrapClassName:m,centered:v,getContainer:b,closeIcon:y=(null===(t=o.closeIcon)||void 0===t?void 0:t.call(o)),focusTriggerAfterClose:O=!0}=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),x=Tl(m,{[`${l.value}-centered`]:!!v,[`${l.value}-wrap-rtl`]:"rtl"===s.value});return u(Sr(R_,hl(hl(hl({},w),r),{},{rootClassName:d.value,class:Tl(d.value,r.class),getContainer:b||(null==c?void 0:c.value),prefixCls:l.value,wrapClassName:x,visible:null!=g?g:h,onClose:p,focusTriggerAfterClose:O,transitionName:am(a.value,"zoom",e.transitionName),maskTransitionName:am(a.value,"fade",e.maskTransitionName),mousePosition:null!==(n=w.mousePosition)&&void 0!==n?n:UH}),fl(fl({},o),{footer:o.footer||f,closeIcon:()=>Sr("span",{class:`${l.value}-close-x`},[y||Sr(qb,{class:`${l.value}-close-icon`},null)])})))}}}),eF=()=>{const e=wt(!1);return Jn((()=>{e.value=!0})),e};function tF(e){return!(!e||!e.then)}const nF=Ln({compatConfig:{MODE:3},name:"ActionButton",props:{type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:ka(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean},setup(e,t){let{slots:n}=t;const o=wt(!1),r=wt(),i=wt(!1);let l;const a=eF();Gn((()=>{e.autofocus&&(l=setTimeout((()=>{var e,t;return null===(t=null===(e=ia(r.value))||void 0===e?void 0:e.focus)||void 0===t?void 0:t.call(e)})))})),Jn((()=>{clearTimeout(l)}));const s=function(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===(t=e.close)||void 0===t||t.call(e,...o)},c=t=>{const{actionFn:n}=e;if(o.value)return;if(o.value=!0,!n)return void s();let r;if(e.emitEvent){if(r=n(t),e.quitOnNullishReturnValue&&!tF(r))return o.value=!1,void s(t)}else if(n.length)r=n(e.close),o.value=!1;else if(r=n(),!r)return void s();(e=>{tF(e)&&(i.value=!0,e.then((function(){a.value||(i.value=!1),s(...arguments),o.value=!1}),(e=>(a.value||(i.value=!1),o.value=!1,Promise.reject(e)))))})(r)};return()=>{const{type:t,prefixCls:o,buttonProps:l}=e;return Sr(zC,hl(hl(hl({},tC(t)),{},{onClick:c,loading:i.value,prefixCls:o},l),{},{ref:r}),n)}}});function oF(e){return"function"==typeof e?e():e}const rF=Ln({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]=os("Modal");return()=>{const{icon:t,onCancel:r,onOk:i,close:l,okText:a,closable:s=!1,zIndex:c,afterClose:u,keyboard:d,centered:p,getContainer:h,maskStyle:f,okButtonProps:g,cancelButtonProps:m,okCancel:v,width:b=416,mask:y=!0,maskClosable:O=!1,type:w,open:x,title:$,content:S,direction:C,closeIcon:k,modalRender:P,focusTriggerAfterClose:M,rootPrefixCls:T,bodyStyle:I,wrapClassName:E,footer:A}=e;let R=t;if(!t&&null!==t)switch(w){case"info":R=Sr(j$,null,null);break;case"success":R=Sr(C$,null,null);break;case"error":R=Sr(oy,null,null);break;default:R=Sr(I$,null,null)}const D=e.okType||"primary",j=e.prefixCls||"ant-modal",B=`${j}-confirm`,N=n.style||{},z=null!=v?v:"confirm"===w,_=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),L=`${j}-confirm`,Q=Tl(L,`${L}-${e.type}`,{[`${L}-rtl`]:"rtl"===C},n.class),H=o.value,F=z&&Sr(nF,{actionFn:r,close:l,autofocus:"cancel"===_,buttonProps:m,prefixCls:`${T}-btn`},{default:()=>[oF(e.cancelText)||H.cancelText]});return Sr(JH,{prefixCls:j,class:Q,wrapClassName:Tl({[`${L}-centered`]:!!p},E),onCancel:e=>null==l?void 0:l({triggerCancel:!0},e),open:x,title:"",footer:"",transitionName:am(T,"zoom",e.transitionName),maskTransitionName:am(T,"fade",e.maskTransitionName),mask:y,maskClosable:O,maskStyle:f,style:N,bodyStyle:I,width:b,zIndex:c,afterClose:u,keyboard:d,centered:p,getContainer:h,closable:s,closeIcon:k,modalRender:P,focusTriggerAfterClose:M},{default:()=>[Sr("div",{class:`${B}-body-wrapper`},[Sr("div",{class:`${B}-body`},[oF(R),void 0===$?null:Sr("span",{class:`${B}-title`},[oF($)]),Sr("div",{class:`${B}-content`},[oF(S)])]),void 0!==A?oF(A):Sr("div",{class:`${B}-btns`},[F,Sr(nF,{type:D,actionFn:i,close:l,autofocus:"ok"===_,buttonProps:g,prefixCls:`${T}-btn`},{default:()=>[oF(a)||(z?H.okText:H.justOkText)]})])])]})}}}),iF=[],lF=e=>{const t=document.createDocumentFragment();let n=fl(fl({},kd(e,["parentContext","appContext"])),{close:i,open:!0}),o=null;function r(){o&&(Yi(null,t),o=null);for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];const a=r.some((e=>e&&e.triggerCancel));e.onCancel&&a&&e.onCancel((()=>{}),...r.slice(1));for(let e=0;e<iF.length;e++)if(iF[e]===i){iF.splice(e,1);break}}function i(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];n=fl(fl({},n),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),r.apply(this,o)}}),n.visible&&delete n.visible,l(n)}function l(e){var r;n="function"==typeof e?e(n):fl(fl({},n),e),o&&(r=t,Yi(Cr(o,fl({},n)),r))}const a=e=>{const t=GB,n=t.prefixCls,o=e.prefixCls||`${n}-modal`,r=t.iconPrefixCls,i=Bj;return Sr(eN,hl(hl({},t),{},{prefixCls:n}),{default:()=>[Sr(rF,hl(hl({},e),{},{rootPrefixCls:n,prefixCls:o,iconPrefixCls:r,locale:i,cancelText:e.cancelText||i.cancelText}),null)]})};return o=function(n){const o=Sr(a,fl({},n));return o.appContext=e.parentContext||e.appContext||o.appContext,Yi(o,t),o}(n),iF.push(i),{destroy:i,update:l}};function aF(e){return fl(fl({},e),{type:"warning"})}function sF(e){return fl(fl({},e),{type:"info"})}function cF(e){return fl(fl({},e),{type:"success"})}function uF(e){return fl(fl({},e),{type:"error"})}function dF(e){return fl(fl({},e),{type:"confirm"})}const pF=Ln({name:"HookModal",inheritAttrs:!1,props:Jl({config:Object,afterClose:Function,destroyAction:Function,open:Boolean},{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:n}=t;var o;const r=Xr((()=>e.open)),i=Xr((()=>e.config)),{direction:l,getPrefixCls:a}=Xa(),s=a("modal"),c=a(),u=()=>{var t,n;null==e||e.afterClose(),null===(n=(t=i.value).afterClose)||void 0===n||n.call(t)},d=function(){e.destroyAction(...arguments)};n({destroy:d});const p=null!==(o=i.value.okCancel)&&void 0!==o?o:"confirm"===i.value.type,[h]=os("Modal",ts.Modal);return()=>Sr(rF,hl(hl({prefixCls:s,rootPrefixCls:c},i.value),{},{close:d,open:r.value,afterClose:u,okText:i.value.okText||(p?null==h?void 0:h.value.okText:null==h?void 0:h.value.justOkText),direction:i.value.direction||l.value,cancelText:i.value.cancelText||(null==h?void 0:h.value.cancelText)}),null)}});let hF=0;const fF=Ln({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:n}=t;const o=wt([]);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 gF(){const e=wt(null),t=wt([]);wn(t,(()=>{t.value.length&&([...t.value].forEach((e=>{e()})),t.value=[])}),{immediate:!0});const n=n=>function(o){var r;hF+=1;const i=wt(!0),l=wt(null),a=wt(Ct(o)),s=wt({});wn((()=>o),(e=>{d(fl(fl({},yt(e)?e.value:e),s.value))}));const c=function(){i.value=!1;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=t.some((e=>e&&e.triggerCancel));a.value.onCancel&&o&&a.value.onCancel((()=>{}),...t.slice(1))};let u;u=null===(r=e.value)||void 0===r?void 0:r.addModal((()=>Sr(pF,{key:`modal-${hF}`,config:n(a.value),ref:l,open:i.value,destroyAction:c,afterClose:()=>{null==u||u()}},null))),u&&iF.push(u);const d=e=>{a.value=fl(fl({},a.value),e)};return{destroy:()=>{l.value?c():t.value=[...t.value,c]},update:e=>{s.value=e,l.value?d(e):t.value=[...t.value,()=>d(e)]}}},o=Xr((()=>({info:n(sF),success:n(cF),error:n(uF),warning:n(aF),confirm:n(dF)}))),r=Symbol("modalHolderKey");return[o.value,()=>Sr(fF,{key:r,ref:e},null)]}function mF(e){return lF(aF(e))}JH.useModal=gF,JH.info=function(e){return lF(sF(e))},JH.success=function(e){return lF(cF(e))},JH.error=function(e){return lF(uF(e))},JH.warning=mF,JH.warn=mF,JH.confirm=function(e){return lF(dF(e))},JH.destroyAll=function(){for(;iF.length;){const e=iF.pop();e&&e()}},JH.install=function(e){return e.component(JH.name,JH),e};const vF=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:r,groupSeparator:i="",prefixCls:l}=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,i),"number"==typeof o&&(s=s.padEnd(o,"0").slice(0,o>0?o:0)),s&&(s=`${r}${s}`),a=[Sr("span",{key:"int",class:`${l}-content-value-int`},[e,t]),s&&Sr("span",{key:"decimal",class:`${l}-content-value-decimal`},[s])]}else a=e}return Sr("span",{class:`${l}-content-value`},[a])};vF.displayName="StatisticNumber";const bF=vF,yF=e=>{const{componentCls:t,marginXXS:n,padding:o,colorTextDescription:r,statisticTitleFontSize:i,colorTextHeading:l,statisticContentFontSize:a,statisticFontFamily:s}=e;return{[`${t}`]:fl(fl({},Yu(e)),{[`${t}-title`]:{marginBottom:n,color:r,fontSize:i},[`${t}-skeleton`]:{paddingTop:o},[`${t}-content`]:{color:l,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}}})}},OF=Ju("Statistic",(e=>{const{fontSizeHeading3:t,fontSize:n,fontFamily:o}=e,r=nd(e,{statisticTitleFontSize:n,statisticContentFontSize:t,statisticFontFamily:o});return[yF(r)]})),wF=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:Aa([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:Ma(),formatter:Ta(),precision:Number,prefix:{validator:()=>!0},suffix:{validator:()=>!0},title:{validator:()=>!0},loading:Pa()}),xF=Ln({compatConfig:{MODE:3},name:"AStatistic",inheritAttrs:!1,props:Jl(wF(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Cd("statistic",e),[l,a]=OF(r);return()=>{var t,s,c,u,d,p,h;const{value:f=0,valueStyle:g,valueRender:m}=e,v=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),O=null!==(d=e.suffix)&&void 0!==d?d:null===(p=n.suffix)||void 0===p?void 0:p.call(n),w=null!==(h=e.formatter)&&void 0!==h?h:n.formatter;let x=Sr(bF,hl({"data-for-update":Date.now()},fl(fl({},e),{prefixCls:v,value:f,formatter:w})),null);return m&&(x=m(x)),l(Sr("div",hl(hl({},o),{},{class:[v,{[`${v}-rtl`]:"rtl"===i.value},o.class,a.value]}),[b&&Sr("div",{class:`${v}-title`},[b]),Sr(vE,{paragraph:!1,loading:e.loading},{default:()=>[Sr("div",{style:g,class:`${v}-content`},[y&&Sr("span",{class:`${v}-content-prefix`},[y]),x,O&&Sr("span",{class:`${v}-content-suffix`},[O])])]})]))}}}),$F=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function SF(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))),i=t.replace(o,"[]"),l=$F.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}),i);let a=0;return l.replace(o,(()=>{const e=r[a];return a+=1,e}))}(Math.max(o-r,0),n)}function CF(e){return new Date(e).getTime()}const kF=Ln({compatConfig:{MODE:3},name:"AStatisticCountdown",props:Jl(fl(fl({},wF()),{value:Aa([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),{format:"HH:mm:ss"}),setup(e,t){let{emit:n,slots:o}=t;const r=Ot(),i=Ot(),l=()=>{const{value:t}=e;CF(t)>=Date.now()?a():s()},a=()=>{if(r.value)return;const t=CF(e.value);r.value=setInterval((()=>{i.value.$forceUpdate(),t>Date.now()&&n("change",t-Date.now()),l()}),33.333333333333336)},s=()=>{const{value:t}=e;r.value&&(clearInterval(r.value),r.value=void 0,CF(t)<Date.now()&&n("finish"))},c=t=>{let{value:n,config:o}=t;const{format:r}=e;return SF(n,fl(fl({},o),{format:r}))},u=e=>e;return Gn((()=>{l()})),qn((()=>{l()})),Jn((()=>{s()})),()=>{const t=e.value;return Sr(xF,hl({ref:i},fl(fl({},kd(e,["onFinish","onChange"])),{value:t,valueRender:u,formatter:c})),o)}}});xF.Countdown=kF,xF.install=function(e){return e.component(xF.name,xF),e.component(xF.Countdown.name,xF.Countdown),e};const PF=xF.Countdown,MF={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 TF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){IF(e,t,n[t])}))}return e}function IF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EF=function(e,t){var n=TF({},e,t.attrs);return Sr(Rb,TF({},n,{icon:MF}),null)};EF.displayName="ArrowLeftOutlined",EF.inheritAttrs=!1;const AF=EF,RF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};function DF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){jF(e,t,n[t])}))}return e}function jF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var BF=function(e,t){var n=DF({},e,t.attrs);return Sr(Rb,DF({},n,{icon:RF}),null)};BF.displayName="ArrowRightOutlined",BF.inheritAttrs=!1;const NF=BF,zF={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},_F=Ln({compatConfig:{MODE:3},name:"TransButton",inheritAttrs:!1,props:{noStyle:{type:Boolean,default:void 0},onClick:Function,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,emit:o,attrs:r,expose:i}=t;const l=wt(),a=e=>{const{keyCode:t}=e;t===Tm.ENTER&&e.preventDefault()},s=e=>{const{keyCode:t}=e;t===Tm.ENTER&&o("click",e)},c=e=>{o("click",e)},u=()=>{l.value&&l.value.focus()};return Gn((()=>{e.autofocus&&u()})),i({focus:u,blur:()=>{l.value&&l.value.blur()}}),()=>{var t;const{noStyle:o,disabled:i}=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["noStyle","disabled"]);let d={};return o||(d=fl({},zF)),i&&(d.pointerEvents="none"),Sr("div",hl(hl(hl({role:"button",tabindex:0,ref:l},u),r),{},{onClick:c,onKeydown:a,onKeyup:s,style:fl(fl({},d),r.style||{})}),[null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}),LF={small:8,middle:16,large:24},QF=Ln({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:{prefixCls:String,size:{type:[String,Number,Array]},direction:xp.oneOf($a("horizontal","vertical")).def("horizontal"),align:xp.oneOf($a("start","end","center","baseline")),wrap:Pa()},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,space:i,direction:l}=Cd("space",e),[a,s]=$y(r),c=LR(),u=Xr((()=>{var t,n,o;return null!==(o=null!==(t=e.size)&&void 0!==t?t:null===(n=null==i?void 0:i.value)||void 0===n?void 0:n.size)&&void 0!==o?o:"small"})),d=Ot(),p=Ot();wn(u,(()=>{[d.value,p.value]=(Array.isArray(u.value)?u.value:[u.value,u.value]).map((e=>function(e){return"string"==typeof e?LF[e]:e||0}(e)))}),{immediate:!0});const h=Xr((()=>void 0===e.align&&"horizontal"===e.direction?"center":e.align)),f=Xr((()=>Tl(r.value,s.value,`${r.value}-${e.direction}`,{[`${r.value}-rtl`]:"rtl"===l.value,[`${r.value}-align-${h.value}`]:h.value}))),g=Xr((()=>"rtl"===l.value?"marginLeft":"marginRight")),m=Xr((()=>{const t={};return c.value&&(t.columnGap=`${d.value}px`,t.rowGap=`${p.value}px`),fl(fl({},t),e.wrap&&{flexWrap:"wrap",marginBottom:-p.value+"px"})}));return()=>{var t,i;const{wrap:l,direction:s="horizontal"}=e,u=null===(t=n.default)||void 0===t?void 0:t.call(n),h=da(u),v=h.length;if(0===v)return null;const b=null===(i=n.split)||void 0===i?void 0:i.call(n),y=`${r.value}-item`,O=d.value,w=v-1;return Sr("div",hl(hl({},o),{},{class:[f.value,o.class],style:[m.value,o.style]}),[h.map(((e,t)=>{let n=u.indexOf(e);-1===n&&(n=`$$space-${t}`);let o={};return c.value||("vertical"===s?t<w&&(o={marginBottom:O/(b?2:1)+"px"}):o=fl(fl({},t<w&&{[g.value]:O/(b?2:1)+"px"}),l&&{paddingBottom:`${p.value}px`})),a(Sr(lr,{key:n},[Sr("div",{class:y,style:o},[e]),t<w&&b&&Sr("span",{class:`${y}-split`,style:o},[b])]))}))])}}});QF.Compact=Lw,QF.install=function(e){return e.component(QF.name,QF),e.component(Lw.name,Lw),e};const HF=QF,FF=e=>{const{componentCls:t,antCls:n}=e;return{[t]:fl(fl({},Yu(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":fl(fl({},Wu(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":fl({marginRight:e.marginSM,marginBottom:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderHeadingTitle,lineHeight:`${e.controlHeight}px`},Xu),[`${n}-avatar`]:{marginRight:e.marginSM},"&-sub-title":fl({marginRight:e.marginSM,color:e.colorTextDescription,fontSize:e.pageHeaderHeadingSubTitle,lineHeight:e.lineHeight},Xu),"&-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"}})}},WF=Ju("PageHeader",(e=>{const t=nd(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[FF(t)]})),VF=Sa(Ln({compatConfig:{MODE:3},name:"APageHeader",inheritAttrs:!1,props:{backIcon:{validator:()=>!0},prefixCls:String,title:{validator:()=>!0},subTitle:{validator:()=>!0},breadcrumb:xp.object,tags:{validator:()=>!0},footer:{validator:()=>!0},extra:{validator:()=>!0},avatar:ka(),ghost:{type:Boolean,default:void 0},onBack:Function},slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:i,direction:l,pageHeader:a}=Cd("page-header",e),[s,c]=WF(i),u=wt(!1),d=eF(),p=e=>{let{width:t}=e;d.value||(u.value=t<768)},h=Xr((()=>{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})),f=()=>{var t;return e.breadcrumb?Sr(sP,e.breadcrumb,null):null===(t=o.breadcrumb)||void 0===t?void 0:t.call(o)},g=()=>{var t,r,a,s,c,u,d,p,h;const{avatar:f}=e,g=null!==(t=e.title)&&void 0!==t?t:null===(r=o.title)||void 0===r?void 0:r.call(o),m=null!==(a=e.subTitle)&&void 0!==a?a:null===(s=o.subTitle)||void 0===s?void 0:s.call(o),v=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=`${i.value}-heading`,O=g||m||v||b;if(!O)return null;const w=(()=>{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"===l.value?Sr(NF,null,null):Sr(AF,null,null)})(),x=(t=>t&&e.onBack?Sr(ns,{componentName:"PageHeader",children:e=>{let{back:o}=e;return Sr("div",{class:`${i.value}-back`},[Sr(_F,{onClick:e=>{n("back",e)},class:`${i.value}-back-button`,"aria-label":o},{default:()=>[t]})])}},null):null)(w);return Sr("div",{class:y},[(x||f||O)&&Sr("div",{class:`${y}-left`},[x,f?Sr(eS,f,null):null===(h=o.avatar)||void 0===h?void 0:h.call(o),g&&Sr("span",{class:`${y}-title`,title:"string"==typeof g?g:void 0},[g]),m&&Sr("span",{class:`${y}-sub-title`,title:"string"==typeof m?m:void 0},[m]),v&&Sr("span",{class:`${y}-tags`},[v])]),b&&Sr("span",{class:`${y}-extra`},[Sr(HF,null,{default:()=>[b]})])])},m=()=>{var t,n;const r=null!==(t=e.footer)&&void 0!==t?t:da(null===(n=o.footer)||void 0===n?void 0:n.call(o));return null==(l=r)||""===l||Array.isArray(l)&&0===l.length?null:Sr("div",{class:`${i.value}-footer`},[r]);var l},v=e=>Sr("div",{class:`${i.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,b=oa(null===(n=o.default)||void 0===n?void 0:n.call(o)),y=Tl(i.value,{"has-breadcrumb":a,"has-footer":d,[`${i.value}-ghost`]:h.value,[`${i.value}-rtl`]:"rtl"===l.value,[`${i.value}-compact`]:u.value},r.class,c.value);return s(Sr(ga,{onResize:p},{default:()=>[Sr("div",hl(hl({},r),{},{class:y}),[f(),g(),b.length?v(b):null,m()])]}))}}})),ZF=Ju("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:n,zIndexPopup:o,colorText:r,colorWarning:i,marginXS:l,fontSize:a,fontWeightStrong:s,lineHeight:c}=e;return{[t]:{zIndex:o,[`${t}-inner-content`]:{color:r},[`${t}-message`]:{position:"relative",marginBottom:l,color:r,fontSize:a,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:a,flex:"none",lineHeight:1,paddingTop:(Math.round(a*c)-a)/2},"&-title":{flex:"auto",marginInlineStart:l},"&-title-only":{fontWeight:s}},[`${t}-description`]:{position:"relative",marginInlineStart:a+l,marginBottom:l,color:r,fontSize:a},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:l}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}})),XF=Sa(Ln({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:Jl(fl(fl({},aS()),{prefixCls:String,content:Ta(),title:Ta(),description:Ta(),okType:Ea("primary"),disabled:{type:Boolean,default:!1},okText:Ta(),cancelText:Ta(),icon:Ta(),okButtonProps:ka(),cancelButtonProps:ka(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),fl(fl({},{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:i}=t;const l=Ot();Rs(void 0===e.visible),r({getPopupDomNode:()=>{var e,t;return null===(t=null===(e=l.value)||void 0===e?void 0:e.getPopupDomNode)||void 0===t?void 0:t.call(e)}});const[a,s]=Qv(!1,{value:Et(e,"open")}),c=(t,n)=>{void 0===e.open&&s(t),o("update:open",t),o("openChange",t,n)},u=e=>{c(!1,e)},d=t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(e,t)},p=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:f,getPrefixCls:g}=Cd("popconfirm",e),m=Xr((()=>g())),v=Xr((()=>g("btn"))),[b]=ZF(f),[y]=os("Popconfirm",ts.Popconfirm),O=()=>{var t,o,r,i,l;const{okButtonProps:a,cancelButtonProps:s,title:c=(null===(t=n.title)||void 0===t?void 0:t.call(n)),description:h=(null===(o=n.description)||void 0===o?void 0:o.call(n)),cancelText:g=(null===(r=n.cancel)||void 0===r?void 0:r.call(n)),okText:m=(null===(i=n.okText)||void 0===i?void 0:i.call(n)),okType:b,icon:O=(null===(l=n.icon)||void 0===l?void 0:l.call(n))||Sr(I$,null,null),showCancel:w=!0}=e,{cancelButton:x,okButton:$}=n,S=fl({onClick:p,size:"small"},s),C=fl(fl(fl({onClick:d},tC(b)),{size:"small"}),a);return Sr("div",{class:`${f.value}-inner-content`},[Sr("div",{class:`${f.value}-message`},[O&&Sr("span",{class:`${f.value}-message-icon`},[O]),Sr("div",{class:[`${f.value}-message-title`,{[`${f.value}-message-title-only`]:!!h}]},[c])]),h&&Sr("div",{class:`${f.value}-description`},[h]),Sr("div",{class:`${f.value}-buttons`},[w?x?x(S):Sr(zC,S,{default:()=>[g||y.value.cancelText]}):null,$?$(C):Sr(nF,{buttonProps:fl(fl({size:"small"},tC(b)),a),actionFn:d,close:u,prefixCls:v.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[m||y.value.okText]})])])};return()=>{var t;const{placement:o,overlayClassName:r,trigger:s="click"}=e,u=kd(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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["placement","overlayClassName","trigger"]),["title","content","cancelText","okText","onUpdate:open","onConfirm","onCancel","prefixCls"]),d=Tl(f.value,r);return b(Sr(PS,hl(hl(hl({},u),i),{},{trigger:s,placement:o,onOpenChange:h,open:a.value,overlayClassName:d,transitionName:am(m.value,"zoom-big",e.transitionName),ref:l,"data-popover-inject":!0}),{default:()=>[Xh((null===(t=n.default)||void 0===t?void 0:t.call(n))||[],{onKeydown:e=>{(e=>{e.keyCode===Tm.ESC&&a&&c(!1,e)})(e)}},!1)],content:O}))}}})),YF=["normal","exception","active","success"],KF=()=>({prefixCls:String,type:Ea(),percent:Number,format:Ma(),status:Ea(),showInfo:Pa(),strokeWidth:Number,strokeLinecap:Ea(),strokeColor:Ta(),trailColor:String,width:Number,success:ka(),gapDegree:Number,gapPosition:Ea(),size:Aa([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:Ea()});function GF(e){return!e||e<0?0:e>100?100:e}function UF(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(Sp(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),o=t.progress),t&&"percent"in t&&(o=t.percent),o}const qF=(e,t,n)=>{var o,r,i,l;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!==(l=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==l?l:120));return{width:a,height:s}},JF=(e,t)=>{const{from:n=Tu.blue,to:o=Tu.blue,direction:r=("rtl"===t?"to left":"to right")}=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["from","to","direction"]);return 0!==Object.keys(i).length?{backgroundImage:`linear-gradient(${r}, ${(e=>{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(", ")})(i)})`}:{backgroundImage:`linear-gradient(${r}, ${n}, ${o})`}},eW=Ln({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:fl(fl({},KF()),{strokeColor:Ta(),direction:Ea()}),setup(e,t){let{slots:n,attrs:o}=t;const r=Xr((()=>{const{strokeColor:t,direction:n}=e;return t&&"string"!=typeof t?JF(t,n):{backgroundColor:t}})),i=Xr((()=>"square"===e.strokeLinecap||"butt"===e.strokeLinecap?0:void 0)),l=Xr((()=>e.trailColor?{backgroundColor:e.trailColor}:void 0)),a=Xr((()=>{var t;return null!==(t=e.size)&&void 0!==t?t:[-1,e.strokeWidth||("small"===e.size?6:8)]})),s=Xr((()=>qF(a.value,"line",{strokeWidth:e.strokeWidth}))),c=Xr((()=>{const{percent:t}=e;return fl({width:`${GF(t)}%`,height:`${s.value.height}px`,borderRadius:i.value},r.value)})),u=Xr((()=>UF(e))),d=Xr((()=>{const{success:t}=e;return{width:`${GF(u.value)}%`,height:`${s.value.height}px`,borderRadius:i.value,backgroundColor:null==t?void 0:t.strokeColor}})),p={width:s.value.width<0?"100%":s.value.width,height:`${s.value.height}px`};return()=>{var t;return Sr(lr,null,[Sr("div",hl(hl({},o),{},{class:[`${e.prefixCls}-outer`,o.class],style:[o.style,p]}),[Sr("div",{class:`${e.prefixCls}-inner`,style:l.value},[Sr("div",{class:`${e.prefixCls}-bg`,style:c.value},null),void 0!==u.value?Sr("div",{class:`${e.prefixCls}-success-bg`,style:d.value},null):null])]),null===(t=n.default)||void 0===t?void 0:t.call(n)])}}});let tW=0;function nW(e){return+e.replace("%","")}function oW(e){return Array.isArray(e)?e:[e]}function rW(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const i=50-o/2;let l=0,a=-i,s=0,c=-2*i;switch(arguments.length>5?arguments[5]:void 0){case"left":l=-i,a=0,s=2*i,c=0;break;case"right":l=i,a=0,s=-2*i,c=0;break;case"bottom":a=i,c=2*i}const u=`M 50,50 m ${l},${a}\n a ${i},${i} 0 1 1 ${s},${-c}\n a ${i},${i} 0 1 1 ${-s},${c}`,d=2*Math.PI*i;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 iW=Ln({compatConfig:{MODE:3},name:"VCCircle",props:Jl({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){tW+=1;const t=Ot(tW),n=Xr((()=>oW(e.percent))),o=Xr((()=>oW(e.strokeColor))),[r,i]=yI();(e=>{const t=Ot(null);qn((()=>{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 i=r.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(i.transitionDuration="0s, 0s")})),o&&(t.value=Date.now())}))})(i);const l=()=>{const{prefixCls:i,strokeWidth:l,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(#${i}-gradient-${t.value})`:"",{pathString:h,pathStyle:f}=rW(u,e,d,l,s,c);u+=e;const g={key:n,d:h,stroke:p,"stroke-linecap":a,"stroke-width":l,opacity:0===e?0:1,"fill-opacity":"0",class:`${i}-circle-path`,style:f};return Sr("path",hl({ref:r(n)},g),null)}))};return()=>{const{prefixCls:n,strokeWidth:r,trailWidth:i,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:h,pathStyle:f}=rW(0,100,c,r,a,s);delete p.percent;const g=o.value.find((e=>"[object Object]"===Object.prototype.toString.call(e))),m={d:h,stroke:c,"stroke-linecap":u,"stroke-width":i||r,"fill-opacity":"0",class:`${n}-circle-trail`,style:f};return Sr("svg",hl({class:`${n}-circle`,viewBox:"0 0 100 100"},p),[g&&Sr("defs",null,[Sr("linearGradient",{id:`${n}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(g).sort(((e,t)=>nW(e)-nW(t))).map(((e,t)=>Sr("stop",{key:t,offset:e,"stop-color":g[e]},null)))])]),Sr("path",m,null),l().reverse()])}}}),lW=Ln({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:Jl(fl(fl({},KF()),{strokeColor:Ta()}),{trailColor:null}),setup(e,t){let{slots:n,attrs:o}=t;const r=Xr((()=>{var t;return null!==(t=e.width)&&void 0!==t?t:120})),i=Xr((()=>{var t;return null!==(t=e.size)&&void 0!==t?t:[r.value,r.value]})),l=Xr((()=>qF(i.value,"circle"))),a=Xr((()=>e.gapDegree||0===e.gapDegree?e.gapDegree:"dashboard"===e.type?75:void 0)),s=Xr((()=>({width:`${l.value.width}px`,height:`${l.value.height}px`,fontSize:.15*l.value.width+6+"px"}))),c=Xr((()=>{var t;return null!==(t=e.strokeWidth)&&void 0!==t?t:Math.max(3/l.value.width*100,6)})),u=Xr((()=>e.gapPosition||"dashboard"===e.type&&"bottom"||void 0)),d=Xr((()=>function(e){let{percent:t,success:n,successPercent:o}=e;const r=GF(UF({success:n,successPercent:o}));return[r,GF(GF(t)-r)]}(e))),p=Xr((()=>"[object Object]"===Object.prototype.toString.call(e.strokeColor))),h=Xr((()=>function(e){let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||Tu.green,n||null]}({success:e.success,strokeColor:e.strokeColor}))),f=Xr((()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:p.value})));return()=>{var t;const r=Sr(iW,{percent:d.value,strokeWidth:c.value,trailWidth:c.value,strokeColor:h.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:a.value,gapPosition:u.value},null);return Sr("div",hl(hl({},o),{},{class:[f.value,o.class],style:[o.style,s.value]}),[l.value.width<=20?Sr(xS,null,{default:()=>[Sr("span",null,[r])],title:n.default}):Sr(lr,null,[r,null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}}),aW=Ln({compatConfig:{MODE:3},name:"Steps",props:fl(fl({},KF()),{steps:Number,strokeColor:Aa(),trailColor:String}),setup(e,t){let{slots:n}=t;const o=Xr((()=>Math.round(e.steps*((e.percent||0)/100)))),r=Xr((()=>{var t;return null!==(t=e.size)&&void 0!==t?t:["small"===e.size?2:14,e.strokeWidth||8]})),i=Xr((()=>qF(r.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8}))),l=Xr((()=>{const{steps:t,strokeColor:n,trailColor:r,prefixCls:l}=e,a=[];for(let e=0;e<t;e+=1){const s=Array.isArray(n)?n[e]:n,c={[`${l}-steps-item`]:!0,[`${l}-steps-item-active`]:e<=o.value-1};a.push(Sr("div",{key:e,class:c,style:{backgroundColor:e<=o.value-1?s:r,width:i.value.width/t+"px",height:`${i.value.height}px`}},null))}return a}));return()=>{var t;return Sr("div",{class:`${e.prefixCls}-steps-outer`},[l.value,null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}),sW=new Xc("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}}),cW=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:fl(fl({},Yu(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:sW,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}}})}},uW=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"}}}},dW=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}}}}}},pW=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},hW=Ju("Progress",(e=>{const t=e.marginXXS/2,n=nd(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[cW(n),uW(n),dW(n),pW(n)]})),fW=Sa(Ln({compatConfig:{MODE:3},name:"AProgress",inheritAttrs:!1,props:Jl(KF(),{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:i}=Cd("progress",e),[l,a]=hW(r),s=Xr((()=>Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor)),c=Xr((()=>{const{percent:t=0}=e,n=UF(e);return parseInt(void 0!==n?n.toString():t.toString(),10)})),u=Xr((()=>{const{status:t}=e;return!YF.includes(t)&&c.value>=100?"success":t||"normal"})),d=Xr((()=>{const{type:t,showInfo:n,size:o}=e,l=r.value;return{[l]:!0,[`${l}-inline-circle`]:"circle"===t&&qF(o,"circle").width<=20,[`${l}-${"dashboard"===t?"circle":t}`]:!0,[`${l}-status-${u.value}`]:!0,[`${l}-show-info`]:n,[`${l}-${o}`]:o,[`${l}-rtl`]:"rtl"===i.value,[a.value]:!0}})),p=Xr((()=>"string"==typeof e.strokeColor||Array.isArray(e.strokeColor)?e.strokeColor:void 0));return()=>{const{type:t,steps:a,title:c}=e,{class:h}=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["class"]),g=(()=>{const{showInfo:t,format:o,type:i,percent:l,title:a}=e,s=UF(e);if(!t)return null;let c;const d=o||(null==n?void 0:n.format)||(e=>`${e}%`),p="line"===i;return o||(null==n?void 0:n.format)||"exception"!==u.value&&"success"!==u.value?c=d(GF(l),GF(s)):"exception"===u.value?c=Sr(p?oy:qb,null,null):"success"===u.value&&(c=Sr(p?C$:Xb,null,null)),Sr("span",{class:`${r.value}-text`,title:void 0===a&&"string"==typeof c?c:void 0},[c])})();let m;return"line"===t?m=a?Sr(aW,hl(hl({},e),{},{strokeColor:p.value,prefixCls:r.value,steps:a}),{default:()=>[g]}):Sr(eW,hl(hl({},e),{},{strokeColor:s.value,prefixCls:r.value,direction:i.value}),{default:()=>[g]}):"circle"!==t&&"dashboard"!==t||(m=Sr(lW,hl(hl({},e),{},{prefixCls:r.value,strokeColor:s.value,progressStatus:u.value}),{default:()=>[g]})),l(Sr("div",hl(hl({role:"progressbar"},f),{},{class:[d.value,h],title:c}),[m]))}}})),gW={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 mW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){vW(e,t,n[t])}))}return e}function vW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bW=function(e,t){var n=mW({},e,t.attrs);return Sr(Rb,mW({},n,{icon:gW}),null)};bW.displayName="StarFilled",bW.inheritAttrs=!1;const yW=bW,OW=Ln({compatConfig:{MODE:3},name:"Star",inheritAttrs:!1,props:{value:Number,index:Number,prefixCls:String,allowHalf:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},character:xp.any,characterRender:Function,focused:{type:Boolean,default:void 0},count:Number,onClick:Function,onHover:Function},emits:["hover","click"],setup(e,t){let{emit:n}=t;const o=t=>{const{index:o}=e;n("hover",t,o)},r=t=>{const{index:o}=e;n("click",t,o)},i=t=>{const{index:o}=e;13===t.keyCode&&n("click",t,o)},l=Xr((()=>{const{prefixCls:t,index:n,value:o,allowHalf:r,focused:i}=e,l=n+1;let a=t;return 0===o&&0===n&&i?a+=` ${t}-focused`:r&&o+.5>=l&&o<l?(a+=` ${t}-half ${t}-active`,i&&(a+=` ${t}-focused`)):(a+=l<=o?` ${t}-full`:` ${t}-zero`,l===o&&i&&(a+=` ${t}-focused`)),a}));return()=>{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 h=Sr("li",{class:l.value},[Sr("div",{onClick:t?null:r,onKeydown:t?null:i,onMousemove:t?null:o,role:"radio","aria-checked":d>c?"true":"false","aria-posinset":c+1,"aria-setsize":u,tabindex:t?-1:0},[Sr("div",{class:`${n}-first`},[p]),Sr("div",{class:`${n}-second`},[p])])]);return a&&(h=a(h,e)),h}}}),wW=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"}}}},xW=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),$W=e=>{const{componentCls:t}=e;return{[t]:fl(fl(fl(fl(fl({},Yu(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)"}}}),wW(e)),{[`+ ${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,fontSize:e.fontSize}}),xW(e))}},SW=Ju("Rate",(e=>{const{colorFillContent:t}=e,n=nd(e,{rateStarColor:e["yellow-6"],rateStarSize:.5*e.controlHeightLG,rateStarHoverScale:"scale(1.1)",defaultColor:t});return[$W(n)]})),CW=Ln({compatConfig:{MODE:3},name:"ARate",inheritAttrs:!1,props:Jl({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:xp.any,autofocus:{type:Boolean,default:void 0},tabindex:xp.oneOfType([xp.number,xp.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:i}=t;const{prefixCls:l,direction:a}=Cd("rate",e),[s,c]=SW(l),u=gy(),d=Ot(),[p,h]=yI(),f=it({value:e.value,focused:!1,cleanedValue:null,hoverValue:void 0});wn((()=>e.value),(()=>{f.value=e.value}));const g=(t,n)=>{const o="rtl"===a.value;let r=t+1;if(e.allowHalf){const e=(e=>ia(h.value.get(e)))(t),i=function(e){const t=function(e){let t,n;const o=e.ownerDocument,{body:r}=o,i=o&&o.documentElement,l=e.getBoundingClientRect();return t=l.left,n=l.top,t-=i.clientLeft||r.clientLeft||0,n-=i.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),l=e.clientWidth;(o&&n-i>l/2||!o&&n-i<l/2)&&(r-=.5)}return r},m=t=>{void 0===e.value&&(f.value=t),r("update:value",t),r("change",t),u.onFieldChange()},v=(e,t)=>{const n=g(t,e.pageX);n!==f.cleanedValue&&(f.hoverValue=n,f.cleanedValue=null),r("hoverChange",n)},b=()=>{f.hoverValue=void 0,f.cleanedValue=null,r("hoverChange",void 0)},y=(t,n)=>{const{allowClear:o}=e,r=g(n,t.pageX);let i=!1;o&&(i=r===f.value),b(),m(i?0:r),f.cleanedValue=i?r:null},O=e=>{f.focused=!0,r("focus",e)},w=e=>{f.focused=!1,r("blur",e),u.onFieldBlur()},x=t=>{const{keyCode:n}=t,{count:o,allowHalf:i}=e,l="rtl"===a.value;n===Tm.RIGHT&&f.value<o&&!l?(f.value+=i?.5:1,m(f.value),t.preventDefault()):n===Tm.LEFT&&f.value>0&&!l||n===Tm.RIGHT&&f.value>0&&l?(f.value-=i?.5:1,m(f.value),t.preventDefault()):n===Tm.LEFT&&f.value<o&&l&&(f.value+=i?.5:1,m(f.value),t.preventDefault()),r("keydown",t)},$=()=>{e.disabled||d.value.focus()};i({focus:$,blur:()=>{e.disabled||d.value.blur()}}),Gn((()=>{const{autofocus:t,disabled:n}=e;t&&!n&&$()}));const S=(t,n)=>{let{index:o}=n;const{tooltips:r}=e;return r?Sr(xS,{title:r[o]},{default:()=>[t]}):t};return()=>{const{count:t,allowHalf:r,disabled:i,tabindex:h,id:g=u.id.value}=e,{class:m,style:$}=o,C=[],k=i?`${l.value}-disabled`:"",P=e.character||n.character||(()=>Sr(yW,null,null));for(let e=0;e<t;e++)C.push(Sr(OW,{ref:p(e),key:e,index:e,count:t,disabled:i,prefixCls:`${l.value}-star`,allowHalf:r,value:void 0===f.hoverValue?f.value:f.hoverValue,onClick:y,onHover:v,character:P,characterRender:S,focused:f.focused},null));const M=Tl(l.value,k,m,{[c.value]:!0,[`${l.value}-rtl`]:"rtl"===a.value});return s(Sr("ul",hl(hl({},o),{},{id:g,class:M,style:$,onMouseleave:i?null:b,tabindex:i?-1:h,onFocus:i?null:O,onBlur:i?null:w,onKeydown:i?null:x,ref:d,role:"radiogroup"}),[C]))}}}),kW=Sa(CW),PW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};function MW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){TW(e,t,n[t])}))}return e}function TW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var IW=function(e,t){var n=MW({},e,t.attrs);return Sr(Rb,MW({},n,{icon:PW}),null)};IW.displayName="WarningFilled",IW.inheritAttrs=!1;const EW=IW,AW=()=>Sr("svg",{width:"252",height:"294"},[Sr("defs",null,[Sr("path",{d:"M0 .387h251.772v251.772H0z"},null)]),Sr("g",{fill:"none","fill-rule":"evenodd"},[Sr("g",{transform:"translate(0 .012)"},[Sr("mask",{fill:"#fff"},null),Sr("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)]),Sr("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),Sr("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),Sr("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),Sr("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),Sr("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),Sr("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),Sr("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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)])]),RW=()=>Sr("svg",{width:"254",height:"294"},[Sr("defs",null,[Sr("path",{d:"M0 .335h253.49v253.49H0z"},null),Sr("path",{d:"M0 293.665h253.49V.401H0z"},null)]),Sr("g",{fill:"none","fill-rule":"evenodd"},[Sr("g",{transform:"translate(0 .067)"},[Sr("mask",{fill:"#fff"},null),Sr("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)]),Sr("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),Sr("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),Sr("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),Sr("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),Sr("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),Sr("mask",{fill:"#fff"},null),Sr("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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)])]),DW=()=>Sr("svg",{width:"251",height:"294"},[Sr("g",{fill:"none","fill-rule":"evenodd"},[Sr("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),Sr("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),Sr("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),Sr("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),Sr("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),Sr("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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),Sr("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),Sr("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),Sr("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),Sr("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),Sr("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),Sr("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)])]),jW=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:o,padding:r,paddingXL:i,paddingXS:l,paddingLG:a,marginXS:s,lineHeight:c}=e;return{[t]:{padding:`${2*a}px ${i}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:l,"&:last-child":{marginInlineEnd:0}}}}},BW=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}}},NW=e=>(e=>[jW(e),BW(e)])(e),zW=Ju("Result",(e=>{const{paddingLG:t,fontSizeHeading3:n}=e,o=nd(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[NW(o)]}),{imageWidth:250,imageHeight:295}),_W={success:C$,error:oy,info:I$,warning:EW},LW={404:AW,500:RW,403:DW},QW=Object.keys(LW),HW=(e,t)=>{let{status:n,icon:o}=t;if(QW.includes(`${n}`))return Sr("div",{class:`${e}-icon ${e}-image`},[Sr(LW[n],null,null)]);const r=o||Sr(_W[n],null,null);return Sr("div",{class:`${e}-icon`},[r])},FW=(e,t)=>t&&Sr("div",{class:`${e}-extra`},[t]),WW=Ln({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:{prefixCls:String,icon:xp.any,status:{type:[Number,String],default:"info"},title:xp.any,subTitle:xp.any,extra:xp.any},slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Cd("result",e),[l,a]=zW(r),s=Xr((()=>Tl(r.value,a.value,`${r.value}-${e.status}`,{[`${r.value}-rtl`]:"rtl"===i.value})));return()=>{var t,i,a,c,u,d,p,h;const f=null!==(t=e.title)&&void 0!==t?t:null===(i=n.title)||void 0===i?void 0:i.call(n),g=null!==(a=e.subTitle)&&void 0!==a?a:null===(c=n.subTitle)||void 0===c?void 0:c.call(n),m=null!==(u=e.icon)&&void 0!==u?u:null===(d=n.icon)||void 0===d?void 0:d.call(n),v=null!==(p=e.extra)&&void 0!==p?p:null===(h=n.extra)||void 0===h?void 0:h.call(n),b=r.value;return l(Sr("div",hl(hl({},o),{},{class:[s.value,o.class]}),[HW(b,{status:e.status,icon:m}),Sr("div",{class:`${b}-title`},[f]),g&&Sr("div",{class:`${b}-subtitle`},[g]),FW(b,v),n.default&&Sr("div",{class:`${b}-content`},[n.default()])]))}}});WW.PRESENTED_IMAGE_403=LW[403],WW.PRESENTED_IMAGE_404=LW[404],WW.PRESENTED_IMAGE_500=LW[500],WW.install=function(e){return e.component(WW.name,WW),e};const VW=WW,ZW=Sa(XR),XW=(e,t)=>{let{attrs:n}=t;const{included:o,vertical:r,style:i,class:l}=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=fl(fl({},i),u);return o?Sr("div",{class:l,style:d},null):null};XW.inheritAttrs=!1;const YW=XW,KW=(e,t)=>{let{attrs:n}=t;const{prefixCls:o,vertical:r,reverse:i,marks:l,dots:a,step:s,included:c,lowerBound:u,upperBound:d,max:p,min:h,dotStyle:f,activeDotStyle:g}=n,m=p-h,v=((e,t,n,o,r,i)=>{Rs();const l=Object.keys(t).map(parseFloat).sort(((e,t)=>e-t));if(n&&o)for(let a=r;a<=i;a+=o)-1===l.indexOf(a)&&l.push(a);return l})(0,l,a,s,h,p).map((e=>{const t=Math.abs(e-h)/m*100+"%",n=!c&&e===d||c&&e<=d&&e>=u;let l=fl(fl({},f),r?{[i?"top":"bottom"]:t}:{[i?"right":"left"]:t});n&&(l=fl(fl({},l),g));const a=Tl({[`${o}-dot`]:!0,[`${o}-dot-active`]:n,[`${o}-dot-reverse`]:i});return Sr("span",{class:a,style:l,key:e},null)}));return Sr("div",{class:`${o}-step`},[v])};KW.inheritAttrs=!1;const GW=KW,UW=(e,t)=>{let{attrs:n,slots:o}=t;const{class:r,vertical:i,reverse:l,marks:a,included:s,upperBound:c,lowerBound:u,max:d,min:p,onClickLabel:h}=n,f=Object.keys(a),g=o.mark,m=d-p,v=f.map(parseFloat).sort(((e,t)=>e-t)).map((e=>{const t="function"==typeof a[e]?a[e]():a[e],n="object"==typeof t&&!ha(t);let o=n?t.label:t;if(!o&&0!==o)return null;g&&(o=g({point:e,label:o}));const d=Tl({[`${r}-text`]:!0,[`${r}-text-active`]:!s&&e===c||s&&e<=c&&e>=u}),f=i?{marginBottom:"-50%",[l?"top":"bottom"]:(e-p)/m*100+"%"}:{transform:`translateX(${l?"50%":"-50%"})`,msTransform:`translateX(${l?"50%":"-50%"})`,[l?"right":"left"]:(e-p)/m*100+"%"},v=n?fl(fl({},f),t.style):f;return Sr("span",hl({class:d,style:v,key:e,onMousedown:t=>h(t,e)},{[Da?"onTouchstartPassive":"onTouchstart"]:t=>h(t,e)}),[o])}));return Sr("div",{class:r},[v])};UW.inheritAttrs=!1;const qW=UW,JW=Ln({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:xp.oneOfType([xp.number,xp.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 i=wt(!1),l=wt(),a=()=>{document.activeElement===l.value&&(i.value=!0)},s=e=>{i.value=!1,o("blur",e)},c=()=>{i.value=!1},u=()=>{var e;null===(e=l.value)||void 0===e||e.focus()},d=e=>{e.preventDefault(),u(),o("mousedown",e)};r({focus:u,blur:()=>{var e;null===(e=l.value)||void 0===e||e.blur()},clickFocus:()=>{i.value=!0,u()},ref:l});let p=null;Gn((()=>{p=ja(document,"mouseup",a)})),Jn((()=>{null==p||p.remove()}));const h=Xr((()=>{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:a,value:u,tabindex:p,ariaLabel:f,ariaLabelledBy:g,ariaValueTextFormatter:m,onMouseenter:v,onMouseleave:b}=e,y=Tl(n.class,{[`${t}-handle-click-focused`]:i.value}),O={"aria-valuemin":r,"aria-valuemax":a,"aria-valuenow":u,"aria-disabled":!!o},w=[n.style,h.value];let x,$=p||0;(o||null===p)&&($=null),m&&(x=m(u));const S=fl(fl(fl(fl({},n),{role:"slider",tabindex:$}),O),{class:y,onBlur:s,onKeydown:c,onMousedown:d,onMouseenter:v,onMouseleave:b,ref:l,style:w});return Sr("div",hl(hl({},S),{},{"aria-label":f,"aria-labelledby":g,"aria-valuetext":x}),null)}}});function eV(e,t){try{return Object.keys(t).some((n=>e.target===t[n].ref))}catch(n){return!1}}function tV(e,t){let{min:n,max:o}=t;return e<n||e>o}function nV(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function oV(e,t){let{marks:n,step:o,min:r,max:i}=t;const l=Object.keys(n).map(parseFloat);if(null!==o){const t=Math.pow(10,rV(o)),n=Math.floor((i*t-r*t)/(o*t)),a=Math.min((e-r)/o,n),s=Math.round(a)*o+r;l.push(s)}const a=l.map((t=>Math.abs(e-t)));return l[a.indexOf(Math.min(...a))]}function rV(e){const t=e.toString();let n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function iV(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 lV(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 aV(e,t){const n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function sV(e,t){let{max:n,min:o}=t;return e<=o?o:e>=n?n:e}function cV(e,t){const{step:n}=t,o=isFinite(oV(e,t))?oV(e,t):0;return null===n?o:parseFloat(o.toFixed(rV(n)))}function uV(e){e.stopPropagation(),e.preventDefault()}function dV(e,t,n){const o="increase",r="decrease";let i=o;switch(e.keyCode){case Tm.UP:i=t&&n?r:o;break;case Tm.RIGHT:i=!t&&n?r:o;break;case Tm.DOWN:i=t&&n?o:r;break;case Tm.LEFT:i=!t&&n?o:r;break;case Tm.END:return(e,t)=>t.max;case Tm.HOME:return(e,t)=>t.min;case Tm.PAGE_UP:return(e,t)=>e+2*t.step;case Tm.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),i=Object.keys(n.marks)[r];return n.step?o[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}(i,e,t)}function pV(){}function hV(e){const t={id:String,min:Number,max:Number,step:Number,marks:xp.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:xp.object,maximumTrackStyle:xp.object,handleStyle:xp.oneOfType([xp.object,xp.arrayOf(xp.object)]),trackStyle:xp.oneOfType([xp.object,xp.arrayOf(xp.object)]),railStyle:xp.object,dotStyle:xp.object,activeDotStyle:xp.object,autofocus:{type:Boolean,default:void 0},draggableTrack:{type:Boolean,default:void 0}};return Ln({compatConfig:{MODE:3},name:"CreateSlider",mixins:[pm,e],inheritAttrs:!1,props:Jl(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 Rs(),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,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["index","directives","className","style"]);if(delete i.dragging,null===i.value)return null;const l=fl(fl({},i),{class:o,style:r,key:t});return Sr(JW,l,null)},onDown(e,t){let n=t;const{draggableTrack:o,vertical:r}=this.$props,{bounds:i}=this.$data,l=o&&this.positionGetValue&&this.positionGetValue(n)||[],a=eV(e,this.handlesRefs);if(this.dragTrack=o&&i.length>=2&&!a&&!l.map(((e,t)=>{const n=!!t||e>=i[t];return t===l.length-1?e<=i[t]:n})).some((e=>!e)),this.dragTrack)this.dragOffset=n,this.startBounds=[...i];else{if(a){const t=aV(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=iV(this.$props.vertical,e);this.onDown(e,t),this.addDocumentMouseEvents()},onTouchStart(e){if(nV(e))return;const t=lV(this.vertical,e);this.onDown(e,t),this.addDocumentTouchEvents(),uV(e)},onFocus(e){const{vertical:t}=this;if(eV(e,this.handlesRefs)&&!this.dragTrack){const n=aV(t,e.target);this.dragOffset=0,this.onStart(n),uV(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=iV(this.vertical,e);this.onMove(e,t-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(e){if(nV(e)||!this.sliderRef)return void this.onEnd();const t=lV(this.vertical,e);this.onMove(e,t-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(e){this.sliderRef&&eV(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=ja(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=ja(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=ja(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=ja(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:i,vertical:l,reverse:a,min:s,max:c,maximumTrackStyle:u,railStyle:d,dotStyle:p,activeDotStyle:h,id:f}=this,{class:g,style:m}=this.$attrs,{tracks:v,handles:b}=this.renderSlider(),y=Tl(e,g,{[`${e}-with-marks`]:Object.keys(t).length,[`${e}-disabled`]:i,[`${e}-vertical`]:l,[`${e}-horizontal`]:!l}),O={vertical:l,marks:t,included:r,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:c,min:s,reverse:a,class:`${e}-mark`,onClickLabel:i?pV:this.onClickMarkLabel},w={[Da?"onTouchstartPassive":"onTouchstart"]:i?pV:this.onTouchStart};return Sr("div",hl(hl({id:f,ref:this.saveSlider,tabindex:"-1",class:y},w),{},{onMousedown:i?pV:this.onMouseDown,onMouseup:i?pV:this.onMouseUp,onKeydown:i?pV:this.onKeyDown,onFocus:i?pV:this.onFocus,onBlur:i?pV:this.onBlur,style:m}),[Sr("div",{class:`${e}-rail`,style:fl(fl({},u),d)},null),v,Sr(GW,{prefixCls:e,vertical:l,reverse:a,marks:t,dots:n,step:o,included:r,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:c,min:s,dotStyle:p,activeDotStyle:h},null),b,Sr(qW,O,{mark:this.$slots.mark}),ra(this)])}})}const fV=Ln({compatConfig:{MODE:3},name:"Slider",mixins:[pm],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:xp.oneOfType([xp.number,xp.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}),tV(t,this.$props)&&this.$emit("change",n))},onChange(e){const t=!ta(this,"value"),n=e.sValue>this.max?fl(fl({},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){uV(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=dV(e,n,t);if(o){uV(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.sValue<this.$props.startPoint?this.$props.startPoint:this.$data.sValue},trimAlignValue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;const n=fl(fl({},this.$props),t);return cV(sV(e,n),n)},getTrack(e){let{prefixCls:t,reverse:n,vertical:o,included:r,minimumTrackStyle:i,mergedTrackStyle:l,length:a,offset:s}=e;return Sr(YW,{class:`${t}-track`,vertical:o,included:r,offset:s,reverse:n,length:a,style:fl(fl({},i),l)},null)},renderSlider(){const{prefixCls:e,vertical:t,included:n,disabled:o,minimumTrackStyle:r,trackStyle:i,handleStyle:l,tabindex:a,ariaLabelForHandle:s,ariaLabelledByForHandle:c,ariaValueTextFormatterForHandle:u,min:d,max:p,startPoint:h,reverse:f,handle:g,defaultHandle:m}=this,v=g||m,{sValue:b,dragging:y}=this,O=this.calcOffset(b),w=v({class:`${e}-handle`,prefixCls:e,vertical:t,offset:O,value:b,dragging:y,disabled:o,min:d,max:p,reverse:f,index:0,tabindex:a,ariaLabel:s,ariaLabelledBy:c,ariaValueTextFormatter:u,style:l[0]||l,ref:e=>this.saveHandle(0,e),onFocus:this.onFocus,onBlur:this.onBlur}),x=void 0!==h?this.calcOffset(h):0,$=i[0]||i;return{tracks:this.getTrack({prefixCls:e,reverse:f,vertical:t,included:n,offset:x,minimumTrackStyle:r,mergedTrackStyle:$,length:O-x}),handles:w}}}}),gV=hV(fV),mV=e=>{let{value:t,handle:n,bounds:o,props:r}=e;const{allowCross:i,pushable:l}=r,a=Number(l),s=sV(t,r);let c=s;return i||null==n||void 0===o||(n>0&&s<=o[n-1]+a&&(c=o[n-1]+a),n<o.length-1&&s>=o[n+1]-a&&(c=o[n+1]-a)),cV(c,r)},vV={defaultValue:xp.arrayOf(xp.number),value:xp.arrayOf(xp.number),count:Number,pushable:$p(xp.oneOfType([xp.looseBool,xp.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:xp.arrayOf(xp.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}},bV=Ln({compatConfig:{MODE:3},name:"Range",mixins:[pm],inheritAttrs:!1,props:Jl(vV,{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=ta(this,"defaultValue")?this.defaultValue:o;let{value:i}=this;void 0===i&&(i=r);const l=i.map(((e,t)=>mV({value:e,handle:t,props:this.$props})));return{sHandle:null,recent:l[0]===n?0:l.length-1,bounds:l}},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)=>mV({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)=>mV({value:e,handle:t,props:this.$props})));if(this.setState({bounds:n}),e.some((e=>tV(e,this.$props)))){const t=e.map((e=>sV(e,this.$props)));this.$emit("change",t)}},onChange(e){if(ta(this,"value")){const t={};["sHandle","recent"].forEach((n=>{void 0!==e[n]&&(t[n]=e[n])})),Object.keys(t).length&&this.setState(t)}else this.setState(e);const t=fl(fl({},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 i=[...t];return i[r]=n,i},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);if(this.prevMovedHandleIndex=this.getBoundNeedMoving(n,o),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex}),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){uV(e);const{$data:r,$props:i}=this,l=i.max||100,a=i.min||0;if(n){let e=i.vertical?-t:t;e=i.reverse?-e:e;const n=l-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,l),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=dV(e,n,t);if(o){uV(e);const{bounds:t,sHandle:n}=this,r=t[null===n?this.recent:n],i=o(r,this.$props),l=mV({value:i,handle:n,bounds:t,props:this.$props});if(l===r)return;const a=!0;this.moveTo(l,a)}},getClosestBound(e){const{bounds:t}=this;let n=0;for(let o=1;o<t.length-1;o+=1)e>=t[o]&&(n=o);return Math.abs(t[n+1]-e)<Math.abs(t[n]-e)&&(n+=1),n},getBoundNeedMoving(e,t){const{bounds:n,recent:o}=this;let r=t;const i=n[t+1]===n[t];return i&&n[o]===n[t]&&(r=o),i&&e!==n[t+1]&&(r=e<n[t+1]?t:t+1),r},getLowerBound(){return this.bounds[0]},getUpperBound(){const{bounds:e}=this;return e[e.length-1]},getPoints(){const{marks:e,step:t,min:n,max:o}=this,r=this.internalPointsCache;if(!r||r.marks!==e||r.step!==t){const r=fl({},e);if(null!==t)for(let e=n;e<=o;e+=t)r[e]=e;const i=Object.keys(r).map(parseFloat);i.sort(((e,t)=>e-t)),this.internalPointsCache={marks:e,step:t,points:i}}return this.internalPointsCache.points},moveTo(e,t){const n=[...this.bounds],{sHandle:o,recent:r}=this,i=null===o?r:o;n[i]=e;let l=i;!1!==this.$props.pushable?this.pushSurroundingHandles(n,l):this.$props.allowCross&&(n.sort(((e,t)=>e-t)),l=n.indexOf(e)),this.onChange({recent:l,sHandle:l,bounds:n}),t&&(this.$emit("afterChange",n),this.setState({},(()=>{this.handlesRefs[l].focus()})),this.onEnd())},pushSurroundingHandles(e,t){const n=e[t],{pushable:o}=this,r=Number(o);let i=0;if(e[t+1]-n<r&&(i=1),n-e[t-1]<r&&(i=-1),0===i)return;const l=t+i,a=i*(e[l]-n);this.pushHandle(e,l,i,r-a)||(e[t]=e[l]-i*r)},pushHandle(e,t,n,o){const r=e[t];let i=e[t];for(;n*(i-r)<o;){if(!this.pushHandleOnePoint(e,t,n))return e[t]=r,!1;i=e[t]}return!0},pushHandleOnePoint(e,t,n){const o=this.getPoints(),r=o.indexOf(e[t])+n;if(r>=o.length||r<0)return!1;const i=t+n,l=o[r],{pushable:a}=this,s=Number(a),c=n*(e[i]-l);return!!this.pushHandle(e,i,n,s-c)&&(e[t]=l,!0)},trimAlignValue(e){const{sHandle:t,bounds:n}=this;return mV({value:e,handle:t,bounds:n,props:this.$props})},ensureValueNotConflict(e,t,n){let{allowCross:o,pushable:r}=n;const i=this.$data||{},{bounds:l}=i;if(e=void 0===e?i.sHandle:e,r=Number(r),!o&&null!=e&&void 0!==l){if(e>0&&t<=l[e-1]+r)return l[e-1]+r;if(e<l.length-1&&t>=l[e+1]-r)return l[e+1]-r}return t},getTrack(e){let{bounds:t,prefixCls:n,reverse:o,vertical:r,included:i,offsets:l,trackStyle:a}=e;return t.slice(0,-1).map(((e,t)=>{const s=t+1,c=Tl({[`${n}-track`]:!0,[`${n}-track-${s}`]:!0});return Sr(YW,{class:c,vertical:r,reverse:o,included:i,offset:l[s-1],length:l[s]-l[s-1],style:a[t],key:s},null)}))},renderSlider(){const{sHandle:e,bounds:t,prefixCls:n,vertical:o,included:r,disabled:i,min:l,max:a,reverse:s,handle:c,defaultHandle:u,trackStyle:d,handleStyle:p,tabindex:h,ariaLabelGroupForHandles:f,ariaLabelledByGroupForHandles:g,ariaValueTextFormatterGroupForHandles:m}=this,v=c||u,b=t.map((e=>this.calcOffset(e))),y=`${n}-handle`,O=t.map(((t,r)=>{let c=h[r]||0;(i||null===h[r])&&(c=null);const u=e===r;return v({class:Tl({[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:l,max:a,reverse:s,disabled:i,style:p[r],ref:e=>this.saveHandle(r,e),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:f[r],ariaLabelledBy:g[r],ariaValueTextFormatter:m[r]})}));return{tracks:this.getTrack({bounds:t,prefixCls:n,reverse:s,vertical:o,included:r,offsets:b,trackStyle:d}),handles:O}}}}),yV=hV(bV),OV=Ln({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:wS(),setup(e,t){let{attrs:n,slots:o}=t;const r=Ot(null),i=Ot(null);function l(){wa.cancel(i.value),i.value=null}const a=()=>{l(),e.open&&(i.value=wa((()=>{var e;null===(e=r.value)||void 0===e||e.forcePopupAlign(),i.value=null})))};return wn([()=>e.open,()=>e.title],(()=>{a()}),{flush:"post",immediate:!0}),Fn((()=>{a()})),Jn((()=>{l()})),()=>Sr(xS,hl(hl({ref:r},e),n),o)}}),wV=e=>{const{componentCls:t,controlSize:n,dotSize:o,marginFull:r,marginPart:i,colorFillContentHover:l}=e;return{[t]:fl(fl({},Yu(e)),{position:"relative",height:n,margin:`${i}px ${r}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${r}px ${i}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:l},[`${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 wu(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}}})}},xV=(e,t)=>{const{componentCls:n,railSize:o,handleSize:r,dotSize:i}=e,l=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`]:{[l]:"100%",[a]:o},[`${n}-track`]:{[a]:o},[`${n}-handle`]:{[s]:(3*o-r)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:r,[l]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:o,[l]:"100%",[a]:o},[`${n}-dot`]:{position:"absolute",[s]:(o-i)/2}}},$V=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:fl(fl({},xV(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},SV=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:fl(fl({},xV(e,!1)),{height:"100%"})}},CV=Ju("Slider",(e=>{const t=nd(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[wV(t),$V(t),SV(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 kV=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const PV=e=>"number"==typeof e?e.toString():"",MV=Sa(Ln({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:{id:String,prefixCls:String,tooltipPrefixCls:String,range:Aa([Boolean,Object]),reverse:Pa(),min:Number,max:Number,step:Aa([Object,Number]),marks:ka(),dots:Pa(),value:Aa([Array,Number]),defaultValue:Aa([Array,Number]),included:Pa(),disabled:Pa(),vertical:Pa(),tipFormatter:Aa([Function,Object],(()=>PV)),tooltipOpen:Pa(),tooltipVisible:Pa(),tooltipPlacement:Ea(),getTooltipPopupContainer:Ma(),autofocus:Pa(),handleStyle:Aa([Array,Object]),trackStyle:Aa([Array,Object]),onChange:Ma(),onAfterChange:Ma(),onFocus:Ma(),onBlur:Ma(),"onUpdate:value":Ma()},slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:i}=t;const{prefixCls:l,rootPrefixCls:a,direction:s,getPopupContainer:c,configProvider:u}=Cd("slider",e),[d,p]=CV(l),h=gy(),f=Ot(),g=Ot({}),m=(e,t)=>{g.value[e]=t},v=Xr((()=>e.tooltipPlacement?e.tooltipPlacement:e.vertical?"rtl"===s.value?"left":"right":"top")),b=e=>{r("update:value",e),r("change",e),h.onFieldChange()},y=e=>{r("blur",e)};i({focus:()=>{var e;null===(e=f.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=f.value)||void 0===e||e.blur()}});const O=t=>{var{tooltipPrefixCls:n}=t,o=t.info,{value:r,dragging:i,index:s}=o,u=kV(o,["value","dragging","index"]);const{tipFormatter:d,tooltipOpen:p=e.tooltipVisible,getTooltipPopupContainer:h}=e,f=!!d&&(g.value[s]||i),b=p||void 0===p&&f;return Sr(OV,{prefixCls:n,title:d?d(r):"",open:b,placement:v.value,transitionName:`${a.value}-zoom-down`,key:s,overlayClassName:`${l.value}-tooltip`,getPopupContainer:h||(null==c?void 0:c.value)},{default:()=>[Sr(JW,hl(hl({},u),{},{value:r,onMouseenter:()=>m(s,!0),onMouseleave:()=>m(s,!1)}),null)]})};return()=>{const{tooltipPrefixCls:t,range:r,id:i=h.id.value}=e,a=kV(e,["tooltipPrefixCls","range","id"]),c=u.getPrefixCls("tooltip",t),g=Tl(n.class,{[`${l.value}-rtl`]:"rtl"===s.value},p.value);let m;return"rtl"!==s.value||a.vertical||(a.reverse=!a.reverse),"object"==typeof r&&(m=r.draggableTrack),d(r?Sr(yV,hl(hl(hl({},n),a),{},{step:a.step,draggableTrack:m,class:g,ref:f,handle:e=>O({tooltipPrefixCls:c,prefixCls:l.value,info:e}),prefixCls:l.value,onChange:b,onBlur:y}),{mark:o.mark}):Sr(gV,hl(hl(hl({},n),a),{},{id:i,step:a.step,class:g,ref:f,handle:e=>O({tooltipPrefixCls:c,prefixCls:l.value,info:e}),prefixCls:l.value,onChange:b,onBlur:y}),{mark:o.mark}))}}}));function TV(e){return"string"==typeof e}function IV(){}const EV=()=>({prefixCls:String,itemWidth:String,active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},status:Ea(),iconPrefix:String,icon:xp.any,adjustMarginRight:String,stepNumber:Number,stepIndex:Number,description:xp.any,title:xp.any,subTitle:xp.any,progressDot:$p(xp.oneOfType([xp.looseBool,xp.func])),tailContent:xp.any,icons:xp.shape({finish:xp.any,error:xp.any}).loose,onClick:Ma(),onStepClick:Ma(),stepIcon:Ma(),itemRender:Ma(),__legacy:Pa()}),AV=Ln({compatConfig:{MODE:3},name:"Step",inheritAttrs:!1,props:EV(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const i=t=>{o("click",t),o("stepClick",e.stepIndex)},l=t=>{let{icon:o,title:r,description:i}=t;const{prefixCls:l,stepNumber:a,status:s,iconPrefix:c,icons:u,progressDot:d=n.progressDot,stepIcon:p=n.stepIcon}=e;let h;const f=Tl(`${l}-icon`,`${c}icon`,{[`${c}icon-${o}`]:o&&TV(o),[`${c}icon-check`]:!o&&"finish"===s&&(u&&!u.finish||!u),[`${c}icon-cross`]:!o&&"error"===s&&(u&&!u.error||!u)}),g=Sr("span",{class:`${l}-icon-dot`},null);return h=d?Sr("span",{class:`${l}-icon`},"function"==typeof d?[d({iconDot:g,index:a-1,status:s,title:r,description:i,prefixCls:l})]:[g]):o&&!TV(o)?Sr("span",{class:`${l}-icon`},[o]):u&&u.finish&&"finish"===s?Sr("span",{class:`${l}-icon`},[u.finish]):u&&u.error&&"error"===s?Sr("span",{class:`${l}-icon`},[u.error]):o||"finish"===s||"error"===s?Sr("span",{class:f},null):Sr("span",{class:`${l}-icon`},[a]),p&&(h=p({index:a-1,status:s,title:r,description:i,node:h})),h};return()=>{var t,o,a,s;const{prefixCls:c,itemWidth:u,active:d,status:p="wait",tailContent:h,adjustMarginRight:f,disabled:g,title:m=(null===(t=n.title)||void 0===t?void 0:t.call(n)),description:v=(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:O,onStepClick:w}=e,x=Tl(`${c}-item`,`${c}-item-${p||"wait"}`,{[`${c}-item-custom`]:y,[`${c}-item-active`]:d,[`${c}-item-disabled`]:!0===g}),$={};u&&($.width=u),f&&($.marginRight=f);const S={onClick:O||IV};w&&!g&&(S.role="button",S.tabindex=0,S.onClick=i);const C=Sr("div",hl(hl({},kd(r,["__legacy"])),{},{class:[x,r.class],style:[r.style,$]}),[Sr("div",hl(hl({},S),{},{class:`${c}-item-container`}),[Sr("div",{class:`${c}-item-tail`},[h]),Sr("div",{class:`${c}-item-icon`},[l({icon:y,title:m,description:v})]),Sr("div",{class:`${c}-item-content`},[Sr("div",{class:`${c}-item-title`},[m,b&&Sr("div",{title:"string"==typeof b?b:void 0,class:`${c}-item-subtitle`},[b])]),v&&Sr("div",{class:`${c}-item-description`},[v])])])]);return e.itemRender?e.itemRender(C):C}}}),RV=Ln({compatConfig:{MODE:3},name:"Steps",props:{type:xp.string.def("default"),prefixCls:xp.string.def("vc-steps"),iconPrefix:xp.string.def("vc"),direction:xp.string.def("horizontal"),labelPlacement:xp.string.def("horizontal"),status:Ea("process"),size:xp.string.def(""),progressDot:xp.oneOfType([xp.looseBool,xp.func]).def(void 0),initial:xp.number.def(0),current:xp.number.def(0),items:xp.array.def((()=>[])),icons:xp.shape({finish:xp.any,error:xp.any}).loose,stepIcon:Ma(),isInline:xp.looseBool,itemRender:Ma()},emits:["change"],setup(e,t){let{slots:n,emit:o}=t;const r=t=>{const{current:n}=e;n!==t&&o("change",t)},i=(t,o,i)=>{const{prefixCls:l,iconPrefix:a,status:s,current:c,initial:u,icons:d,stepIcon:p=n.stepIcon,isInline:h,itemRender:f,progressDot:g=n.progressDot}=e,m=h||g,v=fl(fl({},t),{class:""}),b=u+o,y={active:b===c,stepNumber:b+1,stepIndex:b,key:b,prefixCls:l,iconPrefix:a,progressDot:m,stepIcon:p,icons:d,onStepClick:r};return"error"===s&&o===c-1&&(v.class=`${l}-next-error`),v.status||(v.status=b===c?s:b<c?"finish":"wait"),h&&(v.icon=void 0,v.subTitle=void 0),i?i(fl(fl({},v),y)):(f&&(v.itemRender=e=>f(v,e)),Sr(AV,hl(hl(hl({},v),y),{},{__legacy:!1}),null))},l=(e,t)=>i(fl({},e.props),t,(t=>Zh(e,t)));return()=>{var t;const{prefixCls:o,direction:r,type:a,labelPlacement:s,iconPrefix:c,status:u,size:d,current:p,progressDot:h=n.progressDot,initial:f,icons:g,items:m,isInline:v,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);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","initial","icons","items","isInline","itemRender"]),O=v||h,w=v?void 0:d,x=Tl(o,`${o}-${r}`,{[`${o}-${w}`]:w,[`${o}-label-${O?"vertical":s}`]:"horizontal"===(v?"horizontal":r),[`${o}-dot`]:!!O,[`${o}-navigation`]:"navigation"===a,[`${o}-inline`]:v});return Sr("div",hl({class:x},y),[m.filter((e=>e)).map(((e,t)=>i(e,t))),da(null===(t=n.default)||void 0===t?void 0:t.call(n)).map(l)])}}}),DV=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"}}}}},jV=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}}}}}},BV=e=>{const{componentCls:t,stepsNavContentMaxWidth:n,stepsNavArrowColor:o,stepsNavActiveColor:r,motionDurationSlow:i}=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 ${i}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:fl(fl({maxWidth:"100%",paddingInlineEnd:0},Xu),{"&::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 ${i}, inset-inline-start ${i}`,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"}}}},NV=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}}}}},zV=e=>{const{componentCls:t,descriptionWidth:n,lineHeight:o,stepsCurrentDotSize:r,stepsDotSize:i,motionDurationSlow:l}=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:i,height:i,marginInlineStart:(e.descriptionWidth-i)/2,paddingInlineEnd:0,lineHeight:`${i}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${l}`,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(i-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:(i-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-i)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-r)/2,top:0,insetInlineStart:(i-r)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-i)/2,insetInlineStart:0,margin:0,padding:`${i+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(i-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-i)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-r)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-i)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},_V=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"}}}}},LV=e=>{const{componentCls:t,stepsSmallIconSize:n,fontSizeSM:o,fontSize:r,colorTextDescription:i}=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:i,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"}}}}},QV=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`}}}}},HV=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:o,inlineTailColor:r}=e,i=e.paddingXS+e.lineWidth,l={[`${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:`${i}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:i+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":fl({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${r}`}},l),"&-finish":fl({[`${t}-item-tail::after`]:{backgroundColor:r},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:r,border:`${e.lineWidth}px ${e.lineType} ${r}`}},l),"&-error":l,"&-active, &-process":fl({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},l),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:o}}}}}};var FV,WV;(WV=FV||(FV={})).wait="wait",WV.process="process",WV.finish="finish",WV.error="error";const VV=(e,t)=>{const n=`${t.componentCls}-item`,o=`${e}IconColor`,r=`${e}TitleColor`,i=`${e}DescriptionColor`,l=`${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[l]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[i]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[l]}}},ZV=e=>{const{componentCls:t,motionDurationSlow:n}=e,o=`${t}-item`;return fl(fl(fl(fl(fl(fl({[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}},VV(FV.wait,e)),VV(FV.process,e)),{[`${o}-process > ${o}-container > ${o}-title`]:{fontWeight:e.fontWeightStrong}}),VV(FV.finish,e)),VV(FV.error,e)),{[`${o}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${o}-disabled`]:{cursor:"not-allowed"}})},XV=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"}}}}},YV=e=>{const{componentCls:t}=e;return{[t]:fl(fl(fl(fl(fl(fl(fl(fl(fl(fl(fl(fl(fl({},Yu(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),ZV(e)),XV(e)),DV(e)),LV(e)),QV(e)),jV(e)),zV(e)),BV(e)),_V(e)),NV(e)),HV(e))}},KV=Ju("Steps",(e=>{const{wireframe:t,colorTextDisabled:n,fontSizeHeading3:o,fontSize:r,controlHeight:i,controlHeightLG:l,colorTextLightSolid:a,colorText:s,colorPrimary:c,colorTextLabel:u,colorTextDescription:d,colorTextQuaternary:p,colorFillContent:h,controlItemBgActive:f,colorError:g,colorBgContainer:m,colorBorderSecondary:v}=e,b=e.controlHeight,y=e.colorSplit,O=nd(e,{processTailColor:y,stepsNavArrowColor:n,stepsIconSize:b,stepsIconCustomSize:b,stepsIconCustomTop:0,stepsIconCustomFontSize:l/2,stepsIconTop:-.5,stepsIconFontSize:r,stepsTitleLineHeight:i,stepsSmallIconSize:o,stepsDotSize:i/4,stepsCurrentDotSize:l/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?m:h,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:c,finishTitleColor:s,finishDescriptionColor:d,finishTailColor:c,finishIconBgColor:t?m:f,finishIconBorderColor:t?c:f,finishDotColor:c,errorIconColor:a,errorTitleColor:g,errorDescriptionColor:g,errorTailColor:y,errorIconBgColor:g,errorIconBorderColor:g,errorDotColor:g,stepsNavActiveColor:c,stepsProgressSize:l,inlineDotSize:6,inlineTitleColor:p,inlineTailColor:v});return[YV(O)]}),{descriptionWidth:140}),GV=Ln({compatConfig:{MODE:3},name:"ASteps",inheritAttrs:!1,props:Jl({prefixCls:String,iconPrefix:String,current:Number,initial:Number,percent:Number,responsive:Pa(),items:Ia(),labelPlacement:Ea(),status:Ea(),size:Ea(),direction:Ea(),progressDot:Aa([Boolean,Function]),type:Ea(),onChange:Ma(),"onUpdate:current":Ma()},{current:0,responsive:!0,labelPlacement:"horizontal"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const{prefixCls:i,direction:l,configProvider:a}=Cd("steps",e),[s,c]=KV(i),[,u]=cd(),d=Y$(),p=Xr((()=>e.responsive&&d.value.xs?"vertical":e.direction)),h=Xr((()=>a.getPrefixCls("",e.iconPrefix))),f=e=>{r("update:current",e),r("change",e)},g=Xr((()=>"inline"===e.type)),m=Xr((()=>g.value?void 0:e.percent)),v=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 Sr("div",{class:`${i.value}-progress-icon`},[Sr(fW,{type:"circle",percent:m.value,size:t,strokeWidth:4,format:()=>null},null),n])}return n},b=Xr((()=>({finish:Sr(Xb,{class:`${i.value}-finish-icon`},null),error:Sr(qb,{class:`${i.value}-error-icon`},null)})));return()=>{const t=Tl({[`${i.value}-rtl`]:"rtl"===l.value,[`${i.value}-with-progress`]:void 0!==m.value},n.class,c.value);return s(Sr(RV,hl(hl(hl({icons:b.value},n),kd(e,["percent","responsive"])),{},{items:e.items,direction:p.value,prefixCls:i.value,iconPrefix:h.value,class:t,onChange:f,isInline:g.value,itemRender:g.value?(e,t)=>e.description?Sr(xS,{title:e.description},{default:()=>[t]}):t:void 0}),fl({stepIcon:v},o)))}}}),UV=Ln(fl(fl({compatConfig:{MODE:3}},AV),{name:"AStep",props:EV()})),qV=fl(GV,{Step:UV,install:e=>(e.component(GV.name,GV),e.component(UV.name,UV),e)}),JV=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}}}}}}},eZ=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}}}},tZ=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}}}}},nZ=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}}}}}},oZ=e=>{const{componentCls:t}=e;return{[t]:fl(fl(fl(fl({},Yu(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}}),qu(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"}})}},rZ=Ju("Switch",(e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,o=t-4,r=n-4,i=nd(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 wu("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[oZ(i),nZ(i),tZ(i),eZ(i),JV(i)]})),iZ=$a("small","default"),lZ=Sa(Ln({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:{id:String,prefixCls:String,size:xp.oneOf(iZ),disabled:{type:Boolean,default:void 0},checkedChildren:xp.any,unCheckedChildren:xp.any,tabindex:xp.oneOfType([xp.string,xp.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:xp.oneOfType([xp.string,xp.number,xp.looseBool]),checkedValue:xp.oneOfType([xp.string,xp.number,xp.looseBool]).def(!0),unCheckedValue:xp.oneOfType([xp.string,xp.number,xp.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:i}=t;const l=gy(),a=Ka(),s=Xr((()=>{var t;return null!==(t=e.disabled)&&void 0!==t?t:a.value}));Kn((()=>{Rs(),Rs()}));const c=Ot(void 0!==e.checked?e.checked:n.defaultChecked),u=Xr((()=>c.value===e.checkedValue));wn((()=>e.checked),(()=>{c.value=e.checked}));const{prefixCls:d,direction:p,size:h}=Cd("switch",e),[f,g]=rZ(d),m=Ot(),v=()=>{var e;null===(e=m.value)||void 0===e||e.focus()};r({focus:v,blur:()=>{var e;null===(e=m.value)||void 0===e||e.blur()}}),Gn((()=>{Vt((()=>{e.autofocus&&!s.value&&m.value.focus()}))}));const b=(e,t)=>{s.value||(i("update:checked",e),i("change",e,t),l.onFieldChange())},y=e=>{i("blur",e)},O=t=>{v();const n=u.value?e.unCheckedValue:e.checkedValue;b(n,t),i("click",n,t)},w=t=>{t.keyCode===Tm.LEFT?b(e.unCheckedValue,t):t.keyCode===Tm.RIGHT&&b(e.checkedValue,t),i("keydown",t)},x=e=>{var t;null===(t=m.value)||void 0===t||t.blur(),i("mouseup",e)},$=Xr((()=>({[`${d.value}-small`]:"small"===h.value,[`${d.value}-loading`]:e.loading,[`${d.value}-checked`]:u.value,[`${d.value}-disabled`]:s.value,[d.value]:!0,[`${d.value}-rtl`]:"rtl"===p.value,[g.value]:!0})));return()=>{var t;return f(Sr(eC,null,{default:()=>[Sr("button",hl(hl(hl({},kd(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),n),{},{id:null!==(t=e.id)&&void 0!==t?t:l.id.value,onKeydown:w,onClick:O,onBlur:y,onMouseup:x,type:"button",role:"switch","aria-checked":c.value,disabled:s.value||e.loading,class:[n.class,$.value],ref:m}),[Sr("div",{class:`${d.value}-handle`},[e.loading?Sr(Hb,{class:`${d.value}-loading-icon`},null):null]),Sr("span",{class:`${d.value}-inner`},[Sr("span",{class:`${d.value}-inner-checked`},[fa(o,e,"checkedChildren")]),Sr("span",{class:`${d.value}-inner-unchecked`},[fa(o,e,"unCheckedChildren")])])])]}))}}})),aZ=Symbol("TableContextProps"),sZ=()=>Ao(aZ,{});function cZ(e){return null==e?[]:Array.isArray(e)?e:[e]}function uZ(e,t){if(!t&&"number"!=typeof t)return e;const n=cZ(t);let o=e;for(let r=0;r<n.length;r+=1){if(!o)return null;o=o[n[r]]}return o}function dZ(e){const t=[],n={};return e.forEach((e=>{const{key:o,dataIndex:r}=e||{};let i=o||cZ(r).join("-")||"RC_TABLE_KEY";for(;n[i];)i=`${i}_next`;n[i]=!0,t.push(i)})),t}function pZ(){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<n;r++)o[r]=arguments[r];return o.forEach((n=>{t(e,n)})),e}function hZ(e){return null!=e}const fZ=Symbol("SlotsContextProps"),gZ=()=>Ao(fZ,Xr((()=>({})))),mZ=Symbol("ContextProps"),vZ="RC_TABLE_INTERNAL_COL_DEFINE",bZ=Symbol("HoverContextProps"),yZ=wt(!1),OZ=Ln({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,t){let{slots:n}=t;const o=gZ(),{onHover:r,startRow:i,endRow:l}=Ao(bZ,{startRow:wt(-1),endRow:wt(-1),onHover(){}}),a=Xr((()=>{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})),s=Xr((()=>{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})),c=K$((()=>{const{index:t}=e;return function(e,t,n,o){return e<=o&&e+t-1>=n}(t,s.value||1,i.value,l.value)})),u=yZ,d=t=>{var n;const{record:o,additionalProps:i}=e;o&&r(-1,-1),null===(n=null==i?void 0:i.onMouseleave)||void 0===n||n.call(i,t)},p=e=>{const t=da(e)[0];return br(t)?t.type===ar?t.children:Array.isArray(t.children)?p(t.children):void 0:t};return()=>{var t,i,l,h,f,g;const{prefixCls:m,record:v,index:b,renderIndex:y,dataIndex:O,customRender:w,component:x="td",fixLeft:$,fixRight:S,firstFixLeft:C,lastFixLeft:k,firstFixRight:P,lastFixRight:M,appendNode:T=(null===(t=n.appendNode)||void 0===t?void 0:t.call(n)),additionalProps:I={},ellipsis:E,align:A,rowType:R,isSticky:D,column:j={},cellType:B}=e,N=`${m}-cell`;let z,_;const L=null===(i=n.default)||void 0===i?void 0:i.call(n);if(hZ(L)||"header"===B)_=L;else{const t=uZ(v,O);if(_=t,w){const e=w({text:t,value:t,record:v,index:b,renderIndex:y,column:j.__originColumn__});!(Q=e)||"object"!=typeof Q||Array.isArray(Q)||br(Q)?_=e:(_=e.children,z=e.props)}if(!(vZ in j)&&"body"===B&&o.value.bodyCell&&!(null===(l=j.slots)||void 0===l?void 0:l.customRender)){const e=lo(o.value,"bodyCell",{text:t,value:t,record:v,index:b,column:j.__originColumn__},(()=>{const e=void 0===_?t:_;return["object"==typeof e&&ha(e)||"object"!=typeof e?e:null]}));_=oa(e)}e.transformCellText&&(_=e.transformCellText({text:_,record:v,index:b,column:j.__originColumn__}))}var Q;"object"!=typeof _||Array.isArray(_)||br(_)||(_=null),E&&(k||P)&&(_=Sr("span",{class:`${N}-content`},[_])),Array.isArray(_)&&1===_.length&&(_=_[0]);const H=z||{},{colSpan:F,rowSpan:W,style:V,class:Z}=H,X=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(H,["colSpan","rowSpan","style","class"]),Y=null!==(h=void 0!==F?F:a.value)&&void 0!==h?h:1,K=null!==(f=void 0!==W?W:s.value)&&void 0!==f?f:1;if(0===Y||0===K)return null;const G={},U="number"==typeof $&&u.value,q="number"==typeof S&&u.value;U&&(G.position="sticky",G.left=`${$}px`),q&&(G.position="sticky",G.right=`${S}px`);const J={};let ee;A&&(J.textAlign=A);const te=!0===E?{showTitle:!0}:E;te&&(te.showTitle||"header"===R)&&("string"==typeof _||"number"==typeof _?ee=_.toString():br(_)&&(ee=p([_])));const ne=fl(fl(fl({title:ee},X),I),{colSpan:1!==Y?Y:null,rowSpan:1!==K?K:null,class:Tl(N,{[`${N}-fix-left`]:U&&u.value,[`${N}-fix-left-first`]:C&&u.value,[`${N}-fix-left-last`]:k&&u.value,[`${N}-fix-right`]:q&&u.value,[`${N}-fix-right-first`]:P&&u.value,[`${N}-fix-right-last`]:M&&u.value,[`${N}-ellipsis`]:E,[`${N}-with-append`]:T,[`${N}-fix-sticky`]:(U||q)&&D&&u.value,[`${N}-row-hover`]:!z&&c.value},I.class,Z),onMouseenter:t=>{((t,n)=>{var o;const{record:i,index:l,additionalProps:a}=e;i&&r(l,l+n-1),null===(o=null==a?void 0:a.onMouseenter)||void 0===o||o.call(a,t)})(t,K)},onMouseleave:d,style:[I.style,J,G,V]});return Sr(x,ne,{default:()=>[T,_,null===(g=n.dragHandle)||void 0===g?void 0:g.call(n)]})}}});function wZ(e,t,n,o,r){const i=n[e]||{},l=n[t]||{};let a,s;"left"===i.fixed?a=o.left[e]:"right"===l.fixed&&(s=o.right[t]);let c=!1,u=!1,d=!1,p=!1;const h=n[t+1],f=n[e-1];return"rtl"===r?void 0!==a?p=!(f&&"left"===f.fixed):void 0!==s&&(d=!(h&&"right"===h.fixed)):void 0!==a?c=!(h&&"left"===h.fixed):void 0!==s&&(u=!(f&&"right"===f.fixed)),{fixLeft:a,fixRight:s,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:p,isSticky:o.isSticky}}const xZ={start:"mousedown",move:"mousemove",stop:"mouseup"},$Z={start:"touchstart",move:"touchmove",stop:"touchend"},SZ=Ln({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()};eo((()=>{r()})),yn((()=>{Sp(!isNaN(e.width),"Table","width must be a number when use resizable")}));const{onResizeColumn:i}=Ao(mZ,{onResizeColumn:()=>{}}),l=Xr((()=>"number"!=typeof e.minWidth||isNaN(e.minWidth)?50:e.minWidth)),a=Xr((()=>"number"!=typeof e.maxWidth||isNaN(e.maxWidth)?1/0:e.maxWidth)),s=jr();let c=0;const u=wt(!1);let d;const p=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(c-r,l.value);s=Math.min(s,a.value),wa.cancel(d),d=wa((()=>{i(s,e.column.__originColumn__)}))},h=e=>{p(e)},f=e=>{u.value=!1,p(e),r()},g=(e,i)=>{u.value=!0,r(),c=s.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=ja(document.documentElement,i.move,h),o=ja(document.documentElement,i.stop,f))},m=e=>{e.stopPropagation(),e.preventDefault(),g(e,xZ)},v=e=>{e.stopPropagation(),e.preventDefault()};return()=>{const{prefixCls:t}=e,n={[Da?"onTouchstartPassive":"onTouchstart"]:e=>(e=>{e.stopPropagation(),e.preventDefault(),g(e,$Z)})(e)};return Sr("div",hl(hl({class:`${t}-resize-handle ${u.value?"dragging":""}`,onMousedown:m},n),{},{onClick:v}),[Sr("div",{class:`${t}-resize-handle-line`},null)])}}}),CZ=Ln({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup(e){const t=sZ();return()=>{const{prefixCls:n,direction:o}=t,{cells:r,stickyOffsets:i,flattenColumns:l,rowComponent:a,cellComponent:s,customHeaderRow:c,index:u}=e;let d;c&&(d=c(r.map((e=>e.column)),u));const p=dZ(r.map((e=>e.column)));return Sr(a,d,{default:()=>[r.map(((e,t)=>{const{column:r}=e,a=wZ(e.colStart,e.colEnd,l,i,o);let c;r&&r.customHeaderCell&&(c=e.column.customHeaderCell(r));const u=r;return Sr(OZ,hl(hl(hl({},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?Sr(SZ,{prefixCls:n,width:u.width,minWidth:u.minWidth,maxWidth:u.maxWidth,column:u},null):null})}))]})}}}),kZ=Ln({name:"TableHeader",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup(e){const t=sZ(),n=Xr((()=>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 i=o;const l=n.filter(Boolean).map((n=>{const o={key:n.key,class:Tl(n.className,n.class),column:n,colStart:i};let l=1;const a=n.children;return a&&a.length>0&&(l=e(a,i,r+1).reduce(((e,t)=>e+t),0),o.hasSubColumns=!0),"colSpan"in n&&({colSpan:l}=n),"rowSpan"in n&&(o.rowSpan=n.rowSpan),o.colSpan=l,o.colEnd=o.colStart+l-1,t[r].push(o),i+=l,l}));return l}(e,0);const n=t.length;for(let o=0;o<n;o+=1)t[o].forEach((e=>{"rowSpan"in e||e.hasSubColumns||(e.rowSpan=n-o)}));return t}(e.columns)));return()=>{const{prefixCls:o,getComponent:r}=t,{stickyOffsets:i,flattenColumns:l,customHeaderRow:a}=e,s=r(["header","wrapper"],"thead"),c=r(["header","row"],"tr"),u=r(["header","cell"],"th");return Sr(s,{class:`${o}-thead`},{default:()=>[n.value.map(((e,t)=>Sr(CZ,{key:t,flattenColumns:l,cells:e,stickyOffsets:i,rowComponent:c,cellComponent:u,customHeaderRow:a,index:t},null)))]})}}}),PZ=Symbol("ExpandedRowProps"),MZ=Ln({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup(e,t){let{slots:n,attrs:o}=t;const r=sZ(),i=Ao(PZ,{}),{fixHeader:l,fixColumn:a,componentWidth:s,horizonScroll:c}=i;return()=>{const{prefixCls:t,component:i,cellComponent:u,expanded:d,colSpan:p,isEmpty:h}=e;return Sr(i,{class:o.class,style:{display:d?null:"none"}},{default:()=>[Sr(OZ,{component:u,prefixCls:t,colSpan:p},{default:()=>{var e;let o=null===(e=n.default)||void 0===e?void 0:e.call(n);return(h?c.value:a.value)&&(o=Sr("div",{style:{width:s.value-(l.value?r.scrollbarSize:0)+"px",position:"sticky",left:0,overflow:"hidden"},class:`${t}-expanded-row-fixed`},[o])),o}})]})}}}),TZ=Ln({name:"MeasureCell",props:["columnKey"],setup(e,t){let{emit:n}=t;const o=Ot();return Gn((()=>{o.value&&n("columnResize",e.columnKey,o.value.offsetWidth)})),()=>Sr(ga,{onResize:t=>{let{offsetWidth:o}=t;n("columnResize",e.columnKey,o)}},{default:()=>[Sr("td",{ref:o,style:{padding:0,border:0,height:0}},[Sr("div",{style:{height:0,overflow:"hidden"}},[kr(" ")])])]})}}),IZ=Symbol("BodyContextProps"),EZ=()=>Ao(IZ,{}),AZ=Ln({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup(e,t){let{attrs:n}=t;const o=sZ(),r=EZ(),i=wt(!1),l=Xr((()=>e.expandedKeys&&e.expandedKeys.has(e.recordKey)));yn((()=>{l.value&&(i.value=!0)}));const a=Xr((()=>"row"===r.expandableType&&(!e.rowExpandable||e.rowExpandable(e.record)))),s=Xr((()=>"nest"===r.expandableType)),c=Xr((()=>e.childrenColumnName&&e.record&&e.record[e.childrenColumnName])),u=Xr((()=>a.value||s.value)),d=(e,t)=>{r.onTriggerExpand(e,t)},p=Xr((()=>{var t;return(null===(t=e.customRow)||void 0===t?void 0:t.call(e,e.record,e.index))||{}})),h=function(t){var n,o;r.expandRowByClick&&u.value&&d(e.record,t);for(var i=arguments.length,l=new Array(i>1?i-1:0),a=1;a<i;a++)l[a-1]=arguments[a];null===(o=null===(n=p.value)||void 0===n?void 0:n.onClick)||void 0===o||o.call(n,t,...l)},f=Xr((()=>{const{record:t,index:n,indent:o}=e,{rowClassName:i}=r;return"string"==typeof i?i:"function"==typeof i?i(t,n,o):""})),g=Xr((()=>dZ(r.flattenColumns)));return()=>{const{class:t,style:u}=n,{record:m,index:v,rowKey:b,indent:y=0,rowComponent:O,cellComponent:w}=e,{prefixCls:x,fixedInfoList:$,transformCellText:S}=o,{flattenColumns:C,expandedRowClassName:k,indentSize:P,expandIcon:M,expandedRowRender:T,expandIconColumnIndex:I}=r,E=Sr(O,hl(hl({},p.value),{},{"data-row-key":b,class:Tl(t,`${x}-row`,`${x}-row-level-${y}`,f.value,p.value.class),style:[u,p.value.style],onClick:h}),{default:()=>[C.map(((t,n)=>{const{customRender:o,dataIndex:r,className:i}=t,a=g[n],u=$[n];let p;t.customCell&&(p=t.customCell(m,v,t));const h=n===(I||0)&&s.value?Sr(lr,null,[Sr("span",{style:{paddingLeft:P*y+"px"},class:`${x}-row-indent indent-level-${y}`},null),M({prefixCls:x,expanded:l.value,expandable:c.value,record:m,onExpand:d})]):null;return Sr(OZ,hl(hl({cellType:"body",class:i,ellipsis:t.ellipsis,align:t.align,component:w,prefixCls:x,key:a,record:m,index:v,renderIndex:e.renderIndex,dataIndex:r,customRender:o},u),{},{additionalProps:p,column:t,transformCellText:S,appendNode:h}),null)}))]});let A;if(a.value&&(i.value||l.value)){const e=T({record:m,index:v,indent:y+1,expanded:l.value}),t=k&&k(m,v,y);A=Sr(MZ,{expanded:l.value,class:Tl(`${x}-expanded-row`,`${x}-expanded-row-level-${y+1}`,t),prefixCls:x,component:O,cellComponent:w,colSpan:C.length,isEmpty:!1},{default:()=>[e]})}return Sr(lr,null,[E,A])}}});function RZ(e,t,n,o,r,i){const l=[];l.push({record:e,indent:t,index:i});const a=r(e),s=null==o?void 0:o.has(a);if(e&&Array.isArray(e[n])&&s)for(let c=0;c<e[n].length;c+=1){const i=RZ(e[n][c],t+1,n,o,r,c);l.push(...i)}return l}const DZ=Symbol("ResizeContextProps"),jZ=Ln({name:"TableBody",props:["data","getRowKey","measureColumnWidth","expandedKeys","customRow","rowExpandable","childrenColumnName"],setup(e,t){let{slots:n}=t;const o=Ao(DZ,{onColumnResize:()=>{}}),r=sZ(),i=EZ(),l=(a=Et(e,"data"),s=Et(e,"childrenColumnName"),c=Et(e,"expandedKeys"),u=Et(e,"getRowKey"),Xr((()=>{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 i=n[r];o.push(...RZ(i,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 d=wt(-1),p=wt(-1);let h;return(e=>{Eo(bZ,e)})({startRow:d,endRow:p,onHover:(e,t)=>{clearTimeout(h),h=setTimeout((()=>{d.value=e,p.value=t}),100)}}),()=>{var t;const{data:a,getRowKey:s,measureColumnWidth:c,expandedKeys:u,customRow:d,rowExpandable:p,childrenColumnName:h}=e,{onColumnResize:f}=o,{prefixCls:g,getComponent:m}=r,{flattenColumns:v}=i,b=m(["body","wrapper"],"tbody"),y=m(["body","row"],"tr"),O=m(["body","cell"],"td");let w;w=a.length?l.value.map(((e,t)=>{const{record:n,indent:o,index:r}=e,i=s(n,t);return Sr(AZ,{key:i,rowKey:i,record:n,recordKey:i,index:t,renderIndex:r,rowComponent:y,cellComponent:O,expandedKeys:u,customRow:d,getRowKey:s,rowExpandable:p,childrenColumnName:h,indent:o},null)})):Sr(MZ,{expanded:!0,class:`${g}-placeholder`,prefixCls:g,component:y,cellComponent:O,colSpan:v.length,isEmpty:!0},{default:()=>[null===(t=n.emptyNode)||void 0===t?void 0:t.call(n)]});const x=dZ(v);return Sr(b,{class:`${g}-tbody`},{default:()=>[c&&Sr("tr",{"aria-hidden":"true",class:`${g}-measure-row`,style:{height:0,fontSize:0}},[x.map((e=>Sr(TZ,{key:e,columnKey:e,onColumnResize:f},null)))]),w]})}}}),BZ={};function NZ(e){return e.reduce(((e,t)=>{const{fixed:n}=t,o=!0===n?"left":n,r=t.children;return r&&r.length>0?[...e,...NZ(r).map((e=>fl({fixed:o},e)))]:[...e,fl(fl({},t),{fixed:o})]}),[])}function zZ(e){return e.map((e=>{const{fixed:t}=e;let n=t;return"left"===t?n="right":"right"===t&&(n="left"),fl({fixed: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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["fixed"]))}))}function _Z(e){const t=wt(e);let n;const o=wt([]);return Jn((()=>{wa.cancel(n)})),[t,function(e){o.value.push(e),wa.cancel(n),n=wa((()=>{const e=o.value;o.value=[],e.forEach((e=>{t.value=e(t.value)}))}))}]}var LZ=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function QZ(e){let{colWidths:t,columns:n,columCount:o}=e;const r=[];let i=!1;for(let l=(o||n.length)-1;l>=0;l-=1){const e=t[l],o=n&&n[l],a=o&&o[vZ];if(e||a||i){const t=LZ(a||{},["columnType"]);r.unshift(Sr("col",hl({key:l,style:{width:"number"==typeof e?`${e}px`:e}},t),null)),i=!0}}return Sr("colgroup",null,[r])}function HZ(e,t){let{slots:n}=t;var o;return Sr("div",null,[null===(o=n.default)||void 0===o?void 0:o.call(n)])}HZ.displayName="Panel";let FZ=0;const WZ=Ln({name:"TableSummary",props:["fixed"],setup(e,t){let{slots:n}=t;const o=sZ(),r="table-summary-uni-key-"+ ++FZ,i=Xr((()=>""===e.fixed||e.fixed));return yn((()=>{o.summaryCollect(r,i.value)})),Jn((()=>{o.summaryCollect(r,!1)})),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),VZ=Ln({compatConfig:{MODE:3},name:"ATableSummaryRow",setup(e,t){let{slots:n}=t;return()=>{var e;return Sr("tr",null,[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}}),ZZ=Symbol("SummaryContextProps"),XZ=Ln({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup(e,t){let{attrs:n,slots:o}=t;const r=sZ(),i=Ao(ZZ,{});return()=>{const{index:t,colSpan:l=1,rowSpan:a,align:s}=e,{prefixCls:c,direction:u}=r,{scrollColumnIndex:d,stickyOffsets:p,flattenColumns:h}=i,f=t+l-1+1===d?l+1:l,g=wZ(t,t+f-1,h,p,u);return Sr(OZ,hl({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)}},g),null)}}}),YZ=Ln({name:"TableFooter",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(e,t){let{slots:n}=t;const o=sZ();return(e=>{Eo(ZZ,e)})(it({stickyOffsets:Et(e,"stickyOffsets"),flattenColumns:Et(e,"flattenColumns"),scrollColumnIndex:Xr((()=>{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 Sr("tfoot",{class:`${t}-summary`},[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}}),KZ=WZ;function GZ(e){let{prefixCls:t,record:n,onExpand:o,expanded:r,expandable:i}=e;const l=`${t}-row-expand-icon`;return Sr("span",i?{class:{[l]:!0,[`${t}-row-expanded`]:r,[`${t}-row-collapsed`]:!r},onClick:e=>{o(n,e),e.stopPropagation()}}:{class:[l,`${t}-row-spaced`]},null)}const UZ=Ln({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup(e,t){let{emit:n,expose:o}=t;const r=sZ(),i=wt(0),l=wt(0),a=wt(0);yn((()=>{i.value=e.scrollBodySizeInfo.scrollWidth||0,l.value=e.scrollBodySizeInfo.clientWidth||0,a.value=i.value&&l.value*(l.value/i.value)}),{flush:"post"});const s=wt(),[c,u]=_Z({scrollLeft:0,isHiddenScrollBar:!0}),d=Ot({delta:0,x:0}),p=wt(!1),h=()=>{p.value=!1},f=e=>{d.value={delta:e.pageX-c.value.scrollLeft,x:0},p.value=!0,e.preventDefault()},g=e=>{const{buttons:t}=e||(null===window||void 0===window?void 0:window.event);if(!p.value||0===t)return void(p.value&&(p.value=!1));let o=d.value.x+e.pageX-d.value.x-d.value.delta;o<=0&&(o=0),o+a.value>=l.value&&(o=l.value-a.value),n("scroll",{scrollLeft:o/l.value*(i.value+2)}),d.value.x=e.pageX},m=()=>{if(!e.scrollBodyRef.value)return;const t=$_(e.scrollBodyRef.value).top,n=t+e.scrollBodyRef.value.offsetHeight,o=e.container===window?document.documentElement.scrollTop+window.innerHeight:$_(e.container).top+e.container.clientHeight;n-vm()<=o||t>=o-e.offsetScroll?u((e=>fl(fl({},e),{isHiddenScrollBar:!0}))):u((e=>fl(fl({},e),{isHiddenScrollBar:!1})))};o({setScrollLeft:e=>{u((t=>fl(fl({},t),{scrollLeft:e/i.value*l.value||0})))}});let v=null,b=null,y=null,O=null;Gn((()=>{v=ja(document.body,"mouseup",h,!1),b=ja(document.body,"mousemove",g,!1),y=ja(window,"resize",m,!1)})),Fn((()=>{Vt((()=>{m()}))})),Gn((()=>{setTimeout((()=>{wn([a,p],(()=>{m()}),{immediate:!0,flush:"post"})}))})),wn((()=>e.container),(()=>{null==O||O.remove(),O=ja(e.container,"scroll",m,!1)}),{immediate:!0,flush:"post"}),Jn((()=>{null==v||v.remove(),null==b||b.remove(),null==O||O.remove(),null==y||y.remove()})),wn((()=>fl({},c.value)),((t,n)=>{t.isHiddenScrollBar===(null==n?void 0:n.isHiddenScrollBar)||t.isHiddenScrollBar||u((t=>{const n=e.scrollBodyRef.value;return n?fl(fl({},t),{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):t}))}),{immediate:!0});const w=vm();return()=>{if(i.value<=l.value||!a.value||c.value.isHiddenScrollBar)return null;const{prefixCls:t}=r;return Sr("div",{style:{height:`${w}px`,width:`${l.value}px`,bottom:`${e.offsetScroll}px`},class:`${t}-sticky-scroll`},[Sr("div",{onMousedown:f,ref:s,class:Tl(`${t}-sticky-scroll-bar`,{[`${t}-sticky-scroll-bar-active`]:p.value}),style:{width:`${a.value}px`,transform:`translate3d(${c.value.scrollLeft}px, 0, 0)`}},null)])}}}),qZ=ms()?window:null,JZ=Ln({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 i=sZ(),l=Xr((()=>i.isSticky&&!e.fixHeader?0:i.scrollbarSize)),a=Ot(),s=e=>{const{currentTarget:t,deltaX:n}=e;n&&(r("scroll",{currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())},c=Ot();Gn((()=>{Vt((()=>{c.value=ja(a.value,"wheel",s)}))})),Jn((()=>{var e;null===(e=c.value)||void 0===e||e.remove()}));const u=Xr((()=>e.flattenColumns.every((e=>e.width&&0!==e.width&&"0px"!==e.width)))),d=Ot([]),p=Ot([]);yn((()=>{const t=e.flattenColumns[e.flattenColumns.length-1],n={fixed:t?t.fixed:null,scrollbar:!0,customHeaderCell:()=>({class:`${i.prefixCls}-cell-scrollbar`})};d.value=l.value?[...e.columns,n]:e.columns,p.value=l.value?[...e.flattenColumns,n]:e.flattenColumns}));const h=Xr((()=>{const{stickyOffsets:t,direction:n}=e,{right:o,left:r}=t;return fl(fl({},t),{left:"rtl"===n?[...r.map((e=>e+l.value)),0]:r,right:"rtl"===n?o:[...o.map((e=>e+l.value)),0],isSticky:i.isSticky})})),f=(g=Et(e,"colWidths"),m=Et(e,"columCount"),Xr((()=>{const e=[],t=g.value,n=m.value;for(let o=0;o<n;o+=1){const n=t[o];if(void 0===n)return null;e[o]=n}return e})));var g,m;return()=>{var t;const{noData:r,columCount:s,stickyTopOffset:c,stickyBottomOffset:g,stickyClassName:m,maxContentScroll:v}=e,{isSticky:b}=i;return Sr("div",{style:fl({overflow:"hidden"},b?{top:`${c}px`,bottom:`${g}px`}:{}),ref:a,class:Tl(n.class,{[m]:!!m})},[Sr("table",{style:{tableLayout:"fixed",visibility:r||f.value?null:"hidden"}},[(!r||!v||u.value)&&Sr(QZ,{colWidths:f.value?[...f.value,l.value]:[],columCount:s+1,columns:p.value},null),null===(t=o.default)||void 0===t?void 0:t.call(o,fl(fl({},e),{stickyOffsets:h.value,columns:d.value,flattenColumns:p.value}))])])}}});function eX(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return it(function(e){for(var t=-1,n=null==e?0:e.length,o={};++t<n;){var r=e[t];o[r[0]]=r[1]}return o}(n.map((t=>[t,Et(e,t)]))))}const tX=[],nX={},oX="rc-table-internal-hook",rX=Ln({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(e,t){let{attrs:n,slots:o,emit:r}=t;const i=Xr((()=>e.data||tX)),l=Xr((()=>!!i.value.length)),a=Xr((()=>pZ(e.components,{}))),s=(e,t)=>uZ(a.value,e)||t,c=Xr((()=>{const t=e.rowKey;return"function"==typeof t?t:e=>e&&e[t]})),u=Xr((()=>e.expandIcon||GZ)),d=Xr((()=>e.childrenColumnName||"children")),p=Xr((()=>e.expandedRowRender?"row":!(!e.canExpandable&&!i.value.some((e=>e&&"object"==typeof e&&e[d.value])))&&"nest")),h=wt([]),f=yn((()=>{e.defaultExpandedRowKeys&&(h.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(h.value=function(e,t,n){const o=[];return function e(r){(r||[]).forEach(((r,i)=>{o.push(t(r,i)),e(r[n])}))}(e),o}(i.value,c.value,d.value))}));f();const g=Xr((()=>new Set(e.expandedRowKeys||h.value||[]))),m=e=>{const t=c.value(e,i.value.indexOf(e));let n;const o=g.value.has(t);o?(g.value.delete(t),n=[...g.value]):n=[...g.value,t],h.value=n,r("expand",!o,e),r("update:expandedRowKeys",n),r("expandedRowsChange",n)},v=Ot(0),[b,y]=function(e,t){let{prefixCls:n,columns:o,expandable:r,expandedKeys:i,getRowKey:l,onTriggerExpand:a,expandIcon:s,rowExpandable:c,expandIconColumnIndex:u,direction:d,expandRowByClick:p,expandColumnWidth:h,expandFixed:f}=e;const g=gZ(),m=Xr((()=>{if(r.value){let e=o.value.slice();if(!e.includes(BZ)){const t=u.value||0;t>=0&&e.splice(t,0,BZ)}const t=e.indexOf(BZ);e=e.filter(((e,n)=>e!==BZ||n===t));const r=o.value[t];let d;d="left"!==f.value&&!f.value||u.value?"right"!==f.value&&!f.value||u.value!==o.value.length?r?r.fixed:null:"right":"left";const m=i.value,v=c.value,b=s.value,y=n.value,O=p.value,w={[vZ]:{class:`${n.value}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:lo(g.value,"expandColumnTitle",{},(()=>[""])),fixed:d,class:`${n.value}-row-expand-icon-cell`,width:h.value,customRender:e=>{let{record:t,index:n}=e;const o=l.value(t,n),r=m.has(o),i=!v||v(t),s=b({prefixCls:y,expanded:r,expandable:i,record:t,onExpand:a});return O?Sr("span",{onClick:e=>e.stopPropagation()},[s]):s}};return e.map((e=>e===BZ?w:e))}return o.value.filter((e=>e!==BZ))})),v=Xr((()=>{let e=m.value;return t.value&&(e=t.value(e)),e.length||(e=[{customRender:()=>null}]),e})),b=Xr((()=>"rtl"===d.value?zZ(NZ(v.value)):NZ(v.value)));return[v,b]}(fl(fl({},Mt(e)),{expandable:Xr((()=>!!e.expandedRowRender)),expandedKeys:g,getRowKey:c,onTriggerExpand:m,expandIcon:u}),Xr((()=>e.internalHooks===oX?e.transformColumns:null))),O=Xr((()=>({columns:b.value,flattenColumns:y.value}))),w=Ot(),x=Ot(),$=Ot(),S=Ot({scrollWidth:0,clientWidth:0}),C=Ot(),[k,P]=Hv(!1),[M,T]=Hv(!1),[I,E]=_Z(new Map),A=Xr((()=>dZ(y.value))),R=Xr((()=>A.value.map((e=>I.value.get(e))))),D=Xr((()=>y.value.length)),j=(B=R,N=D,z=Et(e,"direction"),Xr((()=>{const e=[],t=[];let n=0,o=0;const r=B.value,i=N.value,l=z.value;for(let a=0;a<i;a+=1)if("rtl"===l){t[a]=o,o+=r[a]||0;const l=i-a-1;e[l]=n,n+=r[l]||0}else{e[a]=n,n+=r[a]||0;const l=i-a-1;t[l]=o,o+=r[l]||0}return{left:e,right:t}})));var B,N,z;const _=Xr((()=>e.scroll&&hZ(e.scroll.y))),L=Xr((()=>e.scroll&&hZ(e.scroll.x)||Boolean(e.expandFixed))),Q=Xr((()=>L.value&&y.value.some((e=>{let{fixed:t}=e;return t})))),H=Ot(),F=function(e,t){return Xr((()=>{const{offsetHeader:n=0,offsetSummary:o=0,offsetScroll:r=0,getContainer:i=(()=>qZ)}="object"==typeof e.value?e.value:{},l=i()||qZ,a=!!e.value;return{isSticky:a,stickyClassName:a?`${t.value}-sticky-holder`:"",offsetHeader:n,offsetSummary:o,offsetScroll:r,container:l}}))}(Et(e,"sticky"),Et(e,"prefixCls")),W=it({}),V=Xr((()=>{const e=Object.values(W)[0];return(_.value||F.value.isSticky)&&e})),Z=Ot({}),X=Ot({}),Y=Ot({});yn((()=>{_.value&&(X.value={overflowY:"scroll",maxHeight:Pl(e.scroll.y)}),L.value&&(Z.value={overflowX:"auto"},_.value||(X.value={overflowY:"hidden"}),Y.value={width:!0===e.scroll.x?"auto":Pl(e.scroll.x),minWidth:"100%"})}));const[K,G]=function(e){const t=Ot(e||null),n=Ot();function o(){clearTimeout(n.value)}return Jn((()=>{o()})),[function(e){t.value=e,o(),n.value=setTimeout((()=>{t.value=null,n.value=void 0}),100)},function(){return t.value}]}(null);function U(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 q=t=>{let{currentTarget:n,scrollLeft:o}=t;var r;const i="rtl"===e.direction,l="number"==typeof o?o:n.scrollLeft,a=n||nX;if(G()&&G()!==a||(K(a),U(l,x.value),U(l,$.value),U(l,C.value),U(l,null===(r=H.value)||void 0===r?void 0:r.setScrollLeft)),n){const{scrollWidth:e,clientWidth:t}=n;i?(P(-l<e-t),T(-l>0)):(P(l>0),T(l<e-t))}},J=()=>{L.value&&$.value?q({currentTarget:$.value}):(P(!1),T(!1))};let ee;const te=e=>{e!==v.value&&(J(),v.value=w.value?w.value.offsetWidth:e)},ne=e=>{let{width:t}=e;clearTimeout(ee),0!==v.value?ee=setTimeout((()=>{te(t)}),100):te(t)};wn([L,()=>e.data,()=>e.columns],(()=>{L.value&&J()}),{flush:"post"});const[oe,re]=Hv(0);Gn((()=>{yZ.value=yZ.value||zR("position","sticky")})),Gn((()=>{Vt((()=>{var e,t;J(),re(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:bm(t),height:bm(n)}}($.value).width),S.value={scrollWidth:(null===(e=$.value)||void 0===e?void 0:e.scrollWidth)||0,clientWidth:(null===(t=$.value)||void 0===t?void 0:t.clientWidth)||0}}))})),qn((()=>{Vt((()=>{var e,t;const n=(null===(e=$.value)||void 0===e?void 0:e.scrollWidth)||0,o=(null===(t=$.value)||void 0===t?void 0:t.clientWidth)||0;S.value.scrollWidth===n&&S.value.clientWidth===o||(S.value={scrollWidth:n,clientWidth:o})}))})),yn((()=>{e.internalHooks===oX&&e.internalRefs&&e.onUpdateInternalRefs({body:$.value?$.value.$el||$.value:null})}),{flush:"post"});const ie=Xr((()=>e.tableLayout?e.tableLayout:Q.value?"max-content"===e.scroll.x?"auto":"fixed":_.value||F.value.isSticky||y.value.some((e=>{let{ellipsis:t}=e;return t}))?"fixed":"auto")),le=()=>{var e;return l.value?null:(null===(e=o.emptyText)||void 0===e?void 0:e.call(o))||"No Data"};(e=>{Eo(aZ,e)})(it(fl(fl({},Mt(eX(e,"prefixCls","direction","transformCellText"))),{getComponent:s,scrollbarSize:oe,fixedInfoList:Xr((()=>y.value.map(((t,n)=>wZ(n,n,y.value,j.value,e.direction))))),isSticky:Xr((()=>F.value.isSticky)),summaryCollect:(e,t)=>{t?W[e]=t:delete W[e]}}))),(e=>{Eo(IZ,e)})(it(fl(fl({},Mt(eX(e,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{columns:b,flattenColumns:y,tableLayout:ie,expandIcon:u,expandableType:p,onTriggerExpand:m}))),(e=>{Eo(DZ,e)})({onColumnResize:(e,t)=>{Kh(w.value)&&E((n=>{if(n.get(e)!==t){const o=new Map(n);return o.set(e,t),o}return n}))}}),(e=>{Eo(PZ,e)})({componentWidth:v,fixHeader:_,fixColumn:Q,horizonScroll:L});const ae=()=>Sr(jZ,{data:i.value,measureColumnWidth:_.value||L.value||F.value.isSticky,expandedKeys:g.value,rowExpandable:e.rowExpandable,getRowKey:c.value,customRow:e.customRow,childrenColumnName:d.value},{emptyNode:le}),se=()=>Sr(QZ,{colWidths:y.value.map((e=>{let{width:t}=e;return t})),columns:y.value},null);return()=>{var t;const{prefixCls:r,scroll:l,tableLayout:a,direction:c,title:u=o.title,footer:d=o.footer,id:p,showHeader:h,customHeaderRow:f}=e,{isSticky:g,offsetHeader:m,offsetSummary:v,offsetScroll:P,stickyClassName:T,container:I}=F.value,E=s(["table"],"table"),A=s(["body"]),B=null===(t=o.summary)||void 0===t?void 0:t.call(o,{pageData:i.value});let N=()=>null;const z={colWidths:R.value,columCount:y.value.length,stickyOffsets:j.value,customHeaderRow:f,fixHeader:_.value,scroll:l};if(_.value||g){let e=()=>null;"function"==typeof A?(e=()=>A(i.value,{scrollbarSize:oe.value,ref:$,onScroll:q}),z.colWidths=y.value.map(((e,t)=>{let{width:n}=e;const o=t===b.value.length-1?n-oe.value:n;return"number"!=typeof o||Number.isNaN(o)?0:o}))):e=()=>Sr("div",{style:fl(fl({},Z.value),X.value),onScroll:q,ref:$,class:Tl(`${r}-body`)},[Sr(E,{style:fl(fl({},Y.value),{tableLayout:ie.value})},{default:()=>[se(),ae(),!V.value&&B&&Sr(YZ,{stickyOffsets:j.value,flattenColumns:y.value},{default:()=>[B]})]})]);const t=fl(fl(fl({noData:!i.value.length,maxContentScroll:L.value&&"max-content"===l.x},z),O.value),{direction:c,stickyClassName:T,onScroll:q});N=()=>Sr(lr,null,[!1!==h&&Sr(JZ,hl(hl({},t),{},{stickyTopOffset:m,class:`${r}-header`,ref:x}),{default:e=>Sr(lr,null,[Sr(kZ,e,null),"top"===V.value&&Sr(YZ,e,{default:()=>[B]})])}),e(),V.value&&"top"!==V.value&&Sr(JZ,hl(hl({},t),{},{stickyBottomOffset:v,class:`${r}-summary`,ref:C}),{default:e=>Sr(YZ,e,{default:()=>[B]})}),g&&$.value&&Sr(UZ,{ref:H,offsetScroll:P,scrollBodyRef:$,onScroll:q,container:I,scrollBodySizeInfo:S.value},null)])}else N=()=>Sr("div",{style:fl(fl({},Z.value),X.value),class:Tl(`${r}-content`),onScroll:q,ref:$},[Sr(E,{style:fl(fl({},Y.value),{tableLayout:ie.value})},{default:()=>[se(),!1!==h&&Sr(kZ,hl(hl({},z),O.value),null),ae(),B&&Sr(YZ,{stickyOffsets:j.value,flattenColumns:y.value},{default:()=>[B]})]})]);const W=Lm(n,{aria:!0,data:!0}),K=()=>Sr("div",hl(hl({},W),{},{class:Tl(r,{[`${r}-rtl`]:"rtl"===c,[`${r}-ping-left`]:k.value,[`${r}-ping-right`]:M.value,[`${r}-layout-fixed`]:"fixed"===a,[`${r}-fixed-header`]:_.value,[`${r}-fixed-column`]:Q.value,[`${r}-scroll-horizontal`]:L.value,[`${r}-has-fix-left`]:y.value[0]&&y.value[0].fixed,[`${r}-has-fix-right`]:y.value[D.value-1]&&"right"===y.value[D.value-1].fixed,[n.class]:n.class}),style:n.style,id:p,ref:w}),[u&&Sr(HZ,{class:`${r}-title`},{default:()=>[u(i.value)]}),Sr("div",{class:`${r}-container`},[N()]),d&&Sr(HZ,{class:`${r}-footer`},{default:()=>[d(i.value)]})]);return L.value?Sr(ga,{onResize:ne},{default:K}):K()}}}),iX=10;function lX(e,t,n){const o=Xr((()=>t.value&&"object"==typeof t.value?t.value:{})),r=Xr((()=>o.value.total||0)),[i,l]=Hv((()=>({current:"defaultCurrent"in o.value?o.value.defaultCurrent:1,pageSize:"defaultPageSize"in o.value?o.value.defaultPageSize:iX}))),a=Xr((()=>{const t=function(){const e=fl({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach((t=>{const o=n[t];void 0!==o&&(e[t]=o)}))}return e}(i.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&&l({current:null!=e?e:1,pageSize:n||a.value.pageSize})},c=(e,r)=>{var i,l;t.value&&(null===(l=(i=o.value).onChange)||void 0===l||l.call(i,e,r)),s(e,r),n(e,r||a.value.pageSize)};return[Xr((()=>!1===t.value?{}:fl(fl({},a.value),{onChange:c}))),s]}const aX={},sX="SELECT_ALL",cX="SELECT_INVERT",uX="SELECT_NONE",dX=[];function pX(e,t){let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[...n,...pX(e,t[e])])})),n}function hX(e,t){const n=Xr((()=>{const t=e.value||{},{checkStrictly:n=!0}=t;return fl(fl({},t),{checkStrictly:n})})),[o,r]=Qv(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||dX,{value:Xr((()=>n.value.selectedRowKeys))}),i=wt(new Map),l=e=>{if(n.value.preserveSelectedRowKeys){const n=new Map;e.forEach((e=>{let o=t.getRecordByKey(e);!o&&i.value.has(e)&&(o=i.value.get(e)),n.set(e,o)})),i.value=n}};yn((()=>{l(o.value)}));const a=Xr((()=>n.value.checkStrictly?null:cR(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities)),s=Xr((()=>pX(t.childrenColumnName.value,t.pageData.value))),c=Xr((()=>{const e=new Map,o=t.getRowKey.value,r=n.value.getCheckboxProps;return s.value.forEach(((t,n)=>{const i=o(t,n),l=(r?r(t):null)||{};e.set(i,l)})),e})),{maxLevel:u,levelEntities:d}=PR(a),p=e=>{var n;return!!(null===(n=c.value.get(t.getRowKey.value(e)))||void 0===n?void 0:n.disabled)},h=Xr((()=>{if(n.value.checkStrictly)return[o.value||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=yR(o.value,!0,a.value,u.value,d.value,p);return[e||[],t]})),f=Xr((()=>h.value[0])),g=Xr((()=>h.value[1])),m=Xr((()=>{const e="radio"===n.value.type?f.value.slice(0,1):f.value;return new Set(e)})),v=Xr((()=>"radio"===n.value.type?new Set:new Set(g.value))),[b,y]=Hv(null),O=e=>{let o,a;l(e);const{preserveSelectedRowKeys:s,onChange:c}=n.value,{getRecordByKey:u}=t;s?(o=e,a=e.map((e=>i.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)},w=(e,o,r,i)=>{const{onSelect:l}=n.value,{getRecordByKey:a}=t||{};if(l){const t=r.map((e=>a(e)));l(a(e),o,t,i)}O(r)},x=Xr((()=>{const{onSelectInvert:e,onSelectNone:o,selections:r,hideSelectAll:i}=n.value,{data:l,pageData:a,getRowKey:s,locale:u}=t;return!r||i?null:(!0===r?[sX,cX,uX]:r).map((t=>t===sX?{key:"all",text:u.value.selectionAll,onSelect(){O(l.value.map(((e,t)=>s.value(e,t))).filter((e=>{const t=c.value.get(e);return!(null==t?void 0:t.disabled)||m.value.has(e)})))}}:t===cX?{key:"invert",text:u.value.selectInvert,onSelect(){const t=new Set(m.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&&(Sp(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),e(n)),O(n)}}:t===uX?{key:"none",text:u.value.selectNone,onSelect(){null==o||o(),O(Array.from(m.value).filter((e=>{const t=c.value.get(e);return null==t?void 0:t.disabled})))}}:t))})),$=Xr((()=>s.value.length));return[o=>{var r;const{onSelectAll:i,onSelectMultiple:l,columnWidth:h,type:g,fixed:S,renderCell:C,hideSelectAll:k,checkStrictly:P}=n.value,{prefixCls:M,getRecordByKey:T,getRowKey:I,expandType:E,getPopupContainer:A}=t;if(!e.value)return o.filter((e=>e!==aX));let R=o.slice();const D=new Set(m.value),j=s.value.map(I.value).filter((e=>!c.value.get(e).disabled)),B=j.every((e=>D.has(e))),N=j.some((e=>D.has(e))),z=()=>{const e=[];B?j.forEach((t=>{D.delete(t),e.push(t)})):j.forEach((t=>{D.has(t)||(D.add(t),e.push(t))}));const t=Array.from(D);null==i||i(!B,t.map((e=>T(e))),e.map((e=>T(e)))),O(t)};let _,L;if("radio"!==g){let e;if(x.value){const t=Sr(rP,{getPopupContainer:A.value},{default:()=>[x.value.map(((e,t)=>{const{key:n,text:o,onSelect:r}=e;return Sr(rP.Item,{key:n||t,onClick:()=>{null==r||r(j)}},{default:()=>[o]})}))]});e=Sr("div",{class:`${M.value}-selection-extra`},[Sr(ak,{overlay:t,getPopupContainer:A.value},{default:()=>[Sr("span",null,[Sr(Nb,null,null)])]})])}const t=s.value.map(((e,t)=>{const n=I.value(e,t),o=c.value.get(n)||{};return fl({checked:D.has(n)},o)})).filter((e=>{let{disabled:t}=e;return t})),n=!!t.length&&t.length===$.value,o=n&&t.every((e=>{let{checked:t}=e;return t})),r=n&&t.some((e=>{let{checked:t}=e;return t}));_=!k&&Sr("div",{class:`${M.value}-selection`},[Sr(Tj,{checked:n?o:!!$.value&&B,indeterminate:n?!o&&r:!B&&N,onChange:z,disabled:0===$.value||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0},null),e])}if(L="radio"===g?e=>{let{record:t,index:n}=e;const o=I.value(t,n),r=D.has(o);return{node:Sr(IT,hl(hl({},c.value.get(o)),{},{checked:r,onClick:e=>e.stopPropagation(),onChange:e=>{D.has(o)||w(o,!0,[o],e.nativeEvent)}}),null),checked:r}}:e=>{let{record:t,index:n}=e;var o;const r=I.value(t,n),i=D.has(r),s=v.value.has(r),h=c.value.get(r);let g;return"nest"===E.value?(g=s,Sp("boolean"!=typeof(null==h?void 0:h.indeterminate),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):g=null!==(o=null==h?void 0:h.indeterminate)&&void 0!==o?o:s,{node:Sr(Tj,hl(hl({},h),{},{indeterminate:g,checked:i,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t;let o=-1,s=-1;if(n&&P){const e=new Set([b.value,r]);j.some(((t,n)=>{if(e.has(t)){if(-1!==o)return s=n,!0;o=n}return!1}))}if(-1!==s&&o!==s&&P){const e=j.slice(o,s+1),t=[];i?e.forEach((e=>{D.has(e)&&(t.push(e),D.delete(e))})):e.forEach((e=>{D.has(e)||(t.push(e),D.add(e))}));const n=Array.from(D);null==l||l(!i,n.map((e=>T(e))),t.map((e=>T(e)))),O(n)}else{const e=f.value;if(P){const n=i?UA(e,r):qA(e,r);w(r,!i,n,t)}else{const n=yR([...e,r],!0,a.value,u.value,d.value,p),{checkedKeys:o,halfCheckedKeys:l}=n;let s=o;if(i){const e=new Set(o);e.delete(r),s=yR(Array.from(e),{checked:!1,halfCheckedKeys:l},a.value,u.value,d.value,p).checkedKeys}w(r,!i,s,t)}}y(r)}}),null),checked:i}},!R.includes(aX))if(0===R.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[vZ])||void 0===t?void 0:t.columnType)}))){const[e,...t]=R;R=[e,aX,...t]}else R=[aX,...R];const Q=R.indexOf(aX);R=R.filter(((e,t)=>e!==aX||t===Q));const H=R[Q-1],F=R[Q+1];let W=S;void 0===W&&(void 0!==(null==F?void 0:F.fixed)?W=F.fixed:void 0!==(null==H?void 0:H.fixed)&&(W=H.fixed)),W&&H&&"EXPAND_COLUMN"===(null===(r=H[vZ])||void 0===r?void 0:r.columnType)&&void 0===H.fixed&&(H.fixed=W);const V={fixed:W,width:h,className:`${M.value}-selection-column`,title:n.value.columnTitle||_,customRender:e=>{let{record:t,index:n}=e;const{node:o,checked:r}=L({record:t,index:n});return C?C(r,t,n,o):o},[vZ]:{class:`${M.value}-selection-col`}};return R.map((e=>e===aX?V:e))},m]}const fX={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 gX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){mX(e,t,n[t])}))}return e}function mX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vX=function(e,t){var n=gX({},e,t.attrs);return Sr(Rb,gX({},n,{icon:fX}),null)};vX.displayName="CaretDownOutlined",vX.inheritAttrs=!1;const bX=vX,yX={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};function OX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){wX(e,t,n[t])}))}return e}function wX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xX=function(e,t){var n=OX({},e,t.attrs);return Sr(Rb,OX({},n,{icon:yX}),null)};xX.displayName="CaretUpOutlined",xX.inheritAttrs=!1;const $X=xX;function SX(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function CX(e,t){return t?`${t}-${e}`:`${e}`}function kX(e,t){return"function"==typeof e?e(t):e}function PX(){const e=oa(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]),t=[];return e.forEach((e=>{var n,o,r,i;if(!e)return;const l=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,h]of Object.entries(c))c[wl(t)]=h;const u=e.children||{},{default:d}=u,p=fl(fl(fl({},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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(u,["default"])),c),{style:a,class:s});if(l&&(p.key=l),null===(r=e.type)||void 0===r?void 0:r.__ANT_TABLE_COLUMN_GROUP)p.children=PX("function"==typeof d?d():d);else{const t=null===(i=e.children)||void 0===i?void 0:i.default;p.customRender=p.customRender||t}t.push(p)})),t}const MX="ascend",TX="descend";function IX(e){return"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function EX(e){return"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare}function AX(e,t,n){let o=[];function r(e,t){o.push({column:e,key:SX(e,t),multiplePriority:IX(e),sortOrder:e.sortOrder})}return(e||[]).forEach(((e,i)=>{const l=CX(i,n);e.children?("sortOrder"in e&&r(e,l),o=[...o,...AX(e.children,t,l)]):e.sorter&&("sortOrder"in e?r(e,l):t&&e.defaultSortOrder&&o.push({column:e,key:SX(e,l),multiplePriority:IX(e),sortOrder:e.defaultSortOrder}))})),o}function RX(e,t,n,o,r,i,l,a){return(t||[]).map(((t,s)=>{const c=CX(s,a);let u=t;if(u.sorter){const a=u.sortDirections||r,s=void 0===u.showSorterTooltip?l:u.showSorterTooltip,d=SX(u,c),p=n.find((e=>{let{key:t}=e;return t===d})),h=p?p.sortOrder:null,f=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(a,h),g=a.includes(MX)&&Sr($X,{class:Tl(`${e}-column-sorter-up`,{active:h===MX}),role:"presentation"},null),m=a.includes(TX)&&Sr(bX,{role:"presentation",class:Tl(`${e}-column-sorter-down`,{active:h===TX})},null),{cancelSort:v,triggerAsc:b,triggerDesc:y}=i||{};let O=v;f===TX?O=y:f===MX&&(O=b);const w="object"==typeof s?s:{title:O};u=fl(fl({},u),{className:Tl(u.className,{[`${e}-column-sort`]:h}),title:n=>{const o=Sr("div",{class:`${e}-column-sorters`},[Sr("span",{class:`${e}-column-title`},[kX(t.title,n)]),Sr("span",{class:Tl(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!g||!m)})},[Sr("span",{class:`${e}-column-sorter-inner`},[g,m])])]);return s?Sr(xS,w,{default:()=>[o]}):o},customHeaderCell:n=>{const r=t.customHeaderCell&&t.customHeaderCell(n)||{},i=r.onClick,l=r.onKeydown;return r.onClick=e=>{o({column:t,key:d,sortOrder:f,multiplePriority:IX(t)}),i&&i(e)},r.onKeydown=e=>{e.keyCode===Tm.ENTER&&(o({column:t,key:d,sortOrder:f,multiplePriority:IX(t)}),null==l||l(e))},h&&(r["aria-sort"]="ascend"===h?"ascending":"descending"),r.class=Tl(r.class,`${e}-column-has-sorters`),r.tabindex=0,r}})}return"children"in u&&(u=fl(fl({},u),{children:RX(e,u.children,n,o,r,i,l,c)})),u}))}function DX(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function jX(e){const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(DX);return 0===t.length&&e.length?fl(fl({},DX(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function BX(e,t,n){const o=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),r=e.slice(),i=o.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return EX(t)&&n}));return i.length?r.sort(((e,t)=>{for(let n=0;n<i.length;n+=1){const o=i[n],{column:{sorter:r},sortOrder:l}=o,a=EX(r);if(a&&l){const n=a(e,t,l);if(0!==n)return l===MX?n:-n}}return 0})).map((e=>{const o=e[n];return o?fl(fl({},e),{[n]:BX(o,t,n)}):e})):r}function NX(e){let{prefixCls:t,mergedColumns:n,onSorterChange:o,sortDirections:r,tableLocale:i,showSorterTooltip:l}=e;const[a,s]=Hv(AX(n.value,!0)),c=Xr((()=>{let e=!0;const t=AX(n.value,!1);if(!t.length)return a.value;const o=[];function r(t){e?o.push(t):o.push(fl(fl({},t),{sortOrder:null}))}let i=null;return t.forEach((t=>{null===i?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),r(t))})),o})),u=Xr((()=>{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 d(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(jX(t),t)}const p=Xr((()=>jX(c.value)));return[e=>RX(t.value,e,c.value,d,r.value,i.value,l.value),c,u,p]}const zX={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 _X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){LX(e,t,n[t])}))}return e}function LX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QX=function(e,t){var n=_X({},e,t.attrs);return Sr(Rb,_X({},n,{icon:zX}),null)};QX.displayName="FilterFilled",QX.inheritAttrs=!1;const HX=QX,FX=e=>{const{keyCode:t}=e;t===Tm.ENTER&&e.stopPropagation()},WX=(e,t)=>{let{slots:n}=t;var o;return Sr("div",{onClick:e=>e.stopPropagation(),onKeydown:FX},[null===(o=n.default)||void 0===o?void 0:o.call(n)])},VX=Ln({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:Ea(),onChange:Ma(),filterSearch:Aa([Boolean,Function]),tablePrefixCls:Ea(),locale:ka()},setup:e=>()=>{const{value:t,onChange:n,filterSearch:o,tablePrefixCls:r,locale:i}=e;return o?Sr("div",{class:`${r}-filter-dropdown-search`},[Sr(Gz,{placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,class:`${r}-filter-dropdown-search-input`},{prefix:()=>Sr(sy,null,null)})]):null}});var ZX=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const XX=Ln({compatConfig:{MODE:3},name:"MotionTreeNode",inheritAttrs:!1,props:fl(fl({},VA),{active:Boolean,motion:Object,motionNodes:{type:Array},onMotionStart:Function,onMotionEnd:Function,motionType:String}),setup(e,t){let{attrs:n,slots:o}=t;const r=wt(!0),i=QA(),l=wt(!1),a=Xr((()=>e.motion?e.motion:Wk())),s=(t,n)=>{var o,r,i,s;"appear"===n?null===(r=null===(o=a.value)||void 0===o?void 0:o.onAfterEnter)||void 0===r||r.call(o,t):"leave"===n&&(null===(s=null===(i=a.value)||void 0===i?void 0:i.onAfterLeave)||void 0===s||s.call(i,t)),l.value||e.onMotionEnd(),l.value=!0};return wn((()=>e.motionNodes),(()=>{e.motionNodes&&"hide"===e.motionType&&r.value&&Vt((()=>{r.value=!1}))}),{immediate:!0,flush:"post"}),Gn((()=>{e.motionNodes&&e.onMotionStart()})),Jn((()=>{e.motionNodes&&s()})),()=>{const{motion:t,motionNodes:l,motionType:c,active:u,eventKey:d}=e,p=ZX(e,["motion","motionNodes","motionType","active","eventKey"]);return l?Sr(ni,hl(hl({},a.value),{},{appear:"show"===c,onAfterAppear:e=>s(e,"appear"),onAfterLeave:e=>s(e,"leave")}),{default:()=>[kn(Sr("div",{class:`${i.value.prefixCls}-treenode-motion`},[l.map((e=>{const t=ZX(e.data,[]),{title:n,key:r,isStart:i,isEnd:l}=e;return delete t.children,Sr(GA,hl(hl({},t),{},{title:n,active:u,data:e.data,key:r,eventKey:r,isStart:i,isEnd:l}),o)}))]),[[yi,r.value]])]}):Sr(GA,hl(hl({class:n.class,style:n.style},p),{},{active:u,eventKey:d}),o)}}});function YX(e,t,n){const o=e.findIndex((e=>e.key===n)),r=e[o+1],i=t.findIndex((e=>e.key===n));if(r){const e=t.findIndex((e=>e.key===r.key));return t.slice(i+1,e)}return t.slice(i+1)}var KX=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const GX={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},UX=()=>{},qX=`RC_TREE_MOTION_${Math.random()}`,JX={key:qX},eY={key:qX,level:0,index:0,pos:"0",node:JX,nodes:[JX]},tY={parent:null,children:[],pos:eY.pos,data:JX,title:null,key:qX,isStart:[],isEnd:[]};function nY(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function oY(e){const{key:t,pos:n}=e;return lR(t,n)}function rY(e){let t=String(e.key),n=e;for(;n.parent;)n=n.parent,t=`${n.key} > ${t}`;return t}const iY=Ln({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:ZA,setup(e,t){let{expose:n,attrs:o}=t;const r=Ot(),i=Ot(),{expandedKeys:l,flattenNodes:a}=FA();n({scrollTo:e=>{r.value.scrollTo(e)},getIndentWidth:()=>i.value.offsetWidth});const s=wt(a.value),c=wt([]),u=Ot(null);function d(){s.value=a.value,c.value=[],u.value=null,e.onListChangeEnd()}const p=QA();wn([()=>l.value.slice(),a],((t,n)=>{let[o,r]=t,[i,l]=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<o?{add:!0,key:r(e,t)}:{add:!1,key:r(t,e)}}(i,o);if(null!==a.key){const{virtual:t,height:n,itemHeight:o}=e;if(a.add){const e=l.findIndex((e=>{let{key:t}=e;return t===a.key})),i=nY(YX(l,r,a.key),t,n,o),d=l.slice();d.splice(e+1,0,tY),s.value=d,c.value=i,u.value="show"}else{const e=r.findIndex((e=>{let{key:t}=e;return t===a.key})),i=nY(YX(r,l,a.key),t,n,o),d=r.slice();d.splice(e+1,0,tY),s.value=d,c.value=i,u.value="hide"}}else l!==r&&(s.value=r)})),wn((()=>p.value.dragging),(e=>{e||d()}));const h=Xr((()=>void 0===e.motion?s.value:a.value)),f=()=>{e.onActiveChange(null)};return()=>{const t=fl(fl({},e),o),{prefixCls:n,selectable:l,checkable:a,disabled:s,motion:p,height:g,itemHeight:m,virtual:v,focusable:b,activeItem:y,focused:O,tabindex:w,onKeydown:x,onFocus:$,onBlur:S,onListChangeStart:C,onListChangeEnd:k}=t,P=KX(t,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return Sr(lr,null,[O&&y&&Sr("span",{style:GX,"aria-live":"assertive"},[rY(y)]),Sr("div",null,[Sr("input",{style:GX,disabled:!1===b||s,tabindex:!1!==b?w:null,onKeydown:x,onFocus:$,onBlur:S,value:"",onChange:UX,"aria-label":"for screen reader"},null)]),Sr("div",{class:`${n}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[Sr("div",{class:`${n}-indent`},[Sr("div",{ref:i,class:`${n}-indent-unit`},null)])]),Sr(Pv,hl(hl({},kd(P,["onActiveChange"])),{},{data:h.value,itemKey:oY,height:g,fullHeight:!1,virtual:v,itemHeight:m,prefixCls:`${n}-list`,ref:r,onVisibleChange:(e,t)=>{const n=new Set(e);t.filter((e=>!n.has(e))).some((e=>oY(e)===qX))&&d()}}),{default:e=>{const{pos:t}=e,n=KX(e.data,[]),{title:o,key:r,isStart:i,isEnd:l}=e,a=lR(r,t);return delete n.key,delete n.children,Sr(XX,hl(hl({},n),{},{eventKey:a,title:o,active:!!y&&r===y.key,data:e.data,isStart:i,isEnd:l,motion:p,motionNodes:r===qX?c.value:null,motionType:u.value,onMotionStart:C,onMotionEnd:d,onMousemove:f}),null)}})])}}}),lY=Ln({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:Jl(XA(),{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 Sr("div",{style:r},null)},allowDrop:()=>!0}),setup(e,t){let{attrs:n,slots:o,expose:r}=t;const i=wt(!1);let l={};const a=wt(),s=wt([]),c=wt([]),u=wt([]),d=wt([]),p=wt([]),h=wt([]),f={},g=it({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),m=wt([]);wn([()=>e.treeData,()=>e.children],(()=>{m.value=void 0!==e.treeData?pt(e.treeData).slice():sR(pt(e.children))}),{immediate:!0,deep:!0});const v=wt({}),b=wt(!1),y=wt(null),O=wt(!1),w=Xr((()=>aR(e.fieldNames))),x=wt();let $=null,S=null,C=null;const k=Xr((()=>({expandedKeysSet:P.value,selectedKeysSet:M.value,loadedKeysSet:T.value,loadingKeysSet:I.value,checkedKeysSet:E.value,halfCheckedKeysSet:A.value,dragOverNodeKey:g.dragOverNodeKey,dropPosition:g.dropPosition,keyEntities:v.value}))),P=Xr((()=>new Set(h.value))),M=Xr((()=>new Set(s.value))),T=Xr((()=>new Set(d.value))),I=Xr((()=>new Set(p.value))),E=Xr((()=>new Set(c.value))),A=Xr((()=>new Set(u.value)));yn((()=>{if(m.value){const e=cR(m.value,{fieldNames:w.value});v.value=fl({[qX]:eY},e.keyEntities)}}));let R=!1;wn([()=>e.expandedKeys,()=>e.autoExpandParent,v],((t,n)=>{let[o,r]=t,[i,l]=n,a=h.value;if(void 0!==e.expandedKeys||R&&r!==l)a=e.autoExpandParent||!R&&e.defaultExpandParent?iR(e.expandedKeys,v.value):e.expandedKeys;else if(!R&&e.defaultExpandAll){const e=fl({},v.value);delete e[qX],a=Object.keys(e).map((t=>e[t].key))}else!R&&e.defaultExpandedKeys&&(a=e.autoExpandParent||e.defaultExpandParent?iR(e.defaultExpandedKeys,v.value):e.defaultExpandedKeys);a&&(h.value=a),R=!0}),{immediate:!0});const D=wt([]);yn((()=>{D.value=function(e,t,n){const{_title:o,key:r,children:i}=aR(n),l=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=eR(s?s.pos:"0",u),p=lR(c[r],d);let h;for(let e=0;e<o.length;e+=1){const t=o[e];if(void 0!==c[t]){h=c[t];break}}const f=fl(fl({},kd(c,[...o,r,i])),{title:h,key:p,parent:s,pos:d,children:null,data:c,isStart:[...s?s.isStart:[],0===u],isEnd:[...s?s.isEnd:[],u===n.length-1]});return a.push(f),!0===t||l.has(p)?f.children=e(c[i]||[],f):f.children=[],f}))}(e),a}(m.value,h.value,w.value)})),yn((()=>{e.selectable&&(void 0!==e.selectedKeys?s.value=oR(e.selectedKeys,e):!R&&e.defaultSelectedKeys&&(s.value=oR(e.defaultSelectedKeys,e)))}));const{maxLevel:j,levelEntities:B}=PR(v);yn((()=>{if(e.checkable){let t;if(void 0!==e.checkedKeys?t=rR(e.checkedKeys)||{}:!R&&e.defaultCheckedKeys?t=rR(e.defaultCheckedKeys)||{}:m.value&&(t=rR(e.checkedKeys)||{checkedKeys:c.value,halfCheckedKeys:u.value}),t){let{checkedKeys:n=[],halfCheckedKeys:o=[]}=t;if(!e.checkStrictly){const e=yR(n,!0,v.value,j.value,B.value);({checkedKeys:n,halfCheckedKeys:o}=e)}c.value=n,u.value=o}}})),yn((()=>{e.loadedKeys&&(d.value=e.loadedKeys)}));const N=()=>{fl(g,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},z=e=>{x.value.scrollTo(e)};wn((()=>e.activeKey),(()=>{void 0!==e.activeKey&&(y.value=e.activeKey)}),{immediate:!0}),wn(y,(e=>{Vt((()=>{null!==e&&z({key:e})}))}),{immediate:!0,flush:"post"});const _=t=>{void 0===e.expandedKeys&&(h.value=t)},L=()=>{null!==g.draggingNodeKey&&fl(g,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),$=null,C=null},Q=(t,n)=>{const{onDragend:o}=e;g.dragOverNodeKey=null,L(),null==o||o({event:t,node:n.eventData}),S=null},H=e=>{Q(e,null),window.removeEventListener("dragend",H)},F=(t,n)=>{const{onDragstart:o}=e,{eventKey:r,eventData:i}=n;S=n,$={x:t.clientX,y:t.clientY};const l=UA(h.value,r);g.draggingNodeKey=r,g.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,v.value),a.value=x.value.getIndentWidth(),_(l),window.addEventListener("dragend",H),o&&o({event:t,node:i})},W=(t,n)=>{const{onDragenter:o,onExpand:r,allowDrop:i,direction:s}=e,{pos:c,eventKey:u}=n;if(C!==u&&(C=u),!S)return void N();const{dropPosition:d,dropLevelOffset:p,dropTargetKey:f,dropContainerKey:m,dropTargetPos:b,dropAllowed:y,dragOverNodeKey:O}=nR(t,S,n,a.value,$,i,D.value,v.value,P.value,s);-1===g.dragChildrenKeys.indexOf(f)&&y?(l||(l={}),Object.keys(l).forEach((e=>{clearTimeout(l[e])})),S.eventKey!==n.eventKey&&(l[c]=window.setTimeout((()=>{if(null===g.draggingNodeKey)return;let e=h.value.slice();const o=v.value[n.eventKey];o&&(o.children||[]).length&&(e=qA(h.value,n.eventKey)),_(e),r&&r(e,{node:n.eventData,expanded:!0,nativeEvent:t})}),800)),S.eventKey!==f||0!==p?(fl(g,{dragOverNodeKey:O,dropPosition:d,dropLevelOffset:p,dropTargetKey:f,dropContainerKey:m,dropTargetPos:b,dropAllowed:y}),o&&o({event:t,node:n.eventData,expandedKeys:h.value})):N()):N()},V=(t,n)=>{const{onDragover:o,allowDrop:r,direction:i}=e;if(!S)return;const{dropPosition:l,dropLevelOffset:s,dropTargetKey:c,dropContainerKey:u,dropAllowed:d,dropTargetPos:p,dragOverNodeKey:h}=nR(t,S,n,a.value,$,r,D.value,v.value,P.value,i);-1===g.dragChildrenKeys.indexOf(c)&&d&&(S.eventKey===c&&0===s?null===g.dropPosition&&null===g.dropLevelOffset&&null===g.dropTargetKey&&null===g.dropContainerKey&&null===g.dropTargetPos&&!1===g.dropAllowed&&null===g.dragOverNodeKey||N():l===g.dropPosition&&s===g.dropLevelOffset&&c===g.dropTargetKey&&u===g.dropContainerKey&&p===g.dropTargetPos&&d===g.dropAllowed&&h===g.dragOverNodeKey||fl(g,{dropPosition:l,dropLevelOffset:s,dropTargetKey:c,dropContainerKey:u,dropTargetPos:p,dropAllowed:d,dragOverNodeKey:h}),o&&o({event:t,node:n.eventData}))},Z=(t,n)=>{C!==n.eventKey||t.currentTarget.contains(t.relatedTarget)||(N(),C=null);const{onDragleave:o}=e;o&&o({event:t,node:n.eventData})},X=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r;const{dragChildrenKeys:i,dropPosition:l,dropTargetKey:a,dropTargetPos:s,dropAllowed:c}=g;if(!c)return;const{onDrop:u}=e;if(g.dragOverNodeKey=null,L(),null===a)return;const d=fl(fl({},uR(a,pt(k.value))),{active:(null===(r=ce.value)||void 0===r?void 0:r.key)===a,data:v.value[a].node});i.indexOf(a);const p=JA(s),h={event:t,node:dR(d),dragNode:S?S.eventData:null,dragNodesKeys:[S.eventKey].concat(i),dropToGap:0!==l,dropPosition:l+Number(p[p.length-1])};o||null==u||u(h),S=null},Y=(e,t)=>{const{expanded:n,key:o}=t,r=D.value.filter((e=>e.key===o))[0],i=dR(fl(fl({},uR(o,k.value)),{data:r.data}));_(n?UA(h.value,o):qA(h.value,o)),ie(e,i)},K=(t,n)=>{const{onClick:o,expandAction:r}=e;"click"===r&&Y(t,n),o&&o(t,n)},G=(t,n)=>{const{onDblclick:o,expandAction:r}=e;"doubleclick"!==r&&"dblclick"!==r||Y(t,n),o&&o(t,n)},U=(t,n)=>{let o=s.value;const{onSelect:r,multiple:i}=e,{selected:l}=n,a=n[w.value.key],c=!l;o=c?i?qA(o,a):[a]:UA(o,a);const u=v.value,d=o.map((e=>{const t=u[e];return t?t.node:null})).filter((e=>e));void 0===e.selectedKeys&&(s.value=o),r&&r(o,{event:"select",selected:c,node:n,selectedNodes:d,nativeEvent:t})},q=(t,n,o)=>{const{checkStrictly:r,onCheck:i}=e,l=n[w.value.key];let a;const s={event:"check",node:n,checked:o,nativeEvent:t},d=v.value;if(r){const t=o?qA(c.value,l):UA(c.value,l);a={checked:t,halfChecked:UA(u.value,l)},s.checkedNodes=t.map((e=>d[e])).filter((e=>e)).map((e=>e.node)),void 0===e.checkedKeys&&(c.value=t)}else{let{checkedKeys:t,halfCheckedKeys:n}=yR([...c.value,l],!0,d,j.value,B.value);if(!o){const e=new Set(t);e.delete(l),({checkedKeys:t,halfCheckedKeys:n}=yR(Array.from(e),{checked:!1,halfCheckedKeys:n},d,j.value,B.value))}a=t,s.checkedNodes=[],s.checkedNodesPositions=[],s.halfCheckedKeys=n,t.forEach((e=>{const t=d[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&&(c.value=t,u.value=n)}i&&i(a,s)},J=t=>{const n=t[w.value.key],o=new Promise(((o,r)=>{const{loadData:i,onLoad:l}=e;if(!i||T.value.has(n)||I.value.has(n))return null;i(t).then((()=>{const r=qA(d.value,n),i=UA(p.value,n);l&&l(r,{event:"load",node:t}),void 0===e.loadedKeys&&(d.value=r),p.value=i,o()})).catch((t=>{const i=UA(p.value,n);if(p.value=i,f[n]=(f[n]||0)+1,f[n]>=10){const t=qA(d.value,n);void 0===e.loadedKeys&&(d.value=t),o()}r(t)})),p.value=qA(p.value,n)}));return o.catch((()=>{})),o},ee=(t,n)=>{const{onMouseenter:o}=e;o&&o({event:t,node:n})},te=(t,n)=>{const{onMouseleave:o}=e;o&&o({event:t,node:n})},ne=(t,n)=>{const{onRightClick:o}=e;o&&(t.preventDefault(),o({event:t,node:n}))},oe=t=>{const{onFocus:n}=e;b.value=!0,n&&n(t)},re=t=>{const{onBlur:n}=e;b.value=!1,se(null),n&&n(t)},ie=(t,n)=>{let o=h.value;const{onExpand:r,loadData:i}=e,{expanded:l}=n,a=n[w.value.key];if(O.value)return;o.indexOf(a);const s=!l;if(o=s?qA(o,a):UA(o,a),_(o),r&&r(o,{node:n,expanded:s,nativeEvent:t}),s&&i){const e=J(n);e&&e.then((()=>{})).catch((e=>{const t=UA(h.value,a);_(t),Promise.reject(e)}))}},le=()=>{O.value=!0},ae=()=>{setTimeout((()=>{O.value=!1}))},se=t=>{const{onActiveChange:n}=e;y.value!==t&&(void 0!==e.activeKey&&(y.value=t),null!==t&&z({key:t}),n&&n(t))},ce=Xr((()=>null===y.value?null:D.value.find((e=>{let{key:t}=e;return t===y.value}))||null)),ue=e=>{let t=D.value.findIndex((e=>{let{key:t}=e;return t===y.value}));-1===t&&e<0&&(t=D.value.length),t=(t+e+D.value.length)%D.value.length;const n=D.value[t];if(n){const{key:e}=n;se(e)}else se(null)},de=Xr((()=>dR(fl(fl({},uR(y.value,k.value)),{data:ce.value.data,active:!0})))),pe=t=>{const{onKeydown:n,checkable:o,selectable:r}=e;switch(t.which){case Tm.UP:ue(-1),t.preventDefault();break;case Tm.DOWN:ue(1),t.preventDefault()}const i=ce.value;if(i&&i.data){const e=!1===i.data.isLeaf||!!(i.data.children||[]).length,n=de.value;switch(t.which){case Tm.LEFT:e&&P.value.has(y.value)?ie({},n):i.parent&&se(i.parent.key),t.preventDefault();break;case Tm.RIGHT:e&&!P.value.has(y.value)?ie({},n):i.children&&i.children.length&&se(i.children[0].key),t.preventDefault();break;case Tm.ENTER:case Tm.SPACE:!o||n.disabled||!1===n.checkable||n.disableCheckbox?o||!r||n.disabled||!1===n.selectable||U({},n):q({},n,!E.value.has(y.value))}}n&&n(t)};return r({onNodeExpand:ie,scrollTo:z,onKeydown:pe,selectedKeys:Xr((()=>s.value)),checkedKeys:Xr((()=>c.value)),halfCheckedKeys:Xr((()=>u.value)),loadedKeys:Xr((()=>d.value)),loadingKeys:Xr((()=>p.value)),expandedKeys:Xr((()=>h.value))}),eo((()=>{window.removeEventListener("dragend",H),i.value=!0})),Eo(HA,{expandedKeys:h,selectedKeys:s,loadedKeys:d,loadingKeys:p,checkedKeys:c,halfCheckedKeys:u,expandedKeysSet:P,selectedKeysSet:M,loadedKeysSet:T,loadingKeysSet:I,checkedKeysSet:E,halfCheckedKeysSet:A,flattenNodes:D}),()=>{const{draggingNodeKey:t,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:l,dropPosition:s,dragOverNodeKey:c}=g,{prefixCls:u,showLine:d,focusable:p,tabindex:h=0,selectable:f,showIcon:m,icon:O=o.icon,switcherIcon:w,draggable:$,checkable:S,checkStrictly:C,disabled:k,motion:P,loadData:M,filterTreeNode:T,height:I,itemHeight:E,virtual:A,dropIndicatorRender:R,onContextmenu:D,onScroll:j,direction:B,rootClassName:N,rootStyle:z}=e,{class:_,style:L}=n,H=Lm(fl(fl({},e),n),{aria:!0,data:!0});let Y;return Y=!!$&&("object"==typeof $?$:"function"==typeof $?{nodeDraggable:$}:{}),Sr(LA,{value:{prefixCls:u,selectable:f,showIcon:m,icon:O,switcherIcon:w,draggable:Y,draggingNodeKey:t,checkable:S,customCheckable:o.checkable,checkStrictly:C,disabled:k,keyEntities:v.value,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:l,dropPosition:s,dragOverNodeKey:c,dragging:null!==t,indent:a.value,direction:B,dropIndicatorRender:R,loadData:M,filterTreeNode:T,onNodeClick:K,onNodeDoubleClick:G,onNodeExpand:ie,onNodeSelect:U,onNodeCheck:q,onNodeLoad:J,onNodeMouseEnter:ee,onNodeMouseLeave:te,onNodeContextMenu:ne,onNodeDragStart:F,onNodeDragEnter:W,onNodeDragOver:V,onNodeDragLeave:Z,onNodeDragEnd:Q,onNodeDrop:X,slots:o}},{default:()=>[Sr("div",{role:"tree",class:Tl(u,_,N,{[`${u}-show-line`]:d,[`${u}-focused`]:b.value,[`${u}-active-focused`]:null!==y.value}),style:z},[Sr(iY,hl({ref:x,prefixCls:u,style:L,disabled:k,selectable:f,checkable:!!S,motion:P,height:I,itemHeight:E,virtual:A,focusable:p,focused:b.value,tabindex:h,activeItem:ce.value,onFocus:oe,onBlur:re,onKeydown:pe,onActiveChange:se,onListChangeStart:le,onListChangeEnd:ae,onContextmenu:D,onScroll:j},H),null)])]})}}}),aY={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 sY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){cY(e,t,n[t])}))}return e}function cY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uY=function(e,t){var n=sY({},e,t.attrs);return Sr(Rb,sY({},n,{icon:aY}),null)};uY.displayName="FileOutlined",uY.inheritAttrs=!1;const dY=uY,pY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};function hY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){fY(e,t,n[t])}))}return e}function fY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gY=function(e,t){var n=hY({},e,t.attrs);return Sr(Rb,hY({},n,{icon:pY}),null)};gY.displayName="MinusSquareOutlined",gY.inheritAttrs=!1;const mY=gY,vY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};function bY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){yY(e,t,n[t])}))}return e}function yY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OY=function(e,t){var n=bY({},e,t.attrs);return Sr(Rb,bY({},n,{icon:vY}),null)};OY.displayName="PlusSquareOutlined",OY.inheritAttrs=!1;const wY=OY,xY={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:"filled"};function $Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){SY(e,t,n[t])}))}return e}function SY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CY=function(e,t){var n=$Y({},e,t.attrs);return Sr(Rb,$Y({},n,{icon:xY}),null)};CY.displayName="CaretDownFilled",CY.inheritAttrs=!1;const kY=CY;function PY(e,t,n,o,r){const{isLeaf:i,expanded:l,loading:a}=n;let s,c=t;if(a)return Sr(Hb,{class:`${e}-switcher-loading-icon`},null);r&&"object"==typeof r&&(s=r.showLeafIcon);let u=null;const d=`${e}-switcher-icon`;return i?r?s&&o?o(n):(u="object"!=typeof r||s?Sr(dY,{class:`${e}-switcher-line-icon`},null):Sr("span",{class:`${e}-switcher-leaf-line`},null),u):null:(u=Sr(kY,{class:d},null),r&&(u=Sr(l?mY:wY,{class:`${e}-switcher-line-icon`},null)),"function"==typeof t?c=t(fl(fl({},n),{defaultIcon:u,switcherCls:d})):ha(c)&&(c=Cr(c,{class:d})),c||u)}function MY(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:r,direction:i="ltr"}=e,l="ltr"===i?"left":"right",a={[l]:-n*r+4+"px",["ltr"===i?"right":"left"]:0};switch(t){case-1:a.top="-3px";break;case 1:a.bottom="-3px";break;default:a.bottom="-3px",a[l]=`${r+4}px`}return Sr("div",{style:a,class:`${o}-drop-indicator`},null)}const TY=new Xc("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),IY=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),EY=(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:'""'}}}),AY=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:i}=t,l=(i-t.fontSizeLG)/2,a=t.paddingXS;return{[n]:fl(fl({},Yu(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)`]:fl({},Uu(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:TY,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`]:fl({},Uu(t)),[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:i,lineHeight:`${i}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:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:fl(fl({},IY(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${i}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:i/2,bottom:-r,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:i/2*.8,height:i/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:a,marginBlockStart:l},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${i}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:i,height:i,lineHeight:`${i}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:fl({lineHeight:`${i}px`,userSelect:"none"},EY(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:i/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:i/2+"px !important"}}}}})}},RY=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"}}}}}},DY=(e,t)=>{const n=`.${e}`,o=nd(t,{treeCls:n,treeNodeCls:`${n}-treenode`,treeNodePadding:t.paddingXS/2,treeTitleHeight:t.controlHeightSM});return[AY(e,o),RY(o)]},jY=Ju("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:Oj(`${n}-checkbox`,e)},DY(n,e),Cx(e)]})),BY=()=>{const e=XA();return fl(fl({},e),{showLine:Aa([Boolean,Object]),multiple:Pa(),autoExpandParent:Pa(),checkStrictly:Pa(),checkable:Pa(),disabled:Pa(),defaultExpandAll:Pa(),defaultExpandParent:Pa(),defaultExpandedKeys:Ia(),expandedKeys:Ia(),checkedKeys:Aa([Array,Object]),defaultCheckedKeys:Ia(),selectedKeys:Ia(),defaultSelectedKeys:Ia(),selectable:Pa(),loadedKeys:Ia(),draggable:Pa(),showIcon:Pa(),icon:Ma(),switcherIcon:xp.any,prefixCls:String,replaceFields:ka(),blockNode:Pa(),openAnimation:xp.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":Ma(),"onUpdate:checkedKeys":Ma(),"onUpdate:expandedKeys":Ma()})},NY=Ln({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:Jl(BY(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:n,expose:o,emit:r,slots:i}=t;void 0===e.treeData&&i.default;const{prefixCls:l,direction:a,virtual:s}=Cd("tree",e),[c,u]=jY(l),d=Ot();o({treeRef:d,onNodeExpand:function(){var e;null===(e=d.value)||void 0===e||e.onNodeExpand(...arguments)},scrollTo:e=>{var t;null===(t=d.value)||void 0===t||t.scrollTo(e)},selectedKeys:Xr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.selectedKeys})),checkedKeys:Xr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.checkedKeys})),halfCheckedKeys:Xr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.halfCheckedKeys})),loadedKeys:Xr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.loadedKeys})),loadingKeys:Xr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.loadingKeys})),expandedKeys:Xr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.expandedKeys}))}),yn((()=>{Sp(void 0===e.replaceFields,"Tree","`replaceFields` is deprecated, please use fieldNames instead")}));const p=(e,t)=>{r("update:checkedKeys",e),r("check",e,t)},h=(e,t)=>{r("update:expandedKeys",e),r("expand",e,t)},f=(e,t)=>{r("update:selectedKeys",e),r("select",e,t)};return()=>{const{showIcon:t,showLine:o,switcherIcon:r=i.switcherIcon,icon:g=i.icon,blockNode:m,checkable:v,selectable:b,fieldNames:y=e.replaceFields,motion:O=e.openAnimation,itemHeight:w=28,onDoubleclick:x,onDblclick:$}=e,S=fl(fl(fl({},n),kd(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:Boolean(o),dropIndicatorRender:MY,fieldNames:y,icon:g,itemHeight:w}),C=i.default?da(i.default()):void 0;return c(Sr(lY,hl(hl({},S),{},{virtual:s.value,motion:O,ref:d,prefixCls:l.value,class:Tl({[`${l.value}-icon-hide`]:!t,[`${l.value}-block-node`]:m,[`${l.value}-unselectable`]:!b,[`${l.value}-rtl`]:"rtl"===a.value},n.class,u.value),direction:a.value,checkable:v,selectable:b,switcherIcon:e=>PY(l.value,r,e,i.leafIcon,o),onCheck:p,onExpand:h,onSelect:f,onDblclick:$||x,children:C}),fl(fl({},i),{checkable:()=>Sr("span",{class:`${l.value}-checkbox-inner`},null)})))}}}),zY={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 _Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){LY(e,t,n[t])}))}return e}function LY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QY=function(e,t){var n=_Y({},e,t.attrs);return Sr(Rb,_Y({},n,{icon:zY}),null)};QY.displayName="FolderOpenOutlined",QY.inheritAttrs=!1;const HY=QY,FY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};function WY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){VY(e,t,n[t])}))}return e}function VY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ZY=function(e,t){var n=WY({},e,t.attrs);return Sr(Rb,WY({},n,{icon:FY}),null)};ZY.displayName="FolderOutlined",ZY.inheritAttrs=!1;const XY=ZY;var YY,KY;function GY(e,t,n){e.forEach((function(e){const o=e[t.key],r=e[t.children];!1!==n(o,e)&&GY(r||[],t,n)}))}function UY(e){let{treeData:t,expandedKeys:n,startKey:o,endKey:r,fieldNames:i={title:"title",key:"key",children:"children"}}=e;const l=[];let a=YY.None;return o&&o===r?[o]:o&&r?(GY(t,i,(e=>{if(a===YY.End)return!1;if(function(e){return e===o||e===r}(e)){if(l.push(e),a===YY.None)a=YY.Start;else if(a===YY.Start)return a=YY.End,!1}else a===YY.Start&&l.push(e);return n.includes(e)})),l):[]}function qY(e,t,n){const o=[...t],r=[];return GY(e,n,((e,t)=>{const n=o.indexOf(e);return-1!==n&&(r.push(t),o.splice(n,1)),!!o.length})),r}function JY(e){const{isLeaf:t,expanded:n}=e;return Sr(t?dY:n?HY:XY,null,null)}(KY=YY||(YY={}))[KY.None=0]="None",KY[KY.Start=1]="Start",KY[KY.End=2]="End";const eK=Ln({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:Jl(fl(fl({},BY()),{expandAction:Aa([Boolean,String])}),{showIcon:!0,expandAction:"click"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:i}=t;var l;const a=Ot(e.treeData||sR(da(null===(l=o.default)||void 0===l?void 0:l.call(o))));wn((()=>e.treeData),(()=>{a.value=e.treeData})),qn((()=>{Vt((()=>{var t;void 0===e.treeData&&o.default&&(a.value=sR(da(null===(t=o.default)||void 0===t?void 0:t.call(o))))}))}));const s=Ot(),c=Ot(),u=Xr((()=>aR(e.fieldNames))),d=Ot();i({scrollTo:e=>{var t;null===(t=d.value)||void 0===t||t.scrollTo(e)},selectedKeys:Xr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.selectedKeys})),checkedKeys:Xr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.checkedKeys})),halfCheckedKeys:Xr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.halfCheckedKeys})),loadedKeys:Xr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.loadedKeys})),loadingKeys:Xr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.loadingKeys})),expandedKeys:Xr((()=>{var e;return null===(e=d.value)||void 0===e?void 0:e.expandedKeys}))});const p=Ot(e.selectedKeys||e.defaultSelectedKeys||[]),h=Ot((()=>{const{keyEntities:t}=cR(a.value,{fieldNames:u.value});let n;return n=e.defaultExpandAll?Object.keys(t):e.defaultExpandParent?iR(e.expandedKeys||e.defaultExpandedKeys||[],t):e.expandedKeys||e.defaultExpandedKeys,n})());wn((()=>e.selectedKeys),(()=>{void 0!==e.selectedKeys&&(p.value=e.selectedKeys)}),{immediate:!0}),wn((()=>e.expandedKeys),(()=>{void 0!==e.expandedKeys&&(h.value=e.expandedKeys)}),{immediate:!0});const f=hw(((e,t)=>{const{isLeaf:n}=t;n||e.shiftKey||e.metaKey||e.ctrlKey||d.value.onNodeExpand(e,t)}),200,{leading:!0}),g=(t,n)=>{void 0===e.expandedKeys&&(h.value=t),r("update:expandedKeys",t),r("expand",t,n)},m=(t,n)=>{const{expandAction:o}=e;"click"===o&&f(t,n),r("click",t,n)},v=(t,n)=>{const{expandAction:o}=e;"dblclick"!==o&&"doubleclick"!==o||f(t,n),r("doubleclick",t,n),r("dblclick",t,n)},b=(t,n)=>{const{multiple:o}=e,{node:i,nativeEvent:l}=n,d=i[u.value.key],f=fl(fl({},n),{selected:!0}),g=(null==l?void 0:l.ctrlKey)||(null==l?void 0:l.metaKey),m=null==l?void 0:l.shiftKey;let v;o&&g?(v=t,s.value=d,c.value=v,f.selectedNodes=qY(a.value,v,u.value)):o&&m?(v=Array.from(new Set([...c.value||[],...UY({treeData:a.value,expandedKeys:h.value,startKey:d,endKey:s.value,fieldNames:u.value})])),f.selectedNodes=qY(a.value,v,u.value)):(v=[d],s.value=d,c.value=v,f.selectedNodes=qY(a.value,v,u.value)),r("update:selectedKeys",v),r("select",v,f),void 0===e.selectedKeys&&(p.value=v)},y=(e,t)=>{r("update:checkedKeys",e),r("check",e,t)},{prefixCls:O,direction:w}=Cd("tree",e);return()=>{const t=Tl(`${O.value}-directory`,{[`${O.value}-directory-rtl`]:"rtl"===w.value},n.class),{icon:r=o.icon,blockNode:i=!0}=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["icon","blockNode"]);return Sr(NY,hl(hl(hl({},n),{},{icon:r||JY,ref:d,blockNode:i},l),{},{prefixCls:O.value,class:t,expandedKeys:h.value,selectedKeys:p.value,onSelect:b,onClick:m,onDblclick:v,onExpand:g,onCheck:y}),o)}}}),tK=GA,nK=fl(NY,{DirectoryTree:eK,TreeNode:tK,install:e=>(e.component(NY.name,NY),e.component(tK.name,tK),e.component(eK.name,eK),e)});function oK(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=new Set;return function e(t,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const l=o.has(t);if(As(!l,"Warning: There may be circular references"),l)return!1;if(t===r)return!0;if(n&&i>1)return!1;o.add(t);const a=i+1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(let n=0;n<t.length;n++)if(!e(t[n],r[n],a))return!1;return!0}if(t&&r&&"object"==typeof t&&"object"==typeof r){const n=Object.keys(t);return n.length===Object.keys(r).length&&n.every((n=>e(t[n],r[n],a)))}return!1}(e,t)}const{SubMenu:rK,Item:iK}=rP;function lK(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function aK(e){let{filters:t,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:i,filterSearch:l}=e;return t.map(((e,t)=>{const a=String(e.value);if(e.children)return Sr(rK,{key:a||t,title:e.text,popupClassName:`${n}-dropdown-submenu`},{default:()=>[aK({filters:e.children,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:i,filterSearch:l})]});const s=r?Tj:IT,c=Sr(iK,{key:void 0!==e.value?a:t},{default:()=>[Sr(s,{checked:o.includes(a)},null),Sr("span",null,[e.text])]});return i.trim()?"function"==typeof l?l(i,e)?c:void 0:lK(i,e.text)?c:void 0:c}))}const sK=Ln({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup(e,t){let{slots:n}=t;const o=gZ(),r=Xr((()=>{var t;return null!==(t=e.filterMode)&&void 0!==t?t:"menu"})),i=Xr((()=>{var t;return null!==(t=e.filterSearch)&&void 0!==t&&t})),l=Xr((()=>e.column.filterDropdownOpen||e.column.filterDropdownVisible)),a=Xr((()=>e.column.onFilterDropdownOpenChange||e.column.onFilterDropdownVisibleChange)),s=wt(!1),c=Xr((()=>{var t;return!(!e.filterState||!(null===(t=e.filterState.filteredKeys)||void 0===t?void 0:t.length)&&!e.filterState.forceFiltered)})),u=Xr((()=>{var t;return dK(null===(t=e.column)||void 0===t?void 0:t.filters)})),d=Xr((()=>{const{filterDropdown:t,slots:n={},customFilterDropdown:r}=e.column;return t||n.filterDropdown&&o.value[n.filterDropdown]||r&&o.value.customFilterDropdown})),p=Xr((()=>{const{filterIcon:t,slots:n={}}=e.column;return t||n.filterIcon&&o.value[n.filterIcon]||o.value.customFilterIcon})),h=e=>{var t;s.value=e,null===(t=a.value)||void 0===t||t.call(a,e)},f=Xr((()=>"boolean"==typeof l.value?l.value:s.value)),g=Xr((()=>{var t;return null===(t=e.filterState)||void 0===t?void 0:t.filteredKeys})),m=wt([]),v=e=>{let{selectedKeys:t}=e;m.value=t},b=(t,n)=>{let{node:o,checked:r}=n;e.filterMultiple?v({selectedKeys:t}):v({selectedKeys:r&&o.key?[o.key]:[]})};wn(g,(()=>{s.value&&v({selectedKeys:g.value||[]})}),{immediate:!0});const y=wt([]),O=wt(),w=e=>{O.value=setTimeout((()=>{y.value=e}))},x=()=>{clearTimeout(O.value)};Jn((()=>{clearTimeout(O.value)}));const $=wt(""),S=e=>{const{value:t}=e.target;$.value=t};wn(s,(()=>{s.value||($.value="")}));const C=t=>{const{column:n,columnKey:o,filterState:r}=e,i=t&&t.length?t:null;return null!==i||r&&r.filteredKeys?oK(i,null==r?void 0:r.filteredKeys,!0)?null:void e.triggerFilter({column:n,key:o,filteredKeys:i}):null},k=()=>{h(!1),C(m.value)},P=function(){let{confirm:t,closeDropdown:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};t&&C([]),n&&h(!1),$.value="",e.column.filterResetToDefaultFilteredValue?m.value=(e.column.defaultFilteredValue||[]).map((e=>String(e))):m.value=[]},M=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&h(!1),C(m.value)},T=e=>{e&&void 0!==g.value&&(m.value=g.value||[]),h(e),e||d.value||k()},{direction:I}=Cd("",e),E=e=>{if(e.target.checked){const e=u.value;m.value=e}else m.value=[]},A=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=A({filters:e.children})),o}))},R=e=>{var t;return fl(fl({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>R(e))))||[]})},D=Xr((()=>A({filters:e.column.filters}))),j=Xr((()=>{return Tl({[`${e.dropdownPrefixCls}-menu-without-submenu`]:(t=e.column.filters||[],!t.some((e=>{let{children:t}=e;return t&&t.length>0})))});var t})),B=()=>{const t=m.value,{column:n,locale:o,tablePrefixCls:l,filterMultiple:a,dropdownPrefixCls:s,getPopupContainer:c,prefixCls:d}=e;return 0===(n.filters||[]).length?Sr(yd,{image:yd.PRESENTED_IMAGE_SIMPLE,description:o.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):"tree"===r.value?Sr(lr,null,[Sr(VX,{filterSearch:i.value,value:$.value,onChange:S,tablePrefixCls:l,locale:o},null),Sr("div",{class:`${l}-filter-dropdown-tree`},[a?Sr(Tj,{class:`${l}-filter-dropdown-checkall`,onChange:E,checked:t.length===u.value.length,indeterminate:t.length>0&&t.length<u.value.length},{default:()=>[o.filterCheckall]}):null,Sr(nK,{checkable:!0,selectable:!1,blockNode:!0,multiple:a,checkStrictly:!a,class:`${s}-menu`,onCheck:b,checkedKeys:t,selectedKeys:t,showIcon:!1,treeData:D.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:$.value.trim()?e=>"function"==typeof i.value?i.value($.value,R(e)):lK($.value,e.title):void 0},null)])]):Sr(lr,null,[Sr(VX,{filterSearch:i.value,value:$.value,onChange:S,tablePrefixCls:l,locale:o},null),Sr(rP,{multiple:a,prefixCls:`${s}-menu`,class:j.value,onClick:x,onSelect:v,onDeselect:v,selectedKeys:t,getPopupContainer:c,openKeys:y.value,onOpenChange:w},{default:()=>aK({filters:n.filters||[],filterSearch:i.value,prefixCls:d,filteredKeys:m.value,filterMultiple:a,searchValue:$.value})})])},N=Xr((()=>{const t=m.value;return e.column.filterResetToDefaultFilteredValue?oK((e.column.defaultFilteredValue||[]).map((e=>String(e))),t,!0):0===t.length}));return()=>{var t;const{tablePrefixCls:o,prefixCls:r,column:i,dropdownPrefixCls:l,locale:a,getPopupContainer:s}=e;let u;u="function"==typeof d.value?d.value({prefixCls:`${l}-custom`,setSelectedKeys:e=>v({selectedKeys:e}),selectedKeys:m.value,confirm:M,clearFilters:P,filters:i.filters,visible:f.value,column:i.__originColumn__,close:()=>{h(!1)}}):d.value?d.value:Sr(lr,null,[B(),Sr("div",{class:`${r}-dropdown-btns`},[Sr(zC,{type:"link",size:"small",disabled:N.value,onClick:()=>P()},{default:()=>[a.filterReset]}),Sr(zC,{type:"primary",size:"small",onClick:k},{default:()=>[a.filterConfirm]})])]);const g=Sr(WX,{class:`${r}-dropdown`},{default:()=>[u]});let b;return b="function"==typeof p.value?p.value({filtered:c.value,column:i.__originColumn__}):p.value?p.value:Sr(HX,null,null),Sr("div",{class:`${r}-column`},[Sr("span",{class:`${o}-column-title`},[null===(t=n.default)||void 0===t?void 0:t.call(n)]),Sr(ak,{overlay:g,trigger:["click"],open:f.value,onOpenChange:T,getPopupContainer:s,placement:"rtl"===I.value?"bottomLeft":"bottomRight"},{default:()=>[Sr("span",{role:"button",tabindex:-1,class:Tl(`${r}-trigger`,{active:c.value}),onClick:e=>{e.stopPropagation()}},[b])]})])}}});function cK(e,t,n){let o=[];return(e||[]).forEach(((e,r)=>{var i,l;const a=CX(r,n),s=e.filterDropdown||(null===(i=null==e?void 0:e.slots)||void 0===i?void 0:i.filterDropdown)||e.customFilterDropdown;if(e.filters||s||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;s||(t=null!==(l=null==t?void 0:t.map(String))&&void 0!==l?l:t),o.push({column:e,key:SX(e,a),filteredKeys:t,forceFiltered:e.filtered})}else o.push({column:e,key:SX(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(o=[...o,...cK(e.children,t,a)])})),o}function uK(e,t,n,o,r,i,l,a){return n.map(((n,s)=>{var c;const u=CX(s,a),{filterMultiple:d=!0,filterMode:p,filterSearch:h}=n;let f=n;const g=n.filterDropdown||(null===(c=null==n?void 0:n.slots)||void 0===c?void 0:c.filterDropdown)||n.customFilterDropdown;if(f.filters||g){const a=SX(f,u),s=o.find((e=>{let{key:t}=e;return a===t}));f=fl(fl({},f),{title:o=>Sr(sK,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:f,columnKey:a,filterState:s,filterMultiple:d,filterMode:p,filterSearch:h,triggerFilter:i,locale:r,getPopupContainer:l},{default:()=>[kX(n.title,o)]})})}return"children"in f&&(f=fl(fl({},f),{children:uK(e,t,f.children,o,r,i,l,u)})),f}))}function dK(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:o}=e;t.push(n),o&&(t=[...t,...dK(o)])})),t}function pK(e){const t={};return e.forEach((e=>{let{key:n,filteredKeys:o,column:r}=e;var i;const l=r.filterDropdown||(null===(i=null==r?void 0:r.slots)||void 0===i?void 0:i.filterDropdown)||r.customFilterDropdown,{filters:a}=r;if(l)t[n]=o||null;else if(Array.isArray(o)){const e=dK(a);t[n]=e.filter((e=>o.includes(String(e))))}else t[n]=null})),t}function hK(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=dK(o),i=r.findIndex((e=>String(e)===String(t))),l=-1!==i?r[i]:t;return n(l,e)})))):e}),e)}function fK(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:o,locale:r,onFilterChange:i,getPopupContainer:l}=e;const[a,s]=Hv(cK(o.value,!0)),c=Xr((()=>{const e=cK(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)=>SX(e,CX(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 fl(fl({},t),{column:fl(fl({},t.column),n),forceFiltered:n.filtered})}))}return Sp(n,"Table","Columns should all contain `filteredValue` or not contain `filteredValue`."),e})),u=Xr((()=>pK(c.value))),d=e=>{const t=c.value.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),s(t),i(pK(t),t)};return[e=>uK(t.value,n.value,e,c.value,r.value,d,l.value),c,u]}function gK(e,t){return e.map((e=>{const n=fl({},e);return n.title=kX(n.title,t),"children"in n&&(n.children=gK(n.children,t)),n}))}function mK(e){return[t=>gK(t,e.value)]}function vK(e){return function(t){let{prefixCls:n,onExpand:o,record:r,expanded:i,expandable:l}=t;const a=`${n}-row-expand-icon`;return Sr("button",{type:"button",onClick:e=>{o(r,e),e.stopPropagation()},class:Tl(a,{[`${a}-spaced`]:!l,[`${a}-expanded`]:l&&i,[`${a}-collapsed`]:l&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i},null)}}function bK(e,t){const n=t.value;return e.map((e=>{var o;if(e===aX||e===BZ)return e;const r=fl({},e),{slots:i={}}=r;return r.__originColumn__=e,Sp(!("slots"in r),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(i).forEach((e=>{const t=i[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=lo(t.value,"headerCell",{title:e.title,column:e},(()=>[e.title]))),"children"in r&&Array.isArray(r.children)&&(r.children=bK(r.children,t)),r}))}function yK(e){return[t=>bK(t,e)]}const OK=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`]:fl(fl(fl({[`> ${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}`}}}}},wK=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:fl(fl({},Xu),{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"}})}}},xK=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}},$K=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:o,motionDurationSlow:r,lineWidth:i,paddingXS:l,lineType:a,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,fontSize:p,fontSizeSM:h,lineHeight:f,tablePaddingVertical:g,tablePaddingHorizontal:m,tableExpandedRowBg:v,paddingXXS:b}=e,y=o/2-i,O=2*y+3*i,w=`${i}px ${a} ${s}`,x=b-i;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`]:fl(fl({},Wu(e)),{position:"relative",float:"left",boxSizing:"border-box",width:O,height:O,padding:0,color:"inherit",lineHeight:`${O}px`,background:c,border:w,borderRadius:d,transform:`scale(${o/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:x,insetInlineStart:x,height:i},"&::after":{top:x,bottom:x,insetInlineStart:y,width:i,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*i)/2-Math.ceil((1.4*h-3*i)/2),marginInlineEnd:l},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:v}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${g}px -${m}px`,padding:`${g}px ${m}px`}}}},SK=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:i,paddingXXS:l,paddingXS:a,colorText:s,lineWidth:c,lineType:u,tableBorderColor:d,tableHeaderIconColor:p,fontSizeSM:h,tablePaddingHorizontal:f,borderRadius:g,motionDurationSlow:m,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:O,tableFilterDropdownBg:w,tableFilterDropdownHeight:x,controlItemBgHover:$,controlItemBgActive:S,boxShadowSecondary:C}=e,k=`${n}-dropdown`,P=`${t}-filter-dropdown`,M=`${n}-tree`,T=`${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:-l,marginInline:`${l}px ${-f/2}px`,padding:`0 ${l}px`,color:p,fontSize:h,borderRadius:g,cursor:"pointer",transition:`all ${m}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[P]:fl(fl({},Yu(e)),{minWidth:r,backgroundColor:w,borderRadius:g,boxShadow:C,[`${k}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${a}px 0`,color:O,fontSize:h,textAlign:"center",content:'"Not Found"'}},[`${P}-tree`]:{paddingBlock:`${a}px 0`,paddingInline:a,[M]:{padding:0},[`${M}-treenode ${M}-node-content-wrapper:hover`]:{backgroundColor:$},[`${M}-treenode-checkbox-checked ${M}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:S}}},[`${P}-search`]:{padding:a,borderBottom:T,"&-input":{input:{minWidth:i},[o]:{color:O}}},[`${P}-checkall`]:{width:"100%",marginBottom:l,marginInlineStart:l},[`${P}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${a-c}px ${a}px`,overflow:"hidden",backgroundColor:"inherit",borderTop:T}})}},{[`${n}-dropdown ${P}, ${P}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:a,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},CK=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:i,tableBg:l,zIndexTableSticky:a}=e;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:l},[`\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}`}}}}},kK=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"}}}}},PK=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`}}}}},MK=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)"}}}}},TK=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,paddingXS:i,tableHeaderIconColor:l,tableHeaderIconColorHover:a}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:e.tableSelectionColumnWidth},[`${t}-bordered ${t}-selection-col`]:{width:e.tableSelectionColumnWidth+2*i},[`\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:l,fontSize:r,verticalAlign:"baseline","&:hover":{color:a}}}}}},IK=e=>{const{componentCls:t}=e,n=(n,o,r,i)=>({[`${t}${t}-${n}`]:{fontSize:i,[`\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`]:fl(fl({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},EK=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}}}},AK=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,tableHeaderIconColor:r,tableHeaderIconColorHover:i}=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:i}}}},RK=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:i,tableScrollBg:l,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:`${i}px !important`,zIndex:a,display:"flex",alignItems:"center",background:l,borderTop:s,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:o,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}},DK=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}`}}}},jK=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,lineWidth:i,lineType:l,tableBorderColor:a,tableFontSize:s,tableBg:c,tableRadius:u,tableHeaderTextColor:d,motionDurationMid:p,tableHeaderBg:h,tableHeaderCellSplitColor:f,tableRowHoverBg:g,tableSelectedRowBg:m,tableSelectedRowHoverBg:v,tableFooterTextColor:b,tableFooterBg:y,paddingContentVerticalLG:O}=e,w=`${i}px ${l} ${a}`;return{[`${t}-wrapper`]:fl(fl({clear:"both",maxWidth:"100%"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:fl(fl({},Yu(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:`${O}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:h,borderBottom:w,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:w,borderBottom:"transparent"},"&:last-child > td":{borderBottom:w},[`&:first-child > td,\n &${t}-measure-row + tr > td`]:{borderTop:"none",borderTopColor:"transparent"}}}},[`${t}${t}-bordered`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderBottom:w}}}},[`${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:g},[`&${t}-row-selected`]:{"> td":{background:m},"&:hover > td":{background:v}}}},[`${t}-footer`]:{padding:`${o}px ${r}px`,color:b,background:y}})}},BK=Ju("Table",(e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:o,colorTextHeading:r,colorSplit:i,colorBorderSecondary:l,fontSize:a,padding:s,paddingXS:c,paddingSM:u,controlHeight:d,colorFillAlter:p,colorIcon:h,colorIconHover:f,opacityLoading:g,colorBgContainer:m,borderRadiusLG:v,colorFillContent:b,colorFillSecondary:y,controlInteractiveSize:O}=e,w=new wu(h),x=new wu(f),$=t,S=new wu(y).onBackground(m).toHexString(),C=new wu(b).onBackground(m).toHexString(),k=new wu(p).onBackground(m).toHexString(),P=nd(e,{tableFontSize:a,tableBg:m,tableRadius:v,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:u,tablePaddingHorizontalMiddle:c,tablePaddingVerticalSmall:c,tablePaddingHorizontalSmall:c,tableBorderColor:l,tableHeaderTextColor:r,tableHeaderBg:k,tableFooterTextColor:r,tableFooterBg:k,tableHeaderCellSplitColor:l,tableHeaderSortBg:S,tableHeaderSortHoverBg:C,tableHeaderIconColor:w.clone().setAlpha(w.getAlpha()*g).toRgbString(),tableHeaderIconColorHover:x.clone().setAlpha(x.getAlpha()*g).toRgbString(),tableBodySortBg:k,tableFixedHeaderSortActiveBg:S,tableHeaderFilterActiveBg:b,tableFilterDropdownBg:m,tableRowHoverBg:k,tableSelectedRowBg:$,tableSelectedRowHoverBg:n,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:a,tableFontSizeSmall:a,tableSelectionColumnWidth:d,tableExpandIconBg:m,tableExpandColumnWidth:O+2*e.padding,tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollBg:i});return[jK(P),kK(P),DK(P),AK(P),SK(P),OK(P),PK(P),$K(P),DK(P),xK(P),TK(P),CK(P),RK(P),wK(P),IK(P),EK(P),MK(P)]})),NK=[],zK=()=>({prefixCls:Ea(),columns:Ia(),rowKey:Aa([String,Function]),tableLayout:Ea(),rowClassName:Aa([String,Function]),title:Ma(),footer:Ma(),id:Ea(),showHeader:Pa(),components:ka(),customRow:Ma(),customHeaderRow:Ma(),direction:Ea(),expandFixed:Aa([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:Ia(),defaultExpandedRowKeys:Ia(),expandedRowRender:Ma(),expandRowByClick:Pa(),expandIcon:Ma(),onExpand:Ma(),onExpandedRowsChange:Ma(),"onUpdate:expandedRowKeys":Ma(),defaultExpandAllRows:Pa(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:Pa(),expandedRowClassName:Ma(),childrenColumnName:Ea(),rowExpandable:Ma(),sticky:Aa([Boolean,Object]),dropdownPrefixCls:String,dataSource:Ia(),pagination:Aa([Boolean,Object]),loading:Aa([Boolean,Object]),size:Ea(),bordered:Pa(),locale:ka(),onChange:Ma(),onResizeColumn:Ma(),rowSelection:ka(),getPopupContainer:Ma(),scroll:ka(),sortDirections:Ia(),showSorterTooltip:Aa([Boolean,Object],!0),transformCellText:Ma()}),_K=Ln({name:"InternalTable",inheritAttrs:!1,props:Jl(fl(fl({},zK()),{contextSlots:ka()}),{rowKey:"key"}),setup(e,t){let{attrs:n,slots:o,expose:r,emit:i}=t;Sp(!("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=>{Eo(fZ,e)})(Xr((()=>e.contextSlots))),(e=>{Eo(mZ,e)})({onResizeColumn:(e,t)=>{i("resizeColumn",e,t)}});const l=Y$(),a=Xr((()=>{const t=new Set(Object.keys(l.value).filter((e=>l.value[e])));return e.columns.filter((e=>!e.responsive||e.responsive.some((e=>t.has(e)))))})),{size:s,renderEmpty:c,direction:u,prefixCls:d,configProvider:p}=Cd("table",e),[h,f]=BK(d),g=Xr((()=>{var t;return e.transformCellText||(null===(t=p.transformCellText)||void 0===t?void 0:t.value)})),[m]=os("Table",ts.Table,Et(e,"locale")),v=Xr((()=>e.dataSource||NK)),b=Xr((()=>p.getPrefixCls("dropdown",e.dropdownPrefixCls))),y=Xr((()=>e.childrenColumnName||"children")),O=Xr((()=>v.value.some((e=>null==e?void 0:e[y.value]))?"nest":e.expandedRowRender?"row":null)),w=it({body:null}),x=e=>{fl(w,e)},$=Xr((()=>"function"==typeof e.rowKey?e.rowKey:t=>null==t?void 0:t[e.rowKey])),[S]=function(e,t,n){const o=wt({});return wn([e,t,n],(()=>{const r=new Map,i=n.value,l=t.value;!function e(t){t.forEach(((t,n)=>{const o=i(t,n);r.set(o,t),t&&"object"==typeof t&&l in t&&e(t[l]||[])}))}(e.value),o.value={kvMap:r}}),{deep:!0,immediate:!0}),[function(e){return o.value.kvMap.get(e)}]}(v,y,$),C={},k=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{pagination:r,scroll:i,onChange:l}=e,a=fl(fl({},C),t);o&&(C.resetPagination(),a.pagination.current&&(a.pagination.current=1),r&&r.onChange&&r.onChange(1,a.pagination.pageSize)),i&&!1!==i.scrollToFirstRowOnChange&&w.body&&Hd(0,{getContainer:()=>w.body}),null==l||l(a.pagination,a.filters,a.sorter,{currentDataSource:hK(BX(v.value,a.sorterStates,y.value),a.filterStates),action:n})},[P,M,T,I]=NX({prefixCls:d,mergedColumns:a,onSorterChange:(e,t)=>{k({sorter:e,sorterStates:t},"sort",!1)},sortDirections:Xr((()=>e.sortDirections||["ascend","descend"])),tableLocale:m,showSorterTooltip:Et(e,"showSorterTooltip")}),E=Xr((()=>BX(v.value,M.value,y.value))),[A,R,D]=fK({prefixCls:d,locale:m,dropdownPrefixCls:b,mergedColumns:a,onFilterChange:(e,t)=>{k({filters:e,filterStates:t},"filter",!0)},getPopupContainer:Et(e,"getPopupContainer")}),j=Xr((()=>hK(E.value,R.value))),[B]=yK(Et(e,"contextSlots")),N=Xr((()=>{const e={},t=D.value;return Object.keys(t).forEach((n=>{null!==t[n]&&(e[n]=t[n])})),fl(fl({},T.value),{filters:e})})),[z]=mK(N),[_,L]=lX(Xr((()=>j.value.length)),Et(e,"pagination"),((e,t)=>{k({pagination:fl(fl({},C.pagination),{current:e,pageSize:t})},"paginate")}));yn((()=>{C.sorter=I.value,C.sorterStates=M.value,C.filters=D.value,C.filterStates=R.value,C.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}(_.value,e.pagination),C.resetPagination=L}));const Q=Xr((()=>{if(!1===e.pagination||!_.value.pageSize)return j.value;const{current:t=1,total:n,pageSize:o=iX}=_.value;return Sp(t>0,"Table","`current` should be positive number."),j.value.length<n?j.value.length>o?j.value.slice((t-1)*o,t*o):j.value:j.value.slice((t-1)*o,t*o)}));yn((()=>{Vt((()=>{const{total:e,pageSize:t=iX}=_.value;j.value.length<e&&j.value.length>t&&Sp(!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 H=Xr((()=>!1===e.showExpandColumn?-1:"nest"===O.value&&void 0===e.expandIconColumnIndex?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex)),F=Ot();wn((()=>e.rowSelection),(()=>{F.value=e.rowSelection?fl({},e.rowSelection):e.rowSelection}),{deep:!0,immediate:!0});const[W,V]=hX(F,{prefixCls:d,data:j,pageData:Q,getRowKey:$,getRecordByKey:S,expandType:O,childrenColumnName:y,locale:m,getPopupContainer:Xr((()=>e.getPopupContainer))}),Z=(t,n,o)=>{let r;const{rowClassName:i}=e;return r=Tl("function"==typeof i?i(t,n,o):i),Tl({[`${d.value}-row-selected`]:V.value.has($.value(t,n))},r)};r({selectedKeySet:V});const X=Xr((()=>"number"==typeof e.indentSize?e.indentSize:15)),Y=e=>z(W(A(P(B(e)))));return()=>{var t;const{expandIcon:r=o.expandIcon||vK(m.value),pagination:i,loading:l,bordered:p}=e;let b,y,O;if(!1!==i&&(null===(t=_.value)||void 0===t?void 0:t.total)){let e;e=_.value.size?_.value.size:"small"===s.value||"middle"===s.value?"small":void 0;const t=t=>Sr(vH,hl(hl({},_.value),{},{class:[`${d.value}-pagination ${d.value}-pagination-${t}`,_.value.class],size:e}),null),n="rtl"===u.value?"left":"right",{position:o}=_.value;if(null!==o&&Array.isArray(o)){const e=o.find((e=>e.includes("top"))),r=o.find((e=>e.includes("bottom"))),i=o.every((e=>"none"==`${e}`));e||r||i||(y=t(n)),e&&(b=t(e.toLowerCase().replace("top",""))),r&&(y=t(r.toLowerCase().replace("bottom","")))}else y=t(n)}"boolean"==typeof l?O={spinning:l}:"object"==typeof l&&(O=fl({spinning:!0},l));const S=Tl(`${d.value}-wrapper`,{[`${d.value}-wrapper-rtl`]:"rtl"===u.value},n.class,f.value),C=kd(e,["columns"]);return h(Sr("div",{class:S,style:n.style},[Sr(FQ,hl({spinning:!1},O),{default:()=>[b,Sr(rX,hl(hl(hl({},n),C),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:H.value,indentSize:X.value,expandIcon:r,columns:a.value,direction:u.value,prefixCls:d.value,class:Tl({[`${d.value}-middle`]:"middle"===s.value,[`${d.value}-small`]:"small"===s.value,[`${d.value}-bordered`]:p,[`${d.value}-empty`]:0===v.value.length}),data:Q.value,rowKey:$.value,rowClassName:Z,internalHooks:oX,internalRefs:w,onUpdateInternalRefs:x,transformColumns:Y,transformCellText:g.value}),fl(fl({},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)||c("Table")}})),y]})]))}}}),LK=Ln({name:"ATable",inheritAttrs:!1,props:Jl(zK(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const i=Ot();return r({table:i}),()=>{var t;const r=e.columns||PX(null===(t=o.default)||void 0===t?void 0:t.call(o));return Sr(_K,hl(hl(hl({ref:i},n),e),{},{columns:r||[],expandedRowRender:o.expandedRowRender||e.expandedRowRender,contextSlots:fl({},o)}),o)}}}),QK=Ln({name:"ATableColumn",slots:Object,render:()=>null}),HK=Ln({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render:()=>null}),FK=VZ,WK=XZ,VK=fl(KZ,{Cell:WK,Row:FK,name:"ATableSummary"}),ZK=fl(LK,{SELECTION_ALL:sX,SELECTION_INVERT:cX,SELECTION_NONE:uX,SELECTION_COLUMN:aX,EXPAND_COLUMN:BZ,Column:QK,ColumnGroup:HK,Summary:VK,install:e=>(e.component(VK.name,VK),e.component(WK.name,WK),e.component(FK.name,FK),e.component(LK.name,LK),e.component(QK.name,QK),e.component(HK.name,HK),e)}),XK={prefixCls:String,placeholder:String,value:String,handleClear:Function,disabled:{type:Boolean,default:void 0},onChange:Function},YK=Ln({compatConfig:{MODE:3},name:"Search",inheritAttrs:!1,props:Jl(XK,{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:i}=e;return Sr(Gz,{placeholder:t,class:r,value:n,onChange:o,disabled:i,allowClear:!0},{prefix:()=>Sr(sy,null,null)})}}}),KK={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 GK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){UK(e,t,n[t])}))}return e}function UK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qK=function(e,t){var n=GK({},e,t.attrs);return Sr(Rb,GK({},n,{icon:KK}),null)};qK.displayName="DeleteOutlined",qK.inheritAttrs=!1;const JK=qK;function eG(){}const tG=Ln({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:{renderedText:xp.any,renderedEl:xp.any,item:xp.any,checked:Pa(),prefixCls:String,disabled:Pa(),showRemove:Pa(),onClick:Function,onRemove:Function},emits:["click","remove"],setup(e,t){let{emit:n}=t;return()=>{const{renderedText:t,renderedEl:o,item:r,checked:i,disabled:l,prefixCls:a,showRemove:s}=e,c=Tl({[`${a}-content-item`]:!0,[`${a}-content-item-disabled`]:l||r.disabled});let u;return"string"!=typeof t&&"number"!=typeof t||(u=String(t)),Sr(ns,{componentName:"Transfer",defaultLocale:ts.Transfer},{default:e=>{const t=Sr("span",{class:`${a}-content-item-text`},[o]);return s?Sr("li",{class:c,title:u},[t,Sr(_F,{disabled:l||r.disabled,class:`${a}-content-item-remove`,"aria-label":e.remove,onClick:()=>{n("remove",r)}},{default:()=>[Sr(JK,null,null)]})]):Sr("li",{class:c,title:u,onClick:l||r.disabled?eG:()=>{n("click",r)}},[Sr(Tj,{class:`${a}-checkbox`,checked:i,disabled:l||r.disabled},null),t])}})}}}),nG=Ln({compatConfig:{MODE:3},name:"ListBody",inheritAttrs:!1,props:{prefixCls:String,filteredRenderItems:xp.array.def([]),selectedKeys:xp.array,disabled:Pa(),showRemove:Pa(),pagination:xp.any,onItemSelect:Function,onScroll:Function,onItemRemove:Function},emits:["itemSelect","itemRemove","scroll"],setup(e,t){let{emit:n,expose:o}=t;const r=Ot(1),i=t=>{const{selectedKeys:o}=e,r=o.indexOf(t.key)>=0;n("itemSelect",t.key,!r)},l=e=>{n("itemRemove",[e.key])},a=e=>{n("scroll",e)},s=Xr((()=>function(e){if(!e)return null;const t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return"object"==typeof e?fl(fl({},t),e):t}(e.pagination)));wn([s,()=>e.filteredRenderItems],(()=>{if(s.value){const t=Math.ceil(e.filteredRenderItems.length/s.value.pageSize);r.value=Math.min(r.value,t)}}),{immediate:!0});const c=Xr((()=>{const{filteredRenderItems:t}=e;let n=t;return s.value&&(n=t.slice((r.value-1)*s.value.pageSize,r.value*s.value.pageSize)),n})),u=e=>{r.value=e};return o({items:c}),()=>{const{prefixCls:t,filteredRenderItems:n,selectedKeys:o,disabled:d,showRemove:p}=e;let h=null;s.value&&(h=Sr(vH,{simple:s.value.simple,showSizeChanger:s.value.showSizeChanger,showLessItems:s.value.showLessItems,size:"small",disabled:d,class:`${t}-pagination`,total:n.length,pageSize:s.value.pageSize,current:r.value,onChange:u},null));const f=c.value.map((e=>{let{renderedEl:n,renderedText:r,item:a}=e;const{disabled:s}=a,c=o.indexOf(a.key)>=0;return Sr(tG,{disabled:d||s,key:a.key,item:a,renderedText:r,renderedEl:n,checked:c,prefixCls:t,onClick:i,onRemove:l,showRemove:p},null)}));return Sr(lr,null,[Sr("ul",{class:Tl(`${t}-content`,{[`${t}-content-show-remove`]:p}),onScroll:a},[f]),h])}}}),oG=e=>{const t=new Map;return e.forEach(((e,n)=>{t.set(e,n)})),t},rG=()=>null;function iG(e){return e.filter((e=>!e.disabled)).map((e=>e.key))}const lG=Ln({compatConfig:{MODE:3},name:"TransferList",inheritAttrs:!1,props:{prefixCls:String,dataSource:Ia([]),filter:String,filterOption:Function,checkedKeys:xp.arrayOf(xp.string),handleFilter:Function,handleClear:Function,renderItem:Function,showSearch:Pa(!1),searchPlaceholder:String,notFoundContent:xp.any,itemUnit:String,itemsUnit:String,renderList:xp.any,disabled:Pa(),direction:Ea(),showSelectAll:Pa(),remove:String,selectAll:String,selectCurrent:String,selectInvert:String,removeAll:String,removeCurrent:String,selectAllLabel:xp.any,showRemove:Pa(),pagination:xp.any,onItemSelect:Function,onItemSelectAll:Function,onItemRemove:Function,onScroll:Function},slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const r=Ot(""),i=Ot(),l=Ot(),a=t=>{const{renderItem:n=rG}=e,o=n(t),r=!(!(i=o)||ha(i)||"[object Object]"!==Object.prototype.toString.call(i));var i;return{renderedText:r?o.value:o,renderedEl:r?o.label:o,item:t}},s=Ot([]),c=Ot([]);yn((()=>{const t=[],n=[];e.dataSource.forEach((e=>{const o=a(e),{renderedText:i}=o;if(r.value&&r.value.trim()&&!g(i,e))return null;t.push(e),n.push(o)})),s.value=t,c.value=n}));const u=Xr((()=>{const{checkedKeys:t}=e;if(0===t.length)return"none";const n=oG(t);return s.value.every((e=>n.has(e.key)||!!e.disabled))?"all":"part"})),d=Xr((()=>iG(s.value))),p=(t,n)=>Array.from(new Set([...t,...e.checkedKeys])).filter((e=>-1===n.indexOf(e))),h=t=>{var n;const{target:{value:o}}=t;r.value=o,null===(n=e.handleFilter)||void 0===n||n.call(e,t)},f=t=>{var n;r.value="",null===(n=e.handleClear)||void 0===n||n.call(e,t)},g=(t,n)=>{const{filterOption:o}=e;return o?o(r.value,n):t.includes(r.value)},m=(t,n)=>{const{itemsUnit:o,itemUnit:r,selectAllLabel:i}=e;if(i)return"function"==typeof i?i({selectedCount:t,totalCount:n}):i;const l=n>1?o:r;return Sr(lr,null,[(t>0?`${t}/`:"")+n,kr(" "),l])},v=Xr((()=>Array.isArray(e.notFoundContent)?e.notFoundContent["left"===e.direction?0:1]:e.notFoundContent)),b=(t,o,a,u,d,p)=>{const g=d?Sr("div",{class:`${t}-body-search-wrapper`},[Sr(YK,{prefixCls:`${t}-search`,onChange:h,handleClear:f,placeholder:o,value:r.value,disabled:p},null)]):null;let m;const{onEvents:b}=ea(n),{bodyContent:y,customize:O}=((e,t)=>{let n=e?e(t):null;const o=!!n&&da(n).length>0;return o||(n=Sr(nG,hl(hl({},t),{},{ref:l}),null)),{customize:o,bodyContent:n}})(u,fl(fl(fl({},e),{filteredItems:s.value,filteredRenderItems:c.value,selectedKeys:a}),b));return m=O?Sr("div",{class:`${t}-body-customize-wrapper`},[y]):s.value.length?y:Sr("div",{class:`${t}-body-not-found`},[v.value]),Sr("div",{class:d?`${t}-body ${t}-body-with-search`:`${t}-body`,ref:i},[g,m])};return()=>{var t,r;const{prefixCls:i,checkedKeys:a,disabled:c,showSearch:h,searchPlaceholder:f,selectAll:g,selectCurrent:v,selectInvert:y,removeAll:O,removeCurrent:w,renderList:x,onItemSelectAll:$,onItemRemove:S,showSelectAll:C=!0,showRemove:k,pagination:P}=e,M=null===(t=o.footer)||void 0===t?void 0:t.call(o,fl({},e)),T=Tl(i,{[`${i}-with-pagination`]:!!P,[`${i}-with-footer`]:!!M}),I=b(i,f,a,x,h,c),E=M?Sr("div",{class:`${i}-footer`},[M]):null,A=!k&&!P&&(t=>{let{disabled:n,prefixCls:o}=t;var r;const i="all"===u.value;return Sr(Tj,{disabled:0===(null===(r=e.dataSource)||void 0===r?void 0:r.length)||n,checked:i,indeterminate:"part"===u.value,class:`${o}-checkbox`,onChange:()=>{const t=d.value;e.onItemSelectAll(p(i?[]:t,i?e.checkedKeys:[]))}},null)})({disabled:c,prefixCls:i});let R=null;R=Sr(rP,null,k?{default:()=>[P&&Sr(rP.Item,{key:"removeCurrent",onClick:()=>{const e=iG((l.value.items||[]).map((e=>e.item)));null==S||S(e)}},{default:()=>[w]}),Sr(rP.Item,{key:"removeAll",onClick:()=>{null==S||S(d.value)}},{default:()=>[O]})]}:{default:()=>[Sr(rP.Item,{key:"selectAll",onClick:()=>{const e=d.value;$(p(e,[]))}},{default:()=>[g]}),P&&Sr(rP.Item,{onClick:()=>{const e=iG((l.value.items||[]).map((e=>e.item)));$(p(e,[]))}},{default:()=>[v]}),Sr(rP.Item,{key:"selectInvert",onClick:()=>{let e;e=P?iG((l.value.items||[]).map((e=>e.item))):d.value;const t=new Set(a),n=[],o=[];e.forEach((e=>{t.has(e)?o.push(e):n.push(e)})),$(p(n,o))}},{default:()=>[y]})]});const D=Sr(ak,{class:`${i}-header-dropdown`,overlay:R,disabled:c},{default:()=>[Sr(Nb,null,null)]});return Sr("div",{class:T,style:n.style},[Sr("div",{class:`${i}-header`},[C?Sr(lr,null,[A,D]):null,Sr("span",{class:`${i}-header-selected`},[Sr("span",null,[m(a.length,s.value.length)]),Sr("span",{class:`${i}-header-title`},[null===(r=o.titleText)||void 0===r?void 0:r.call(o)])])]),I,E])}}});function aG(){}const sG=e=>{const{disabled:t,moveToLeft:n=aG,moveToRight:o=aG,leftArrowText:r="",rightArrowText:i="",leftActive:l,rightActive:a,class:s,style:c,direction:u,oneWay:d}=e;return Sr("div",{class:s,style:c},[Sr(zC,{type:"primary",size:"small",disabled:t||!a,onClick:o,icon:Sr("rtl"!==u?nk:jR,null,null)},{default:()=>[i]}),!d&&Sr(zC,{type:"primary",size:"small",disabled:t||!l,onClick:n,icon:Sr("rtl"!==u?jR:nk,null,null)},{default:()=>[r]})])};sG.displayName="Operation",sG.inheritAttrs=!1;const cG=sG,uG=e=>{const{antCls:t,componentCls:n,listHeight:o,controlHeightLG:r,marginXXS:i,margin:l}=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:`${l}px 0 ${i}px`}},[`${t}-input[disabled]`]:{backgroundColor:"transparent"}}}},dG=(e,t)=>{const{componentCls:n,colorBorder:o}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:o}}}},pG=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:fl({},dG(e,e.colorError)),[`${t}-status-warning`]:fl({},dG(e,e.colorWarning))}},hG=e=>{const{componentCls:t,colorBorder:n,colorSplit:o,lineWidth:r,transferItemHeight:i,transferHeaderHeight:l,transferHeaderVerticalPadding:a,transferItemPaddingVertical:s,controlItemBgActive:c,controlItemBgActiveHover:u,colorTextDisabled:d,listHeight:p,listWidth:h,listWidthLG:f,fontSizeIcon:g,marginXS:m,paddingSM:v,lineType:b,iconCls:y,motionDurationSlow:O}=e;return{display:"flex",flexDirection:"column",width:h,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:l,padding:`${a-r}px ${v}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":fl(fl({},Xu),{flex:"auto",textAlign:"end"}),"&-dropdown":fl(fl({},{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"}}),{fontSize:g,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:v}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${s}px ${v}px`,transition:`all ${O}`,"> *:not(:last-child)":{marginInlineEnd:m},"> *":{flex:"none"},"&-text":fl(fl({},Xu),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${O}`,"&: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}}},fG=e=>{const{antCls:t,iconCls:n,componentCls:o,transferHeaderHeight:r,marginXS:i,marginXXS:l,fontSizeIcon:a,fontSize:s,lineHeight:c}=e;return{[o]:fl(fl({},Yu(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${o}-disabled`]:{[`${o}-list`]:{background:e.colorBgContainerDisabled}},[`${o}-list`]:hG(e),[`${o}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${i}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:l},[n]:{fontSize:a}}},[`${t}-empty-image`]:{maxHeight:r/2-Math.round(s*c)}})}},gG=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},mG=Ju("Transfer",(e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeightLG:r,controlHeight:i}=e,l=Math.round(t*n),a=r,s=i,c=nd(e,{transferItemHeight:s,transferHeaderHeight:a,transferHeaderVerticalPadding:Math.ceil((a-o-l)/2),transferItemPaddingVertical:(s-l)/2});return[fG(c),uG(c),pG(c),gG(c)]}),{listWidth:180,listHeight:200,listWidthLG:250}),vG=Sa(Ln({compatConfig:{MODE:3},name:"ATransfer",inheritAttrs:!1,props:{id:String,prefixCls:String,dataSource:Ia([]),disabled:Pa(),targetKeys:Ia(),selectedKeys:Ia(),render:Ma(),listStyle:Aa([Function,Object],(()=>({}))),operationStyle:ka(void 0),titles:Ia(),operations:Ia(),showSearch:Pa(!1),filterOption:Ma(),searchPlaceholder:String,notFoundContent:xp.any,locale:ka(),rowKey:Ma(),showSelectAll:Pa(),selectAllLabels:Ia(),children:Ma(),oneWay:Pa(),pagination:Aa([Object,Boolean]),status:Ea(),onChange:Ma(),onSelectChange:Ma(),onSearch:Ma(),onScroll:Ma(),"onUpdate:targetKeys":Ma(),"onUpdate:selectedKeys":Ma()},slots:Object,setup(e,t){let{emit:n,attrs:o,slots:r,expose:i}=t;const{configProvider:l,prefixCls:a,direction:s}=Cd("transfer",e),[c,u]=mG(a),d=Ot([]),p=Ot([]),h=gy(),f=vy.useInject(),g=Xr((()=>Oy(f.status,e.status)));wn((()=>e.selectedKeys),(()=>{var t,n;d.value=(null===(t=e.selectedKeys)||void 0===t?void 0:t.filter((t=>-1===e.targetKeys.indexOf(t))))||[],p.value=(null===(n=e.selectedKeys)||void 0===n?void 0:n.filter((t=>e.targetKeys.indexOf(t)>-1)))||[]}),{immediate:!0});const m=t=>{const{targetKeys:o=[],dataSource:r=[]}=e,i="right"===t?d.value:p.value,l=(e=>{const t=new Map;return e.forEach(((e,n)=>{let{disabled:o,key:r}=e;o&&t.set(r,n)})),t})(r),a=i.filter((e=>!l.has(e))),s=oG(a),c="right"===t?a.concat(o):o.filter((e=>!s.has(e))),u="right"===t?"left":"right";"right"===t?d.value=[]:p.value=[],n("update:targetKeys",c),x(u,[]),n("change",c,t,a),h.onFieldChange()},v=()=>{m("left")},b=()=>{m("right")},y=(e,t)=>{x(e,t)},O=e=>y("left",e),w=e=>y("right",e),x=(t,o)=>{"left"===t?(e.selectedKeys||(d.value=o),n("update:selectedKeys",[...o,...p.value]),n("selectChange",o,pt(p.value))):(e.selectedKeys||(p.value=o),n("update:selectedKeys",[...o,...d.value]),n("selectChange",pt(d.value),o))},$=(e,t)=>{const o=t.target.value;n("search",e,o)},S=e=>{$("left",e)},C=e=>{$("right",e)},k=e=>{n("search",e,"")},P=()=>{k("left")},M=()=>{k("right")},T=(e,t,n)=>{const o="left"===e?[...d.value]:[...p.value],r=o.indexOf(t);r>-1&&o.splice(r,1),n&&o.push(t),x(e,o)},I=(e,t)=>T("left",e,t),E=(e,t)=>T("right",e,t),A=t=>{const{targetKeys:o=[]}=e,r=o.filter((e=>!t.includes(e)));n("update:targetKeys",r),n("change",r,"left",[...t])},R=(e,t)=>{n("scroll",e,t)},D=e=>{R("left",e)},j=e=>{R("right",e)},B=(e,t)=>"function"==typeof e?e({direction:t}):e,N=Ot([]),z=Ot([]);yn((()=>{const{dataSource:t,rowKey:n,targetKeys:o=[]}=e,r=[],i=new Array(o.length),l=oG(o);t.forEach((e=>{n&&(e.key=n(e)),l.has(e.key)?i[l.get(e.key)]=e:r.push(e)})),N.value=r,z.value=i})),i({handleSelectChange:x});const _=t=>{var n,i,c,m,y,x;const{disabled:$,operations:k=[],showSearch:T,listStyle:R,operationStyle:_,filterOption:L,showSelectAll:Q,selectAllLabels:H=[],oneWay:F,pagination:W,id:V=h.id.value}=e,{class:Z,style:X}=o,Y=r.children,K=!Y&&W,G=((t,n)=>{const o={notFoundContent:n("Transfer")},i=fa(r,e,"notFoundContent");return i&&(o.notFoundContent=i),void 0!==e.searchPlaceholder&&(o.searchPlaceholder=e.searchPlaceholder),fl(fl(fl({},t),o),e.locale)})(t,l.renderEmpty),{footer:U}=r,q=e.render||r.render,J=p.value.length>0,ee=d.value.length>0,te=Tl(a.value,Z,{[`${a.value}-disabled`]:$,[`${a.value}-customize-list`]:!!Y,[`${a.value}-rtl`]:"rtl"===s.value},yy(a.value,g.value,f.hasFeedback),u.value),ne=e.titles,oe=null!==(c=null!==(n=ne&&ne[0])&&void 0!==n?n:null===(i=r.leftTitle)||void 0===i?void 0:i.call(r))&&void 0!==c?c:(G.titles||["",""])[0],re=null!==(x=null!==(m=ne&&ne[1])&&void 0!==m?m:null===(y=r.rightTitle)||void 0===y?void 0:y.call(r))&&void 0!==x?x:(G.titles||["",""])[1];return Sr("div",hl(hl({},o),{},{class:te,style:X,id:V}),[Sr(lG,hl({key:"leftList",prefixCls:`${a.value}-list`,dataSource:N.value,filterOption:L,style:B(R,"left"),checkedKeys:d.value,handleFilter:S,handleClear:P,onItemSelect:I,onItemSelectAll:O,renderItem:q,showSearch:T,renderList:Y,onScroll:D,disabled:$,direction:"rtl"===s.value?"right":"left",showSelectAll:Q,selectAllLabel:H[0]||r.leftSelectAllLabel,pagination:K},G),{titleText:()=>oe,footer:U}),Sr(cG,{key:"operation",class:`${a.value}-operation`,rightActive:ee,rightArrowText:k[0],moveToRight:b,leftActive:J,leftArrowText:k[1],moveToLeft:v,style:_,disabled:$,direction:s.value,oneWay:F},null),Sr(lG,hl({key:"rightList",prefixCls:`${a.value}-list`,dataSource:z.value,filterOption:L,style:B(R,"right"),checkedKeys:p.value,handleFilter:C,handleClear:M,onItemSelect:E,onItemSelectAll:w,onItemRemove:A,renderItem:q,showSearch:T,renderList:Y,onScroll:j,disabled:$,direction:"rtl"===s.value?"left":"right",showSelectAll:Q,selectAllLabel:H[1]||r.rightSelectAllLabel,showRemove:F,pagination:K},G),{titleText:()=>re,footer:U})])};return()=>c(Sr(ns,{componentName:"Transfer",defaultLocale:ts.Transfer,children:_},null))}}));function bG(e){return e.disabled||e.disableCheckbox||!1===e.checkable}function yG(e){return null==e}const OG=Symbol("TreeSelectContextPropsKey"),wG={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},xG=Ln({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{slots:n,expose:o}=t;const r=uv(),i=Jm(),l=Ao(OG,{}),a=Ot(),s=Mv((()=>l.treeData),[()=>r.open,()=>l.treeData],(e=>e[0])),c=Xr((()=>{const{checkable:e,halfCheckedKeys:t,checkedKeys:n}=i;return e?{checked:n,halfChecked:t}:null}));wn((()=>r.open),(()=>{Vt((()=>{var e;r.open&&!r.multiple&&i.checkedKeys.length&&(null===(e=a.value)||void 0===e||e.scrollTo({key:i.checkedKeys[0]}))}))}),{immediate:!0,flush:"post"});const u=Xr((()=>String(r.searchValue).toLowerCase())),d=e=>!!u.value&&String(e[i.treeNodeFilterProp]).toLowerCase().includes(u.value),p=wt(i.treeDefaultExpandedKeys),h=wt(null);wn((()=>r.searchValue),(()=>{r.searchValue&&(h.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}(pt(l.treeData),pt(l.fieldNames)))}),{immediate:!0});const f=Xr((()=>i.treeExpandedKeys?i.treeExpandedKeys.slice():r.searchValue?h.value:p.value)),g=e=>{var t;p.value=e,h.value=e,null===(t=i.onTreeExpand)||void 0===t||t.call(i,e)},m=e=>{e.preventDefault()},v=(e,t)=>{let{node:n}=t;var o,a;const{checkable:s,checkedKeys:c}=i;s&&bG(n)||(null===(o=l.onSelect)||void 0===o||o.call(l,n.key,{selected:!c.includes(n.key)}),r.multiple||null===(a=r.toggleOpen)||void 0===a||a.call(r,!1))},b=Ot(null),y=Xr((()=>i.keyEntities[b.value])),O=e=>{b.value=e};return o({scrollTo:function(){for(var e,t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(t=null===(e=a.value)||void 0===e?void 0:e.scrollTo)||void 0===t?void 0:t.call(e,...o)},onKeydown:e=>{var t;const{which:n}=e;switch(n){case Tm.UP:case Tm.DOWN:case Tm.LEFT:case Tm.RIGHT:null===(t=a.value)||void 0===t||t.onKeydown(e);break;case Tm.ENTER:if(y.value){const{selectable:e,value:t}=y.value.node||{};!1!==e&&v(0,{node:{key:b.value},selected:!i.checkedKeys.includes(t)})}break;case Tm.ESC:r.toggleOpen(!1)}},onKeyup:()=>{}}),()=>{var e;const{prefixCls:t,multiple:o,searchValue:u,open:p,notFoundContent:h=(null===(e=n.notFoundContent)||void 0===e?void 0:e.call(n))}=r,{listHeight:w,listItemHeight:x,virtual:$,dropdownMatchSelectWidth:S,treeExpandAction:C}=l,{checkable:k,treeDefaultExpandAll:P,treeIcon:M,showTreeIcon:T,switcherIcon:I,treeLine:E,loadData:A,treeLoadedKeys:R,treeMotion:D,onTreeLoad:j,checkedKeys:B}=i;if(0===s.value.length)return Sr("div",{role:"listbox",class:`${t}-empty`,onMousedown:m},[h]);const N={fieldNames:l.fieldNames};return R&&(N.loadedKeys=R),f.value&&(N.expandedKeys=f.value),Sr("div",{onMousedown:m},[y.value&&p&&Sr("span",{style:wG,"aria-live":"assertive"},[y.value.node.value]),Sr(lY,hl(hl({ref:a,focusable:!1,prefixCls:`${t}-tree`,treeData:s.value,height:w,itemHeight:x,virtual:!1!==$&&!1!==S,multiple:o,icon:M,showIcon:T,switcherIcon:I,showLine:E,loadData:u?null:A,motion:D,activeKey:b.value,checkable:k,checkStrictly:!0,checkedKeys:c.value,selectedKeys:k?[]:B,defaultExpandAll:P},N),{},{onActiveChange:O,onSelect:v,onCheck:v,onExpand:g,onLoad:j,filterTreeNode:d,expandAction:C}),fl(fl({},n),{checkable:i.customSlots.treeCheckable}))])}}}),$G="SHOW_PARENT",SG="SHOW_CHILD";function CG(e,t,n,o){const r=new Set(e);return t===SG?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 bG(t)||r.has(t[o.value])})))})):t===$G?e.filter((e=>{const t=n[e],o=t?t.parent:null;return!(o&&!bG(o.node)&&r.has(o.key))})):e}const kG=()=>null;kG.inheritAttrs=!1,kG.displayName="ATreeSelectNode",kG.isTreeSelectNode=!0;const PG=kG;function MG(e){return function e(){return da(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((t=>{var n,o,r,i;if(!((i=t)&&i.type&&i.type.isTreeSelectNode))return null;const l=t.children||{},a=t.key,s={};for(const[e,x]of Object.entries(t.props))s[wl(e)]=x;const{isLeaf:c,checkable:u,selectable:d,disabled:p,disableCheckbox:h}=s,f={isLeaf:c||""===c||void 0,checkable:u||""===u||void 0,selectable:d||""===d||void 0,disabled:p||""===p||void 0,disableCheckbox:h||""===h||void 0},g=fl(fl({},s),f),{title:m=(null===(n=l.title)||void 0===n?void 0:n.call(l,g)),switcherIcon:v=(null===(o=l.switcherIcon)||void 0===o?void 0:o.call(l,g))}=s,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);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(s,["title","switcherIcon"]),y=null===(r=l.default)||void 0===r?void 0:r.call(l),O=fl(fl(fl({},b),{title:m,switcherIcon:v,key:a,isLeaf:c}),f),w=e(y);return w.length&&(O.children=w),O}))}(e)}function TG(e){if(!e)return e;const t=fl({},e);return"props"in t||Object.defineProperty(t,"props",{get:()=>t}),t}function IG(e,t,n){const o=wt();return wn([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 i={},l=[];return e.map((e=>{const t=fl({},e),o=t[n];return i[o]=t,t.key=t.key||o,t})).forEach((e=>{const t=e[o],n=i[t];n&&(n.children=n.children||[],n.children.push(e)),(t===r||!n&&null===r)&&l.push(e)})),l}(pt(e.value),fl({id:"id",pId:"pId",rootPId:null},!0!==r?r:{})):pt(e.value).slice():o.value=MG(pt(t.value))}),{immediate:!0,deep:!0}),o}function EG(){return fl(fl({},kd(fv(),["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:xp.any,showTreeIcon:{type:Boolean,default:void 0},switcherIcon:xp.any,treeMotion:xp.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:xp.any,maxTagPlaceholder:{type:Function},dropdownPopupAlign:xp.any,customSlots:Object})}const AG=Ln({compatConfig:{MODE:3},name:"TreeSelect",inheritAttrs:!1,props:Jl(EG(),{treeNodeFilterProp:"value",autoClearSearchValue:!0,showCheckedStrategy:SG,listHeight:200,listItemHeight:20,prefixCls:"vc-tree-select"}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const i=zv(Et(e,"id")),l=Xr((()=>e.treeCheckable&&!e.treeCheckStrictly)),a=Xr((()=>e.treeCheckable||e.treeCheckStrictly)),s=Xr((()=>e.treeCheckStrictly||e.labelInValue)),c=Xr((()=>a.value||e.multiple)),u=Xr((()=>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))),[d,p]=Qv("",{value:Xr((()=>void 0!==e.searchValue?e.searchValue:e.inputValue)),postState:e=>e||""}),h=t=>{var n;p(t),null===(n=e.onSearch)||void 0===n||n.call(e,t)},f=IG(Et(e,"treeData"),Et(e,"children"),Et(e,"treeDataSimpleMode")),{keyEntities:g,valueEntities:m}=((e,t)=>{const n=wt(new Map),o=wt({});return yn((()=>{const r=t.value,i=cR(e.value,{fieldNames:r,initWrapper:e=>fl(fl({},e),{valueEntities:new Map}),processEntity:(e,t)=>{const n=e.node[r.value];t.valueEntities.set(n,e)}});n.value=i.valueEntities,o.value=i.keyEntities})),{valueEntities:n,keyEntities:o}})(f,u),v=((e,t,n)=>{let{treeNodeFilterProp:o,filterTreeNode:r,fieldNames:i}=n;return Xr((()=>{const{children:n}=i.value,l=t.value,a=null==o?void 0:o.value;if(!l||!1===r.value)return e.value;let s;if("function"==typeof r.value)s=r.value;else{const e=l.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 i=0,a=t.length;i<a;i++){const a=t[i],c=a[n],u=o||s(l,TG(a)),d=e(c||[],u);(u||d.length)&&r.push(fl(fl({},a),{[n]:d}))}return r}(e.value)}))})(f,d,{fieldNames:u,treeNodeFilterProp:Et(e,"treeNodeFilterProp"),filterTreeNode:Et(e,"filterTreeNode")}),b=e=>{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))},y=t=>b(t).map((t=>{let{label:n}=t;const{value:o,halfChecked:r}=t;let i;const l=m.value.get(o);return l&&(n=null!=n?n:(t=>{if(t){if(e.treeNodeLabelProp)return t[e.treeNodeLabelProp];const{_title:n}=u.value;for(let e=0;e<n.length;e+=1){const o=t[n[e]];if(void 0!==o)return o}}})(l.node),i=l.node.disabled),{label:n,value:o,halfChecked:r,disabled:i}})),[O,w]=Qv(e.defaultValue,{value:Et(e,"value")}),x=Xr((()=>b(O.value))),$=wt([]),S=wt([]);yn((()=>{const e=[],t=[];x.value.forEach((n=>{n.halfChecked?t.push(n):e.push(n)})),$.value=e,S.value=t}));const C=Xr((()=>$.value.map((e=>e.value)))),{maxLevel:k,levelEntities:P}=PR(g),[M,T]=((e,t,n,o,r,i)=>{const l=wt([]),a=wt([]);return yn((()=>{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}=yR(s,!0,o.value,r.value,i.value)),l.value=Array.from(new Set([...u,...s])),a.value=c})),[l,a]})($,S,l,g,k,P),I=Xr((()=>{const t=CG(M.value,e.showCheckedStrategy,g.value,u.value).map((e=>{var t,n,o;return null!==(o=null===(n=null===(t=g.value[e])||void 0===t?void 0:t.node)||void 0===n?void 0:n[u.value.value])&&void 0!==o?o:e})).map((e=>{const t=$.value.find((t=>t.value===e));return{value:e,label:null==t?void 0:t.label}})),n=y(t),o=n[0];return!c.value&&o&&yG(o.value)&&yG(o.label)?[]:n.map((e=>{var t;return fl(fl({},e),{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))})),[E]=(e=>{const t=wt({valueLabels:new Map}),n=wt();return wn(e,(()=>{n.value=pt(e.value)}),{immediate:!0}),[Xr((()=>{const{valueLabels:e}=t.value,o=new Map,r=n.value.map((t=>{var n;const{value:r}=t,i=null!==(n=t.label)&&void 0!==n?n:e.get(r);return o.set(r,i),fl(fl({},t),{label:i})}));return t.value.valueLabels=o,r}))]})(I),A=(t,n,o)=>{const r=y(t);if(w(r),e.autoClearSearchValue&&p(""),e.onChange){let r=t;if(l.value){const n=CG(t,e.showCheckedStrategy,g.value,u.value);r=n.map((e=>{const t=m.value.get(e);return t?t.node[u.value.value]:e}))}const{triggerValue:i,selected:d}=n||{triggerValue:void 0,selected:void 0};let p=r;if(e.treeCheckStrictly){const e=S.value.filter((e=>!r.includes(e.value)));p=[...p,...e]}const h=y(p),v={preValue:$.value,triggerValue:i};let b=!0;(e.treeCheckStrictly||"selection"===o&&!d)&&(b=!1),function(e,t,n,o,r,i){let l=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[i.value],p=n.includes(d),h=e(o[i.children]||[],u,p),f=Sr(PG,o,{default:()=>[h.map((e=>e.node))]});if(t===d&&(l=f),p){const e={pos:u,node:f,children:h};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(),l)}),Object.defineProperty(e,"allCheckedNodes",{get:()=>(s(),r?a:a.map((e=>{let{node:t}=e;return t})))})}(v,i,t,f.value,b,u.value),a.value?v.checked=d:v.selected=d;const O=s.value?h:h.map((e=>e.value));e.onChange(c.value?O:O[0],s.value?null:h.map((e=>e.label)),v)}},R=(t,n)=>{let{selected:o,source:r}=n;var i,a,s;const d=pt(g.value),p=pt(m.value),h=d[t],f=null==h?void 0:h.node,v=null!==(i=null==f?void 0:f[u.value.value])&&void 0!==i?i:t;if(c.value){let e=o?[...C.value,v]:M.value.filter((e=>e!==v));if(l.value){const{missingRawValues:t,existRawValues:n}=(e=>{const t=[],n=[];return e.forEach((e=>{m.value.has(e)?n.push(e):t.push(e)})),{missingRawValues:t,existRawValues:n}})(e),r=n.map((e=>p.get(e).key));let i;({checkedKeys:i}=yR(r,!!o||{checked:!1,halfCheckedKeys:T.value},d,k.value,P.value)),e=[...t,...i.map((e=>d[e].node[u.value.value]))]}A(e,{selected:o,triggerValue:v},r||"option")}else A([v],{selected:!0,triggerValue:v},"option");o||!c.value?null===(a=e.onSelect)||void 0===a||a.call(e,v,TG(f)):null===(s=e.onDeselect)||void 0===s||s.call(e,v,TG(f))},D=t=>{if(e.onDropdownVisibleChange){const n={};Object.defineProperty(n,"documentClickClose",{get:()=>!1}),e.onDropdownVisibleChange(t,n)}},j=(e,t)=>{const n=e.map((e=>e.value));"clear"!==t.type?t.values.length&&R(t.values[0].value,{selected:!1,source:"selection"}):A(n,{},"selection")},{treeNodeFilterProp:B,loadData:N,treeLoadedKeys:z,onTreeLoad:_,treeDefaultExpandAll:L,treeExpandedKeys:Q,treeDefaultExpandedKeys:H,onTreeExpand:F,virtual:W,listHeight:V,listItemHeight:Z,treeLine:X,treeIcon:Y,showTreeIcon:K,switcherIcon:G,treeMotion:U,customSlots:q,dropdownMatchSelectWidth:J,treeExpandAction:ee}=Mt(e);!function(e){Eo(qm,e)}(pv({checkable:a,loadData:N,treeLoadedKeys:z,onTreeLoad:_,checkedKeys:M,halfCheckedKeys:T,treeDefaultExpandAll:L,treeExpandedKeys:Q,treeDefaultExpandedKeys:H,onTreeExpand:F,treeIcon:Y,treeMotion:U,showTreeIcon:K,switcherIcon:G,treeLine:X,treeNodeFilterProp:B,keyEntities:g,customSlots:q})),function(e){Eo(OG,e)}(pv({virtual:W,listHeight:V,listItemHeight:Z,treeData:v,fieldNames:u,onSelect:R,dropdownMatchSelectWidth:J,treeExpandAction:ee}));const te=Ot();return 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)}}),()=>{var t;const o=kd(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 Sr(mv,hl(hl(hl({ref:te},n),o),{},{id:i,prefixCls:e.prefixCls,mode:c.value?"multiple":void 0,displayValues:E.value,onDisplayValuesChange:j,searchValue:d.value,onSearch:h,OptionList:xG,emptyOptions:!f.value.length,onDropdownVisibleChange:D,tagRender:e.tagRender||r.tagRender,dropdownMatchSelectWidth:null===(t=e.dropdownMatchSelectWidth)||void 0===t||t}),r)}}}),RG=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:o}=e,r=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${e.paddingXS}px ${e.paddingXS/2}px`},DY(n,nd(e,{colorBgContainer:o})),{[r]:{borderRadius:0,"&-list-holder-inner":{alignItems:"stretch",[`${r}-treenode`]:{[`${r}-node-content-wrapper`]:{flex:"auto"}}}}},Oj(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${r}-switcher${r}-switcher_close`]:{[`${r}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},DG=(e,t,n)=>void 0!==n?n:`${e}-${t}`,jG=Ln({compatConfig:{MODE:3},name:"ATreeSelect",inheritAttrs:!1,props:Jl(fl(fl({},kd(EG(),["showTreeIcon","treeMotion","inputIcon","getInputElement","treeLine","customSlots"])),{suffixIcon:xp.any,size:Ea(),bordered:Pa(),treeLine:Aa([Boolean,Object]),replaceFields:ka(),placement:Ea(),status:Ea(),popupClassName:String,dropdownClassName:String,"onUpdate:value":Ma(),"onUpdate:treeExpandedKeys":Ma(),"onUpdate:searchValue":Ma()}),{choiceTransitionName:"",listHeight:256,treeIcon:!1,listItemHeight:26,bordered:!0}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:i}=t;void 0===e.treeData&&o.default,Sp(!1!==e.multiple||!e.treeCheckable,"TreeSelect","`multiple` will always be `true` when `treeCheckable` is true"),Sp(void 0===e.replaceFields,"TreeSelect","`replaceFields` is deprecated, please use fieldNames instead"),Sp(!e.dropdownClassName,"TreeSelect","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const l=gy(),a=vy.useInject(),s=Xr((()=>Oy(a.status,e.status))),{prefixCls:c,renderEmpty:u,direction:d,virtual:p,dropdownMatchSelectWidth:h,size:f,getPopupContainer:g,getPrefixCls:m,disabled:v}=Cd("select",e),{compactSize:b,compactItemClassnames:y}=Nw(c,d),O=Xr((()=>b.value||f.value)),w=Ka(),x=Xr((()=>{var e;return null!==(e=v.value)&&void 0!==e?e:w.value})),$=Xr((()=>m())),S=Xr((()=>void 0!==e.placement?e.placement:"rtl"===d.value?"bottomRight":"bottomLeft")),C=Xr((()=>DG($.value,rm(S.value),e.transitionName))),k=Xr((()=>DG($.value,"",e.choiceTransitionName))),P=Xr((()=>m("select-tree",e.prefixCls))),M=Xr((()=>m("tree-select",e.prefixCls))),[T,I]=Qx(c),[E]=function(e,t){return Ju("TreeSelect",(e=>{const n=nd(e,{treePrefixCls:t.value});return[RG(n)]}))(e)}(M,P),A=Xr((()=>Tl(e.popupClassName||e.dropdownClassName,`${M.value}-dropdown`,{[`${M.value}-dropdown-rtl`]:"rtl"===d.value},I.value))),R=Xr((()=>!(!e.treeCheckable&&!e.multiple))),D=Xr((()=>void 0!==e.showArrow?e.showArrow:e.loading||!R.value)),j=Ot();r({focus(){var e,t;null===(t=(e=j.value).focus)||void 0===t||t.call(e)},blur(){var e,t;null===(t=(e=j.value).blur)||void 0===t||t.call(e)}});const B=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i("update:value",t[0]),i("change",...t),l.onFieldChange()},N=e=>{i("update:treeExpandedKeys",e),i("treeExpand",e)},z=e=>{i("update:searchValue",e),i("search",e)},_=e=>{i("blur",e),l.onFieldBlur()};return()=>{var t,r;const{notFoundContent:i=(null===(t=o.notFoundContent)||void 0===t?void 0:t.call(o)),prefixCls:f,bordered:m,listHeight:v,listItemHeight:b,multiple:w,treeIcon:$,treeLine:L,showArrow:Q,switcherIcon:H=(null===(r=o.switcherIcon)||void 0===r?void 0:r.call(o)),fieldNames:F=e.replaceFields,id:W=l.id.value}=e,{isFormItemInput:V,hasFeedback:Z,feedbackIcon:X}=a,{suffixIcon:Y,removeIcon:K,clearIcon:G}=cy(fl(fl({},e),{multiple:R.value,showArrow:D.value,hasFeedback:Z,feedbackIcon:X,prefixCls:c.value}),o);let U;U=void 0!==i?i:u("Select");const q=kd(e,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","bordered","status","onUpdate:value","onUpdate:treeExpandedKeys","onUpdate:searchValue"]),J=Tl(!f&&M.value,{[`${c.value}-lg`]:"large"===O.value,[`${c.value}-sm`]:"small"===O.value,[`${c.value}-rtl`]:"rtl"===d.value,[`${c.value}-borderless`]:!m,[`${c.value}-in-form-item`]:V},yy(c.value,s.value,Z),y.value,n.class,I.value),ee={};return void 0===e.treeData&&o.default&&(ee.children=oa(o.default())),T(E(Sr(AG,hl(hl(hl(hl({},n),q),{},{disabled:x.value,virtual:p.value,dropdownMatchSelectWidth:h.value,id:W,fieldNames:F,ref:j,prefixCls:c.value,class:J,listHeight:v,listItemHeight:b,treeLine:!!L,inputIcon:Y,multiple:w,removeIcon:K,clearIcon:G,switcherIcon:e=>PY(P.value,H,e,o.leafIcon,L),showTreeIcon:$,notFoundContent:U,getPopupContainer:null==g?void 0:g.value,treeMotion:null,dropdownClassName:A.value,choiceTransitionName:k.value,onChange:B,onBlur:_,onSearch:z,onTreeExpand:N},ee),{},{transitionName:C.value,customSlots:fl(fl({},o),{treeCheckable:()=>Sr("span",{class:`${c.value}-tree-checkbox-inner`},null)}),maxTagPlaceholder:e.maxTagPlaceholder||o.maxTagPlaceholder,placement:S.value,showArrow:Z||Q}),fl(fl({},o),{treeCheckable:()=>Sr("span",{class:`${c.value}-tree-checkbox-inner`},null)}))))}}}),BG=PG,NG=fl(jG,{TreeNode:PG,SHOW_ALL:"SHOW_ALL",SHOW_PARENT:$G,SHOW_CHILD:SG,install:e=>(e.component(jG.name,jG),e.component(BG.displayName,BG),e)}),zG=()=>({format:String,showNow:Pa(),showHour:Pa(),showMinute:Pa(),showSecond:Pa(),use12Hours:Pa(),hourStep:Number,minuteStep:Number,secondStep:Number,hideDisabledOptions:Pa(),popupClassName:String,status:Ea()}),{TimePicker:_G,TimeRangePicker:LG}=function(e){const t=DN(e,fl(fl({},zG()),{order:{type:Boolean,default:!0}})),{TimePicker:n,RangePicker:o}=t;return{TimePicker:Ln({name:"ATimePicker",inheritAttrs:!1,props:fl(fl(fl(fl({},xN()),$N()),zG()),{addon:{type:Function}}),slots:Object,setup(e,t){let{slots:o,expose:r,emit:i,attrs:l}=t;const a=e,s=gy();Sp(!(o.addon||a.addon),"TimePicker","`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");const c=Ot();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)=>{i("update:value",e),i("change",e,t),s.onFieldChange()},d=e=>{i("update:open",e),i("openChange",e)},p=e=>{i("focus",e)},h=e=>{i("blur",e),s.onFieldBlur()},f=e=>{i("ok",e)};return()=>{const{id:e=s.id.value}=a;return Sr(n,hl(hl(hl({},l),kd(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:h,onOk:f}),o)}}}),TimeRangePicker:Ln({name:"ATimeRangePicker",inheritAttrs:!1,props:fl(fl(fl(fl({},xN()),SN()),zG()),{order:{type:Boolean,default:!0}}),slots:Object,setup(e,t){let{slots:n,expose:r,emit:i,attrs:l}=t;const a=e,s=Ot(),c=gy();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)=>{i("update:value",e),i("change",e,t),c.onFieldChange()},d=e=>{i("update:open",e),i("openChange",e)},p=e=>{i("focus",e)},h=e=>{i("blur",e),c.onFieldBlur()},f=(e,t)=>{i("panelChange",e,t)},g=e=>{i("ok",e)},m=(e,t,n)=>{i("calendarChange",e,t,n)};return()=>{const{id:e=c.id.value}=a;return Sr(o,hl(hl(hl({},l),kd(a,["onUpdate:open","onUpdate:value"])),{},{id:e,dropdownClassName:a.popupClassName,picker:"time",mode:void 0,ref:s,onChange:u,onOpenChange:d,onFocus:p,onBlur:h,onPanelChange:f,onOk:g,onCalendarChange:m}),n)}}})}}(RP),QG=fl(_G,{TimePicker:_G,TimeRangePicker:LG,install:e=>(e.component(_G.name,_G),e.component(LG.name,LG),e)}),HG=Ln({compatConfig:{MODE:3},name:"ATimelineItem",props:Jl({prefixCls:String,color:String,dot:xp.any,pending:Pa(),position:xp.oneOf($a("left","right","")).def(""),label:xp.any},{color:"blue",pending:!1}),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Cd("timeline",e),r=Xr((()=>({[`${o.value}-item`]:!0,[`${o.value}-item-pending`]:e.pending}))),i=Xr((()=>/blue|red|green|gray/.test(e.color||"")?void 0:e.color||"blue")),l=Xr((()=>({[`${o.value}-item-head`]:!0,[`${o.value}-item-head-${e.color||"blue"}`]:!i.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 Sr("li",{class:r.value},[c&&Sr("div",{class:`${o.value}-item-label`},[c]),Sr("div",{class:`${o.value}-item-tail`},null),Sr("div",{class:[l.value,!!u&&`${o.value}-item-head-custom`],style:{borderColor:i.value,color:i.value}},[u]),Sr("div",{class:`${o.value}-item-content`},[null===(s=n.default)||void 0===s?void 0:s.call(n)])])}}}),FG=e=>{const{componentCls:t}=e;return{[t]:fl(fl({},Yu(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%)"}}})}},WG=Ju("Timeline",(e=>{const t=nd(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[FG(t)]})),VG=Ln({compatConfig:{MODE:3},name:"ATimeline",inheritAttrs:!1,props:Jl({prefixCls:String,pending:xp.any,pendingDot:xp.any,reverse:Pa(),mode:xp.oneOf($a("left","alternate","right",""))},{reverse:!1,mode:""}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Cd("timeline",e),[l,a]=WG(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:h,mode:f}=e,g="boolean"==typeof d?null:d,m=da(null===(u=n.default)||void 0===u?void 0:u.call(n)),v=d?Sr(HG,{pending:!!d,dot:p||Sr(Hb,null,null)},{default:()=>[g]}):null;v&&m.push(v);const b=h?m.reverse():m,y=b.length,O=`${r.value}-item-last`,w=b.map(((e,t)=>Cr(e,{class:Tl([!h&&d?t===y-2?O:"":t===y-1?O:"",s(e,t)])}))),x=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))})),$=Tl(r.value,{[`${r.value}-pending`]:!!d,[`${r.value}-reverse`]:!!h,[`${r.value}-${f}`]:!!f&&!x,[`${r.value}-label`]:x,[`${r.value}-rtl`]:"rtl"===i.value},o.class,a.value);return l(Sr("ul",hl(hl({},o),{},{class:$}),[w]))}}});VG.Item=HG,VG.install=function(e){return e.component(VG.name,VG),e.component(HG.name,HG),e};const ZG={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 XG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){YG(e,t,n[t])}))}return e}function YG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KG=function(e,t){var n=XG({},e,t.attrs);return Sr(Rb,XG({},n,{icon:ZG}),null)};KG.displayName="EnterOutlined",KG.inheritAttrs=!1;const GG=KG,UG=e=>{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:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},qG=e=>{const{componentCls:t}=e;return{"a&, a":fl(fl({},Wu(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"}}})}},JG=e=>{const{componentCls:t}=e,n=UT(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"}}}},eU=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),tU=e=>{const{componentCls:t,sizeMarginHeadingVerticalStart:n}=e;return{[t]:fl(fl(fl(fl(fl(fl(fl(fl(fl({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"}},UG(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:Au[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}}),qG(e)),{[`\n ${t}-expand,\n ${t}-edit,\n ${t}-copy\n `]:fl(fl({},Wu(e)),{marginInlineStart:e.marginXXS})}),JG(e)),eU(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"}})}},nU=Ju("Typography",(e=>[tU(e)]),{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),oU=Ln({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:i}=Mt(e),l=it({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});wn((()=>e.value),(e=>{l.current=e}));const a=Ot();function s(e){a.value=e}function c(e){let{target:{value:t}}=e;l.current=t.replace(/[\r\n]/g,""),n("change",l.current)}function u(){l.inComposition=!0}function d(){l.inComposition=!1}function p(e){const{keyCode:t}=e;t===Tm.ENTER&&e.preventDefault(),l.inComposition||(l.lastKeyCode=t)}function h(t){const{keyCode:o,ctrlKey:r,altKey:i,metaKey:a,shiftKey:s}=t;l.lastKeyCode!==o||l.inComposition||r||i||a||s||(o===Tm.ENTER?(g(),n("end")):o===Tm.ESC&&(l.current=e.originContent,n("cancel")))}function f(){g()}function g(){n("save",l.current.trim())}Gn((()=>{var e;if(a.value){const t=null===(e=a.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[m,v]=nU(i);return()=>{const t=Tl({[`${i.value}`]:!0,[`${i.value}-edit-content`]:!0,[`${i.value}-rtl`]:"rtl"===e.direction,[e.component?`${i.value}-${e.component}`:""]:!0},r.class,v.value);return m(Sr("div",hl(hl({},r),{},{class:t}),[Sr(c_,{ref:s,maxlength:e.maxlength,value:l.current,onChange:c,onKeydown:p,onKeyup:h,onCompositionstart:u,onCompositionend:d,onBlur:f,rows:1,autoSize:void 0===e.autoSize||e.autoSize},null),o.enterIcon?o.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):Sr(GG,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}});let rU;const iU={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function lU(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 aU=(e,t,n,o,r)=>{rU||(rU=document.createElement("div"),rU.setAttribute("aria-hidden","true"),document.body.appendChild(rU));const{rows:i,suffix:l=""}=t,a=function(e){const t=document.createElement("div");lU(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*i*100)/100;lU(rU,e);const c=Ki({render:()=>Sr("div",{style:iU},[Sr("span",{style:iU},[n,l]),Sr("span",{style:iU},[o])])});function u(){return Math.round(100*rU.getBoundingClientRect().height)/100-.1<=s}if(c.mount(rU),u())return c.unmount(),{content:n,text:rU.innerHTML,ellipsis:!1};const d=Array.prototype.slice.apply(rU.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter((e=>{let{nodeType:t,data:n}=e;return 8!==t&&""!==n})),p=Array.prototype.slice.apply(rU.childNodes[0].childNodes[1].cloneNode(!0).childNodes);c.unmount();const h=[];rU.innerHTML="";const f=document.createElement("span");rU.appendChild(f);const g=document.createTextNode(r+l);function m(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 i=Math.floor((n+o)/2),l=t.slice(0,i);if(e.textContent=l,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()?m(e,t,i,o,i):m(e,t,n,i,r)}function v(e){if(3===e.nodeType){const n=e.textContent||"",o=document.createTextNode(n);return t=o,f.insertBefore(t,g),m(o,n)}var t;return{finished:!1,vNode:null}}return f.appendChild(g),p.forEach((e=>{rU.appendChild(e)})),d.some((e=>{const{finished:t,vNode:n}=v(e);return n&&h.push(n),t})),{content:h,text:rU.innerHTML,ellipsis:!0}},sU=Ln({name:"ATypography",inheritAttrs:!1,props:{prefixCls:String,direction:String,component:String},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Cd("typography",e),[l,a]=nU(r);return()=>{var t;const s=fl(fl({},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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(s,["prefixCls","direction","component"]);return l(Sr(d,hl(hl({},p),{},{class:Tl(r.value,{[`${r.value}-rtl`]:"rtl"===i.value},o.class,a.value)}),{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]}))}}}),cU={"text/plain":"Text","text/html":"Url",default:"Text"};function uU(e,t){let n,o,r,i,l,a=!1;t||(t={}),t.debug;try{if(o=(()=>{const e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement;const n=[];for(let o=0;o<e.rangeCount;o++)n.push(e.getRangeAt(o));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}})(),r=document.createRange(),i=document.getSelection(),l=document.createElement("span"),l.textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){window.clipboardData.clearData();const n=cU[t.format]||cU.default;window.clipboardData.setData(n,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(l),r.selectNodeContents(l),i.addRange(r),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");a=!0}catch(s){try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),a=!0}catch(c){n=function(e){const t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(n,e)}}finally{i&&("function"==typeof i.removeRange?i.removeRange(r):i.removeAllRanges()),l&&document.body.removeChild(l),o()}return a}const dU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};function pU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){hU(e,t,n[t])}))}return e}function hU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fU=function(e,t){var n=pU({},e,t.attrs);return Sr(Rb,pU({},n,{icon:dU}),null)};fU.displayName="CopyOutlined",fU.inheritAttrs=!1;const gU=fU,mU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function vU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){bU(e,t,n[t])}))}return e}function bU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yU=function(e,t){var n=vU({},e,t.attrs);return Sr(Rb,vU({},n,{icon:mU}),null)};yU.displayName="EditOutlined",yU.inheritAttrs=!1;const OU=yU,wU=zR("webkitLineClamp"),xU=zR("textOverflow"),$U=()=>({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}),SU=Ln({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:$U(),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i,direction:l}=Cd("typography",e),a=it({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:""}),s=Ot(),c=Ot(),u=Xr((()=>{const t=e.ellipsis;return t?fl({rows:1,expandable:!1},"object"==typeof t?t:null):{}}));function d(e){const{onExpand:t}=u.value;a.expanded=!0,null==t||t(e)}function p(t){t.preventDefault(),a.originContent=e.content,O(!0)}function h(e){f(e),O(!1)}function f(t){const{onChange:n}=v.value;t!==e.content&&(r("update:content",t),null==n||n(t))}function g(){var e,t;null===(t=(e=v.value).onCancel)||void 0===t||t.call(e),O(!1)}function m(t){t.preventDefault(),t.stopPropagation();const{copyable:n}=e,o=fl({},"object"==typeof n?n:null);var r;void 0===o.text&&(o.text=e.ellipsis||e.editable?e.content:null===(r=ia(s.value))||void 0===r?void 0:r.innerText),uU(o.text||""),a.copied=!0,Vt((()=>{o.onCopy&&o.onCopy(t),a.copyId=setTimeout((()=>{a.copied=!1}),3e3)}))}Gn((()=>{a.clientRendered=!0,$()})),Jn((()=>{clearTimeout(a.copyId),wa.cancel(a.rafId)})),wn([()=>u.value.rows,()=>e.content],(()=>{Vt((()=>{w()}))}),{flush:"post",deep:!0}),yn((()=>{void 0===e.content&&(Rs(!e.editable),Rs(!e.ellipsis))}));const v=Xr((()=>{const t=e.editable;return t?fl({},"object"==typeof t?t:null):{editing:!1}})),[b,y]=Qv(!1,{value:Xr((()=>v.value.editing))});function O(e){const{onStart:t}=v.value;e&&t&&t(),y(e)}function w(e){if(e){const{width:t,height:n}=e;if(!t||!n)return}wa.cancel(a.rafId),a.rafId=wa((()=>{$()}))}wn(b,(e=>{var t;e||null===(t=c.value)||void 0===t||t.focus()}),{flush:"post"});const x=Xr((()=>{const{rows:t,expandable:n,suffix:o,onEllipsis:r,tooltip:i}=u.value;return!o&&!i&&!(e.editable||e.copyable||n||r)&&(1===t?xU:wU)})),$=()=>{const{ellipsisText:t,isEllipsis:n}=a,{rows:o,suffix:r,onEllipsis:i}=u.value;if(!o||o<0||!ia(s.value)||a.expanded||void 0===e.content)return;if(x.value)return;const{content:l,text:c,ellipsis:d}=aU(ia(s.value),{rows:o,suffix:r},e.content,P(!0),"...");t===c&&a.isEllipsis===d||(a.ellipsisText=c,a.ellipsisContent=l,a.isEllipsis=d,n!==d&&i&&i(d))};function S(e){const{expandable:t,symbol:o}=u.value;if(!t)return null;if(!e&&(a.expanded||!a.isEllipsis))return null;const r=(n.ellipsisSymbol?n.ellipsisSymbol():o)||a.expandStr;return Sr("a",{key:"expand",class:`${i.value}-expand`,onClick:d,"aria-label":a.expandStr},[r])}function C(){if(!e.editable)return;const{tooltip:t,triggerType:o=["icon"]}=e.editable,r=n.editableIcon?n.editableIcon():Sr(OU,{role:"button"},null),l=n.editableTooltip?n.editableTooltip():a.editStr,s="string"==typeof l?l:"";return-1!==o.indexOf("icon")?Sr(xS,{key:"edit",title:!1===t?"":l},{default:()=>[Sr(_F,{ref:c,class:`${i.value}-edit`,onClick:p,"aria-label":s},{default:()=>[r]})]}):null}function k(){if(!e.copyable)return;const{tooltip:t}=e.copyable,o=a.copied?a.copiedStr:a.copyStr,r=n.copyableTooltip?n.copyableTooltip({copied:a.copied}):o,l="string"==typeof r?r:"",s=a.copied?Sr(Xb,null,null):Sr(gU,null,null),c=n.copyableIcon?n.copyableIcon({copied:!!a.copied}):s;return Sr(xS,{key:"copy",title:!1===t?"":r},{default:()=>[Sr(_F,{class:[`${i.value}-copy`,{[`${i.value}-copy-success`]:a.copied}],onClick:m,"aria-label":l},{default:()=>[c]})]})}function P(e){return[S(e),C(),k()].filter((e=>e))}return()=>{var t;const{triggerType:r=["icon"]}=v.value,c=e.ellipsis||e.editable?void 0!==e.content?e.content:null===(t=n.default)||void 0===t?void 0:t.call(n):n.default?n.default():e.content;return b.value?function(){const{class:t,style:r}=o,{maxlength:s,autoSize:c,onEnd:u}=v.value;return Sr(oU,{class:t,style:r,prefixCls:i.value,value:e.content,originContent:a.originContent,maxlength:s,autoSize:c,onSave:h,onChange:f,onCancel:g,onEnd:u,direction:l.value,component:e.component},{enterIcon:n.editableEnterIcon})}():Sr(ns,{componentName:"Text",children:t=>{const d=fl(fl({},e),o),{type:h,disabled:f,content:g,class:m,style:v}=d,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);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(d,["type","disabled","content","class","style"]),{rows:y,suffix:O,tooltip:$}=u.value,{edit:S,copy:C,copied:k,expand:M}=t;a.editStr=S,a.copyStr=C,a.copiedStr=k,a.expandStr=M;const T=kd(b,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),I=x.value,E=1===y&&I,A=y&&y>1&&I;let R=c;if(y&&a.isEllipsis&&!a.expanded&&!I){const{title:e}=b;let t=e||"";e||"string"!=typeof c&&"number"!=typeof c||(t=String(c)),t=null==t?void 0:t.slice(String(a.ellipsisContent||"").length),R=Sr(lr,null,[pt(a.ellipsisContent),Sr("span",{title:t,"aria-hidden":"true"},["..."]),O])}else R=Sr(lr,null,[c,O]);R=function(e,t){let{mark:n,code:o,underline:r,delete:i,strong:l,keyboard:a}=e,s=t;function c(e,t){if(!e)return;const n=function(){return s}();s=Sr(t,null,{default:()=>[n]})}return c(l,"strong"),c(r,"u"),c(i,"del"),c(o,"code"),c(n,"mark"),c(a,"kbd"),s}(e,R);const D=$&&y&&a.isEllipsis&&!a.expanded&&!I,j=n.ellipsisTooltip?n.ellipsisTooltip():$;return Sr(ga,{onResize:w,disabled:!y},{default:()=>[Sr(sU,hl({ref:s,class:[{[`${i.value}-${h}`]:h,[`${i.value}-disabled`]:f,[`${i.value}-ellipsis`]:y,[`${i.value}-single-line`]:1===y&&!a.isEllipsis,[`${i.value}-ellipsis-single-line`]:E,[`${i.value}-ellipsis-multiple-line`]:A},m],style:fl(fl({},v),{WebkitLineClamp:A?y:void 0}),"aria-label":void 0,direction:l.value,onClick:-1!==r.indexOf("text")?p:()=>{}},T),{default:()=>[D?Sr(xS,{title:!0===$?c:j},{default:()=>[Sr("span",null,[R])]}):R,P()]})]})}},null)}}}),CU=(e,t)=>{let{slots:n,attrs:o}=t;const r=fl(fl({},e),o),{ellipsis:i,rel:l}=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(r,["ellipsis","rel"]);Rs();const s=fl(fl({},a),{rel:void 0===l&&"_blank"===a.target?"noopener noreferrer":l,ellipsis:!!i,component:"a"});return delete s.navigate,Sr(SU,s,n)};CU.displayName="ATypographyLink",CU.inheritAttrs=!1,CU.props=kd(fl(fl({},$U()),{ellipsis:{type:Boolean,default:void 0}}),["component"]);const kU=CU,PU=(e,t)=>{let{slots:n,attrs:o}=t;const r=fl(fl(fl({},e),{component:"div"}),o);return Sr(SU,r,n)};PU.displayName="ATypographyParagraph",PU.inheritAttrs=!1,PU.props=kd($U(),["component"]);const MU=PU,TU=(e,t)=>{let{slots:n,attrs:o}=t;const{ellipsis:r}=e;Rs();const i=fl(fl(fl({},e),{ellipsis:r&&"object"==typeof r?kd(r,["expandable","rows"]):r,component:"span"}),o);return Sr(SU,i,n)};TU.displayName="ATypographyText",TU.inheritAttrs=!1,TU.props=fl(fl({},kd($U(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}});const IU=TU,EU=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}(1,2,3,4,5),AU=(e,t)=>{let{slots:n,attrs:o}=t;const{level:r=1}=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["level"]);let l;EU.includes(r)?l=`h${r}`:(Rs(),l="h1");const a=fl(fl(fl({},i),{component:l}),o);return Sr(SU,a,n)};AU.displayName="ATypographyTitle",AU.inheritAttrs=!1,AU.props=fl(fl({},kd($U(),["component","strong"])),{level:Number});const RU=AU;function DU(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch($pe){return t}}function jU(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(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),DU(t)):e.onSuccess(DU(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()}}}sU.Text=IU,sU.Title=RU,sU.Paragraph=MU,sU.Link=kU,sU.Base=SU,sU.install=function(e){return e.component(sU.name,sU),e.component(sU.Text.displayName,IU),e.component(sU.Title.displayName,RU),e.component(sU.Paragraph.displayName,MU),e.component(sU.Link.displayName,kU),e};const BU=+new Date;let NU=0;function zU(){return`vc-upload-${BU}-${++NU}`}const _U=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),o=e.name||"",r=e.type||"",i=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)?i===t.replace(/\/.*$/,""):r===t||!!/^\w+$/.test(t)}))}return!0},LU=(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())}))},QU=()=>({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 HU=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function l(e){try{s(o.next(e))}catch($pe){i($pe)}}function a(e){try{s(o.throw(e))}catch($pe){i($pe)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}s((o=o.apply(e,t||[])).next())}))};const FU=Ln({compatConfig:{MODE:3},name:"AjaxUploader",inheritAttrs:!1,props:QU(),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=Ot(zU()),l={},a=Ot();let s=!1;const c=(t,n)=>HU(this,void 0,void 0,(function*(){const{beforeUpload:o}=e;let r=t;if(o){try{r=yield o(t,n)}catch($pe){r=!1}if(!1===r)return{origin:t,parsedFile:null,action:null,data:null}}const{action:i}=e;let l;l="function"==typeof i?yield i(t):i;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:l}})),u=e=>{if(e){const t=e.uid?e.uid:e;l[t]&&l[t].abort&&l[t].abort(),delete l[t]}else Object.keys(l).forEach((e=>{l[e]&&l[e].abort&&l[e].abort(),delete l[e]}))};Gn((()=>{s=!0})),Jn((()=>{s=!1,u()}));const d=t=>{const n=[...t],o=n.map((e=>(e.uid=zU(),c(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:i}=t;if(!s)return;const{onStart:a,customRequest:c,name:u,headers:d,withCredentials:p,method:h}=e,{uid:f}=o,g=c||jU,m={action:r,filename:u,data:n,file:i,headers:d,withCredentials:p,method:h||"post",onProgress:t=>{const{onProgress:n}=e;null==n||n(t,i)},onSuccess:(t,n)=>{const{onSuccess:o}=e;null==o||o(t,i,n),delete l[f]},onError:(t,n)=>{const{onError:o}=e;null==o||o(t,n,i),delete l[f]}};a(o),l[f]=g(m)})(t)}))}))},p=t=>{const{accept:n,directory:o}=e,{files:r}=t.target,l=[...r].filter((e=>!o||_U(e,n)));d(l),i.value=zU()},h=t=>{const n=a.value;if(!n)return;const{onClick:o}=e;n.click(),o&&o(t)},f=e=>{"Enter"===e.key&&h(e)},g=t=>{const{multiple:n}=e;if(t.preventDefault(),"dragover"!==t.type)if(e.directory)LU(Array.prototype.slice.call(t.dataTransfer.items),d,(t=>_U(t,e.accept)));else{const o=Ew(Array.prototype.slice.call(t.dataTransfer.files),(t=>_U(t,e.accept)));let r=o[0];const i=o[1];!1===n&&(r=r.slice(0,1)),d(r),i.length&&e.onReject&&e.onReject(i)}};return r({abort:u}),()=>{var t;const{componentTag:r,prefixCls:l,disabled:s,id:c,multiple:u,accept:d,capture:m,directory:v,openFileDialogOnClick:b,onMouseenter:y,onMouseleave:O}=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),x={[l]:!0,[`${l}-disabled`]:s,[o.class]:!!o.class},$=v?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return Sr(r,hl(hl({},s?{}:{onClick:b?h:()=>{},onKeydown:b?f:()=>{},onMouseenter:y,onMouseleave:O,onDrop:g,onDragover:g,tabindex:"0"}),{},{class:x,role:"button",style:o.style}),{default:()=>[Sr("input",hl(hl(hl({},Lm(w,{aria:!0,data:!0})),{},{id:c,type:"file",ref:a,onClick:e=>e.stopPropagation(),onCancel:e=>e.stopPropagation(),key:i.value,style:{display:"none"},accept:d},$),{},{multiple:u,onChange:p},null!=m?{capture:m}:{}),null),null===(t=n.default)||void 0===t?void 0:t.call(n)]})}}});function WU(){}const VU=Ln({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:Jl(QU(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:WU,onError:WU,onSuccess:WU,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=Ot();return r({abort:e=>{var t;null===(t=i.value)||void 0===t||t.abort(e)}}),()=>Sr(FU,hl(hl(hl({},e),o),{},{ref:i}),n)}}),ZU={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 XU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){YU(e,t,n[t])}))}return e}function YU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KU=function(e,t){var n=XU({},e,t.attrs);return Sr(Rb,XU({},n,{icon:ZU}),null)};KU.displayName="PaperClipOutlined",KU.inheritAttrs=!1;const GU=KU,UU={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};function qU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){JU(e,t,n[t])}))}return e}function JU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eq=function(e,t){var n=qU({},e,t.attrs);return Sr(Rb,qU({},n,{icon:UU}),null)};eq.displayName="PictureTwoTone",eq.inheritAttrs=!1;const tq=eq,nq={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};function oq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){rq(e,t,n[t])}))}return e}function rq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iq=function(e,t){var n=oq({},e,t.attrs);return Sr(Rb,oq({},n,{icon:nq}),null)};iq.displayName="FileTwoTone",iq.inheritAttrs=!1;const lq=iq;function aq(){return{capture:Aa([Boolean,String]),type:Ea(),name:String,defaultFileList:Ia(),fileList:Ia(),action:Aa([String,Function]),directory:Pa(),data:Aa([Object,Function]),method:Ea(),headers:ka(),showUploadList:Aa([Boolean,Object]),multiple:Pa(),accept:String,beforeUpload:Ma(),onChange:Ma(),"onUpdate:fileList":Ma(),onDrop:Ma(),listType:Ea(),onPreview:Ma(),onDownload:Ma(),onReject:Ma(),onRemove:Ma(),remove:Ma(),supportServerRender:Pa(),disabled:Pa(),prefixCls:String,customRequest:Ma(),withCredentials:Pa(),openFileDialogOnClick:Pa(),locale:ka(),id:String,previewFile:Ma(),transformFile:Ma(),iconRender:Ma(),isImageUrl:Ma(),progress:ka(),itemRender:Ma(),maxCount:Number,height:Aa([Number,String]),removeIcon:Ma(),downloadIcon:Ma(),previewIcon:Ma()}}function sq(e){return fl(fl({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function cq(e,t){const n=[...t],o=n.findIndex((t=>{let{uid:n}=t;return n===e.uid}));return-1===o?n.push(e):n[o]=e,n}function uq(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter((t=>t[n]===e[n]))[0]}const dq=e=>0===e.indexOf("image/"),pq=200,hq={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 fq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){gq(e,t,n[t])}))}return e}function gq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mq=function(e,t){var n=fq({},e,t.attrs);return Sr(Rb,fq({},n,{icon:hq}),null)};mq.displayName="DownloadOutlined",mq.inheritAttrs=!1;const vq=mq,bq=Ln({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:{prefixCls:String,locale:ka(void 0),file:ka(),items:Ia(),listType:Ea(),isImgUrl:Ma(),showRemoveIcon:Pa(),showDownloadIcon:Pa(),showPreviewIcon:Pa(),removeIcon:Ma(),downloadIcon:Ma(),previewIcon:Ma(),iconRender:Ma(),actionIconRender:Ma(),itemRender:Ma(),onPreview:Ma(),onClose:Ma(),onDownload:Ma(),progress:ka()},setup(e,t){let{slots:n,attrs:o}=t;var r;const i=wt(!1),l=wt();Gn((()=>{l.value=setTimeout((()=>{i.value=!0}),300)})),Jn((()=>{clearTimeout(l.value)}));const a=wt(null===(r=e.file)||void 0===r?void 0:r.status);wn((()=>{var t;return null===(t=e.file)||void 0===t?void 0:t.status}),(e=>{"removed"!==e&&(a.value=e)}));const{rootPrefixCls:s}=Cd("upload",e),c=Xr((()=>im(`${s.value}-fade`)));return()=>{var t,r;const{prefixCls:l,locale:s,listType:u,file:d,items:p,progress:h,iconRender:f=n.iconRender,actionIconRender:g=n.actionIconRender,itemRender:m=n.itemRender,isImgUrl:v,showPreviewIcon:b,showRemoveIcon:y,showDownloadIcon:O,previewIcon:w=n.previewIcon,removeIcon:x=n.removeIcon,downloadIcon:$=n.downloadIcon,onPreview:S,onDownload:C,onClose:k}=e,{class:P,style:M}=o,T=f({file:d});let I=Sr("div",{class:`${l}-text-icon`},[T]);if("picture"===u||"picture-card"===u)if("uploading"===a.value||!d.thumbUrl&&!d.url){const e={[`${l}-list-item-thumbnail`]:!0,[`${l}-list-item-file`]:"uploading"!==a.value};I=Sr("div",{class:e},[T])}else{const e=(null==v?void 0:v(d))?Sr("img",{src:d.thumbUrl||d.url,alt:d.name,class:`${l}-list-item-image`,crossorigin:d.crossOrigin},null):T,t={[`${l}-list-item-thumbnail`]:!0,[`${l}-list-item-file`]:v&&!v(d)};I=Sr("a",{class:t,onClick:e=>S(d,e),href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[e])}const E={[`${l}-list-item`]:!0,[`${l}-list-item-${a.value}`]:!0},A="string"==typeof d.linkProps?JSON.parse(d.linkProps):d.linkProps,R=y?g({customIcon:x?x({file:d}):Sr(JK,null,null),callback:()=>k(d),prefixCls:l,title:s.removeFile}):null,D=O&&"done"===a.value?g({customIcon:$?$({file:d}):Sr(vq,null,null),callback:()=>C(d),prefixCls:l,title:s.downloadFile}):null,j="picture-card"!==u&&Sr("span",{key:"download-delete",class:[`${l}-list-item-actions`,{picture:"picture"===u}]},[D,R]),B=`${l}-list-item-name`,N=d.url?[Sr("a",hl(hl({key:"view",target:"_blank",rel:"noopener noreferrer",class:B,title:d.name},A),{},{href:d.url,onClick:e=>S(d,e)}),[d.name]),j]:[Sr("span",{key:"view",class:B,onClick:e=>S(d,e),title:d.name},[d.name]),j],z=b?Sr("a",{href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:d.url||d.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:e=>S(d,e),title:s.previewFile},[w?w({file:d}):Sr(f_,null,null)]):null,_="picture-card"===u&&"uploading"!==a.value&&Sr("span",{class:`${l}-list-item-actions`},[z,"done"===a.value&&D,R]),L=Sr("div",{class:E},[I,N,_,i.value&&Sr(ni,c.value,{default:()=>[kn(Sr("div",{class:`${l}-list-item-progress`},["percent"in d?Sr(fW,hl(hl({},h),{},{type:"line",percent:d.percent}),null):null]),[[yi,"uploading"===a.value]])]})]),Q={[`${l}-list-item-container`]:!0,[`${P}`]:!!P},H=d.response&&"string"==typeof d.response?d.response:(null===(t=d.error)||void 0===t?void 0:t.statusText)||(null===(r=d.error)||void 0===r?void 0:r.message)||s.uploadError,F="error"===a.value?Sr(xS,{title:H,getPopupContainer:e=>e.parentNode},{default:()=>[L]}):L;return Sr("div",{class:Q,style:M},[m?m({originNode:F,file:d,fileList:p,actions:{download:C.bind(null,d),preview:S.bind(null,d),remove:k.bind(null,d)}}):F])}}}),yq=(e,t)=>{let{slots:n}=t;var o;return da(null===(o=n.default)||void 0===o?void 0:o.call(n))[0]},Oq=Ln({compatConfig:{MODE:3},name:"AUploadList",props:Jl({listType:Ea(),onPreview:Ma(),onDownload:Ma(),onRemove:Ma(),items:Ia(),progress:ka(),prefixCls:Ea(),showRemoveIcon:Pa(),showDownloadIcon:Pa(),showPreviewIcon:Pa(),removeIcon:Ma(),downloadIcon:Ma(),previewIcon:Ma(),locale:ka(void 0),previewFile:Ma(),iconRender:Ma(),isImageUrl:Ma(),appendAction:Ma(),appendActionVisible:Pa(),itemRender:Ma()},{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:function(e){return new Promise((t=>{if(!e.type||!dq(e.type))return void t("");const n=document.createElement("canvas");n.width=pq,n.height=pq,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:i}=r;let l=pq,a=pq,s=0,c=0;e>i?(a=i*(pq/e),c=-(a-l)/2):(l=e*(pq/i),s=-(l-a)/2),o.drawImage(r,s,c,l,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 dq(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=wt(!1);Gn((()=>{r.value}));const i=wt([]);wn((()=>e.items),(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i.value=e.slice()}),{immediate:!0,deep:!0}),yn((()=>{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&&(i.value[o].thumbUrl=r,t=!0)})))})),t&&St(i)}));const l=(t,n)=>{if(e.onPreview)return null==n||n.preventDefault(),e.onPreview(t)},a=t=>{"function"==typeof e.onDownload?e.onDownload(t):t.url&&window.open(t.url)},s=t=>{var n;null===(n=e.onRemove)||void 0===n||n.call(e,t)},c=t=>{let{file:o}=t;const r=e.iconRender||n.iconRender;if(r)return r({file:o,listType:e.listType});const i="uploading"===o.status,l=e.isImageUrl&&e.isImageUrl(o)?Sr(tq,null,null):Sr(lq,null,null);let a=Sr(i?Hb:GU,null,null);return"picture"===e.listType?a=i?Sr(Hb,null,null):l:"picture-card"===e.listType&&(a=i?e.locale.uploading:l),a},u=e=>{const{customIcon:t,callback:n,prefixCls:o,title:r}=e,i={type:"text",size:"small",title:r,onClick:()=>{n()},class:`${o}-list-item-action`};return ha(t)?Sr(zC,i,{icon:()=>t}):Sr(zC,i,{default:()=>[Sr("span",null,[t])]})};o({handlePreview:l,handleDownload:a});const{prefixCls:d,rootPrefixCls:p}=Cd("upload",e),h=Xr((()=>({[`${d.value}-list`]:!0,[`${d.value}-list-${e.listType}`]:!0}))),f=Xr((()=>{const t=fl({},Wk(`${p.value}-motion-collapse`));delete t.onAfterAppear,delete t.onAfterEnter,delete t.onAfterLeave;const n=fl(fl({},lm(`${d.value}-${"picture-card"===e.listType?"animate-inline":"animate"}`)),{class:h.value,appear:r.value});return"picture-card"!==e.listType?fl(fl({},t),n):n}));return()=>{const{listType:t,locale:o,isImageUrl:r,showPreviewIcon:p,showRemoveIcon:h,showDownloadIcon:g,removeIcon:m,previewIcon:v,downloadIcon:b,progress:y,appendAction:O,itemRender:w,appendActionVisible:x}=e,$=null==O?void 0:O(),S=i.value;return Sr(zi,hl(hl({},f.value),{},{tag:"div"}),{default:()=>[S.map((e=>{const{uid:i}=e;return Sr(bq,{key:i,locale:o,prefixCls:d.value,file:e,items:S,progress:y,listType:t,isImgUrl:r,showPreviewIcon:p,showRemoveIcon:h,showDownloadIcon:g,onPreview:l,onDownload:a,onClose:s,removeIcon:m,previewIcon:v,downloadIcon:b,itemRender:w},fl(fl({},n),{iconRender:c,actionIconRender:u}))})),O?kn(Sr(yq,{key:"__ant_upload_appendAction"},{default:()=>$}),[[yi,!!x]]):null]})}}}),wq=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}}}}}},xq=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSize:r,lineHeight:i}=e,l=`${t}-list-item`,a=`${l}-actions`,s=`${l}-action`,c=Math.round(r*i);return{[`${t}-wrapper`]:{[`${t}-list`]:fl(fl({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{lineHeight:e.lineHeight,[l]:{position:"relative",height:e.lineHeight*r,marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:fl(fl({},Xu),{padding:`0 ${e.paddingXS}px`,lineHeight:i,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},[`${l}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:r+e.paddingXS,fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${s}`]:{opacity:1,color:e.colorText},[`${l}-error`]:{color:e.colorError,[`${l}-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:'""'}}})}}},$q=new Xc("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Sq=new Xc("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),Cq=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:$q},[`${n}-leave`]:{animationName:Sq}}},$q,Sq]},kq=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:r}=e,i=`${t}-list`,l=`${i}-item`;return{[`${t}-wrapper`]:{[`${i}${i}-picture, ${i}${i}-picture-card`]:{[l]:{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"},[`${l}-thumbnail`]:fl(fl({},Xu),{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"}}),[`${l}-progress`]:{bottom:r,width:`calc(100% - ${2*e.paddingSM}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:r}}}}}},Pq=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:r}=e,i=`${t}-list`,l=`${i}-item`,a=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:fl(fl({},{"&::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}},[`${i}${i}-picture-card`]:{[`${i}-item-container`]:{display:"inline-block",width:a,height:a,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[l]:{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:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-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}`}},[`${l}-actions, ${l}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new wu(r).setAlpha(.65).toRgbString(),"&:hover":{color:r}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${2*e.paddingXS}px)`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${2*e.paddingXS}px)`,paddingInlineStart:0}}})}},Mq=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Tq=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:fl(fl({},Yu(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Iq=Ju("Upload",(e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightLG:i}=e,l=nd(e,{uploadThumbnailSize:2*t,uploadProgressOffset:Math.round(n*o)/2+r,uploadPicCardSize:2.55*i});return[Tq(l),wq(l),kq(l),Pq(l),xq(l),Cq(l),Mq(l),Cx(l)]}));var Eq=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function l(e){try{s(o.next(e))}catch($pe){i($pe)}}function a(e){try{s(o.throw(e))}catch($pe){i($pe)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}s((o=o.apply(e,t||[])).next())}))};const Aq=`__LIST_IGNORE_${Date.now()}__`,Rq=Ln({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:Jl(aq(),{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 i=gy(),{prefixCls:l,direction:a,disabled:s}=Cd("upload",e),[c,u]=Iq(l),d=Ka(),p=Xr((()=>{var e;return null!==(e=s.value)&&void 0!==e?e:d.value})),[h,f]=Qv(e.defaultFileList||[],{value:Et(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)))}}),g=Ot("drop"),m=Ot(null);Gn((()=>{Sp(void 0!==e.fileList||void 0===o.value,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Sp(void 0===e.transformFile,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Sp(void 0===e.remove,"Upload","`remove` props is deprecated. Please use `remove` event.")}));const v=(t,n,o)=>{var r,l;let a=[...n];1===e.maxCount?a=a.slice(-1):e.maxCount&&(a=a.slice(0,e.maxCount)),f(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===(l=e.onChange)||void 0===l||l.call(e,s),i.onFieldChange()},b=(t,n)=>Eq(this,void 0,void 0,(function*(){const{beforeUpload:o,transformFile:r}=e;let i=t;if(o){const e=yield o(t,n);if(!1===e)return!1;if(delete t[Aq],e===Aq)return Object.defineProperty(t,Aq,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return r&&(i=yield r(i)),i})),y=e=>{const t=e.filter((e=>!e.file[Aq]));if(!t.length)return;const n=t.map((e=>sq(e.file)));let o=[...h.value];n.forEach((e=>{o=cq(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($pe){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}v(r,o)}))},O=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch($pe){}if(!uq(t,h.value))return;const o=sq(t);o.status="done",o.percent=100,o.response=e,o.xhr=n;const r=cq(o,h.value);v(o,r)},w=(e,t)=>{if(!uq(t,h.value))return;const n=sq(t);n.status="uploading",n.percent=e.percent;const o=cq(n,h.value);v(n,o,e)},x=(e,t,n)=>{if(!uq(n,h.value))return;const o=sq(n);o.error=e,o.response=t,o.status="error";const r=cq(o,h.value);v(o,r)},$=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 i=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,h.value);i&&(n=fl(fl({},t),{status:"removed"}),null===(o=h.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=m.value)||void 0===r||r.abort(n),v(n,i))}))},S=t=>{var n;g.value=t.type,"drop"===t.type&&(null===(n=e.onDrop)||void 0===n||n.call(e,t))};r({onBatchStart:y,onSuccess:O,onProgress:w,onError:x,fileList:h,upload:m});const[C]=os("Upload",ts.Upload,Xr((()=>e.locale))),k=(t,o)=>{const{removeIcon:r,previewIcon:i,downloadIcon:a,previewFile:s,onPreview:c,onDownload:u,isImageUrl:d,progress:f,itemRender:g,iconRender:m,showUploadList:v}=e,{showDownloadIcon:b,showPreviewIcon:y,showRemoveIcon:O}="boolean"==typeof v?{}:v;return v?Sr(Oq,{prefixCls:l.value,listType:e.listType,items:h.value,previewFile:s,onPreview:c,onDownload:u,onRemove:$,showRemoveIcon:!p.value&&O,showPreviewIcon:y,showDownloadIcon:b,removeIcon:r,previewIcon:i,downloadIcon:a,iconRender:m,locale:C.value,isImageUrl:d,progress:f,itemRender:g,appendActionVisible:o,appendAction:t},fl({},n)):null==t?void 0:t()};return()=>{var t,r,s;const{listType:d,type:f}=e,{class:v,style:$}=o,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["class","style"]),P=fl(fl(fl({onBatchStart:y,onError:x,onProgress:w,onSuccess:O},C),e),{id:null!==(t=e.id)&&void 0!==t?t:i.id.value,prefixCls:l.value,beforeUpload:b,onChange:void 0,disabled:p.value});delete P.remove,n.default&&!p.value||delete P.id;const M={[`${l.value}-rtl`]:"rtl"===a.value};if("drag"===f){const e=Tl(l.value,{[`${l.value}-drag`]:!0,[`${l.value}-drag-uploading`]:h.value.some((e=>"uploading"===e.status)),[`${l.value}-drag-hover`]:"dragover"===g.value,[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:"rtl"===a.value},o.class,u.value);return c(Sr("span",hl(hl({},o),{},{class:Tl(`${l.value}-wrapper`,M,v,u.value)}),[Sr("div",{class:e,onDrop:S,onDragover:S,onDragleave:S,style:o.style},[Sr(VU,hl(hl({},P),{},{ref:m,class:`${l.value}-btn`}),hl({default:()=>[Sr("div",{class:`${l.value}-drag-container`},[null===(r=n.default)||void 0===r?void 0:r.call(n)])]},n))]),k()]))}const T=Tl(l.value,{[`${l.value}-select`]:!0,[`${l.value}-select-${d}`]:!0,[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:"rtl"===a.value}),I=oa(null===(s=n.default)||void 0===s?void 0:s.call(n)),E=e=>Sr("div",{class:T,style:e},[Sr(VU,hl(hl({},P),{},{ref:m}),n)]);return c("picture-card"===d?Sr("span",hl(hl({},o),{},{class:Tl(`${l.value}-wrapper`,`${l.value}-picture-card-wrapper`,M,o.class,u.value)}),[k(E,!(!I||!I.length))]):Sr("span",hl(hl({},o),{},{class:Tl(`${l.value}-wrapper`,M,o.class,u.value)}),[E(I&&I.length?void 0:{display:"none"}),k()]))}}});var Dq=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const jq=Ln({compatConfig:{MODE:3},name:"AUploadDragger",inheritAttrs:!1,props:aq(),setup(e,t){let{slots:n,attrs:o}=t;return()=>{const{height:t}=e,r=Dq(e,["height"]),{style:i}=o,l=Dq(o,["style"]),a=fl(fl(fl({},r),l),{type:"drag",style:fl(fl({},i),{height:"number"==typeof t?`${t}px`:t})});return Sr(Rq,a,n)}}}),Bq=jq,Nq=fl(Rq,{Dragger:jq,LIST_IGNORE:Aq,install:e=>(e.component(Rq.name,Rq),e.component(jq.name,jq),e)});function zq(){return window.devicePixelRatio||1}function _q(e,t,n,o){e.translate(t,n),e.rotate(Math.PI/180*Number(o)),e.translate(-t,-n)}function Lq(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{window:o=hT}=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);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(n,["window"]);let i;const l=uT((()=>o&&"MutationObserver"in o)),a=()=>{i&&(i.disconnect(),i=void 0)},s=wn((()=>cT(e)),(e=>{a(),l.value&&o&&e&&(i=new MutationObserver(t),i.observe(e,r))}),{immediate:!0}),c=()=>{a(),s()};return sT(c),{isSupported:l,stop:c}}const Qq=Sa(Ln({name:"AWatermark",inheritAttrs:!1,props:Jl({zIndex:Number,rotate:Number,width:Number,height:Number,image:String,content:Aa([String,Array]),font:ka(),rootClassName:String,gap:Ia(),offset:Ia()},{zIndex:9,rotate:-22,font:{},gap:[100,100]}),setup(e,t){let{slots:n,attrs:o}=t;const[,r]=cd(),i=wt(),l=wt(),a=wt(!1),s=Xr((()=>{var t,n;return null!==(n=null===(t=e.gap)||void 0===t?void 0:t[0])&&void 0!==n?n:100})),c=Xr((()=>{var t,n;return null!==(n=null===(t=e.gap)||void 0===t?void 0:t[1])&&void 0!==n?n:100})),u=Xr((()=>s.value/2)),d=Xr((()=>c.value/2)),p=Xr((()=>{var t,n;return null!==(n=null===(t=e.offset)||void 0===t?void 0:t[0])&&void 0!==n?n:u.value})),h=Xr((()=>{var t,n;return null!==(n=null===(t=e.offset)||void 0===t?void 0:t[1])&&void 0!==n?n:d.value})),f=Xr((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.fontSize)&&void 0!==n?n:r.value.fontSizeLG})),g=Xr((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.fontWeight)&&void 0!==n?n:"normal"})),m=Xr((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.fontStyle)&&void 0!==n?n:"normal"})),v=Xr((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.fontFamily)&&void 0!==n?n:"sans-serif"})),b=Xr((()=>{var t,n;return null!==(n=null===(t=e.font)||void 0===t?void 0:t.color)&&void 0!==n?n:r.value.colorFill})),y=Xr((()=>{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=p.value-u.value,r=h.value-d.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=()=>{l.value&&(l.value.remove(),l.value=void 0)},w=(e,t)=>{var n,o;i.value&&l.value&&(a.value=!0,l.value.setAttribute("style",(o=fl(fl({},y.value),{backgroundImage:`url('${e}')`,backgroundSize:2*(s.value+t)+"px"}),Object.keys(o).map((e=>`${function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}(e)}: ${o[e]};`)).join(" "))),null===(n=i.value)||void 0===n||n.append(l.value),setTimeout((()=>{a.value=!1})))},x=(t,n,o,r,i)=>{const l=zq(),a=e.content,s=Number(f.value)*l;t.font=`${m.value} normal ${g.value} ${s}px/${i}px ${v.value}`,t.fillStyle=b.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*l))}))},$=()=>{var t;const n=document.createElement("canvas"),o=n.getContext("2d"),r=e.image,i=null!==(t=e.rotate)&&void 0!==t?t:-22;if(o){l.value||(l.value=document.createElement("div"));const t=zq(),[a,u]=(t=>{let n=120,o=64;const r=e.content,i=e.image,l=e.width,a=e.height;if(!i&&t.measureText){t.font=`${Number(f.value)}px ${v.value}`;const e=Array.isArray(r)?r:[r],i=e.map((e=>t.measureText(e).width));n=Math.ceil(Math.max(...i)),o=Number(f.value)*e.length+3*(e.length-1)}return[null!=l?l:n,null!=a?a:o]})(o),d=(s.value+a)*t,p=(c.value+u)*t;n.setAttribute("width",2*d+"px"),n.setAttribute("height",2*p+"px");const h=s.value*t/2,g=c.value*t/2,m=a*t,b=u*t,y=(m+s.value*t)/2,O=(b+c.value*t)/2,$=h+d,S=g+p,C=y+d,k=O+p;if(o.save(),_q(o,y,O,i),r){const e=new Image;e.onload=()=>{o.drawImage(e,h,g,m,b),o.restore(),_q(o,C,k,i),o.drawImage(e,$,S,m,b),w(n.toDataURL(),a)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=r}else x(o,h,g,m,b),o.restore(),_q(o,C,k,i),x(o,$,S,m,b),w(n.toDataURL(),a)}};return Gn((()=>{$()})),wn((()=>[e,r.value.colorFill,r.value.fontSizeLG]),(()=>{$()}),{deep:!0,flush:"post"}),Jn((()=>{O()})),Lq(i,(e=>{a.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,l.value)&&(O(),$())}))}),{attributes:!0,subtree:!0,childList:!0,attributeFilter:["style","class"]}),()=>{var t;return Sr("div",hl(hl({},o),{},{ref:i,class:[o.class,e.rootClassName],style:[{position:"relative"},o.style]}),[null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}));function Hq(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Fq(e){return{backgroundColor:e.bgColorSelected,boxShadow:e.boxShadow}}const Wq=fl({overflow:"hidden"},Xu),Vq=e=>{const{componentCls:t}=e;return{[t]:fl(fl(fl(fl(fl({},Yu(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":fl(fl({},Fq(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":fl({minHeight:e.controlHeight-2*e.segmentedContainerPadding,lineHeight:e.controlHeight-2*e.segmentedContainerPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`},Wq),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:fl(fl({},Fq(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}}}),Hq(`&-disabled ${t}-item`,e)),Hq(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},Zq=Ju("Segmented",(e=>{const{lineWidthBold:t,lineWidth:n,colorTextLabel:o,colorText:r,colorFillSecondary:i,colorBgLayout:l,colorBgElevated:a}=e,s=nd(e,{segmentedPaddingHorizontal:e.controlPaddingHorizontal-n,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-n,segmentedContainerPadding:t,labelColor:o,labelColorHover:r,bgColor:l,bgColorHover:i,bgColorSelected:a});return[Vq(s)]})),Xq=e=>e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null,Yq=e=>void 0!==e?`${e}px`:void 0,Kq=Ln({props:{value:Ta(),getValueIndex:Ta(),prefixCls:Ta(),motionName:Ta(),onMotionStart:Ta(),onMotionEnd:Ta(),direction:Ta(),containerRef:Ta()},emits:["motionStart","motionEnd"],setup(e,t){let{emit:n}=t;const o=Ot(),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},i=Ot(null),l=Ot(null);wn((()=>e.value),((e,t)=>{const o=r(t),a=r(e),s=Xq(o),c=Xq(a);i.value=s,l.value=c,n(o&&a?"motionStart":"motionEnd")}),{flush:"post"});const a=Xr((()=>{var t,n;return"rtl"===e.direction?Yq(-(null===(t=i.value)||void 0===t?void 0:t.right)):Yq(null===(n=i.value)||void 0===n?void 0:n.left)})),s=Xr((()=>{var t,n;return"rtl"===e.direction?Yq(-(null===(t=l.value)||void 0===t?void 0:t.right)):Yq(null===(n=l.value)||void 0===n?void 0:n.left)}));let c;const u=e=>{clearTimeout(c),Vt((()=>{e&&(e.style.transform="translateX(var(--thumb-start-left))",e.style.width="var(--thumb-start-width)")}))},d=t=>{c=setTimeout((()=>{t&&(Hk(t,`${e.motionName}-appear-active`),t.style.transform="translateX(var(--thumb-active-left))",t.style.width="var(--thumb-active-width)")}))},p=t=>{i.value=null,l.value=null,t&&(t.style.transform=null,t.style.width=null,Fk(t,`${e.motionName}-appear-active`)),n("motionEnd")},h=Xr((()=>{var e,t;return{"--thumb-start-left":a.value,"--thumb-start-width":Yq(null===(e=i.value)||void 0===e?void 0:e.width),"--thumb-active-left":s.value,"--thumb-active-width":Yq(null===(t=l.value)||void 0===t?void 0:t.width)}}));return Jn((()=>{clearTimeout(c)})),()=>{const t={ref:o,style:h.value,class:[`${e.prefixCls}-thumb`]};return Sr(ni,{appear:!0,onBeforeEnter:u,onEnter:d,onAfterEnter:p},{default:()=>[i.value&&l.value?Sr("div",t,null):null]})}}}),Gq=(e,t)=>{let{slots:n,emit:o}=t;const{value:r,disabled:i,payload:l,title:a,prefixCls:s,label:c=n.label,checked:u,className:d}=e;return Sr("label",{class:Tl({[`${s}-item-disabled`]:i},d)},[Sr("input",{class:`${s}-item-input`,type:"radio",disabled:i,checked:u,onChange:e=>{i||o("change",e,r)}},null),Sr("div",{class:`${s}-item-label`,title:"string"==typeof a?a:""},["function"==typeof c?c({value:r,disabled:i,payload:l,title:a}):null!=c?c:r])])};Gq.inheritAttrs=!1;const Uq=Sa(Ln({name:"ASegmented",inheritAttrs:!1,props:Jl({prefixCls:String,options:Ia(),block:Pa(),disabled:Pa(),size:Ea(),value:fl(fl({},Aa([String,Number])),{required:!0}),motionName:String,onChange:Ma(),"onUpdate:value":Ma()},{options:[],motionName:"thumb-motion"}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:i,direction:l,size:a}=Cd("segmented",e),[s,c]=Zq(i),u=wt(),d=wt(!1),p=Xr((()=>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})))),h=(t,o)=>{e.disabled||(n("update:value",o),n("change",o))};return()=>{const t=i.value;return s(Sr("div",hl(hl({},r),{},{class:Tl(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"===l.value},r.class),ref:u}),[Sr("div",{class:`${t}-group`},[Sr(Kq,{containerRef:u,prefixCls:t,value:e.value,motionName:`${t}-${e.motionName}`,direction:l.value,getValueIndex:e=>p.value.findIndex((t=>t.value===e)),onMotionStart:()=>{d.value=!0},onMotionEnd:()=>{d.value=!1}},null),p.value.map((n=>Sr(Gq,hl(hl({key:n.value,prefixCls:t,checked:n.value===e.value,onChange:h},n),{},{className:Tl(n.className,`${t}-item`,{[`${t}-item-selected`]:n.value===e.value&&!d.value}),disabled:!!e.disabled||!!n.disabled}),o)))])]))}}})),qq=Ju("QRCode",(e=>(e=>{const{componentCls:t}=e;return{[t]:fl(fl({},Yu(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"}}})(nd(e,{QRCodeExpiredTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"})))),Jq={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 eJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){tJ(e,t,n[t])}))}return e}function tJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nJ=function(e,t){var n=eJ({},e,t.attrs);return Sr(Rb,eJ({},n,{icon:Jq}),null)};nJ.displayName="DashOutlined",nJ.inheritAttrs=!1;const oJ=nJ,rJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm72-112c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48zm400-188h-59.3c-2.6 0-5 1.2-6.5 3.3L763.7 538.1l-49.9-68.8a7.92 7.92 0 00-6.5-3.3H648c-6.5 0-10.3 7.4-6.5 12.7l109.2 150.7a16.1 16.1 0 0026 0l165.8-228.7c3.8-5.3 0-12.7-6.5-12.7zm-44 306h-64.2c-5.5 0-10.6 2.9-13.6 7.5a352.2 352.2 0 01-49.8 62.2A355.92 355.92 0 01651.1 840a355 355 0 01-138.7 27.9c-48.1 0-94.8-9.4-138.7-27.9a355.92 355.92 0 01-113.3-76.3A353.06 353.06 0 01184 650.5c-18.6-43.8-28-90.5-28-138.5s9.4-94.7 28-138.5c17.9-42.4 43.6-80.5 76.4-113.2 32.8-32.7 70.9-58.4 113.3-76.3a355 355 0 01138.7-27.9c48.1 0 94.8 9.4 138.7 27.9 42.4 17.9 80.5 43.6 113.3 76.3 19 19 35.6 39.8 49.8 62.2 2.9 4.7 8.1 7.5 13.6 7.5H892c6 0 9.8-6.3 7.2-11.6C828.8 178.5 684.7 82 517.7 80 278.9 77.2 80.5 272.5 80 511.2 79.5 750.1 273.3 944 512.4 944c169.2 0 315.6-97 386.7-238.4A8 8 0 00892 694z"}}]},name:"issues-close",theme:"outlined"};function iJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){lJ(e,t,n[t])}))}return e}function lJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aJ=function(e,t){var n=iJ({},e,t.attrs);return Sr(Rb,iJ({},n,{icon:rJ}),null)};aJ.displayName="IssuesCloseOutlined",aJ.inheritAttrs=!1;const sJ=aJ,cJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};function uJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){dJ(e,t,n[t])}))}return e}function dJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pJ=function(e,t){var n=uJ({},e,t.attrs);return Sr(Rb,uJ({},n,{icon:cJ}),null)};pJ.displayName="LogoutOutlined",pJ.inheritAttrs=!1;const hJ=pJ,fJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"};function gJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){mJ(e,t,n[t])}))}return e}function mJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vJ=function(e,t){var n=gJ({},e,t.attrs);return Sr(Rb,gJ({},n,{icon:fJ}),null)};vJ.displayName="RedoOutlined",vJ.inheritAttrs=!1;const bJ=vJ,yJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};function OJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){wJ(e,t,n[t])}))}return e}function wJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xJ=function(e,t){var n=OJ({},e,t.attrs);return Sr(Rb,OJ({},n,{icon:yJ}),null)};xJ.displayName="ReloadOutlined",xJ.inheritAttrs=!1;const $J=xJ,SJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"};function CJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){kJ(e,t,n[t])}))}return e}function kJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var PJ=function(e,t){var n=CJ({},e,t.attrs);return Sr(Rb,CJ({},n,{icon:SJ}),null)};PJ.displayName="ShareAltOutlined",PJ.inheritAttrs=!1;const MJ=PJ,TJ={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-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"};function IJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){EJ(e,t,n[t])}))}return e}function EJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AJ=function(e,t){var n=IJ({},e,t.attrs);return Sr(Rb,IJ({},n,{icon:TJ}),null)};AJ.displayName="StopOutlined",AJ.inheritAttrs=!1;const RJ=AJ,DJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};function jJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){BJ(e,t,n[t])}))}return e}function BJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NJ=function(e,t){var n=jJ({},e,t.attrs);return Sr(Rb,jJ({},n,{icon:DJ}),null)};NJ.displayName="SyncOutlined",NJ.inheritAttrs=!1;const zJ=NJ,_J={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",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:"unordered-list",theme:"outlined"};function LJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){QJ(e,t,n[t])}))}return e}function QJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HJ=function(e,t){var n=LJ({},e,t.attrs);return Sr(Rb,LJ({},n,{icon:_J}),null)};HJ.displayName="UnorderedListOutlined",HJ.inheritAttrs=!1;const FJ=HJ,WJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};function VJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){ZJ(e,t,n[t])}))}return e}function ZJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XJ=function(e,t){var n=VJ({},e,t.attrs);return Sr(Rb,VJ({},n,{icon:WJ}),null)};XJ.displayName="WarningOutlined",XJ.inheritAttrs=!1;const YJ=XJ,KJ=()=>({size:{type:Number,default:160},value:{type:String,required:!0},type:Ea("canvas"),color:String,bgColor:String,includeMargin:Boolean,imageSettings:ka()});
/**
* @license QR Code generator library (TypeScript)
* Copyright (c) Project Nayuki.
* SPDX-License-Identifier: MIT
*/
var GJ,UJ;!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 l,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(l=s;;l++){const n=8*t.getNumDataCodewords(l,o),r=i.getTotalBits(e,l);if(r<=n){a=r;break}if(l>=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(l,n)&&(o=n);const p=[];for(const t of e){n(t.mode.modeBits,4,p),n(t.numChars,t.mode.numCharCountBits(l),p);for(const e of t.getData())p.push(e)}r(p.length==a);const h=8*t.getNumDataCodewords(l,o);r(p.length<=h),n(0,Math.min(4,h-p.length),p),n(0,(8-p.length%8)%8,p),r(p.length%8==0);for(let t=236;p.length<h;t^=253)n(t,8,p);const f=[];for(;8*f.length<p.length;)f.push(0);return p.forEach(((e,t)=>f[t>>>3]|=e<<7-(7&t))),new t(l,o,f,u)}constructor(e,n,o,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;const l=[];for(let t=0;t<this.size;t++)l.push(!1);for(let t=0;t<this.size;t++)this.modules.push(l.slice()),this.isFunction.push(l.slice());this.drawFunctionPatterns();const a=this.addEccAndInterleave(o);if(this.drawCodewords(a),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(i=t,e=n),this.applyMask(t)}}r(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let n=0;n<this.size;n++)this.setFunctionModule(6,n,n%2==0),this.setFunctionModule(n,6,n%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let o=0;o<t;o++)0==n&&0==o||0==n&&o==t-1||n==t-1&&0==o||this.drawAlignmentPattern(e[n],e[o]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let o=0;o<10;o++)n=n<<1^1335*(n>>>9);const i=21522^(t<<10|n);r(i>>>15==0);for(let r=0;r<=5;r++)this.setFunctionModule(8,r,o(i,r));this.setFunctionModule(8,7,o(i,6)),this.setFunctionModule(8,8,o(i,7)),this.setFunctionModule(7,8,o(i,8));for(let r=9;r<15;r++)this.setFunctionModule(14-r,8,o(i,r));for(let r=0;r<8;r++)this.setFunctionModule(this.size-1-r,8,o(i,r));for(let r=8;r<15;r++)this.setFunctionModule(8,this.size-15+r,o(i,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,i=Math.floor(n/3);this.setFunctionModule(r,i,e),this.setFunctionModule(i,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)),i=e+o,l=t+n;0<=i&&i<this.size&&0<=l&&l<this.size&&this.setFunctionModule(i,l,2!=r&&4!=r)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let o=-2;o<=2;o++)this.setFunctionModule(e+o,t+n,1!=Math.max(Math.abs(o),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,o=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,o))throw new RangeError("Invalid argument");const i=t.NUM_ERROR_CORRECTION_BLOCKS[o.ordinal][n],l=t.ECC_CODEWORDS_PER_BLOCK[o.ordinal][n],a=Math.floor(t.getNumRawDataModules(n)/8),s=i-a%i,c=Math.floor(a/i),u=[],d=t.reedSolomonComputeDivisor(l);for(let r=0,h=0;r<i;r++){const n=e.slice(h,h+c-l+(r<s?0:1));h+=n.length;const o=t.reedSolomonComputeRemainder(n,d);r<s&&n.push(0),u.push(n.concat(o))}const p=[];for(let t=0;t<u[0].length;t++)u.forEach(((e,n)=>{(t!=c-l||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<this.size;r++)for(let i=0;i<2;i++){const l=t-i,a=0==(t+1&2)?this.size-1-r:r;!this.isFunction[a][l]&&n<8*e.length&&(this.modules[a][l]=o(e[n>>>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;t<this.size;t++)for(let n=0;n<this.size;n++){let o;switch(e){case 0:o=(n+t)%2==0;break;case 1:o=t%2==0;break;case 2:o=n%3==0;break;case 3:o=(n+t)%3==0;break;case 4:o=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:o=n*t%2+n*t%3==0;break;case 6:o=(n*t%2+n*t%3)%2==0;break;case 7:o=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&o&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let r=0;r<this.size;r++){let n=!1,o=0;const i=[0,0,0,0,0,0,0];for(let l=0;l<this.size;l++)this.modules[r][l]==n?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[r][l],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,i)*t.PENALTY_N3}for(let r=0;r<this.size;r++){let n=!1,o=0;const i=[0,0,0,0,0,0,0];for(let l=0;l<this.size;l++)this.modules[l][r]==n?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[l][r],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,i)*t.PENALTY_N3}for(let r=0;r<this.size-1;r++)for(let n=0;n<this.size-1;n++){const o=this.modules[r][n];o==this.modules[r][n+1]&&o==this.modules[r+1][n]&&o==this.modules[r+1][n+1]&&(e+=t.PENALTY_N2)}let n=0;for(const t of this.modules)n=t.reduce(((e,t)=>e+(t?1:0)),n);const o=this.size*this.size,i=Math.ceil(Math.abs(20*n-10*o)/o)-1;return r(0<=i&&i<=9),e+=i*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.length<e;o-=t)n.splice(1,0,o);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.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;t<e-1;t++)n.push(0);n.push(1);let o=1;for(let r=0;r<e;r++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],o),e+1<n.length&&(n[e]^=n[e+1]);o=t.reedSolomonMultiply(o,2)}return n}static reedSolomonComputeRemainder(e,n){const o=n.map((e=>0));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 i{static makeBytes(e){const t=[];for(const o of e)n(o,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");const t=[];for(let o=0;o<e.length;){const r=Math.min(e.length-o,3);n(parseInt(e.substring(o,o+r),10),3*r+1,t),o+=r}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");const t=[];let o;for(o=0;o+2<=e.length;o+=2){let r=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(o));r+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(o+1)),n(r,11,t)}return o<e.length&&n(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(o)),6,t),new i(i.Mode.ALPHANUMERIC,e.length,t)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){const t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)n(e,8,t);else if(e<16384)n(2,2,t),n(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,t),n(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const o of e){const e=o.mode.numCharCountBits(t);if(o.numChars>=1<<e)return 1/0;n+=4+e+o.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);const t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2);return t}}i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=i}(GJ||(GJ={})),function(e){class t{constructor(e,t){this.ordinal=e,this.formatBits=t}}t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t}((UJ=GJ||(GJ={})).QrCode||(UJ.QrCode={})),function(e){!function(e){class t{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t}(e.QrSegment||(e.QrSegment={}))}(GJ||(GJ={}));const qJ=GJ,JJ={L:qJ.QrCode.Ecc.LOW,M:qJ.QrCode.Ecc.MEDIUM,Q:qJ.QrCode.Ecc.QUARTILE,H:qJ.QrCode.Ecc.HIGH},e0=128,t0="L",n0="#FFFFFF",o0="#000000",r0=!1;function i0(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=[];return e.forEach((function(e,o){let r=null;e.forEach((function(i,l){if(!i&&null!==r)return n.push(`M${r+t} ${o+t}h${l-r}v1H${r+t}z`),void(r=null);if(l!==e.length-1)i&&null===r&&(r=l);else{if(!i)return;null===r?n.push(`M${l+t},${o+t} h1v1H${l+t}z`):n.push(`M${r+t},${o+t} h${l+1-r}v1H${r+t}z`)}}))})),n.join("")}function l0(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function a0(e,t,n,o){if(null==o)return null;const r=e.length+2*n,i=Math.floor(.1*t),l=r/t,a=(o.width||i)*l,s=(o.height||i)*l,c=null==o.x?e.length/2-a/2:o.x*l,u=null==o.y?e.length/2-s/2:o.y*l;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 s0(e,t){return null!=t?Math.floor(t):e?4:0}const c0=function(){try{(new Path2D).addPath(new Path2D)}catch($pe){return!1}return!0}(),u0=Ln({name:"QRCodeCanvas",inheritAttrs:!1,props:fl(fl({},KJ()),{level:String,bgColor:String,fgColor:String,marginSize:Number}),setup(e,t){let{attrs:n,expose:o}=t;const r=Xr((()=>{var t;return null===(t=e.imageSettings)||void 0===t?void 0:t.src})),i=wt(null),l=wt(null),a=wt(!1);return o({toDataURL:(e,t)=>{var n;return null===(n=i.value)||void 0===n?void 0:n.toDataURL(e,t)}}),yn((()=>{const{value:t,size:n=e0,level:o=t0,bgColor:r=n0,fgColor:s=o0,includeMargin:c=r0,marginSize:u,imageSettings:d}=e;if(null!=i.value){const e=i.value,p=e.getContext("2d");if(!p)return;let h=qJ.QrCode.encodeText(t,JJ[o]).getModules();const f=s0(c,u),g=h.length+2*f,m=a0(h,n,f,d),v=l.value,b=a.value&&null!=m&&null!==v&&v.complete&&0!==v.naturalHeight&&0!==v.naturalWidth;b&&null!=m.excavation&&(h=l0(h,m.excavation));const y=window.devicePixelRatio||1;e.height=e.width=n*y;const O=n/g*y;p.scale(O,O),p.fillStyle=r,p.fillRect(0,0,g,g),p.fillStyle=s,c0?p.fill(new Path2D(i0(h,f))):h.forEach((function(e,t){e.forEach((function(e,n){e&&p.fillRect(n+f,t+f,1,1)}))})),b&&p.drawImage(v,m.x+f,m.y+f,m.w,m.h)}}),{flush:"post"}),wn(r,(()=>{a.value=!1})),()=>{var t;const o=null!==(t=e.size)&&void 0!==t?t:e0,s={height:`${o}px`,width:`${o}px`};let c=null;return null!=r.value&&(c=Sr("img",{src:r.value,key:r.value,style:{display:"none"},onLoad:()=>{a.value=!0},ref:l},null)),Sr(lr,null,[Sr("canvas",hl(hl({},n),{},{style:[s,n.style],ref:i}),null),c])}}}),d0=Ln({name:"QRCodeSVG",inheritAttrs:!1,props:fl(fl({},KJ()),{color:String,level:String,bgColor:String,fgColor:String,marginSize:Number,title:String}),setup(e){let t=null,n=null,o=null,r=null,i=null,l=null;return yn((()=>{const{value:a,size:s=e0,level:c=t0,includeMargin:u=r0,marginSize:d,imageSettings:p}=e;t=qJ.QrCode.encodeText(a,JJ[c]).getModules(),n=s0(u,d),o=t.length+2*n,r=a0(t,s,n,p),null!=p&&null!=r&&(null!=r.excavation&&(t=l0(t,r.excavation)),l=Sr("image",{"xlink:href":p.src,height:r.h,width:r.w,x:r.x+n,y:r.y+n,preserveAspectRatio:"none"},null)),i=i0(t,n)})),()=>{const t=e.bgColor&&n0,n=e.fgColor&&o0;return Sr("svg",{height:e.size,width:e.size,viewBox:`0 0 ${o} ${o}`},[!!e.title&&Sr("title",null,[e.title]),Sr("path",{fill:t,d:`M0,0 h${o}v${o}H0z`,"shape-rendering":"crispEdges"},null),Sr("path",{fill:n,d:i,"shape-rendering":"crispEdges"},null),l])}}}),p0=Sa(Ln({name:"AQrcode",inheritAttrs:!1,props:fl(fl({},KJ()),{errorLevel:Ea("M"),icon:String,iconSize:{type:Number,default:40},status:Ea("active"),bordered:{type:Boolean,default:!0}}),emits:["refresh"],setup(e,t){let{emit:n,attrs:o,expose:r}=t;const[i]=os("QRCode"),{prefixCls:l}=Cd("qrcode",e),[a,s]=qq(l),[,c]=cd(),u=Ot();r({toDataURL:(e,t)=>{var n;return null===(n=u.value)||void 0===n?void 0:n.toDataURL(e,t)}});const d=Xr((()=>{const{value:t,icon:n="",size:o=160,iconSize:r=40,color:i=c.value.colorText,bgColor:l="transparent",errorLevel:a="M"}=e,s={src:n,x:void 0,y:void 0,height:r,width:r,excavate:!0};return{value:t,size:o-2*(c.value.paddingSM+c.value.lineWidth),level:a,bgColor:l,fgColor:i,imageSettings:n?s:void 0}}));return()=>{const t=l.value;return a(Sr("div",hl(hl({},o),{},{style:[o.style,{width:`${e.size}px`,height:`${e.size}px`,backgroundColor:d.value.bgColor}],class:[s.value,t,{[`${t}-borderless`]:!e.bordered}]}),["active"!==e.status&&Sr("div",{class:`${t}-mask`},["loading"===e.status&&Sr(FQ,null,null),"expired"===e.status&&Sr(lr,null,[Sr("p",{class:`${t}-expired`},[i.value.expired]),Sr(zC,{type:"link",onClick:e=>n("refresh",e)},{default:()=>[i.value.refresh],icon:()=>Sr($J,null,null)})])]),"canvas"===e.type?Sr(u0,hl({ref:u},d.value),null):Sr(d0,d.value,null)]))}}}));function h0(e,t,n,o){const[r,i]=Hv(void 0);yn((()=>{const t="function"==typeof e.value?e.value():e.value;i(t||null)}),{flush:"post"});const[l,a]=Hv(null),s=()=>{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:i,left:l}=e.getBoundingClientRect();return o>=0&&l>=0&&r<=t&&i<=n}(r.value)&&t.value&&r.value.scrollIntoView(o.value);const{left:e,top:n,width:i,height:s}=r.value.getBoundingClientRect(),c={left:e,top:n,width:i,height:s,radius:0};JSON.stringify(l.value)!==JSON.stringify(c)&&a(c)}else a(null);else a(null)};return Gn((()=>{wn([t,r],(()=>{s()}),{flush:"post",immediate:!0}),window.addEventListener("resize",s)})),Jn((()=>{window.removeEventListener("resize",s)})),[Xr((()=>{var e,t;if(!l.value)return l.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:l.value.left-o,top:l.value.top-o,width:l.value.width+2*o,height:l.value.height+2*o,radius:r}})),r]}const f0=()=>fl(fl({},{arrow:Aa([Boolean,Object]),target:Aa([String,Function,Object]),title:Aa([String,Object]),description:Aa([String,Object]),placement:Ea(),mask:Aa([Object,Boolean],!0),className:{type:String},style:ka(),scrollIntoViewOptions:Aa([Boolean,Object])}),{prefixCls:{type:String},total:{type:Number},current:{type:Number},onClose:Ma(),onFinish:Ma(),renderPanel:Ma(),onPrev:Ma(),onNext:Ma()}),g0=Ln({name:"DefaultPanel",inheritAttrs:!1,props:f0(),setup(e,t){let{attrs:n}=t;return()=>{const{prefixCls:t,current:o,total:r,title:i,description:l,onClose:a,onPrev:s,onNext:c,onFinish:u}=e;return Sr("div",hl(hl({},n),{},{class:Tl(`${t}-content`,n.class)}),[Sr("div",{class:`${t}-inner`},[Sr("button",{type:"button",onClick:a,"aria-label":"Close",class:`${t}-close`},[Sr("span",{class:`${t}-close-x`},[kr("×")])]),Sr("div",{class:`${t}-header`},[Sr("div",{class:`${t}-title`},[i])]),Sr("div",{class:`${t}-description`},[l]),Sr("div",{class:`${t}-footer`},[Sr("div",{class:`${t}-sliders`},[r>1?[...Array.from({length:r}).keys()].map(((e,t)=>Sr("span",{key:e,class:t===o?"active":""},null))):null]),Sr("div",{class:`${t}-buttons`},[0!==o?Sr("button",{class:`${t}-prev-btn`,onClick:s},[kr("Prev")]):null,o===r-1?Sr("button",{class:`${t}-finish-btn`,onClick:u},[kr("Finish")]):Sr("button",{class:`${t}-next-btn`,onClick:c},[kr("Next")])])])])])}}}),m0=Ln({name:"TourStep",inheritAttrs:!1,props:f0(),setup(e,t){let{attrs:n}=t;return()=>{const{current:t,renderPanel:o}=e;return Sr(lr,null,["function"==typeof o?o(fl(fl({},n),e),t):Sr(g0,hl(hl({},n),e),null)])}}});let v0=0;const b0=ms();function y0(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ot("");const t=`vc_unique_${function(){let e;return b0?(e=v0,v0+=1):e="TEST_OR_SSR",e}()}`;return e.value||t}const O0={fill:"transparent","pointer-events":"auto"},w0=Ln({name:"TourMask",props:{prefixCls:{type:String},pos:ka(),rootClassName:{type:String},showMask:Pa(),fill:{type:String,default:"rgba(0,0,0,0.5)"},open:Pa(),animated:Aa([Boolean,Object]),zIndex:{type:Number}},setup(e,t){let{attrs:n}=t;const o=y0();return()=>{const{prefixCls:t,open:r,rootClassName:i,pos:l,showMask:a,fill:s,animated:c,zIndex:u}=e,d=`${t}-mask-${o}`,p="object"==typeof c?null==c?void 0:c.placeholder:c;return Sr(Cm,{visible:r,autoLock:!0},{default:()=>r&&Sr("div",hl(hl({},n),{},{class:Tl(`${t}-mask`,i,n.class),style:[{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:u,pointerEvents:"none"},n.style]}),[a?Sr("svg",{style:{width:"100%",height:"100%"}},[Sr("defs",null,[Sr("mask",{id:d},[Sr("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"},null),l&&Sr("rect",{x:l.left,y:l.top,rx:l.radius,width:l.width,height:l.height,fill:"black",class:p?`${t}-placeholder-animated`:""},null)])]),Sr("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:s,mask:`url(#${d})`},null),l&&Sr(lr,null,[Sr("rect",hl(hl({},O0),{},{x:"0",y:"0",width:"100%",height:l.top}),null),Sr("rect",hl(hl({},O0),{},{x:"0",y:"0",width:l.left,height:"100%"}),null),Sr("rect",hl(hl({},O0),{},{x:"0",y:l.top+l.height,width:"100%",height:`calc(100vh - ${l.top+l.height}px)`}),null),Sr("rect",hl(hl({},O0),{},{x:l.left+l.width,y:"0",width:`calc(100vw - ${l.left+l.width}px)`,height:"100%"}),null)])]):null])})}}}),x0=[0,0],$0={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 S0(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t={};return Object.keys($0).forEach((n=>{t[n]=fl(fl({},$0[n]),{autoArrow:e,targetOffset:x0})})),t}S0();const C0={left:"50%",top:"50%",width:"1px",height:"1px"},k0=()=>{const{builtinPlacements:e,popupAlign:t}=jp();return{builtinPlacements:e,popupAlign:t,steps:Ia(),open:Pa(),defaultCurrent:{type:Number},current:{type:Number},onChange:Ma(),onClose:Ma(),onFinish:Ma(),mask:Aa([Boolean,Object],!0),arrow:Aa([Boolean,Object],!0),rootClassName:{type:String},placement:Ea("bottom"),prefixCls:{type:String,default:"rc-tour"},renderPanel:Ma(),gap:ka(),animated:Aa([Boolean,Object]),scrollIntoViewOptions:Aa([Boolean,Object],!0),zIndex:{type:Number,default:1001}}},P0=Ln({name:"Tour",inheritAttrs:!1,props:Jl(k0(),{}),setup(e){const{defaultCurrent:t,placement:n,mask:o,scrollIntoViewOptions:r,open:i,gap:l,arrow:a}=Mt(e),s=Ot(),[c,u]=Qv(0,{value:Xr((()=>e.current)),defaultValue:t.value}),[d,p]=Qv(void 0,{value:Xr((()=>e.open)),postState:t=>!(c.value<0||c.value>=e.steps.length)&&(null==t||t)}),h=wt(d.value);yn((()=>{d.value&&!h.value&&u(0),h.value=d.value}));const f=Xr((()=>e.steps[c.value]||{})),g=Xr((()=>{var e;return null!==(e=f.value.placement)&&void 0!==e?e:n.value})),m=Xr((()=>{var e;return d.value&&(null!==(e=f.value.mask)&&void 0!==e?e:o.value)})),v=Xr((()=>{var e;return null!==(e=f.value.scrollIntoViewOptions)&&void 0!==e?e:r.value})),[b,y]=h0(Xr((()=>f.value.target)),i,l,v),O=Xr((()=>!!y.value&&(void 0===f.value.arrow?a.value:f.value.arrow))),w=Xr((()=>"object"==typeof O.value&&O.value.pointAtCenter));wn(w,(()=>{var e;null===(e=s.value)||void 0===e||e.forcePopupAlign()})),wn(c,(()=>{var e;null===(e=s.value)||void 0===e||e.forcePopupAlign()}));const x=t=>{var n;u(t),null===(n=e.onChange)||void 0===n||n.call(e,t)};return()=>{var t;const{prefixCls:n,steps:o,onClose:r,onFinish:i,rootClassName:l,renderPanel:a,animated:u,zIndex:h}=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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","steps","onClose","onFinish","rootClassName","renderPanel","animated","zIndex"]);if(void 0===y.value)return null;const $=()=>{p(!1),null==r||r(c.value)},S="boolean"==typeof m.value?m.value:!!m.value,C="boolean"==typeof m.value?void 0:m.value,k=Xr((()=>{const e=b.value||C0,t={};return Object.keys(e).forEach((n=>{"number"==typeof e[n]?t[n]=`${e[n]}px`:t[n]=e[n]})),t}));return d.value?Sr(lr,null,[Sr(w0,{zIndex:h,prefixCls:n,pos:b.value,showMask:S,style:null==C?void 0:C.style,fill:null==C?void 0:C.color,open:d.value,animated:u,rootClassName:l},null),Sr(Pm,hl(hl({},v),{},{builtinPlacements:f.value.target?null!==(t=v.builtinPlacements)&&void 0!==t?t:S0(w.value):void 0,ref:s,popupStyle:f.value.target?f.value.style:fl(fl({},f.value.style),{position:"fixed",left:C0.left,top:C0.top,transform:"translate(-50%, -50%)"}),popupPlacement:g.value,popupVisible:d.value,popupClassName:Tl(l,f.value.className),prefixCls:n,popup:()=>Sr(m0,hl({arrow:O.value,key:"content",prefixCls:n,total:o.length,renderPanel:a,onPrev:()=>{x(c.value-1)},onNext:()=>{x(c.value+1)},onClose:$,current:c.value,onFinish:()=>{$(),null==i||i()}},f.value),null),forceRender:!1,destroyPopupOnHide:!0,zIndex:h,mask:!1,getTriggerDOMNode:()=>y.value||document.body}),{default:()=>[Sr(Cm,{visible:d.value,autoLock:!0},{default:()=>[Sr("div",{class:Tl(l,`${n}-target-placeholder`),style:fl(fl({},k.value),{position:"fixed",pointerEvents:"none"})},null)]})]})]):null}}}),M0=Ln({name:"ATourPanel",inheritAttrs:!1,props:fl(fl({},f0()),{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:i}=Mt(e),l=Xr((()=>r.value===i.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;l.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:h,arrow:f}=e,g=e.prevButtonProps,m=e.nextButtonProps;let v,b,y,O;c&&(v=Sr("div",{class:`${t}-header`},[Sr("div",{class:`${t}-title`},[c])])),p&&(b=Sr("div",{class:`${t}-description`},[p])),d&&(y=Sr("div",{class:`${t}-cover`},[d])),O=o.indicatorsRender?o.indicatorsRender({current:r.value,total:i}):[...Array.from({length:i.value}).keys()].map(((e,n)=>Sr("span",{key:e,class:Tl(n===r.value&&`${t}-indicator-active`,`${t}-indicator`)},null)));const w="primary"===h?"default":"primary",x={type:"default",ghost:"primary"===h};return Sr(ns,{componentName:"Tour",defaultLocale:ts.Tour},{default:e=>{var o,c;return Sr("div",hl(hl({},n),{},{class:Tl("primary"===h?`${t}-primary`:"",n.class,`${t}-content`)}),[f&&Sr("div",{class:`${t}-arrow`,key:"arrow"},null),Sr("div",{class:`${t}-inner`},[Sr(qb,{class:`${t}-close`,onClick:u},null),y,v,b,Sr("div",{class:`${t}-footer`},[i.value>1&&Sr("div",{class:`${t}-indicators`},[O]),Sr("div",{class:`${t}-buttons`},[0!==r.value?Sr(zC,hl(hl(hl({},x),g),{},{onClick:a,size:"small",class:Tl(`${t}-prev-btn`,null==g?void 0:g.className)}),{default:()=>[null!==(o=null==g?void 0:g.children)&&void 0!==o?o:e.Previous]}):null,Sr(zC,hl(hl({type:w},m),{},{onClick:s,size:"small",class:Tl(`${t}-next-btn`,null==m?void 0:m.className)}),{default:()=>[null!==(c=null==m?void 0:m.children)&&void 0!==c?c:l.value?e.Finish:e.Next]})])])])])}})}}}),T0=e=>{const{componentCls:t,lineHeight:n,padding:o,paddingXS:r,borderRadius:i,borderRadiusXS:l,colorPrimary:a,colorText:s,colorFill:c,indicatorHeight:u,indicatorWidth:d,boxShadowTertiary:p,tourZIndexPopup:h,fontSize:f,colorBgContainer:g,fontWeightStrong:m,marginXS:v,colorTextLightSolid:b,tourBorderRadius:y,colorWhite:O,colorBgTextHover:w,tourCloseSize:x,motionDurationSlow:$,antCls:S}=e;return[{[t]:fl(fl({},Yu(e)),{color:s,position:"absolute",zIndex:h,display:"block",visibility:"visible",fontSize:f,lineHeight:n,width:520,"--antd-arrow-background-color":g,"&-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:g,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:o,insetInlineEnd:o,color:e.colorIcon,outline:"none",width:x,height:x,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+x+r}px ${o}px 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${o}px ${o}px ${r}px`,[`${t}-title`]:{lineHeight:n,fontSize:f,fontWeight:m}},[`${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 ${l}px ${l}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",[`${S}-btn`]:{marginInlineStart:v}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{color:b,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:i,boxShadow:p,[`${t}-close`]:{color:b},[`${t}-indicators`]:{[`${t}-indicator`]:{background:new wu(b).setAlpha(.15).toRgbString(),"&-active":{background:b}}},[`${t}-prev-btn`]:{color:b,borderColor:new wu(b).setAlpha(.15).toRgbString(),backgroundColor:a,"&:hover":{backgroundColor:new wu(b).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${t}-next-btn`]:{color:a,borderColor:"transparent",background:O,"&:hover":{background:new wu(w).onBackground(O).toRgbString()}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${$}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(y,8)}}},yS(e,{colorBg:"var(--antd-arrow-background-color)",contentRadius:y,limitVerticalRadius:!0})]},I0=Ju("Tour",(e=>{const{borderRadiusLG:t,fontSize:n,lineHeight:o}=e,r=nd(e,{tourZIndexPopup:e.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t,tourCloseSize:n*o});return[T0(r)]})),E0=Sa(Ln({name:"ATour",inheritAttrs:!1,props:fl(fl({},k0()),{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:i,type:l,steps:a,defaultCurrent:s}=Mt(e),{prefixCls:c,direction:u}=Cd("tour",e),[d,p]=I0(c),{currentMergedType:h,updateInnerCurrent:f}=(e=>{let{defaultType:t,steps:n,current:o,defaultCurrent:r}=e;const i=Ot(null==r?void 0:r.value);wn(Xr((()=>null==o?void 0:o.value)),(e=>{i.value=null!=e?e:null==r?void 0:r.value}),{immediate:!0});const l=Xr((()=>{var e,o;return"number"==typeof i.value?n&&(null===(o=null===(e=n.value)||void 0===e?void 0:e[i.value])||void 0===o?void 0:o.type):null==t?void 0:t.value}));return{currentMergedType:Xr((()=>{var e;return null!==(e=l.value)&&void 0!==e?e:null==t?void 0:t.value})),updateInnerCurrent:e=>{i.value=e}}})({defaultType:l,steps:a,current:i,defaultCurrent:s});return()=>{const{steps:t,current:i,type:l,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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["steps","current","type","rootClassName"]),g=Tl({[`${c.value}-primary`]:"primary"===h.value,[`${c.value}-rtl`]:"rtl"===u.value},p.value,a),m=Xr((()=>pS({arrowPointAtCenter:!0,autoAdjustOverflow:!0})));return d(Sr(P0,hl(hl(hl({},n),s),{},{rootClassName:g,prefixCls:c.value,current:i,defaultCurrent:e.defaultCurrent,animated:!0,renderPanel:(e,t)=>Sr(M0,hl(hl({},e),{},{type:l,current:t}),{indicatorsRender:r.indicatorsRender}),onChange:e=>{f(e),o("update:current",e),o("change",e)},steps:t,builtinPlacements:m.value}),null))}}})),A0=Symbol("appConfigContext"),R0=Symbol("appContext"),D0=it({message:{},notification:{},modal:{}}),j0=e=>{const{componentCls:t,colorText:n,fontSize:o,lineHeight:r,fontFamily:i}=e;return{[t]:{color:n,fontSize:o,lineHeight:r,fontFamily:i}}},B0=Ju("App",(e=>[j0(e)])),N0=Ln({name:"AApp",props:Jl({rootClassName:String,message:ka(),notification:ka()},{}),setup(e,t){let{slots:n}=t;const{prefixCls:o}=Cd("app",e),[r,i]=B0(o),l=Xr((()=>Tl(i.value,o.value,e.rootClassName))),a=Ao(A0,{}),s=Xr((()=>({message:fl(fl({},a.message),e.message),notification:fl(fl({},a.notification),e.notification)})));var c;c=s.value,Eo(A0,c);const[u,d]=lB(s.value.message),[p,h]=EB(s.value.notification),[f,g]=gF(),m=Xr((()=>({message:u,notification:p,modal:f})));var v;return v=m.value,Eo(R0,v),()=>{var e;return r(Sr("div",{class:l.value},[g(),d(),h(),null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}});N0.useApp=()=>Ao(R0,D0),N0.install=function(e){e.component(N0.name,N0)};const z0=N0,_0=["wrap","nowrap","wrap-reverse"],L0=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Q0=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];function H0(e,t){return Tl(fl(fl(fl({},((e,t)=>{const n={};return _0.forEach((o=>{n[`${e}-wrap-${o}`]=t.wrap===o})),n})(e,t)),((e,t)=>{const n={};return Q0.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 L0.forEach((o=>{n[`${e}-justify-${o}`]=t.justify===o})),n})(e,t)))}const F0=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},W0=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},V0=e=>{const{componentCls:t}=e,n={};return _0.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},Z0=e=>{const{componentCls:t}=e,n={};return Q0.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},X0=e=>{const{componentCls:t}=e,n={};return L0.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n},Y0=Ju("Flex",(e=>{const t=nd(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[F0(t),W0(t),V0(t),Z0(t),X0(t)]}));function K0(e){return["small","middle","large"].includes(e)}const G0=Sa(Ln({name:"AFlex",inheritAttrs:!1,props:{prefixCls:Ea(),vertical:Pa(),wrap:Ea(),justify:Ea(),align:Ea(),flex:Aa([Number,String]),gap:Aa([Number,String]),component:Ta()},setup(e,t){let{slots:n,attrs:o}=t;const{flex:r,direction:i}=Xa(),{prefixCls:l}=Cd("flex",e),[a,s]=Y0(l),c=Xr((()=>{var t;return[l.value,s.value,H0(l.value,e),{[`${l.value}-rtl`]:"rtl"===i.value,[`${l.value}-gap-${e.gap}`]:K0(e.gap),[`${l.value}-vertical`]:null!==(t=e.vertical)&&void 0!==t?t:null==r?void 0:r.value.vertical}]}));return()=>{var t;const{flex:r,gap:i,component:l="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<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["flex","gap","component"]),u={};return r&&(u.flex=r),i&&!K0(i)&&(u.gap=`${i}px`),a(Sr(l,hl({class:[o.class,c.value],style:[o.style,u]},kd(s,["justify","wrap","align","vertical"])),{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]}))}}})),U0=Object.freeze(Object.defineProperty({__proto__:null,Affix:Ad,Alert:V$,Anchor:Mp,AnchorLink:Yd,App:z0,AutoComplete:e$,AutoCompleteOptGroup:qx,AutoCompleteOption:Ux,Avatar:eS,AvatarGroup:MS,BackTop:Nz,Badge:FS,BadgeRibbon:QS,Breadcrumb:sP,BreadcrumbItem:sk,BreadcrumbSeparator:cP,Button:zC,ButtonGroup:DC,Calendar:cI,Card:SE,CardGrid:kE,CardMeta:CE,Carousel:EA,Cascader:kj,CheckableTag:lN,Checkbox:Tj,CheckboxGroup:Ij,Col:Aj,Collapse:DE,CollapsePanel:BE,Comment:jj,Compact:Lw,ConfigProvider:eN,DatePicker:HN,Descriptions:ez,DescriptionsItem:KN,DirectoryTree:eK,Divider:oz,Drawer:fz,Dropdown:ak,DropdownButton:UC,Empty:yd,Flex:G0,FloatButton:Iz,FloatButtonGroup:Ez,Form:vj,FormItem:dj,FormItemRest:my,Grid:Ej,Image:NL,ImagePreviewGroup:jL,Input:Gz,InputGroup:Uz,InputNumber:dQ,InputPassword:x_,InputSearch:qz,Layout:BQ,LayoutContent:jQ,LayoutFooter:RQ,LayoutHeader:AQ,LayoutSider:DQ,List:kH,ListItem:OH,ListItemMeta:bH,LocaleProvider:_j,Mentions:GH,MentionsOption:KH,Menu:rP,MenuDivider:Zk,MenuItem:Ik,MenuItemGroup:Vk,Modal:JH,MonthPicker:NN,PageHeader:VF,Pagination:vH,Popconfirm:XF,Popover:PS,Progress:fW,QRCode:p0,QuarterPicker:LN,Radio:IT,RadioButton:AT,RadioGroup:ET,RangePicker:QN,Rate:kW,Result:VW,Row:ZW,Segmented:Uq,Select:Wx,SelectOptGroup:Zx,SelectOption:Vx,Skeleton:vE,SkeletonAvatar:wE,SkeletonButton:bE,SkeletonImage:OE,SkeletonInput:yE,SkeletonTitle:UI,Slider:MV,Space:HF,Spin:FQ,Statistic:xF,StatisticCountdown:PF,Step:UV,Steps:qV,SubMenu:Lk,Switch:lZ,TabPane:QI,Table:ZK,TableColumn:QK,TableColumnGroup:HK,TableSummary:VK,TableSummaryCell:WK,TableSummaryRow:FK,Tabs:LI,Tag:sN,Textarea:c_,TimePicker:QG,TimeRangePicker:LG,Timeline:VG,TimelineItem:HG,Tooltip:xS,Tour:E0,Transfer:vG,Tree:nK,TreeNode:tK,TreeSelect:NG,TreeSelectNode:BG,Typography:sU,TypographyLink:kU,TypographyParagraph:MU,TypographyText:IU,TypographyTitle:RU,Upload:Nq,UploadDragger:Bq,Watermark:Qq,WeekPicker:BN,message:wB,notification:WB},Symbol.toStringTag,{value:"Module"})),q0={version:tu,install:function(e){return Object.keys(U0).forEach((t=>{const n=U0[t];n.install&&e.use(n)})),e.use(eu.StyleProvider),e.config.globalProperties.$message=wB,e.config.globalProperties.$notification=WB,e.config.globalProperties.$info=JH.info,e.config.globalProperties.$success=JH.success,e.config.globalProperties.$error=JH.error,e.config.globalProperties.$warning=JH.warning,e.config.globalProperties.$confirm=JH.confirm,e.config.globalProperties.$destroyAll=JH.destroyAll,e}},J0=function(e,t,n){let o,r;const i="function"==typeof t;function l(e,n){return(e=e||(Dr||nn||Io?Ao(qi,null):null))&&Ui(e),(e=Gi)._s.has(o)||(i?cl(o,t,r,e):function(e,t,n,o){const{state:r,actions:i,getters:l}=t,a=n.state.value[e];let s;s=cl(e,(function(){a||(n.state.value[e]=r?r():{});const t=Mt(n.state.value[e]);return sl(t,i,Object.keys(l||{}).reduce(((t,o)=>(t[o]=ht(Xr((()=>{Ui(n);const t=n._s.get(e);return l[o].call(t,t)}))),t)),{}))}),t,n,0,!0)}(o,r,e)),e._s.get(o)}return"string"==typeof e?(o=e,r=i?n:t):(r=e,o=e.id),l.$id=o,l}("main",{state:()=>({id:"",type:0,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.token="",this.nameSpaceId="",this.groupName="",this.jobList=[]},setId(e){this.id=e},setType(e){this.type=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}}}),e1=(e,t="get",n)=>{const o=J0(),{token:r,nameSpaceId:i}=function(e){{e=pt(e);const t={};for(const n in e){const o=e[n];(yt(o)||st(o))&&(t[n]=Et(e,n))}return t}}(o);return new Promise(((o,l)=>{fetch("/api"+e,{method:t,headers:{"Content-Type":"application/json","EASY-RETRY-AUTH":r.value,"EASY-RETRY-NAMESPACE-ID":i.value},body:n?JSON.stringify(n):null}).then((e=>e.json())).then((e=>{1===e.status?(e.page&&o(e),o(e.data)):(wB.error(e.message||"未知错误,请联系管理员"),l())})).catch((()=>{wB.error("未知错误,请联系管理员"),l()}))}))};
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
function t1(e){return"[object Object]"===Object.prototype.toString.call(e)}function n1(){return n1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},n1.apply(this,arguments)}function o1(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)t.indexOf(n=i[o])>=0||(r[n]=e[n]);return r}const r1={silent:!1,logLevel:"warn"},i1=["validator"],l1=Object.prototype,a1=l1.toString,s1=l1.hasOwnProperty,c1=/^\s*function (\w+)/;function u1(e){var t;const n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){const e=n.toString().match(c1);return e?e[1]:""}return""}const d1=function(e){var t,n;return!1!==t1(e)&&(void 0===(t=e.constructor)||!1!==t1(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))};let p1=e=>e;const h1=(e,t)=>s1.call(e,t),f1=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},g1=Array.isArray||function(e){return"[object Array]"===a1.call(e)},m1=e=>"[object Function]"===a1.call(e),v1=(e,t)=>d1(e)&&h1(e,"_vueTypes_name")&&(!t||e._vueTypes_name===t),b1=e=>d1(e)&&(h1(e,"type")||["_vueTypes_name","validator","default","required"].some((t=>h1(e,t))));function y1(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function O1(e,t,n=!1){let o,r=!0,i="";o=d1(e)?e:{type:e};const l=v1(o)?o._vueTypes_name+" - ":"";if(b1(o)&&null!==o.type){if(void 0===o.type||!0===o.type)return r;if(!o.required&&null==t)return r;g1(o.type)?(r=o.type.some((e=>!0===O1(e,t,!0))),i=o.type.map((e=>u1(e))).join(" or ")):(i=u1(o),r="Array"===i?g1(t):"Object"===i?d1(t):"String"===i||"Number"===i||"Boolean"===i||"Function"===i?function(e){if(null==e)return"";const t=e.constructor.toString().match(c1);return t?t[1].replace(/^Async/,""):""}(t)===i:t instanceof o.type)}if(!r){const e=`${l}value "${t}" should be of type "${i}"`;return!1===n?(p1(e),!1):e}if(h1(o,"validator")&&m1(o.validator)){const e=p1,i=[];if(p1=e=>{i.push(e)},r=o.validator(t),p1=e,!r){const e=(i.length>1?"* ":"")+i.join("\n* ");return i.length=0,!1===n?(p1(e),r):e}}return r}function w1(e,t){const n=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):(h1(this,"default")&&delete this.default,this):m1(e)||!0===O1(this,e,!0)?(this.default=g1(e)?()=>[...e]:d1(e)?()=>Object.assign({},e):e,this):(p1(`${this._vueTypes_name} - invalid default value: "${e}"`),this)}}}),{validator:o}=n;return m1(o)&&(n.validator=y1(o,n)),n}function x1(e,t){const n=w1(e,t);return Object.defineProperty(n,"validate",{value(e){return m1(this.validator)&&p1(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=y1(e,this),this}})}function $1(e,t,n){const o=function(e){const t={};return Object.getOwnPropertyNames(e).forEach((n=>{t[n]=Object.getOwnPropertyDescriptor(e,n)})),Object.defineProperties({},t)}(t);if(o._vueTypes_name=e,!d1(n))return o;const{validator:r}=n,i=o1(n,i1);if(m1(r)){let{validator:e}=o;e&&(e=null!==(a=(l=e).__original)&&void 0!==a?a:l),o.validator=y1(e?function(t){return e.call(this,t)&&r.call(this,t)}:r,o)}var l,a;return Object.assign(o,i)}function S1(e){return e.replace(/^(?!\s*$)/gm," ")}const C1=()=>x1("any",{}),k1=()=>x1("boolean",{type:Boolean}),P1=()=>x1("string",{type:String}),M1=()=>x1("number",{type:Number}),T1=()=>x1("array",{type:Array}),I1=()=>x1("object",{type:Object});function E1(e,t="custom validation failed"){if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return w1(e.name||"<<anonymous function>>",{type:null,validator(n){const o=e(n);return o||p1(`${this._vueTypes_name} - ${t}`),o}})}function A1(e){if(!g1(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('", "')}".`,n={validator(n){const o=-1!==e.indexOf(n);return o||p1(t),o}};if(-1===e.indexOf(null)){const t=e.reduce(((e,t)=>{if(null!=t){const n=t.constructor;-1===e.indexOf(n)&&e.push(n)}return e}),[]);t.length>0&&(n.type=t)}return w1("oneOf",n)}function R1(e){if(!g1(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,n=!1,o=[];for(let i=0;i<e.length;i+=1){const r=e[i];if(b1(r)){if(m1(r.validator)&&(t=!0),v1(r,"oneOf")&&r.type){o=o.concat(r.type);continue}if(v1(r,"nullable")){n=!0;continue}if(!0===r.type||!r.type){p1('oneOfType - invalid usage of "true" and "null" as types.');continue}o=o.concat(r.type)}else o.push(r)}o=o.filter(((e,t)=>o.indexOf(e)===t));const r=!1===n&&o.length>0?o:null;return w1("oneOfType",t?{type:r,validator(t){const n=[],o=e.some((e=>{const o=O1(e,t,!0);return"string"==typeof o&&n.push(o),!0===o}));return o||p1(`oneOfType - provided value does not match any of the ${n.length} passed-in validators:\n${S1(n.join("\n"))}`),o}}:{type:r})}function D1(e){return w1("arrayOf",{type:Array,validator(t){let n="";const o=t.every((t=>(n=O1(e,t,!0),!0===n)));return o||p1(`arrayOf - value validation error:\n${S1(n)}`),o}})}function j1(e){return w1("instanceOf",{type:e})}function B1(e){return w1("objectOf",{type:Object,validator(t){let n="";const o=Object.keys(t).every((o=>(n=O1(e,t[o],!0),!0===n)));return o||p1(`objectOf - value validation error:\n${S1(n)}`),o}})}function N1(e){const t=Object.keys(e),n=t.filter((t=>{var n;return!(null===(n=e[t])||void 0===n||!n.required)})),o=w1("shape",{type:Object,validator(o){if(!d1(o))return!1;const r=Object.keys(o);if(n.length>0&&n.some((e=>-1===r.indexOf(e)))){const e=n.filter((e=>-1===r.indexOf(e)));return p1(1===e.length?`shape - required property "${e[0]}" is not defined.`:`shape - required properties "${e.join('", "')}" are not defined.`),!1}return r.every((n=>{if(-1===t.indexOf(n))return!0===this._vueTypes_isLoose||(p1(`shape - shape definition does not include a "${n}" property. Allowed keys: "${t.join('", "')}".`),!1);const r=O1(e[n],o[n],!0);return"string"==typeof r&&p1(`shape - "${n}" property validation error:\n ${S1(r)}`),!0===r}))}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),o}const z1=["name","validate","getter"],_1=(()=>{var e;return(e=class{static get any(){return C1()}static get func(){return x1("function",{type:Function}).def(this.defaults.func)}static get bool(){return void 0===this.defaults.bool?k1():k1().def(this.defaults.bool)}static get string(){return P1().def(this.defaults.string)}static get number(){return M1().def(this.defaults.number)}static get array(){return T1().def(this.defaults.array)}static get object(){return I1().def(this.defaults.object)}static get integer(){return w1("integer",{type:Number,validator(e){const t=f1(e);return!1===t&&p1(`integer - "${e}" is not an integer`),t}}).def(this.defaults.integer)}static get symbol(){return w1("symbol",{validator(e){const t="symbol"==typeof e;return!1===t&&p1(`symbol - invalid value "${e}"`),t}})}static get nullable(){return Object.defineProperty({type:null,validator(e){const t=null===e;return!1===t&&p1("nullable - value should be null"),t}},"_vueTypes_name",{value:"nullable"})}static extend(e){if(p1("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."),g1(e))return e.forEach((e=>this.extend(e))),this;const{name:t,validate:n=!1,getter:o=!1}=e,r=o1(e,z1);if(h1(this,t))throw new TypeError(`[VueTypes error]: Type "${t}" already defined`);const{type:i}=r;if(v1(i))return delete r.type,Object.defineProperty(this,t,o?{get:()=>$1(t,i,r)}:{value(...e){const n=$1(t,i,r);return n.validator&&(n.validator=n.validator.bind(n,...e)),n}});let l;return l=o?{get(){const e=Object.assign({},r);return n?x1(t,e):w1(t,e)},enumerable:!0}:{value(...e){const o=Object.assign({},r);let i;return i=n?x1(t,o):w1(t,o),o.validator&&(i.validator=o.validator.bind(i,...e)),i},enumerable:!0},Object.defineProperty(this,t,l)}}).defaults={},e.sensibleDefaults=void 0,e.config=r1,e.custom=E1,e.oneOf=A1,e.instanceOf=j1,e.oneOfType=R1,e.arrayOf=D1,e.objectOf=B1,e.shape=N1,e.utils={validate:(e,t)=>!0===O1(t,e,!0),toType:(e,t,n=!1)=>n?x1(e,t):w1(e,t)},e})();!function(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){(class extends _1{static get sensibleDefaults(){return n1({},this.defaults)}static set sensibleDefaults(t){this.defaults=!1!==t?n1({},!0!==t?t:e):{}}}).defaults=n1({},e)}();const L1=Ln({__name:"AntdIcon",props:{modelValue:C1(),size:P1(),color:P1()},setup(e){const t=Ln({props:{value:C1(),size:P1(),color:P1()},setup:e=>()=>{const{value:t}=e;return t?Yr(t,{style:{fontSize:e.size,color:e.color}},{}):null}});return(n,o)=>(pr(),vr(Ct(t),{value:e.modelValue,size:e.size,color:e.color},null,8,["value","size","color"]))}});var Q1=(e=>(e[e.SpEl=1]="SpEl",e[e.Aviator=2]="Aviator",e[e.QL=3]="QL",e))(Q1||{}),H1=(e=>(e[e["CRON表达式"]=1]="CRON表达式",e[e["固定时间"]=2]="固定时间",e))(H1||{}),F1=(e=>(e[e["丢弃"]=1]="丢弃",e[e["覆盖"]=2]="覆盖",e[e["并行"]=3]="并行",e))(F1||{}),W1=(e=>(e[e["跳过"]=1]="跳过",e[e["阻塞"]=2]="阻塞",e))(W1||{}),V1=(e=>(e[e["关闭"]=0]="关闭",e[e["开启"]=1]="开启",e))(V1||{}),Z1=(e=>(e[e.and=1]="and",e[e.or=2]="or",e))(Z1||{}),X1=(e=>(e[e["application/json"]=1]="application/json",e[e["application/x-www-form-urlencoded"]=2]="application/x-www-form-urlencoded",e))(X1||{});const Y1={1:{title:"待处理",name:"waiting",color:"#64a6ea",icon:YJ},2:{title:"运行中",name:"running",color:"#1b7ee5",icon:bN},3:{title:"成功",name:"success",color:"#087da1",icon:i$},4:{title:"失败",name:"fail",color:"#f52d80",icon:O$},5:{title:"停止",name:"stop",color:"#ac2df5",icon:RJ},6:{title:"取消",name:"cancel",color:"#f5732d",icon:sJ},99:{title:"跳过",name:"skip",color:"#f5732d",icon:hJ}},K1={1:{name:"Java",color:"#d06892"}},G1={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"}},U1={2:{name:"运行中",color:"#1b7ee5"},3:{name:"成功",color:"#087da1"},4:{name:"失败",color:"#f52d80"},5:{name:"停止",color:"#ac2df5"}},q1={DEBUG:{name:"DEBUG",color:"#2647cc"},INFO:{name:"INFO",color:"#5c962c"},WARN:{name:"WARN",color:"#da9816"},ERROR:{name:"ERROR",color:"#dc3f41"}},J1={0:{name:"关闭",color:"#dc3f41"},1:{name:"开启",color:"#1b7ee5"}},e2=(e=>{const t={};return Object.keys(e).forEach((n=>{const o=e[parseInt(n,10)];t[parseInt(n,10)]={name:o.title,color:o.color}})),t})(Y1),t2=e=>(ln("data-v-3a291986"),e=e(),an(),e),n2={class:"log"},o2={class:"scroller"},r2={class:"gutters"},i2=t2((()=>$r("div",{style:{"margin-top":"4px"}},null,-1))),l2={class:"gutter-element"},a2=t2((()=>$r("div",{style:{height:"25px"}},null,-1))),s2={class:"content"},c2={class:"text",style:{color:"#2db7f5"}},u2={class:"text",style:{color:"#00a3a3"}},d2={class:"text",style:{color:"#a771bf","font-weight":"500"}},p2=t2((()=>$r("div",{class:"text"},":",-1))),h2={class:"text",style:{"font-size":"18px"}},f2=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},g2=f2(Ln({__name:"LogModal",props:{open:k1().def(!1),record:I1().def({}),modalValue:T1().def([])},setup(e){const t=e,n=Ot(!1),o=Ot([]);wn((()=>t.open),(e=>{n.value=e}),{immediate:!0}),wn((()=>t.modalValue),(e=>{o.value=e}),{immediate:!0,deep:!0});let r=0;Gn((()=>{l(),r=setInterval((()=>{l()}),5e3)}));const i=()=>{clearInterval(r)},l=()=>{e1(`/job/log/list?taskBatchId=${t.record.taskBatchId}&jobId=${t.record.jobId}&taskId=${t.record.id}`).then((e=>{o.value.concat(e.data)}))},a=e=>{const t=new Date(e);return`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()} ${t.getHours()}:${t.getMinutes()}:${1===t.getSeconds().toString().length?"0"+t.getSeconds():t.getSeconds().toString()}`};return(t,o)=>{const r=fn("a-flex"),l=fn("a-modal");return pr(),vr(l,{open:n.value,"onUpdate:open":o[0]||(o[0]=e=>n.value=e),centered:"",footer:null,width:"80%",title:"日志详情",onCancel:i},{default:sn((()=>[$r("div",n2,[$r("div",o2,[$r("div",r2,[i2,(pr(!0),mr(lr,null,io(e.modalValue,((e,t)=>(pr(),mr("div",{key:e.time_stamp},[$r("div",l2,X(t+1),1),a2])))),128))]),$r("div",s2,[(pr(!0),mr(lr,null,io(e.modalValue,(e=>(pr(),mr("div",{class:"line",key:e.time_stamp},[Sr(r,{gap:"small"},{default:sn((()=>[$r("div",c2,X(a(1e3*e.time_stamp)),1),$r("div",{class:"text",style:_({color:Ct(q1)[e.level].color})},X(4===e.level.length?e.level+"\t":e.level),5),$r("div",u2,"["+X(e.thread)+"]",1),$r("div",d2,X(e.location),1),p2])),_:2},1024),$r("div",h2,X(e.message),1)])))),128))])])])])),_:1},8,["open"])}}}),[["__scopeId","data-v-3a291986"]]),m2={key:0},v2={style:{margin:"20px 0","border-left":"#f5222d 5px solid","font-size":"medium","font-weight":"bold"}},b2=(e=>(ln("data-v-d4c3caf7"),e=e(),an(),e))((()=>$r("span",{style:{"padding-left":"18px"}},"任务项列表",-1))),y2={style:{"padding-left":"6px"}},O2={key:0},w2=f2(Ln({__name:"DetailCard",props:{id:P1(),ids:T1().def([]),open:k1().def(!1)},emits:["update:open"],setup(e,{emit:t}){const n=t,o=e,r=yd.PRESENTED_IMAGE_SIMPLE,i=J0(),l=Ot(!1),a=Ot(!1),s=Ot(!1),c=Ot(!1),u=Ot(1),d=Ot({}),p=Ot([]),f=Ot([]),g=Ot({current:1,defaultPageSize:10,pageSize:10,total:0,showSizeChanger:!1,showQuickJumper:!1,showTotal:e=>`共 ${e} 条`});wn((()=>o.open),(e=>{l.value=e}),{immediate:!0});const m=Ot([]);Gn((()=>{o.ids.length>1&&(document.querySelector(".ant-pagination-prev").title="上一个",document.querySelector(".ant-pagination-next").title="下一个"),m.value=o.ids,o.ids.length>0&&(O(o.ids[0]),w(o.ids[0])),o.id&&(m.value=[o.id],y(o.id))}));const b=()=>{n("update:open",!1)},y=e=>{s.value=!0,e1(`/job/${e}`).then((e=>{d.value=e,s.value=!1}))},O=e=>{s.value=!0,e1(`/job/batch/${e}`).then((e=>{d.value=e,s.value=!1}))},w=(e,t=1)=>{c.value=!0,e1(`/job/task/list?groupName=${i.GROUP_NAME}&taskBatchId=${e}&page=${t}`).then((e=>{g.value.total=e.total,p.value=e.data,c.value=!1}))},x=e=>{a.value=e},$=Ot([{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(t,n)=>{const o=fn("a-descriptions-item"),i=fn("a-tag"),y=fn("a-descriptions"),O=fn("a-spin"),S=fn("a-button"),C=fn("a-table"),k=fn("a-tab-pane"),P=fn("a-tabs"),M=fn("a-empty"),T=fn("a-pagination"),I=fn("a-drawer");return pr(),vr(I,{title:"任务批次详情",placement:"right",width:800,open:l.value,"onUpdate:open":n[4]||(n[4]=e=>l.value=e),"destroy-on-close":"",onClose:b},function(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(h(o))for(let t=0;t<o.length;t++)e[o[t].name]=o[t].fn;else o&&(e[o.name]=o.key?(...e)=>{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}({default:sn((()=>[m.value&&m.value.length>0?(pr(),mr("div",m2,[Sr(P,{activeKey:u.value,"onUpdate:activeKey":n[2]||(n[2]=e=>u.value=e),animated:""},{renderTabBar:sn((()=>[])),default:sn((()=>[(pr(!0),mr(lr,null,io(m.value,((e,t)=>(pr(),vr(k,{key:t+1,tab:e},{default:sn((()=>[Sr(O,{spinning:s.value},{default:sn((()=>[Sr(y,{bordered:"",column:2},{default:sn((()=>[Sr(o,{label:"组名称"},{default:sn((()=>[kr(X(d.value.groupName),1)])),_:1}),Sr(o,{label:"任务名称"},{default:sn((()=>[kr(X(d.value.jobName),1)])),_:1}),Sr(o,{label:"状态"},{default:sn((()=>[null!=d.value.taskBatchStatus?(pr(),vr(i,{key:0,color:Ct(e2)[d.value.taskBatchStatus].color},{default:sn((()=>[kr(X(Ct(e2)[d.value.taskBatchStatus].name),1)])),_:1},8,["color"])):Pr("",!0),null!=d.value.jobStatus?(pr(),vr(i,{key:1,color:Ct(J1)[d.value.jobStatus].color},{default:sn((()=>[kr(X(Ct(J1)[d.value.jobStatus].name),1)])),_:1},8,["color"])):Pr("",!0)])),_:1}),Sr(o,{label:"执行器类型"},{default:sn((()=>[d.value.executorType?(pr(),vr(i,{key:0,color:Ct(K1)[d.value.executorType].color},{default:sn((()=>[kr(X(Ct(K1)[d.value.executorType].name),1)])),_:1},8,["color"])):Pr("",!0)])),_:1}),Sr(o,{label:"操作原因"},{default:sn((()=>[d.value.operationReason?(pr(),vr(i,{key:0,color:Ct(G1)[d.value.operationReason].color},{default:sn((()=>[kr(X(Ct(G1)[d.value.operationReason].name),1)])),_:1},8,["color"])):Pr("",!0)])),_:1}),Sr(o,{label:"开始执行时间"},{default:sn((()=>[kr(X(d.value.executionAt),1)])),_:1}),Sr(o,{label:"执行器名称",span:2},{default:sn((()=>[kr(X(d.value.executorInfo),1)])),_:1}),Sr(o,{label:"创建时间",span:2},{default:sn((()=>[kr(X(d.value.createDt),1)])),_:1})])),_:1})])),_:1},8,["spinning"]),$r("div",v2,[b2,$r("span",y2,[Sr(S,{type:"text",icon:Yr(Ct(zJ)),onClick:t=>w(e)},null,8,["icon","onClick"])])]),Sr(C,{dataSource:p.value,columns:$.value,loading:c.value,scroll:{x:1200},"row-key":"id",onExpand:x,onChange:t=>{return n=e,o=t,g.value=o,void w(n,o.current);var n,o},pagination:g.value},{expandedRowRender:sn((({record:e})=>[Sr(g2,{open:a.value,"onUpdate:open":n[0]||(n[0]=e=>a.value=e),modelValue:f.value,"onUpdate:modelValue":n[1]||(n[1]=e=>f.value=e),record:e},null,8,["open","modelValue","record"])])),bodyCell:sn((({column:e,text:t})=>["taskStatus"===e.dataIndex?(pr(),mr(lr,{key:0},[t?(pr(),vr(i,{key:0,color:Ct(U1)[t].color},{default:sn((()=>[kr(X(Ct(U1)[t].name),1)])),_:2},1032,["color"])):Pr("",!0)],64)):Pr("",!0),"clientInfo"===e.dataIndex?(pr(),mr(lr,{key:1},[kr(X(""!==t?t.split("@")[1]:""),1)],64)):Pr("",!0)])),_:2},1032,["dataSource","columns","loading","onChange","pagination"])])),_:2},1032,["tab"])))),128))])),_:1},8,["activeKey"])])):(pr(),vr(M,{key:1,class:"empty",image:Ct(r),description:"暂无数据"},null,8,["image"]))])),_:2},[e.ids&&e.ids.length>0?{name:"footer",fn:sn((()=>[Sr(T,{style:{"text-align":"center"},current:u.value,"onUpdate:current":n[3]||(n[3]=e=>u.value=e),total:e.ids.length,pageSize:1,hideOnSinglePage:""},{itemRender:sn((({page:e,type:t,originalElement:n})=>{return["page"===t?(pr(),mr("a",O2,X(e),1)):(pr(),vr((o=n,v(o)?mn(hn,o,!1)||o:o||gn),{key:1}))];var o})),_:1},8,["current","total"])])),key:"0"}:void 0]),1032,["open"])}}}),[["__scopeId","data-v-d4c3caf7"]]),x2=e=>(ln("data-v-321f5975"),e=e(),an(),e),$2={class:"add-node-btn-box"},S2={class:"add-node-btn"},C2={class:"add-node-popover-body"},k2={class:"icon"},P2=x2((()=>$r("p",null,"任务节点",-1))),M2=x2((()=>$r("p",null,"决策节点",-1))),T2=x2((()=>$r("p",null,"回调通知",-1))),I2=f2(Ln({__name:"AddNode",props:{modelValue:I1(),disabled:k1().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=e=>{let t={};1===e?t={nodeName:"任务节点",nodeType:1,conditionNodes:[{nodeName:"任务1",failStrategy:1,priorityLevel:1,workflowNodeStatus:1,jobTask:{jobId:void 0}}],childNode:o.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:o.modelValue}:3===e&&(t={nodeName:"回调通知",nodeType:3,conditionNodes:[{nodeName:"回调通知",workflowNodeStatus:1,callback:{webhook:void 0,contentType:void 0,secret:void 0}}],childNode:o.modelValue}),n("update:modelValue",t)};return(t,n)=>{const o=fn("a-button"),i=fn("a-popover");return pr(),mr("div",$2,[$r("div",S2,[e.disabled?Pr("",!0):(pr(),vr(i,{key:0,placement:"rightTop",trigger:"click","overlay-style":{width:"296px"}},{content:sn((()=>[$r("div",C2,[$r("ul",k2,[$r("li",null,[Sr(o,{shape:"circle",size:"large",onClick:n[0]||(n[0]=e=>r(1))},{default:sn((()=>[Sr(Ct(FJ),{style:{color:"#3296fa"}})])),_:1}),P2]),$r("li",null,[Sr(o,{shape:"circle",size:"large",onClick:n[1]||(n[1]=e=>r(2))},{default:sn((()=>[Sr(Ct(MJ),{style:{color:"#15bc83"}})])),_:1}),M2]),$r("li",null,[Sr(o,{shape:"circle",size:"large",onClick:n[2]||(n[2]=e=>r(3))},{default:sn((()=>[Sr(Ct(bL),{style:{color:"#935af6"}})])),_:1}),T2])])])])),default:sn((()=>[Sr(o,{type:"primary",icon:Yr(Ct(PI)),shape:"circle"},null,8,["icon"])])),_:1}))])])}}}),[["__scopeId","data-v-321f5975"]]),E2=e=>{const t=[];for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];"number"==typeof o&&t.push({name:n,value:o})}return t},A2=Ln({__name:"TaskDrawer",props:{open:k1().def(!1),len:M1().def(0),modelValue:I1().def({})},emits:["update:modelValue","update:open","save"],setup(e,{emit:t}){const n=t,o=e,r=J0(),i=Ot(!1),l=Ot({}),a=Ot([]);Gn((()=>{a.value=r.JOB_LIST})),wn((()=>o.open),(e=>{i.value=e}),{immediate:!0}),wn((()=>o.modelValue),(e=>{l.value=e}),{immediate:!0,deep:!0});const s=()=>{n("update:modelValue",l.value)},c=Ot(),u=()=>{var e;null==(e=c.value)||e.validate().then((()=>{d(),n("save",l.value)})).catch((()=>{wB.warning("请检查表单信息")}))},d=()=>{n("update:open",!1),i.value=!1},p={failStrategy:[{required:!0,message:"请选择失败策略",trigger:"change"}],workflowNodeStatus:[{required:!0,message:"请选择工作流状态",trigger:"change"}]};return(t,n)=>{const o=fn("a-typography-paragraph"),r=fn("a-select-option"),h=fn("a-select"),f=fn("a-form-item"),g=fn("a-radio"),m=fn("a-radio-group"),v=fn("a-form"),b=fn("a-button"),y=fn("a-drawer");return pr(),vr(y,{open:i.value,"onUpdate:open":n[5]||(n[5]=e=>i.value=e),"destroy-on-close":"",width:500,onClose:d},{title:sn((()=>[Sr(o,{style:{margin:"0",width:"412px"},ellipsis:"",content:l.value.nodeName,"onUpdate:content":n[0]||(n[0]=e=>l.value.nodeName=e),editable:{tooltip:!1,maxlength:64},onOnEnd:s},null,8,["content"])])),extra:sn((()=>[Sr(h,{value:l.value.priorityLevel,"onUpdate:value":n[1]||(n[1]=e=>l.value.priorityLevel=e),style:{width:"110px"}},{default:sn((()=>[(pr(!0),mr(lr,null,io(e.len,(e=>(pr(),vr(r,{key:e,value:e},{default:sn((()=>[kr("优先级 "+X(e),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),footer:sn((()=>[Sr(b,{type:"primary",onClick:u},{default:sn((()=>[kr("保存")])),_:1}),Sr(b,{style:{"margin-left":"12px"},onClick:d},{default:sn((()=>[kr("取消")])),_:1})])),default:sn((()=>[Sr(v,{ref_key:"formRef",ref:c,rules:p,layout:"vertical",model:l.value,"label-align":"left","label-col":{style:{width:"100px"}}},{default:sn((()=>[Sr(f,{name:["jobTask","jobId"],label:"所属任务",placeholder:"请选择任务",rules:[{required:!0,message:"请选择任务",trigger:"change"}]},{default:sn((()=>[Sr(h,{value:l.value.jobTask.jobId,"onUpdate:value":n[2]||(n[2]=e=>l.value.jobTask.jobId=e)},{default:sn((()=>[(pr(!0),mr(lr,null,io(a.value,(e=>(pr(),vr(r,{key:e.id,value:e.id},{default:sn((()=>[kr(X(e.jobName),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1}),Sr(f,{name:"failStrategy",label:"失败策略"},{default:sn((()=>[Sr(m,{value:l.value.failStrategy,"onUpdate:value":n[3]||(n[3]=e=>l.value.failStrategy=e)},{default:sn((()=>[(pr(!0),mr(lr,null,io(Ct(E2)(Ct(W1)),(e=>(pr(),vr(g,{key:e.value,value:e.value},{default:sn((()=>[kr(X(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1}),Sr(f,{name:"workflowNodeStatus",label:"节点状态"},{default:sn((()=>[Sr(m,{value:l.value.workflowNodeStatus,"onUpdate:value":n[4]||(n[4]=e=>l.value.workflowNodeStatus=e)},{default:sn((()=>[(pr(!0),mr(lr,null,io(Ct(E2)(Ct(V1)),(e=>(pr(),vr(g,{key:e.value,value:e.value},{default:sn((()=>[kr(X(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1})])),_:1},8,["model"])])),_:1},8,["open"])}}}),R2=Ln({__name:"TaskDetail",props:{modelValue:I1().def({}),open:k1().def(!1)},emits:["update:open"],setup(e,{emit:t}){const n=t,o=e,r=J0(),i=Ot(!1);wn((()=>o.open),(e=>{i.value=e}),{immediate:!0});const l=()=>{n("update:open",!1)},a=e=>{var t;return null==(t=r.JOB_LIST.find((t=>t.id===e)))?void 0:t.jobName};return(t,n)=>{const o=fn("a-descriptions-item"),r=fn("a-descriptions"),s=fn("a-drawer");return pr(),vr(s,{title:"任务详情",placement:"right",width:500,open:i.value,"onUpdate:open":n[0]||(n[0]=e=>i.value=e),"destroy-on-close":"",onClose:l},{default:sn((()=>[Sr(r,{column:1,bordered:"",labelStyle:{width:"120px"}},{default:sn((()=>[Sr(o,{label:"节点名称"},{default:sn((()=>[kr(X(e.modelValue.nodeName),1)])),_:1}),Sr(o,{label:"任务 ID"},{default:sn((()=>{var t;return[kr(X(null==(t=e.modelValue.jobTask)?void 0:t.jobId),1)]})),_:1}),Sr(o,{label:"任务名称"},{default:sn((()=>{var t;return[kr(X(a(null==(t=e.modelValue.jobTask)?void 0:t.jobId)),1)]})),_:1}),Sr(o,{label:"失败策略"},{default:sn((()=>[kr(X(Ct(W1)[e.modelValue.failStrategy]),1)])),_:1}),Sr(o,{label:"工作流状态"},{default:sn((()=>[kr(X(Ct(V1)[e.modelValue.workflowNodeStatus]),1)])),_:1})])),_:1})])),_:1},8,["open"])}}}),D2=e=>(ln("data-v-0c0a103c"),e=e(),an(),e),j2={class:"node-wrap"},B2={class:"branch-box"},N2={class:"condition-node"},z2={class:"condition-node-box"},_2={class:"popover"},L2=D2((()=>$r("span",null,"重试",-1))),Q2=D2((()=>$r("span",null,"忽略",-1))),H2=["onClick"],F2=["onClick"],W2={class:"title"},V2={class:"text",style:{color:"#3296fa"}},Z2={class:"priority-title"},X2={class:"content",style:{"min-height":"81px"}},Y2={key:0,class:"placeholder"},K2=D2((()=>$r("div",null,".........",-1))),G2=["onClick"],U2={key:1,class:"top-left-cover-line"},q2={key:2,class:"bottom-left-cover-line"},J2={key:3,class:"top-right-cover-line"},e3={key:4,class:"bottom-right-cover-line"},t3=f2(Ln({__name:"TaskNode",props:{modelValue:I1().def({}),disabled:k1().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=J0(),i=Ot({}),l=Ot({});wn((()=>o.modelValue),(e=>{i.value=e}),{immediate:!0,deep:!0});const a=()=>{var e;const t=i.value.conditionNodes.length+1;null==(e=i.value.conditionNodes)||e.push({nodeName:"任务"+t,priorityLevel:t,failStrategy:1,workflowNodeStatus:1,jobTask:{jobId:void 0}}),n("update:modelValue",i.value)},s=(e,t)=>{e.childNode?s(e.childNode,t):e.childNode=t},c=(e,t=1)=>{var o;i.value.conditionNodes[e]=i.value.conditionNodes.splice(e+t,1,i.value.conditionNodes[e])[0],null==(o=i.value.conditionNodes)||o.map(((e,t)=>{e.priorityLevel=t+1})),n("update:modelValue",i.value)},u=Ot(0),d=Ot(!1),p=Ot({}),h=e=>{const t=i.value.conditionNodes[u.value].priorityLevel,o=e.priorityLevel;i.value.conditionNodes[u.value]=e,t!==o&&c(u.value,o-t),n("update:modelValue",i.value)},f=e=>o.disabled?2===r.TYPE?`node-error node-error-${e.taskBatchStatus&&Y1[e.taskBatchStatus]?Y1[e.taskBatchStatus].name:"default"}`:"node-error":"auto-judge-def auto-judge-hover",g=Ot(),m=Ot(),v=Ot(!1),b=Ot([]),y=(e,t)=>{var n;m.value=[],2===r.TYPE?(e.forEach((e=>{var t;e.id?null==(t=m.value)||t.push(e.id):e.jobId&&(g.value=e.jobId.toString())})),v.value=!0):1===r.TYPE?b.value[t]=!0:(n=t,o.disabled||(u.value=n,p.value=JSON.parse(JSON.stringify(i.value.conditionNodes[n])),d.value=!0))};return(t,o)=>{const u=fn("a-button"),O=fn("a-divider"),w=fn("a-tooltip"),x=fn("a-popover");return pr(),mr("div",j2,[$r("div",B2,[e.disabled?Pr("",!0):(pr(),vr(u,{key:0,class:"add-branch",primary:"",onClick:a},{default:sn((()=>[kr("添加任务")])),_:1})),(pr(!0),mr(lr,null,io(i.value.conditionNodes,((o,a)=>(pr(),mr("div",{class:"col-box",key:a},[$r("div",N2,[$r("div",z2,[Sr(x,{open:l.value[a]&&2===Ct(r).TYPE,getPopupContainer:e=>e.parentNode,onOpenChange:e=>l.value[a]=e},{content:sn((()=>[$r("div",_2,[Sr(O,{type:"vertical"}),Sr(u,{type:"text",class:"popover-item"},{default:sn((()=>[Sr(Ct(bJ)),L2])),_:1}),Sr(O,{type:"vertical"}),Sr(u,{type:"text",class:"popover-item"},{default:sn((()=>[Sr(Ct(oJ)),Q2])),_:1})])])),default:sn((()=>{var t,l,u;return[$r("div",{class:W(["auto-judge",f(o)]),style:{cursor:"pointer"},onClick:e=>y(o.jobBatchList,a)},[0!=a?(pr(),mr("div",{key:0,class:"sort-left",onClick:Wi((e=>c(a,-1)),["stop"])},[Sr(Ct(jR))],8,F2)):Pr("",!0),$r("div",W2,[$r("span",V2,X(o.nodeName),1),$r("span",Z2,"优先级"+X(o.priorityLevel),1),e.disabled?Pr("",!0):(pr(),vr(Ct(qb),{key:0,class:"close",onClick:Wi((e=>(e=>{var t;1===i.value.conditionNodes.length?(i.value.childNode&&(i.value.conditionNodes[0].childNode?s(i.value.conditionNodes[0].childNode,i.value.childNode):i.value.conditionNodes[0].childNode=i.value.childNode),Vt((()=>{n("update:modelValue",i.value.conditionNodes[0].childNode)}))):null==(t=i.value.conditionNodes)||t.splice(e,1)})(a)),["stop"])},null,8,["onClick"]))]),$r("div",X2,[(null==(t=o.jobTask)?void 0:t.jobId)?Pr("",!0):(pr(),mr("div",Y2,"请选择任务")),(null==(l=o.jobTask)?void 0:l.jobId)?(pr(),mr(lr,{key:1},[$r("div",null,"任务ID: "+X(null==(u=o.jobTask)?void 0:u.jobId),1),$r("div",null,"失败策略: "+X(Ct(W1)[o.failStrategy]),1),$r("div",null,"工作流状态: "+X(Ct(V1)[o.workflowNodeStatus]),1),K2],64)):Pr("",!0)]),a!=i.value.conditionNodes.length-1?(pr(),mr("div",{key:1,class:"sort-right",onClick:Wi((e=>c(a)),["stop"])},[Sr(Ct(nk))],8,G2)):Pr("",!0),2===Ct(r).TYPE&&o.taskBatchStatus?(pr(),vr(w,{key:2},{title:sn((()=>[kr(X(Ct(Y1)[o.taskBatchStatus].title),1)])),default:sn((()=>[Ct(Y1)[o.taskBatchStatus]?(pr(),vr(Ct(L1),{key:0,class:"error-tip",color:Ct(Y1)[o.taskBatchStatus].color,size:"24px",onClick:Wi((()=>{}),["stop"]),modelValue:Ct(Y1)[o.taskBatchStatus].icon,"onUpdate:modelValue":e=>Ct(Y1)[o.taskBatchStatus].icon=e},null,8,["color","modelValue","onUpdate:modelValue"])):Pr("",!0)])),_:2},1024)):Pr("",!0)],10,H2)]})),_:2},1032,["open","getPopupContainer","onOpenChange"]),Sr(I2,{disabled:e.disabled,modelValue:o.childNode,"onUpdate:modelValue":e=>o.childNode=e},null,8,["disabled","modelValue","onUpdate:modelValue"])])]),o.childNode?lo(t.$slots,"default",{key:0,node:o},void 0,!0):Pr("",!0),0==a?(pr(),mr("div",U2)):Pr("",!0),0==a?(pr(),mr("div",q2)):Pr("",!0),a==i.value.conditionNodes.length-1?(pr(),mr("div",J2)):Pr("",!0),a==i.value.conditionNodes.length-1?(pr(),mr("div",e3)):Pr("",!0),0!==Ct(r).type&&b.value[a]?(pr(),vr(R2,{key:5,open:b.value[a],"onUpdate:open":e=>b.value[a]=e,modelValue:i.value.conditionNodes[a],"onUpdate:modelValue":e=>i.value.conditionNodes[a]=e},null,8,["open","onUpdate:open","modelValue","onUpdate:modelValue"])):Pr("",!0)])))),128))]),i.value.conditionNodes.length>1?(pr(),vr(I2,{key:0,disabled:e.disabled,modelValue:i.value.childNode,"onUpdate:modelValue":o[0]||(o[0]=e=>i.value.childNode=e)},null,8,["disabled","modelValue"])):Pr("",!0),0===Ct(r).TYPE&&d.value?(pr(),vr(A2,{key:1,open:d.value,"onUpdate:open":o[1]||(o[1]=e=>d.value=e),modelValue:p.value,"onUpdate:modelValue":o[2]||(o[2]=e=>p.value=e),len:i.value.conditionNodes.length,"onUpdate:len":o[3]||(o[3]=e=>i.value.conditionNodes.length=e),onSave:h},null,8,["open","modelValue","len"])):Pr("",!0),0!==Ct(r).TYPE&&v.value?(pr(),vr(Ct(w2),{key:2,open:v.value,"onUpdate:open":o[4]||(o[4]=e=>v.value=e),id:g.value,ids:m.value},null,8,["open","id","ids"])):Pr("",!0)])}}}),[["__scopeId","data-v-0c0a103c"]]);class n3{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=d3(this,e,t);let o=[];return this.decompose(0,e,o,2),n.length&&n.decompose(0,n.length,o,3),this.decompose(t,this.length,o,1),r3.from(o,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=d3(this,e,t);let n=[];return this.decompose(e,t,n,0),r3.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),o=new a3(this),r=new a3(e);for(let i=t,l=t;;){if(o.next(i),r.next(i),i=0,o.lineBreak!=r.lineBreak||o.done!=r.done||o.value!=r.value)return!1;if(l+=o.value.length,o.done||l>=n)return!0}}iter(e=1){return new a3(this,e)}iterRange(e,t=this.length){return new s3(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let o=this.line(e).from;n=this.iterRange(o,Math.max(o,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new c3(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new o3(e):r3.from(o3.split(e,[])):n3.empty}}class o3 extends n3{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,o){for(let r=0;;r++){let i=this.text[r],l=o+i.length;if((t?n:l)>=e)return new u3(o,l,n,i);o=l+1,n++}}decompose(e,t,n,o){let r=e<=0&&t>=this.length?this:new o3(l3(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&o){let e=n.pop(),t=i3(r.text,e.text.slice(),0,r.length);if(t.length<=32)n.push(new o3(t,e.length+r.length));else{let e=t.length>>1;n.push(new o3(t.slice(0,e)),new o3(t.slice(e)))}}else n.push(r)}replace(e,t,n){if(!(n instanceof o3))return super.replace(e,t,n);[e,t]=d3(this,e,t);let o=i3(this.text,i3(n.text,l3(this.text,0,e)),t),r=this.length+n.length-(t-e);return o.length<=32?new o3(o,r):r3.from(o3.split(o,[]),r)}sliceString(e,t=this.length,n="\n"){[e,t]=d3(this,e,t);let o="";for(let r=0,i=0;r<=t&&i<this.text.length;i++){let l=this.text[i],a=r+l.length;r>e&&i&&(o+=n),e<a&&t>r&&(o+=l.slice(Math.max(0,e-r),t-r)),r=a+1}return o}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],o=-1;for(let r of e)n.push(r),o+=r.length+1,32==n.length&&(t.push(new o3(n,o)),n=[],o=-1);return o>-1&&t.push(new o3(n,o)),t}}class r3 extends n3{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,o){for(let r=0;;r++){let i=this.children[r],l=o+i.length,a=n+i.lines-1;if((t?a:l)>=e)return i.lineInner(e,t,n,o);o=l+1,n=a+1}}decompose(e,t,n,o){for(let r=0,i=0;i<=t&&r<this.children.length;r++){let l=this.children[r],a=i+l.length;if(e<=a&&t>=i){let r=o&((i<=e?1:0)|(a>=t?2:0));i>=e&&a<=t&&!r?n.push(l):l.decompose(e-i,t-i,n,r)}i=a+1}}replace(e,t,n){if([e,t]=d3(this,e,t),n.lines<this.lines)for(let o=0,r=0;o<this.children.length;o++){let i=this.children[o],l=r+i.length;if(e>=r&&t<=l){let a=i.replace(e-r,t-r,n),s=this.lines-i.lines+a.lines;if(a.lines<s>>4&&a.lines>s>>6){let r=this.children.slice();return r[o]=a,new r3(r,this.length-(t-e)+n.length)}return super.replace(r,l,a)}r=l+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){[e,t]=d3(this,e,t);let o="";for(let r=0,i=0;r<this.children.length&&i<=t;r++){let l=this.children[r],a=i+l.length;i>e&&r&&(o+=n),e<a&&t>i&&(o+=l.sliceString(e-i,t-i,n)),i=a+1}return o}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof r3))return 0;let n=0,[o,r,i,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;o+=t,r+=t){if(o==i||r==l)return n;let a=this.children[o],s=e.children[r];if(a!=s)return n+a.scanIdentical(s,t);n+=a.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0;for(let p of e)n+=p.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new o3(n,t)}let o=Math.max(32,n>>5),r=o<<1,i=o>>1,l=[],a=0,s=-1,c=[];function u(e){let t;if(e.lines>r&&e instanceof r3)for(let n of e.children)u(n);else e.lines>i&&(a>i||!a)?(d(),l.push(e)):e instanceof o3&&a&&(t=c[c.length-1])instanceof o3&&e.lines+t.lines<=32?(a+=e.lines,s+=e.length+1,c[c.length-1]=new o3(t.text.concat(e.text),t.length+1+e.length)):(a+e.lines>o&&d(),a+=e.lines,s+=e.length+1,c.push(e))}function d(){0!=a&&(l.push(1==c.length?c[0]:r3.from(c,s)),s=-1,a=c.length=0)}for(let p of e)u(p);return d(),1==l.length?l[0]:new r3(l,t)}}function i3(e,t,n=0,o=1e9){for(let r=0,i=0,l=!0;i<e.length&&r<=o;i++){let a=e[i],s=r+a.length;s>=n&&(s>o&&(a=a.slice(0,o-r)),r<n&&(a=a.slice(n-r)),l?(t[t.length-1]+=a,l=!1):t.push(a)),r=s+1}return t}function l3(e,t,n){return i3(e,[""],t,n)}n3.empty=new o3([""],0);class a3{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof o3?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,o=this.nodes[n],r=this.offsets[n],i=r>>1,l=o instanceof o3?o.text.length:o.children.length;if(i==(t>0?l:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&r)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(o instanceof o3){let r=o.text[i+(t<0?-1:0)];if(this.offsets[n]+=t,r.length>Math.max(0,e))return this.value=0==e?r:t>0?r.slice(e):r.slice(0,r.length-e),this;e-=r.length}else{let r=o.children[i+(t<0?-1:0)];e>r.length?(e-=r.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(r),this.offsets.push(t>0?1:(r instanceof o3?r.text.length:r.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class s3{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new a3(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:o}=this.cursor.next(e);return this.pos+=(o.length+e)*t,this.value=o.length<=n?o:t<0?o.slice(o.length-n):o.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class c3{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:o}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(n3.prototype[Symbol.iterator]=function(){return this.iter()},a3.prototype[Symbol.iterator]=s3.prototype[Symbol.iterator]=c3.prototype[Symbol.iterator]=function(){return this});class u3{constructor(e,t,n,o){this.from=e,this.to=t,this.number=n,this.text=o}get length(){return this.to-this.from}}function d3(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}let p3="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((e=>e?parseInt(e,36):1));for(let Cpe=1;Cpe<p3.length;Cpe++)p3[Cpe]+=p3[Cpe-1];function h3(e){for(let t=1;t<p3.length;t+=2)if(p3[t]>e)return p3[t-1]<=e;return!1}function f3(e){return e>=127462&&e<=127487}function g3(e,t,n=!0,o=!0){return(n?m3:v3)(e,t,o)}function m3(e,t,n){if(t==e.length)return t;t&&b3(e.charCodeAt(t))&&y3(e.charCodeAt(t-1))&&t--;let o=O3(e,t);for(t+=x3(o);t<e.length;){let r=O3(e,t);if(8205==o||8205==r||n&&h3(r))t+=x3(r),o=r;else{if(!f3(r))break;{let n=0,o=t-2;for(;o>=0&&f3(O3(e,o));)n++,o-=2;if(n%2==0)break;t+=2}}}return t}function v3(e,t,n){for(;t>0;){let o=m3(e,t-2,n);if(o<t)return o;t--}return 0}function b3(e){return e>=56320&&e<57344}function y3(e){return e>=55296&&e<56320}function O3(e,t){let n=e.charCodeAt(t);if(!y3(n)||t+1==e.length)return n;let o=e.charCodeAt(t+1);return b3(o)?o-56320+(n-55296<<10)+65536:n}function w3(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function x3(e){return e<65536?1:2}const $3=/\r\n?|\n/;var S3=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(S3||(S3={}));class C3{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,o=0;t<this.sections.length;){let r=this.sections[t++],i=this.sections[t++];i<0?(e(n,o,r),o+=r):o+=i,n+=r}}iterChangedRanges(e,t=!1){T3(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],o=this.sections[t++];o<0?e.push(n,o):e.push(o,n)}return new C3(e)}composeDesc(e){return this.empty?e:e.empty?this:E3(this,e)}mapDesc(e,t=!1){return e.empty?this:I3(this,e,t)}mapPos(e,t=-1,n=S3.Simple){let o=0,r=0;for(let i=0;i<this.sections.length;){let l=this.sections[i++],a=this.sections[i++],s=o+l;if(a<0){if(s>e)return r+(e-o);r+=l}else{if(n!=S3.Simple&&s>=e&&(n==S3.TrackDel&&o<e&&s>e||n==S3.TrackBefore&&o<e||n==S3.TrackAfter&&s>e))return null;if(s>e||s==e&&t<0&&!l)return e==o||t<0?r:r+a;r+=a}o=s}if(e>o)throw new RangeError(`Position ${e} is out of range for changeset of length ${o}`);return r}touchesRange(e,t=e){for(let n=0,o=0;n<this.sections.length&&o<=t;){let r=o+this.sections[n++];if(this.sections[n++]>=0&&o<=t&&r>=e)return!(o<e&&r>t)||"cover";o=r}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],o=this.sections[t++];e+=(e?" ":"")+n+(o>=0?":"+o:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new C3(e)}static create(e){return new C3(e)}}class k3 extends C3{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return T3(this,((t,n,o,r,i)=>e=e.replace(o,o+(n-t),i)),!1),e}mapDesc(e,t=!1){return I3(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let o=0,r=0;o<t.length;o+=2){let i=t[o],l=t[o+1];if(l>=0){t[o]=l,t[o+1]=i;let a=o>>1;for(;n.length<a;)n.push(n3.empty);n.push(i?e.slice(r,r+i):n3.empty)}r+=i}return new k3(t,n)}compose(e){return this.empty?e:e.empty?this:E3(this,e,!0)}map(e,t=!1){return e.empty?this:I3(this,e,t,!0)}iterChanges(e,t=!1){T3(this,e,t)}get desc(){return C3.create(this.sections)}filter(e){let t=[],n=[],o=[],r=new A3(this);e:for(let i=0,l=0;;){let a=i==e.length?1e9:e[i++];for(;l<a||l==a&&0==r.len;){if(r.done)break e;let e=Math.min(r.len,a-l);P3(o,e,-1);let i=-1==r.ins?-1:0==r.off?r.ins:0;P3(t,e,i),i>0&&M3(n,t,r.text),r.forward(e),l+=e}let s=e[i++];for(;l<s;){if(r.done)break e;let e=Math.min(r.len,s-l);P3(t,e,-1),P3(o,e,-1==r.ins?-1:0==r.off?r.ins:0),r.forward(e),l+=e}}return{changes:new k3(t,n),filtered:C3.create(o)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],o=this.sections[t+1];o<0?e.push(n):0==o?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let o=[],r=[],i=0,l=null;function a(e=!1){if(!e&&!o.length)return;i<t&&P3(o,t-i,-1);let n=new k3(o,r);l=l?l.compose(n.map(l)):n,o=[],r=[],i=0}return function e(s){if(Array.isArray(s))for(let t of s)e(t);else if(s instanceof k3){if(s.length!=t)throw new RangeError(`Mismatched change set length (got ${s.length}, expected ${t})`);a(),l=l?l.compose(s.map(l)):s}else{let{from:e,to:l=e,insert:c}=s;if(e>l||e<0||l>t)throw new RangeError(`Invalid change range ${e} to ${l} (in doc of length ${t})`);let u=c?"string"==typeof c?n3.of(c.split(n||$3)):c:n3.empty,d=u.length;if(e==l&&0==d)return;e<i&&a(),e>i&&P3(o,e-i,-1),P3(o,l-e,d),M3(r,o,u),i=l}}(e),a(!l),l}static empty(e){return new k3(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let o=0;o<e.length;o++){let r=e[o];if("number"==typeof r)t.push(r,-1);else{if(!Array.isArray(r)||"number"!=typeof r[0]||r.some(((e,t)=>t&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==r.length)t.push(r[0],0);else{for(;n.length<o;)n.push(n3.empty);n[o]=n3.of(r.slice(1)),t.push(r[0],n[o].length)}}}return new k3(t,n)}static createSet(e,t){return new k3(e,t)}}function P3(e,t,n,o=!1){if(0==t&&n<=0)return;let r=e.length-2;r>=0&&n<=0&&n==e[r+1]?e[r]+=t:0==t&&0==e[r]?e[r+1]+=n:o?(e[r]+=t,e[r+1]+=n):e.push(t,n)}function M3(e,t,n){if(0==n.length)return;let o=t.length-2>>1;if(o<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<o;)e.push(n3.empty);e.push(n)}}function T3(e,t,n){let o=e.inserted;for(let r=0,i=0,l=0;l<e.sections.length;){let a=e.sections[l++],s=e.sections[l++];if(s<0)r+=a,i+=a;else{let c=r,u=i,d=n3.empty;for(;c+=a,u+=s,s&&o&&(d=d.append(o[l-2>>1])),!(n||l==e.sections.length||e.sections[l+1]<0);)a=e.sections[l++],s=e.sections[l++];t(r,c,i,u,d),r=c,i=u}}}function I3(e,t,n,o=!1){let r=[],i=o?[]:null,l=new A3(e),a=new A3(t);for(let s=-1;;)if(-1==l.ins&&-1==a.ins){let e=Math.min(l.len,a.len);P3(r,e,-1),l.forward(e),a.forward(e)}else if(a.ins>=0&&(l.ins<0||s==l.i||0==l.off&&(a.len<l.len||a.len==l.len&&!n))){let e=a.len;for(P3(r,a.ins,-1);e;){let t=Math.min(l.len,e);l.ins>=0&&s<l.i&&l.len<=t&&(P3(r,0,l.ins),i&&M3(i,r,l.text),s=l.i),l.forward(t),e-=t}a.next()}else{if(!(l.ins>=0)){if(l.done&&a.done)return i?k3.createSet(r,i):C3.create(r);throw new Error("Mismatched change set lengths")}{let e=0,t=l.len;for(;t;)if(-1==a.ins){let n=Math.min(t,a.len);e+=n,t-=n,a.forward(n)}else{if(!(0==a.ins&&a.len<t))break;t-=a.len,a.next()}P3(r,e,s<l.i?l.ins:0),i&&s<l.i&&M3(i,r,l.text),s=l.i,l.forward(l.len-t)}}}function E3(e,t,n=!1){let o=[],r=n?[]:null,i=new A3(e),l=new A3(t);for(let a=!1;;){if(i.done&&l.done)return r?k3.createSet(o,r):C3.create(o);if(0==i.ins)P3(o,i.len,0,a),i.next();else if(0!=l.len||l.done){if(i.done||l.done)throw new Error("Mismatched change set lengths");{let e=Math.min(i.len2,l.len),t=o.length;if(-1==i.ins){let t=-1==l.ins?-1:l.off?0:l.ins;P3(o,e,t,a),r&&t&&M3(r,o,l.text)}else-1==l.ins?(P3(o,i.off?0:i.len,e,a),r&&M3(r,o,i.textBit(e))):(P3(o,i.off?0:i.len,l.off?0:l.ins,a),r&&!l.off&&M3(r,o,l.text));a=(i.ins>e||l.ins>=0&&l.len>e)&&(a||o.length>t),i.forward2(e),l.forward(e)}}else P3(o,0,l.ins,a),r&&M3(r,o,l.text),l.next()}}class A3{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return-2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?n3.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?n3.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class R3{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}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 e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e,t=-1){let n,o;return this.empty?n=o=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),o=e.mapPos(this.to,-1)),n==this.from&&o==this.to?this:new R3(n,o,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return D3.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return D3.range(this.anchor,n)}eq(e,t=!1){return!(this.anchor!=e.anchor||this.head!=e.head||t&&this.empty&&this.assoc!=e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return D3.range(e.anchor,e.head)}static create(e,t,n){return new R3(e,t,n)}}class D3{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:D3.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new D3([this.main],0)}addRange(e,t=!0){return D3.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,D3.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((e=>e.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new D3(e.ranges.map((e=>R3.fromJSON(e))),e.main)}static single(e,t=e){return new D3([D3.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,o=0;o<e.length;o++){let r=e[o];if(r.empty?r.from<=n:r.from<n)return D3.normalized(e.slice(),t);n=r.to}return new D3(e,t)}static cursor(e,t=0,n,o){return R3.create(e,e,(0==t?0:t<0?8:16)|(null==n?7:Math.min(6,n))|(null!=o?o:16777215)<<6)}static range(e,t,n,o){let r=(null!=n?n:16777215)<<6|(null==o?7:Math.min(6,o));return t<e?R3.create(t,e,48|r):R3.create(e,t,(t>e?8:0)|r)}static normalized(e,t=0){let n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let o=1;o<e.length;o++){let n=e[o],r=e[o-1];if(n.empty?n.from<=r.to:n.from<r.to){let i=r.from,l=Math.max(n.to,r.to);o<=t&&t--,e.splice(--o,2,n.anchor>n.head?D3.range(l,i):D3.range(i,l))}}return new D3(e,t)}}function j3(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let B3=0;class N3{constructor(e,t,n,o,r){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=o,this.id=B3++,this.default=e([]),this.extensions="function"==typeof r?r(this):r}get reader(){return this}static define(e={}){return new N3(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:z3),!!e.static,e.enables)}of(e){return new _3([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new _3(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new _3(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function z3(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class _3{constructor(e,t,n,o){this.dependencies=e,this.facet=t,this.type=n,this.value=o,this.id=B3++}dynamicSlot(e){var t;let n=this.value,o=this.facet.compareInput,r=this.id,i=e[r]>>1,l=2==this.type,a=!1,s=!1,c=[];for(let u of this.dependencies)"doc"==u?a=!0:"selection"==u?s=!0:0==(1&(null!==(t=e[u.id])&&void 0!==t?t:1))&&c.push(e[u.id]);return{create:e=>(e.values[i]=n(e),1),update(e,t){if(a&&t.docChanged||s&&(t.docChanged||t.selection)||Q3(e,c)){let t=n(e);if(l?!L3(t,e.values[i],o):!o(t,e.values[i]))return e.values[i]=t,1}return 0},reconfigure:(e,t)=>{let a,s=t.config.address[r];if(null!=s){let r=n4(t,s);if(this.dependencies.every((n=>n instanceof N3?t.facet(n)===e.facet(n):!(n instanceof W3)||t.field(n,!1)==e.field(n,!1)))||(l?L3(a=n(e),r,o):o(a=n(e),r)))return e.values[i]=r,0}else a=n(e);return e.values[i]=a,1}}}}function L3(e,t,n){if(e.length!=t.length)return!1;for(let o=0;o<e.length;o++)if(!n(e[o],t[o]))return!1;return!0}function Q3(e,t){let n=!1;for(let o of t)1&t4(e,o)&&(n=!0);return n}function H3(e,t,n){let o=n.map((t=>e[t.id])),r=n.map((e=>e.type)),i=o.filter((e=>!(1&e))),l=e[t.id]>>1;function a(e){let n=[];for(let t=0;t<o.length;t++){let i=n4(e,o[t]);if(2==r[t])for(let e of i)n.push(e);else n.push(i)}return t.combine(n)}return{create(e){for(let t of o)t4(e,t);return e.values[l]=a(e),1},update(e,n){if(!Q3(e,i))return 0;let o=a(e);return t.compare(o,e.values[l])?0:(e.values[l]=o,1)},reconfigure(e,r){let i=Q3(e,o),s=r.config.facets[t.id],c=r.facet(t);if(s&&!i&&z3(n,s))return e.values[l]=c,0;let u=a(e);return t.compare(u,c)?(e.values[l]=c,0):(e.values[l]=u,1)}}}const F3=N3.define({static:!0});class W3{constructor(e,t,n,o,r){this.id=e,this.createF=t,this.updateF=n,this.compareF=o,this.spec=r,this.provides=void 0}static define(e){let t=new W3(B3++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(F3).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let o=e.values[t],r=this.updateF(o,n);return this.compareF(o,r)?0:(e.values[t]=r,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,F3.of({field:this,create:e})]}get extension(){return this}}const V3=4,Z3=3,X3=2,Y3=1;function K3(e){return t=>new U3(t,e)}const G3={highest:K3(0),high:K3(Y3),default:K3(X3),low:K3(Z3),lowest:K3(V3)};class U3{constructor(e,t){this.inner=e,this.prec=t}}class q3{of(e){return new J3(this,e)}reconfigure(e){return q3.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class J3{constructor(e,t){this.compartment=e,this.inner=t}}class e4{constructor(e,t,n,o,r,i){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=o,this.staticValues=r,this.facets=i,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let o=[],r=Object.create(null),i=new Map;for(let d of function(e,t,n){let o=[[],[],[],[],[]],r=new Map;function i(e,l){let a=r.get(e);if(null!=a){if(a<=l)return;let t=o[a].indexOf(e);t>-1&&o[a].splice(t,1),e instanceof J3&&n.delete(e.compartment)}if(r.set(e,l),Array.isArray(e))for(let t of e)i(t,l);else if(e instanceof J3){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let o=t.get(e.compartment)||e.inner;n.set(e.compartment,o),i(o,l)}else if(e instanceof U3)i(e.inner,e.prec);else if(e instanceof W3)o[l].push(e),e.provides&&i(e.provides,l);else if(e instanceof _3)o[l].push(e),e.facet.extensions&&i(e.facet.extensions,X3);else{let t=e.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);i(t,l)}}return i(e,X3),o.reduce(((e,t)=>e.concat(t)))}(e,t,i))d instanceof W3?o.push(d):(r[d.facet.id]||(r[d.facet.id]=[])).push(d);let l=Object.create(null),a=[],s=[];for(let d of o)l[d.id]=s.length<<1,s.push((e=>d.slot(e)));let c=null==n?void 0:n.config.facets;for(let d in r){let e=r[d],t=e[0].facet,o=c&&c[d]||[];if(e.every((e=>0==e.type)))if(l[t.id]=a.length<<1|1,z3(o,e))a.push(n.facet(t));else{let o=t.combine(e.map((e=>e.value)));a.push(n&&t.compare(o,n.facet(t))?n.facet(t):o)}else{for(let t of e)0==t.type?(l[t.id]=a.length<<1|1,a.push(t.value)):(l[t.id]=s.length<<1,s.push((e=>t.dynamicSlot(e))));l[t.id]=s.length<<1,s.push((n=>H3(n,t,e)))}}let u=s.map((e=>e(l)));return new e4(e,i,u,l,a,r)}}function t4(e,t){if(1&t)return 2;let n=t>>1,o=e.status[n];if(4==o)throw new Error("Cyclic dependency between fields and/or facets");if(2&o)return o;e.status[n]=4;let r=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|r}function n4(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const o4=N3.define(),r4=N3.define({combine:e=>e.some((e=>e)),static:!0}),i4=N3.define({combine:e=>e.length?e[0]:void 0,static:!0}),l4=N3.define(),a4=N3.define(),s4=N3.define(),c4=N3.define({combine:e=>!!e.length&&e[0]});class u4{constructor(e,t){this.type=e,this.value=t}static define(){return new d4}}class d4{of(e){return new u4(this,e)}}class p4{constructor(e){this.map=e}of(e){return new h4(this,e)}}class h4{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new h4(this.type,t)}is(e){return this.type==e}static define(e={}){return new p4(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let o of e){let e=o.map(t);e&&n.push(e)}return n}}h4.reconfigure=h4.define(),h4.appendConfig=h4.define();class f4{constructor(e,t,n,o,r,i){this.startState=e,this.changes=t,this.selection=n,this.effects=o,this.annotations=r,this.scrollIntoView=i,this._doc=null,this._state=null,n&&j3(n,t.newLength),r.some((e=>e.type==f4.time))||(this.annotations=r.concat(f4.time.of(Date.now())))}static create(e,t,n,o,r,i){return new f4(e,t,n,o,r,i)}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(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(f4.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function g4(e,t){let n=[];for(let o=0,r=0;;){let i,l;if(o<e.length&&(r==t.length||t[r]>=e[o]))i=e[o++],l=e[o++];else{if(!(r<t.length))return n;i=t[r++],l=t[r++]}!n.length||n[n.length-1]<i?n.push(i,l):n[n.length-1]<l&&(n[n.length-1]=l)}}function m4(e,t,n){var o;let r,i,l;return n?(r=t.changes,i=k3.empty(t.changes.length),l=e.changes.compose(t.changes)):(r=t.changes.map(e.changes),i=e.changes.mapDesc(t.changes,!0),l=e.changes.compose(r)),{changes:l,selection:t.selection?t.selection.map(i):null===(o=e.selection)||void 0===o?void 0:o.map(r),effects:h4.mapEffects(e.effects,r).concat(h4.mapEffects(t.effects,i)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function v4(e,t,n){let o=t.selection,r=O4(t.annotations);return t.userEvent&&(r=r.concat(f4.userEvent.of(t.userEvent))),{changes:t.changes instanceof k3?t.changes:k3.of(t.changes||[],n,e.facet(i4)),selection:o&&(o instanceof D3?o:D3.single(o.anchor,o.head)),effects:O4(t.effects),annotations:r,scrollIntoView:!!t.scrollIntoView}}function b4(e,t,n){let o=v4(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(n=!1);for(let i=1;i<t.length;i++){!1===t[i].filter&&(n=!1);let r=!!t[i].sequential;o=m4(o,v4(e,t[i],r?o.changes.newLength:e.doc.length),r)}let r=f4.create(e,o.changes,o.selection,o.effects,o.annotations,o.scrollIntoView);return function(e){let t=e.startState,n=t.facet(s4),o=e;for(let r=n.length-1;r>=0;r--){let i=n[r](e);i&&Object.keys(i).length&&(o=m4(o,v4(t,i,e.changes.newLength),!0))}return o==e?e:f4.create(t,e.changes,e.selection,o.effects,o.annotations,o.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let r of t.facet(l4)){let t=r(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:g4(n,t))}if(!0!==n){let o,r;if(!1===n)r=e.changes.invertedDesc,o=k3.empty(t.doc.length);else{let t=e.changes.filter(n);o=t.changes,r=t.filtered.mapDesc(t.changes).invertedDesc}e=f4.create(t,o,e.selection&&e.selection.map(r),h4.mapEffects(e.effects,r),e.annotations,e.scrollIntoView)}let o=t.facet(a4);for(let r=o.length-1;r>=0;r--){let n=o[r](e);e=n instanceof f4?n:Array.isArray(n)&&1==n.length&&n[0]instanceof f4?n[0]:b4(t,O4(n),!1)}return e}(r):r)}f4.time=u4.define(),f4.userEvent=u4.define(),f4.addToHistory=u4.define(),f4.remote=u4.define();const y4=[];function O4(e){return null==e?y4:Array.isArray(e)?e:[e]}var w4=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(w4||(w4={}));const x4=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let $4;try{$4=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(Spe){}function S4(e){return t=>{if(!/\S/.test(t))return w4.Space;if(function(e){if($4)return $4.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||x4.test(n)))return!0}return!1}(t))return w4.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return w4.Word;return w4.Other}}class C4{constructor(e,t,n,o,r,i){this.config=e,this.doc=t,this.selection=n,this.values=o,this.status=e.statusTemplate.slice(),this.computeSlot=r,i&&(i._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)t4(this,l<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(null!=n)return t4(this,n),n4(this,n);if(t)throw new RangeError("Field is not present in this state")}update(...e){return b4(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:o,compartments:r}=n;for(let l of e.effects)l.is(q3.reconfigure)?(n&&(r=new Map,n.compartments.forEach(((e,t)=>r.set(t,e))),n=null),r.set(l.value.compartment,l.value.extension)):l.is(h4.reconfigure)?(n=null,o=l.value):l.is(h4.appendConfig)&&(n=null,o=O4(o).concat(l.value));n?t=e.startState.values.slice():(n=e4.resolve(o,r,this),t=new C4(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values);let i=e.startState.facet(r4)?e.newSelection:e.newSelection.asSingle();new C4(n,e.newDoc,i,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:D3.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),o=this.changes(n.changes),r=[n.range],i=O4(n.effects);for(let l=1;l<t.ranges.length;l++){let n=e(t.ranges[l]),a=this.changes(n.changes),s=a.map(o);for(let e=0;e<l;e++)r[e]=r[e].map(s);let c=o.mapDesc(a,!0);r.push(n.range.map(c)),o=o.compose(s),i=h4.mapEffects(i,s).concat(h4.mapEffects(O4(n.effects),c))}return{changes:o,selection:D3.create(r,t.mainIndex),effects:i}}changes(e=[]){return e instanceof k3?e:k3.of(e,this.doc.length,this.facet(C4.lineSeparator))}toText(e){return n3.of(e.split(this.facet(C4.lineSeparator)||$3))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(t4(this,t),n4(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let o=e[n];o instanceof W3&&null!=this.config.address[o.id]&&(t[n]=o.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let o=[];if(n)for(let r in n)if(Object.prototype.hasOwnProperty.call(e,r)){let t=n[r],i=e[r];o.push(t.init((e=>t.spec.fromJSON(i,e))))}return C4.create({doc:e.doc,selection:D3.fromJSON(e.selection),extensions:t.extensions?o.concat([t.extensions]):o})}static create(e={}){let t=e4.resolve(e.extensions||[],new Map),n=e.doc instanceof n3?e.doc:n3.of((e.doc||"").split(t.staticFacet(C4.lineSeparator)||$3)),o=e.selection?e.selection instanceof D3?e.selection:D3.single(e.selection.anchor,e.selection.head):D3.single(0);return j3(o,n.length),t.staticFacet(r4)||(o=o.asSingle()),new C4(t,n,o,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(C4.tabSize)}get lineBreak(){return this.facet(C4.lineSeparator)||"\n"}get readOnly(){return this.facet(c4)}phrase(e,...t){for(let n of this.facet(C4.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,n)=>{if("$"==n)return"$";let o=+(n||1);return!o||o>t.length?e:t[o-1]}))),e}languageDataAt(e,t,n=-1){let o=[];for(let r of this.facet(o4))for(let i of r(this,t,n))Object.prototype.hasOwnProperty.call(i,e)&&o.push(i[e]);return o}charCategorizer(e){return S4(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:o}=this.doc.lineAt(e),r=this.charCategorizer(e),i=e-n,l=e-n;for(;i>0;){let e=g3(t,i,!1);if(r(t.slice(e,i))!=w4.Word)break;i=e}for(;l<o;){let e=g3(t,l);if(r(t.slice(l,e))!=w4.Word)break;l=e}return i==l?null:D3.range(i+n,l+n)}}function k4(e,t,n={}){let o={};for(let r of e)for(let e of Object.keys(r)){let t=r[e],i=o[e];if(void 0===i)o[e]=t;else if(i===t||void 0===t);else{if(!Object.hasOwnProperty.call(n,e))throw new Error("Config merge conflict for field "+e);o[e]=n[e](i,t)}}for(let r in t)void 0===o[r]&&(o[r]=t[r]);return o}C4.allowMultipleSelections=r4,C4.tabSize=N3.define({combine:e=>e.length?e[0]:4}),C4.lineSeparator=i4,C4.readOnly=c4,C4.phrases=N3.define({compare(e,t){let n=Object.keys(e),o=Object.keys(t);return n.length==o.length&&n.every((n=>e[n]==t[n]))}}),C4.languageData=o4,C4.changeFilter=l4,C4.transactionFilter=a4,C4.transactionExtender=s4,q3.reconfigure=h4.define();class P4{eq(e){return this==e}range(e,t=e){return M4.create(e,t,this)}}P4.prototype.startSide=P4.prototype.endSide=0,P4.prototype.point=!1,P4.prototype.mapMode=S3.TrackDel;let M4=class e{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(t,n,o){return new e(t,n,o)}};function T4(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class I4{constructor(e,t,n,o){this.from=e,this.to=t,this.value=n,this.maxPoint=o}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,o=0){let r=n?this.to:this.from;for(let i=o,l=r.length;;){if(i==l)return i;let o=i+l>>1,a=r[o]-e||(n?this.value[o].endSide:this.value[o].startSide)-t;if(o==i)return a>=0?i:l;a>=0?l=o:i=o+1}}between(e,t,n,o){for(let r=this.findIndex(t,-1e9,!0),i=this.findIndex(n,1e9,!1,r);r<i;r++)if(!1===o(this.from[r]+e,this.to[r]+e,this.value[r]))return!1}map(e,t){let n=[],o=[],r=[],i=-1,l=-1;for(let a=0;a<this.value.length;a++){let s,c,u=this.value[a],d=this.from[a]+e,p=this.to[a]+e;if(d==p){let e=t.mapPos(d,u.startSide,u.mapMode);if(null==e)continue;if(s=c=e,u.startSide!=u.endSide&&(c=t.mapPos(d,u.endSide),c<s))continue}else if(s=t.mapPos(d,u.startSide),c=t.mapPos(p,u.endSide),s>c||s==c&&u.startSide>0&&u.endSide<=0)continue;(c-s||u.endSide-u.startSide)<0||(i<0&&(i=s),u.point&&(l=Math.max(l,c-s)),n.push(u),o.push(s-i),r.push(c-i))}return{mapped:n.length?new I4(o,r,n,l):null,pos:i}}}class E4{constructor(e,t,n,o){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=o}static create(e,t,n,o){return new E4(e,t,n,o)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:o=0,filterTo:r=this.length}=e,i=e.filter;if(0==t.length&&!i)return this;if(n&&(t=t.slice().sort(T4)),this.isEmpty)return t.length?E4.of(t):this;let l=new D4(this,null,-1).goto(0),a=0,s=[],c=new A4;for(;l.value||a<t.length;)if(a<t.length&&(l.from-t[a].from||l.startSide-t[a].value.startSide)>=0){let e=t[a++];c.addInner(e.from,e.to,e.value)||s.push(e)}else 1==l.rangeIndex&&l.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(l.chunkIndex)<t[a].from)&&(!i||o>this.chunkEnd(l.chunkIndex)||r<this.chunkPos[l.chunkIndex])&&c.addChunk(this.chunkPos[l.chunkIndex],this.chunk[l.chunkIndex])?l.nextChunk():((!i||o>l.to||r<l.from||i(l.from,l.to,l.value))&&(c.addInner(l.from,l.to,l.value)||s.push(M4.create(l.from,l.to,l.value))),l.next());return c.finishInner(this.nextLayer.isEmpty&&!s.length?E4.empty:this.nextLayer.update({add:s,filter:i,filterFrom:o,filterTo:r}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],o=-1;for(let i=0;i<this.chunk.length;i++){let r=this.chunkPos[i],l=this.chunk[i],a=e.touchesRange(r,r+l.length);if(!1===a)o=Math.max(o,l.maxPoint),t.push(l),n.push(e.mapPos(r));else if(!0===a){let{mapped:i,pos:a}=l.map(r,e);i&&(o=Math.max(o,i.maxPoint),t.push(i),n.push(a))}}let r=this.nextLayer.map(e);return 0==t.length?r:new E4(n,t,r||E4.empty,o)}between(e,t,n){if(!this.isEmpty){for(let o=0;o<this.chunk.length;o++){let r=this.chunkPos[o],i=this.chunk[o];if(t>=r&&e<=r+i.length&&!1===i.between(r,e-r,t-r,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return j4.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return j4.from(e).goto(t)}static compare(e,t,n,o,r=-1){let i=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),l=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),a=R4(i,l,n),s=new N4(i,a,r),c=new N4(l,a,r);n.iterGaps(((e,t,n)=>z4(s,e,c,t,n,o))),n.empty&&0==n.length&&z4(s,0,c,0,0,o)}static eq(e,t,n=0,o){null==o&&(o=999999999);let r=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),i=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(r.length!=i.length)return!1;if(!r.length)return!0;let l=R4(r,i),a=new N4(r,l,0).goto(n),s=new N4(i,l,0).goto(n);for(;;){if(a.to!=s.to||!_4(a.active,s.active)||a.point&&(!s.point||!a.point.eq(s.point)))return!1;if(a.to>o)return!0;a.next(),s.next()}}static spans(e,t,n,o,r=-1){let i=new N4(e,null,r).goto(t),l=t,a=i.openStart;for(;;){let e=Math.min(i.to,n);if(i.point){let n=i.activeForPoint(i.to),r=i.pointFrom<t?n.length+1:Math.min(n.length,a);o.point(l,e,i.point,n,r,i.pointRank),a=Math.min(i.openEnd(e),n.length)}else e>l&&(o.span(l,e,i.active,a),a=i.openEnd(e));if(i.to>n)return a+(i.point&&i.to>n?1:0);l=i.to,i.next()}}static of(e,t=!1){let n=new A4;for(let o of e instanceof M4?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let o=e[n];if(T4(t,o)>0)return e.slice().sort(T4);t=o}return e}(e):e)n.add(o.from,o.to,o.value);return n.finish()}static join(e){if(!e.length)return E4.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let o=e[n];o!=E4.empty;o=o.nextLayer)t=new E4(o.chunkPos,o.chunk,t,Math.max(o.maxPoint,t.maxPoint));return t}}E4.empty=new E4([],[],null,-1),E4.empty.nextLayer=E4.empty;class A4{finishChunk(e){this.chunks.push(new I4(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,e&&(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(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new A4)).add(e,t,n)}addInner(e,t,n){let o=e-this.lastTo||n.startSide-this.last.endSide;if(o<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(o<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),0))}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(E4.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=E4.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function R4(e,t,n){let o=new Map;for(let i of e)for(let e=0;e<i.chunk.length;e++)i.chunk[e].maxPoint<=0&&o.set(i.chunk[e],i.chunkPos[e]);let r=new Set;for(let i of t)for(let e=0;e<i.chunk.length;e++){let t=o.get(i.chunk[e]);null==t||(n?n.mapPos(t):t)!=i.chunkPos[e]||(null==n?void 0:n.touchesRange(t,t+i.chunk[e].length))||r.add(i.chunk[e])}return r}class D4{constructor(e,t,n,o=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=o}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let o=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<o)&&this.setRangeIndex(o)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class j4{constructor(e){this.heap=e}static from(e,t=null,n=-1){let o=[];for(let r=0;r<e.length;r++)for(let i=e[r];!i.isEmpty;i=i.nextLayer)i.maxPoint>=n&&o.push(new D4(i,t,n,r));return 1==o.length?o[0]:new j4(o)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)B4(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)B4(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),B4(this.heap,0)}}}function B4(e,t){for(let n=e[t];;){let o=1+(t<<1);if(o>=e.length)break;let r=e[o];if(o+1<e.length&&r.compare(e[o+1])>=0&&(r=e[o+1],o++),n.compare(r)<0)break;e[o]=n,e[t]=r,t=o}}class N4{constructor(e,t,n){this.minPoint=n,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=j4.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){L4(this.active,e),L4(this.activeTo,e),L4(this.activeRank,e),this.minActive=H4(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:o,rank:r}=this.cursor;for(;t<this.activeRank.length&&(r-this.activeRank[t]||o-this.activeTo[t])>0;)t++;Q4(this.active,t,n),Q4(this.activeTo,t,o),Q4(this.activeRank,t,r),e&&Q4(e,t,this.cursor.from),this.minActive=H4(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let o=this.minActive;if(o>-1&&(this.activeTo[o]-this.cursor.from||this.active[o].endSide-this.cursor.startSide)<0){if(this.activeTo[o]>e){this.to=this.activeTo[o],this.endSide=this.active[o].endSide;break}this.removeActive(o),n&&L4(n,o)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(n),this.cursor.next()}}}if(n){this.openStart=0;for(let t=n.length-1;t>=0&&n[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function z4(e,t,n,o,r,i){e.goto(t),n.goto(o);let l=o+r,a=o,s=o-t;for(;;){let t=e.to+s-n.to||e.endSide-n.endSide,o=t<0?e.to+s:n.to,r=Math.min(o,l);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&_4(e.activeForPoint(e.to),n.activeForPoint(n.to))||i.comparePoint(a,r,e.point,n.point):r>a&&!_4(e.active,n.active)&&i.compareRange(a,r,e.active,n.active),o>l)break;a=o,t<=0&&e.next(),t>=0&&n.next()}}function _4(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].eq(t[n]))return!1;return!0}function L4(e,t){for(let n=t,o=e.length-1;n<o;n++)e[n]=e[n+1];e.pop()}function Q4(e,t,n){for(let o=e.length-1;o>=t;o--)e[o+1]=e[o];e[t]=n}function H4(e,t){let n=-1,o=1e9;for(let r=0;r<t.length;r++)(t[r]-o||e[r].endSide-e[n].endSide)<0&&(n=r,o=t[r]);return n}function F4(e,t,n=e.length){let o=0;for(let r=0;r<n;)9==e.charCodeAt(r)?(o+=t-o%t,r++):(o++,r=g3(e,r));return o}function W4(e,t,n,o){for(let r=0,i=0;;){if(i>=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=g3(e,r)}return!0===o?-1:e.length}const V4="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),Z4="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),X4="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class Y4{constructor(e,t){this.rules=[];let{finish:n}=t||{};function o(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function r(e,t,i,l){let a=[],s=/^@(\w+)\b/.exec(e[0]),c=s&&"keyframes"==s[1];if(s&&null==t)return i.push(e[0]+";");for(let n in t){let l=t[n];if(/&/.test(n))r(n.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),l,i);else if(l&&"object"==typeof l){if(!s)throw new RangeError("The value of a property ("+n+") should be a primitive value.");r(o(n),l,a,c)}else null!=l&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+l+";")}(a.length||c)&&i.push((!n||s||l?e:e.map(n)).join(", ")+" {"+a.join(" ")+"}")}for(let i in e)r(o(i),e[i],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=X4[V4]||1;return X4[V4]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let o=e[Z4],r=n&&n.nonce;o?r&&o.setNonce(r):o=new G4(e,r),o.mount(Array.isArray(t)?t:[t])}}let K4=new Map;class G4{constructor(e,t){let n=e.ownerDocument||e,o=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&o.CSSStyleSheet){let t=K4.get(n);if(t)return e.adoptedStyleSheets=[t.sheet,...e.adoptedStyleSheets],e[Z4]=t;this.sheet=new o.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],K4.set(n,this)}else{this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);let o=e.head||e;o.insertBefore(this.styleTag,o.firstChild)}this.modules=[],e[Z4]=this}mount(e){let t=this.sheet,n=0,o=0;for(let r=0;r<e.length;r++){let i=e[r],l=this.modules.indexOf(i);if(l<o&&l>-1&&(this.modules.splice(l,1),o--,l=-1),-1==l){if(this.modules.splice(o++,0,i),t)for(let e=0;e<i.rules.length;e++)t.insertRule(i.rules[e],n++)}else{for(;o<l;)n+=this.modules[o++].rules.length;n+=i.rules.length,o++}}if(!t){let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}for(var U4={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},q4={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},J4="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),e5="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),t5=0;t5<10;t5++)U4[48+t5]=U4[96+t5]=String(t5);for(t5=1;t5<=24;t5++)U4[t5+111]="F"+t5;for(t5=65;t5<=90;t5++)U4[t5]=String.fromCharCode(t5+32),q4[t5]=String.fromCharCode(t5);for(var n5 in U4)q4.hasOwnProperty(n5)||(q4[n5]=U4[n5]);function o5(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function r5(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function i5(e,t){if(!t.anchorNode)return!1;try{return r5(e,t.anchorNode)}catch(Spe){return!1}}function l5(e){return 3==e.nodeType?b5(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function a5(e,t,n,o){return!!n&&(c5(e,t,n,o,-1)||c5(e,t,n,o,1))}function s5(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function c5(e,t,n,o,r){for(;;){if(e==n&&t==o)return!0;if(t==(r<0?0:u5(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=s5(e)+(r<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(r<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=r<0?u5(e):0}}}function u5(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function d5(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function p5(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function h5(e,t){let n=t.width/e.offsetWidth,o=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(o>.995&&o<1.005||!isFinite(o)||Math.abs(t.height-e.offsetHeight)<1)&&(o=1),{scaleX:n,scaleY:o}}class f5{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?u5(t):0),n,Math.min(e.focusOffset,n?u5(n):0))}set(e,t,n,o){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=o}}let g5,m5=null;function v5(e){if(e.setActive)return e.setActive();if(m5)return e.focus(m5);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==m5?{get preventScroll(){return m5={preventScroll:!0},!0}}:void 0),!m5){m5=!1;for(let e=0;e<t.length;){let n=t[e++],o=t[e++],r=t[e++];n.scrollTop!=o&&(n.scrollTop=o),n.scrollLeft!=r&&(n.scrollLeft=r)}}}function b5(e,t,n=t){let o=g5||(g5=document.createRange());return o.setEnd(e,n),o.setStart(e,t),o}function y5(e,t,n){let o={key:t,code:t,keyCode:n,which:n,cancelable:!0},r=new KeyboardEvent("keydown",o);r.synthetic=!0,e.dispatchEvent(r);let i=new KeyboardEvent("keyup",o);return i.synthetic=!0,e.dispatchEvent(i),r.defaultPrevented||i.defaultPrevented}function O5(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function w5(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}class x5{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new x5(e.parentNode,s5(e),t)}static after(e,t){return new x5(e.parentNode,s5(e)+1,t)}}const $5=[];class S5{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(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(2&this.flags){let n,o=this.dom,r=null;for(let i of this.children){if(7&i.flags){if(!i.dom&&(n=r?r.nextSibling:o.firstChild)){let e=S5.get(n);(!e||!e.parent&&e.canReuseDOM(i))&&i.reuseDOM(n)}i.sync(e,t),i.flags&=-8}if(n=r?r.nextSibling:o.firstChild,t&&!t.written&&t.node==o&&n!=i.dom&&(t.written=!0),i.dom.parentNode==o)for(;n&&n!=i.dom;)n=C5(n);else o.insertBefore(i.dom,n);r=i.dom}for(n=r?r.nextSibling:o.firstChild,n&&t&&t.node==o&&(t.written=!0);n;)n=C5(n)}else if(1&this.flags)for(let n of this.children)7&n.flags&&(n.sync(e,t),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let o=0==u5(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==o&&t.firstChild!=t.lastChild&&(o=e==t.firstChild?-1:1),e=t}n=o<0?e:e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!S5.get(n);)n=n.nextSibling;if(!n)return this.length;for(let o=0,r=0;;o++){let e=this.children[o];if(e.dom==n)return r;r+=e.length+e.breakAfter}}domBoundsAround(e,t,n=0){let o=-1,r=-1,i=-1,l=-1;for(let a=0,s=n,c=n;a<this.children.length;a++){let n=this.children[a],u=s+n.length;if(s<e&&u>t)return n.domBoundsAround(e,t,s);if(u>=e&&-1==o&&(o=a,r=s),s>t&&n.dom.parentNode==this.dom){i=a,l=c;break}c=u,s=u+n.breakAfter}return{from:r,to:l<0?n+this.length:l,startDOM:(o?this.children[o-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:i<this.children.length&&i>=0?this.children[i].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),1&t.flags)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=$5){this.markDirty();for(let o=e;o<t;o++){let e=this.children[o];e.parent==this&&n.indexOf(e)<0&&e.destroy()}this.children.splice(e,t-e,...n);for(let o=0;o<n.length;o++)n[o].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new k5(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,n,o,r,i){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!(8&(this.flags|e.flags))}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}function C5(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}S5.prototype.breakAfter=0;class k5{constructor(e,t,n){this.children=e,this.pos=t,this.i=n,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function P5(e,t,n,o,r,i,l,a,s){let{children:c}=e,u=c.length?c[t]:null,d=i.length?i[i.length-1]:null,p=d?d.breakAfter:l;if(!(t==o&&u&&!l&&!p&&i.length<2&&u.merge(n,r,i.length?d:null,0==n,a,s))){if(o<c.length){let e=c[o];e&&(r<e.length||e.breakAfter&&(null==d?void 0:d.breakAfter))?(t==o&&(e=e.split(r),r=0),!p&&d&&e.merge(0,r,d,!0,0,s)?i[i.length-1]=e:((r||e.children.length&&!e.children[0].length)&&e.merge(0,r,null,!1,0,s),i.push(e))):(null==e?void 0:e.breakAfter)&&(d?d.breakAfter=1:l=1),o++}for(u&&(u.breakAfter=l,n>0&&(!l&&i.length&&u.merge(n,u.length,i[0],!1,a,0)?u.breakAfter=i.shift().breakAfter:(n<u.length||u.children.length&&0==u.children[u.children.length-1].length)&&u.merge(n,u.length,null,!1,a,0),t++));t<o&&i.length;)if(c[o-1].become(i[i.length-1]))o--,i.pop(),s=i.length?0:a;else{if(!c[t].become(i[0]))break;t++,i.shift(),a=i.length?0:s}!i.length&&t&&o<c.length&&!c[t-1].breakAfter&&c[o].merge(0,0,c[t-1],!1,a,s)&&t--,(t<o||i.length)&&e.replaceChildren(t,o,i)}}function M5(e,t,n,o,r,i){let l=e.childCursor(),{i:a,off:s}=l.findPos(n,1),{i:c,off:u}=l.findPos(t,-1),d=t-n;for(let p of o)d+=p.length;e.length+=d,P5(e,c,u,a,s,o,0,r,i)}let T5="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},I5="undefined"!=typeof document?document:{documentElement:{style:{}}};const E5=/Edge\/(\d+)/.exec(T5.userAgent),A5=/MSIE \d/.test(T5.userAgent),R5=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(T5.userAgent),D5=!!(A5||R5||E5),j5=!D5&&/gecko\/(\d+)/i.test(T5.userAgent),B5=!D5&&/Chrome\/(\d+)/.exec(T5.userAgent),N5="webkitFontSmoothing"in I5.documentElement.style,z5=!D5&&/Apple Computer/.test(T5.vendor),_5=z5&&(/Mobile\/\w+/.test(T5.userAgent)||T5.maxTouchPoints>2);var L5={mac:_5||/Mac/.test(T5.platform),windows:/Win/.test(T5.platform),linux:/Linux|X11/.test(T5.platform),ie:D5,ie_version:A5?I5.documentMode||6:R5?+R5[1]:E5?+E5[1]:0,gecko:j5,gecko_version:j5?+(/Firefox\/(\d+)/.exec(T5.userAgent)||[0,0])[1]:0,chrome:!!B5,chrome_version:B5?+B5[1]:0,ios:_5,android:/Android\b/.test(T5.userAgent),webkit:N5,safari:z5,webkit_version:N5?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=I5.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class Q5 extends S5{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return!(8&this.flags||n&&(!(n instanceof Q5)||this.length-(t-e)+n.length>256||8&n.flags)||(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),0))}split(e){let t=new Q5(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=8&this.flags,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new x5(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return function(e,t,n){let o=e.nodeValue.length;t>o&&(t=o);let r=t,i=t,l=0;0==t&&n<0||t==o&&n>=0?L5.chrome||L5.gecko||(t?(r--,l=1):i<o&&(i++,l=-1)):n<0?r--:i<o&&i++;let a=b5(e,r,i).getClientRects();if(!a.length)return null;let s=a[(l?l<0:n>=0)?0:a.length-1];return L5.safari&&!l&&0==s.width&&(s=Array.prototype.find.call(a,(e=>e.width))||s),l?d5(s,l<0):s||null}(this.dom,e,t)}}class H5 extends S5{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let o of t)o.setParent(this)}setAttrs(e){if(O5(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!(8&(this.flags|e.flags))}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,o,r,i){return!(n&&(!(n instanceof H5&&n.mark.eq(this.mark))||e&&r<=0||t<this.length&&i<=0)||(M5(this,e,t,n?n.children.slice():[],r-1,i-1),this.markDirty(),0))}split(e){let t=[],n=0,o=-1,r=0;for(let l of this.children){let i=n+l.length;i>e&&t.push(n<e?l.split(e-n):l),o<0&&n>=e&&(o=r),n=i,r++}let i=this.length-e;return this.length=e,o>-1&&(this.children.length=o,this.markDirty()),new H5(this.mark,t,i)}domAtPos(e){return V5(this,e)}coordsAt(e,t){return X5(this,e,t)}}class F5 extends S5{static create(e,t,n){return new F5(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=F5.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,n,o,r,i){return!(n&&(!(n instanceof F5&&this.widget.compare(n.widget))||e>0&&r<=0||t<this.length&&i<=0)||(this.length=e+(n?n.length:0)+(this.length-t),0))}become(e){return e instanceof F5&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(0==this.length)return n3.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,n=t&&t.state.doc,o=this.posAtStart;return n?n.slice(o,o+this.length):n3.empty}domAtPos(e){return(this.length?0==e:this.side>0)?x5.before(this.dom):x5.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let o=this.dom.getClientRects(),r=null;if(!o.length)return null;let i=this.side?this.side<0:e>0;for(let l=i?o.length-1:0;r=o[l],!(e>0?0==l:l==o.length-1||r.top<r.bottom);l+=i?-1:1);return d5(r,!i)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class W5 extends S5{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof W5&&e.side==this.side}split(){return new W5(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?x5.before(this.dom):x5.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return n3.empty}get isHidden(){return!0}}function V5(e,t){let n=e.dom,{children:o}=e,r=0;for(let i=0;r<o.length;r++){let e=o[r],l=i+e.length;if(!(l==i&&e.getSide()<=0)){if(t>i&&t<l&&e.dom.parentNode==n)return e.domAtPos(t-i);if(t<=i)break;i=l}}for(let i=r;i>0;i--){let e=o[i-1];if(e.dom.parentNode==n)return e.domAtPos(e.length)}for(let i=r;i<o.length;i++){let e=o[i];if(e.dom.parentNode==n)return e.domAtPos(0)}return new x5(n,0)}function Z5(e,t,n){let o,{children:r}=e;n>0&&t instanceof H5&&r.length&&(o=r[r.length-1])instanceof H5&&o.mark.eq(t.mark)?Z5(o,t.children[0],n-1):(r.push(t),t.setParent(e)),e.length+=t.length}function X5(e,t,n){let o=null,r=-1,i=null,l=-1;!function e(t,a){for(let s=0,c=0;s<t.children.length&&c<=a;s++){let u=t.children[s],d=c+u.length;d>=a&&(u.children.length?e(u,a-c):(!i||i.isHidden&&n>0)&&(d>a||c==d&&u.getSide()>0)?(i=u,l=a-c):(c<a||c==d&&u.getSide()<0&&!u.isHidden)&&(o=u,r=a-c)),c=d}}(e,t);let a=(n<0?o:i)||o||i;return a?a.coordsAt(Math.max(0,a==o?r:l),n):function(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=l5(t);return n[n.length-1]||null}(e)}function Y5(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}Q5.prototype.children=F5.prototype.children=W5.prototype.children=$5;const K5=Object.create(null);function G5(e,t,n){if(e==t)return!0;e||(e=K5),t||(t=K5);let o=Object.keys(e),r=Object.keys(t);if(o.length-(n&&o.indexOf(n)>-1?1:0)!=r.length-(n&&r.indexOf(n)>-1?1:0))return!1;for(let i of o)if(i!=n&&(-1==r.indexOf(i)||e[i]!==t[i]))return!1;return!0}function U5(e,t,n){let o=!1;if(t)for(let r in t)n&&r in n||(o=!0,"style"==r?e.style.cssText="":e.removeAttribute(r));if(n)for(let r in n)t&&t[r]==n[r]||(o=!0,"style"==r?e.style.cssText=n[r]:e.setAttribute(r,n[r]));return o}function q5(e){let t=Object.create(null);for(let n=0;n<e.attributes.length;n++){let o=e.attributes[n];t[o.name]=o.value}return t}class J5 extends S5{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,o,r,i){if(n){if(!(n instanceof J5))return!1;this.dom||n.transferDOM(this)}return o&&this.setDeco(n?n.attrs:null),M5(this,e,t,n?n.children.slice():[],r,i),!0}split(e){let t=new J5;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:n,off:o}=this.childPos(e);o&&(t.append(this.children[n].split(o),0),this.children[n].merge(o,this.children[n].length,null,!1,0,0),n++);for(let r=n;r<this.children.length;r++)t.append(this.children[r],0);for(;n>0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){G5(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){Z5(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=Y5(t,this.attrs||{})),n&&(this.attrs=Y5({class:n},this.attrs||{}))}domAtPos(e){return V5(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?4&this.flags&&(O5(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&&(U5(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let o=this.dom.lastChild;for(;o&&S5.get(o)instanceof H5;)o=o.lastChild;if(!(o&&this.length&&("BR"==o.nodeName||0!=(null===(n=S5.get(o))||void 0===n?void 0:n.isEditable)||L5.ios&&this.children.some((e=>e instanceof Q5))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let n of this.children){if(!(n instanceof Q5)||/[^ -~]/.test(n.text))return null;let o=l5(n.dom);if(1!=o.length)return null;t+=o[0].width,e=o[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(e,t){let n=X5(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=n.bottom-n.top;if(Math.abs(t-e.lineHeight)<2&&e.textHeight<t){let o=(t-e.textHeight)/2;return{top:n.top+o,bottom:n.bottom-o,left:n.left,right:n.left}}}return n}become(e){return!1}covers(){return!0}static find(e,t){for(let n=0,o=0;n<e.children.length;n++){let r=e.children[n],i=o+r.length;if(i>=t){if(r instanceof J5)return r;if(i>t)break}o=i+r.breakAfter}return null}}class e8 extends S5{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,o,r,i){return!(n&&(!(n instanceof e8&&this.widget.compare(n.widget))||e>0&&r<=0||t<this.length&&i<=0)||(this.length=e+(n?n.length:0)+(this.length-t),0))}domAtPos(e){return 0==e?x5.before(this.dom):x5.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let n=new e8(this.widget,t,this.deco);return n.breakAfter=this.breakAfter,n}get children(){return $5}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):n3.empty}domBoundsAround(){return null}become(e){return e instanceof e8&&e.widget.constructor==this.widget.constructor&&(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){return this.widget.coordsAt(this.dom,e,t)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:n}=this.deco;return t!=n&&(e<0?t<0:n>0)}}class t8{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var n8=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(n8||(n8={}));class o8 extends P4{constructor(e,t,n,o){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=o}get heightRelevant(){return!1}static mark(e){return new r8(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new l8(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,o=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:r,end:i}=a8(e,o);t=(r?o?-3e8:-1:5e8)-1,n=1+(i?o?2e8:1:-6e8)}return new l8(e,t,n,o,e.widget||null,!0)}static line(e){return new i8(e)}static set(e,t=!1){return E4.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}o8.none=E4.empty;class r8 extends o8{constructor(e){let{start:t,end:n}=a8(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof r8&&this.tagName==e.tagName&&(this.class||(null===(t=this.attrs)||void 0===t?void 0:t.class))==(e.class||(null===(n=e.attrs)||void 0===n?void 0:n.class))&&G5(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}r8.prototype.point=!1;class i8 extends o8{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof i8&&this.spec.class==e.spec.class&&G5(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}i8.prototype.mapMode=S3.TrackBefore,i8.prototype.point=!0;class l8 extends o8{constructor(e,t,n,o,r,i){super(t,n,r,e),this.block=o,this.isReplace=i,this.mapMode=o?t<=0?S3.TrackBefore:S3.TrackAfter:S3.TrackDel}get type(){return this.startSide!=this.endSide?n8.WidgetRange:this.startSide<=0?n8.WidgetBefore:n8.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof l8&&(t=this.widget,n=e.widget,t==n||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,n}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function a8(e,t=!1){let{inclusiveStart:n,inclusiveEnd:o}=e;return null==n&&(n=e.inclusive),null==o&&(o=e.inclusive),{start:null!=n?n:t,end:null!=o?o:t}}function s8(e,t,n,o=0){let r=n.length-1;r>=0&&n[r]+o>=e?n[r]=Math.max(n[r],t):n.push(e,t)}l8.prototype.point=!0;class c8{constructor(e,t,n,o){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=o,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=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof e8&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new J5),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(u8(new W5(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||e&&this.content.length&&this.content[this.content.length-1]instanceof e8||this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:o}=this.cursor.next(this.skip);if(this.skip=0,o)throw new Error("Ran out of text content when drawing inline views");if(n){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,e--;continue}this.text=t,this.textOff=0}let o=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(u8(new Q5(this.text.slice(this.textOff,this.textOff+o)),t),n),this.atCursorPos=!0,this.textOff+=o,e-=o,n=0}}span(e,t,n,o){this.buildText(t-e,n,o),this.pos=t,this.openStart<0&&(this.openStart=o)}point(e,t,n,o,r,i){if(this.disallowBlockEffectsFor[i]&&n instanceof l8){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=t-e;if(n instanceof l8)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new e8(n.widget||new d8("div"),l,n));else{let i=F5.create(n.widget||new d8("span"),l,l?0:n.startSide),a=this.atCursorPos&&!i.isEditable&&r<=o.length&&(e<t||n.startSide>0),s=!i.isEditable&&(e<t||r>o.length||n.startSide<=0),c=this.getLine();2!=this.pendingBuffer||a||i.isEditable||(this.pendingBuffer=0),this.flushBuffer(o),a&&(c.append(u8(new W5(1),o),r),r=o.length+Math.max(0,r-o.length)),c.append(u8(i,o),r),this.atCursorPos=s,this.pendingBuffer=s?e<t||r>o.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=o.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=r)}static build(e,t,n,o,r){let i=new c8(e,t,n,r);return i.openEnd=E4.spans(o,t,n,i),i.openStart<0&&(i.openStart=i.openEnd),i.finish(i.openEnd),i}}function u8(e,t){for(let n of t)e=new H5(n,[e],e.length);return e}class d8 extends t8{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}var p8=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(p8||(p8={}));const h8=p8.LTR,f8=p8.RTL;function g8(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<+e[n]);return t}const m8=g8("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),v8=g8("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),b8=Object.create(null),y8=[];for(let Cpe of["()","[]","{}"]){let e=Cpe.charCodeAt(0),t=Cpe.charCodeAt(1);b8[e]=t,b8[t]=-e}function O8(e){return e<=247?m8[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?v8[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}const w8=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class x8{get dir(){return this.level%2?f8:h8}constructor(e,t,n){this.from=e,this.to=t,this.level=n}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,n,o){let r=-1;for(let i=0;i<e.length;i++){let l=e[i];if(l.from<=t&&l.to>=t){if(l.level==n)return i;(r<0||(0!=o?o<0?l.from<t:l.to>t:e[r].level>l.level))&&(r=i)}}if(r<0)throw new RangeError("Index out of range");return r}}function $8(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let o=e[n],r=t[n];if(o.from!=r.from||o.to!=r.to||o.direction!=r.direction||!$8(o.inner,r.inner))return!1}return!0}const S8=[];function C8(e,t,n,o,r,i,l){let a=o%2?2:1;if(o%2==r%2)for(let s=t,c=0;s<n;){let t=!0,u=!1;if(c==i.length||s<i[c].from){let e=S8[s];e!=a&&(t=!1,u=16==e)}let d=t||1!=a?null:[],p=t?o:o+1,h=s;e:for(;;)if(c<i.length&&h==i[c].from){if(u)break e;let f=i[c];if(!t)for(let e=f.to,t=c+1;;){if(e==n)break e;if(!(t<i.length&&i[t].from==e)){if(S8[e]==a)break e;break}e=i[t++].to}c++,d?d.push(f):(f.from>s&&l.push(new x8(s,f.from,p)),k8(e,f.direction==h8!=!(p%2)?o+1:o,r,f.inner,f.from,f.to,l),s=f.to),h=f.to}else{if(h==n||(t?S8[h]!=a:S8[h]==a))break;h++}d?C8(e,s,h,o+1,r,d,l):s<h&&l.push(new x8(s,h,p)),s=h}else for(let s=n,c=i.length;s>t;){let n=!0,u=!1;if(!c||s>i[c-1].to){let e=S8[s-1];e!=a&&(n=!1,u=16==e)}let d=n||1!=a?null:[],p=n?o:o+1,h=s;e:for(;;)if(c&&h==i[c-1].to){if(u)break e;let f=i[--c];if(!n)for(let e=f.from,n=c;;){if(e==t)break e;if(!n||i[n-1].to!=e){if(S8[e-1]==a)break e;break}e=i[--n].from}d?d.push(f):(f.to<s&&l.push(new x8(f.to,s,p)),k8(e,f.direction==h8!=!(p%2)?o+1:o,r,f.inner,f.from,f.to,l),s=f.from),h=f.from}else{if(h==t||(n?S8[h-1]!=a:S8[h-1]==a))break;h--}d?C8(e,h,s,o+1,r,d,l):h<s&&l.push(new x8(h,s,p)),s=h}}function k8(e,t,n,o,r,i,l){let a=t%2?2:1;!function(e,t,n,o,r){for(let i=0;i<=o.length;i++){let l=i?o[i-1].to:t,a=i<o.length?o[i].from:n,s=i?256:r;for(let t=l,n=s,o=s;t<a;t++){let r=O8(e.charCodeAt(t));512==r?r=n:8==r&&4==o&&(r=16),S8[t]=4==r?2:r,7&r&&(o=r),n=r}for(let e=l,t=s,o=s;e<a;e++){let r=S8[e];if(128==r)e<a-1&&t==S8[e+1]&&24&t?r=S8[e]=t:S8[e]=256;else if(64==r){let r=e+1;for(;r<a&&64==S8[r];)r++;let i=e&&8==t||r<n&&8==S8[r]?1==o?1:8:256;for(let t=e;t<r;t++)S8[t]=i;e=r-1}else 8==r&&1==o&&(S8[e]=1);t=r,7&r&&(o=r)}}}(e,r,i,o,a),function(e,t,n,o,r){let i=1==r?2:1;for(let l=0,a=0,s=0;l<=o.length;l++){let c=l?o[l-1].to:t,u=l<o.length?o[l].from:n;for(let t,n,o,l=c;l<u;l++)if(n=b8[t=e.charCodeAt(l)])if(n<0){for(let e=a-3;e>=0;e-=3)if(y8[e+1]==-n){let t=y8[e+2],n=2&t?r:4&t?1&t?i:r:0;n&&(S8[l]=S8[y8[e]]=n),a=e;break}}else{if(189==y8.length)break;y8[a++]=l,y8[a++]=t,y8[a++]=s}else if(2==(o=S8[l])||1==o){let e=o==r;s=e?0:1;for(let t=a-3;t>=0;t-=3){let n=y8[t+2];if(2&n)break;if(e)y8[t+2]|=2;else{if(4&n)break;y8[t+2]|=4}}}}}(e,r,i,o,a),function(e,t,n,o){for(let r=0,i=o;r<=n.length;r++){let l=r?n[r-1].to:e,a=r<n.length?n[r].from:t;for(let s=l;s<a;){let l=S8[s];if(256==l){let l=s+1;for(;;)if(l==a){if(r==n.length)break;l=n[r++].to,a=r<n.length?n[r].from:t}else{if(256!=S8[l])break;l++}let c=1==i,u=c==(1==(l<t?S8[l]:o))?c?1:2:o;for(let t=l,o=r,i=o?n[o-1].to:e;t>s;)t==i&&(t=n[--o].from,i=o?n[o-1].to:e),S8[--t]=u;s=l}else i=l,s++}}}(r,i,o,a),C8(e,r,i,t,n,o,l)}function P8(e){return[new x8(0,e,0)]}let M8="";function T8(e,t,n,o,r){var i;let l=o.head-e.from,a=x8.find(t,l,null!==(i=o.bidiLevel)&&void 0!==i?i:-1,o.assoc),s=t[a],c=s.side(r,n);if(l==c){let e=a+=r?1:-1;if(e<0||e>=t.length)return null;s=t[a=e],l=s.side(!r,n),c=s.side(r,n)}let u=g3(e.text,l,s.forward(r,n));(u<s.from||u>s.to)&&(u=c),M8=e.text.slice(Math.min(l,u),Math.max(l,u));let d=a==(r?t.length-1:0)?null:t[a+(r?1:-1)];return d&&u==c&&d.level+(r?0:1)<s.level?D3.cursor(d.side(!r,n)+e.from,d.forward(r,n)?1:-1,d.level):D3.cursor(u+e.from,s.forward(r,n)?-1:1,s.level)}function I8(e,t,n){for(let o=t;o<n;o++){let t=O8(e.charCodeAt(o));if(1==t)return h8;if(2==t||4==t)return f8}return h8}const E8=N3.define(),A8=N3.define(),R8=N3.define(),D8=N3.define(),j8=N3.define(),B8=N3.define(),N8=N3.define(),z8=N3.define({combine:e=>e.some((e=>e))}),_8=N3.define({combine:e=>e.some((e=>e))});class L8{constructor(e,t="nearest",n="nearest",o=5,r=5,i=!1){this.range=e,this.y=t,this.x=n,this.yMargin=o,this.xMargin=r,this.isSnapshot=i}map(e){return e.empty?this:new L8(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new L8(D3.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Q8=h4.define({map:(e,t)=>e.map(t)});function H8(e,t,n){let o=e.facet(D8);o.length?o[0](t):window.onerror&&window.onerror(String(t),n,void 0,void 0,t)}const F8=N3.define({combine:e=>!e.length||e[0]});let W8=0;const V8=N3.define();class Z8{constructor(e,t,n,o,r){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=o,this.extension=r(this)}static define(e,t){const{eventHandlers:n,eventObservers:o,provide:r,decorations:i}=t||{};return new Z8(W8++,e,n,o,(e=>{let t=[V8.of(e)];return i&&t.push(G8.of((t=>{let n=t.plugin(e);return n?i(n):o8.none}))),r&&t.push(r(e)),t}))}static fromClass(e,t){return Z8.define((t=>new e(t)),t)}}class X8{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch($pe){if(H8(e.state,$pe,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(Spe){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch($pe){H8(e.state,$pe,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch($pe){H8(e.state,$pe,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Y8=N3.define(),K8=N3.define(),G8=N3.define(),U8=N3.define(),q8=N3.define(),J8=N3.define();function e6(e,t){let n=e.state.facet(J8);if(!n.length)return n;let o=n.map((t=>t instanceof Function?t(e):t)),r=[];return E4.spans(o,t.from,t.to,{point(){},span(e,n,o,i){let l=e-t.from,a=n-t.from,s=r;for(let r=o.length-1;r>=0;r--,i--){let e,n=o[r].spec.bidiIsolate;if(null==n&&(n=I8(t.text,l,a)),i>0&&s.length&&(e=s[s.length-1]).to==l&&e.direction==n)e.to=a,s=e.inner;else{let e={from:l,to:a,direction:n,inner:[]};s.push(e),s=e.inner}}}}),r}const t6=N3.define();function n6(e){let t=0,n=0,o=0,r=0;for(let i of e.state.facet(t6)){let l=i(e);l&&(null!=l.left&&(t=Math.max(t,l.left)),null!=l.right&&(n=Math.max(n,l.right)),null!=l.top&&(o=Math.max(o,l.top)),null!=l.bottom&&(r=Math.max(r,l.bottom)))}return{left:t,right:n,top:o,bottom:r}}const o6=N3.define();class r6{constructor(e,t,n,o){this.fromA=e,this.toA=t,this.fromB=n,this.toB=o}join(e){return new r6(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let o=e[t-1];if(!(o.fromA>n.toA)){if(o.toA<n.fromA)break;n=n.join(o),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(0==t.length)return e;let n=[];for(let o=0,r=0,i=0,l=0;;o++){let a=o==e.length?null:e[o],s=i-l,c=a?a.fromB:1e9;for(;r<t.length&&t[r]<c;){let e=t[r],o=t[r+1],i=Math.max(l,e),a=Math.min(c,o);if(i<=a&&new r6(i+s,a+s,i,a).addToSet(n),o>c)break;r+=2}if(!a)return n;new r6(a.fromA,a.toA,a.fromB,a.toB).addToSet(n),i=a.toA,l=a.toB}}}class i6{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=k3.empty(this.startState.doc.length);for(let r of n)this.changes=this.changes.compose(r.changes);let o=[];this.changes.iterChangedRanges(((e,t,n,r)=>o.push(new r6(e,t,n,r)))),this.changedRanges=o}static create(e,t,n){return new i6(e,t,n)}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((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}class l6 extends S5{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new J5],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new r6(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every((({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let o=-1;this.view.inputState.composing>=0&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?o=this.domChanged.newSel.head:function(e,t){let n=!1;return t&&e.iterChangedRanges(((e,o)=>{e<t.to&&o>t.from&&(n=!0)})),n}(e.changes,this.hasComposition)||e.selectionSet||(o=e.state.selection.main.head));let r=o>-1?function(e,t,n){let o=s6(e,n);if(!o)return null;let{node:r,from:i,to:l}=o,a=r.nodeValue;if(/[\n\r]/.test(a))return null;if(e.state.doc.sliceString(o.from,o.to)!=a)return null;let s=t.invertedDesc,c=new r6(s.mapPos(i),s.mapPos(l),i,l),u=[];for(let d=r.parentNode;;d=d.parentNode){let t=S5.get(d);if(t instanceof H5)u.push({node:d,deco:t.mark});else{if(t instanceof J5||"DIV"==d.nodeName&&d.parentNode==e.contentDOM)return{range:c,text:r,marks:u,line:d};if(d==e.contentDOM)return null;u.push({node:d,deco:new r8({inclusive:!0,attributes:q5(d),tagName:d.tagName.toLowerCase()})})}}}(this.view,e.changes,o):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:t,to:o}=this.hasComposition;n=new r6(t,o,e.changes.mapPos(t,-1),e.changes.mapPos(o,1)).addToSet(n.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(L5.ie||L5.chrome)&&!r&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let i=function(e,t,n){let o=new u6;return E4.compare(e,t,n,o),o.changes}(this.decorations,this.updateDeco(),e.changes);return n=r6.extendWithRanges(n,i),!!(7&this.flags||0!=n.length)&&(this.updateInner(n,e.startState.doc.length,r),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:o}=this.view;o.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=L5.chrome||L5.ios?{node:o.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.flags&=-8,e&&(e.written||o.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((e=>e.flags&=-9));let r=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let i of this.children)i instanceof e8&&i.widget instanceof a6&&r.push(i.dom);o.updateGaps(r)}updateChildren(e,t,n){let o=n?n.range.addToSet(e.slice()):e,r=this.childCursor(t);for(let i=o.length-1;;i--){let e=i>=0?o[i]:null;if(!e)break;let t,l,a,s,{fromA:c,toA:u,fromB:d,toB:p}=e;if(n&&n.range.fromB<p&&n.range.toB>d){let e=c8.build(this.view.state.doc,d,n.range.fromB,this.decorations,this.dynamicDecorationMap),o=c8.build(this.view.state.doc,n.range.toB,p,this.decorations,this.dynamicDecorationMap);l=e.breakAtStart,a=e.openStart,s=o.openEnd;let r=this.compositionView(n);o.breakAtStart?r.breakAfter=1:o.content.length&&r.merge(r.length,r.length,o.content[0],!1,o.openStart,0)&&(r.breakAfter=o.content[0].breakAfter,o.content.shift()),e.content.length&&r.merge(0,0,e.content[e.content.length-1],!0,0,e.openEnd)&&e.content.pop(),t=e.content.concat(r).concat(o.content)}else({content:t,breakAtStart:l,openStart:a,openEnd:s}=c8.build(this.view.state.doc,d,p,this.decorations,this.dynamicDecorationMap));let{i:h,off:f}=r.findPos(u,1),{i:g,off:m}=r.findPos(c,-1);P5(this,g,m,h,f,t,l,a,s)}n&&this.fixCompositionDOM(n)}compositionView(e){let t=new Q5(e.text.nodeValue);t.flags|=8;for(let{deco:o}of e.marks)t=new H5(o,[t],t.length);let n=new J5;return n.append(t,0),n}fixCompositionDOM(e){let t=(e,t)=>{t.flags|=8|(t.children.some((e=>7&e.flags))?1:0),this.markedForComposition.add(t);let n=S5.get(e);n&&n!=t&&(n.dom=null),t.setDOM(e)},n=this.childPos(e.range.fromB,1),o=this.children[n.i];t(e.line,o);for(let r=e.marks.length-1;r>=-1;r--)n=o.childPos(n.off,1),o=o.children[n.i],t(r>=0?e.marks[r].node:e.text,o)}updateSelection(e=!1,t=!1){!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let n=this.view.root.activeElement,o=n==this.dom,r=!o&&i5(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(o||t||r))return;let i=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,a=this.moveToLine(this.domAtPos(l.anchor)),s=l.empty?a:this.moveToLine(this.domAtPos(l.head));if(L5.gecko&&l.empty&&!this.hasComposition&&1==(c=a).node.nodeType&&c.node.firstChild&&(0==c.offset||"false"==c.node.childNodes[c.offset-1].contentEditable)&&(c.offset==c.node.childNodes.length||"false"==c.node.childNodes[c.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore((()=>a.node.insertBefore(e,a.node.childNodes[a.offset]||null))),a=s=new x5(e,0),i=!0}var c;let u=this.view.observer.selectionRange;!i&&u.focusNode&&(a5(a.node,a.offset,u.anchorNode,u.anchorOffset)&&a5(s.node,s.offset,u.focusNode,u.focusOffset)||this.suppressWidgetCursorChange(u,l))||(this.view.observer.ignore((()=>{L5.android&&L5.chrome&&this.dom.contains(u.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=o5(this.view.root);if(e)if(l.empty){if(L5.gecko){let e=(t=a.node,o=a.offset,1!=t.nodeType?0:(o&&"false"==t.childNodes[o-1].contentEditable?1:0)|(o<t.childNodes.length&&"false"==t.childNodes[o].contentEditable?2:0));if(e&&3!=e){let t=c6(a.node,a.offset,1==e?1:-1);t&&(a=new x5(t.node,t.offset))}}e.collapse(a.node,a.offset),null!=l.bidiLevel&&void 0!==e.caretBidiLevel&&(e.caretBidiLevel=l.bidiLevel)}else if(e.extend){e.collapse(a.node,a.offset);try{e.extend(s.node,s.offset)}catch(Spe){}}else{let t=document.createRange();l.anchor>l.head&&([a,s]=[s,a]),t.setEnd(s.node,s.offset),t.setStart(a.node,a.offset),e.removeAllRanges(),e.addRange(t)}var t,o;r&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())})),this.view.observer.setSelectionRange(a,s)),this.impreciseAnchor=a.precise?null:new x5(u.anchorNode,u.anchorOffset),this.impreciseHead=s.precise?null:new x5(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&a5(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=o5(e.root),{anchorNode:o,anchorOffset:r}=e.observer.selectionRange;if(!(n&&t.empty&&t.assoc&&n.modify))return;let i=J5.find(this,t.head);if(!i)return;let l=i.posAtStart;if(t.head==l||t.head==l+i.length)return;let a=this.coordsAt(t.head,-1),s=this.coordsAt(t.head,1);if(!a||!s||a.bottom>s.top)return;let c=this.domAtPos(t.head+t.assoc);n.collapse(c.node,c.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&n.collapse(o,r)}moveToLine(e){let t,n=this.dom;if(e.node!=n)return e;for(let o=e.offset;!t&&o<n.childNodes.length;o++){let e=S5.get(n.childNodes[o]);e instanceof J5&&(t=e.domAtPos(0))}for(let o=e.offset-1;!t&&o>=0;o--){let e=S5.get(n.childNodes[o]);e instanceof J5&&(t=e.domAtPos(e.length))}return t?new x5(t.node,t.offset,!0):e}nearest(e){for(let t=e;t;){let e=S5.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let e=this.children[t];if(n<e.length||e instanceof J5)break;t++,n=0}return this.children[t].domAtPos(n)}coordsAt(e,t){let n=null,o=0;for(let r=this.length,i=this.children.length-1;i>=0;i--){let l=this.children[i],a=r-l.breakAfter,s=a-l.length;if(a<e)break;s<=e&&(s<e||l.covers(-1))&&(a>e||l.covers(1))&&(!n||l instanceof J5&&!(n instanceof J5&&t>=0))&&(n=l,o=s),r=s}return n?n.coordsAt(e-o,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),o=this.children[t];if(!(o instanceof J5))return null;for(;o.children.length;){let{i:e,off:t}=o.childPos(n,1);for(;;e++){if(e==o.children.length)return null;if((o=o.children[e]).length)break}n=t}if(!(o instanceof Q5))return null;let r=g3(o.text,n);if(r==n)return null;let i=b5(o.dom,n,r).getClientRects();for(let l=0;l<i.length;l++){let e=i[l];if(l==i.length-1||e.top<e.bottom&&e.left<e.right)return e}return null}measureVisibleLineHeights(e){let t=[],{from:n,to:o}=e,r=this.view.contentDOM.clientWidth,i=r>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,a=this.view.textDirection==p8.LTR;for(let s=0,c=0;c<this.children.length;c++){let e=this.children[c],u=s+e.length;if(u>o)break;if(s>=n){let n=e.dom.getBoundingClientRect();if(t.push(n.height),i){let t=e.dom.lastChild,o=t?l5(t):[];if(o.length){let e=o[o.length-1],t=a?e.right-n.left:n.right-e.left;t>l&&(l=t,this.minWidth=r,this.minWidthFrom=s,this.minWidthTo=u)}}}s=u+e.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?p8.RTL:p8.LTR}measureTextSize(){for(let r of this.children)if(r instanceof J5){let e=r.measureTextSize();if(e)return e}let e,t,n,o=document.createElement("div");return o.className="cm-line",o.style.width="99999px",o.style.position="absolute",o.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(o);let r=l5(o.firstChild)[0];e=o.getBoundingClientRect().height,t=r?r.width/27:7,n=r?r.height:e,o.remove()})),{lineHeight:e,charWidth:t,textHeight:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new k5(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,o=0;;o++){let r=o==t.viewports.length?null:t.viewports[o],i=r?r.from-1:this.length;if(i>n){let o=(t.lineBlockAt(i).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(o8.replace({widget:new a6(o),block:!0,inclusive:!0,isBlockGap:!0}).range(n,i))}if(!r)break;n=r.to+1}return o8.set(e)}updateDeco(){let e=this.view.state.facet(G8).map(((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e)),t=!1,n=this.view.state.facet(U8).map(((e,n)=>{let o="function"==typeof e;return o&&(t=!0),o?e(this.view):e}));n.length&&(this.dynamicDecorationMap[e.length]=t,e.push(E4.join(n)));for(let o=e.length;o<e.length+3;o++)this.dynamicDecorationMap[o]=!1;return this.decorations=[...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(e){if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);return this.view.scrollDOM.scrollTop=t.top-e.yMargin,void(this.view.scrollDOM.scrollLeft=e.xMargin)}let t,{range:n}=e,o=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1);if(!o)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(o={left:Math.min(o.left,t.left),top:Math.min(o.top,t.top),right:Math.max(o.right,t.right),bottom:Math.max(o.bottom,t.bottom)});let r=n6(this.view),i={left:o.left-r.left,top:o.top-r.top,right:o.right+r.right,bottom:o.bottom+r.bottom},{offsetWidth:l,offsetHeight:a}=this.view.scrollDOM;!function(e,t,n,o,r,i,l,a){let s=e.ownerDocument,c=s.defaultView||window;for(let u=e,d=!1;u&&!d;)if(1==u.nodeType){let e,p=u==s.body,h=1,f=1;if(p)e=p5(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(d=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let t=u.getBoundingClientRect();({scaleX:h,scaleY:f}=h5(u,t)),e={left:t.left,right:t.left+u.clientWidth*h,top:t.top,bottom:t.top+u.clientHeight*f}}let g=0,m=0;if("nearest"==r)t.top<e.top?(m=-(e.top-t.top+l),n>0&&t.bottom>e.bottom+m&&(m=t.bottom-e.bottom+m+l)):t.bottom>e.bottom&&(m=t.bottom-e.bottom+l,n<0&&t.top-m<e.top&&(m=-(e.top+m-t.top+l)));else{let o=t.bottom-t.top,i=e.bottom-e.top;m=("center"==r&&o<=i?t.top+o/2-i/2:"start"==r||"center"==r&&n<0?t.top-l:t.bottom-i+l)-e.top}if("nearest"==o?t.left<e.left?(g=-(e.left-t.left+i),n>0&&t.right>e.right+g&&(g=t.right-e.right+g+i)):t.right>e.right&&(g=t.right-e.right+i,n<0&&t.left<e.left+g&&(g=-(e.left+g-t.left+i))):g=("center"==o?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==o==a?t.left-i:t.right-(e.right-e.left)+i)-e.left,g||m)if(p)c.scrollBy(g,m);else{let e=0,n=0;if(m){let e=u.scrollTop;u.scrollTop+=m/f,n=(u.scrollTop-e)*f}if(g){let t=u.scrollLeft;u.scrollLeft+=g/h,e=(u.scrollLeft-t)*h}t={left:t.left-e,top:t.top-n,right:t.right-e,bottom:t.bottom-n},e&&Math.abs(e-g)<1&&(o="nearest"),n&&Math.abs(n-m)<1&&(r="nearest")}if(p)break;u=u.assignedSlot||u.parentNode}else{if(11!=u.nodeType)break;u=u.host}}(this.view.scrollDOM,i,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,l),-l),Math.max(Math.min(e.yMargin,a),-a),this.view.textDirection==p8.LTR)}}class a6 extends t8{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}}function s6(e,t){let n=e.observer.selectionRange,o=n.focusNode&&c6(n.focusNode,n.focusOffset,0);if(!o)return null;let r=t-o.offset;return{from:r,to:r+o.node.nodeValue.length,node:o.node}}function c6(e,t,n){if(n<=0)for(let o=e,r=t;;){if(3==o.nodeType)return{node:o,offset:r};if(!(1==o.nodeType&&r>0))break;o=o.childNodes[r-1],r=u5(o)}if(n>=0)for(let o=e,r=t;;){if(3==o.nodeType)return{node:o,offset:r};if(!(1==o.nodeType&&r<o.childNodes.length&&n>=0))break;o=o.childNodes[r],r=0}return null}let u6=class{constructor(){this.changes=[]}compareRange(e,t){s8(e,t,this.changes)}comparePoint(e,t){s8(e,t,this.changes)}};function d6(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function p6(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function h6(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function f6(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function g6(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function m6(e,t,n){let o,r,i,l,a,s,c,u,d=!1;for(let h=e.firstChild;h;h=h.nextSibling){let e=l5(h);for(let p=0;p<e.length;p++){let f=e[p];r&&h6(r,f)&&(f=f6(g6(f,r.bottom),r.top));let g=d6(t,f),m=p6(n,f);if(0==g&&0==m)return 3==h.nodeType?v6(h,t,n):m6(h,t,n);if(!o||l>m||l==m&&i>g){o=h,r=f,i=g,l=m;let a=m?n<f.top?-1:1:g?t<f.left?-1:1:0;d=!a||(a>0?p<e.length-1:p>0)}0==g?n>f.bottom&&(!c||c.bottom<f.bottom)?(a=h,c=f):n<f.top&&(!u||u.top>f.top)&&(s=h,u=f):c&&h6(c,f)?c=g6(c,f.bottom):u&&h6(u,f)&&(u=f6(u,f.top))}}if(c&&c.bottom>=n?(o=a,r=c):u&&u.top<=n&&(o=s,r=u),!o)return{node:e,offset:0};let p=Math.max(r.left,Math.min(r.right,t));return 3==o.nodeType?v6(o,p,n):d&&"false"!=o.contentEditable?m6(o,p,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,o)+(t>=(r.left+r.right)/2?1:0)}}function v6(e,t,n){let o=e.nodeValue.length,r=-1,i=1e9,l=0;for(let a=0;a<o;a++){let o=b5(e,a,a+1).getClientRects();for(let s=0;s<o.length;s++){let c=o[s];if(c.top==c.bottom)continue;l||(l=t-c.left);let u=(c.top>n?c.top-n:n-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&u<i){let n=t>=(c.left+c.right)/2,o=n;if((L5.chrome||L5.gecko)&&b5(e,a).getBoundingClientRect().left==c.right&&(o=!n),u<=0)return{node:e,offset:a+(o?1:0)};r=a+(o?1:0),i=u}}}return{node:e,offset:r>-1?r:l>0?e.nodeValue.length:0}}function b6(e,t,n,o=-1){var r,i;let l,a=e.contentDOM.getBoundingClientRect(),s=a.top+e.viewState.paddingTop,{docHeight:c}=e.viewState,{x:u,y:d}=t,p=d-s;if(p<0)return 0;if(p>c)return e.state.doc.length;for(let O=e.viewState.heightOracle.textHeight/2,w=!1;l=e.elementAtHeight(p),l.type!=n8.Text;)for(;p=o>0?l.bottom+O:l.top-O,!(p>=0&&p<=c);){if(w)return n?null:0;w=!0,o=-o}d=s+p;let h=l.from;if(h<e.viewport.from)return 0==e.viewport.from?0:n?null:y6(e,a,l,u,d);if(h>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:y6(e,a,l,u,d);let f=e.dom.ownerDocument,g=e.root.elementFromPoint?e.root:f,m=g.elementFromPoint(u,d);m&&!e.contentDOM.contains(m)&&(m=null),m||(u=Math.max(a.left+1,Math.min(a.right-1,u)),m=g.elementFromPoint(u,d),m&&!e.contentDOM.contains(m)&&(m=null));let v,b=-1;if(m&&0!=(null===(r=e.docView.nearest(m))||void 0===r?void 0:r.isEditable))if(f.caretPositionFromPoint){let e=f.caretPositionFromPoint(u,d);e&&({offsetNode:v,offset:b}=e)}else if(f.caretRangeFromPoint){let t=f.caretRangeFromPoint(u,d);t&&(({startContainer:v,startOffset:b}=t),(!e.contentDOM.contains(v)||L5.safari&&function(e,t,n){let o;if(3!=e.nodeType||t!=(o=e.nodeValue.length))return!1;for(let r=e.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return b5(e,o-1,o).getBoundingClientRect().left>n}(v,b,u)||L5.chrome&&function(e,t,n){if(0!=t)return!1;for(let r=e;;){let e=r.parentNode;if(!e||1!=e.nodeType||e.firstChild!=r)return!1;if(e.classList.contains("cm-line"))break;r=e}let o=1==e.nodeType?e.getBoundingClientRect():b5(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-o.left>5}(v,b,u))&&(v=void 0))}if(!v||!e.docView.dom.contains(v)){let t=J5.find(e.docView,h);if(!t)return p>l.top+l.height/2?l.to:l.from;({node:v,offset:b}=m6(t.dom,u,d))}let y=e.docView.nearest(v);if(!y)return null;if(y.isWidget&&1==(null===(i=y.dom)||void 0===i?void 0:i.nodeType)){let e=y.dom.getBoundingClientRect();return t.y<e.top||t.y<=e.bottom&&t.x<=(e.left+e.right)/2?y.posAtStart:y.posAtEnd}return y.localPosFromDOM(v,b)+y.posAtStart}function y6(e,t,n,o,r){let i=Math.round((o-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;i+=Math.floor((r-n.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength}let l=e.state.sliceDoc(n.from,n.to);return n.from+W4(l,i,e.state.tabSize)}function O6(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type))for(let o of n.type)if(o.to>t||o.to==t&&(o.to==n.to||o.type==n8.Text))return o;return n}function w6(e,t,n,o){let r=e.state.doc.lineAt(t.head),i=e.bidiSpans(r),l=e.textDirectionAt(r.from);for(let a=t,s=null;;){let t=T8(r,i,l,a,n),c=M8;if(!t){if(r.number==(n?e.state.doc.lines:1))return a;c="\n",r=e.state.doc.line(r.number+(n?1:-1)),i=e.bidiSpans(r),t=e.visualLineSide(r,!n)}if(s){if(!s(c))return a}else{if(!o)return t;s=o(c)}a=t}}function x6(e,t,n){for(;;){let o=0;for(let r of e)r.between(t-1,t+1,((e,r,i)=>{if(t>e&&t<r){let i=o||n||(t-e<r-t?-1:1);t=i<0?e:r,o=i}}));if(!o)return t}}function $6(e,t,n){let o=x6(e.state.facet(q8).map((t=>t(e))),n.from,t.head>n.from?-1:1);return o==n.from?n:D3.cursor(o,o<n.from?1:-1)}class S6{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){var t;this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,L5.safari&&e.contentDOM.addEventListener("input",(()=>null)),L5.gecko&&(t=e.contentDOM.ownerDocument,G6.has(t)||(G6.add(t),t.addEventListener("copy",(()=>{})),t.addEventListener("cut",(()=>{}))))}handleEvent(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,o=t.target;o!=e.contentDOM;o=o.parentNode)if(!o||11==o.nodeType||(n=S5.get(o))&&n.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||this.runHandlers(e.type,e))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=function(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let o of e){let e=o.spec;if(e&&e.domEventHandlers)for(let t in e.domEventHandlers){let r=e.domEventHandlers[t];r&&n(t).handlers.push(C6(o.value,r))}if(e&&e.domEventObservers)for(let t in e.domEventObservers){let r=e.domEventObservers[t];r&&n(t).observers.push(C6(o.value,r))}}for(let o in E6)n(o).handlers.push(E6[o]);for(let o in A6)n(o).observers.push(A6[o]);return t}(e),n=this.handlers,o=this.view.contentDOM;for(let r in t)if("scroll"!=r){let e=!t[r].handlers.length,i=n[r];i&&e!=!i.handlers.length&&(o.removeEventListener(r,this.handleEvent),i=null),i||o.addEventListener(r,this.handleEvent,{passive:e})}for(let r in n)"scroll"==r||t[r]||o.removeEventListener(r,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()<this.lastEscPress+2e3)return!0;if(27!=e.keyCode&&M6.indexOf(e.keyCode)<0&&(this.view.inputState.lastEscPress=0),L5.android&&L5.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return!L5.ios||e.synthetic||e.altKey||e.metaKey||!((t=k6.find((t=>t.keyCode==e.keyCode)))&&!e.ctrlKey||P6.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(){let e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,y5(this.view.contentDOM,e.key,e.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(L5.safari&&!L5.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function C6(e,t){return(n,o)=>{try{return t.call(e,o,n)}catch($pe){H8(n.state,$pe)}}}const k6=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],P6="dthko",M6=[16,17,18,20,91,92,224,225];function T6(e){return.7*Math.max(0,e)+8}class I6{constructor(e,t,n,o){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=o,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=function(e){let t=e.ownerDocument;for(let n=e.parentNode;n&&n!=t.body;)if(1==n.nodeType){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else{if(11!=n.nodeType)break;n=n.host}return null}(e.contentDOM),this.atoms=e.state.facet(q8).map((t=>t(e)));let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(C4.allowMultipleSelections)&&function(e,t){let n=e.state.facet(E8);return n.length?n[0](t):L5.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let o=o5(e.root);if(!o||0==o.rangeCount)return!0;let r=o.getRangeAt(0).getClientRects();for(let i=0;i<r.length;i++){let e=r[i];if(e.left<=t.clientX&&e.right>=t.clientX&&e.top<=t.clientY&&e.bottom>=t.clientY)return!0}return!1}(e,t)||1!=W6(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var t,n,o;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(n=this.startEvent,o=e,Math.max(Math.abs(n.clientX-o.clientX),Math.abs(n.clientY-o.clientY))<10))return;this.select(this.lastEvent=e);let r=0,i=0,l=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=n6(this.view);e.clientX-a.left<=l.left+6?r=-T6(l.left-e.clientX):e.clientX+a.right>=l.right-6&&(r=T6(e.clientX-l.right)),e.clientY-a.top<=l.top+6?i=-T6(l.top-e.clientY):e.clientY+a.bottom>=l.bottom-6&&(i=T6(e.clientY-l.bottom)),this.setScrollSpeed(r,i)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?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(e){let t=null;for(let n=0;n<e.ranges.length;n++){let o=e.ranges[n],r=null;if(o.empty){let e=x6(this.atoms,o.from,0);e!=o.from&&(r=D3.cursor(e,-1))}else{let e=x6(this.atoms,o.from,-1),t=x6(this.atoms,o.to,1);e==o.from&&t==o.to||(r=D3.range(o.from==o.anchor?e:t,o.from==o.head?e:t))}r&&(t||(t=e.ranges.slice()),t[n]=r)}return t?D3.create(t,e.mainIndex):e}select(e){let{view:t}=this,n=this.skipAtoms(this.style.get(e,this.extend,this.multiple));!this.mustSelect&&n.eq(t.state.selection,!1===this.dragging)||this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){this.style.update(e)&&setTimeout((()=>this.select(this.lastEvent)),20)}}const E6=Object.create(null),A6=Object.create(null),R6=L5.ie&&L5.ie_version<15||L5.ios&&L5.webkit_version<604;function D6(e,t){let n,{state:o}=e,r=1,i=o.toText(t),l=i.lines==o.selection.ranges.length;if(null!=Z6&&o.selection.ranges.every((e=>e.empty))&&Z6==i.toString()){let e=-1;n=o.changeByRange((n=>{let a=o.doc.lineAt(n.from);if(a.from==e)return{range:n};e=a.from;let s=o.toText((l?i.line(r++).text:t)+o.lineBreak);return{changes:{from:a.from,insert:s},range:D3.cursor(n.from+s.length)}}))}else n=l?o.changeByRange((e=>{let t=i.line(r++);return{changes:{from:e.from,to:e.to,insert:t.text},range:D3.cursor(e.from+t.length)}})):o.replaceSelection(i);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function j6(e,t,n,o){if(1==o)return D3.cursor(t,n);if(2==o)return function(e,t,n=1){let o=e.charCategorizer(t),r=e.doc.lineAt(t),i=t-r.from;if(0==r.length)return D3.cursor(t);0==i?n=1:i==r.length&&(n=-1);let l=i,a=i;n<0?l=g3(r.text,i,!1):a=g3(r.text,i);let s=o(r.text.slice(l,a));for(;l>0;){let e=g3(r.text,l,!1);if(o(r.text.slice(e,l))!=s)break;l=e}for(;a<r.length;){let e=g3(r.text,a);if(o(r.text.slice(a,e))!=s)break;a=e}return D3.range(l+r.from,a+r.from)}(e.state,t,n);{let n=J5.find(e.docView,t),o=e.state.doc.lineAt(n?n.posAtEnd:t),r=n?n.posAtStart:o.from,i=n?n.posAtEnd:o.to;return i<e.state.doc.length&&i==o.to&&i++,D3.range(r,i)}}A6.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},E6.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&(e.inputState.lastEscPress=Date.now()),!1),A6.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},A6.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},E6.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let o of e.state.facet(R8))if(n=o(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=_6(e,t),o=W6(t),r=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),r=r.map(e.changes))},get(t,i,l){let a,s=_6(e,t),c=j6(e,s.pos,s.bias,o);if(n.pos!=s.pos&&!i){let t=j6(e,n.pos,n.bias,o),r=Math.min(t.from,c.from),i=Math.max(t.to,c.to);c=r<c.from?D3.range(r,i):D3.range(i,r)}return i?r.replaceRange(r.main.extend(c.from,c.to)):l&&1==o&&r.ranges.length>1&&(a=function(e,t){for(let n=0;n<e.ranges.length;n++){let{from:o,to:r}=e.ranges[n];if(o<=t&&r>=t)return D3.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}(r,s.pos))?a:l?r.addRange(c):D3.create([c])}}}(e,t)),n){let o=!e.hasFocus;e.inputState.startMouseSelection(new I6(e,t,n,o)),o&&e.observer.ignore((()=>v5(e.contentDOM)));let r=e.inputState.mouseSelection;if(r)return r.start(t),!1===r.dragging}return!1};let B6=(e,t)=>e>=t.top&&e<=t.bottom,N6=(e,t,n)=>B6(t,n)&&e>=n.left&&e<=n.right;function z6(e,t,n,o){let r=J5.find(e.docView,t);if(!r)return 1;let i=t-r.posAtStart;if(0==i)return 1;if(i==r.length)return-1;let l=r.coordsAt(i,-1);if(l&&N6(n,o,l))return-1;let a=r.coordsAt(i,1);return a&&N6(n,o,a)?1:l&&B6(o,l)?-1:1}function _6(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:z6(e,n,t.clientX,t.clientY)}}const L6=L5.ie&&L5.ie_version<=11;let Q6=null,H6=0,F6=0;function W6(e){if(!L6)return e.detail;let t=Q6,n=F6;return Q6=e,F6=Date.now(),H6=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(H6+1)%3:1}function V6(e,t,n,o){if(!n)return;let r=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:i}=e.inputState,l=o&&i&&function(e,t){let n=e.state.facet(A8);return n.length?n[0](t):L5.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:i.from,to:i.to}:null,a={from:r,insert:n},s=e.state.changes(l?[l,a]:a);e.focus(),e.dispatch({changes:s,selection:{anchor:s.mapPos(r,-1),head:s.mapPos(r,1)},userEvent:l?"move.drop":"input.drop"}),e.inputState.draggedContent=null}E6.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let o=e.docView.nearest(t.target);if(o&&o.isWidget){let e=o.posAtStart,t=e+o.length;(e>=n.to||t<=n.from)&&(n=D3.range(e,t))}}let{inputState:o}=e;return o.mouseSelection&&(o.mouseSelection.dragging=!0),o.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1},E6.dragend=e=>(e.inputState.draggedContent=null,!1),E6.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let o=Array(n.length),r=0,i=()=>{++r==n.length&&V6(e,t,o.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e<n.length;e++){let t=new FileReader;t.onerror=i,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(o[e]=t.result),i()},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return V6(e,t,n,!0),!0}return!1},E6.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=R6?null:t.clipboardData;return n?(D6(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{e.focus(),n.remove(),D6(e,n.value)}),50)}(e),!1)};let Z6=null;E6.copy=E6.cut=(e,t)=>{let{text:n,ranges:o,linewise:r}=function(e){let t=[],n=[],o=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let r=-1;for(let{from:o}of e.selection.ranges){let i=e.doc.lineAt(o);i.number>r&&(t.push(i.text),n.push({from:i.from,to:Math.min(e.doc.length,i.to+1)})),r=i.number}o=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:o}}(e.state);if(!n&&!r)return!1;Z6=r?n:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:o,scrollIntoView:!0,userEvent:"delete.cut"});let i=R6?null:t.clipboardData;return i?(i.clearData(),i.setData("text/plain",n),!0):(function(e,t){let n=e.dom.parentNode;if(!n)return;let o=n.appendChild(document.createElement("textarea"));o.style.cssText="position: fixed; left: -10000px; top: 10px",o.value=t,o.focus(),o.selectionEnd=t.length,o.selectionStart=0,setTimeout((()=>{o.remove(),e.focus()}),50)}(e,n),!1)};const X6=u4.define();function Y6(e,t){let n=[];for(let o of e.facet(N8)){let r=o(e,t);r&&n.push(r)}return n?e.update({effects:n,annotations:X6.of(!0)}):null}function K6(e){setTimeout((()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=Y6(e.state,t);n?e.dispatch(n):e.update([])}}),10)}A6.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),K6(e)},A6.blur=e=>{e.observer.clearSelectionRange(),K6(e)},A6.compositionstart=A6.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)},A6.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,L5.chrome&&L5.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then((()=>e.observer.flush())):setTimeout((()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])}),50)},A6.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},E6.beforeinput=(e,t)=>{var n;let o;if(L5.chrome&&L5.android&&(o=k6.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(o.key,o.keyCode),"Backspace"==o.key||"Delete"==o.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}return!1};const G6=new Set,U6=["pre-wrap","normal","pre-line","break-spaces"];class q6{constructor(e){this.lineWrapping=e,this.doc=n3.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return U6.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let o=e[n];o<0?n++:this.heightSamples[Math.floor(10*o)]||(t=!0,this.heightSamples[Math.floor(10*o)]=!0)}return t}refresh(e,t,n,o,r,i){let l=U6.indexOf(e)>-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=n,this.textHeight=o,this.lineLength=r,a){this.heightSamples={};for(let e=0;e<i.length;e++){let t=i[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return a}}class J6{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class e7{constructor(e,t,n,o,r){this.from=e,this.length=t,this.top=n,this.height=o,this._content=r}get type(){return"number"==typeof this._content?n8.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof l8?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new e7(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var t7=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(t7||(t7={}));const n7=.001;class o7{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>n7&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return o7.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,o){let r=this,i=n.doc;for(let l=o.length-1;l>=0;l--){let{fromA:a,toA:s,fromB:c,toB:u}=o[l],d=r.lineAt(a,t7.ByPosNoHeight,n.setDoc(t),0,0),p=d.to>=s?d:r.lineAt(s,t7.ByPosNoHeight,n,0,0);for(u+=p.to-s,s=p.to;l>0&&d.from<=o[l-1].toA;)a=o[l-1].fromA,c=o[l-1].fromB,l--,a<d.from&&(d=r.lineAt(a,t7.ByPosNoHeight,n,0,0));c+=d.from-a,a=d.from;let h=c7.build(n.setDoc(i),e,c,u);r=r.replace(a,s,h)}return r.updateHeight(n,0)}static empty(){return new i7(0,0)}static of(e){if(1==e.length)return e[0];let t=0,n=e.length,o=0,r=0;for(;;)if(t==n)if(o>2*r){let r=e[t-1];r.break?e.splice(--t,1,r.left,null,r.right):e.splice(--t,1,r.left,r.right),n+=1+r.break,o-=r.size}else{if(!(r>2*o))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,r-=t.size}}else if(o<r){let n=e[t++];n&&(o+=n.size)}else{let t=e[--n];t&&(r+=t.size)}let i=0;return null==e[t-1]?(i=1,t--):null==e[t]&&(i=1,n++),new a7(o7.of(e.slice(0,t)),i,o7.of(e.slice(n)))}}o7.prototype.size=1;class r7 extends o7{constructor(e,t,n){super(e,t),this.deco=n}blockAt(e,t,n,o){return new e7(o,this.length,n,this.height,this.deco||0)}lineAt(e,t,n,o,r){return this.blockAt(0,n,o,r)}forEachLine(e,t,n,o,r,i){e<=r+this.length&&t>=r&&i(this.blockAt(0,n,o,r))}updateHeight(e,t=0,n=!1,o){return o&&o.from<=t&&o.more&&this.setHeight(e,o.heights[o.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class i7 extends r7{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,o){return new e7(o,this.length,n,this.height,this.breaks)}replace(e,t,n){let o=n[0];return 1==n.length&&(o instanceof i7||o instanceof l7&&4&o.flags)&&Math.abs(this.length-o.length)<10?(o instanceof l7?o=new i7(o.length,this.height):o.height=this.height,this.outdated||(o.outdated=!1),o):o7.of(n)}updateHeight(e,t=0,n=!1,o){return o&&o.from<=t&&o.more?this.setHeight(e,o.heights[o.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class l7 extends o7{constructor(e){super(e,0)}heightMetrics(e,t){let n,o=e.doc.lineAt(t).number,r=e.doc.lineAt(t+this.length).number,i=r-o+1,l=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*i);n=t/i,this.length>i+1&&(l=(this.height-t)/(this.length-i-1))}else n=this.height/i;return{firstLine:o,lastLine:r,perLine:n,perChar:l}}blockAt(e,t,n,o){let{firstLine:r,lastLine:i,perLine:l,perChar:a}=this.heightMetrics(t,o);if(t.lineWrapping){let r=o+Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length),i=t.doc.lineAt(r),s=l+i.length*a,c=Math.max(n,e-s/2);return new e7(i.from,i.length,c,s,0)}{let o=Math.max(0,Math.min(i-r,Math.floor((e-n)/l))),{from:a,length:s}=t.doc.line(r+o);return new e7(a,s,n+l*o,l,0)}}lineAt(e,t,n,o,r){if(t==t7.ByHeight)return this.blockAt(e,n,o,r);if(t==t7.ByPosNoHeight){let{from:t,to:o}=n.doc.lineAt(e);return new e7(t,o-t,0,0,0)}let{firstLine:i,perLine:l,perChar:a}=this.heightMetrics(n,r),s=n.doc.lineAt(e),c=l+s.length*a,u=s.number-i,d=o+l*u+a*(s.from-r-u);return new e7(s.from,s.length,Math.max(o,Math.min(d,o+this.height-c)),c,0)}forEachLine(e,t,n,o,r,i){e=Math.max(e,r),t=Math.min(t,r+this.length);let{firstLine:l,perLine:a,perChar:s}=this.heightMetrics(n,r);for(let c=e,u=o;c<=t;){let t=n.doc.lineAt(c);if(c==e){let n=t.number-l;u+=a*n+s*(e-r-n)}let o=a+s*t.length;i(new e7(t.from,t.length,u,o,0)),u+=o,c=t.to+1}}replace(e,t,n){let o=this.length-t;if(o>0){let e=n[n.length-1];e instanceof l7?n[n.length-1]=new l7(e.length+o):n.push(null,new l7(o-1))}if(e>0){let t=n[0];t instanceof l7?n[0]=new l7(e+t.length):n.unshift(new l7(e-1),null)}return o7.of(n)}decomposeLeft(e,t){t.push(new l7(e-1),null)}decomposeRight(e,t){t.push(null,new l7(this.length-e-1))}updateHeight(e,t=0,n=!1,o){let r=t+this.length;if(o&&o.from<=t+this.length&&o.more){let n=[],i=Math.max(t,o.from),l=-1;for(o.from>t&&n.push(new l7(o.from-t-1).updateHeight(e,t));i<=r&&o.more;){let t=e.doc.lineAt(i).length;n.length&&n.push(null);let r=o.heights[o.index++];-1==l?l=r:Math.abs(r-l)>=n7&&(l=-2);let a=new i7(t,r);a.outdated=!1,n.push(a),i+=t+1}i<=r&&n.push(null,new l7(r-i).updateHeight(e,i));let a=o7.of(n);return(l<0||Math.abs(a.height-this.height)>=n7||Math.abs(l-this.heightMetrics(e,t).perLine)>=n7)&&(e.heightChanged=!0),a}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class a7 extends o7{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,o){let r=n+this.left.height;return e<r?this.left.blockAt(e,t,n,o):this.right.blockAt(e,t,r,o+this.left.length+this.break)}lineAt(e,t,n,o,r){let i=o+this.left.height,l=r+this.left.length+this.break,a=t==t7.ByHeight?e<i:e<l,s=a?this.left.lineAt(e,t,n,o,r):this.right.lineAt(e,t,n,i,l);if(this.break||(a?s.to<l:s.from>l))return s;let c=t==t7.ByPosNoHeight?t7.ByPosNoHeight:t7.ByPos;return a?s.join(this.right.lineAt(l,c,n,i,l)):this.left.lineAt(l,c,n,o,r).join(s)}forEachLine(e,t,n,o,r,i){let l=o+this.left.height,a=r+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,n,o,r,i),t>=a&&this.right.forEachLine(e,t,n,l,a,i);else{let s=this.lineAt(a,t7.ByPos,n,o,r);e<s.from&&this.left.forEachLine(e,s.from-1,n,o,r,i),s.to>=e&&s.from<=t&&i(s),t>s.to&&this.right.forEachLine(s.to+1,t,n,l,a,i)}}replace(e,t,n){let o=this.left.length+this.break;if(t<o)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-o,t-o,n));let r=[];e>0&&this.decomposeLeft(e,r);let i=r.length;for(let l of n)r.push(l);if(e>0&&s7(r,i-1),t<this.length){let e=r.length;this.decomposeRight(t,r),s7(r,e)}return o7.of(r)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(n++,e>=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,o=n+this.break;if(e>=o)return this.right.decomposeRight(e-o,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<o&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?o7.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,o){let{left:r,right:i}=this,l=t+r.length+this.break,a=null;return o&&o.from<=t+r.length&&o.more?a=r=r.updateHeight(e,t,n,o):r.updateHeight(e,t,n),o&&o.from<=l+i.length&&o.more?a=i=i.updateHeight(e,l,n,o):i.updateHeight(e,l,n),a?this.balanced(r,i):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function s7(e,t){let n,o;null==e[t]&&(n=e[t-1])instanceof l7&&(o=e[t+1])instanceof l7&&e.splice(t-1,3,new l7(n.length+1+o.length))}class c7{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof i7?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new i7(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let o=n.widget?n.widget.estimatedHeight:0,r=n.widget?n.widget.lineBreaks:0;o<0&&(o=this.oracle.lineHeight);let i=t-e;n.block?this.addBlock(new r7(i,o,n)):(i||r||o>=5)&&this.addLineDeco(o,r,i)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new i7(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new l7(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof i7)return e;let t=new i7(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let o=this.ensureLine();o.length+=n,o.collapsed+=n,o.widgetHeight=Math.max(o.widgetHeight,e),o.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof i7||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new i7(0,-1));let n=e;for(let o of this.nodes)o instanceof i7&&o.updateHeight(this.oracle,n),n+=o?o.length:1;return this.nodes}static build(e,t,n,o){let r=new c7(n,e);return E4.spans(t,n,o,r,0),r.finish(n)}}class u7{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,o){(e<t||n&&n.heightRelevant||o&&o.heightRelevant)&&s8(e,t,this.changes,5)}}function d7(e,t){let n=e.getBoundingClientRect(),o=e.ownerDocument,r=o.defaultView||window,i=Math.max(0,n.left),l=Math.min(r.innerWidth,n.right),a=Math.max(0,n.top),s=Math.min(r.innerHeight,n.bottom);for(let c=e.parentNode;c&&c!=o.body;)if(1==c.nodeType){let t=c,n=window.getComputedStyle(t);if((t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)&&"visible"!=n.overflow){let n=t.getBoundingClientRect();i=Math.max(i,n.left),l=Math.min(l,n.right),a=Math.max(a,n.top),s=c==e.parentNode?n.bottom:Math.min(s,n.bottom)}c="absolute"==n.position||"fixed"==n.position?t.offsetParent:t.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:i-n.left,right:Math.max(i,l)-n.left,top:a-(n.top+t),bottom:Math.max(a,s)-(n.top+t)}}function p7(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class h7{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let o=e[n],r=t[n];if(o.from!=r.from||o.to!=r.to||o.size!=r.size)return!1}return!0}draw(e,t){return o8.replace({widget:new f7(this.size*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class f7 extends t8{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class g7{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!0,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=O7,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=p8.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(K8).some((e=>"function"!=typeof e&&"cm-lineWrapping"==e.class));this.heightOracle=new q6(t),this.stateDeco=e.facet(G8).filter((e=>"function"!=typeof e)),this.heightMap=o7.empty().applyChanges(this.stateDeco,n3.empty,this.heightOracle.setDoc(e.doc),[new r6(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=o8.set(this.lineGaps.map((e=>e.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let o=n?t.head:t.anchor;if(!e.some((({from:e,to:t})=>o>=e&&o<=t))){let{from:t,to:n}=this.lineBlockAt(o);e.push(new m7(t,n))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?O7:new w7(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,(e=>{this.viewportLines.push(1==this.scaler.scale?e:x7(e,this.scaler))}))}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(G8).filter((e=>"function"!=typeof e));let o=e.changedRanges,r=r6.extendWithRanges(o,function(e,t,n){let o=new u7;return E4.compare(e,t,n,o,0),o.changes}(n,this.stateDeco,e?e.changes:k3.empty(this.state.doc.length))),i=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),this.heightMap.height!=i&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let a=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<a.from||t.range.head>a.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let s=!e.changes.empty||2&e.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),s&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(_8)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),o=this.heightOracle,r=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?p8.RTL:p8.LTR;let i=this.heightOracle.mustRefreshForWrapping(r),l=t.getBoundingClientRect(),a=i||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let s=0,c=0;if(l.width&&l.height){let{scaleX:e,scaleY:n}=h5(t,l);this.scaleX==e&&this.scaleY==n||(this.scaleX=e,this.scaleY=n,s|=8,i=a=!0)}let u=(parseInt(n.paddingTop)||0)*this.scaleY,d=(parseInt(n.paddingBottom)||0)*this.scaleY;this.paddingTop==u&&this.paddingBottom==d||(this.paddingTop=u,this.paddingBottom=d,s|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(o.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,s|=8);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=w5(e.scrollDOM);let h=(this.printing?p7:d7)(t,this.paddingTop),f=h.top-this.pixelViewport.top,g=h.bottom-this.pixelViewport.bottom;this.pixelViewport=h;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=l.width;if(this.contentDOMWidth==v&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,s|=8),a){let t=e.docView.measureVisibleLineHeights(this.viewport);if(o.mustRefreshForHeights(t)&&(i=!0),i||o.lineWrapping&&Math.abs(v-this.contentDOMWidth)>o.charWidth){let{lineHeight:n,charWidth:l,textHeight:a}=e.docView.measureTextSize();i=n>0&&o.refresh(r,n,l,a,v/l,t),i&&(e.docView.minWidth=0,s|=8)}f>0&&g>0?c=Math.max(f,g):f<0&&g<0&&(c=Math.min(f,g)),o.heightChanged=!1;for(let n of this.viewports){let r=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(i?o7.empty().applyChanges(this.stateDeco,n3.empty,this.heightOracle,[new r6(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(o,0,i,new J6(n.from,r))}o.heightChanged&&(s|=2)}let b=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return b&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&s||b)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(i?[]:this.lineGaps,e)),s|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),s}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),o=this.heightMap,r=this.heightOracle,{visibleTop:i,visibleBottom:l}=this,a=new m7(o.lineAt(i-1e3*n,t7.ByHeight,r,0,0).from,o.lineAt(l+1e3*(1-n),t7.ByHeight,r,0,0).to);if(t){let{head:e}=t.range;if(e<a.from||e>a.to){let n,i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),l=o.lineAt(e,t7.ByPos,r,0,0);n="center"==t.y?(l.top+l.bottom)/2-i/2:"start"==t.y||"nearest"==t.y&&e<a.from?l.top:l.bottom-i,a=new m7(o.lineAt(n-500,t7.ByHeight,r,0,0).from,o.lineAt(n+i+500,t7.ByHeight,r,0,0).to)}}return a}mapViewport(e,t){let n=t.mapPos(e.from,-1),o=t.mapPos(e.to,1);return new m7(this.heightMap.lineAt(n,t7.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(o,t7.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:o}=this.heightMap.lineAt(e,t7.ByPos,this.heightOracle,0,0),{bottom:r}=this.heightMap.lineAt(t,t7.ByPos,this.heightOracle,0,0),{visibleTop:i,visibleBottom:l}=this;return(0==e||o<=i-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||r>=l+Math.max(10,Math.min(n,250)))&&o>i-2e3&&r<l+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let o of e)t.touchesRange(o.from,o.to)||n.push(new h7(t.mapPos(o.from),t.mapPos(o.to),o.size));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,o=n?1e4:2e3,r=o>>1,i=o<<1;if(this.defaultTextDirection!=p8.LTR&&!n)return[];let l=[],a=(o,i,s,c)=>{if(i-o<r)return;let u=this.state.selection.main,d=[u.from];u.empty||d.push(u.to);for(let e of d)if(e>o&&e<i)return a(o,e-10,s,c),void a(e+10,i,s,c);let p=function(e,t){for(let n of e)if(t(n))return n}(e,(e=>e.from>=s.from&&e.to<=s.to&&Math.abs(e.from-o)<r&&Math.abs(e.to-i)<r&&!d.some((t=>e.from<t&&e.to>t))));if(!p){if(i<s.to&&t&&n&&t.visibleRanges.some((e=>e.from<=i&&e.to>=i))){let e=t.moveToLineBoundary(D3.cursor(i),!1,!0).head;e>o&&(i=e)}p=new h7(o,i,this.gapSize(s,o,i,c))}l.push(p)};for(let s of this.viewportLines){if(s.length<i)continue;let e=v7(s.from,s.to,this.stateDeco);if(e.total<i)continue;let t,r,l=this.scrollTarget?this.scrollTarget.range.head:null;if(n){let n,i,a=o/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=l){let t=y7(e,l),o=((this.visibleBottom-this.visibleTop)/2+a)/s.height;n=t-o,i=t+o}else n=(this.visibleTop-s.top-a)/s.height,i=(this.visibleBottom-s.top+a)/s.height;t=b7(e,n),r=b7(e,i)}else{let n,i,a=e.total*this.heightOracle.charWidth,s=o*this.heightOracle.charWidth;if(null!=l){let t=y7(e,l),o=((this.pixelViewport.right-this.pixelViewport.left)/2+s)/a;n=t-o,i=t+o}else n=(this.pixelViewport.left-s)/a,i=(this.pixelViewport.right+s)/a;t=b7(e,n),r=b7(e,i)}t>s.from&&a(s.from,t,s,e),r<s.to&&a(r,s.to,s,e)}return l}gapSize(e,t,n,o){let r=y7(o,n)-y7(o,t);return this.heightOracle.lineWrapping?e.height*r:o.total*this.heightOracle.charWidth*r}updateLineGaps(e){h7.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=o8.set(e.map((e=>e.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];E4.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,n)=>e.from!=t[n].from||e.to!=t[n].to));return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||x7(this.heightMap.lineAt(e,t7.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return x7(this.heightMap.lineAt(this.scaler.fromDOM(e),t7.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return x7(this.heightMap.blockAt(this.scaler.fromDOM(e),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 m7{constructor(e,t){this.from=e,this.to=t}}function v7(e,t,n){let o=[],r=e,i=0;return E4.spans(n,e,t,{span(){},point(e,t){e>r&&(o.push({from:r,to:e}),i+=e-r),r=t}},20),r<t&&(o.push({from:r,to:t}),i+=t-r),{total:i,ranges:o}}function b7({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let o=Math.floor(e*n);for(let r=0;;r++){let{from:e,to:n}=t[r],i=n-e;if(o<=i)return e+o;o-=i}}function y7(e,t){let n=0;for(let{from:o,to:r}of e.ranges){if(t<=r){n+=t-o;break}n+=r-o}return n/e.total}const O7={toDOM:e=>e,fromDOM:e=>e,scale:1};class w7{constructor(e,t,n){let o=0,r=0,i=0;this.viewports=n.map((({from:n,to:r})=>{let i=t.lineAt(n,t7.ByPos,e,0,0).top,l=t.lineAt(r,t7.ByPos,e,0,0).bottom;return o+=l-i,{from:n,to:r,top:i,bottom:l,domTop:0,domBottom:0}})),this.scale=(7e6-o)/(t.height-o);for(let l of this.viewports)l.domTop=i+(l.top-r)*this.scale,i=l.domBottom=l.domTop+(l.bottom-l.top),r=l.bottom}toDOM(e){for(let t=0,n=0,o=0;;t++){let r=t<this.viewports.length?this.viewports[t]:null;if(!r||e<r.top)return o+(e-n)*this.scale;if(e<=r.bottom)return r.domTop+(e-r.top);n=r.bottom,o=r.domBottom}}fromDOM(e){for(let t=0,n=0,o=0;;t++){let r=t<this.viewports.length?this.viewports[t]:null;if(!r||e<r.domTop)return n+(e-o)/this.scale;if(e<=r.domBottom)return r.top+(e-r.domTop);n=r.bottom,o=r.domBottom}}}function x7(e,t){if(1==t.scale)return e;let n=t.toDOM(e.top),o=t.toDOM(e.bottom);return new e7(e.from,e.length,n,o-n,Array.isArray(e._content)?e._content.map((e=>x7(e,t))):e._content)}const $7=N3.define({combine:e=>e.join(" ")}),S7=N3.define({combine:e=>e.indexOf(!0)>-1}),C7=Y4.newName(),k7=Y4.newName(),P7=Y4.newName(),M7={"&light":"."+k7,"&dark":"."+P7};function T7(e,t,n){return new Y4(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]})):e+" "+t})}const I7=T7("."+C7,{"&":{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-iso":{unicodeBidi:"isolate"},".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,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',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"}},M7),E7="￿";class A7{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(C4.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=E7}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let o=e;;){this.findPointBefore(n,o);let e=this.text.length;this.readNode(o);let r=o.nextSibling;if(r==t)break;let i=S5.get(o),l=S5.get(r);(i&&l?i.breakAfter:(i?i.breakAfter:D7(o))||D7(r)&&("BR"!=o.nodeName||o.cmIgnore)&&this.text.length>e)&&this.lineBreak(),o=r}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,o=this.lineSeparator?null:/\r\n?|\n/g;;){let r,i=-1,l=1;if(this.lineSeparator?(i=t.indexOf(this.lineSeparator,n),l=this.lineSeparator.length):(r=o.exec(t))&&(i=r.index,l=r[0].length),this.append(t.slice(n,i<0?t.length:i)),i<0)break;if(this.lineBreak(),l>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=l-1);n=i+l}}readNode(e){if(e.cmIgnore)return;let t=S5.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(R7(e,n.node,n.offset)?t:0))}}function R7(e,t,n){for(;;){if(!t||n<u5(t))return!1;if(t==e)return!0;n=s5(t)+1,t=t.parentNode}}function D7(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class j7{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class B7{constructor(e,t,n,o){this.typeOver=o,this.bounds=null,this.text="";let{impreciseHead:r,impreciseAnchor:i}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let t=r||i?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:o,focusNode:r,focusOffset:i}=e.observer.selectionRange;return n&&(t.push(new j7(n,o)),r==n&&i==o||t.push(new j7(r,i))),t}(e),n=new A7(t,e.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,o=2==e.length?e[1].pos:n;return n>-1&&o>-1?D3.single(n+t,o+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=r&&r.node==t.focusNode&&r.offset==t.focusOffset||!r5(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),o=i&&i.node==t.anchorNode&&i.offset==t.anchorOffset||!r5(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),l=e.viewport;if(L5.ios&&e.state.selection.main.empty&&n!=o&&(l.from>0||l.to<e.state.doc.length)){let t=l.from-Math.min(n,o),r=l.to-Math.max(n,o);0!=t&&1!=t||0!=r&&-1!=r||(n=0,o=e.state.doc.length)}this.newSel=D3.single(o,n)}}}function N7(e,t){let n,{newSel:o}=t,r=e.state.selection.main,i=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:o,to:l}=t.bounds,a=r.from,s=null;(8===i||L5.android&&t.text.length<l-o)&&(a=r.to,s="end");let c=function(e,t,n,o){let r=Math.min(e.length,t.length),i=0;for(;i<r&&e.charCodeAt(i)==t.charCodeAt(i);)i++;if(i==r&&e.length==t.length)return null;let l=e.length,a=t.length;for(;l>0&&a>0&&e.charCodeAt(l-1)==t.charCodeAt(a-1);)l--,a--;return"end"==o&&(n-=l+Math.max(0,i-Math.min(l,a))-i),l<i&&e.length<t.length?(i-=n<=i&&n>=l?i-n:0,a=i+(a-l),l=i):a<i&&(i-=n<=i&&n>=a?i-n:0,l=i+(l-a),a=i),{from:i,toA:l,toB:a}}(e.state.doc.sliceString(o,l,E7),t.text,a-o,s);c&&(L5.chrome&&13==i&&c.toB==c.from+2&&t.text.slice(c.from,c.toB)==E7+E7&&c.toB--,n={from:o+c.from,to:o+c.toA,insert:n3.of(t.text.slice(c.from,c.toB).split(E7))})}else o&&(!e.hasFocus&&e.state.facet(F8)||o.main.eq(r))&&(o=null);if(!n&&!o)return!1;if(!n&&t.typeOver&&!r.empty&&o&&o.main.empty?n={from:r.from,to:r.to,insert:e.state.doc.slice(r.from,r.to)}:n&&n.from>=r.from&&n.to<=r.to&&(n.from!=r.from||n.to!=r.to)&&r.to-r.from-(n.to-n.from)<=4?n={from:r.from,to:r.to,insert:e.state.doc.slice(r.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,r.to))}:(L5.mac||L5.android)&&n&&n.from==n.to&&n.from==r.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(o&&2==n.insert.length&&(o=D3.single(o.main.anchor-1,o.main.head-1)),n={from:r.from,to:r.to,insert:n3.of([" "])}):L5.chrome&&n&&n.from==n.to&&n.from==r.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(o&&(o=D3.single(o.main.anchor-1,o.main.head-1)),n={from:r.from,to:r.to,insert:n3.of([" "])}),n){if(L5.ios&&e.inputState.flushIOSKey())return!0;if(L5.android&&(n.from==r.from&&n.to==r.to&&1==n.insert.length&&2==n.insert.lines&&y5(e.contentDOM,"Enter",13)||(n.from==r.from-1&&n.to==r.to&&0==n.insert.length||8==i&&n.insert.length<n.to-n.from&&n.to>r.head)&&y5(e.contentDOM,"Backspace",8)||n.from==r.from&&n.to==r.to+1&&0==n.insert.length&&y5(e.contentDOM,"Delete",46)))return!0;let t,l=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let a=()=>t||(t=function(e,t,n){let o,r=e.state,i=r.selection.main;if(t.from>=i.from&&t.to<=i.to&&t.to-t.from>=(i.to-i.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=i.from<t.from?r.sliceDoc(i.from,t.from):"",l=i.to>t.to?r.sliceDoc(t.to,i.to):"";o=r.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let l=r.changes(t),a=n&&n.main.to<=l.newLength?n.main:void 0;if(r.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=i.to&&t.to>=i.to-10){let s,c=e.state.sliceDoc(t.from,t.to),u=n&&s6(e,n.main.head);if(u){let e=t.insert.length-(t.to-t.from);s={from:u.from,to:u.to-e}}else s=e.state.doc.lineAt(i.head);let d=i.to-t.to,p=i.to-i.from;o=r.changeByRange((n=>{if(n.from==i.from&&n.to==i.to)return{changes:l,range:a||n.map(l)};let o=n.to-d,u=o-c.length;if(n.to-n.from!=p||e.state.sliceDoc(u,o)!=c||n.to>=s.from&&n.from<=s.to)return{range:n};let h=r.changes({from:u,to:o,insert:t.insert}),f=n.to-i.to;return{changes:h,range:a?D3.range(Math.max(0,a.anchor+f),Math.max(0,a.head+f)):n.map(h)}}))}else o={changes:l,selection:a&&r.selection.replaceRange(a)}}let l="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,l+=".compose",e.inputState.compositionFirstChange&&(l+=".start",e.inputState.compositionFirstChange=!1)),r.update(o,{userEvent:l,scrollIntoView:!0})}(e,n,o));return e.state.facet(B8).some((t=>t(e,n.from,n.to,l,a)))||e.dispatch(a()),!0}if(o&&!o.main.eq(r)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:o,scrollIntoView:t,userEvent:n}),!0}return!1}const z7={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},_7=L5.ie&&L5.ie_version<=11;class L7{constructor(e){this.view=e,this.active=!1,this.selectionRange=new f5,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=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(L5.ie&&L5.ie_version<=11||L5.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),_7&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.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 e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()})),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.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((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}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(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,n)=>t!=e[n])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,o=this.selectionRange;if(n.state.facet(F8)?n.root.activeElement!=this.dom:!i5(n.dom,o))return;let r=o.anchorNode&&n.docView.nearest(o.anchorNode);r&&r.ignoreEvent(e)?t||(this.selectionChanged=!1):(L5.ie&&L5.ie_version<=11||L5.android&&L5.chrome)&&!n.state.selection.main.empty&&o.focusNode&&a5(o.focusNode,o.focusOffset,o.anchorNode,o.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=L5.safari&&11==e.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e){let t=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let o=t.startContainer,r=t.startOffset,i=t.endContainer,l=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor);return a5(a.node,a.offset,i,l)&&([o,r,i,l]=[i,l,o,r]),{anchorNode:o,anchorOffset:r,focusNode:i,focusOffset:l}}(this.view)||o5(e.root);if(!t||this.selectionRange.eq(t))return!1;let n=i5(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let n=t.focusNode,o=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=o)return!1;for(o=Math.min(o,u5(n));;)if(o){if(1!=n.nodeType)return!1;let e=n.childNodes[o-1];"false"==e.contentEditable?o--:(n=e,o=u5(n))}else{if(n==e)return!0;o=s5(n),n=n.parentNode}}(this.dom,t)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(t),n&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(1==n.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else{if(11!=n.nodeType)break;n=n.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,z7),_7&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),_7&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&y5(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null===(n=this.delayedAndroidKey)||void 0===n?void 0:n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame((()=>{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,o=!1;for(let r of e){let e=this.readMutation(r);e&&(e.typeOver&&(o=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:o}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),o=this.selectionChanged&&i5(this.dom,this.selectionRange);if(e<0&&!o)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let r=new B7(this.view,e,t,n);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,o=N7(this.view,t);return this.view.state==n&&this.view.update([]),o}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),"childList"==e.type){let n=Q7(t,e.previousSibling||e.target.previousSibling,-1),o=Q7(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:o?t.posBefore(o):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect();for(let o of this.scrollTargets)o.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 Q7(e,t,n){for(;t;){let o=S5.get(t);if(o&&o.parent==e)return o;let r=t.parentNode;t=r!=e.dom?r:n>0?t.nextSibling:t.previousSibling}return null}class H7{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(e={}){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),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(e=>e.forEach((e=>t(e,this))))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new g7(e.state||C4.create(e)),e.scrollTo&&e.scrollTo.is(Q8)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(V8).map((e=>new X8(e)));for(let n of this.plugins)n.update(this);this.observer=new L7(this),this.inputState=new S6(this),this.inputState.ensureHandlers(this.plugins),this.docView=new l6(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let t=1==e.length&&e[0]instanceof f4?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,n=!1,o=!1,r=this.state;for(let d of e){if(d.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=d.state}if(this.destroyed)return void(this.viewState.state=r);let i=this.hasFocus,l=0,a=null;e.some((e=>e.annotation(X6)))?(this.inputState.notifiedFocused=i,l=1):i!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=i,a=Y6(r,i),a||(l=1));let s=this.observer.delayedAndroidKey,c=null;if(s?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(c=null)):this.observer.clear(),r.facet(C4.phrases)!=this.state.facet(C4.phrases))return this.setState(r);t=i6.create(this,r,e),t.flags|=l;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(u&&(u=u.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;u=new L8(e.empty?e:D3.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(Q8)&&(u=e.value.clip(this.state))}this.viewState.update(t,u),this.bidiCache=V7.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(o6)!=this.styleModules&&this.mountStyles(),o=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet($7)!=t.state.facet($7)&&(this.viewState.mustMeasureContent=!0),(n||o||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!t.empty)for(let d of this.state.facet(j8))try{d(t)}catch($pe){H8(this.state,$pe,"update listener")}(a||c)&&Promise.resolve().then((()=>{a&&this.state==a.startState&&this.dispatch(a),c&&!N7(this,c)&&s.force&&y5(this.contentDOM,s.key,s.keyCode)}))}setState(e){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=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new g7(e),this.plugins=e.facet(V8).map((e=>new X8(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy(),this.docView=new l6(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(V8),n=e.state.facet(V8);if(t!=n){let o=[];for(let r of n){let n=t.indexOf(r);if(n<0)o.push(new X8(r));else{let t=this.plugins[n];t.mustUpdate=e,o.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=o,this.pluginMap.clear()}else for(let o of this.plugins)o.mustUpdate=e;for(let o=0;o<this.plugins.length;o++)this.plugins[o].update(this);t!=n&&this.inputState.ensureHandlers(this.plugins)}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,o=n.scrollTop*this.scaleY,{scrollAnchorPos:r,scrollAnchorHeight:i}=this.viewState;Math.abs(o-this.viewState.scrollTop)>1&&(i=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(i<0)if(w5(n))r=-1,i=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(o);r=e.from,i=e.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5)break;let a=[];4&l||([this.measureRequests,a]=[a,this.measureRequests]);let s=a.map((e=>{try{return e.read(this)}catch($pe){return H8(this.state,$pe),W7}})),c=i6.create(this,this.state,[]),u=!1;c.flags|=l,t?t.flags|=l:t=c,this.updateState=2,c.empty||(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),u=this.docView.update(c));for(let e=0;e<a.length;e++)if(s[e]!=W7)try{let t=a[e];t.write&&t.write(s[e],this)}catch($pe){H8(this.state,$pe)}if(u&&this.docView.updateSelection(!0),!c.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,i=-1;continue}{let e=(r<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(r).top)-i;if(e>1||e<-1){o+=e,n.scrollTop=o/this.scaleY,i=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(j8))l(t)}get themeClasses(){return C7+" "+(this.state.facet(S7)?P7:k7)+" "+this.state.facet($7)}updateAttrs(){let e=Z7(this,Y8,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(F8)?"true":"false",class:"cm-content",style:`${L5.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),Z7(this,K8,t);let n=this.observer.ignore((()=>{let n=U5(this.contentDOM,this.contentAttrs,t),o=U5(this.dom,this.editorAttrs,e);return n||o}));return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)e.is(H7.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(o6);let e=this.state.facet(H7.cspNonce);Y4.mount(this.root,this.styleModules.concat(I7).reverse(),e?{nonce:e}: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(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key)return void(this.measureRequests[t]=e);this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find((t=>t.spec==e))||null),t&&t.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(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return $6(this,e,w6(this,e,t,n))}moveByGroup(e,t){return $6(this,e,w6(this,e,t,(t=>function(e,t,n){let o=e.state.charCategorizer(t),r=o(n);return e=>{let t=o(e);return r==w4.Space&&(r=t),r==t}}(this,e.head,t))))}visualLineSide(e,t){let n=this.bidiSpans(e),o=this.textDirectionAt(e.from),r=n[t?n.length-1:0];return D3.cursor(r.side(t,o)+e.from,r.forward(!t,o)?1:-1)}moveToLineBoundary(e,t,n=!0){return function(e,t,n,o){let r=O6(e,t.head),i=o&&r.type==n8.Text&&(e.lineWrapping||r.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>r.from?t.head-1:t.head):null;if(i){let t=e.dom.getBoundingClientRect(),o=e.textDirectionAt(r.from),l=e.posAtCoords({x:n==(o==p8.LTR)?t.right-1:t.left+1,y:(i.top+i.bottom)/2});if(null!=l)return D3.cursor(l,n?-1:1)}return D3.cursor(n?r.to:r.from,n?-1:1)}(this,e,t,n)}moveVertically(e,t,n){return $6(this,e,function(e,t,n,o){let r=t.head,i=n?1:-1;if(r==(n?e.state.doc.length:0))return D3.cursor(r,t.assoc);let l,a=t.goalColumn,s=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(r,t.assoc||-1),u=e.documentTop;if(c)null==a&&(a=c.left-s.left),l=i<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(r);null==a&&(a=Math.min(s.right-s.left,e.defaultCharacterWidth*(r-t.from))),l=(i<0?t.top:t.bottom)+u}let d=s.left+a,p=null!=o?o:e.viewState.heightOracle.textHeight>>1;for(let h=0;;h+=10){let t=l+(p+h)*i,n=b6(e,{x:d,y:t},!1,i);if(t<s.top||t>s.bottom||(i<0?n<r:n>r)){let o=e.docView.coordsForChar(n),r=!o||t<o.top?-1:1;return D3.cursor(n,r,void 0,a)}}}(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),b6(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let o=this.state.doc.lineAt(e),r=this.bidiSpans(o);return d5(n,r[x8.find(r,e-o.from,-1,t)].dir==p8.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(z8)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>F7)return P8(e.length);let t,n=this.textDirectionAt(e.from);for(let r of this.bidiCache)if(r.from==e.from&&r.dir==n&&(r.fresh||$8(r.isolates,t=e6(this,e))))return r.order;t||(t=e6(this,e));let o=function(e,t,n){if(!e)return[new x8(0,0,t==f8?1:0)];if(t==h8&&!n.length&&!w8.test(e))return P8(e.length);if(n.length)for(;e.length>S8.length;)S8[S8.length]=256;let o=[],r=t==h8?0:1;return k8(e,r,r,n,0,e.length,o),o}(e.text,n,t);return this.bidiCache.push(new V7(e.from,e.to,n,t,!0,o)),o}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||L5.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{v5(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.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(e,t={}){return Q8.of(new L8("number"==typeof e?D3.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return Q8.of(new L8(D3.cursor(n.from),"start","start",n.top-e,t,!0))}static domEventHandlers(e){return Z8.define((()=>({})),{eventHandlers:e})}static domEventObservers(e){return Z8.define((()=>({})),{eventObservers:e})}static theme(e,t){let n=Y4.newName(),o=[$7.of(n),o6.of(T7(`.${n}`,e))];return t&&t.dark&&o.push(S7.of(!0)),o}static baseTheme(e){return G3.lowest(o6.of(T7("."+C7,e,M7)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),o=n&&S5.get(n)||S5.get(e);return(null===(t=null==o?void 0:o.rootView)||void 0===t?void 0:t.view)||null}}H7.styleModule=o6,H7.inputHandler=B8,H7.focusChangeEffect=N8,H7.perLineTextDirection=z8,H7.exceptionSink=D8,H7.updateListener=j8,H7.editable=F8,H7.mouseSelectionStyle=R8,H7.dragMovesSelection=A8,H7.clickAddsSelectionRange=E8,H7.decorations=G8,H7.outerDecorations=U8,H7.atomicRanges=q8,H7.bidiIsolatedRanges=J8,H7.scrollMargins=t6,H7.darkTheme=S7,H7.cspNonce=N3.define({combine:e=>e.length?e[0]:""}),H7.contentAttributes=K8,H7.editorAttributes=Y8,H7.lineWrapping=H7.contentAttributes.of({class:"cm-lineWrapping"}),H7.announce=h4.define();const F7=4096,W7={};class V7{constructor(e,t,n,o,r,i){this.from=e,this.to=t,this.dir=n,this.isolates=o,this.fresh=r,this.order=i}static update(e,t){if(t.empty&&!e.some((e=>e.fresh)))return e;let n=[],o=e.length?e[e.length-1].dir:p8.LTR;for(let r=Math.max(0,e.length-10);r<e.length;r++){let i=e[r];i.dir!=o||t.touchesRange(i.from,i.to)||n.push(new V7(t.mapPos(i.from,1),t.mapPos(i.to,-1),i.dir,i.isolates,!1,i.order))}return n}}function Z7(e,t,n){for(let o=e.state.facet(t),r=o.length-1;r>=0;r--){let t=o[r],i="function"==typeof t?t(e):t;i&&Y5(i,n)}return n}const X7=L5.mac?"mac":L5.windows?"win":L5.linux?"linux":"key";function Y7(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const K7=G3.default(H7.domEventHandlers({keydown:(e,t)=>e9(q7(t.state),e,t,"editor")})),G7=N3.define({enables:K7}),U7=new WeakMap;function q7(e){let t=e.facet(G7),n=U7.get(t);return n||U7.set(t,n=function(e,t=X7){let n=Object.create(null),o=Object.create(null),r=(e,t)=>{let n=o[e];if(null==n)o[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},i=(e,o,i,l,a)=>{var s,c;let u=n[e]||(n[e]=Object.create(null)),d=o.split(/ (?!$)/).map((e=>function(e,t){const n=e.split(/-(?!$)/);let o,r,i,l,a=n[n.length-1];"Space"==a&&(a=" ");for(let s=0;s<n.length-1;++s){const e=n[s];if(/^(cmd|meta|m)$/i.test(e))l=!0;else if(/^a(lt)?$/i.test(e))o=!0;else if(/^(c|ctrl|control)$/i.test(e))r=!0;else if(/^s(hift)?$/i.test(e))i=!0;else{if(!/^mod$/i.test(e))throw new Error("Unrecognized modifier name: "+e);"mac"==t?l=!0:r=!0}}return o&&(a="Alt-"+a),r&&(a="Ctrl-"+a),l&&(a="Meta-"+a),i&&(a="Shift-"+a),a}(e,t)));for(let t=1;t<d.length;t++){let n=d.slice(0,t).join(" ");r(n,!0),u[n]||(u[n]={preventDefault:!0,stopPropagation:!1,run:[t=>{let o=J7={view:t,prefix:n,scope:e};return setTimeout((()=>{J7==o&&(J7=null)}),4e3),!0}]})}let p=d.join(" ");r(p,!1);let h=u[p]||(u[p]={preventDefault:!1,stopPropagation:!1,run:(null===(c=null===(s=u._any)||void 0===s?void 0:s.run)||void 0===c?void 0:c.slice())||[]});i&&h.run.push(i),l&&(h.preventDefault=!0),a&&(h.stopPropagation=!0)};for(let l of e){let e=l.scope?l.scope.split(" "):["editor"];if(l.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let t in e)e[t].run.push(l.any)}let o=l[t]||l.key;if(o)for(let t of e)i(t,o,l.run,l.preventDefault,l.stopPropagation),l.shift&&i(t,"Shift-"+o,l.shift,l.preventDefault,l.stopPropagation)}return n}(t.reduce(((e,t)=>e.concat(t)),[]))),n}let J7=null;function e9(e,t,n,o){let r=function(e){var t=!(J4&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||e5&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?q4:U4)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),i=x3(O3(r,0))==r.length&&" "!=r,l="",a=!1,s=!1,c=!1;J7&&J7.view==n&&J7.scope==o&&(l=J7.prefix+" ",M6.indexOf(t.keyCode)<0&&(s=!0,J7=null));let u,d,p=new Set,h=e=>{if(e){for(let o of e.run)if(!p.has(o)&&(p.add(o),o(n,t)))return e.stopPropagation&&(c=!0),!0;e.preventDefault&&(e.stopPropagation&&(c=!0),s=!0)}return!1},f=e[o];return f&&(h(f[l+Y7(r,t,!i)])?a=!0:i&&(t.altKey||t.metaKey||t.ctrlKey)&&!(L5.windows&&t.ctrlKey&&t.altKey)&&(u=U4[t.keyCode])&&u!=r?(h(f[l+Y7(u,t,!0)])||t.shiftKey&&(d=q4[t.keyCode])!=r&&d!=u&&h(f[l+Y7(d,t,!1)]))&&(a=!0):i&&t.shiftKey&&h(f[l+Y7(r,t,!0)])&&(a=!0),!a&&h(f._any)&&(a=!0)),s&&(a=!0),a&&c&&t.stopPropagation(),a}class t9{constructor(e,t,n,o,r){this.className=e,this.left=t,this.top=n,this.width=o,this.height=r}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let o=e.coordsAtPos(n.head,n.assoc||1);if(!o)return[];let r=n9(e);return[new t9(t,o.left-r.left,o.top-r.top,null,o.bottom-o.top)]}return function(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let o=Math.max(n.from,e.viewport.from),r=Math.min(n.to,e.viewport.to),i=e.textDirection==p8.LTR,l=e.contentDOM,a=l.getBoundingClientRect(),s=n9(e),c=l.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),d=a.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),p=a.right-(u?parseInt(u.paddingRight):0),h=O6(e,o),f=O6(e,r),g=h.type==n8.Text?h:null,m=f.type==n8.Text?f:null;if(g&&(e.lineWrapping||h.widgetLineBreaks)&&(g=o9(e,o,g)),m&&(e.lineWrapping||f.widgetLineBreaks)&&(m=o9(e,r,m)),g&&m&&g.from==m.from)return b(y(n.from,n.to,g));{let t=g?y(n.from,null,g):O(h,!1),o=m?y(null,n.to,m):O(f,!0),r=[];return(g||h).to<(m||f).from-(g&&m?1:0)||h.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2<o.top?r.push(v(d,t.bottom,p,o.top)):t.bottom<o.top&&e.elementAtHeight((t.bottom+o.top)/2).type==n8.Text&&(t.bottom=o.top=(t.bottom+o.top)/2),b(t).concat(r).concat(b(o))}function v(e,n,o,r){return new t9(t,e-s.left,n-s.top-.01,o-e,r-n+.01)}function b({top:e,bottom:t,horizontal:n}){let o=[];for(let r=0;r<n.length;r+=2)o.push(v(n[r],e,n[r+1],t));return o}function y(t,n,o){let r=1e9,l=-1e9,a=[];function s(t,n,s,c,u){let h=e.coordsAtPos(t,t==o.to?-2:2),f=e.coordsAtPos(s,s==o.from?2:-2);h&&f&&(r=Math.min(h.top,f.top,r),l=Math.max(h.bottom,f.bottom,l),u==p8.LTR?a.push(i&&n?d:h.left,i&&c?p:f.right):a.push(!i&&c?d:f.left,!i&&n?p:h.right))}let c=null!=t?t:o.from,u=null!=n?n:o.to;for(let i of e.visibleRanges)if(i.to>c&&i.from<u)for(let o=Math.max(i.from,c),r=Math.min(i.to,u);;){let i=e.state.doc.lineAt(o);for(let l of e.bidiSpans(i)){let e=l.from+i.from,a=l.to+i.from;if(e>=r)break;a>o&&s(Math.max(e,o),null==t&&e<=c,Math.min(a,r),null==n&&a>=u,l.dir)}if(o=i.to+1,o>=r)break}return 0==a.length&&s(c,null==t,u,null==n,e.textDirection),{top:r,bottom:l,horizontal:a}}function O(e,t){let n=a.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(e,t,n)}}function n9(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==p8.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function o9(e,t,n){let o=D3.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(o,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(o,!0,!0).from),type:n8.Text}}class r9{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(i9)!=e.state.facet(i9)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let t=0,n=e.facet(i9);for(;t<n.length&&n[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;e==this.scaleX&&t==this.scaleY||(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some(((e,t)=>{return n=e,o=this.drawn[t],!(n.constructor==o.constructor&&n.eq(o));var n,o}))){let t=this.dom.firstChild,n=0;for(let o of e)o.update&&t&&o.constructor&&this.drawn[n].constructor&&o.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(o.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const i9=N3.define();function l9(e){return[Z8.define((t=>new r9(t,e))),i9.of(e)]}const a9=!L5.ios,s9=N3.define({combine:e=>k4(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function c9(e={}){return[s9.of(e),d9,h9,g9,_8.of(!0)]}function u9(e){return e.startState.facet(s9)!=e.state.facet(s9)}const d9=l9({above:!0,markers(e){let{state:t}=e,n=t.facet(s9),o=[];for(let r of t.selection.ranges){let i=r==t.selection.main;if(r.empty?!i||a9:n.drawRangeCursor){let t=i?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=r.empty?r:D3.cursor(r.head,r.head>r.anchor?-1:1);for(let r of t9.forRange(e,t,n))o.push(r)}}return o},update(e,t){e.transactions.some((e=>e.selection))&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let n=u9(e);return n&&p9(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){p9(t.state,e)},class:"cm-cursorLayer"});function p9(e,t){t.style.animationDuration=e.facet(s9).cursorBlinkRate+"ms"}const h9=l9({above:!1,markers:e=>e.state.selection.ranges.map((t=>t.empty?[]:t9.forRange(e,"cm-selectionBackground",t))).reduce(((e,t)=>e.concat(t))),update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||u9(e),class:"cm-selectionLayer"}),f9={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};a9&&(f9[".cm-line"].caretColor="transparent !important",f9[".cm-content"]={caretColor:"transparent !important"});const g9=G3.highest(H7.theme(f9)),m9=h4.define({map:(e,t)=>null==e?null:t.mapPos(e)}),v9=W3.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce(((e,t)=>t.is(m9)?t.value:e),e))}),b9=Z8.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(v9);null==n?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(v9)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(v9),n=null!=t&&e.coordsAtPos(t);if(!n)return null;let o=e.scrollDOM.getBoundingClientRect();return{left:n.left-o.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-o.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(v9)!=e&&this.view.dispatch({effects:m9.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function y9(e,t,n,o,r){t.lastIndex=0;for(let i,l=e.iterRange(n,o),a=n;!l.next().done;a+=l.value.length)if(!l.lineBreak)for(;i=t.exec(l.value);)r(a+i.index,i)}class O9{constructor(e){const{regexp:t,decoration:n,decorate:o,boundary:r,maxLength:i=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,o)this.addMatch=(e,t,n,r)=>o(r,n,n+e[0].length,e,t);else if("function"==typeof n)this.addMatch=(e,t,o,r)=>{let i=n(e,t,o);i&&r(o,o+e[0].length,i)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,o,r)=>r(o,o+e[0].length,n)}this.boundary=r,this.maxLength=i}createDeco(e){let t=new A4,n=t.add.bind(t);for(let{from:o,to:r}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let o=[];for(let{from:r,to:i}of n)r=Math.max(e.state.doc.lineAt(r).from,r-t),i=Math.min(e.state.doc.lineAt(i).to,i+t),o.length&&o[o.length-1].to>=r?o[o.length-1].to=i:o.push({from:r,to:i});return o}(e,this.maxLength))y9(e.state.doc,this.regexp,o,r,((t,o)=>this.addMatch(o,e,t,n)));return t.finish()}updateDeco(e,t){let n=1e9,o=-1;return e.docChanged&&e.changes.iterChanges(((t,r,i,l)=>{l>e.view.viewport.from&&i<e.view.viewport.to&&(n=Math.min(i,n),o=Math.max(l,o))})),e.viewportChanged||o-n>1e3?this.createDeco(e.view):o>-1?this.updateRange(e.view,t.map(e.changes),n,o):t}updateRange(e,t,n,o){for(let r of e.visibleRanges){let i=Math.max(r.from,n),l=Math.min(r.to,o);if(l>i){let n=e.state.doc.lineAt(i),o=n.to<l?e.state.doc.lineAt(l):n,a=Math.max(r.from,n.from),s=Math.min(r.to,o.to);if(this.boundary){for(;i>n.from;i--)if(this.boundary.test(n.text[i-1-n.from])){a=i;break}for(;l<o.to;l++)if(this.boundary.test(o.text[l-o.from])){s=l;break}}let c,u=[],d=(e,t,n)=>u.push(n.range(e,t));if(n==o)for(this.regexp.lastIndex=a-n.from;(c=this.regexp.exec(n.text))&&c.index<s-n.from;)this.addMatch(c,e,c.index+n.from,d);else y9(e.state.doc,this.regexp,a,s,((t,n)=>this.addMatch(n,e,t,d)));t=t.update({filterFrom:a,filterTo:s,filter:(e,t)=>e<a||t>s,add:u})}}return t}}const w9=null!=/x/.unicode?"gu":"g",x9=new RegExp("[\0-\b\n--Ÿ­؜\u2028\u2029\ufeff-]",w9),$9={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 S9=null;const C9=N3.define({combine(e){let t=k4(e,{render:null,specialChars:x9,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==S9&&"undefined"!=typeof document&&document.body){let t=document.body.style;S9=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return S9||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,w9)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,w9)),t}});function k9(e={}){return[C9.of(e),P9||(P9=Z8.fromClass(class{constructor(e){this.view=e,this.decorations=o8.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(C9)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new O9({regexp:e.specialChars,decoration:(t,n,o)=>{let{doc:r}=n.state,i=O3(t[0],0);if(9==i){let e=r.lineAt(o),t=n.state.tabSize,i=F4(e.text,t,o-e.from);return o8.replace({widget:new T9((t-i%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=o8.replace({widget:new M9(e,i)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(C9);e.startState.facet(C9)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}let P9=null;class M9 extends t8{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=(n=this.code)>=32?"•":10==n?"␤":String.fromCharCode(9216+n);var n;let o=e.state.phrase("Control character")+" "+($9[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,o,t);if(r)return r;let i=document.createElement("span");return i.textContent=t,i.title=o,i.setAttribute("aria-label",o),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class T9 extends t8{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const I9=o8.line({class:"cm-activeLine"}),E9=Z8.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let o of e.state.selection.ranges){let r=e.lineBlockAt(o.head);r.from>t&&(n.push(I9.range(r.from)),t=r.from)}return o8.set(n)}},{decorations:e=>e.decorations});class A9 extends t8{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let t=e.firstChild?l5(e.firstChild):[];if(!t.length)return null;let n=window.getComputedStyle(e.parentNode),o=d5(t[0],"rtl"!=n.direction),r=parseInt(n.lineHeight);return o.bottom-o.top>1.5*r?{left:o.left,right:o.right,top:o.top,bottom:o.top+r}:o}ignoreEvent(){return!1}}const R9=2e3;function D9(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),o=e.state.doc.lineAt(n),r=n-o.from,i=r>R9?-1:r==o.length?function(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):F4(o.text,e.state.tabSize,n-o.from);return{line:o.number,col:i,off:r}}function j9(e,t){let n=D9(e,t),o=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),r=e.state.doc.lineAt(t);n={line:r.number,col:n.col,off:Math.min(n.off,r.length)},o=o.map(e.changes)}},get(t,r,i){let l=D9(e,t);if(!l)return o;let a=function(e,t,n){let o=Math.min(t.line,n.line),r=Math.max(t.line,n.line),i=[];if(t.off>R9||n.off>R9||t.col<0||n.col<0){let l=Math.min(t.off,n.off),a=Math.max(t.off,n.off);for(let t=o;t<=r;t++){let n=e.doc.line(t);n.length<=a&&i.push(D3.range(n.from+l,n.to+a))}}else{let l=Math.min(t.col,n.col),a=Math.max(t.col,n.col);for(let t=o;t<=r;t++){let n=e.doc.line(t),o=W4(n.text,l,e.tabSize,!0);if(o<0)i.push(D3.cursor(n.to));else{let t=W4(n.text,a,e.tabSize);i.push(D3.range(n.from+o,n.from+t))}}}return i}(e.state,n,l);return a.length?i?D3.create(a.concat(o.ranges)):D3.create(a):o}}:null}function B9(e){let t=(null==e?void 0:e.eventFilter)||(e=>e.altKey&&0==e.button);return H7.mouseSelectionStyle.of(((e,n)=>t(n)?j9(e,n):null))}const N9={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},z9={style:"cursor: crosshair"};function _9(e={}){let[t,n]=N9[e.key||"Alt"],o=Z8.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){e.keyCode!=t&&n(e)||this.set(!1)},mousemove(e){this.set(n(e))}}});return[o,H7.contentAttributes.of((e=>{var t;return(null===(t=e.plugin(o))||void 0===t?void 0:t.isDown)?z9:null}))]}const L9="-10000px";class Q9{constructor(e,t,n){this.facet=t,this.createTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter((e=>e)),this.tooltipViews=this.tooltips.map(n)}update(e,t){var n;let o=e.state.facet(this.facet),r=o.filter((e=>e));if(o===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let i=[],l=t?[]:null;for(let a=0;a<r.length;a++){let n=r[a],o=-1;if(n){for(let e=0;e<this.tooltips.length;e++){let t=this.tooltips[e];t&&t.create==n.create&&(o=e)}if(o<0)i[a]=this.createTooltipView(n),l&&(l[a]=!!n.above);else{let n=i[a]=this.tooltipViews[o];l&&(l[a]=t[o]),n.update&&n.update(e)}}}for(let a of this.tooltipViews)i.indexOf(a)<0&&(a.dom.remove(),null===(n=a.destroy)||void 0===n||n.call(a));return t&&(l.forEach(((e,n)=>t[n]=e)),t.length=l.length),this.input=o,this.tooltips=r,this.tooltipViews=i,!0}}function H9(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const F9=N3.define({combine:e=>{var t,n,o;return{position:L5.ios?"absolute":(null===(t=e.find((e=>e.position)))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find((e=>e.parent)))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(o=e.find((e=>e.tooltipSpace)))||void 0===o?void 0:o.tooltipSpace)||H9}}}),W9=new WeakMap,V9=Z8.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(F9);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new Q9(e,Y9,(e=>this.createTooltip(e))),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),e.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 e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,o=e.state.facet(F9);if(o.position!=this.position&&!this.madeAbsolute){this.position=o.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=!0}if(o.parent!=this.parent){this.parent&&this.container.remove(),this.parent=o.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",t.dom.appendChild(e)}return t.dom.style.position=this.position,t.dom.style.top=L9,t.dom.style.left="0px",this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),null===(e=n.destroy)||void 0===e||e.call(n);this.parent&&this.container.remove(),null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,o=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(L5.gecko)o=e.offsetParent!=this.container.ownerDocument.body;else if(e.style.top==L9&&"0px"==e.style.left){let t=e.getBoundingClientRect();o=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}}if(o||"absolute"==this.position)if(this.parent){let e=this.parent.getBoundingClientRect();e.width&&e.height&&(t=e.width/this.parent.offsetWidth,n=e.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)})),size:this.manager.tooltipViews.map((({dom:e})=>e.getBoundingClientRect())),space:this.view.state.facet(F9).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:o}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}let{editor:n,space:o,scaleX:r,scaleY:i}=e,l=[];for(let a=0;a<this.manager.tooltips.length;a++){let s=this.manager.tooltips[a],c=this.manager.tooltipViews[a],{dom:u}=c,d=e.pos[a],p=e.size[a];if(!d||d.bottom<=Math.max(n.top,o.top)||d.top>=Math.min(n.bottom,o.bottom)||d.right<Math.max(n.left,o.left)-.1||d.left>Math.min(n.right,o.right)+.1){u.style.top=L9;continue}let h=s.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,f=h?7:0,g=p.right-p.left,m=null!==(t=W9.get(c))&&void 0!==t?t:p.bottom-p.top,v=c.offset||X9,b=this.view.textDirection==p8.LTR,y=p.width>o.right-o.left?b?o.left:o.right-p.width:b?Math.min(d.left-(h?14:0)+v.x,o.right-g):Math.max(o.left,d.left-g+(h?14:0)-v.x),O=this.above[a];!s.strictSide&&(O?d.top-(p.bottom-p.top)-v.y<o.top:d.bottom+(p.bottom-p.top)+v.y>o.bottom)&&O==o.bottom-d.bottom>d.top-o.top&&(O=this.above[a]=!O);let w=(O?d.top-o.top:o.bottom-d.bottom)-f;if(w<m&&!1!==c.resize){if(w<this.view.defaultLineHeight){u.style.top=L9;continue}W9.set(c,m),u.style.height=(m=w)/i+"px"}else u.style.height&&(u.style.height="");let x=O?d.top-m-f-v.y:d.bottom+f+v.y,$=y+g;if(!0!==c.overlap)for(let e of l)e.left<$&&e.right>y&&e.top<x+m&&e.bottom>x&&(x=O?e.top-m-2-f:e.bottom+f+2);if("absolute"==this.position?(u.style.top=(x-e.parent.top)/i+"px",u.style.left=(y-e.parent.left)/r+"px"):(u.style.top=x/i+"px",u.style.left=y/r+"px"),h){let e=d.left+(b?v.x:-v.x)-(y+14-7);h.style.left=e/r+"px"}!0!==c.overlap&&l.push({left:y,top:x,right:$,bottom:x+m}),u.classList.toggle("cm-tooltip-above",O),u.classList.toggle("cm-tooltip-below",!O),c.positioned&&c.positioned(e.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 e of this.manager.tooltipViews)e.dom.style.top=L9}},{eventObservers:{scroll(){this.maybeMeasure()}}}),Z9=H7.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"}}}),X9={x:0,y:0},Y9=N3.define({enables:[V9,Z9]}),K9=N3.define();class G9{static create(e){return new G9(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Q9(e,K9,(e=>this.createHostedView(e)))}createHostedView(e){let t=e.create(this.view);return t.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(t.dom),this.mounted&&t.mount&&t.mount(this.view),t}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}passProp(e){let t;for(let n of this.manager.tooltipViews){let o=n[e];if(void 0!==o)if(void 0===t)t=o;else if(t!==o)return}return t}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 U9=Y9.compute([K9],(e=>{let t=e.facet(K9).filter((e=>e));return 0===t.length?null:{pos:Math.min(...t.map((e=>e.pos))),end:Math.max(...t.map((e=>{var t;return null!==(t=e.end)&&void 0!==t?t:e.pos}))),create:G9.create,above:t[0].above,arrow:t.some((e=>e.arrow))}}));class q9{constructor(e,t,n,o,r){this.view=e,this.source=t,this.field=n,this.setHover=o,this.hoverTime=r,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.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 e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,n=e.docView.nearest(t.target);if(!n)return;let o,r=1;if(n instanceof F5)o=n.posAtStart;else{if(o=e.posAtCoords(t),null==o)return;let n=e.coordsAtPos(o);if(!n||t.y<n.top||t.y>n.bottom||t.x<n.left-e.defaultCharacterWidth||t.x>n.right+e.defaultCharacterWidth)return;let i=e.bidiSpans(e.state.doc.lineAt(o)).find((e=>e.from<=o&&e.to>=o)),l=i&&i.dir==p8.RTL?-1:1;r=t.x<n.left?-l:l}let i=this.source(e,o,r);if(null==i?void 0:i.then){let t=this.pending={pos:o};i.then((n=>{this.pending==t&&(this.pending=null,n&&e.dispatch({effects:this.setHover.of(n)}))}),(t=>H8(e.state,t,"hover tooltip")))}else i&&e.dispatch({effects:this.setHover.of(i)})}get tooltip(){let e=this.view.plugin(V9),t=e?e.manager.tooltips.findIndex((e=>e.create==G9.create)):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:n,tooltip:o}=this;if(n&&o&&!function(e,t){let n=e.getBoundingClientRect();return t.clientX>=n.left-4&&t.clientX<=n.right+4&&t.clientY>=n.top-4&&t.clientY<=n.bottom+4}(o.dom,e)||this.pending){let{pos:o}=n||this.pending,r=null!==(t=null==n?void 0:n.end)&&void 0!==t?t:o;(o==r?this.view.posAtCoords(this.lastMove)==o:function(e,t,n,o,r,i){let l=e.scrollDOM.getBoundingClientRect(),a=e.documentTop+e.documentPadding.top+e.contentHeight;if(l.left>o||l.right<o||l.top>r||Math.min(l.bottom,a)<r)return!1;let s=e.posAtCoords({x:o,y:r},!1);return s>=t&&s<=n}(this.view,o,r,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t){let{tooltip:t}=this;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(e){let t=n=>{e.removeEventListener("mouseleave",t),this.active&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function J9(e,t={}){let n=h4.define(),o=W3.define({create:()=>null,update(e,o){if(e&&(t.hideOnChange&&(o.docChanged||o.selection)||t.hideOn&&t.hideOn(o,e)))return null;if(e&&o.docChanged){let t=o.changes.mapPos(e.pos,-1,S3.TrackDel);if(null==t)return null;let n=Object.assign(Object.create(null),e);n.pos=t,null!=e.end&&(n.end=o.changes.mapPos(e.end)),e=n}for(let t of o.effects)t.is(n)&&(e=t.value),t.is(tee)&&(e=null);return e},provide:e=>K9.from(e)});return[o,Z8.define((r=>new q9(r,e,o,n,t.hoverTime||300))),U9]}function eee(e,t){let n=e.plugin(V9);if(!n)return null;let o=n.manager.tooltips.indexOf(t);return o<0?null:n.manager.tooltipViews[o]}const tee=h4.define(),nee=N3.define({combine(e){let t,n;for(let o of e)t=t||o.topContainer,n=n||o.bottomContainer;return{topContainer:t,bottomContainer:n}}});function oee(e,t){let n=e.plugin(ree),o=n?n.specs.indexOf(t):-1;return o>-1?n.panels[o]:null}const ree=Z8.fromClass(class{constructor(e){this.input=e.state.facet(aee),this.specs=this.input.filter((e=>e)),this.panels=this.specs.map((t=>t(e)));let t=e.state.facet(nee);this.top=new iee(e,!0,t.topContainer),this.bottom=new iee(e,!1,t.bottomContainer),this.top.sync(this.panels.filter((e=>e.top))),this.bottom.sync(this.panels.filter((e=>!e.top)));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(nee);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new iee(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new iee(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(aee);if(n!=this.input){let t=n.filter((e=>e)),o=[],r=[],i=[],l=[];for(let n of t){let t,a=this.specs.indexOf(n);a<0?(t=n(e.view),l.push(t)):(t=this.panels[a],t.update&&t.update(e)),o.push(t),(t.top?r:i).push(t)}this.specs=t,this.panels=o,this.top.sync(r),this.bottom.sync(i);for(let e of l)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let o of this.panels)o.update&&o.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>H7.scrollMargins.of((t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}}))});class iee{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,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 e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=lee(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=lee(e)}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 e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function lee(e){let t=e.nextSibling;return e.remove(),t}const aee=N3.define({enables:ree});class see extends P4{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}see.prototype.elementClass="",see.prototype.toDOM=void 0,see.prototype.mapMode=S3.TrackBefore,see.prototype.startSide=see.prototype.endSide=-1,see.prototype.point=!0;const cee=N3.define(),uee={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>E4.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},dee=N3.define();function pee(e){return[fee(),dee.of(Object.assign(Object.assign({},uee),e))]}const hee=N3.define({combine:e=>e.some((e=>e))});function fee(e){let t=[gee];return e&&!1===e.fixed&&t.push(hee.of(!0)),t}const gee=Z8.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.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=e.state.facet(dee).map((t=>new yee(e,t)));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(hee),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,o=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(o<.8*(n.to-n.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(hee)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=E4.iter(this.view.state.facet(cee),this.view.viewport.from),o=[],r=this.gutters.map((e=>new bee(e,this.view.viewport,-this.view.documentPadding.top)));for(let i of this.view.viewportLineBlocks)if(o.length&&(o=[]),Array.isArray(i.type)){let e=!0;for(let t of i.type)if(t.type==n8.Text&&e){vee(n,o,t.from);for(let e of r)e.line(this.view,t,o);e=!1}else if(t.widget)for(let e of r)e.widget(this.view,t)}else if(i.type==n8.Text){vee(n,o,i.from);for(let e of r)e.line(this.view,i,o)}else if(i.widget)for(let e of r)e.widget(this.view,i);for(let i of r)i.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(dee),n=e.state.facet(dee),o=e.docChanged||e.heightChanged||e.viewportChanged||!E4.eq(e.startState.facet(cee),e.state.facet(cee),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let r of this.gutters)r.update(e)&&(o=!0);else{o=!0;let r=[];for(let o of n){let n=t.indexOf(o);n<0?r.push(new yee(this.view,o)):(this.gutters[n].update(e),r.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)this.dom.appendChild(e.dom);this.gutters=r}return o}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>H7.scrollMargins.of((t=>{let n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==p8.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}:null}))});function mee(e){return Array.isArray(e)?e:[e]}function vee(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class bee{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=E4.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:o}=this,r=(t.top-this.height)/e.scaleY,i=t.height/e.scaleY;if(this.i==o.elements.length){let t=new Oee(e,i,r,n);o.elements.push(t),o.dom.appendChild(t.dom)}else o.elements[this.i].update(e,i,r,n);this.height=t.bottom,this.i++}line(e,t,n){let o=[];vee(this.cursor,o,t.from),n.length&&(o=o.concat(n));let r=this.gutter.config.lineMarker(e,t,o);r&&o.unshift(r);let i=this.gutter;(0!=o.length||i.config.renderEmptyElements)&&this.addElement(e,t,o)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class yee{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,(o=>{let r,i=o.target;if(i!=this.dom&&this.dom.contains(i)){for(;i.parentNode!=this.dom;)i=i.parentNode;let e=i.getBoundingClientRect();r=(e.top+e.bottom)/2}else r=o.clientY;let l=e.lineBlockAtHeight(r-e.documentTop);t.domEventHandlers[n](e,l,o)&&o.preventDefault()}));this.markers=mee(t.markers(e)),t.initialSpacer&&(this.spacer=new Oee(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=mee(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!E4.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class Oee{constructor(e,t,n,o){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,o)}update(e,t,n,o){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0}(this.markers,o)||this.setMarkers(e,o)}setMarkers(e,t){let n="cm-gutterElement",o=this.dom.firstChild;for(let r=0,i=0;;){let l=i,a=r<t.length?t[r++]:null,s=!1;if(a){let e=a.elementClass;e&&(n+=" "+e);for(let t=i;t<this.markers.length;t++)if(this.markers[t].compare(a)){l=t,s=!0;break}}else l=this.markers.length;for(;i<l;){let e=this.markers[i++];if(e.toDOM){e.destroy(o);let t=o.nextSibling;o.remove(),o=t}}if(!a)break;a.toDOM&&(s?o=o.nextSibling:this.dom.insertBefore(a.toDOM(e),o)),s&&i++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}const wee=N3.define(),xee=N3.define({combine:e=>k4(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let o in t){let e=n[o],r=t[o];n[o]=e?(t,n,o)=>e(t,n,o)||r(t,n,o):r}return n}})});class $ee extends see{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function See(e,t){return e.state.facet(xee).formatNumber(t,e.state)}const Cee=dee.compute([xee],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(wee),lineMarker:(e,t,n)=>n.some((e=>e.toDOM))?null:new $ee(See(e,e.state.doc.lineAt(t.from).number)),widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(xee)!=e.state.facet(xee),initialSpacer:e=>new $ee(See(e,Pee(e.state.doc.lines))),updateSpacer(e,t){let n=See(t.view,Pee(t.view.state.doc.lines));return n==e.number?e:new $ee(n)},domEventHandlers:e.facet(xee).domEventHandlers})));function kee(e={}){return[xee.of(e),fee(),Cee]}function Pee(e){let t=9;for(;t<e;)t=10*t+9;return t}const Mee=new class extends see{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},Tee=cee.compute(["selection"],(e=>{let t=[],n=-1;for(let o of e.selection.ranges){let r=e.doc.lineAt(o.head).from;r>n&&(n=r,t.push(Mee.range(r)))}return E4.of(t)})),Iee=1024;let Eee=0,Aee=class{constructor(e,t){this.from=e,this.to=t}};class Ree{constructor(e={}){this.id=Eee++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=Bee.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}Ree.closedBy=new Ree({deserialize:e=>e.split(" ")}),Ree.openedBy=new Ree({deserialize:e=>e.split(" ")}),Ree.group=new Ree({deserialize:e=>e.split(" ")}),Ree.isolate=new Ree({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}}),Ree.contextHash=new Ree({perNode:!0}),Ree.lookAhead=new Ree({perNode:!0}),Ree.mounted=new Ree({perNode:!0});class Dee{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[Ree.mounted.id]}}const jee=Object.create(null);class Bee{constructor(e,t,n,o=0){this.name=e,this.props=t,this.id=n,this.flags=o}static define(e){let t=e.props&&e.props.length?Object.create(null):jee,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),o=new Bee(e.name||"",t,e.id,n);if(e.props)for(let r of e.props)if(Array.isArray(r)||(r=r(o)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}return o}prop(e){return this.props[e.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(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(Ree.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let o of n.split(" "))t[o]=e[n];return e=>{for(let n=e.prop(Ree.group),o=-1;o<(n?n.length:0);o++){let r=t[o<0?e.name:n[o]];if(r)return r}}}}Bee.none=new Bee("",Object.create(null),0,8);class Nee{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let o=null;for(let t of e){let e=t(n);e&&(o||(o=Object.assign({},n.props)),o[e[0].id]=e[1])}t.push(o?new Bee(n.name,o,n.id,n.flags):n)}return new Nee(t)}}const zee=new WeakMap,_ee=new WeakMap;var Lee,Qee;(Qee=Lee||(Lee={}))[Qee.ExcludeBuffers=1]="ExcludeBuffers",Qee[Qee.IncludeAnonymous=2]="IncludeAnonymous",Qee[Qee.IgnoreMounts=4]="IgnoreMounts",Qee[Qee.IgnoreOverlays=8]="IgnoreOverlays";class Hee{constructor(e,t,n,o,r){if(this.type=e,this.children=t,this.positions=n,this.length=o,this.props=null,r&&r.length){this.props=Object.create(null);for(let[e,t]of r)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=Dee.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let n of this.children){let e=n.toString();e&&(t&&(t+=","),t+=e)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new tte(this.topNode,e)}cursorAt(e,t=0,n=0){let o=zee.get(this)||this.topNode,r=new tte(o);return r.moveTo(e,t),zee.set(this,r._tree),r}get topNode(){return new Yee(this,0,0,null)}resolve(e,t=0){let n=Zee(zee.get(this)||this.topNode,e,t,!1);return zee.set(this,n),n}resolveInner(e,t=0){let n=Zee(_ee.get(this)||this.topNode,e,t,!0);return _ee.set(this,n),n}resolveStack(e,t=0){return function(e,t,n){let o=e.resolveInner(t,n),r=null;for(let i=o instanceof Yee?o:o.context.parent;i;i=i.parent)if(i.index<0){let e=i.parent;(r||(r=[o])).push(e.resolve(t,n)),i=e}else{let e=Dee.get(i.tree);if(e&&e.overlay&&e.overlay[0].from<=t&&e.overlay[e.overlay.length-1].to>=t){let l=new Yee(e.tree,e.overlay[0].from+i.from,-1,i);(r||(r=[o])).push(Zee(l,t,n,!1))}}return r?Jee(r):o}(this,e,t)}iterate(e){let{enter:t,leave:n,from:o=0,to:r=this.length}=e,i=e.mode||0,l=(i&Lee.IncludeAnonymous)>0;for(let a=this.cursor(i|Lee.IncludeAnonymous);;){let e=!1;if(a.from<=r&&a.to>=o&&(!l&&a.type.isAnonymous||!1!==t(a))){if(a.firstChild())continue;e=!0}for(;e&&n&&(l||!a.type.isAnonymous)&&n(a),!a.nextSibling();){if(!a.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:ite(Bee.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new Hee(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new Hee(Bee.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:o,maxBufferLength:r=Iee,reused:i=[],minRepeatType:l=o.types.length}=e,a=Array.isArray(n)?new Fee(n,n.length):n,s=o.types,c=0,u=0;function d(e,t,n,b,y,O){let{id:w,start:x,end:$,size:S}=a,C=u;for(;S<0;){if(a.next(),-1==S){let t=i[w];return n.push(t),void b.push(x-e)}if(-3==S)return void(c=w);if(-4==S)return void(u=w);throw new RangeError(`Unrecognized record size: ${S}`)}let k,P,M=s[w],T=x-e;if($-x<=r&&(P=m(a.pos-t,y))){let t=new Uint16Array(P.size-P.skip),n=a.pos-P.size,r=t.length;for(;a.pos>n;)r=v(P.start,t,r);k=new Wee(t,$-P.start,o),T=P.start-e}else{let e=a.pos-S;a.next();let t=[],n=[],o=w>=l?w:-1,i=0,s=$;for(;a.pos>e;)o>=0&&a.id==o&&a.size>=0?(a.end<=s-r&&(f(t,n,x,i,a.end,s,o,C),i=t.length,s=a.end),a.next()):O>2500?p(x,e,t,n):d(x,e,t,n,o,O+1);if(o>=0&&i>0&&i<t.length&&f(t,n,x,i,x,s,o,C),t.reverse(),n.reverse(),o>-1&&i>0){let e=h(M);k=ite(M,t,n,0,t.length,0,$-x,e,e)}else k=g(M,t,n,$-x,C-$)}n.push(k),b.push(T)}function p(e,t,n,i){let l=[],s=0,c=-1;for(;a.pos>t;){let{id:e,start:t,end:n,size:o}=a;if(o>4)a.next();else{if(c>-1&&t<c)break;c<0&&(c=n-r),l.push(e,t,n),s++,a.next()}}if(s){let t=new Uint16Array(4*s),r=l[l.length-2];for(let e=l.length-3,n=0;e>=0;e-=3)t[n++]=l[e],t[n++]=l[e+1]-r,t[n++]=l[e+2]-r,t[n++]=n;n.push(new Wee(t,l[2]-r,o)),i.push(r-e)}}function h(e){return(t,n,o)=>{let r,i,l=0,a=t.length-1;if(a>=0&&(r=t[a])instanceof Hee){if(!a&&r.type==e&&r.length==o)return r;(i=r.prop(Ree.lookAhead))&&(l=n[a]+r.length+i)}return g(e,t,n,o,l)}}function f(e,t,n,r,i,l,a,s){let c=[],u=[];for(;e.length>r;)c.push(e.pop()),u.push(t.pop()+n-i);e.push(g(o.types[a],c,u,l-i,s-l)),t.push(i-n)}function g(e,t,n,o,r=0,i){if(c){let e=[Ree.contextHash,c];i=i?[e].concat(i):[e]}if(r>25){let e=[Ree.lookAhead,r];i=i?[e].concat(i):[e]}return new Hee(e,t,n,o,i)}function m(e,t){let n=a.fork(),o=0,i=0,s=0,c=n.end-r,u={size:0,start:0,skip:0};e:for(let r=n.pos-e;n.pos>r;){let e=n.size;if(n.id==t&&e>=0){u.size=o,u.start=i,u.skip=s,s+=4,o+=4,n.next();continue}let a=n.pos-e;if(e<0||a<r||n.start<c)break;let d=n.id>=l?4:0,p=n.start;for(n.next();n.pos>a;){if(n.size<0){if(-3!=n.size)break e;d+=4}else n.id>=l&&(d+=4);n.next()}i=p,o+=e,s+=d}return(t<0||o==e)&&(u.size=o,u.start=i,u.skip=s),u.size>4?u:void 0}function v(e,t,n){let{id:o,start:r,end:i,size:s}=a;if(a.next(),s>=0&&o<l){let l=n;if(s>4){let o=a.pos-(s-4);for(;a.pos>o;)n=v(e,t,n)}t[--n]=l,t[--n]=i-e,t[--n]=r-e,t[--n]=o}else-3==s?c=o:-4==s&&(u=o);return n}let b=[],y=[];for(;a.pos>0;)d(e.start||0,e.bufferStart||0,b,y,-1,0);let O=null!==(t=e.length)&&void 0!==t?t:b.length?y[0]+b[0].length:0;return new Hee(s[e.topID],b.reverse(),y.reverse(),O)}(e)}}Hee.empty=new Hee(Bee.none,[],[],0);class Fee{constructor(e,t){this.buffer=e,this.index=t}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 Fee(this.buffer,this.index)}}class Wee{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return Bee.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],o=this.set.types[t],r=o.name;if(/\W/.test(r)&&!o.isError&&(r=JSON.stringify(r)),n==(e+=4))return r;let i=[];for(;e<n;)i.push(this.childString(e)),e=this.buffer[e+3];return r+"("+i.join(",")+")"}findChild(e,t,n,o,r){let{buffer:i}=this,l=-1;for(let a=e;a!=t&&!(Vee(r,o,i[a+1],i[a+2])&&(l=a,n>0));a=i[a+3]);return l}slice(e,t,n){let o=this.buffer,r=new Uint16Array(t-e),i=0;for(let l=e,a=0;l<t;){r[a++]=o[l++],r[a++]=o[l++]-n;let t=r[a++]=o[l++]-n;r[a++]=o[l++]-e,i=Math.max(i,t)}return new Wee(r,i,this.set)}}function Vee(e,t,n,o){switch(e){case-2:return n<t;case-1:return o>=t&&n<t;case 0:return n<t&&o>t;case 1:return n<=t&&o>t;case 2:return o>t;case 4:return!0}}function Zee(e,t,n,o){for(var r;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let t=!o&&e instanceof Yee&&e.index<0?null:e.parent;if(!t)return e;e=t}let i=o?0:Lee.IgnoreOverlays;if(o)for(let l=e,a=l.parent;a;l=a,a=l.parent)l instanceof Yee&&l.index<0&&(null===(r=a.enter(t,n,i))||void 0===r?void 0:r.from)!=l.from&&(e=a);for(;;){let o=e.enter(t,n,i);if(!o)return e;e=o}}class Xee{cursor(e=0){return new tte(this,e)}getChild(e,t=null,n=null){let o=Kee(this,e,t,n);return o.length?o[0]:null}getChildren(e,t=null,n=null){return Kee(this,e,t,n)}resolve(e,t=0){return Zee(this,e,t,!1)}resolveInner(e,t=0){return Zee(this,e,t,!0)}matchContext(e){return Gee(this,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(n=t,t=e.prevSibling):t=e}return n}get node(){return this}get next(){return this.parent}}class Yee extends Xee{constructor(e,t,n,o){super(),this._tree=e,this.from=t,this.index=n,this._parent=o}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,o,r=0){for(let i=this;;){for(let{children:l,positions:a}=i._tree,s=t>0?l.length:-1;e!=s;e+=t){let s=l[e],c=a[e]+i.from;if(Vee(o,n,c,c+s.length))if(s instanceof Wee){if(r&Lee.ExcludeBuffers)continue;let l=s.findChild(0,s.buffer.length,t,n-c,o);if(l>-1)return new qee(new Uee(i,s,e,c),null,l)}else if(r&Lee.IncludeAnonymous||!s.type.isAnonymous||nte(s)){let l;if(!(r&Lee.IgnoreMounts)&&(l=Dee.get(s))&&!l.overlay)return new Yee(l.tree,c,e,i);let a=new Yee(s,c,e,i);return r&Lee.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(t<0?s.children.length-1:0,t,n,o)}}if(r&Lee.IncludeAnonymous||!i.type.isAnonymous)return null;if(e=i.index>=0?i.index+t:t<0?-1:i._parent._tree.children.length,i=i._parent,!i)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(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let o;if(!(n&Lee.IgnoreOverlays)&&(o=Dee.get(this._tree))&&o.overlay){let n=e-this.from;for(let{from:e,to:r}of o.overlay)if((t>0?e<=n:e<n)&&(t<0?r>=n:r>n))return new Yee(o.tree,o.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}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 Kee(e,t,n,o){let r=e.cursor(),i=[];if(!r.firstChild())return i;if(null!=n)for(;!r.type.is(n);)if(!r.nextSibling())return i;for(;;){if(null!=o&&r.type.is(o))return i;if(r.type.is(t)&&i.push(r.node),!r.nextSibling())return null==o?i:[]}}function Gee(e,t,n=t.length-1){for(let o=e.parent;n>=0;o=o.parent){if(!o)return!1;if(!o.type.isAnonymous){if(t[n]&&t[n]!=o.name)return!1;n--}}return!0}class Uee{constructor(e,t,n,o){this.parent=e,this.buffer=t,this.index=n,this.start=o}}class qee extends Xee{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(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:o}=this.context,r=o.findChild(this.index+4,o.buffer[this.index+3],e,t-this.context.start,n);return r<0?null:new qee(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&Lee.ExcludeBuffers)return null;let{buffer:o}=this.context,r=o.findChild(this.index+4,o.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new qee(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new qee(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new qee(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,o=this.index+4,r=n.buffer[this.index+3];if(r>o){let i=n.buffer[this.index+1];e.push(n.slice(o,r,i)),t.push(0)}return new Hee(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Jee(e){if(!e.length)return null;let t=0,n=e[0];for(let i=1;i<e.length;i++){let o=e[i];(o.from>n.from||o.to<n.to)&&(n=o,t=i)}let o=n instanceof Yee&&n.index<0?null:n.parent,r=e.slice();return o?r[t]=o:r.splice(t,1),new ete(r,n)}class ete{constructor(e,t){this.heads=e,this.node=t}get next(){return Jee(this.heads)}}class tte{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Yee)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:o}=this.buffer;return this.type=t||o.set.types[o.buffer[e]],this.from=n+o.buffer[e+1],this.to=n+o.buffer[e+2],!0}yield(e){return!!e&&(e instanceof Yee?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:o}=this.buffer,r=o.findChild(this.index+4,o.buffer[this.index+3],e,t-this.buffer.start,n);return!(r<0)&&(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&Lee.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Lee.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Lee.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:o}=this;if(o){if(e>0){if(this.index<o.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(o.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=o)}else({index:t,_parent:n}=this._tree);for(;n;({index:t,_parent:n}=n))if(t>-1)for(let o=t+e,r=e<0?-1:n._tree.children.length;o!=r;o+=e){let e=n._tree.children[o];if(this.mode&Lee.IncludeAnonymous||e instanceof Wee||!e.type.isAnonymous||nte(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let o=this.index,r=this.stack.length;r>=0;){for(let i=e;i;i=i._parent)if(i.index==o){if(o==this.index)return i;t=i,n=r+1;break e}o=this.stack[--r]}for(let o=n;o<this.stack.length;o++)t=new qee(this.buffer,t,this.stack[o]);return this.bufferNode=new qee(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let o=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(o=!0)}for(;o&&t&&t(this),o=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,o=!0}}}matchContext(e){if(!this.buffer)return Gee(this.node,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let o=e.length-1,r=this.stack.length-1;o>=0;r--){if(r<0)return Gee(this.node,e,o);let i=n[t.buffer[this.stack[r]]];if(!i.isAnonymous){if(e[o]&&e[o]!=i.name)return!1;o--}}return!0}}function nte(e){return e.children.some((e=>e instanceof Wee||!e.type.isAnonymous||nte(e)))}const ote=new WeakMap;function rte(e,t){if(!e.isAnonymous||t instanceof Wee||t.type!=e)return 1;let n=ote.get(t);if(null==n){n=1;for(let o of t.children){if(o.type!=e||!(o instanceof Hee)){n=1;break}n+=rte(e,o)}ote.set(t,n)}return n}function ite(e,t,n,o,r,i,l,a,s){let c=0;for(let h=o;h<r;h++)c+=rte(e,t[h]);let u=Math.ceil(1.5*c/8),d=[],p=[];return function t(n,o,r,l,a){for(let c=r;c<l;){let r=c,h=o[c],f=rte(e,n[c]);for(c++;c<l;c++){let t=rte(e,n[c]);if(f+t>=u)break;f+=t}if(c==r+1){if(f>u){let e=n[r];t(e.children,e.positions,0,e.children.length,o[r]+a);continue}d.push(n[r])}else{let t=o[c-1]+n[c-1].length-h;d.push(ite(e,n,o,r,c,h,t,null,s))}p.push(h+a-i)}}(t,n,o,r,0),(a||s)(d,p,l)}class lte{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let o=this.map.get(e);o||this.map.set(e,o=new Map),o.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof qee?this.setBuffer(e.context.buffer,e.index,t):e instanceof Yee&&this.map.set(e.tree,t)}get(e){return e instanceof qee?this.getBuffer(e.context.buffer,e.index):e instanceof Yee?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class ate{constructor(e,t,n,o,r=!1,i=!1){this.from=e,this.to=t,this.tree=n,this.offset=o,this.open=(r?1:0)|(i?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let o=[new ate(0,e.length,e,0,!1,n)];for(let r of t)r.to>e.length&&o.push(r);return o}static applyChanges(e,t,n=128){if(!t.length)return e;let o=[],r=1,i=e.length?e[0]:null;for(let l=0,a=0,s=0;;l++){let c=l<t.length?t[l]:null,u=c?c.fromA:1e9;if(u-a>=n)for(;i&&i.from<u;){let t=i;if(a>=t.from||u<=t.to||s){let e=Math.max(t.from,a)-s,n=Math.min(t.to,u)-s;t=e>=n?null:new ate(e,n,t.tree,t.offset+s,l>0,!!c)}if(t&&o.push(t),i.to>u)break;i=r<e.length?e[r++]:null}if(!c)break;a=c.toA,s=c.toA-c.toB}return o}}class ste{startParse(e,t,n){return"string"==typeof e&&(e=new cte(e)),n=n?n.length?n.map((e=>new Aee(e.from,e.to))):[new Aee(0,0)]:[new Aee(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let o=this.startParse(e,t,n);for(;;){let e=o.advance();if(e)return e}}}class cte{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new Ree({perNode:!0});let ute=0;class dte{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=ute++}static define(e){if(null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new dte([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new hte;return t=>t.modified.indexOf(e)>-1?t:hte.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let pte=0;class hte{constructor(){this.instances=[],this.id=pte++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>{return n.base==e&&(o=t,r=n.modified,o.length==r.length&&o.every(((e,t)=>e==r[t])));var o,r}));if(n)return n;let o=[],r=new dte(o,e,t);for(let l of t)l.instances.push(r);let i=function(e){let t=[[]];for(let n=0;n<e.length;n++)for(let o=0,r=t.length;o<r;o++)t.push(t[o].concat(e[n]));return t.sort(((e,t)=>t.length-e.length))}(t);for(let l of e.set)if(!l.modified.length)for(let e of i)o.push(hte.get(l,e));return r}}function fte(e){let t=Object.create(null);for(let n in e){let o=e[n];Array.isArray(o)||(o=[o]);for(let e of n.split(" "))if(e){let n=[],r=2,i=e;for(let t=0;;){if("..."==i&&t>0&&t+3==e.length){r=1;break}let o=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(i);if(!o)throw new RangeError("Invalid path: "+e);if(n.push("*"==o[0]?"":'"'==o[0][0]?JSON.parse(o[0]):o[0]),t+=o[0].length,t==e.length)break;let l=e[t++];if(t==e.length&&"!"==l){r=0;break}if("/"!=l)throw new RangeError("Invalid path: "+e);i=e.slice(t)}let l=n.length-1,a=n[l];if(!a)throw new RangeError("Invalid path: "+e);let s=new mte(o,r,l>0?n.slice(0,l):null);t[a]=s.sort(t[a])}}return gte.add(t)}const gte=new Ree;class mte{constructor(e,t,n,o){this.tags=e,this.mode=t,this.context=n,this.next=o}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function vte(e,t){let n=Object.create(null);for(let i of e)if(Array.isArray(i.tag))for(let e of i.tag)n[e.id]=i.class;else n[i.tag.id]=i.class;let{scope:o,all:r=null}=t||{};return{style:e=>{let t=r;for(let o of e)for(let e of o.set){let o=n[e.id];if(o){t=t?t+" "+o:o;break}}return t},scope:o}}function bte(e,t,n,o=0,r=e.length){let i=new yte(o,Array.isArray(t)?t:[t],n);i.highlightRange(e.cursor(),o,r,"",i.highlighters),i.flush(r)}mte.empty=new mte([],2,null);class yte{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,o,r){let{type:i,from:l,to:a}=e;if(l>=n||a<=t)return;i.isTop&&(r=this.highlighters.filter((e=>!e.scope||e.scope(i))));let s=o,c=function(e){let t=e.type.prop(gte);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||mte.empty,u=function(e,t){let n=null;for(let o of e){let e=o.style(t);e&&(n=n?n+" "+e:e)}return n}(r,c.tags);if(u&&(s&&(s+=" "),s+=u,1==c.mode&&(o+=(o?" ":"")+u)),this.startSpan(Math.max(t,l),s),c.opaque)return;let d=e.tree&&e.tree.prop(Ree.mounted);if(d&&d.overlay){let i=e.node.enter(d.overlay[0].from+l,1),c=this.highlighters.filter((e=>!e.scope||e.scope(d.tree.type))),u=e.firstChild();for(let p=0,h=l;;p++){let f=p<d.overlay.length?d.overlay[p]:null,g=f?f.from+l:a,m=Math.max(t,h),v=Math.min(n,g);if(m<v&&u)for(;e.from<v&&(this.highlightRange(e,m,v,o,r),this.startSpan(Math.min(v,e.to),s),!(e.to>=g)&&e.nextSibling()););if(!f||g>n)break;h=f.to+l,h>t&&(this.highlightRange(i.cursor(),Math.max(t,f.from+l),Math.min(n,h),"",c),this.startSpan(Math.min(n,h),s))}u&&e.parent()}else if(e.firstChild()){d&&(o="");do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,o,r),this.startSpan(Math.min(n,e.to),s)}}while(e.nextSibling());e.parent()}}}const Ote=dte.define,wte=Ote(),xte=Ote(),$te=Ote(xte),Ste=Ote(xte),Cte=Ote(),kte=Ote(Cte),Pte=Ote(Cte),Mte=Ote(),Tte=Ote(Mte),Ite=Ote(),Ete=Ote(),Ate=Ote(),Rte=Ote(Ate),Dte=Ote(),jte={comment:wte,lineComment:Ote(wte),blockComment:Ote(wte),docComment:Ote(wte),name:xte,variableName:Ote(xte),typeName:$te,tagName:Ote($te),propertyName:Ste,attributeName:Ote(Ste),className:Ote(xte),labelName:Ote(xte),namespace:Ote(xte),macroName:Ote(xte),literal:Cte,string:kte,docString:Ote(kte),character:Ote(kte),attributeValue:Ote(kte),number:Pte,integer:Ote(Pte),float:Ote(Pte),bool:Ote(Cte),regexp:Ote(Cte),escape:Ote(Cte),color:Ote(Cte),url:Ote(Cte),keyword:Ite,self:Ote(Ite),null:Ote(Ite),atom:Ote(Ite),unit:Ote(Ite),modifier:Ote(Ite),operatorKeyword:Ote(Ite),controlKeyword:Ote(Ite),definitionKeyword:Ote(Ite),moduleKeyword:Ote(Ite),operator:Ete,derefOperator:Ote(Ete),arithmeticOperator:Ote(Ete),logicOperator:Ote(Ete),bitwiseOperator:Ote(Ete),compareOperator:Ote(Ete),updateOperator:Ote(Ete),definitionOperator:Ote(Ete),typeOperator:Ote(Ete),controlOperator:Ote(Ete),punctuation:Ate,separator:Ote(Ate),bracket:Rte,angleBracket:Ote(Rte),squareBracket:Ote(Rte),paren:Ote(Rte),brace:Ote(Rte),content:Mte,heading:Tte,heading1:Ote(Tte),heading2:Ote(Tte),heading3:Ote(Tte),heading4:Ote(Tte),heading5:Ote(Tte),heading6:Ote(Tte),contentSeparator:Ote(Mte),list:Ote(Mte),quote:Ote(Mte),emphasis:Ote(Mte),strong:Ote(Mte),link:Ote(Mte),monospace:Ote(Mte),strikethrough:Ote(Mte),inserted:Ote(),deleted:Ote(),changed:Ote(),invalid:Ote(),meta:Dte,documentMeta:Ote(Dte),annotation:Ote(Dte),processingInstruction:Ote(Dte),definition:dte.defineModifier(),constant:dte.defineModifier(),function:dte.defineModifier(),standard:dte.defineModifier(),local:dte.defineModifier(),special:dte.defineModifier()};var Bte;vte([{tag:jte.link,class:"tok-link"},{tag:jte.heading,class:"tok-heading"},{tag:jte.emphasis,class:"tok-emphasis"},{tag:jte.strong,class:"tok-strong"},{tag:jte.keyword,class:"tok-keyword"},{tag:jte.atom,class:"tok-atom"},{tag:jte.bool,class:"tok-bool"},{tag:jte.url,class:"tok-url"},{tag:jte.labelName,class:"tok-labelName"},{tag:jte.inserted,class:"tok-inserted"},{tag:jte.deleted,class:"tok-deleted"},{tag:jte.literal,class:"tok-literal"},{tag:jte.string,class:"tok-string"},{tag:jte.number,class:"tok-number"},{tag:[jte.regexp,jte.escape,jte.special(jte.string)],class:"tok-string2"},{tag:jte.variableName,class:"tok-variableName"},{tag:jte.local(jte.variableName),class:"tok-variableName tok-local"},{tag:jte.definition(jte.variableName),class:"tok-variableName tok-definition"},{tag:jte.special(jte.variableName),class:"tok-variableName2"},{tag:jte.definition(jte.propertyName),class:"tok-propertyName tok-definition"},{tag:jte.typeName,class:"tok-typeName"},{tag:jte.namespace,class:"tok-namespace"},{tag:jte.className,class:"tok-className"},{tag:jte.macroName,class:"tok-macroName"},{tag:jte.propertyName,class:"tok-propertyName"},{tag:jte.operator,class:"tok-operator"},{tag:jte.comment,class:"tok-comment"},{tag:jte.meta,class:"tok-meta"},{tag:jte.invalid,class:"tok-invalid"},{tag:jte.punctuation,class:"tok-punctuation"}]);const Nte=new Ree;function zte(e){return N3.define({combine:e?t=>t.concat(e):void 0})}const _te=new Ree;class Lte{constructor(e,t,n=[],o=""){this.data=e,this.name=o,C4.prototype.hasOwnProperty("tree")||Object.defineProperty(C4.prototype,"tree",{get(){return Fte(this)}}),this.parser=t,this.extension=[qte.of(this),C4.languageData.of(((e,t,n)=>{let o=Qte(e,t,n),r=o.type.prop(Nte);if(!r)return[];let i=e.facet(r),l=o.type.prop(_te);if(l){let r=o.resolve(t-o.from,n);for(let t of l)if(t.test(r,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(i)}}return i}))].concat(n)}isActiveAt(e,t,n=-1){return Qte(e,t,n).type.prop(Nte)==this.data}findRegions(e){let t=e.facet(qte);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],o=(e,t)=>{if(e.prop(Nte)==this.data)return void n.push({from:t,to:t+e.length});let r=e.prop(Ree.mounted);if(r){if(r.tree.prop(Nte)==this.data){if(r.overlay)for(let e of r.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(r.overlay){let e=n.length;if(o(r.tree,r.overlay[0].from+t),n.length>e)return}}for(let n=0;n<e.children.length;n++){let r=e.children[n];r instanceof Hee&&o(r,e.positions[n]+t)}};return o(Fte(e),0),n}get allowsNesting(){return!0}}function Qte(e,t,n){let o=e.facet(qte),r=Fte(e).topNode;if(!o||o.allowsNesting)for(let i=r;i;i=i.enter(t,n,Lee.ExcludeBuffers))i.type.isTop&&(r=i);return r}Lte.setState=h4.define();class Hte extends Lte{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){let t=zte(e.languageData);return new Hte(t,e.parser.configure({props:[Nte.add((e=>e.isTop?t:void 0))]}),e.name)}configure(e,t){return new Hte(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Fte(e){let t=e.field(Lte.state,!1);return t?t.tree:Hee.empty}class Wte{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let Vte=null;class Zte{constructor(e,t,n=[],o,r,i,l,a){this.parser=e,this.state=t,this.fragments=n,this.tree=o,this.treeLen=r,this.viewport=i,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new Zte(e,t,[],Hee.empty,0,n,[],null)}startParse(){return this.parser.startParse(new Wte(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=Hee.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let o=this.parse.advance();if(o){if(this.fragments=this.withoutTempSkipped(ate.addTree(o,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(n=this.parse.stoppedAt)&&void 0!==n?n:this.state.doc.length,this.tree=o,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}}))}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(ate.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Vte;Vte=this;try{return e()}finally{Vte=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Xte(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:o,treeLen:r,viewport:i,skipped:l}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,o,r)=>t.push({fromA:e,toA:n,fromB:o,toB:r}))),n=ate.applyChanges(n,t),o=Hee.empty,r=0,i={from:e.mapPos(i.from,-1),to:e.mapPos(i.to,1)},this.skipped.length){l=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),o=e.mapPos(t.to,-1);n<o&&l.push({from:n,to:o})}}}return new Zte(this.parser,t,n,o,r,i,l,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:t,to:o}=this.skipped[n];t<e.to&&o>e.from&&(this.fragments=Xte(this.fragments,t,o),this.skipped.splice(n--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends ste{createParse(t,n,o){let r=o[0].from,i=o[o.length-1].to;return{parsedPos:r,advance(){let t=Vte;if(t){for(let e of o)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=i,new Hee(Bee.none,[],[],i-r)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return Vte}}function Xte(e,t,n){return ate.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class Yte{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new Yte(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=Zte.create(e.facet(qte).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new Yte(n)}}Lte.state=W3.define({create:Yte.init,update(e,t){for(let n of t.effects)if(n.is(Lte.setState))return n.value;return t.startState.facet(qte)!=t.state.facet(qte)?Yte.init(t.state):e.apply(t)}});let Kte=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(Kte=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const Gte="undefined"!=typeof navigator&&(null===(Bte=navigator.scheduling)||void 0===Bte?void 0:Bte.isInputPending)?()=>navigator.scheduling.isInputPending():null,Ute=Z8.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Lte.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Lte.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=Kte(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:o}}=this.view,r=n.field(Lte.state);if(r.tree==r.context.tree&&r.context.isDone(o+1e5))return;let i=Date.now()+Math.min(this.chunkBudget,100,e&&!Gte?Math.max(25,e.timeRemaining()-5):1e9),l=r.context.treeLen<o&&n.doc.length>o+1e3,a=r.context.work((()=>Gte&&Gte()||Date.now()>i),o+(l?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:Lte.setState.of(new Yte(r.context))})),this.chunkBudget>0&&(!a||l)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>H8(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),qte=N3.define({combine:e=>e.length?e[0]:null,enables:e=>[Lte.state,Ute,H7.contentAttributes.compute([e],(t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}}))]});class Jte{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const ene=N3.define(),tne=N3.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some((e=>e!=t[0])))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function nne(e){let t=e.facet(tne);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function one(e,t){let n="",o=e.tabSize,r=e.facet(tne)[0];if("\t"==r){for(;t>=o;)n+="\t",t-=o;r=" "}for(let i=0;i<t;i++)n+=r;return n}function rne(e,t){e instanceof C4&&(e=new ine(e));for(let o of e.state.facet(ene)){let n=o(e,t);if(void 0!==n)return n}let n=Fte(e.state);return n.length>=t?function(e,t,n){let o=t.resolveStack(n),r=o.node.enterUnfinishedNodesBefore(n);if(r!=o.node){let e=[];for(let t=r;t!=o.node;t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)o={node:e[t],next:o}}return ane(o,e,n)}(e,n,t):null}class ine{constructor(e,t={}){this.state=e,this.options=t,this.unit=nne(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:o,simulateDoubleBreak:r}=this.options;return null!=o&&o>=n.from&&o<=n.to?r&&o==e?{text:"",from:e}:(t<0?o<e:o<=e)?{text:n.text.slice(o-n.from),from:o}:{text:n.text.slice(0,o-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:o}=this.lineAt(e,t);return n.slice(e-o,Math.min(n.length,e+100-o))}column(e,t=1){let{text:n,from:o}=this.lineAt(e,t),r=this.countColumn(n,e-o),i=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return i>-1&&(r+=i-this.countColumn(n,n.search(/\S|$/))),r}countColumn(e,t=e.length){return F4(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:o}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let e=r(o);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const lne=new Ree;function ane(e,t,n){for(let o=e;o;o=o.next){let e=sne(o.node);if(e)return e(une.create(t,n,o))}return 0}function sne(e){let t=e.type.prop(lne);if(t)return t;let n,o=e.firstChild;if(o&&(n=o.type.prop(Ree.closedBy))){let t=e.lastChild,o=t&&n.indexOf(t.name)>-1;return e=>hne(e,!0,1,void 0,o&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?cne:null}function cne(){return 0}class une extends ine{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new une(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(dne(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return ane(this.context.next,this.base,this.pos)}}function dne(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function pne({closing:e,align:t=!0,units:n=1}){return o=>hne(o,t,n,e)}function hne(e,t,n,o,r){let i=e.textAfter,l=i.match(/^\s*/)[0].length,a=o&&i.slice(l,l+o.length)==o||r==e.pos+l,s=t?function(e){let t=e.node,n=t.childAfter(t.from),o=t.lastChild;if(!n)return null;let r=e.options.simulateBreak,i=e.state.doc.lineAt(n.from),l=null==r||r<=i.from?i.to:Math.min(i.to,r);for(let a=n.to;;){let e=t.childAfter(a);if(!e||e==o)return null;if(!e.type.isSkipped)return e.from<l?n:null;a=e.to}}(e):null;return s?a?e.column(s.from):e.column(s.to):e.baseIndent+(a?0:e.unit*n)}function fne({except:e,units:t=1}={}){return n=>{let o=e&&e.test(n.textAfter);return n.baseIndent+(o?0:t*n.unit)}}const gne=N3.define(),mne=new Ree;function vne(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function bne(e,t,n){for(let o of e.facet(gne)){let r=o(e,t,n);if(r)return r}return function(e,t,n){let o=Fte(e);if(o.length<n)return null;let r=null;for(let i=o.resolveStack(n,1);i;i=i.next){let l=i.node;if(l.to<=n||l.from>n)continue;if(r&&l.from<t)break;let a=l.type.prop(mne);if(a&&(l.to<o.length-50||o.length==e.doc.length||!vne(l))){let o=a(l,e);o&&o.from<=n&&o.from>=t&&o.to>n&&(r=o)}}return r}(e,t,n)}function yne(e,t){let n=t.mapPos(e.from,1),o=t.mapPos(e.to,-1);return n>=o?void 0:{from:n,to:o}}const One=h4.define({map:yne}),wne=h4.define({map:yne});function xne(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some((e=>e.from<=n&&e.to>=n))||t.push(e.lineBlockAt(n));return t}const $ne=W3.define({create:()=>o8.none,update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(One)&&!Cne(e,n.value.from,n.value.to)){let{preparePlaceholder:o}=t.state.facet(Ine),r=o?o8.replace({widget:new Dne(o(t.state,n.value))}):Rne;e=e.update({add:[r.range(n.value.from,n.value.to)]})}else n.is(wne)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:o}=t.selection.main;e.between(o,o,((e,t)=>{e<o&&t>o&&(n=!0)})),n&&(e=e.update({filterFrom:o,filterTo:o,filter:(e,t)=>t<=o||e>=o}))}return e},provide:e=>H7.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,((e,t)=>{n.push(e,t)})),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n<e.length;){let o=e[n++],r=e[n++];if("number"!=typeof o||"number"!=typeof r)throw new RangeError("Invalid JSON for fold state");t.push(Rne.range(o,r))}return o8.set(t,!0)}});function Sne(e,t,n){var o;let r=null;return null===(o=e.field($ne,!1))||void 0===o||o.between(t,n,((e,t)=>{(!r||r.from>e)&&(r={from:e,to:t})})),r}function Cne(e,t,n){let o=!1;return e.between(t,t,((e,r)=>{e==t&&r==n&&(o=!0)})),o}function kne(e,t){return e.field($ne,!1)?t:t.concat(h4.appendConfig.of(Ene()))}function Pne(e,t,n=!0){let o=e.state.doc.lineAt(t.from).number,r=e.state.doc.lineAt(t.to).number;return H7.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${o} ${e.state.phrase("to")} ${r}.`)}const Mne=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of xne(e)){let n=bne(e.state,t.from,t.to);if(n)return e.dispatch({effects:kne(e.state,[One.of(n),Pne(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field($ne,!1))return!1;let t=[];for(let n of xne(e)){let o=Sne(e.state,n.from,n.to);o&&t.push(wne.of(o),Pne(e,o,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let o=0;o<t.doc.length;){let r=e.lineBlockAt(o),i=bne(t,r.from,r.to);i&&n.push(One.of(i)),o=(i?e.lineBlockAt(i.to):r).to+1}return n.length&&e.dispatch({effects:kne(e.state,n)}),!!n.length}},{key:"Ctrl-Alt-]",run:e=>{let t=e.state.field($ne,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,((e,t)=>{n.push(wne.of({from:e,to:t}))})),e.dispatch({effects:n}),!0}}],Tne={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Ine=N3.define({combine:e=>k4(e,Tne)});function Ene(e){let t=[$ne,zne];return e&&t.push(Ine.of(e)),t}function Ane(e,t){let{state:n}=e,o=n.facet(Ine),r=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),o=Sne(e.state,n.from,n.to);o&&e.dispatch({effects:wne.of(o)}),t.preventDefault()};if(o.placeholderDOM)return o.placeholderDOM(e,r,t);let i=document.createElement("span");return i.textContent=o.placeholderText,i.setAttribute("aria-label",n.phrase("folded code")),i.title=n.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=r,i}const Rne=o8.replace({widget:new class extends t8{toDOM(e){return Ane(e,null)}}});class Dne extends t8{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Ane(e,this.value)}}const jne={openText:"⌄",closedText:"",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Bne extends see{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function Nne(e={}){let t=Object.assign(Object.assign({},jne),e),n=new Bne(t,!0),o=new Bne(t,!1),r=Z8.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(qte)!=e.state.facet(qte)||e.startState.field($ne,!1)!=e.state.field($ne,!1)||Fte(e.startState)!=Fte(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new A4;for(let r of e.viewportLineBlocks){let i=Sne(e.state,r.from,r.to)?o:bne(e.state,r.from,r.to)?n:null;i&&t.add(r.from,r.from,i)}return t.finish()}}),{domEventHandlers:i}=t;return[r,pee({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.markers)||E4.empty},initialSpacer:()=>new Bne(t,!1),domEventHandlers:Object.assign(Object.assign({},i),{click:(e,t,n)=>{if(i.click&&i.click(e,t,n))return!0;let o=Sne(e.state,t.from,t.to);if(o)return e.dispatch({effects:wne.of(o)}),!0;let r=bne(e.state,t.from,t.to);return!!r&&(e.dispatch({effects:One.of(r)}),!0)}})}),Ene()]}const zne=H7.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 _ne{constructor(e,t){let n;function o(e){let t=Y4.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;const r="string"==typeof t.all?t.all:t.all?o(t.all):void 0,i=t.scope;this.scope=i instanceof Lte?e=>e.prop(Nte)==i.data:i?e=>e==i:void 0,this.style=vte(e.map((e=>({tag:e.tag,class:e.class||o(Object.assign({},e,{tag:null}))}))),{all:r}).style,this.module=n?new Y4(n):null,this.themeType=t.themeType}static define(e,t){return new _ne(e,t||{})}}const Lne=N3.define(),Qne=N3.define({combine:e=>e.length?[e[0]]:null});function Hne(e){let t=e.facet(Lne);return t.length?t:e.facet(Qne)}function Fne(e,t){let n,o=[Vne];return e instanceof _ne&&(e.module&&o.push(H7.styleModule.of(e.module)),n=e.themeType),(null==t?void 0:t.fallback)?o.push(Qne.of(e)):n?o.push(Lne.computeN([H7.darkTheme],(t=>t.facet(H7.darkTheme)==("dark"==n)?[e]:[]))):o.push(Lne.of(e)),o}class Wne{constructor(e){this.markCache=Object.create(null),this.tree=Fte(e.state),this.decorations=this.buildDeco(e,Hne(e.state))}update(e){let t=Fte(e.state),n=Hne(e.state),o=n!=Hne(e.startState);t.length<e.view.viewport.to&&!o&&t.type==this.tree.type?this.decorations=this.decorations.map(e.changes):(t!=this.tree||e.viewportChanged||o)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n))}buildDeco(e,t){if(!t||!this.tree.length)return o8.none;let n=new A4;for(let{from:o,to:r}of e.visibleRanges)bte(this.tree,t,((e,t,o)=>{n.add(e,t,this.markCache[o]||(this.markCache[o]=o8.mark({class:o})))}),o,r);return n.finish()}}const Vne=G3.high(Z8.fromClass(Wne,{decorations:e=>e.decorations})),Zne=_ne.define([{tag:jte.meta,color:"#404740"},{tag:jte.link,textDecoration:"underline"},{tag:jte.heading,textDecoration:"underline",fontWeight:"bold"},{tag:jte.emphasis,fontStyle:"italic"},{tag:jte.strong,fontWeight:"bold"},{tag:jte.strikethrough,textDecoration:"line-through"},{tag:jte.keyword,color:"#708"},{tag:[jte.atom,jte.bool,jte.url,jte.contentSeparator,jte.labelName],color:"#219"},{tag:[jte.literal,jte.inserted],color:"#164"},{tag:[jte.string,jte.deleted],color:"#a11"},{tag:[jte.regexp,jte.escape,jte.special(jte.string)],color:"#e40"},{tag:jte.definition(jte.variableName),color:"#00f"},{tag:jte.local(jte.variableName),color:"#30a"},{tag:[jte.typeName,jte.namespace],color:"#085"},{tag:jte.className,color:"#167"},{tag:[jte.special(jte.variableName),jte.macroName],color:"#256"},{tag:jte.definition(jte.propertyName),color:"#00c"},{tag:jte.comment,color:"#940"},{tag:jte.invalid,color:"#f00"}]),Xne=H7.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Yne="()[]{}",Kne=N3.define({combine:e=>k4(e,{afterCursor:!0,brackets:Yne,maxScanDistance:1e4,renderMatch:qne})}),Gne=o8.mark({class:"cm-matchingBracket"}),Une=o8.mark({class:"cm-nonmatchingBracket"});function qne(e){let t=[],n=e.matched?Gne:Une;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const Jne=[W3.define({create:()=>o8.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],o=t.state.facet(Kne);for(let r of t.state.selection.ranges){if(!r.empty)continue;let e=roe(t.state,r.head,-1,o)||r.head>0&&roe(t.state,r.head-1,1,o)||o.afterCursor&&(roe(t.state,r.head,1,o)||r.head<t.state.doc.length&&roe(t.state,r.head+1,-1,o));e&&(n=n.concat(o.renderMatch(e,t.state)))}return o8.set(n,!0)},provide:e=>H7.decorations.from(e)}),Xne];function eoe(e={}){return[Kne.of(e),Jne]}const toe=new Ree;function noe(e,t,n){let o=e.prop(t<0?Ree.openedBy:Ree.closedBy);if(o)return o;if(1==e.name.length){let o=n.indexOf(e.name);if(o>-1&&o%2==(t<0?1:0))return[n[o+t]]}return null}function ooe(e){let t=e.type.prop(toe);return t?t(e.node):e}function roe(e,t,n,o={}){let r=o.maxScanDistance||1e4,i=o.brackets||Yne,l=Fte(e),a=l.resolveInner(t,n);for(let s=a;s;s=s.parent){let e=noe(s.type,n,i);if(e&&s.from<s.to){let o=ooe(s);if(o&&(n>0?t>=o.from&&t<o.to:t>o.from&&t<=o.to))return ioe(0,0,n,s,o,e,i)}}return function(e,t,n,o,r,i,l){let a=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),s=l.indexOf(a);if(s<0||s%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let p=0;!u.next().done&&p<=i;){let e=u.value;n<0&&(p+=e.length);let i=t+p*n;for(let t=n>0?0:e.length-1,a=n>0?e.length:-1;t!=a;t+=n){let a=l.indexOf(e[t]);if(!(a<0||o.resolveInner(i+t,1).type!=r))if(a%2==0==n>0)d++;else{if(1==d)return{start:c,end:{from:i+t,to:i+t+1},matched:a>>1==s>>1};d--}}n>0&&(p+=e.length)}return u.done?{start:c,matched:!1}:null}(e,t,n,l,a.type,r,i)}function ioe(e,t,n,o,r,i,l){let a=o.parent,s={from:r.from,to:r.to},c=0,u=null==a?void 0:a.cursor();if(u&&(n<0?u.childBefore(o.from):u.childAfter(o.to)))do{if(n<0?u.to<=o.from:u.from>=o.to){if(0==c&&i.indexOf(u.type.name)>-1&&u.from<u.to){let e=ooe(u);return{start:s,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}if(noe(u.type,n,l))c++;else if(noe(u.type,-n,l)){if(0==c){let e=ooe(u);return{start:s,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}c--}}}while(n<0?u.prevSibling():u.nextSibling());return{start:s,matched:!1}}const loe=Object.create(null),aoe=[Bee.none],soe=[],coe=Object.create(null),uoe=Object.create(null);for(let[Cpe,kpe]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])uoe[Cpe]=poe(loe,kpe);function doe(e,t){soe.indexOf(e)>-1||soe.push(e)}function poe(e,t){let n=[];for(let a of t.split(" ")){let t=[];for(let n of a.split(".")){let o=e[n]||jte[n];o?"function"==typeof o?t.length?t=t.map(o):doe(n):t.length?doe(n):t=Array.isArray(o)?o:[o]:doe(n)}for(let e of t)n.push(e)}if(!n.length)return 0;let o=t.replace(/ /g,"_"),r=o+" "+n.map((e=>e.id)),i=coe[r];if(i)return i.id;let l=coe[r]=Bee.define({id:aoe.length,name:o,props:[fte({[o]:n})]});return aoe.push(l),l.id}function hoe(e,t){return({state:n,dispatch:o})=>{if(n.readOnly)return!1;let r=e(t,n);return!!r&&(o(n.update(r)),!0)}}p8.RTL,p8.LTR;const foe=hoe(yoe,0),goe=hoe(boe,0),moe=hoe(((e,t)=>boe(e,t,function(e){let t=[];for(let n of e.selection.ranges){let o=e.doc.lineAt(n.from),r=n.to<=o.to?o:e.doc.lineAt(n.to),i=t.length-1;i>=0&&t[i].to>o.from?t[i].to=r.to:t.push({from:o.from+/^\s*/.exec(o.text)[0].length,to:r.to})}return t}(t))),0);function voe(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}function boe(e,t,n=t.selection.ranges){let o=n.map((e=>voe(t,e.from).block));if(!o.every((e=>e)))return null;let r=n.map(((e,n)=>function(e,{open:t,close:n},o,r){let i,l,a=e.sliceDoc(o-50,o),s=e.sliceDoc(r,r+50),c=/\s*$/.exec(a)[0].length,u=/^\s*/.exec(s)[0].length,d=a.length-c;if(a.slice(d-t.length,d)==t&&s.slice(u,u+n.length)==n)return{open:{pos:o-c,margin:c&&1},close:{pos:r+u,margin:u&&1}};r-o<=100?i=l=e.sliceDoc(o,r):(i=e.sliceDoc(o,o+50),l=e.sliceDoc(r-50,r));let p=/^\s*/.exec(i)[0].length,h=/\s*$/.exec(l)[0].length,f=l.length-h-n.length;return i.slice(p,p+t.length)==t&&l.slice(f,f+n.length)==n?{open:{pos:o+p+t.length,margin:/\s/.test(i.charAt(p+t.length))?1:0},close:{pos:r-h-n.length,margin:/\s/.test(l.charAt(f-1))?1:0}}:null}(t,o[n],e.from,e.to)));if(2!=e&&!r.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>r[t]?[]:[{from:e.from,insert:o[t].open+" "},{from:e.to,insert:" "+o[t].close}])))};if(1!=e&&r.some((e=>e))){let e=[];for(let t,n=0;n<r.length;n++)if(t=r[n]){let r=o[n],{open:i,close:l}=t;e.push({from:i.pos-r.open.length,to:i.pos+i.margin},{from:l.pos-l.margin,to:l.pos+r.close.length})}return{changes:e}}return null}function yoe(e,t,n=t.selection.ranges){let o=[],r=-1;for(let{from:i,to:l}of n){let e=o.length,n=1e9,a=voe(t,i).line;if(a){for(let e=i;e<=l;){let s=t.doc.lineAt(e);if(s.from>r&&(i==l||l>s.from)){r=s.from;let e=/^\s*/.exec(s.text)[0].length,t=e==s.length,i=s.text.slice(e,e+a.length)==a?e:-1;e<s.text.length&&e<n&&(n=e),o.push({line:s,comment:i,token:a,indent:e,empty:t,single:!1})}e=s.to+1}if(n<1e9)for(let t=e;t<o.length;t++)o[t].indent<o[t].line.text.length&&(o[t].indent=n);o.length==e+1&&(o[e].single=!0)}}if(2!=e&&o.some((e=>e.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:r,indent:i,empty:l,single:a}of o)!a&&l||e.push({from:t.from+i,insert:r+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&o.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:r}of o)if(n>=0){let o=t.from+n,i=o+r.length;" "==t.text[i-t.from]&&i++,e.push({from:o,to:i})}return{changes:e}}return null}const Ooe=u4.define(),woe=u4.define(),xoe=N3.define(),$oe=N3.define({combine:e=>k4(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,o)=>e(n,o)||t(n,o)})}),Soe=W3.define({create:()=>Loe.empty,update(e,t){let n=t.state.facet($oe),o=t.annotation(Ooe);if(o){let r=Eoe.fromTransaction(t,o.selection),i=o.side,l=0==i?e.undone:e.done;return l=r?Aoe(l,l.length,n.minDepth,r):joe(l,t.startState.selection),new Loe(0==i?o.rest:l,0==i?l:o.rest)}let r=t.annotation(woe);if("full"!=r&&"before"!=r||(e=e.isolate()),!1===t.annotation(f4.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let i=Eoe.fromTransaction(t),l=t.annotation(f4.time),a=t.annotation(f4.userEvent);return i?e=e.addChanges(i,l,a,n,t):t.selection&&(e=e.addSelection(t.startState.selection,l,a,n.newGroupDelay)),"full"!=r&&"after"!=r||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new Loe(e.done.map(Eoe.fromJSON),e.undone.map(Eoe.fromJSON))});function Coe(e={}){return[Soe,$oe.of(e),H7.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?Poe:"historyRedo"==e.inputType?Moe:null;return!!n&&(e.preventDefault(),n(t))}})]}function koe(e,t){return function({state:n,dispatch:o}){if(!t&&n.readOnly)return!1;let r=n.field(Soe,!1);if(!r)return!1;let i=r.pop(e,n,t);return!!i&&(o(i),!0)}}const Poe=koe(0,!1),Moe=koe(1,!1),Toe=koe(0,!0),Ioe=koe(1,!0);class Eoe{constructor(e,t,n,o,r){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=o,this.selectionsAfter=r}setSelAfter(e){return new Eoe(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new Eoe(e.changes&&k3.fromJSON(e.changes),[],e.mapped&&C3.fromJSON(e.mapped),e.startSelection&&D3.fromJSON(e.startSelection),e.selectionsAfter.map(D3.fromJSON))}static fromTransaction(e,t){let n=Doe;for(let o of e.startState.facet(xoe)){let t=o(e);t.length&&(n=n.concat(t))}return!n.length&&e.changes.empty?null:new Eoe(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,Doe)}static selection(e){return new Eoe(void 0,Doe,void 0,void 0,e)}}function Aoe(e,t,n,o){let r=t+1>n+20?t-n-1:0,i=e.slice(r,t);return i.push(o),i}function Roe(e,t){return e.length?t.length?e.concat(t):e:t}const Doe=[];function joe(e,t){if(e.length){let n=e[e.length-1],o=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return o.length&&o[o.length-1].eq(t)?e:(o.push(t),Aoe(e,e.length-1,1e9,n.setSelAfter(o)))}return[Eoe.selection([t])]}function Boe(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function Noe(e,t){if(!e.length)return e;let n=e.length,o=Doe;for(;n;){let r=zoe(e[n-1],t,o);if(r.changes&&!r.changes.empty||r.effects.length){let t=e.slice(0,n);return t[n-1]=r,t}t=r.mapped,n--,o=r.selectionsAfter}return o.length?[Eoe.selection(o)]:Doe}function zoe(e,t,n){let o=Roe(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):Doe,n);if(!e.changes)return Eoe.selection(o);let r=e.changes.map(t),i=t.mapDesc(e.changes,!0),l=e.mapped?e.mapped.composeDesc(i):i;return new Eoe(r,h4.mapEffects(e.effects,t),l,e.startSelection.map(i),o)}const _oe=/^(input\.type|delete)($|\.)/;class Loe{constructor(e,t,n=0,o=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=o}isolate(){return this.prevTime?new Loe(this.done,this.undone):this}addChanges(e,t,n,o,r){let i=this.done,l=i[i.length-1];return i=l&&l.changes&&!l.changes.empty&&e.changes&&(!n||_oe.test(n))&&(!l.selectionsAfter.length&&t-this.prevTime<o.newGroupDelay&&o.joinToEvent(r,function(e,t){let n=[],o=!1;return e.iterChangedRanges(((e,t)=>n.push(e,t))),t.iterChangedRanges(((e,t,r,i)=>{for(let l=0;l<n.length;){let e=n[l++],t=n[l++];i>=e&&r<=t&&(o=!0)}})),o}(l.changes,e.changes))||"input.type.compose"==n)?Aoe(i,i.length-1,o.minDepth,new Eoe(e.changes.compose(l.changes),Roe(e.effects,l.effects),l.mapped,l.startSelection,Doe)):Aoe(i,i.length,o.minDepth,e),new Loe(i,Doe,t,n)}addSelection(e,t,n,o){let r=this.done.length?this.done[this.done.length-1].selectionsAfter:Doe;return r.length>0&&t-this.prevTime<o&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&(i=r[r.length-1],l=e,i.ranges.length==l.ranges.length&&0===i.ranges.filter(((e,t)=>e.empty!=l.ranges[t].empty)).length)?this:new Loe(joe(this.done,e),this.undone,t,n);var i,l}addMapping(e){return new Loe(Noe(this.done,e),Noe(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let o=0==e?this.done:this.undone;if(0==o.length)return null;let r=o[o.length-1],i=r.selectionsAfter[0]||t.selection;if(n&&r.selectionsAfter.length)return t.update({selection:r.selectionsAfter[r.selectionsAfter.length-1],annotations:Ooe.of({side:e,rest:Boe(o),selection:i}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(r.changes){let n=1==o.length?Doe:o.slice(0,o.length-1);return r.mapped&&(n=Noe(n,r.mapped)),t.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:Ooe.of({side:e,rest:n,selection:i}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}Loe.empty=new Loe(Doe,Doe);const Qoe=[{key:"Mod-z",run:Poe,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Moe,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Moe,preventDefault:!0},{key:"Mod-u",run:Toe,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Ioe,preventDefault:!0}];function Hoe(e,t){return D3.create(e.ranges.map(t),e.mainIndex)}function Foe(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function Woe({state:e,dispatch:t},n){let o=Hoe(e.selection,n);return!o.eq(e.selection,!0)&&(t(Foe(e,o)),!0)}function Voe(e,t){return D3.cursor(t?e.to:e.from)}function Zoe(e,t){return Woe(e,(n=>n.empty?e.moveByChar(n,t):Voe(n,t)))}function Xoe(e){return e.textDirectionAt(e.state.selection.main.head)==p8.LTR}const Yoe=e=>Zoe(e,!Xoe(e)),Koe=e=>Zoe(e,Xoe(e));function Goe(e,t){return Woe(e,(n=>n.empty?e.moveByGroup(n,t):Voe(n,t)))}function Uoe(e,t,n){if(t.type.prop(n))return!0;let o=t.to-t.from;return o&&(o>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function qoe(e,t,n){let o,r,i=Fte(e).resolveInner(t.head),l=n?Ree.closedBy:Ree.openedBy;for(let a=t.head;;){let t=n?i.childAfter(a):i.childBefore(a);if(!t)break;Uoe(e,t,l)?i=t:a=n?t.to:t.from}return r=i.type.prop(l)&&(o=n?roe(e,i.from,1):roe(e,i.to,-1))&&o.matched?n?o.end.to:o.end.from:n?i.to:i.from,D3.cursor(r,n?-1:1)}function Joe(e,t){return Woe(e,(n=>{if(!n.empty)return Voe(n,t);let o=e.moveVertically(n,t);return o.head!=n.head?o:e.moveToLineBoundary(n,t)}))}const ere=e=>Joe(e,!1),tre=e=>Joe(e,!0);function nre(e){let t,n=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,o=0,r=0;if(n){for(let t of e.state.facet(H7.scrollMargins)){let n=t(e);(null==n?void 0:n.top)&&(o=Math.max(null==n?void 0:n.top,o)),(null==n?void 0:n.bottom)&&(r=Math.max(null==n?void 0:n.bottom,r))}t=e.scrollDOM.clientHeight-o-r}else t=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:o,marginBottom:r,selfScroll:n,height:Math.max(e.defaultLineHeight,t-5)}}function ore(e,t){let n,o=nre(e),{state:r}=e,i=Hoe(r.selection,(n=>n.empty?e.moveVertically(n,t,o.height):Voe(n,t)));if(i.eq(r.selection))return!1;if(o.selfScroll){let t=e.coordsAtPos(r.selection.main.head),l=e.scrollDOM.getBoundingClientRect(),a=l.top+o.marginTop,s=l.bottom-o.marginBottom;t&&t.top>a&&t.bottom<s&&(n=H7.scrollIntoView(i.main.head,{y:"start",yMargin:t.top-a}))}return e.dispatch(Foe(r,i),{effects:n}),!0}const rre=e=>ore(e,!1),ire=e=>ore(e,!0);function lre(e,t,n){let o=e.lineBlockAt(t.head),r=e.moveToLineBoundary(t,n);if(r.head==t.head&&r.head!=(n?o.to:o.from)&&(r=e.moveToLineBoundary(t,n,!1)),!n&&r.head==o.from&&o.length){let n=/^\s*/.exec(e.state.sliceDoc(o.from,Math.min(o.from+100,o.to)))[0].length;n&&t.head!=o.from+n&&(r=D3.cursor(o.from+n))}return r}function are(e,t){let n=Hoe(e.state.selection,(e=>{let n=t(e);return D3.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(e.state.selection)&&(e.dispatch(Foe(e.state,n)),!0)}function sre(e,t){return are(e,(n=>e.moveByChar(n,t)))}const cre=e=>sre(e,!Xoe(e)),ure=e=>sre(e,Xoe(e));function dre(e,t){return are(e,(n=>e.moveByGroup(n,t)))}function pre(e,t){return are(e,(n=>e.moveVertically(n,t)))}const hre=e=>pre(e,!1),fre=e=>pre(e,!0);function gre(e,t){return are(e,(n=>e.moveVertically(n,t,nre(e).height)))}const mre=e=>gre(e,!1),vre=e=>gre(e,!0),bre=({state:e,dispatch:t})=>(t(Foe(e,{anchor:0})),!0),yre=({state:e,dispatch:t})=>(t(Foe(e,{anchor:e.doc.length})),!0),Ore=({state:e,dispatch:t})=>(t(Foe(e,{anchor:e.selection.main.anchor,head:0})),!0),wre=({state:e,dispatch:t})=>(t(Foe(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function xre(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:o}=e,r=o.changeByRange((o=>{let{from:r,to:i}=o;if(r==i){let l=t(o);l<r?(n="delete.backward",l=$re(e,l,!1)):l>r&&(n="delete.forward",l=$re(e,l,!0)),r=Math.min(r,l),i=Math.max(i,l)}else r=$re(e,r,!1),i=$re(e,i,!0);return r==i?{range:o}:{changes:{from:r,to:i},range:D3.cursor(r,r<o.head?-1:1)}}));return!r.changes.empty&&(e.dispatch(o.update(r,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?H7.announce.of(o.phrase("Selection deleted")):void 0})),!0)}function $re(e,t,n){if(e instanceof H7)for(let o of e.state.facet(H7.atomicRanges).map((t=>t(e))))o.between(t,t,((e,o)=>{e<t&&o>t&&(t=n?o:e)}));return t}const Sre=(e,t)=>xre(e,(n=>{let o,r,i=n.from,{state:l}=e,a=l.doc.lineAt(i);if(!t&&i>a.from&&i<a.from+200&&!/[^ \t]/.test(o=a.text.slice(0,i-a.from))){if("\t"==o[o.length-1])return i-1;let e=F4(o,l.tabSize)%nne(l)||nne(l);for(let t=0;t<e&&" "==o[o.length-1-t];t++)i--;r=i}else r=g3(a.text,i-a.from,t,t)+a.from,r==i&&a.number!=(t?l.doc.lines:1)?r+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(a.text.slice(r-a.from,i-a.from))&&(r=g3(a.text,r-a.from,!1,!1)+a.from);return r})),Cre=e=>Sre(e,!1),kre=e=>Sre(e,!0),Pre=(e,t)=>xre(e,(n=>{let o=n.head,{state:r}=e,i=r.doc.lineAt(o),l=r.charCategorizer(o);for(let e=null;;){if(o==(t?i.to:i.from)){o==n.head&&i.number!=(t?r.doc.lines:1)&&(o+=t?1:-1);break}let a=g3(i.text,o-i.from,t)+i.from,s=i.text.slice(Math.min(o,a)-i.from,Math.max(o,a)-i.from),c=l(s);if(null!=e&&c!=e)break;" "==s&&o==n.head||(e=c),o=a}return o})),Mre=e=>Pre(e,!1);function Tre(e){let t=[],n=-1;for(let o of e.selection.ranges){let r=e.doc.lineAt(o.from),i=e.doc.lineAt(o.to);if(o.empty||o.to!=i.from||(i=e.doc.lineAt(o.to-1)),n>=r.number){let e=t[t.length-1];e.to=i.to,e.ranges.push(o)}else t.push({from:r.from,to:i.to,ranges:[o]});n=i.number+1}return t}function Ire(e,t,n){if(e.readOnly)return!1;let o=[],r=[];for(let i of Tre(e)){if(n?i.to==e.doc.length:0==i.from)continue;let t=e.doc.lineAt(n?i.to+1:i.from-1),l=t.length+1;if(n){o.push({from:i.to,to:t.to},{from:i.from,insert:t.text+e.lineBreak});for(let t of i.ranges)r.push(D3.range(Math.min(e.doc.length,t.anchor+l),Math.min(e.doc.length,t.head+l)))}else{o.push({from:t.from,to:i.from},{from:i.to,insert:e.lineBreak+t.text});for(let e of i.ranges)r.push(D3.range(e.anchor-l,e.head-l))}}return!!o.length&&(t(e.update({changes:o,scrollIntoView:!0,selection:D3.create(r,e.selection.mainIndex),userEvent:"move.line"})),!0)}function Ere(e,t,n){if(e.readOnly)return!1;let o=[];for(let r of Tre(e))n?o.push({from:r.from,insert:e.doc.slice(r.from,r.to)+e.lineBreak}):o.push({from:r.to,insert:e.lineBreak+e.doc.slice(r.from,r.to)});return t(e.update({changes:o,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Are=Rre(!1);function Rre(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let o=t.changeByRange((n=>{let{from:o,to:r}=n,i=t.doc.lineAt(o),l=!e&&o==r&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,o=Fte(e).resolveInner(t),r=o.childBefore(t),i=o.childAfter(t);return r&&i&&r.to<=t&&i.from>=t&&(n=r.type.prop(Ree.closedBy))&&n.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}(t,o);e&&(o=r=(r<=i.to?i:t.doc.lineAt(r)).to);let a=new ine(t,{simulateBreak:o,simulateDoubleBreak:!!l}),s=rne(a,o);for(null==s&&(s=F4(/^\s*/.exec(t.doc.lineAt(o).text)[0],t.tabSize));r<i.to&&/\s/.test(i.text[r-i.from]);)r++;l?({from:o,to:r}=l):o>i.from&&o<i.from+100&&!/\S/.test(i.text.slice(0,o))&&(o=i.from);let c=["",one(t,s)];return l&&c.push(one(t,a.lineIndent(i.from,-1))),{changes:{from:o,to:r,insert:n3.of(c)},range:D3.cursor(o+1+c[1].length)}}));return n(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0}}function Dre(e,t){let n=-1;return e.changeByRange((o=>{let r=[];for(let l=o.from;l<=o.to;){let i=e.doc.lineAt(l);i.number>n&&(o.empty||o.to>i.from)&&(t(i,r,o),n=i.number),l=i.to+1}let i=e.changes(r);return{changes:r,range:D3.range(i.mapPos(o.anchor,1),i.mapPos(o.head,1))}}))}const jre=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Dre(e,((t,n)=>{n.push({from:t.from,insert:e.facet(tne)})})),{userEvent:"input.indent"})),!0),Bre=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Dre(e,((t,n)=>{let o=/^\s*/.exec(t.text)[0];if(!o)return;let r=F4(o,e.tabSize),i=0,l=one(e,Math.max(0,r-nne(e)));for(;i<o.length&&i<l.length&&o.charCodeAt(i)==l.charCodeAt(i);)i++;n.push({from:t.from+i,to:t.from+o.length,insert:l.slice(i)})})),{userEvent:"delete.dedent"})),!0),Nre=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>Woe(e,(t=>qoe(e.state,t,!Xoe(e)))),shift:e=>are(e,(t=>qoe(e.state,t,!Xoe(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>Woe(e,(t=>qoe(e.state,t,Xoe(e)))),shift:e=>are(e,(t=>qoe(e.state,t,Xoe(e))))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>Ire(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>Ere(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>Ire(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>Ere(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,o=null;return n.ranges.length>1?o=D3.create([n.main]):n.main.empty||(o=D3.create([D3.cursor(n.main.head)])),!!o&&(t(Foe(e,o)),!0)}},{key:"Mod-Enter",run:Rre(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=Tre(e).map((({from:t,to:n})=>D3.range(t,Math.min(n+1,e.doc.length))));return t(e.update({selection:D3.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=Hoe(e.selection,(t=>{var n;for(let o=Fte(e).resolveStack(t.from,1);o;o=o.next){let{node:e}=o;if((e.from<t.from&&e.to>=t.to||e.to>t.to&&e.from<=t.from)&&(null===(n=e.parent)||void 0===n?void 0:n.parent))return D3.range(e.to,e.from)}return t}));return t(Foe(e,n)),!0},preventDefault:!0},{key:"Mod-[",run:Bre},{key:"Mod-]",run:jre},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),o=new ine(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),r=Dre(e,((t,r,i)=>{let l=rne(o,t.from);if(null==l)return;/\S/.test(t.text)||(l=0);let a=/^\s*/.exec(t.text)[0],s=one(e,l);(a!=s||i.from<t.from+a.length)&&(n[t.from]=l,r.push({from:t.from,to:t.from+a.length,insert:s}))}));return r.changes.empty||t(e.update(r,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(Tre(t).map((({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n})))),o=Hoe(t.selection,(t=>e.moveVertically(t,!0))).map(n);return e.dispatch({changes:n,selection:o,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>function(e,t,n){let o=!1,r=Hoe(e.selection,(t=>{let r=roe(e,t.head,-1)||roe(e,t.head,1)||t.head>0&&roe(e,t.head-1,1)||t.head<e.doc.length&&roe(e,t.head+1,-1);if(!r||!r.end)return t;o=!0;let i=r.start.from==t.head?r.end.to:r.end.from;return n?D3.range(t.anchor,i):D3.cursor(i)}));return!!o&&(t(Foe(e,r)),!0)}(e,t,!1)},{key:"Mod-/",run:e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),o=voe(e.state,n.from);return o.line?foe(e):!!o.block&&moe(e)}},{key:"Alt-A",run:goe}].concat([{key:"ArrowLeft",run:Yoe,shift:cre,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>Goe(e,!Xoe(e)),shift:e=>dre(e,!Xoe(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>Woe(e,(t=>lre(e,t,!Xoe(e)))),shift:e=>are(e,(t=>lre(e,t,!Xoe(e)))),preventDefault:!0},{key:"ArrowRight",run:Koe,shift:ure,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>Goe(e,Xoe(e)),shift:e=>dre(e,Xoe(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>Woe(e,(t=>lre(e,t,Xoe(e)))),shift:e=>are(e,(t=>lre(e,t,Xoe(e)))),preventDefault:!0},{key:"ArrowUp",run:ere,shift:hre,preventDefault:!0},{mac:"Cmd-ArrowUp",run:bre,shift:Ore},{mac:"Ctrl-ArrowUp",run:rre,shift:mre},{key:"ArrowDown",run:tre,shift:fre,preventDefault:!0},{mac:"Cmd-ArrowDown",run:yre,shift:wre},{mac:"Ctrl-ArrowDown",run:ire,shift:vre},{key:"PageUp",run:rre,shift:mre},{key:"PageDown",run:ire,shift:vre},{key:"Home",run:e=>Woe(e,(t=>lre(e,t,!1))),shift:e=>are(e,(t=>lre(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:bre,shift:Ore},{key:"End",run:e=>Woe(e,(t=>lre(e,t,!0))),shift:e=>are(e,(t=>lre(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:yre,shift:wre},{key:"Enter",run:Are},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:Cre,shift:Cre},{key:"Delete",run:kre},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Mre},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>Pre(e,!0)},{mac:"Mod-Backspace",run:e=>xre(e,(t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}))},{mac:"Mod-Delete",run:e=>xre(e,(t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}))}].concat([{key:"Ctrl-b",run:Yoe,shift:cre,preventDefault:!0},{key:"Ctrl-f",run:Koe,shift:ure},{key:"Ctrl-p",run:ere,shift:hre},{key:"Ctrl-n",run:tre,shift:fre},{key:"Ctrl-a",run:e=>Woe(e,(t=>D3.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>are(e,(t=>D3.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>Woe(e,(t=>D3.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>are(e,(t=>D3.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:kre},{key:"Ctrl-h",run:Cre},{key:"Ctrl-k",run:e=>xre(e,(t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}))},{key:"Ctrl-Alt-h",run:Mre},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:n3.of(["",""])},range:D3.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,o=e.doc.lineAt(n),r=n==o.from?n-1:g3(o.text,n-o.from,!1)+o.from,i=n==o.to?n+1:g3(o.text,n-o.from,!0)+o.from;return{changes:{from:r,to:i,insert:e.doc.slice(n,i).append(e.doc.slice(r,n))},range:D3.cursor(i)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:ire}].map((e=>({mac:e.key,run:e.run,shift:e.shift}))))),zre={key:"Tab",run:jre,shift:Bre};function _re(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var r=n[o];"string"==typeof r?e.setAttribute(o,r):null!=r&&(e[o]=r)}t++}for(;t<arguments.length;t++)Lre(e,arguments[t]);return e}function Lre(e,t){if("string"==typeof t)e.appendChild(document.createTextNode(t));else if(null==t);else if(null!=t.nodeType)e.appendChild(t);else{if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t);for(var n=0;n<t.length;n++)Lre(e,t[n])}}const Qre="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class Hre{constructor(e,t,n=0,o=e.length,r,i){this.test=i,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,o),this.bufferStart=n,this.normalize=r?e=>r(Qre(e)):Qre,this.query=this.normalize(t)}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 O3(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=w3(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=x3(e);let o=this.normalize(t);for(let r=0,i=n;;r++){let e=o.charCodeAt(r),l=this.match(e,i);if(r==o.length-1){if(l)return this.value=l,this;break}i==n&&r<t.length&&t.charCodeAt(r)==e&&i++}}}match(e,t){let n=null;for(let o=0;o<this.matches.length;o+=2){let r=this.matches[o],i=!1;this.query.charCodeAt(r)==e&&(r==this.query.length-1?n={from:this.matches[o+1],to:t+1}:(this.matches[o]++,i=!0)),i||(this.matches.splice(o,2),o-=2)}return this.query.charCodeAt(0)==e&&(1==this.query.length?n={from:t,to:t+1}:this.matches.push(1,t)),n&&this.test&&!this.test(n.from,n.to,this.buffer,this.bufferStart)&&(n=null),n}}"undefined"!=typeof Symbol&&(Hre.prototype[Symbol.iterator]=function(){return this});const Fre={from:-1,to:-1,match:/.*/.exec("")},Wre="gm"+(null==/x/.unicode?"":"u");class Vre{constructor(e,t,n,o=0,r=e.length){if(this.text=e,this.to=r,this.curLine="",this.done=!1,this.value=Fre,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new Yre(e,t,n,o,r);this.re=new RegExp(t,Wre+((null==n?void 0:n.ignoreCase)?"i":"")),this.test=null==n?void 0:n.test,this.iter=e.iter();let i=e.lineAt(o);this.curLineStart=i.from,this.matchPos=Kre(e,o),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.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 e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,o=n+t[0].length;if(this.matchPos=Kre(this.text,o+(n==o?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<o||n>this.value.to)&&(!this.test||this.test(n,o,t)))return this.value={from:n,to:o,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),e=0}}}}const Zre=new WeakMap;class Xre{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let o=Zre.get(e);if(!o||o.from>=n||o.to<=t){let o=new Xre(t,e.sliceString(t,n));return Zre.set(e,o),o}if(o.from==t&&o.to==n)return o;let{text:r,from:i}=o;return i>t&&(r=e.sliceString(t,i)+r,i=t),o.to<n&&(r+=e.sliceString(o.to,n)),Zre.set(e,new Xre(i,r)),new Xre(t,r.slice(t-i,n-i))}}class Yre{constructor(e,t,n,o,r){this.text=e,this.to=r,this.done=!1,this.value=Fre,this.matchPos=Kre(e,o),this.re=new RegExp(t,Wre+((null==n?void 0:n.ignoreCase)?"i":"")),this.test=null==n?void 0:n.test,this.flat=Xre.get(e,o,this.chunkEnd(o+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=Kre(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Xre.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function Kre(e,t){if(t>=e.length)return t;let n,o=e.lineAt(t);for(;t<o.to&&(n=o.text.charCodeAt(t-o.from))>=56320&&n<57344;)t++;return t}function Gre(e){let t=_re("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)});function n(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:o}=e,r=o.doc.lineAt(o.selection.main.head),[,i,l,a,s]=n,c=a?+a.slice(1):0,u=l?+l:r.number;if(l&&s){let e=u/100;i&&(e=e*("-"==i?-1:1)+r.number/o.doc.lines),u=Math.round(o.doc.lines*e)}else l&&i&&(u=u*("-"==i?-1:1)+r.number);let d=o.doc.line(Math.max(1,Math.min(o.doc.lines,u))),p=D3.cursor(d.from+Math.max(0,Math.min(c,d.length)));e.dispatch({effects:[Ure.of(!1),H7.scrollIntoView(p.from,{y:"center"})],selection:p}),e.focus()}return{dom:_re("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:Ure.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:e=>{e.preventDefault(),n()}},_re("label",e.state.phrase("Go to line"),": ",t)," ",_re("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(Vre.prototype[Symbol.iterator]=Yre.prototype[Symbol.iterator]=function(){return this});const Ure=h4.define(),qre=W3.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(Ure)&&(e=n.value);return e},provide:e=>aee.from(e,(e=>e?Gre:null))}),Jre=H7.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),eie={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},tie=N3.define({combine:e=>k4(e,eie,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})});function nie(e){let t=[aie,lie];return e&&t.push(tie.of(e)),t}const oie=o8.mark({class:"cm-selectionMatch"}),rie=o8.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function iie(e,t,n,o){return!(0!=n&&e(t.sliceDoc(n-1,n))==w4.Word||o!=t.doc.length&&e(t.sliceDoc(o,o+1))==w4.Word)}const lie=Z8.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(tie),{state:n}=e,o=n.selection;if(o.ranges.length>1)return o8.none;let r,i=o.main,l=null;if(i.empty){if(!t.highlightWordAroundCursor)return o8.none;let e=n.wordAt(i.head);if(!e)return o8.none;l=n.charCategorizer(i.head),r=n.sliceDoc(e.from,e.to)}else{let e=i.to-i.from;if(e<t.minSelectionLength||e>200)return o8.none;if(t.wholeWords){if(r=n.sliceDoc(i.from,i.to),l=n.charCategorizer(i.head),!iie(l,n,i.from,i.to)||!function(e,t,n,o){return e(t.sliceDoc(n,n+1))==w4.Word&&e(t.sliceDoc(o-1,o))==w4.Word}(l,n,i.from,i.to))return o8.none}else if(r=n.sliceDoc(i.from,i.to).trim(),!r)return o8.none}let a=[];for(let s of e.visibleRanges){let e=new Hre(n.doc,r,s.from,s.to);for(;!e.next().done;){let{from:o,to:r}=e.value;if((!l||iie(l,n,o,r))&&(i.empty&&o<=i.from&&r>=i.to?a.push(rie.range(o,r)):(o>=i.to||r<=i.from)&&a.push(oie.range(o,r)),a.length>t.maxMatches))return o8.none}}return o8.set(a)}},{decorations:e=>e.decorations}),aie=H7.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),sie=N3.define({combine:e=>k4(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new Nie(e),scrollToMatch:e=>H7.scrollIntoView(e)})});class cie{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,Wre),!0}catch(t){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new mie(this):new pie(this)}getCursor(e,t=0,n){let o=e.doc?e:C4.create({doc:e});return null==n&&(n=o.doc.length),this.regexp?hie(this,o,t,n):die(this,o,t,n)}}class uie{constructor(e){this.spec=e}}function die(e,t,n,o){return new Hre(t.doc,e.unquoted,n,o,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?(r=t.doc,i=t.charCategorizer(t.selection.main.head),(e,t,n,o)=>((o>e||o+n.length<t)&&(o=Math.max(0,e-2),n=r.sliceString(o,Math.min(r.length,t+2))),!(i(fie(n,e-o))==w4.Word&&i(gie(n,e-o))==w4.Word||i(gie(n,t-o))==w4.Word&&i(fie(n,t-o))==w4.Word))):void 0);var r,i}class pie extends uie{constructor(e){super(e)}nextMatch(e,t,n){let o=die(this.spec,e,n,e.doc.length).nextOverlapping();return o.done&&(o=die(this.spec,e,0,t).nextOverlapping()),o.done?null:o.value}prevMatchInRange(e,t,n){for(let o=n;;){let n=Math.max(t,o-1e4-this.spec.unquoted.length),r=die(this.spec,e,n,o),i=null;for(;!r.nextOverlapping().done;)i=r.value;if(i)return i;if(n==t)return null;o-=1e4}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=die(this.spec,e,0,e.doc.length),o=[];for(;!n.next().done;){if(o.length>=t)return null;o.push(n.value)}return o}highlight(e,t,n,o){let r=die(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!r.next().done;)o(r.value.from,r.value.to)}}function hie(e,t,n,o){return new Vre(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(r=t.charCategorizer(t.selection.main.head),(e,t,n)=>!n[0].length||(r(fie(n.input,n.index))!=w4.Word||r(gie(n.input,n.index))!=w4.Word)&&(r(gie(n.input,n.index+n[0].length))!=w4.Word||r(fie(n.input,n.index+n[0].length))!=w4.Word)):void 0},n,o);var r}function fie(e,t){return e.slice(g3(e,t,!1),t)}function gie(e,t){return e.slice(t,g3(e,t))}class mie extends uie{nextMatch(e,t,n){let o=hie(this.spec,e,n,e.doc.length).next();return o.done&&(o=hie(this.spec,e,0,t).next()),o.done?null:o.value}prevMatchInRange(e,t,n){for(let o=1;;o++){let r=Math.max(t,n-1e4*o),i=hie(this.spec,e,r,n),l=null;for(;!i.next().done;)l=i.value;if(l&&(r==t||l.from>r+10))return l;if(r==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,((t,n)=>"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n<e.match.length?e.match[n]:t))}matchAll(e,t){let n=hie(this.spec,e,0,e.doc.length),o=[];for(;!n.next().done;){if(o.length>=t)return null;o.push(n.value)}return o}highlight(e,t,n,o){let r=hie(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!r.next().done;)o(r.value.from,r.value.to)}}const vie=h4.define(),bie=h4.define(),yie=W3.define({create:e=>new Oie(Eie(e).create(),null),update(e,t){for(let n of t.effects)n.is(vie)?e=new Oie(n.value.create(),e.panel):n.is(bie)&&(e=new Oie(e.query,n.value?Iie:null));return e},provide:e=>aee.from(e,(e=>e.panel))});class Oie{constructor(e,t){this.query=e,this.panel=t}}const wie=o8.mark({class:"cm-searchMatch"}),xie=o8.mark({class:"cm-searchMatch cm-searchMatch-selected"}),$ie=Z8.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(yie))}update(e){let t=e.state.field(yie);(t!=e.startState.field(yie)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return o8.none;let{view:n}=this,o=new A4;for(let r=0,i=n.visibleRanges,l=i.length;r<l;r++){let{from:t,to:a}=i[r];for(;r<l-1&&a>i[r+1].from-500;)a=i[++r].to;e.highlight(n.state,t,a,((e,t)=>{let r=n.state.selection.ranges.some((n=>n.from==e&&n.to==t));o.add(e,t,r?xie:wie)}))}return o.finish()}},{decorations:e=>e.decorations});function Sie(e){return t=>{let n=t.state.field(yie,!1);return n&&n.query.spec.valid?e(t,n):Die(t)}}const Cie=Sie(((e,{query:t})=>{let{to:n}=e.state.selection.main,o=t.nextMatch(e.state,n,n);if(!o)return!1;let r=D3.single(o.from,o.to),i=e.state.facet(sie);return e.dispatch({selection:r,effects:[Lie(e,o),i.scrollToMatch(r.main,e)],userEvent:"select.search"}),Rie(e),!0})),kie=Sie(((e,{query:t})=>{let{state:n}=e,{from:o}=n.selection.main,r=t.prevMatch(n,o,o);if(!r)return!1;let i=D3.single(r.from,r.to),l=e.state.facet(sie);return e.dispatch({selection:i,effects:[Lie(e,r),l.scrollToMatch(i.main,e)],userEvent:"select.search"}),Rie(e),!0})),Pie=Sie(((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!(!n||!n.length||(e.dispatch({selection:D3.create(n.map((e=>D3.range(e.from,e.to)))),userEvent:"select.search.matches"}),0))})),Mie=Sie(((e,{query:t})=>{let{state:n}=e,{from:o,to:r}=n.selection.main;if(n.readOnly)return!1;let i=t.nextMatch(n,o,o);if(!i)return!1;let l,a,s=[],c=[];if(i.from==o&&i.to==r&&(a=n.toText(t.getReplacement(i)),s.push({from:i.from,to:i.to,insert:a}),i=t.nextMatch(n,i.from,i.to),c.push(H7.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(o).number)+"."))),i){let t=0==s.length||s[0].from>=i.to?0:i.to-i.from-a.length;l=D3.single(i.from-t,i.to-t),c.push(Lie(e,i)),c.push(n.facet(sie).scrollToMatch(l.main,e))}return e.dispatch({changes:s,selection:l,effects:c,userEvent:"input.replace"}),!0})),Tie=Sie(((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map((e=>{let{from:n,to:o}=e;return{from:n,to:o,insert:t.getReplacement(e)}}));if(!n.length)return!1;let o=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:H7.announce.of(o),userEvent:"input.replace.all"}),!0}));function Iie(e){return e.state.facet(sie).createPanel(e)}function Eie(e,t){var n,o,r,i,l;let a=e.selection.main,s=a.empty||a.to>a.from+100?"":e.sliceDoc(a.from,a.to);if(t&&!s)return t;let c=e.facet(sie);return new cie({search:(null!==(n=null==t?void 0:t.literal)&&void 0!==n?n:c.literal)?s:s.replace(/\n/g,"\\n"),caseSensitive:null!==(o=null==t?void 0:t.caseSensitive)&&void 0!==o?o:c.caseSensitive,literal:null!==(r=null==t?void 0:t.literal)&&void 0!==r?r:c.literal,regexp:null!==(i=null==t?void 0:t.regexp)&&void 0!==i?i:c.regexp,wholeWord:null!==(l=null==t?void 0:t.wholeWord)&&void 0!==l?l:c.wholeWord})}function Aie(e){let t=oee(e,Iie);return t&&t.dom.querySelector("[main-field]")}function Rie(e){let t=Aie(e);t&&t==e.root.activeElement&&t.select()}const Die=e=>{let t=e.state.field(yie,!1);if(t&&t.panel){let n=Aie(e);if(n&&n!=e.root.activeElement){let o=Eie(e.state,t.query.spec);o.valid&&e.dispatch({effects:vie.of(o)}),n.focus(),n.select()}}else e.dispatch({effects:[bie.of(!0),t?vie.of(Eie(e.state,t.query.spec)):h4.appendConfig.of(Hie)]});return!0},jie=e=>{let t=e.state.field(yie,!1);if(!t||!t.panel)return!1;let n=oee(e,Iie);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:bie.of(!1)}),!0},Bie=[{key:"Mod-f",run:Die,scope:"editor search-panel"},{key:"F3",run:Cie,shift:kie,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Cie,shift:kie,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:jie,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:o,to:r}=n.main,i=[],l=0;for(let a=new Hre(e.doc,e.sliceDoc(o,r));!a.next().done;){if(i.length>1e3)return!1;a.value.from==o&&(l=i.length),i.push(D3.range(a.value.from,a.value.to))}return t(e.update({selection:D3.create(i,l),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:e=>{let t=oee(e,Gre);if(!t){let n=[Ure.of(!0)];null==e.state.field(qre,!1)&&n.push(h4.appendConfig.of([qre,Jre])),e.dispatch({effects:n}),t=oee(e,Gre)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some((e=>e.from===e.to)))return(({state:e,dispatch:t})=>{let{selection:n}=e,o=D3.create(n.ranges.map((t=>e.wordAt(t.head)||D3.cursor(t.head))),n.mainIndex);return!o.eq(n)&&(t(e.update({selection:o})),!0)})({state:e,dispatch:t});let o=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=o)))return!1;let r=function(e,t){let{main:n,ranges:o}=e.selection,r=e.wordAt(n.head),i=r&&r.from==n.from&&r.to==n.to;for(let l=!1,a=new Hre(e.doc,t,o[o.length-1].to);;){if(a.next(),!a.done){if(l&&o.some((e=>e.from==a.value.from)))continue;if(i){let t=e.wordAt(a.value.from);if(!t||t.from!=a.value.from||t.to!=a.value.to)continue}return a.value}if(l)return null;a=new Hre(e.doc,t,0,Math.max(0,o[o.length-1].from-1)),l=!0}}(e,o);return!!r&&(t(e.update({selection:e.selection.addRange(D3.range(r.from,r.to),!1),effects:H7.scrollIntoView(r.to)})),!0)},preventDefault:!0}];class Nie{constructor(e){this.view=e;let t=this.query=e.state.field(yie).query.spec;function n(e,t,n){return _re("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=_re("input",{value:t.search,placeholder:zie(e,"Find"),"aria-label":zie(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=_re("input",{value:t.replace,placeholder:zie(e,"Replace"),"aria-label":zie(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=_re("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=_re("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=_re("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=_re("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",(()=>Cie(e)),[zie(e,"next")]),n("prev",(()=>kie(e)),[zie(e,"previous")]),n("select",(()=>Pie(e)),[zie(e,"all")]),_re("label",null,[this.caseField,zie(e,"match case")]),_re("label",null,[this.reField,zie(e,"regexp")]),_re("label",null,[this.wordField,zie(e,"by word")]),...e.state.readOnly?[]:[_re("br"),this.replaceField,n("replace",(()=>Mie(e)),[zie(e,"replace")]),n("replaceAll",(()=>Tie(e)),[zie(e,"replace all")])],_re("button",{name:"close",onclick:()=>jie(e),"aria-label":zie(e,"close"),type:"button"},["×"])])}commit(){let e=new cie({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:vie.of(e)}))}keydown(e){var t,n,o;t=this.view,n=e,o="search-panel",e9(q7(t.state),n,t,o)?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?kie:Cie)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),Mie(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(vie)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(sie).top}}function zie(e,t){return e.state.phrase(t)}const _ie=/[\s\.,:;?!]/;function Lie(e,{from:t,to:n}){let o=e.state.doc.lineAt(t),r=e.state.doc.lineAt(n).to,i=Math.max(o.from,t-30),l=Math.min(r,n+30),a=e.state.sliceDoc(i,l);if(i!=o.from)for(let s=0;s<30;s++)if(!_ie.test(a[s+1])&&_ie.test(a[s])){a=a.slice(s);break}if(l!=r)for(let s=a.length-1;s>a.length-30;s--)if(!_ie.test(a[s-1])&&_ie.test(a[s])){a=a.slice(0,s);break}return H7.announce.of(`${e.state.phrase("current match")}. ${a} ${e.state.phrase("on line")} ${o.number}.`)}const Qie=H7.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"}}),Hie=[yie,G3.low($ie),Qie];class Fie{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=Fte(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),o=t.text.slice(n-t.from,this.pos-t.from),r=o.search(Yie(e,!1));return r<0?null:{from:n+r,to:this.pos,text:o.slice(r)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function Wie(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function Vie(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[n,o]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e<r.length;e++)n[r[e]]=!0}let o=Wie(t)+Wie(n)+"*$";return[new RegExp("^"+o),new RegExp(o)]}(t);return e=>{let r=e.matchBefore(o);return r||e.explicit?{from:r?r.from:e.pos,options:t,validFor:n}:null}}class Zie{constructor(e,t,n,o){this.completion=e,this.source=t,this.match=n,this.score=o}}function Xie(e){return e.selection.main.from}function Yie(e,t){var n;let{source:o}=e,r=t&&"^"!=o[0],i="$"!=o[o.length-1];return r||i?new RegExp(`${r?"^":""}(?:${o})${i?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}const Kie=u4.define(),Gie=new WeakMap;function Uie(e){if(!Array.isArray(e))return e;let t=Gie.get(e);return t||Gie.set(e,t=Vie(e)),t}const qie=h4.define(),Jie=h4.define();class ele{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=O3(e,t),o=x3(n);this.chars.push(n);let r=e.slice(t,t+o),i=r.toUpperCase();this.folded.push(O3(i==r?r.toLowerCase():i,0)),t+=o}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,!0}match(e){if(0==this.pattern.length)return this.ret(-100,[]);if(e.length<this.pattern.length)return!1;let{chars:t,folded:n,any:o,precise:r,byWord:i}=this;if(1==t.length){let o=O3(e,0),r=x3(o),i=r==e.length?0:-100;if(o==t[0]);else{if(o!=n[0])return!1;i+=-200}return this.ret(i,[0,r])}let l=e.indexOf(this.pattern);if(0==l)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let a=t.length,s=0;if(l<0){for(let r=0,i=Math.min(e.length,200);r<i&&s<a;){let i=O3(e,r);i!=t[s]&&i!=n[s]||(o[s++]=r),r+=x3(i)}if(s<a)return!1}let c=0,u=0,d=!1,p=0,h=-1,f=-1,g=/[a-z]/.test(e),m=!0;for(let v=0,b=Math.min(e.length,200),y=0;v<b&&u<a;){let o=O3(e,v);l<0&&(c<a&&o==t[c]&&(r[c++]=v),p<a&&(o==t[p]||o==n[p]?(0==p&&(h=v),f=v+1,p++):p=0));let s,b=o<255?o>=48&&o<=57||o>=97&&o<=122?2:o>=65&&o<=90?1:0:(s=w3(o))!=s.toLowerCase()?1:s!=s.toUpperCase()?2:0;(!v||1==b&&g||0==y&&0!=b)&&(t[u]==o||n[u]==o&&(d=!0)?i[u++]=v:i.length&&(m=!1)),y=b,v+=x3(o)}return u==a&&0==i[0]&&m?this.result((d?-200:0)-100,i,e):p==a&&0==h?this.ret(-200-e.length+(f==e.length?0:-100),[0,f]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):p==a?this.ret(-900-e.length,[h,f]):u==a?this.result((d?-200:0)-100-700+(m?0:-1100),i,e):2!=t.length&&this.result((o[0]?-700:0)-200-1100,o,e)}result(e,t,n){let o=[],r=0;for(let i of t){let e=i+(this.astral?x3(O3(n,i)):1);r&&o[r-1]==i?o[r-1]=e:(o[r++]=i,o[r++]=e)}return this.ret(e-n.length,o)}}const tle=N3.define({combine:e=>k4(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:ole,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>nle(e(n),t(n)),optionClass:(e,t)=>n=>nle(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})});function nle(e,t){return e?t?e+" "+t:e:t}function ole(e,t,n,o,r,i){let l,a,s=e.textDirection==p8.RTL,c=s,u=!1,d="top",p=t.left-r.left,h=r.right-t.right,f=o.right-o.left,g=o.bottom-o.top;if(c&&p<Math.min(f,h)?c=!1:!c&&h<Math.min(f,p)&&(c=!0),f<=(c?p:h))l=Math.max(r.top,Math.min(n.top,r.bottom-g))-t.top,a=Math.min(400,c?p:h);else{u=!0,a=Math.min(400,(s?t.right:r.right-t.left)-30);let e=r.bottom-t.bottom;e>=g||e>t.top?l=n.bottom-t.top:(d="bottom",l=t.bottom-n.top)}return{style:`${d}: ${l/((t.bottom-t.top)/i.offsetHeight)}px; max-width: ${a/((t.right-t.left)/i.offsetWidth)}px`,class:"cm-completionInfo-"+(u?s?"left-narrow":"right-narrow":c?"left":"right")}}function rle(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let o=Math.floor((e-t)/n);return{from:e-(o+1)*n,to:e-o*n}}class ile{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let o=e.state.field(t),{options:r,selected:i}=o.open,l=e.state.facet(tle);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n,o){let r=document.createElement("span");r.className="cm-completionLabel";let i=e.displayLabel||e.label,l=0;for(let a=0;a<o.length;){let e=o[a++],t=o[a++];e>l&&r.appendChild(document.createTextNode(i.slice(l,e)));let n=r.appendChild(document.createElement("span"));n.appendChild(document.createTextNode(i.slice(e,t))),n.className="cm-completionMatchedText",l=t}return l<i.length&&r.appendChild(document.createTextNode(i.slice(l))),r},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),t.sort(((e,t)=>e.position-t.position)).map((e=>e.render))}(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=rle(r.length,i,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",(n=>{let{options:o}=e.state.field(t).open;for(let t,r=n.target;r&&r!=this.dom;r=r.parentNode)if("LI"==r.nodeName&&(t=/-(\d+)$/.exec(r.id))&&+t[1]<o.length)return this.applyCompletion(e,o[+t[1]]),void n.preventDefault()})),this.dom.addEventListener("focusout",(t=>{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(tle).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:Jie.of(null)})})),this.showOptions(r,o.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(e){var t;let n=e.state.field(this.stateField),o=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=o){let{options:r,selected:i,disabled:l}=n.open;o.open&&o.open.options==r||(this.range=rle(r.length,i,e.state.facet(tle).maxRenderedOptions),this.showOptions(r,n.id)),this.updateSel(),l!=(null===(t=o.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=rle(t.options.length,t.selected,this.view.state.facet(tle).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:o}=n;if(!o)return;let r="string"==typeof o?document.createTextNode(o):o(n);if(!r)return;"then"in r?r.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,n)})).catch((e=>H8(this.view.state,e,"completion info"))):this.addInfoPane(r,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:o}=e;n.appendChild(t),this.infoDestroy=o||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,o=this.range.from;n;n=n.nextSibling,o++)"LI"==n.nodeName&&n.id?o==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):o--;return t&&function(e,t){let n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=n.height/e.offsetHeight;o.top<n.top?e.scrollTop-=(n.top-o.top)/r:o.bottom>n.bottom&&(e.scrollTop+=(o.bottom-n.bottom)/r)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),o=e.getBoundingClientRect(),r=this.space;if(!r){let e=this.dom.ownerDocument.defaultView||window;r={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}return o.top>Math.min(r.bottom,t.bottom)-10||o.bottom<Math.max(r.top,t.top)+10?null:this.view.state.facet(tle).positionInfo(this.view,t,o,n,r,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,n){const o=document.createElement("ul");o.id=t,o.setAttribute("role","listbox"),o.setAttribute("aria-expanded","true"),o.setAttribute("aria-label",this.view.state.phrase("Completions"));let r=null;for(let i=n.from;i<n.to;i++){let{completion:l,match:a}=e[i],{section:s}=l;if(s){let e="string"==typeof s?s:s.name;e!=r&&(i>n.from||0==n.from)&&(r=e,"string"!=typeof s&&s.header?o.appendChild(s.header(s)):o.appendChild(document.createElement("completion-section")).textContent=e)}const c=o.appendChild(document.createElement("li"));c.id=t+"-"+i,c.setAttribute("role","option");let u=this.optionClass(l);u&&(c.className=u);for(let e of this.optionContent){let t=e(l,this.view.state,this.view,a);t&&c.appendChild(t)}}return n.from&&o.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&o.classList.add("cm-completionListIncompleteBottom"),o}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function lle(e,t){return n=>new ile(n,e,t)}function ale(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class sle{constructor(e,t,n,o,r,i){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=o,this.selected=r,this.disabled=i}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new sle(this.options,dle(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,o,r){let i=function(e,t){let n=[],o=null,r=e=>{n.push(e);let{section:t}=e.completion;if(t){o||(o=[]);let e="string"==typeof t?t:t.name;o.some((t=>t.name==e))||o.push("string"==typeof t?{name:e}:t)}};for(let s of e)if(s.hasResult()){let e=s.result.getMatch;if(!1===s.result.filter)for(let t of s.result.options)r(new Zie(t,s.source,e?e(t):[],1e9-n.length));else{let n=new ele(t.sliceDoc(s.from,s.to));for(let t of s.result.options)if(n.match(t.label)){let o=t.displayLabel?e?e(t,n.matched):[]:n.matched;r(new Zie(t,s.source,o,n.score+(t.boost||0)))}}}if(o){let e=Object.create(null),t=0,r=(e,t)=>{var n,o;return(null!==(n=e.rank)&&void 0!==n?n:1e9)-(null!==(o=t.rank)&&void 0!==o?o:1e9)||(e.name<t.name?-1:1)};for(let n of o.sort(r))t-=1e5,e[n.name]=t;for(let o of n){let{section:t}=o.completion;t&&(o.score+=e["string"==typeof t?t:t.name])}}let i=[],l=null,a=t.facet(tle).compareCompletions;for(let s of n.sort(((e,t)=>t.score-e.score||a(e.completion,t.completion)))){let e=s.completion;!l||l.label!=e.label||l.detail!=e.detail||null!=l.type&&null!=e.type&&l.type!=e.type||l.apply!=e.apply||l.boost!=e.boost?i.push(s):ale(s.completion)>ale(l)&&(i[i.length-1]=s),l=s.completion}return i}(e,t);if(!i.length)return o&&e.some((e=>1==e.state))?new sle(o.options,o.attrs,o.tooltip,o.timestamp,o.selected,!0):null;let l=t.facet(tle).selectOnOpen?0:-1;if(o&&o.selected!=l&&-1!=o.selected){let e=o.options[o.selected].completion;for(let t=0;t<i.length;t++)if(i[t].completion==e){l=t;break}}return new sle(i,dle(n,l),{pos:e.reduce(((e,t)=>t.hasResult()?Math.min(e,t.from):e),1e8),create:Ole,above:r.aboveCursor},o?o.timestamp:Date.now(),l,!1)}map(e){return new sle(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class cle{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new cle(ple,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(tle),o=(n.override||t.languageDataAt("autocomplete",Xie(t)).map(Uie)).map((t=>(this.active.find((e=>e.source==t))||new fle(t,this.active.some((e=>0!=e.state))?1:0)).update(e,n)));o.length==this.active.length&&o.every(((e,t)=>e==this.active[t]))&&(o=this.active);let r=this.open;r&&e.docChanged&&(r=r.map(e.changes)),e.selection||o.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let n=0,o=0;;){for(;n<e.length&&!e[n].hasResult;)n++;for(;o<t.length&&!t[o].hasResult;)o++;let r=n==e.length,i=o==t.length;if(r||i)return r==i;if(e[n++].result!=t[o++].result)return!1}}(o,this.active)?r=sle.build(o,t,this.id,r,n):r&&r.disabled&&!o.some((e=>1==e.state))&&(r=null),!r&&o.every((e=>1!=e.state))&&o.some((e=>e.hasResult()))&&(o=o.map((e=>e.hasResult()?new fle(e.source,0):e)));for(let i of e.effects)i.is(vle)&&(r=r&&r.setSelected(i.value,this.id));return o==this.active&&r==this.open?this:new cle(o,this.id,r)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:ule}}const ule={"aria-autocomplete":"list"};function dle(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const ple=[];function hle(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class fle{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=hle(e),o=this;n?o=o.handleUserEvent(e,n,t):e.docChanged?o=o.handleChange(e):e.selection&&0!=o.state&&(o=new fle(o.source,0));for(let r of e.effects)if(r.is(qie))o=new fle(o.source,1,r.value?Xie(e.state):-1);else if(r.is(Jie))o=new fle(o.source,0);else if(r.is(mle))for(let e of r.value)e.source==o.source&&(o=e);return o}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new fle(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(Xie(e.startState))?new fle(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new fle(this.source,this.state,e.mapPos(this.explicitPos))}}class gle extends fle{constructor(e,t,n,o,r){super(e,2,t),this.result=n,this.from=o,this.to=r}hasResult(){return!0}handleUserEvent(e,t,n){var o;let r=e.changes.mapPos(this.from),i=e.changes.mapPos(this.to,1),l=Xie(e.state);if((this.explicitPos<0?l<=r:l<this.from)||l>i||"delete"==t&&Xie(e.startState)==this.from)return new fle(this.source,"input"==t&&n.activateOnTyping?1:0);let a,s=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function(e,t,n,o){if(!e)return!1;let r=t.sliceDoc(n,o);return"function"==typeof e?e(r,n,o,t):Yie(e,!0).test(r)}(this.result.validFor,e.state,r,i)?new gle(this.source,s,this.result,r,i):this.result.update&&(a=this.result.update(this.result,r,i,new Fie(e.state,l,s>=0)))?new gle(this.source,s,a,a.from,null!==(o=a.to)&&void 0!==o?o:Xie(e.state)):new fle(this.source,1,s)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new fle(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new gle(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}const mle=h4.define({map:(e,t)=>e.map((e=>e.map(t)))}),vle=h4.define(),ble=W3.define({create:()=>cle.start(),update:(e,t)=>e.update(t),provide:e=>[Y9.from(e,(e=>e.tooltip)),H7.contentAttributes.from(e,(e=>e.attrs))]});function yle(e,t){const n=t.completion.apply||t.completion.label;let o=e.state.field(ble).active.find((e=>e.source==t.source));return o instanceof gle&&("string"==typeof n?e.dispatch(Object.assign(Object.assign({},function(e,t,n,o){let{main:r}=e.selection,i=n-r.from,l=o-r.from;return Object.assign(Object.assign({},e.changeByRange((a=>a!=r&&n!=o&&e.sliceDoc(a.from+i,a.from+l)!=e.sliceDoc(n,o)?{range:a}:{changes:{from:a.from+i,to:o==r.from?a.to:a.from+l,insert:t},range:D3.cursor(a.from+i+t.length)}))),{scrollIntoView:!0,userEvent:"input.complete"})}(e.state,n,o.from,o.to)),{annotations:Kie.of(t.completion)})):n(e,t.completion,o.from,o.to),!0)}const Ole=lle(ble,yle);function wle(e,t="option"){return n=>{let o=n.state.field(ble,!1);if(!o||!o.open||o.open.disabled||Date.now()-o.open.timestamp<n.state.facet(tle).interactionDelay)return!1;let r,i=1;"page"==t&&(r=eee(n,o.open.tooltip))&&(i=Math.max(2,Math.floor(r.dom.offsetHeight/r.dom.querySelector("li").offsetHeight)-1));let{length:l}=o.open.options,a=o.open.selected>-1?o.open.selected+i*(e?1:-1):e?0:l-1;return a<0?a="page"==t?0:l-1:a>=l&&(a="page"==t?l-1:0),n.dispatch({effects:vle.of(a)}),!0}}class xle{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const $le=Z8.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of e.state.field(ble).active)1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(ble);if(!e.selectionSet&&!e.docChanged&&e.startState.field(ble)==t)return;let n=e.transactions.some((e=>(e.selection||e.docChanged)&&!hle(e)));for(let o=0;o<this.running.length;o++){let t=this.running[o];if(n||t.updates.length+e.transactions.length>50&&Date.now()-t.time>1e3){for(let e of t.context.abortListeners)try{e()}catch($pe){H8(this.view.state,$pe)}t.context.abortListeners=null,this.running.splice(o--,1)}else t.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let o of e.transactions)"input"==hle(o)?this.composing=2:2==this.composing&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view,t=e.field(ble);for(let n of t.active)1!=n.state||this.running.some((e=>e.active.source==n.source))||this.startQuery(n)}startQuery(e){let{state:t}=this.view,n=Xie(t),o=new Fie(t,n,e.explicitPos==n),r=new xle(e,o);this.running.push(r),Promise.resolve(e.source(o)).then((e=>{r.context.aborted||(r.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:Jie.of(null)}),H8(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(tle).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(tle);for(let o=0;o<this.running.length;o++){let r=this.running[o];if(void 0===r.done)continue;if(this.running.splice(o--,1),r.done){let o=new gle(r.active.source,r.active.explicitPos,r.done,r.done.from,null!==(e=r.done.to)&&void 0!==e?e:Xie(r.updates.length?r.updates[0].startState:this.view.state));for(let e of r.updates)o=o.update(e,n);if(o.hasResult()){t.push(o);continue}}let i=this.view.state.field(ble).active.find((e=>e.source==r.active.source));if(i&&1==i.state)if(null==r.done){let e=new fle(r.active.source,0);for(let t of r.updates)e=e.update(t,n);1!=e.state&&t.push(e)}else this.startQuery(i)}t.length&&this.view.dispatch({effects:mle.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(ble,!1);if(t&&t.tooltip&&this.view.state.facet(tle).closeOnBlur){let n=t.open&&eee(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||this.view.dispatch({effects:Jie.of(null)})}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:qie.of(!1)})),20),this.composing=0}}}),Sle=H7.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 Cle{constructor(e,t,n,o){this.field=e,this.line=t,this.from=n,this.to=o}}class kle{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,S3.TrackDel),n=e.mapPos(this.to,1,S3.TrackDel);return null==t||null==n?null:new kle(this.field,t,n)}}class Ple{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],o=[t],r=e.doc.lineAt(t),i=/^\s*/.exec(r.text)[0];for(let l of this.lines){if(n.length){let n=i,r=/^\t*/.exec(l)[0].length;for(let t=0;t<r;t++)n+=e.facet(tne);o.push(t+n.length-r),l=n+l.slice(r)}n.push(l),t+=l.length+1}return{text:n,ranges:this.fieldPositions.map((e=>new kle(e.field,o[e.line]+e.from,o[e.line]+e.to)))}}static parse(e){let t,n=[],o=[],r=[];for(let i of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(i);){let e=t[1]?+t[1]:null,l=t[2]||t[3]||"",a=-1;for(let t=0;t<n.length;t++)(null!=e?n[t].seq==e:l&&n[t].name==l)&&(a=t);if(a<0){let t=0;for(;t<n.length&&(null==e||null!=n[t].seq&&n[t].seq<e);)t++;n.splice(t,0,{seq:e,name:l}),a=t;for(let e of r)e.field>=a&&e.field++}r.push(new Cle(a,o.length,t.index,t.index+l.length)),i=i.slice(0,t.index)+l+i.slice(t.index+t[0].length)}for(let e;e=/\\([{}])/.exec(i);){i=i.slice(0,e.index)+e[1]+i.slice(e.index+e[0].length);for(let t of r)t.line==o.length&&t.from>e.index&&(t.from--,t.to--)}o.push(i)}return new Ple(o,r)}}let Mle=o8.widget({widget:new class extends t8{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),Tle=o8.mark({class:"cm-snippetField"});class Ile{constructor(e,t){this.ranges=e,this.active=t,this.deco=o8.set(e.map((e=>(e.from==e.to?Mle:Tle).range(e.from,e.to))))}map(e){let t=[];for(let n of this.ranges){let o=n.map(e);if(!o)return null;t.push(o)}return new Ile(t,this.active)}selectionInsideField(e){return e.ranges.every((e=>this.ranges.some((t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))))}}const Ele=h4.define({map:(e,t)=>e&&e.map(t)}),Ale=h4.define(),Rle=W3.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(Ele))return n.value;if(n.is(Ale)&&e)return new Ile(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>H7.decorations.from(e,(e=>e?e.deco:o8.none))});function Dle(e,t){return D3.create(e.filter((e=>e.field==t)).map((e=>D3.range(e.from,e.to))))}function jle(e){let t=Ple.parse(e);return(e,n,o,r)=>{let{text:i,ranges:l}=t.instantiate(e.state,o),a={changes:{from:o,to:r,insert:n3.of(i)},scrollIntoView:!0,annotations:n?Kie.of(n):void 0};if(l.length&&(a.selection=Dle(l,0)),l.length>1){let t=new Ile(l,0),n=a.effects=[Ele.of(t)];void 0===e.state.field(Rle,!1)&&n.push(h4.appendConfig.of([Rle,_le,Qle,Sle]))}e.dispatch(e.state.update(a))}}function Ble(e){return({state:t,dispatch:n})=>{let o=t.field(Rle,!1);if(!o||e<0&&0==o.active)return!1;let r=o.active+e,i=e>0&&!o.ranges.some((t=>t.field==r+e));return n(t.update({selection:Dle(o.ranges,r),effects:Ele.of(i?null:new Ile(o.ranges,r)),scrollIntoView:!0})),!0}}const Nle=[{key:"Tab",run:Ble(1),shift:Ble(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(Rle,!1)&&(t(e.update({effects:Ele.of(null)})),!0)}],zle=N3.define({combine:e=>e.length?e[0]:Nle}),_le=G3.highest(G7.compute([zle],(e=>e.facet(zle))));function Lle(e,t){return Object.assign(Object.assign({},t),{apply:jle(e)})}const Qle=H7.domEventHandlers({mousedown(e,t){let n,o=t.state.field(Rle,!1);if(!o||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let r=o.ranges.find((e=>e.from<=n&&e.to>=n));return!(!r||r.field==o.active||(t.dispatch({selection:Dle(o.ranges,r.field),effects:Ele.of(o.ranges.some((e=>e.field>r.field))?new Ile(o.ranges,r.field):null),scrollIntoView:!0}),0))}}),Hle={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Fle=h4.define({map(e,t){let n=t.mapPos(e,-1,S3.TrackAfter);return null==n?void 0:n}}),Wle=new class extends P4{};Wle.startSide=1,Wle.endSide=-1;const Vle=W3.define({create:()=>E4.empty,update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(Fle)&&(e=e.update({add:[Wle.range(n.value,n.value+1)]}));return e}}),Zle="()[]{}<>";function Xle(e){for(let t=0;t<8;t+=2)if(Zle.charCodeAt(t)==e)return Zle.charAt(t+1);return w3(e<128?e:e+1)}function Yle(e,t){return e.languageDataAt("closeBrackets",t)[0]||Hle}const Kle="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),Gle=H7.inputHandler.of(((e,t,n,o)=>{if((Kle?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let r=e.state.selection.main;if(o.length>2||2==o.length&&1==x3(O3(o,0))||t!=r.from||n!=r.to)return!1;let i=function(e,t){let n=Yle(e,e.selection.main.head),o=n.brackets||Hle.brackets;for(let r of o){let i=Xle(O3(r,0));if(t==r)return i==r?nae(e,r,o.indexOf(r+r+r)>-1,n):eae(e,r,i,n.before||Hle.before);if(t==i&&qle(e,e.selection.main.from))return tae(e,0,i)}return null}(e.state,o);return!!i&&(e.dispatch(i),!0)})),Ule=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Yle(e,e.selection.main.head).brackets||Hle.brackets,o=null,r=e.changeByRange((t=>{if(t.empty){let o=function(e,t){let n=e.sliceString(t-2,t);return x3(O3(n,0))==n.length?n:n.slice(1)}(e.doc,t.head);for(let r of n)if(r==o&&Jle(e.doc,t.head)==Xle(O3(r,0)))return{changes:{from:t.head-r.length,to:t.head+r.length},range:D3.cursor(t.head-r.length)}}return{range:o=t}}));return o||t(e.update(r,{scrollIntoView:!0,userEvent:"delete.backward"})),!o}}];function qle(e,t){let n=!1;return e.field(Vle).between(0,e.doc.length,(e=>{e==t&&(n=!0)})),n}function Jle(e,t){let n=e.sliceString(t,t+2);return n.slice(0,x3(O3(n,0)))}function eae(e,t,n,o){let r=null,i=e.changeByRange((i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:n,from:i.to}],effects:Fle.of(i.to+t.length),range:D3.range(i.anchor+t.length,i.head+t.length)};let l=Jle(e.doc,i.head);return!l||/\s/.test(l)||o.indexOf(l)>-1?{changes:{insert:t+n,from:i.head},effects:Fle.of(i.head+t.length),range:D3.cursor(i.head+t.length)}:{range:r=i}}));return r?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function tae(e,t,n){let o=null,r=e.changeByRange((t=>t.empty&&Jle(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:D3.cursor(t.head+n.length)}:o={range:t}));return o?null:e.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function nae(e,t,n,o){let r=o.stringPrefixes||Hle.stringPrefixes,i=null,l=e.changeByRange((o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:t,from:o.to}],effects:Fle.of(o.to+t.length),range:D3.range(o.anchor+t.length,o.head+t.length)};let l,a=o.head,s=Jle(e.doc,a);if(s==t){if(oae(e,a))return{changes:{insert:t+t,from:a},effects:Fle.of(a+t.length),range:D3.cursor(a+t.length)};if(qle(e,a)){let o=n&&e.sliceDoc(a,a+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:a,to:a+o.length,insert:o},range:D3.cursor(a+o.length)}}}else{if(n&&e.sliceDoc(a-2*t.length,a)==t+t&&(l=rae(e,a-2*t.length,r))>-1&&oae(e,l))return{changes:{insert:t+t+t+t,from:a},effects:Fle.of(a+t.length),range:D3.cursor(a+t.length)};if(e.charCategorizer(a)(s)!=w4.Word&&rae(e,a,r)>-1&&!function(e,t,n,o){let r=Fte(e).resolveInner(t,-1),i=o.reduce(((e,t)=>Math.max(e,t.length)),0);for(let l=0;l<5;l++){let l=e.sliceDoc(r.from,Math.min(r.to,r.from+n.length+i)),a=l.indexOf(n);if(!a||a>-1&&o.indexOf(l.slice(0,a))>-1){let t=r.firstChild;for(;t&&t.from==r.from&&t.to-t.from>n.length+a;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let s=r.to==t&&r.parent;if(!s)break;r=s}return!1}(e,a,t,r))return{changes:{insert:t+t,from:a},effects:Fle.of(a+t.length),range:D3.cursor(a+t.length)}}return{range:i=o}}));return i?null:e.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function oae(e,t){let n=Fte(e).resolveInner(t+1);return n.parent&&n.from==t}function rae(e,t,n){let o=e.charCategorizer(t);if(o(e.sliceDoc(t-1,t))!=w4.Word)return t;for(let r of n){let n=t-r.length;if(e.sliceDoc(n,t)==r&&o(e.sliceDoc(n-1,n))!=w4.Word)return n}return-1}function iae(e={}){return[ble,tle.of(e),$le,aae,Sle]}const lae=[{key:"Ctrl-Space",run:e=>!!e.state.field(ble,!1)&&(e.dispatch({effects:qie.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(ble,!1);return!(!t||!t.active.some((e=>0!=e.state))||(e.dispatch({effects:Jie.of(null)}),0))}},{key:"ArrowDown",run:wle(!0)},{key:"ArrowUp",run:wle(!1)},{key:"PageDown",run:wle(!0,"page")},{key:"PageUp",run:wle(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(ble,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(tle).interactionDelay)&&yle(e,t.open.options[t.open.selected])}}],aae=G3.highest(G7.computeN([tle],(e=>e.facet(tle).defaultKeymap?[lae]:[])));class sae{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class cae{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let o=e,r=n.facet($ae).markerFilter;r&&(o=r(o));let i=o8.set(o.map((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?o8.widget({widget:new Mae(e),diagnostic:e}).range(e.from):o8.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity+(e.markClass?" "+e.markClass:"")},diagnostic:e}).range(e.from,e.to))),!0);return new cae(i,t,uae(i))}}function uae(e,t=null,n=0){let o=null;return e.between(n,1e9,((e,n,{spec:r})=>{if(!t||r.diagnostic==t)return o=new sae(e,n,r.diagnostic),!1})),o}function dae(e,t){let n=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((e=>e.is(hae)))&&!e.changes.touchesRange(n.from,n.to))}function pae(e,t){return e.field(mae,!1)?t:t.concat(h4.appendConfig.of(Hae))}const hae=h4.define(),fae=h4.define(),gae=h4.define(),mae=W3.define({create:()=>new cae(o8.none,null,null),update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),o=null;if(e.selected){let r=t.changes.mapPos(e.selected.from,1);o=uae(n,e.selected.diagnostic,r)||uae(n,null,r)}e=new cae(n,e.panel,o)}for(let n of t.effects)n.is(hae)?e=cae.init(n.value,e.panel,t.state):n.is(fae)?e=new cae(e.diagnostics,n.value?Iae.open:null,e.selected):n.is(gae)&&(e=new cae(e.diagnostics,e.panel,n.value));return e},provide:e=>[aee.from(e,(e=>e.panel)),H7.decorations.from(e,(e=>e.diagnostics))]}),vae=o8.mark({class:"cm-lintRange cm-lintRange-active"});function bae(e,t,n){let{diagnostics:o}=e.state.field(mae),r=[],i=2e8,l=0;o.between(t-(n<0?1:0),t+(n>0?1:0),((e,o,{spec:a})=>{t>=e&&t<=o&&(e==o||(t>e||n>0)&&(t<o||n<0))&&(r.push(a.diagnostic),i=Math.min(e,i),l=Math.max(o,l))}));let a=e.state.facet($ae).tooltipFilter;return a&&(r=a(r)),r.length?{pos:i,end:l,above:e.state.doc.lineAt(i).to<l,create:()=>({dom:yae(e,r)})}:null}function yae(e,t){return _re("ul",{class:"cm-tooltip-lint"},t.map((t=>Pae(e,t,!1))))}const Oae=e=>{let t=e.state.field(mae,!1);return!(!t||!t.panel||(e.dispatch({effects:fae.of(!1)}),0))},wae=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(mae,!1);t&&t.panel||e.dispatch({effects:pae(e.state,[fae.of(!0)])});let n=oee(e,Iae.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(mae,!1);if(!t)return!1;let n=e.state.selection.main,o=t.diagnostics.iter(n.to+1);return!(!o.value&&(o=t.diagnostics.iter(0),!o.value||o.from==n.from&&o.to==n.to)||(e.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0}),0))}}],xae=Z8.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet($ae);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){let e=Date.now();if(e<this.lintTime-10)this.timeout=setTimeout(this.run,this.lintTime-e);else{this.set=!1;let{state:e}=this.view,{sources:t}=e.facet($ae);Promise.all(t.map((e=>Promise.resolve(e(this.view))))).then((t=>{let n=t.reduce(((e,t)=>e.concat(t)));this.view.state.doc==e.doc&&this.view.dispatch(function(e,t){return{effects:pae(e,[hae.of(t)])}}(this.view.state,n))}),(e=>{H8(this.view.state,e)}))}}update(e){let t=e.state.facet($ae);(e.docChanged||t!=e.startState.facet($ae)||t.needsRefresh&&t.needsRefresh(e))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),$ae=N3.define({combine:e=>Object.assign({sources:e.map((e=>e.source))},k4(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))});function Sae(e,t={}){return[$ae.of({source:e,config:t}),xae,Hae]}function Cae(e){let t=e.plugin(xae);t&&t.force()}function kae(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;e<n.length;e++){let o=n[e];if(/[a-zA-Z]/.test(o)&&!t.some((e=>e.toLowerCase()==o.toLowerCase()))){t.push(o);continue e}}t.push("")}return t}function Pae(e,t,n){var o;let r=n?kae(t.actions):[];return _re("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},_re("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(o=t.actions)||void 0===o?void 0:o.map(((n,o)=>{let i=!1,l=o=>{if(o.preventDefault(),i)return;i=!0;let r=uae(e.state.field(mae).diagnostics,t);r&&n.apply(e,r.from,r.to)},{name:a}=n,s=r[o]?a.indexOf(r[o]):-1,c=s<0?a:[a.slice(0,s),_re("u",a.slice(s,s+1)),a.slice(s+1)];return _re("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${a}${s<0?"":` (access key "${r[o]})"`}.`},c)})),t.source&&_re("div",{class:"cm-diagnosticSource"},t.source))}class Mae extends t8{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return _re("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class Tae{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=Pae(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Iae{constructor(e){this.view=e,this.items=[],this.list=_re("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)Oae(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],o=kae(n.actions);for(let r=0;r<o.length;r++)if(o[r].toUpperCase().charCodeAt(0)==t.keyCode){let t=uae(this.view.state.field(mae).diagnostics,n);t&&n.actions[r].apply(e,t.from,t.to)}}}t.preventDefault()},onclick:e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)}}),this.dom=_re("div",{class:"cm-panel-lint"},this.list,_re("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>Oae(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(mae).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(mae),n=0,o=!1,r=null;for(e.between(0,this.view.state.doc.length,((e,i,{spec:l})=>{let a,s=-1;for(let t=n;t<this.items.length;t++)if(this.items[t].diagnostic==l.diagnostic){s=t;break}s<0?(a=new Tae(this.view,l.diagnostic),this.items.splice(n,0,a),o=!0):(a=this.items[s],s>n&&(this.items.splice(n,s-n),o=!0)),t&&a.diagnostic==t.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),r=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++}));n<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)o=!0,this.items.pop();0==this.items.length&&(this.items.push(new Tae(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),o=!0),r?(this.list.setAttribute("aria-activedescendant",r.id),this.view.requestMeasure({key:this,read:()=>({sel:r.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/n:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),o&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=uae(this.view.state.field(mae).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:gae.of(t)})}static open(e){return new Iae(e)}}function Eae(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}function Aae(e){return Eae(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const Rae=H7.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:Aae("#d11")},".cm-lintRange-warning":{backgroundImage:Aae("orange")},".cm-lintRange-info":{backgroundImage:Aae("#999")},".cm-lintRange-hint":{backgroundImage:Aae("#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 Dae(e){return"error"==e?4:"warning"==e?3:"info"==e?2:1}class jae extends see{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce(((e,t)=>Dae(e)<Dae(t.severity)?t.severity:e),"hint")}toDOM(e){let t=document.createElement("div");t.className="cm-lint-marker cm-lint-marker-"+this.severity;let n=this.diagnostics,o=e.state.facet(Fae).tooltipFilter;return o&&(n=o(n)),n.length&&(t.onmouseover=()=>function(e,t,n){function o(){let o=e.elementAtHeight(t.getBoundingClientRect().top+5-e.documentTop);e.coordsAtPos(o.from)&&e.dispatch({effects:_ae.of({pos:o.from,above:!1,create:()=>({dom:yae(e,n),getCoords:()=>t.getBoundingClientRect()})})}),t.onmouseout=t.onmousemove=null,function(e,t){let n=o=>{let r=t.getBoundingClientRect();if(!(o.clientX>r.left-10&&o.clientX<r.right+10&&o.clientY>r.top-10&&o.clientY<r.bottom+10)){for(let e=o.target;e;e=e.parentNode)if(1==e.nodeType&&e.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",n),e.state.field(Lae)&&e.dispatch({effects:_ae.of(null)})}};window.addEventListener("mousemove",n)}(e,t)}let{hoverTime:r}=e.state.facet(Fae),i=setTimeout(o,r);t.onmouseout=()=>{clearTimeout(i),t.onmouseout=t.onmousemove=null},t.onmousemove=()=>{clearTimeout(i),i=setTimeout(o,r)}}(e,t,n)),t}}function Bae(e,t){let n=Object.create(null);for(let r of t){let t=e.lineAt(r.from);(n[t.from]||(n[t.from]=[])).push(r)}let o=[];for(let r in n)o.push(new jae(n[r]).range(+r));return E4.of(o,!0)}const Nae=pee({class:"cm-gutter-lint",markers:e=>e.state.field(zae)}),zae=W3.define({create:()=>E4.empty,update(e,t){e=e.map(t.changes);let n=t.state.facet(Fae).markerFilter;for(let o of t.effects)if(o.is(hae)){let r=o.value;n&&(r=n(r||[])),e=Bae(t.state.doc,r.slice(0))}return e}}),_ae=h4.define(),Lae=W3.define({create:()=>null,update:(e,t)=>(e&&t.docChanged&&(e=dae(t,e)?null:Object.assign(Object.assign({},e),{pos:t.changes.mapPos(e.pos)})),t.effects.reduce(((e,t)=>t.is(_ae)?t.value:e),e)),provide:e=>Y9.from(e)}),Qae=H7.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:Eae('<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>')},".cm-lint-marker-warning":{content:Eae('<path fill="#fe8" stroke="#fd7" stroke-width="6" stroke-linejoin="round" d="M20 6L37 35L3 35Z"/>')},".cm-lint-marker-error":{content:Eae('<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>')}}),Hae=[mae,H7.decorations.compute([mae],(e=>{let{selected:t,panel:n}=e.field(mae);return t&&n&&t.from!=t.to?o8.set([vae.range(t.from,t.to)]):o8.none})),J9(bae,{hideOn:dae}),Rae],Fae=N3.define({combine:e=>k4(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})});function Wae(e={}){return[Fae.of(e),zae,Nae,Qae,Lae]}const Vae=(()=>[kee(),Tee,k9(),Coe(),Nne(),c9(),[v9,b9],C4.allowMultipleSelections.of(!0),C4.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:o}=e.newSelection.main,r=n.lineAt(o);if(o>r.from+200)return e;let i=n.sliceString(r.from,o);if(!t.some((e=>e.test(i))))return e;let{state:l}=e,a=-1,s=[];for(let{head:c}of l.selection.ranges){let e=l.doc.lineAt(c);if(e.from==a)continue;a=e.from;let t=rne(l,e.from);if(null==t)continue;let n=/^\s*/.exec(e.text)[0],o=one(l,t);n!=o&&s.push({from:e.from,to:e.from+n.length,insert:o})}return s.length?[e,{changes:s,sequential:!0}]:e})),Fne(Zne,{fallback:!0}),eoe(),[Gle,Vle],iae(),B9(),_9(),E9,nie(),G7.of([...Ule,...Nre,...Bie,...Qoe,...Mne,...lae,...wae])])(),Zae=(()=>[k9(),Coe(),c9(),Fne(Zne,{fallback:!0}),G7.of([...Nre,...Qoe])])();function Xae(e,t={},n){const{props:o,domProps:r,on:i,...l}=t,a=i?(e=>e?Object.entries(e).reduce(((e,[t,n])=>({...e,[t=`on${t=t.charAt(0).toUpperCase()+t.slice(1)}`]:n})),{}):{})(i):{};return Yr(e,{...l,...o,...r,...a},n)}var Yae=Ln({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":e=>!0,update:e=>!0,ready:e=>!0,focus:e=>!0,change:e=>!0,destroy:()=>!0},setup(e,t){const n=Ot(),o=Ot(e.modelValue),r=wt(new H7),i=Xr({get:()=>r.value.hasFocus,set:e=>{e&&r.value.focus()}}),l=Xr({get:()=>r.value.state.selection,set:e=>r.value.dispatch({selection:e})}),a=Xr({get:()=>r.value.state.selection.main.head,set:e=>r.value.dispatch({selection:{anchor:e}})}),s=Xr({get:()=>r.value.state.toJSON(),set:e=>r.value.setState(C4.fromJSON(e))}),c=Ot(0),u=Ot(0),d=Xr((()=>{const n=new q3,o=new q3;return[e.basic?Vae:void 0,e.minimal&&!e.basic?Zae:void 0,H7.updateListener.of((n=>{t.emit("focus",r.value.hasFocus),c.value=r.value.state.doc.length,!n.changes.empty&&n.docChanged&&(e.linter&&(e.forceLinting&&Cae(r.value),u.value=e.linter(r.value).length),t.emit("update",n))})),H7.theme(e.theme,{dark:e.dark}),e.wrap?H7.lineWrapping:void 0,e.tab?G7.of([zre]):void 0,C4.allowMultipleSelections.of(e.allowMultipleSelections),e.tabSize?o.of(C4.tabSize.of(e.tabSize)):void 0,e.phrases?C4.phrases.of(e.phrases):void 0,C4.readOnly.of(e.readonly),H7.editable.of(!e.disabled),e.lineSeparator?C4.lineSeparator.of(e.lineSeparator):void 0,e.lang?n.of(e.lang):void 0,e.linter?Sae(e.linter,e.linterConfig):void 0,e.linter&&e.gutter?Wae(e.gutterConfig):void 0,e.placeholder?(i=e.placeholder,Z8.fromClass(class{constructor(e){this.view=e,this.placeholder=i?o8.set([o8.widget({widget:new A9(i),side:1}).range(0)]):o8.none}get decorations(){return this.view.state.doc.length?o8.none:this.placeholder}},{decorations:e=>e.decorations})):void 0,...e.extensions].filter((e=>!!e));var i}));wn(d,(e=>{var t;null==(t=r.value)||t.dispatch({effects:h4.reconfigure.of(e)})}),{immediate:!0}),wn((()=>e.modelValue),(async t=>{r.value.composing||r.value.state.doc.toJSON().join(e.lineSeparator??"\n")===t||r.value.dispatch({changes:{from:0,to:r.value.state.doc.length,insert:t},selection:r.value.state.selection,scrollIntoView:!0})}),{immediate:!0}),Gn((async()=>{let e=o.value;n.value&&(n.value.childNodes[0]&&(o.value,e=n.value.childNodes[0].innerText.trim()),r.value=new H7({parent:n.value,state:C4.create({doc:e,extensions:d.value}),dispatch:e=>{r.value.update([e]),!e.changes.empty&&e.docChanged&&(t.emit("update:modelValue",e.state.doc.toString()),t.emit("change",e.state))}}),await Vt(),t.emit("ready",{view:r.value,state:r.value.state,container:n.value}))})),eo((()=>{r.value.destroy(),t.emit("destroy")}));const p={editor:n,view:r,cursor:a,selection:l,focus:i,length:c,json:s,diagnosticCount:u,dom:r.value.contentDOM,lint:()=>{!e.linter||!r.value||(e.forceLinting&&Cae(r.value),u.value=function(e){let t=e.field(mae,!1);return t?t.diagnostics.size:0}(r.value.state))},forceReconfigure:()=>{var e,t;null==(e=r.value)||e.dispatch({effects:h4.reconfigure.of([])}),null==(t=r.value)||t.dispatch({effects:h4.appendConfig.of(d.value)})},getRange:(e,t)=>r.value.state.sliceDoc(e,t),getLine:e=>r.value.state.doc.line(e+1).text,lineCount:()=>r.value.state.doc.lines,getCursor:()=>r.value.state.selection.main.head,listSelections:()=>{let e;return null!==(e=r.value.state.selection.ranges)&&void 0!==e?e:[]},getSelection:()=>{let e;return null!==(e=r.value.state.sliceDoc(r.value.state.selection.main.from,r.value.state.selection.main.to))&&void 0!==e?e:""},getSelections:()=>{const e=r.value.state;return e?e.selection.ranges.map((t=>e.sliceDoc(t.from,t.to))):[]},somethingSelected:()=>r.value.state.selection.ranges.some((e=>!e.empty)),replaceRange:(e,t,n)=>r.value.dispatch({changes:{from:t,to:n,insert:e}}),replaceSelection:e=>r.value.dispatch(r.value.state.replaceSelection(e)),setCursor:e=>r.value.dispatch({selection:{anchor:e}}),setSelection:(e,t)=>r.value.dispatch({selection:{anchor:e,head:t}}),setSelections:(e,t)=>r.value.dispatch({selection:D3.create(e,t)}),extendSelectionsBy:e=>r.value.dispatch({selection:D3.create(l.value.ranges.map((t=>t.extend(e(t)))))})};return t.expose(p),p},render(){return Xae(this.$props.tag,{ref:"editor",class:"vue-codemirror"},this.$slots.default?Xae("aside",{style:"display: none;","aria-hidden":"true"},"function"==typeof(e=this.$slots.default)?e():e):void 0);var e}});const Kae="#e06c75",Gae="#abb2bf",Uae="#7d8799",qae="#d19a66",Jae="#2c313a",ese="#282c34",tse="#353a42",nse="#528bff",ose=[H7.theme({"&":{color:Gae,backgroundColor:ese},".cm-content":{caretColor:nse},".cm-cursor, .cm-dropCursor":{borderLeftColor:nse},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:Gae},".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:ese,color:Uae,border:"none"},".cm-activeLineGutter":{backgroundColor:Jae},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:tse},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:tse,borderBottomColor:tse},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Jae,color:Gae}}},{dark:!0}),Fne(_ne.define([{tag:jte.keyword,color:"#c678dd"},{tag:[jte.name,jte.deleted,jte.character,jte.propertyName,jte.macroName],color:Kae},{tag:[jte.function(jte.variableName),jte.labelName],color:"#61afef"},{tag:[jte.color,jte.constant(jte.name),jte.standard(jte.name)],color:qae},{tag:[jte.definition(jte.name),jte.separator],color:Gae},{tag:[jte.typeName,jte.className,jte.number,jte.changed,jte.annotation,jte.modifier,jte.self,jte.namespace],color:"#e5c07b"},{tag:[jte.operator,jte.operatorKeyword,jte.url,jte.escape,jte.regexp,jte.link,jte.special(jte.string)],color:"#56b6c2"},{tag:[jte.meta,jte.comment],color:Uae},{tag:jte.strong,fontWeight:"bold"},{tag:jte.emphasis,fontStyle:"italic"},{tag:jte.strikethrough,textDecoration:"line-through"},{tag:jte.link,color:Uae,textDecoration:"underline"},{tag:jte.heading,fontWeight:"bold",color:Kae},{tag:[jte.atom,jte.bool,jte.special(jte.variableName)],color:qae},{tag:[jte.processingInstruction,jte.string,jte.inserted],color:"#98c379"},{tag:jte.invalid,color:"#ffffff"}]))];var rse={};class ise{constructor(e,t,n,o,r,i,l,a,s,c=0,u){this.p=e,this.stack=t,this.state=n,this.reducePos=o,this.pos=r,this.score=i,this.buffer=l,this.bufferBase=a,this.curContext=s,this.lookAhead=c,this.parent=u}toString(){return`[${this.stack.filter(((e,t)=>t%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let o=e.parser.context;return new ise(e,[],t,n,n,0,[],0,o?new lse(o,o.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,o=65535&e,{parser:r}=this.p,i=r.dynamicPrecedence(o);if(i&&(this.score+=i),0==n)return this.pushState(r.getGoto(this.state,o,!0),this.reducePos),o<r.minRepeatTerm&&this.storeNode(o,this.reducePos,this.reducePos,4,!0),void this.reduceContext(o,this.reducePos);let l=this.stack.length-3*(n-1)-(262144&e?6:0),a=l?this.stack[l-2]:this.p.ranges[0].from,s=this.reducePos-a;s>=2e3&&!(null===(t=this.p.parser.nodeSet.types[o])||void 0===t?void 0:t.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=s):this.p.lastBigReductionSize<s&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=a,this.p.lastBigReductionSize=s));let c=l?this.stack[l-1]:0,u=this.bufferBase+this.buffer.length-c;if(o<r.minRepeatTerm||131072&e){let e=r.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(o,a,e,u+4,!0)}if(262144&e)this.state=this.stack[l];else{let e=this.stack[l-3];this.state=r.getGoto(e,o,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(o,a)}storeNode(e,t,n,o=4,r=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this,o=this.buffer.length;if(0==o&&e.parent&&(o=e.bufferBase-e.parent.bufferBase,e=e.parent),o>0&&0==e.buffer[o-4]&&e.buffer[o-1]>-1){if(t==n)return;if(e.buffer[o-2]>=t)return void(e.buffer[o-2]=n)}}if(r&&this.pos!=n){let r=this.buffer.length;if(r>0&&0!=this.buffer[r-4])for(;r>0&&this.buffer[r-2]>n;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,o>4&&(o-=4);this.buffer[r]=e,this.buffer[r+1]=t,this.buffer[r+2]=n,this.buffer[r+3]=o}else this.buffer.push(e,t,n,o)}shift(e,t,n,o){if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){let r=e,{parser:i}=this.p;(o>this.pos||t<=i.maxNode)&&(this.pos=o,i.stateFlag(r,1)||(this.reducePos=o)),this.pushState(r,n),this.shiftContext(t,n),t<=i.maxNode&&this.buffer.push(t,n,o,4)}else this.pos=o,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,o,4)}apply(e,t,n,o){65536&e?this.reduce(e):this.shift(e,t,n,o)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let o=this.pos;this.reducePos=this.pos=o+e.length,this.pushState(t,o),this.buffer.push(n,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),o=e.bufferBase+t;for(;e&&o==e.bufferBase;)e=e.parent;return new ise(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,o,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new ase(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if(0==(65536&n))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let o,r=0;r<t.length;r+=2)(o=t[r+1])!=this.state&&this.p.parser.hasAction(o,e)&&n.push(t[r],o);if(this.stack.length<120)for(let e=0;n.length<8&&e<t.length;e+=2){let o=t[e+1];n.some(((e,t)=>1&t&&e==o))||n.push(t[e],o)}t=n}let n=[];for(let o=0;o<t.length&&n.length<4;o+=2){let e=t[o+1];if(e==this.state)continue;let r=this.split();r.pushState(e,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(t[o],this.pos),r.reducePos=this.pos,r.score-=200,n.push(r)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(0==(65536&t))return!1;if(!e.validAction(this.state,t)){let n=t>>19,o=65535&t,r=this.stack.length-3*n;if(r<0||e.getGoto(this.stack[r],o,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(o,r)=>{if(!t.includes(o))return t.push(o),e.allActions(o,(t=>{if(393216&t);else if(65536&t){let n=(t>>19)-r;if(n>1){let o=65535&t,r=this.stack.length-3*n;if(r>=0&&e.getGoto(this.stack[r],o,!1)>=0)return n<<19|65536|o}}else{let e=n(t,r+1);if(null!=e)return e}}))};return n(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:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new lse(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class lse{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class ase{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let o=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=o}}class sse{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new sse(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.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 sse(this.stack,this.pos,this.index)}}function cse(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let o=0,r=0;o<e.length;){let i=0;for(;;){let t=e.charCodeAt(o++),n=!1;if(126==t){i=65535;break}t>=92&&t--,t>=34&&t--;let r=t-32;if(r>=46&&(r-=46,n=!0),i+=r,n)break;i*=46}n?n[r++]=i:n=new t(i)}return n}class use{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const dse=new use;class pse{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=dse,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,o=this.rangeIndex,r=this.pos+e;for(;r<n.from;){if(!o)return null;let e=this.ranges[--o];r-=n.from-e.to,n=e}for(;t<0?r>n.to:r>=n.to;){if(o==this.ranges.length-1)return null;let e=this.ranges[++o];r+=e.from-n.to,n=e}return r}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t,n,o=this.chunkOff+e;if(o>=0&&o<this.chunk.length)t=this.pos+e,n=this.chunk.charCodeAt(o);else{let o=this.resolveOffset(e,1);if(null==o)return-1;if(t=o,t>=this.chunk2Pos&&t<this.chunk2Pos+this.chunk2.length)n=this.chunk2.charCodeAt(t-this.chunk2Pos);else{let e=this.rangeIndex,o=this.range;for(;o.to<=t;)o=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=t),t+this.chunk2.length>o.to&&(this.chunk2=this.chunk2.slice(0,o.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,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(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,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(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=dse,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let o of this.ranges){if(o.from>=t)break;o.to>e&&(n+=this.input.read(Math.max(o.from,e),Math.min(o.to,t)))}return n}}class hse{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;mse(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}hse.prototype.contextual=hse.prototype.fallback=hse.prototype.extend=!1;class fse{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data="string"==typeof e?cse(e):e}token(e,t){let n=e.pos,o=0;for(;;){let n=e.next<0,r=e.resolveOffset(1,1);if(mse(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(n||o++,null==r)break;e.reset(r,e.token)}o&&(e.reset(n,e.token),e.acceptToken(this.elseToken,o))}}fse.prototype.contextual=hse.prototype.fallback=hse.prototype.extend=!1;class gse{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function mse(e,t,n,o,r,i){let l=0,a=1<<o,{dialect:s}=n.p.parser;e:for(;0!=(a&e[l]);){let n=e[l+1];for(let d=l+3;d<n;d+=2)if((e[d+1]&a)>0){let n=e[d];if(s.allows(n)&&(-1==t.token.value||t.token.value==n||bse(n,t.token.value,r,i))){t.acceptToken(n);break}}let o=t.next,c=0,u=e[l+2];if(!(t.next<0&&u>c&&65535==e[n+3*u-3])){for(;c<u;){let r=c+u>>1,i=n+r+(r<<1),a=e[i],s=e[i+1]||65536;if(o<a)u=r;else{if(!(o>=s)){l=e[i+2],t.advance();continue e}c=r+1}}break}l=e[n+3*u-1]}}function vse(e,t,n){for(let o,r=t;65535!=(o=e[r]);r++)if(o==n)return r-t;return-1}function bse(e,t,n,o){let r=vse(n,o,t);return r<0||vse(n,o,e)<r}const yse="undefined"!=typeof process&&rse&&/\bparse\b/.test(rse.LOG);let Ose=null;function wse(e,t,n){let o=e.cursor(Lee.IncludeAnonymous);for(o.moveTo(t);;)if(!(n<0?o.childBefore(t):o.childAfter(t)))for(;;){if((n<0?o.to<t:o.from>t)&&!o.type.isError)return n<0?Math.max(0,Math.min(o.to-1,t-25)):Math.min(e.length,Math.max(o.from+1,t+25));if(n<0?o.prevSibling():o.nextSibling())break;if(!o.parent())return n<0?0:e.length}}class xse{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?wse(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?wse(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],o=this.index[t];if(o==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let r=n.children[o],i=this.start[t]+n.positions[o];if(i>e)return this.nextStart=i,null;if(r instanceof Hee){if(i==e){if(i<this.safeFrom)return null;let e=i+r.length;if(e<=this.safeTo){let t=r.prop(Ree.lookAhead);if(!t||e+t<this.fragment.to)return r}}this.index[t]++,i+r.length>=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(i),this.index.push(0))}else this.index[t]++,this.nextStart=i+r.length}}}class $se{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map((e=>new use))}getActions(e){let t=0,n=null,{parser:o}=e.p,{tokenizers:r}=o,i=o.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,a=0;for(let s=0;s<r.length;s++){if(0==(1<<s&i))continue;let o=r[s],c=this.tokens[s];if((!n||o.fallback)&&((o.contextual||c.start!=e.pos||c.mask!=i||c.context!=l)&&(this.updateCachedToken(c,o,e),c.mask=i,c.context=l),c.lookAhead>c.end+25&&(a=Math.max(c.lookAhead,a)),0!=c.value)){let r=t;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),!o.extend&&(n=c,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),n||e.pos!=this.stream.end||(n=new use,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new use,{pos:n,p:o}=e;return t.start=n,t.end=Math.min(n+1,o.stream.end),t.value=n==o.stream.end?o.parser.eofTerm:0,t}updateCachedToken(e,t,n){let o=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(o,e),n),e.value>-1){let{parser:t}=n.p;for(let o=0;o<t.specialized.length;o++)if(t.specialized[o]==e.value){let r=t.specializers[o](this.stream.read(e.start,e.end),n);if(r>=0&&n.p.parser.dialect.allows(r>>1)){0==(1&r)?e.value=r>>1:e.extended=r>>1;break}}}else e.value=0,e.end=this.stream.clipPos(o+1)}putAction(e,t,n,o){for(let r=0;r<o;r+=3)if(this.actions[r]==e)return o;return this.actions[o++]=e,this.actions[o++]=t,this.actions[o++]=n,o}addActions(e,t,n,o){let{state:r}=e,{parser:i}=e.p,{data:l}=i;for(let a=0;a<2;a++)for(let e=i.stateSlot(r,a?2:1);;e+=3){if(65535==l[e]){if(1!=l[e+1]){0==o&&2==l[e+1]&&(o=this.putAction(Tse(l,e+2),t,n,o));break}e=Tse(l,e+2)}l[e]==t&&(o=this.putAction(Tse(l,e+1),t,n,o))}return o}}class Sse{constructor(e,t,n,o){this.parser=e,this.input=t,this.ranges=o,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new pse(t,o),this.tokens=new $se(e,this.stream),this.topTerm=e.top[1];let{from:r}=o[0];this.stacks=[ise.start(this,e.top[0],r)],this.fragments=n.length&&this.stream.end-r>4*e.bufferLength?new xse(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,o=this.minStackPos,r=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let i=0;i<n.length;i++){let l=n[i];for(;;){if(this.tokens.mainToken=null,l.pos>o)r.push(l);else{if(this.advanceStack(l,r,n))continue;{e||(e=[],t=[]),e.push(l);let n=this.tokens.getMainToken(l);t.push(n.value,n.end)}}break}}if(!r.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}(e);if(t)return this.stackToTree(t);if(this.parser.strict)throw new SyntaxError("No parse at "+o);this.recovering||(this.recovering=5)}if(this.recovering&&e){let n=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,r);if(n)return this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(r.length>e)for(r.sort(((e,t)=>t.score-e.score));r.length>e;)r.pop();r.some((e=>e.reducePos>o))&&this.recovering--}else if(r.length>1){e:for(let e=0;e<r.length-1;e++){let t=r[e];for(let n=e+1;n<r.length;n++){let o=r[n];if(t.sameState(o)||t.buffer.length>500&&o.buffer.length>500){if(!((t.score-o.score||t.buffer.length-o.buffer.length)>0)){r.splice(e--,1);continue e}r.splice(n--,1)}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let i=1;i<r.length;i++)r[i].pos<this.minStackPos&&(this.minStackPos=r[i].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let o=e.pos,{parser:r}=this;if(yse&&this.stackID(e),null!=this.stoppedAt&&o>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let i=this.fragments.nodeAt(o);i;){let o=this.parser.nodeSet.types[i.type.id]==i.type?r.getGoto(e.state,i.type.id):-1;if(o>-1&&i.length&&(!t||(i.prop(Ree.contextHash)||0)==n))return e.useNode(i,o),!0;if(!(i instanceof Hee)||0==i.children.length||i.positions[0]>0)break;let l=i.children[0];if(!(l instanceof Hee&&0==i.positions[0]))break;i=l}}let i=r.stateSlot(e.state,4);if(i>0)return e.reduce(i),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let a=0;a<l.length;){let r=l[a++],i=l[a++],s=l[a++],c=a==l.length||!n,u=c?e:e.split(),d=this.tokens.mainToken;if(u.apply(r,i,d?d.start:u.pos,s),c)return!0;u.pos>o?t.push(u):n.push(u)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return Cse(e,t),!0}}runRecovery(e,t,n){let o=null,r=!1;for(let i=0;i<e.length;i++){let l=e[i],a=t[i<<1],s=t[1+(i<<1)],c=yse?this.stackID(l)+" -> ":"";if(l.deadEnd){if(r)continue;if(r=!0,l.restart(),this.advanceFully(l,n))continue}let u=l.split(),d=c;for(let e=0;u.forceReduce()&&e<10&&!this.advanceFully(u,n);e++)yse&&(d=this.stackID(u)+" -> ");for(let e of l.recoverByInsert(a))this.advanceFully(e,n);this.stream.end>l.pos?(s==l.pos&&(s++,a=0),l.recoverByDelete(a,s),Cse(l,n)):(!o||o.score<l.score)&&(o=l)}return o}stackToTree(e){return e.close(),Hee.build({buffer:sse.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(Ose||(Ose=new WeakMap)).get(e);return t||Ose.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function Cse(e,t){for(let n=0;n<t.length;n++){let o=t[n];if(o.pos==e.pos&&o.sameState(e))return void(t[n].score<e.score&&(t[n]=e))}t.push(e)}class kse{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||0==this.disabled[e]}}const Pse=e=>e;class Mse extends ste{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let l=0;l<e.repeatNodeCount;l++)t.push("");let n=Object.keys(e.topRules).map((t=>e.topRules[t][1])),o=[];for(let l=0;l<t.length;l++)o.push([]);function r(e,t,n){o[e].push([t,t.deserialize(String(n))])}if(e.nodeProps)for(let l of e.nodeProps){let e=l[0];"string"==typeof e&&(e=Ree[e]);for(let t=1;t<l.length;){let n=l[t++];if(n>=0)r(n,e,l[t++]);else{let o=l[t+-n];for(let i=-n;i>0;i--)r(l[t++],e,o);t++}}}this.nodeSet=new Nee(t.map(((t,r)=>Bee.define({name:r>=this.minRepeatTerm?void 0:t,id:r,props:o[r],top:n.indexOf(r)>-1,error:0==r,skipped:e.skippedNodes&&e.skippedNodes.indexOf(r)>-1})))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Iee;let i=cse(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;l<this.specializerSpecs.length;l++)this.specialized[l]=this.specializerSpecs[l].term;this.specializers=this.specializerSpecs.map(Ise),this.states=cse(e.states,Uint32Array),this.data=cse(e.stateData),this.goto=cse(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map((e=>"number"==typeof e?new hse(i,e):e)),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let o=new Sse(this,e,t,n);for(let r of this.wrappers)o=r(o,e,t,n);return o}getGoto(e,t,n=!1){let o=this.goto;if(t>=o[0])return-1;for(let r=o[t+1];;){let t=o[r++],i=1&t,l=o[r++];if(i&&n)return l;for(let n=r+(t>>1);r<n;r++)if(o[r]==e)return l;if(i)return-1}}hasAction(e,t){let n=this.data;for(let o=0;o<2;o++)for(let r,i=this.stateSlot(e,o?2:1);;i+=3){if(65535==(r=n[i])){if(1!=n[i+1]){if(2==n[i+1])return Tse(n,i+2);break}r=n[i=Tse(n,i+2)]}if(r==t||0==r)return Tse(n,i+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,(e=>e==t||null))}allActions(e,t){let n=this.stateSlot(e,4),o=n?t(n):void 0;for(let r=this.stateSlot(e,1);null==o;r+=3){if(65535==this.data[r]){if(1!=this.data[r+1])break;r=Tse(this.data,r+2)}o=t(Tse(this.data,r+1))}return o}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=Tse(this.data,n+2)}if(0==(1&this.data[n+2])){let e=this.data[n+1];t.some(((t,n)=>1&n&&t==e))||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(Mse.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map((t=>{let n=e.tokenizers.find((e=>e.from==t));return n?n.to:t}))),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map(((n,o)=>{let r=e.specializers.find((e=>e.from==n.external));if(!r)return n;let i=Object.assign(Object.assign({},n),{external:r.to});return t.specializers[o]=Ise(i),i}))),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map((()=>!1));if(e)for(let r of e.split(" ")){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let o=null;for(let r=0;r<t.length;r++)if(!n[r])for(let e,n=this.dialects[t[r]];65535!=(e=this.data[n++]);)(o||(o=new Uint8Array(this.maxTerm+1)))[e]=1;return new kse(e,n,o)}static deserialize(e){return new Mse(e)}}function Tse(e,t){return e[t]|e[t+1]<<16}function Ise(e){if(e.external){let t=e.extend?1:0;return(n,o)=>e.external(n,o)<<1|t}return e.get}const Ese=[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],Ase=new class{constructor(e){this.start=e.start,this.shift=e.shift||Pse,this.reduce=e.reduce||Pse,this.reuse=e.reuse||Pse,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}({start:!1,shift:(e,t)=>4==t||5==t||312==t?e:313==t,strict:!1}),Rse=new gse(((e,t)=>{let{next:n}=e;(125==n||-1==n||t.context)&&e.acceptToken(310)}),{contextual:!0,fallback:!0}),Dse=new gse(((e,t)=>{let n,{next:o}=e;Ese.indexOf(o)>-1||(47!=o||47!=(n=e.peek(1))&&42!=n)&&(125==o||59==o||-1==o||t.context||e.acceptToken(309))}),{contextual:!0}),jse=new gse(((e,t)=>{let{next:n}=e;if((43==n||45==n)&&(e.advance(),n==e.next)){e.advance();let n=!t.context&&t.canShift(1);e.acceptToken(n?1:2)}}),{contextual:!0});function Bse(e,t){return e>=65&&e<=90||e>=97&&e<=122||95==e||e>=192||!t&&e>=48&&e<=57}const Nse=new gse(((e,t)=>{if(60!=e.next||!t.dialectEnabled(0))return;if(e.advance(),47==e.next)return;let n=0;for(;Ese.indexOf(e.next)>-1;)e.advance(),n++;if(Bse(e.next,!0)){for(e.advance(),n++;Bse(e.next,!1);)e.advance(),n++;for(;Ese.indexOf(e.next)>-1;)e.advance(),n++;if(44==e.next)return;for(let t=0;;t++){if(7==t){if(!Bse(e.next,!0))return;break}if(e.next!="extends".charCodeAt(t))break;e.advance(),n++}}e.acceptToken(3,-n)})),zse=fte({"get set async static":jte.modifier,"for while do if else switch try catch finally return throw break continue default case":jte.controlKeyword,"in of await yield void typeof delete instanceof":jte.operatorKeyword,"let var const using function class extends":jte.definitionKeyword,"import export from":jte.moduleKeyword,"with debugger as new":jte.keyword,TemplateString:jte.special(jte.string),super:jte.atom,BooleanLiteral:jte.bool,this:jte.self,null:jte.null,Star:jte.modifier,VariableName:jte.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":jte.function(jte.variableName),VariableDefinition:jte.definition(jte.variableName),Label:jte.labelName,PropertyName:jte.propertyName,PrivatePropertyName:jte.special(jte.propertyName),"CallExpression/MemberExpression/PropertyName":jte.function(jte.propertyName),"FunctionDeclaration/VariableDefinition":jte.function(jte.definition(jte.variableName)),"ClassDeclaration/VariableDefinition":jte.definition(jte.className),PropertyDefinition:jte.definition(jte.propertyName),PrivatePropertyDefinition:jte.definition(jte.special(jte.propertyName)),UpdateOp:jte.updateOperator,"LineComment Hashbang":jte.lineComment,BlockComment:jte.blockComment,Number:jte.number,String:jte.string,Escape:jte.escape,ArithOp:jte.arithmeticOperator,LogicOp:jte.logicOperator,BitOp:jte.bitwiseOperator,CompareOp:jte.compareOperator,RegExp:jte.regexp,Equals:jte.definitionOperator,Arrow:jte.function(jte.punctuation),": Spread":jte.punctuation,"( )":jte.paren,"[ ]":jte.squareBracket,"{ }":jte.brace,"InterpolationStart InterpolationEnd":jte.special(jte.brace),".":jte.derefOperator,", ;":jte.separator,"@":jte.meta,TypeName:jte.typeName,TypeDefinition:jte.definition(jte.typeName),"type enum interface implements namespace module declare":jte.definitionKeyword,"abstract global Privacy readonly override":jte.modifier,"is keyof unique infer":jte.operatorKeyword,JSXAttributeValue:jte.attributeValue,JSXText:jte.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":jte.angleBracket,"JSXIdentifier JSXNameSpacedName":jte.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":jte.attributeName,"JSXBuiltin/JSXIdentifier":jte.standard(jte.tagName)}),_se={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},Lse={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},Qse={__proto__:null,"<":143},Hse=Mse.deserialize({version:14,states:"$<UO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ08SO'#ChO+RO!bO'#CiO+aO#tO'#CiO+oO?MpO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DyO0fQ^O'#EROOQ07b'#EZ'#EZO1PQWO'#EWOOQO'#El'#ElOOQO'#Ie'#IeO1XQWO'#GmO1dQWO'#EkO1iQWO'#EkO3kQ08SO'#JiO6[Q08SO'#JjO6xQWO'#FZO6}Q&jO'#FqOOQ07b'#Fc'#FcO7YO,YO'#FcO7hQ7[O'#FxO9UQWO'#FwOOQ07b'#Jj'#JjOOQ07`'#Ji'#JiO9ZQWO'#GqOOQU'#KU'#KUO9fQWO'#IRO9kQ07hO'#ISOOQU'#JW'#JWOOQU'#IW'#IWQ`Q^OOO`Q^OOO%[Q^O'#DqO9sQ^O'#D}O9zQ^O'#EPO9aQWO'#GmO:RQ7[O'#CnO:aQWO'#EjO:lQWO'#EuO:qQ7[O'#FbO;`QWO'#GmOOQO'#KV'#KVO;eQWO'#KVO;sQWO'#GuO;sQWO'#GvO;sQWO'#GxO9aQWO'#G{O<jQWO'#HOO>RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#EjOA]QWO'#EjOAhQpO'#FbOOQU'#Cf'#CfOOQ07`'#Dn'#DnOOQ07`'#Jm'#JmO%[Q^O'#JmOOQO'#Jq'#JqOOQO'#Ib'#IbOBhQ`O'#EcOOQ07`'#Eb'#EbOCdQ07pO'#EcOCnQ`O'#EVOOQO'#Jp'#JpODSQ`O'#JqOEaQ`O'#EVOCnQ`O'#EcPEnO!0LbO'#CaPOOO)CDu)CDuOOOO'#IX'#IXOEyO!bO,59TOOQ07b,59T,59TOOOO'#IY'#IYOFXO#tO,59TO%[Q^O'#D`OOOO'#I['#I[OFgO?MpO,59xOOQ07b,59x,59xOFuQ^O'#I]OGYQWO'#JkOI[QrO'#JkO+}Q^O'#JkOIcQWO,5:OOIyQWO'#ElOJWQWO'#JyOJcQWO'#JxOJcQWO'#JxOJkQWO,5;YOJpQWO'#JwOOQ07f,5:Z,5:ZOJwQ^O,5:ZOLxQ08SO,5:eOMiQWO,5:mONSQ07hO'#JvONZQWO'#JuO9ZQWO'#JuONoQWO'#JuONwQWO,5;XON|QWO'#JuO!#UQrO'#JjOOQ07b'#Ch'#ChO%[Q^O'#ERO!#tQpO,5:rOOQO'#Jr'#JrOOQO-E<c-E<cO9aQWO,5=XO!$[QWO,5=XO!$aQ^O,5;VO!&dQ7[O'#EgO!'}QWO,5;VO!)mQ7[O'#DsO!)tQ^O'#DxO!*OQ`O,5;`O!*WQ`O,5;`O%[Q^O,5;`OOQU'#FR'#FROOQU'#FT'#FTO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aOOQU'#FX'#FXO!*fQ^O,5;rOOQ07b,5;w,5;wOOQ07b,5;x,5;xO!,iQWO,5;xOOQ07b,5;y,5;yO%[Q^O'#IiO!,qQ07hO,5<eO!&dQ7[O,5;aO!-`Q7[O,5;aO%[Q^O,5;uO!-gQ&jO'#FgO!.dQ&jO'#J}O!.OQ&jO'#J}O!.kQ&jO'#J}OOQO'#J}'#J}O!/PQ&jO,5<POOOS,5<],5<]O!/bQ^O'#FsOOOS'#Ih'#IhO7YO,YO,5;}O!/iQ&jO'#FuOOQ07b,5;},5;}O!0YQMhO'#CuOOQ07b'#Cy'#CyO!0mQWO'#CyO!0rO?MpO'#C}O!1`Q7[O,5<bO!1gQWO,5<dO!3SQ!LQO'#GSO!3aQWO'#GTO!3fQWO'#GTO!3kQ!LQO'#GXO!4jQ`O'#G]OOQO'#Gh'#GhO!(SQ7[O'#GgOOQO'#Gj'#GjO!(SQ7[O'#GiO!5]QMhO'#JdOOQ07b'#Jd'#JdO!5gQWO'#JcO!5uQWO'#JbO!5}QWO'#CtOOQ07b'#Cw'#CwOOQ07b'#DR'#DROOQ07b'#DT'#DTO1SQWO'#DVO!(SQ7[O'#FzO!(SQ7[O'#F|O!6VQWO'#GOO!6[QWO'#GPO!3fQWO'#GVO!(SQ7[O'#G[O!6aQWO'#EmO!7OQWO,5<cOOQ07`'#Cq'#CqO!7WQWO'#EnO!8QQ`O'#EoOOQ07`'#Jw'#JwO!8XQ07hO'#KWO9kQ07hO,5=]O`Q^O,5>mOOQU'#J`'#J`OOQU,5>n,5>nOOQU-E<U-E<UO!:ZQ08SO,5:]O!<wQ08SO,5:iO%[Q^O,5:iO!?bQ08SO,5:kOOQO,5@q,5@qO!@RQ7[O,5=XO!@aQ07hO'#JaO9UQWO'#JaO!@rQ07hO,59YO!@}Q`O,59YO!AVQ7[O,59YO:RQ7[O,59YO!AbQWO,5;VO!AjQWO'#HZO!BOQWO'#KZO%[Q^O,5;zO!7{Q`O,5;|O!BWQWO,5=tO!B]QWO,5=tO!BbQWO,5=tO9kQ07hO,5=tO;sQWO,5=dOOQO'#Cu'#CuO!BpQ`O,5=aO!BxQ7[O,5=bO!CTQWO,5=dO!CYQpO,5=gO!CbQWO'#KVO>pQWO'#HQO9aQWO'#HSO!CgQWO'#HSO:RQ7[O'#HUO!ClQWO'#HUOOQU,5=j,5=jO!CqQWO'#HVO!DSQWO'#CnO!DXQWO,59OO!DcQWO,59OO!FhQ^O,59OOOQU,59O,59OO!FxQ07hO,59OO%[Q^O,59OO!ITQ^O'#H^OOQU'#H_'#H_OOQU'#H`'#H`O`Q^O,5=vO!IkQWO,5=vO`Q^O,5=|O`Q^O,5>OO!IpQWO,5>QO`Q^O,5>SO!IuQWO,5>VO!IzQ^O,5>]OOQU,5>c,5>cO%[Q^O,5>cO9kQ07hO,5>eOOQU,5>g,5>gO!NUQWO,5>gOOQU,5>i,5>iO!NUQWO,5>iOOQU,5>k,5>kO!NZQ`O'#D[O%[Q^O'#JmO!NxQ`O'#JmO# gQ`O'#DjO# xQ`O'#DjO#$ZQ^O'#DjO#$bQWO'#JlO#$jQWO,5:TO#$oQWO'#EpO#$}QWO'#JzO#%VQWO,5;ZO#%[Q`O'#DjO#%iQ`O'#EUOOQ07b,5:n,5:nO%[Q^O,5:nO#%pQWO,5:nO>pQWO,5;UO!@}Q`O,5;UO!AVQ7[O,5;UO:RQ7[O,5;UO#%xQWO,5@XO#%}Q$ISO,5:rOOQO-E<`-E<`O#'TQ07pO,5:}OCnQ`O,5:qO#'_Q`O,5:qOCnQ`O,5:}O!@rQ07hO,5:qOOQ07`'#Ef'#EfOOQO,5:},5:}O%[Q^O,5:}O#'lQ07hO,5:}O#'wQ07hO,5:}O!@}Q`O,5:qOOQO,5;T,5;TO#(VQ07hO,5:}POOO'#IV'#IVP#(kO!0LbO,58{POOO,58{,58{OOOO-E<V-E<VOOQ07b1G.o1G.oOOOO-E<W-E<WO#(vQpO,59zOOOO-E<Y-E<YOOQ07b1G/d1G/dO#({QrO,5>wO+}Q^O,5>wOOQO,5>},5>}O#)VQ^O'#I]OOQO-E<Z-E<ZO#)dQWO,5@VO#)lQrO,5@VO#)sQWO,5@dOOQ07b1G/j1G/jO%[Q^O,5@eO#){QWO'#IcOOQO-E<a-E<aO#)sQWO,5@dOOQ07`1G0t1G0tOOQ07f1G/u1G/uOOQ07f1G0X1G0XO%[Q^O,5@bO#*aQ07hO,5@bO#*rQ07hO,5@bO#*yQWO,5@aO9ZQWO,5@aO#+RQWO,5@aO#+aQWO'#IfO#*yQWO,5@aOOQ07`1G0s1G0sO!*OQ`O,5:tO!*ZQ`O,5:tOOQO,5:v,5:vO#,RQWO,5:vO#,ZQ7[O1G2sO9aQWO1G2sOOQ07b1G0q1G0qO#,iQ08SO1G0qO#-nQ08QO,5;ROOQ07b'#GR'#GRO#.[Q08SO'#JdO!$aQ^O1G0qO#0dQ7[O'#JnO#0nQWO,5:_O#0sQrO'#JoO%[Q^O'#JoO#0}QWO,5:dOOQ07b'#D['#D[OOQ07b1G0z1G0zO%[Q^O1G0zOOQ07b1G1d1G1dO#1SQWO1G0zO#3kQ08SO1G0{O#3rQ08SO1G0{O#6]Q08SO1G0{O#6dQ08SO1G0{O#8nQ08SO1G0{O#9UQ08SO1G0{O#<OQ08SO1G0{O#<VQ08SO1G0{O#>pQ08SO1G0{O#>wQ08SO1G0{O#@oQ08SO1G0{O#CoQ(CYO'#ChO#EmQ(CYO1G1^O#EtQ(CYO'#JjO!,lQWO1G1dO#FUQ08SO,5?TOOQ07`-E<g-E<gO#FxQ08SO1G0{OOQ07b1G0{1G0{O#ITQ08SO1G1aO#IwQ&jO,5<TO#JPQ&jO,5<UO#JXQ&jO'#FlO#JpQWO'#FkOOQO'#KO'#KOOOQO'#Ig'#IgO#JuQ&jO1G1kOOQ07b1G1k1G1kOOOS1G1v1G1vO#KWQ(CYO'#JiO#KbQWO,5<_O!*fQ^O,5<_OOOS-E<f-E<fOOQ07b1G1i1G1iO#KgQ`O'#J}OOQ07b,5<a,5<aO#KoQ`O,5<aOOQ07b,59e,59eO!&dQ7[O'#DPOOOO'#IZ'#IZO#KtO?MpO,59iOOQ07b,59i,59iO%[Q^O1G1|O!6[QWO'#IkO#LPQ7[O,5<uOOQ07b,5<r,5<rO!(SQ7[O'#InO#LoQ7[O,5=RO!(SQ7[O'#IpO#MbQ7[O,5=TO!&dQ7[O,5=VOOQO1G2O1G2OO#MlQpO'#CqO#NPQpO,5<nO#NWQWO'#KRO9aQWO'#KRO#NfQWO,5<pO!(SQ7[O,5<oO#NkQWO'#GUO#NvQWO,5<oO#N{QpO'#GRO$ YQpO'#KSO$ dQWO'#KSO!&dQ7[O'#KSO$ iQWO,5<sO$ nQ`O'#G^O!4eQ`O'#G^O$!PQWO'#G`O$!UQWO'#GbO!3fQWO'#GeO$!ZQ07hO'#ImO$!fQ`O,5<wOOQ07f,5<w,5<wO$!mQ`O'#G^O$!{Q`O'#G_O$#TQ`O'#G_O$#YQ7[O,5=RO$#jQ7[O,5=TOOQ07b,5=W,5=WO!(SQ7[O,5?}O!(SQ7[O,5?}O$#zQWO'#IrO$$VQWO,5?|O$$_QWO,59`O$%OQ7[O,59qOOQ07b,59q,59qO$%qQ7[O,5<fO$&dQ7[O,5<hO@bQWO,5<jOOQ07b,5<k,5<kO$&nQWO,5<qO$&sQ7[O,5<vO$'TQWO'#JuO!$aQ^O1G1}O$'YQWO1G1}O9ZQWO'#JxO9ZQWO'#EpO%[Q^O'#EpO9ZQWO'#ItO$'_Q07hO,5@rOOQU1G2w1G2wOOQU1G4X1G4XOOQ07b1G/w1G/wO!,iQWO1G/wO$)dQ08SO1G0TOOQU1G2s1G2sO!&dQ7[O1G2sO%[Q^O1G2sO#,^QWO1G2sO$+hQ7[O'#EgOOQ07`,5?{,5?{O$+rQ07hO,5?{OOQU1G.t1G.tO!@rQ07hO1G.tO!@}Q`O1G.tO!AVQ7[O1G.tO$,TQWO1G0qO$,YQWO'#ChO$,eQWO'#K[O$,mQWO,5=uO$,rQWO'#K[O$,wQWO'#K[O$-VQWO'#IzO$-eQWO,5@uO$-mQrO1G1fOOQ07b1G1h1G1hO9aQWO1G3`O@bQWO1G3`O$-tQWO1G3`O$-yQWO1G3`OOQU1G3`1G3`O!CTQWO1G3OO!&dQ7[O1G2{O$.OQWO1G2{OOQU1G2|1G2|O!&dQ7[O1G2|O$.TQWO1G2|O$.]Q`O'#GzOOQU1G3O1G3OO!4eQ`O'#IvO!CYQpO1G3ROOQU1G3R1G3ROOQU,5=l,5=lO$.eQ7[O,5=nO9aQWO,5=nO$!UQWO,5=pO9UQWO,5=pO!@}Q`O,5=pO!AVQ7[O,5=pO:RQ7[O,5=pO$.sQWO'#KYO$/OQWO,5=qOOQU1G.j1G.jO$/TQ07hO1G.jO@bQWO1G.jO$/`QWO1G.jO9kQ07hO1G.jO$1eQrO,5@wO$1uQWO,5@wO9ZQWO,5@wO$2QQ^O,5=xO$2XQWO,5=xOOQU1G3b1G3bO`Q^O1G3bOOQU1G3h1G3hOOQU1G3j1G3jO>kQWO1G3lO$2^Q^O1G3nO$6bQ^O'#HmOOQU1G3q1G3qO$6oQWO'#HsO>pQWO'#HuOOQU1G3w1G3wO$6wQ^O1G3wO9kQ07hO1G3}OOQU1G4P1G4POOQ07`'#GY'#GYO9kQ07hO1G4RO9kQ07hO1G4TO$;OQWO,5@XO!*fQ^O,5;[O9ZQWO,5;[O>pQWO,5:UO!*fQ^O,5:UO!@}Q`O,5:UO$;TQ(CYO,5:UOOQO,5;[,5;[O$;_Q`O'#I^O$;uQWO,5@WOOQ07b1G/o1G/oO$;}Q`O'#IdO$<XQWO,5@fOOQ07`1G0u1G0uO# xQ`O,5:UOOQO'#Ia'#IaO$<aQ`O,5:pOOQ07f,5:p,5:pO#%sQWO1G0YOOQ07b1G0Y1G0YO%[Q^O1G0YOOQ07b1G0p1G0pO>pQWO1G0pO!@}Q`O1G0pO!AVQ7[O1G0pOOQ07`1G5s1G5sO!@rQ07hO1G0]OOQO1G0i1G0iO%[Q^O1G0iO$<hQ07hO1G0iO$<sQ07hO1G0iO!@}Q`O1G0]OCnQ`O1G0]O$=RQ07hO1G0iOOQO1G0]1G0]O$=gQ08SO1G0iPOOO-E<T-E<TPOOO1G.g1G.gOOOO1G/f1G/fO$=qQpO,5<eO$=yQrO1G4cOOQO1G4i1G4iO%[Q^O,5>wO$>TQWO1G5qO$>]QWO1G6OO$>eQrO1G6PO9ZQWO,5>}O$>oQ08SO1G5|O%[Q^O1G5|O$?PQ07hO1G5|O$?bQWO1G5{O$?bQWO1G5{O9ZQWO1G5{O$?jQWO,5?QO9ZQWO,5?QOOQO,5?Q,5?QO$@OQWO,5?QO$'TQWO,5?QOOQO-E<d-E<dOOQO1G0`1G0`OOQO1G0b1G0bO!,lQWO1G0bOOQU7+(_7+(_O!&dQ7[O7+(_O%[Q^O7+(_O$@^QWO7+(_O$@iQ7[O7+(_O$@wQ08SO,5=RO$CSQ08SO,5=TO$E_Q08SO,5=RO$GpQ08SO,5=TO$JRQ08SO,59qO$LZQ08SO,5<fO$NfQ08SO,5<hO%!qQ08SO,5<vOOQ07b7+&]7+&]O%%SQ08SO7+&]O%%vQ7[O'#I_O%&QQWO,5@YOOQ07b1G/y1G/yO%&YQ^O'#I`O%&gQWO,5@ZO%&oQrO,5@ZOOQ07b1G0O1G0OO%&yQWO7+&fOOQ07b7+&f7+&fO%'OQ(CYO,5:eO%[Q^O7+&xO%'YQ(CYO,5:]O%'gQ(CYO,5:iO%'qQ(CYO,5:kOOQ07b7+'O7+'OOOQO1G1o1G1oOOQO1G1p1G1pO%'{QtO,5<WO!*fQ^O,5<VOOQO-E<e-E<eOOQ07b7+'V7+'VOOOS7+'b7+'bOOOS1G1y1G1yO%(WQWO1G1yOOQ07b1G1{1G1{O%(]QpO,59kOOOO-E<X-E<XOOQ07b1G/T1G/TO%(dQ08SO7+'hOOQ07b,5?V,5?VO%)WQpO,5?VOOQ07b1G2a1G2aP!&dQ7[O'#IkPOQ07b-E<i-E<iO%)vQ7[O,5?YOOQ07b-E<l-E<lO%*iQ7[O,5?[OOQ07b-E<n-E<nO%*sQpO1G2qOOQ07b1G2Y1G2YO%*zQWO'#IjO%+YQWO,5@mO%+YQWO,5@mO%+bQWO,5@mO%+mQWO,5@mOOQO1G2[1G2[O%+{Q7[O1G2ZO!(SQ7[O1G2ZO%,]Q!LQO'#IlO%,mQWO,5@nO!&dQ7[O,5@nO%,uQpO,5@nOOQ07b1G2_1G2_OOQ07`,5<x,5<xOOQ07`,5<y,5<yO$'TQWO,5<yOC_QWO,5<yO!@}Q`O,5<xOOQO'#Ga'#GaO%-PQWO,5<zOOQ07`,5<|,5<|O$'TQWO,5=POOQO,5?X,5?XOOQO-E<k-E<kOOQ07f1G2c1G2cO!4eQ`O,5<xO%-XQWO,5<yO$!PQWO,5<zO!4eQ`O,5<yO!(SQ7[O'#InO%-{Q7[O1G2mO!(SQ7[O'#IpO%.nQ7[O1G2oO%.xQ7[O1G5iO%/SQ7[O1G5iOOQO,5?^,5?^OOQO-E<p-E<pOOQO1G.z1G.zO!7{Q`O,59sO%[Q^O,59sO%/aQWO1G2UO!(SQ7[O1G2]O%/fQ08SO7+'iOOQ07b7+'i7+'iO!$aQ^O7+'iO%0YQWO,5;[OOQ07`,5?`,5?`OOQ07`-E<r-E<rOOQ07b7+%c7+%cO%0_QpO'#KTO#%sQWO7+(_O%0iQrO7+(_O$@aQWO7+(_O%0pQ08QO'#ChO%1TQ08QO,5<}O%1uQWO,5<}OOQ07`1G5g1G5gOOQU7+$`7+$`O!@rQ07hO7+$`O!@}Q`O7+$`O!$aQ^O7+&]O%1zQWO'#IyO%2cQWO,5@vOOQO1G3a1G3aO9aQWO,5@vO%2cQWO,5@vO%2kQWO,5@vOOQO,5?f,5?fOOQO-E<x-E<xOOQ07b7+'Q7+'QO%2pQWO7+(zO9kQ07hO7+(zO9aQWO7+(zO@bQWO7+(zOOQU7+(j7+(jO%2uQ08QO7+(gO!&dQ7[O7+(gO%3PQpO7+(hOOQU7+(h7+(hO!&dQ7[O7+(hO%3WQWO'#KXO%3cQWO,5=fOOQO,5?b,5?bOOQO-E<t-E<tOOQU7+(m7+(mO%4rQ`O'#HTOOQU1G3Y1G3YO!&dQ7[O1G3YO%[Q^O1G3YO%4yQWO1G3YO%5UQ7[O1G3YO9kQ07hO1G3[O$!UQWO1G3[O9UQWO1G3[O!@}Q`O1G3[O!AVQ7[O1G3[O%5dQWO'#IxO%5xQWO,5@tO%6QQ`O,5@tOOQ07`1G3]1G3]OOQU7+$U7+$UO@bQWO7+$UO9kQ07hO7+$UO%6]QWO7+$UO%[Q^O1G6cO%[Q^O1G6dO%6bQ07hO1G6cO%6lQ^O1G3dO%6sQWO1G3dO%6xQ^O1G3dOOQU7+(|7+(|O9kQ07hO7+)WO`Q^O7+)YOOQU'#K_'#K_OOQU'#I{'#I{O%7PQ^O,5>XOOQU,5>X,5>XO%[Q^O'#HnO%7^QWO'#HpOOQU,5>_,5>_O9ZQWO,5>_OOQU,5>a,5>aOOQU7+)c7+)cOOQU7+)i7+)iOOQU7+)m7+)mOOQU7+)o7+)oO%7cQ`O1G5sO%7wQ(CYO1G0vO%8RQWO1G0vOOQO1G/p1G/pO%8^Q(CYO1G/pO>pQWO1G/pO!*fQ^O'#DjOOQO,5>x,5>xOOQO-E<[-E<[OOQO,5?O,5?OOOQO-E<b-E<bO!@}Q`O1G/pOOQO-E<_-E<_OOQ07f1G0[1G0[OOQ07b7+%t7+%tO#%sQWO7+%tOOQ07b7+&[7+&[O>pQWO7+&[O!@}Q`O7+&[OOQO7+%w7+%wO$=gQ08SO7+&TOOQO7+&T7+&TO%[Q^O7+&TO%8hQ07hO7+&TO!@rQ07hO7+%wO!@}Q`O7+%wO%8sQ07hO7+&TO%9RQ08SO7++hO%[Q^O7++hO%9cQWO7++gO%9cQWO7++gOOQO1G4l1G4lO9ZQWO1G4lO%9kQWO1G4lOOQO7+%|7+%|O#%sQWO<<KyO%0iQrO<<KyO%9yQWO<<KyOOQU<<Ky<<KyO!&dQ7[O<<KyO%[Q^O<<KyO%:RQWO<<KyO%:^Q08SO,5?YO%<iQ08SO,5?[O%>tQ08SO1G2ZO%AVQ08SO1G2mO%CbQ08SO1G2oO%EmQ7[O,5>yOOQO-E<]-E<]O%EwQrO,5>zO%[Q^O,5>zOOQO-E<^-E<^O%FRQWO1G5uOOQ07b<<JQ<<JQO%FZQ(CYO1G0qO%HeQ(CYO1G0{O%HlQ(CYO1G0{O%JpQ(CYO1G0{O%JwQ(CYO1G0{O%LlQ(CYO1G0{O%MSQ(CYO1G0{O& gQ(CYO1G0{O& nQ(CYO1G0{O&#rQ(CYO1G0{O&#yQ(CYO1G0{O&%qQ(CYO1G0{O&&UQ08SO<<JdO&'ZQ(CYO1G0{O&)PQ(CYO'#JdO&+SQ(CYO1G1aO&+aQ(CYO1G0TO!*fQ^O'#FnOOQO'#KP'#KPOOQO1G1r1G1rO&+kQWO1G1qO&+pQ(CYO,5?TOOOS7+'e7+'eOOOO1G/V1G/VOOQ07b1G4q1G4qO!(SQ7[O7+(]O&+zQWO,5?UO9aQWO,5?UOOQO-E<h-E<hO&,YQWO1G6XO&,YQWO1G6XO&,bQWO1G6XO&,mQ7[O7+'uO&,}QpO,5?WO&-XQWO,5?WO!&dQ7[O,5?WOOQO-E<j-E<jO&-^QpO1G6YO&-hQWO1G6YOOQ07`1G2e1G2eO$'TQWO1G2eOOQ07`1G2d1G2dO&-pQWO1G2fO!&dQ7[O1G2fOOQ07`1G2k1G2kO!@}Q`O1G2dOC_QWO1G2eO&-uQWO1G2fO&-}QWO1G2eO&.qQ7[O,5?YOOQ07b-E<m-E<mO&/dQ7[O,5?[OOQ07b-E<o-E<oO!(SQ7[O7++TOOQ07b1G/_1G/_O&/nQWO1G/_OOQ07b7+'p7+'pO&/sQ7[O7+'wO&0TQ08SO<<KTOOQ07b<<KT<<KTO&0wQWO1G0vO!&dQ7[O'#IsO&0|QWO,5@oO!&dQ7[O1G2iOOQU<<Gz<<GzO!@rQ07hO<<GzO&1UQ08SO<<IwOOQ07b<<Iw<<IwOOQO,5?e,5?eO&1xQWO,5?eO&1}QWO,5?eOOQO-E<w-E<wO&2]QWO1G6bO&2]QWO1G6bO9aQWO1G6bO@bQWO<<LfOOQU<<Lf<<LfO&2eQWO<<LfO9kQ07hO<<LfOOQU<<LR<<LRO%2uQ08QO<<LROOQU<<LS<<LSO%3PQpO<<LSO&2jQ`O'#IuO&2uQWO,5@sO!*fQ^O,5@sOOQU1G3Q1G3QO&2}Q^O'#JmOOQO'#Iw'#IwO9kQ07hO'#IwO&3XQ`O,5=oOOQU,5=o,5=oO&3`Q`O'#EcO&3tQWO7+(tO&3yQWO7+(tOOQU7+(t7+(tO!&dQ7[O7+(tO%[Q^O7+(tO&4RQWO7+(tOOQU7+(v7+(vO9kQ07hO7+(vO$!UQWO7+(vO9UQWO7+(vO!@}Q`O7+(vO&4^QWO,5?dOOQO-E<v-E<vOOQO'#HW'#HWO&4iQWO1G6`O9kQ07hO<<GpOOQU<<Gp<<GpO@bQWO<<GpO&4qQWO7++}O&4vQWO7+,OO%[Q^O7++}O%[Q^O7+,OOOQU7+)O7+)OO&4{QWO7+)OO&5QQ^O7+)OO&5XQWO7+)OOOQU<<Lr<<LrOOQU<<Lt<<LtOOQU-E<y-E<yOOQU1G3s1G3sO&5^QWO,5>YOOQU,5>[,5>[O&5cQWO1G3yO9ZQWO7+&bO!*fQ^O7+&bOOQO7+%[7+%[O&5hQ(CYO1G6PO>pQWO7+%[OOQ07b<<I`<<I`OOQ07b<<Iv<<IvO>pQWO<<IvOOQO<<Io<<IoO$=gQ08SO<<IoO%[Q^O<<IoOOQO<<Ic<<IcO!@rQ07hO<<IcO&5rQ07hO<<IoO&5}Q08SO<= SO&6_QWO<= ROOQO7+*W7+*WO9ZQWO7+*WOOQUANAeANAeO&6gQWOANAeO!&dQ7[OANAeO#%sQWOANAeO%0iQrOANAeO%[Q^OANAeO&6oQ08SO7+'uO&9QQ08SO,5?YO&;]Q08SO,5?[O&=hQ08SO7+'wO&?yQrO1G4fO&@TQ(CYO7+&]O&BXQ(CYO,5=RO&D`Q(CYO,5=TO&DpQ(CYO,5=RO&EQQ(CYO,5=TO&EbQ(CYO,59qO&GeQ(CYO,5<fO&IhQ(CYO,5<hO&KkQ(CYO,5<vO&MaQ(CYO7+'hO&MnQ(CYO7+'iO&M{QWO,5<YOOQO7+']7+']O&NQQ7[O<<KwOOQO1G4p1G4pO&NXQWO1G4pO&NdQWO1G4pO&NrQWO7++sO&NrQWO7++sO!&dQ7[O1G4rO&NzQpO1G4rO' UQWO7++tOOQ07`7+(P7+(PO$'TQWO7+(QO' ^QpO7+(QOOQ07`7+(O7+(OO$'TQWO7+(PO' eQWO7+(QO!&dQ7[O7+(QOC_QWO7+(PO' jQ7[O<<NoOOQ07b7+$y7+$yO' tQpO,5?_OOQO-E<q-E<qO'!OQ08QO7+(TOOQUAN=fAN=fO9aQWO1G5POOQO1G5P1G5PO'!`QWO1G5PO'!eQWO7++|O'!eQWO7++|O9kQ07hOANBQO@bQWOANBQOOQUANBQANBQOOQUANAmANAmOOQUANAnANAnO'!mQWO,5?aOOQO-E<s-E<sO'!xQ(CYO1G6_O'%YQrO'#ChOOQO,5?c,5?cOOQO-E<u-E<uOOQU1G3Z1G3ZO&2}Q^O,5<zOOQU<<L`<<L`O!&dQ7[O<<L`O&3tQWO<<L`O'%dQWO<<L`O%[Q^O<<L`OOQU<<Lb<<LbO9kQ07hO<<LbO$!UQWO<<LbO9UQWO<<LbO'%lQ`O1G5OO'%wQWO7++zOOQUAN=[AN=[O9kQ07hOAN=[OOQU<= i<= iOOQU<= j<= jO'&PQWO<= iO'&UQWO<= jOOQU<<Lj<<LjO'&ZQWO<<LjO'&`Q^O<<LjOOQU1G3t1G3tO>pQWO7+)eO'&gQWO<<I|O'&rQ(CYO<<I|OOQO<<Hv<<HvOOQ07bAN?bAN?bOOQOAN?ZAN?ZO$=gQ08SOAN?ZOOQOAN>}AN>}O%[Q^OAN?ZOOQO<<Mr<<MrOOQUG27PG27PO!&dQ7[OG27PO#%sQWOG27PO'&|QWOG27PO%0iQrOG27PO''UQ(CYO<<JdO''cQ(CYO1G2ZO')XQ(CYO,5?YO'+[Q(CYO,5?[O'-_Q(CYO1G2mO'/bQ(CYO1G2oO'1eQ(CYO<<KTO'1rQ(CYO<<IwOOQO1G1t1G1tO!(SQ7[OANAcOOQO7+*[7+*[O'2PQWO7+*[O'2[QWO<= _O'2dQpO7+*^OOQ07`<<Kl<<KlO$'TQWO<<KlOOQ07`<<Kk<<KkO'2nQpO<<KlO$'TQWO<<KkOOQO7+*k7+*kO9aQWO7+*kO'2uQWO<= hOOQUG27lG27lO9kQ07hOG27lO!*fQ^O1G4{O'2}QWO7++yO&3tQWOANAzOOQUANAzANAzO!&dQ7[OANAzO'3VQWOANAzOOQUANA|ANA|O9kQ07hOANA|O$!UQWOANA|OOQO'#HX'#HXOOQO7+*j7+*jOOQUG22vG22vOOQUANETANETOOQUANEUANEUOOQUANBUANBUO'3_QWOANBUOOQU<<MP<<MPO!*fQ^OAN?hOOQOG24uG24uO$=gQ08SOG24uO#%sQWOLD,kOOQULD,kLD,kO!&dQ7[OLD,kO'3dQWOLD,kO'3lQ(CYO7+'uO'5bQ(CYO,5?YO'7eQ(CYO,5?[O'9hQ(CYO7+'wO';^Q7[OG26}OOQO<<Mv<<MvOOQ07`ANAWANAWO$'TQWOANAWOOQ07`ANAVANAVOOQO<<NV<<NVOOQULD-WLD-WO';nQ(CYO7+*gOOQUG27fG27fO&3tQWOG27fO!&dQ7[OG27fOOQUG27hG27hO9kQ07hOG27hOOQUG27pG27pO';xQ(CYOG25SOOQOLD*aLD*aOOQU!$(!V!$(!VO#%sQWO!$(!VO!&dQ7[O!$(!VO'<SQ08SOG26}OOQ07`G26rG26rOOQULD-QLD-QO&3tQWOLD-QOOQULD-SLD-SOOQU!)9Eq!)9EqO#%sQWO!)9EqOOQU!$(!l!$(!lOOQU!.K;]!.K;]O'>eQ(CYOG26}O!*fQ^O'#DyO1PQWO'#EWO'@ZQrO'#JiO!*fQ^O'#DqO'@bQ^O'#D}O'@iQrO'#ChO'CPQrO'#ChO!*fQ^O'#EPO'CaQ^O,5;VO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O'#IiO'EdQWO,5<eO'ElQ7[O,5;aO'GVQ7[O,5;aO!*fQ^O,5;uO!&dQ7[O'#GgO'ElQ7[O'#GgO!&dQ7[O'#GiO'ElQ7[O'#GiO1SQWO'#DVO1SQWO'#DVO!&dQ7[O'#FzO'ElQ7[O'#FzO!&dQ7[O'#F|O'ElQ7[O'#F|O!&dQ7[O'#G[O'ElQ7[O'#G[O!*fQ^O,5:iO!*fQ^O,5@eO'CaQ^O1G0qO'G^Q(CYO'#ChO!*fQ^O1G1|O!&dQ7[O'#InO'ElQ7[O'#InO!&dQ7[O'#IpO'ElQ7[O'#IpO!&dQ7[O,5<oO'ElQ7[O,5<oO'CaQ^O1G1}O!*fQ^O7+&xO!&dQ7[O1G2ZO'ElQ7[O1G2ZO!&dQ7[O'#InO'ElQ7[O'#InO!&dQ7[O'#IpO'ElQ7[O'#IpO!&dQ7[O1G2]O'ElQ7[O1G2]O'CaQ^O7+'iO'CaQ^O7+&]O!&dQ7[OANAcO'ElQ7[OANAcO'GhQWO'#EkO'GmQWO'#EkO'GuQWO'#FZO'GzQWO'#EuO'HPQWO'#JyO'H[QWO'#JwO'HgQWO,5;VO'HlQ7[O,5<bO'HsQWO'#GTO'HxQWO'#GTO'H}QWO,5<cO'IVQWO,5;VO'I_Q(CYO1G1^O'IfQWO,5<oO'IkQWO,5<oO'IpQWO,5<qO'IuQWO,5<qO'IzQWO1G1}O'JPQWO1G0qO'JUQ7[O<<KwO'J]Q7[O<<KwO7hQ7[O'#FxO9UQWO'#FwOA]QWO'#EjO!*fQ^O,5;rO!3fQWO'#GTO!3fQWO'#GTO!3fQWO'#GVO!3fQWO'#GVO!(SQ7[O7+(]O!(SQ7[O7+(]O%*sQpO1G2qO%*sQpO1G2qO!&dQ7[O,5=VO!&dQ7[O,5=V",stateData:"'Ka~O'tOS'uOSSOS'vRQ~OPYOQYORfOX!VO`qOczOdyOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![XO!fuO!kZO!nYO!oYO!pYO!rvO!twO!wxO!{]O#s!PO$T|O%b}O%d!QO%f!OO%g!OO%h!OO%k!RO%m!SO%p!TO%q!TO%s!UO&P!WO&V!XO&X!YO&Z!ZO&]![O&`!]O&f!^O&l!_O&n!`O&p!aO&r!bO&t!cO'{SO'}TO(QUO(XVO(g[O(tiO~OVtO~P`OPYOQYORfOc!jOd!iOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![!eO!fuO!kZO!nYO!oYO!pYO!rvO!t!gO!w!hO$T!kO'{!dO'}TO(QUO(XVO(g[O(tiO~O`!vOo!nO!P!oO!_!xO!`!uO!a!uO!{:dO#P!pO#Q!pO#R!wO#S!pO#T!pO#W!yO#X!yO'|!lO'}TO(QUO([!mO(g!sO~O'v!zO~OP[XZ[X`[Xn[X|[X}[X!P[X!Y[X!h[X!i[X!k[X!o[X#[[X#geX#j[X#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#t[X#v[X#x[X#y[X$O[X'r[X(X[X(h[X(o[X(p[X~O!d$|X~P(qO^!|O'}#OO(O!|O(P#OO~O^#PO(P#OO(Q#OO(R#PO~Ot#RO!R#SO(Y#SO(Z#UO~OPYOQYORfOc!jOd!iOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![!eO!fuO!kZO!nYO!oYO!pYO!rvO!t!gO!w!hO$T!kO'{:hO'}TO(QUO(XVO(g[O(tiO~O!X#YO!Y#VO!V(_P!V(lP~P+}O!Z#bO~P`OPYOQYORfOc!jOd!iOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![!eO!fuO!kZO!nYO!oYO!pYO!rvO!t!gO!w!hO$T!kO'}TO(QUO(XVO(g[O(tiO~Ol#lO!X#hO!{]O#e#kO#f#hO'{:iO!j(iP~P.iO!k#nO'{#mO~O!w#rO!{]O%b#sO~O#g#tO~O!d#uO#g#tO~OP$]OZ$dOn$QO|#yO}#zO!P#{O!Y$aO!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO#x$XO#y$YO(XVO(h$ZO(o#|O(p#}O~O`(]X'r(]X'p(]X!j(]X!V(]X![(]X%c(]X!d(]X~P1qO#[$eO$O$eOP(^XZ(^Xn(^X|(^X}(^X!P(^X!Y(^X!h(^X!k(^X!o(^X#j(^X#k(^X#l(^X#m(^X#n(^X#o(^X#p(^X#q(^X#r(^X#t(^X#v(^X#x(^X#y(^X(X(^X(h(^X(o(^X(p(^X![(^X%c(^X~O`(^X!i(^X'r(^X'p(^X!V(^X!j(^Xr(^X!d(^X~P4XO#[$eO~O$Y$gO$[$fO$c$lO~ORfO![$mO$f$nO$h$pO~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz%ZO!P${O![$|O!f%`O!k$xO#f%aO$T%^O$o%[O$q%]O$t%_O'{$rO'}TO(QUO(X$uO(o$}O(p%POf(UP~O!k%bO~O!P%eO![%fO'{%dO~O!d%jO~O`%kO'r%kO~O'|!lO~P%[O%h%rO~P%[Og%VO!k%bO'{%dO'|!lO~Od%yO!k%bO'{%dO~O#r$SO~O|&OO![%{O!k%}O%d&RO'{%dO'|!lO'}TO(QUO_(}P~O!w#rO~O%m&TO!P(yX![(yX'{(yX~O'{&UO~O!t&ZO#s!PO%d!QO%f!OO%g!OO%h!OO%k!RO%m!SO%p!TO%q!TO~Oc&`Od&_O!w&]O%b&^O%u&[O~P;xOc&cOdyO![&bO!t&ZO!wxO!{]O#s!PO%b}O%f!OO%g!OO%h!OO%k!RO%m!SO%p!TO%q!TO%s!UO~Oa&fO#[&iO%d&dO'|!lO~P<}O!k&jO!t&nO~O!k#nO~O![XO~O`%kO'q&vO'r%kO~O`%kO'q&yO'r%kO~O`%kO'q&{O'r%kO~O'p[X!V[Xr[X!j[X&T[X![[X%c[X!d[X~P(qO!_'YO!`'RO!a'RO'|!lO'}TO(QUO~Oo'PO!P'OO!X'SO([&}O!Z(`P!Z(nP~P@UOj']O!['ZO'{%dO~Od'bO!k%bO'{%dO~O|&OO!k%}O~Oo!nO!P!oO!{:dO#P!pO#Q!pO#S!pO#T!pO'|!lO'}TO(QUO([!mO(g!sO~O!_'hO!`'gO!a'gO#R!pO#W'iO#X'iO~PApO`%kOg%VO!d#uO!k%bO'r%kO(h'kO~O!o'oO#['mO~PCOOo!nO!P!oO'}TO(QUO([!mO(g!sO~O![XOo(eX!P(eX!_(eX!`(eX!a(eX!{(eX#P(eX#Q(eX#R(eX#S(eX#T(eX#W(eX#X(eX'|(eX'}(eX(Q(eX([(eX(g(eX~O!`'gO!a'gO'|!lO~PCnO'w'sO'x'sO'y'uO~O^!|O'}'wO(O!|O(P'wO~O^#PO(P'wO(Q'wO(R#PO~Ot#RO!R#SO(Y#SO(Z'{O~O!X'}O!V'PX!V'VX!Y'PX!Y'VX~P+}O!Y(PO!V(_X~OP$]OZ$dOn$QO|#yO}#zO!P#{O!Y(PO!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO#x$XO#y$YO(XVO(h$ZO(o#|O(p#}O~O!V(_X~PGbO!V(UO~O!V(kX!Y(kX!d(kX!j(kX(h(kX~O#[(kX#g#`X!Z(kX~PIhO#[(VO!V(mX!Y(mX~O!Y(WO!V(lX~O!V(ZO~O#[$eO~PIhO!Z([O~P`O|#yO}#zO!P#{O!i#wO!k#xO(XVOP!maZ!man!ma!Y!ma!h!ma!o!ma#j!ma#k!ma#l!ma#m!ma#n!ma#o!ma#p!ma#q!ma#r!ma#t!ma#v!ma#x!ma#y!ma(h!ma(o!ma(p!ma~O`!ma'r!ma'p!ma!V!ma!j!mar!ma![!ma%c!ma!d!ma~PKOO!j(]O~O!d#uO#[(^O(h'kO!Y(jX`(jX'r(jX~O!j(jX~PMnO!P%eO![%fO!{]O#e(cO#f(bO'{%dO~O!Y(dO!j(iX~O!j(fO~O!P%eO![%fO#f(bO'{%dO~OP(^XZ(^Xn(^X|(^X}(^X!P(^X!Y(^X!h(^X!i(^X!k(^X!o(^X#j(^X#k(^X#l(^X#m(^X#n(^X#o(^X#p(^X#q(^X#r(^X#t(^X#v(^X#x(^X#y(^X(X(^X(h(^X(o(^X(p(^X~O!d#uO!j(^X~P! [O|(gO}(hO!i#wO!k#xO!{!za!P!za~O!w!za%b!za![!za#e!za#f!za'{!za~P!#`O!w(lO~OPYOQYORfOc!jOd!iOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![XO!fuO!kZO!nYO!oYO!pYO!rvO!t!gO!w!hO$T!kO'{!dO'}TO(QUO(XVO(g[O(tiO~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz;QO!P${O![$|O!f<`O!k$xO#f;WO$T%^O$o;SO$q;UO$t%_O'{(pO'}TO(QUO(X$uO(o$}O(p%PO~O#g(rO~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz%ZO!P${O![$|O!f%`O!k$xO#f%aO$T%^O$o%[O$q%]O$t%_O'{(pO'}TO(QUO(X$uO(o$}O(p%PO~Of(bP~P!(SO!X(vO!j(cP~P%[O([(xO(g[O~O!P(zO!k#xO([(xO(g[O~OP:cOQ:cORfOc<[Od!iOlkOn:cOokOpkOvkOx:cOz:cO!PWO!TkO!UkO![!eO!f:fO!kZO!n:cO!o:cO!p:cO!r:gO!t:jO!w!hO$T!kO'{)YO'}TO(QUO(XVO(g[O(t<YO~O})]O!k#xO~O!Y$aO`$ma'r$ma'p$ma!j$ma!V$ma![$ma%c$ma!d$ma~O#s)aO~P!&dO|)dO!d)cO![$ZX$W$ZX$Y$ZX$[$ZX$c$ZX~O!d)cO![(qX$W(qX$Y(qX$[(qX$c(qX~O|)dO~P!.OO|)dO![(qX$W(qX$Y(qX$[(qX$c(qX~O![)fO$W)jO$Y)eO$[)eO$c)kO~O!X)nO~P!*fO$Y$gO$[$fO$c)rO~Oj$uX|$uX!P$uX!i$uX(o$uX(p$uX~OfiXf$uXjiX!YiX#[iX~P!/tOo)tO~Ot)uO(Y)vO(Z)xO~Oj*RO|)zO!P){O(o$}O(p%PO~Of)yO~P!0}Of*SO~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz;QO!P${O![$|O!f<`O!k$xO#f;WO$T%^O$o;SO$q;UO$t%_O'}TO(QUO(X$uO(o$}O(p%PO~O!X*WO'{*TO!j(uP~P!1lO#g*YO~O!k*ZO~O!X*`O'{*]O!V(vP~P!1lOn*lO!P*dO!_*jO!`*cO!a*cO!k*ZO#W*kO%Y*fO'|!lO([!mO~O!Z*iO~P!3xO!i#wOj(WX|(WX!P(WX(o(WX(p(WX!Y(WX#[(WX~Of(WX#|(WX~P!4qOj*qO#[*pOf(VX!Y(VX~O!Y*rOf(UX~O'{&UOf(UP~O!k*yO~O'{(pO~Ol*}O!P%eO!X#hO![%fO!{]O#e#kO#f#hO'{%dO!j(iP~O!d#uO#g+OO~O!P%eO!X+QO!Y(WO![%fO'{%dO!V(lP~Oo'VO!P+SO!X+RO'}TO(QUO([(xO~O!Z(nP~P!7lO!Y+TO`(zX'r(zX~OP$]OZ$dOn$QO|#yO}#zO!P#{O!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO#x$XO#y$YO(XVO(h$ZO(o#|O(p#}O~O`!ea!Y!ea'r!ea'p!ea!V!ea!j!ear!ea![!ea%c!ea!d!ea~P!8dO|#yO}#zO!P#{O!i#wO!k#xO(XVOP!qaZ!qan!qa!Y!qa!h!qa!o!qa#j!qa#k!qa#l!qa#m!qa#n!qa#o!qa#p!qa#q!qa#r!qa#t!qa#v!qa#x!qa#y!qa(h!qa(o!qa(p!qa~O`!qa'r!qa'p!qa!V!qa!j!qar!qa![!qa%c!qa!d!qa~P!:}O|#yO}#zO!P#{O!i#wO!k#xO(XVOP!saZ!san!sa!Y!sa!h!sa!o!sa#j!sa#k!sa#l!sa#m!sa#n!sa#o!sa#p!sa#q!sa#r!sa#t!sa#v!sa#x!sa#y!sa(h!sa(o!sa(p!sa~O`!sa'r!sa'p!sa!V!sa!j!sar!sa![!sa%c!sa!d!sa~P!=hOg%VOj+^O!['ZO%c+]O~O!d+`O`(TX![(TX'r(TX!Y(TX~O`%kO![XO'r%kO~Og%VO!k%bO~Og%VO!k%bO'{%dO~O!d#uO#g(rO~Oa+kO%d+lO'{+hO'}TO(QUO!Z)OP~O!Y+mO_(}X~OZ+qO~O_+rO~O![%{O'{%dO'|!lO_(}P~Og%VO#[+wO~Og%VOj+zO![$|O~O![+|O~O|,OO![XO~O%h%rO~O!w,TO~Od,YO~Oa,ZO'{#mO'}TO(QUO!Z(|P~Od%yO~O%d!QO'{&UO~P<}OZ,`O_,_O~OPYOQYORfOczOdyOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO!fuO!kZO!nYO!oYO!pYO!rvO!wxO!{]O%b}O'}TO(QUO(XVO(g[O(tiO~O![!eO!t!gO$T!kO'{!dO~P!DkO_,_O`%kO'r%kO~OPYOQYORfOc!jOd!iOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![!eO!fuO!kZO!nYO!oYO!pYO!rvO!w!hO$T!kO'{!dO'}TO(QUO(XVO(g[O(tiO~O`,eO!twO#s!OO%f!OO%g!OO%h!OO~P!GTO!k&jO~O&V,kO~O![,mO~O&h,oO&j,pOP&eaQ&eaR&eaX&ea`&eac&ead&eal&ean&eao&eap&eav&eax&eaz&ea!P&ea!T&ea!U&ea![&ea!f&ea!k&ea!n&ea!o&ea!p&ea!r&ea!t&ea!w&ea!{&ea#s&ea$T&ea%b&ea%d&ea%f&ea%g&ea%h&ea%k&ea%m&ea%p&ea%q&ea%s&ea&P&ea&V&ea&X&ea&Z&ea&]&ea&`&ea&f&ea&l&ea&n&ea&p&ea&r&ea&t&ea'p&ea'{&ea'}&ea(Q&ea(X&ea(g&ea(t&ea!Z&ea&^&eaa&ea&c&ea~O'{,uO~Og!bX!Y!OX!Y!bX!Z!OX!Z!bX!d!OX!d!bX!k!bX#[!OX~O!d,zO#[,yOg(aX!Y#dX!Y(aX!Z#dX!Z(aX!d(aX!k(aX~Og%VO!d,|O!k%bO!Y!^X!Z!^X~Oo!nO!P!oO'}TO(QUO([!mO~OP:cOQ:cORfOc<[Od!iOlkOn:cOokOpkOvkOx:cOz:cO!PWO!TkO!UkO![!eO!f:fO!kZO!n:cO!o:cO!p:cO!r:gO!t:jO!w!hO$T!kO'}TO(QUO(XVO(g[O(t<YO~O'{;]O~P#!ZO!Y-QO!Z(`X~O!Z-SO~O!d,zO#[,yO!Y#dX!Z#dX~O!Y-TO!Z(nX~O!Z-VO~O!`-WO!a-WO'|!lO~P# xO!Z-ZO~P'_Oj-^O!['ZO~O!V-cO~Oo!za!_!za!`!za!a!za#P!za#Q!za#R!za#S!za#T!za#W!za#X!za'|!za'}!za(Q!za([!za(g!za~P!#`O!o-hO#[-fO~PCOO!`-jO!a-jO'|!lO~PCnO`%kO#[-fO'r%kO~O`%kO!d#uO#[-fO'r%kO~O`%kO!d#uO!o-hO#[-fO'r%kO(h'kO~O'w'sO'x'sO'y-oO~Or-pO~O!V'Pa!Y'Pa~P!8dO!X-tO!V'PX!Y'PX~P%[O!Y(PO!V(_a~O!V(_a~PGbO!Y(WO!V(la~O!P%eO!X-xO![%fO'{%dO!V'VX!Y'VX~O#[-zO!Y(ja!j(ja`(ja'r(ja~O!d#uO~P#*aO!Y(dO!j(ia~O!P%eO![%fO#f.OO'{%dO~Ol.TO!P%eO!X.QO![%fO!{]O#e.SO#f.QO'{%dO!Y'YX!j'YX~O}.XO!k#xO~Og%VOj.[O!['ZO%c.ZO~O`#_i!Y#_i'r#_i'p#_i!V#_i!j#_ir#_i![#_i%c#_i!d#_i~P!8dOj<fO|)zO!P){O(o$}O(p%PO~O#g#Za`#Za#[#Za'r#Za!Y#Za!j#Za![#Za!V#Za~P#-]O#g(WXP(WXZ(WX`(WXn(WX}(WX!h(WX!k(WX!o(WX#j(WX#k(WX#l(WX#m(WX#n(WX#o(WX#p(WX#q(WX#r(WX#t(WX#v(WX#x(WX#y(WX'r(WX(X(WX(h(WX!j(WX!V(WX'p(WXr(WX![(WX%c(WX!d(WX~P!4qO!Y.iOf(bX~P!0}Of.kO~O!Y.lO!j(cX~P!8dO!j.oO~O!V.qO~OP$]O|#yO}#zO!P#{O!i#wO!k#xO!o$]O(XVOZ#ii`#iin#ii!Y#ii!h#ii#k#ii#l#ii#m#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii'r#ii(h#ii(o#ii(p#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~O#j#ii~P#1XO#j$OO~P#1XOP$]O|#yO}#zO!P#{O!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO(XVOZ#ii`#ii!Y#ii!h#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii'r#ii(h#ii(o#ii(p#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~On#ii~P#3yOn$QO~P#3yOP$]On$QO|#yO}#zO!P#{O!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO(XVO`#ii!Y#ii#t#ii#v#ii#x#ii#y#ii'r#ii(h#ii(o#ii(p#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~OZ#ii!h#ii#o#ii#p#ii#q#ii#r#ii~P#6kOZ$dO!h$SO#o$SO#p$SO#q$cO#r$SO~P#6kOP$]OZ$dOn$QO|#yO}#zO!P#{O!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO(XVO`#ii!Y#ii#v#ii#x#ii#y#ii'r#ii(h#ii(p#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~O(o#ii~P#9lO(o#|O~P#9lOP$]OZ$dOn$QO|#yO}#zO!P#{O!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO(XVO(o#|O`#ii!Y#ii#x#ii#y#ii'r#ii(h#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~O(p#ii~P#<^O(p#}O~P#<^OP$]OZ$dOn$QO|#yO}#zO!P#{O!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO#x$XO(XVO(o#|O(p#}O~O`#ii!Y#ii#y#ii'r#ii(h#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~P#?OOP[XZ[Xn[X|[X}[X!P[X!h[X!i[X!k[X!o[X#[[X#geX#j[X#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#t[X#v[X#x[X#y[X$O[X(X[X(h[X(o[X(p[X!Y[X!Z[X~O#|[X~P#AiOP$]OZ:zOn:nO|#yO}#zO!P#{O!h:pO!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO#o:pO#p:pO#q:yO#r:pO#t:qO#v:sO#x:uO#y:vO(XVO(h$ZO(o#|O(p#}O~O#|.sO~P#CvO#[:{O$O:{O#|(^X!Z(^X~P! [O`']a!Y']a'r']a'p']a!j']a!V']ar']a![']a%c']a!d']a~P!8dOP#iiZ#ii`#iin#ii}#ii!Y#ii!h#ii!i#ii!k#ii!o#ii#j#ii#k#ii#l#ii#m#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii'r#ii(X#ii(h#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~P#-]O`#}i!Y#}i'r#}i'p#}i!V#}i!j#}ir#}i![#}i%c#}i!d#}i~P!8dO$Y.xO$[.xO~O$Y.yO$[.yO~O!d)cO#[.zO![$`X$W$`X$Y$`X$[$`X$c$`X~O!X.{O~O![)fO$W.}O$Y)eO$[)eO$c/OO~O!Y:wO!Z(]X~P#CvO!Z/PO~O!d)cO$c(qX~O$c/RO~Ot)uO(Y)vO(Z/UO~O!V/YO~P!&dO(o$}Oj%Za|%Za!P%Za(p%Za!Y%Za#[%Za~Of%Za#|%Za~P#LWO(p%POj%]a|%]a!P%]a(o%]a!Y%]a#[%]a~Of%]a#|%]a~P#LyO!YeX!deX!jeX!j$uX(heX~P!/tO!j/bO~P#-]O!Y/cO!d#uO(h'kO!j(uX~O!j/hO~O!X*WO'{%dO!j(uP~O#g/jO~O!V$uX!Y$uX!d$|X~P!/tO!Y/kO!V(vX~P#-]O!d/mO~O!V/oO~Og%VOn/sO!d#uO!k%bO(h'kO~O'{/uO~O!d+`O~O`%kO!Y/yO'r%kO~O!Z/{O~P!3xO!`/|O!a/|O'|!lO([!mO~O!P0OO([!mO~O#W0PO~Of%Za!Y%Za#[%Za#|%Za~P!0}Of%]a!Y%]a#[%]a#|%]a~P!0}O'{&UOf'fX!Y'fX~O!Y*rOf(Ua~Of0YO~O|0ZO}0ZO!P0[Ojya(oya(pya!Yya#[ya~Ofya#|ya~P$$dO|)zO!P){Oj$na(o$na(p$na!Y$na#[$na~Of$na#|$na~P$%YO|)zO!P){Oj$pa(o$pa(p$pa!Y$pa#[$pa~Of$pa#|$pa~P$%{O#g0^O~Of%Oa!Y%Oa#[%Oa#|%Oa~P!0}O!d#uO~O#g0aO~O!Y+TO`(za'r(za~O|#yO}#zO!P#{O!i#wO!k#xO(XVOP!qiZ!qin!qi!Y!qi!h!qi!o!qi#j!qi#k!qi#l!qi#m!qi#n!qi#o!qi#p!qi#q!qi#r!qi#t!qi#v!qi#x!qi#y!qi(h!qi(o!qi(p!qi~O`!qi'r!qi'p!qi!V!qi!j!qir!qi![!qi%c!qi!d!qi~P$'jOg%VOn$tOo$sOp$sOv%XOx%YOz;QO!P${O![$|O!f<`O!k$xO#f;WO$T%^O$o;SO$q;UO$t%_O'}TO(QUO(X$uO(o$}O(p%PO~Ol0kO'{0jO~P$*TO!d+`O`(Ta![(Ta'r(Ta!Y(Ta~O#g0qO~OZ[X!YeX!ZeX~O!Y0rO!Z)OX~O!Z0tO~OZ0uO~Oa0wO'{+hO'}TO(QUO~O![%{O'{%dO_'nX!Y'nX~O!Y+mO_(}a~O!j0zO~P!8dOZ0}O~O_1OO~O#[1RO~Oj1UO![$|O~O([(xO!Z({P~Og%VOj1_O![1[O%c1^O~OZ1iO!Y1gO!Z(|X~O!Z1jO~O_1lO`%kO'r%kO~O'{#mO'}TO(QUO~O#[$eO$O$eOP(^XZ(^Xn(^X|(^X}(^X!P(^X!Y(^X!h(^X!k(^X!o(^X#j(^X#k(^X#l(^X#m(^X#n(^X#o(^X#p(^X#q(^X#t(^X#v(^X#x(^X#y(^X(X(^X(h(^X(o(^X(p(^X~O#r1oO&T1pO`(^X!i(^X~P$/kO#[$eO#r1oO&T1pO~O`1rO~P%[O`1tO~O&^1wOP&[iQ&[iR&[iX&[i`&[ic&[id&[il&[in&[io&[ip&[iv&[ix&[iz&[i!P&[i!T&[i!U&[i![&[i!f&[i!k&[i!n&[i!o&[i!p&[i!r&[i!t&[i!w&[i!{&[i#s&[i$T&[i%b&[i%d&[i%f&[i%g&[i%h&[i%k&[i%m&[i%p&[i%q&[i%s&[i&P&[i&V&[i&X&[i&Z&[i&]&[i&`&[i&f&[i&l&[i&n&[i&p&[i&r&[i&t&[i'p&[i'{&[i'}&[i(Q&[i(X&[i(g&[i(t&[i!Z&[ia&[i&c&[i~Oa1}O!Z1{O&c1|O~P`O![XO!k2PO~O&j,pOP&eiQ&eiR&eiX&ei`&eic&eid&eil&ein&eio&eip&eiv&eix&eiz&ei!P&ei!T&ei!U&ei![&ei!f&ei!k&ei!n&ei!o&ei!p&ei!r&ei!t&ei!w&ei!{&ei#s&ei$T&ei%b&ei%d&ei%f&ei%g&ei%h&ei%k&ei%m&ei%p&ei%q&ei%s&ei&P&ei&V&ei&X&ei&Z&ei&]&ei&`&ei&f&ei&l&ei&n&ei&p&ei&r&ei&t&ei'p&ei'{&ei'}&ei(Q&ei(X&ei(g&ei(t&ei!Z&ei&^&eia&ei&c&ei~O!V2VO~O!Y!^a!Z!^a~P#CvOo!nO!P!oO!X2]O([!mO!Y'QX!Z'QX~P@UO!Y-QO!Z(`a~O!Y'WX!Z'WX~P!7lO!Y-TO!Z(na~O!Z2dO~P'_O`%kO#[2mO'r%kO~O`%kO!d#uO#[2mO'r%kO~O`%kO!d#uO!o2qO#[2mO'r%kO(h'kO~O`%kO'r%kO~P!8dO!Y$aOr$ma~O!V'Pi!Y'Pi~P!8dO!Y(PO!V(_i~O!Y(WO!V(li~O!V(mi!Y(mi~P!8dO!Y(ji!j(ji`(ji'r(ji~P!8dO#[2sO!Y(ji!j(ji`(ji'r(ji~O!Y(dO!j(ii~O!P%eO![%fO!{]O#e2xO#f2wO'{%dO~O!P%eO![%fO#f2wO'{%dO~Oj3PO!['ZO%c3OO~Og%VOj3PO!['ZO%c3OO~O#g%ZaP%ZaZ%Za`%Zan%Za}%Za!h%Za!i%Za!k%Za!o%Za#j%Za#k%Za#l%Za#m%Za#n%Za#o%Za#p%Za#q%Za#r%Za#t%Za#v%Za#x%Za#y%Za'r%Za(X%Za(h%Za!j%Za!V%Za'p%Zar%Za![%Za%c%Za!d%Za~P#LWO#g%]aP%]aZ%]a`%]an%]a}%]a!h%]a!i%]a!k%]a!o%]a#j%]a#k%]a#l%]a#m%]a#n%]a#o%]a#p%]a#q%]a#r%]a#t%]a#v%]a#x%]a#y%]a'r%]a(X%]a(h%]a!j%]a!V%]a'p%]ar%]a![%]a%c%]a!d%]a~P#LyO#g%ZaP%ZaZ%Za`%Zan%Za}%Za!Y%Za!h%Za!i%Za!k%Za!o%Za#j%Za#k%Za#l%Za#m%Za#n%Za#o%Za#p%Za#q%Za#r%Za#t%Za#v%Za#x%Za#y%Za'r%Za(X%Za(h%Za!j%Za!V%Za'p%Za#[%Zar%Za![%Za%c%Za!d%Za~P#-]O#g%]aP%]aZ%]a`%]an%]a}%]a!Y%]a!h%]a!i%]a!k%]a!o%]a#j%]a#k%]a#l%]a#m%]a#n%]a#o%]a#p%]a#q%]a#r%]a#t%]a#v%]a#x%]a#y%]a'r%]a(X%]a(h%]a!j%]a!V%]a'p%]a#[%]ar%]a![%]a%c%]a!d%]a~P#-]O#gyaPyaZya`yanya!hya!iya!kya!oya#jya#kya#lya#mya#nya#oya#pya#qya#rya#tya#vya#xya#yya'rya(Xya(hya!jya!Vya'pyarya![ya%cya!dya~P$$dO#g$naP$naZ$na`$nan$na}$na!h$na!i$na!k$na!o$na#j$na#k$na#l$na#m$na#n$na#o$na#p$na#q$na#r$na#t$na#v$na#x$na#y$na'r$na(X$na(h$na!j$na!V$na'p$nar$na![$na%c$na!d$na~P$%YO#g$paP$paZ$pa`$pan$pa}$pa!h$pa!i$pa!k$pa!o$pa#j$pa#k$pa#l$pa#m$pa#n$pa#o$pa#p$pa#q$pa#r$pa#t$pa#v$pa#x$pa#y$pa'r$pa(X$pa(h$pa!j$pa!V$pa'p$par$pa![$pa%c$pa!d$pa~P$%{O#g%OaP%OaZ%Oa`%Oan%Oa}%Oa!Y%Oa!h%Oa!i%Oa!k%Oa!o%Oa#j%Oa#k%Oa#l%Oa#m%Oa#n%Oa#o%Oa#p%Oa#q%Oa#r%Oa#t%Oa#v%Oa#x%Oa#y%Oa'r%Oa(X%Oa(h%Oa!j%Oa!V%Oa'p%Oa#[%Oar%Oa![%Oa%c%Oa!d%Oa~P#-]O`#_q!Y#_q'r#_q'p#_q!V#_q!j#_qr#_q![#_q%c#_q!d#_q~P!8dOf'RX!Y'RX~P!(SO!Y.iOf(ba~O!X3ZO!Y'SX!j'SX~P%[O!Y.lO!j(ca~O!Y.lO!j(ca~P!8dO!V3^O~O#|!ma!Z!ma~PKOO#|!ea!Y!ea!Z!ea~P#CvO#|!qa!Z!qa~P!:}O#|!sa!Z!sa~P!=hORfO![3pO$a3qO~O!Z3uO~Or3vO~P#-]O`$jq!Y$jq'r$jq'p$jq!V$jq!j$jqr$jq![$jq%c$jq!d$jq~P!8dO!V3wO~P#-]O|)zO!P){O(p%POj'ba(o'ba!Y'ba#['ba~Of'ba#|'ba~P%)_O|)zO!P){Oj'da(o'da(p'da!Y'da#['da~Of'da#|'da~P%*QO(h$ZO~P#-]O!X3zO'{%dO!Y'^X!j'^X~O!Y/cO!j(ua~O!Y/cO!d#uO!j(ua~O!Y/cO!d#uO(h'kO!j(ua~Of$wi!Y$wi#[$wi#|$wi~P!0}O!X4SO'{*]O!V'`X!Y'`X~P!1lO!Y/kO!V(va~O!Y/kO!V(va~P#-]O!d#uO#r4[O~On4_O!d#uO(h'kO~O(o$}Oj%Zi|%Zi!P%Zi(p%Zi!Y%Zi#[%Zi~Of%Zi#|%Zi~P%-dO(p%POj%]i|%]i!P%]i(o%]i!Y%]i#[%]i~Of%]i#|%]i~P%.VOf(Vi!Y(Vi~P!0}O#[4fOf(Vi!Y(Vi~P!0}O!j4iO~O`$kq!Y$kq'r$kq'p$kq!V$kq!j$kqr$kq![$kq%c$kq!d$kq~P!8dO!V4mO~O!Y4nO![(wX~P#-]O!i#wO~P4XO`$uX![$uX%W[X'r$uX!Y$uX~P!/tO%W4pO`kXjkX|kX!PkX![kX'rkX(okX(pkX!YkX~O%W4pO~Oa4vO%d4wO'{+hO'}TO(QUO!Y'mX!Z'mX~O!Y0rO!Z)Oa~OZ4{O~O_4|O~O`%kO'r%kO~P#-]O![$|O~P#-]O!Y5UO#[5WO!Z({X~O!Z5XO~Oo!nO!P5YO!_!xO!`!uO!a!uO!{:dO#P!pO#Q!pO#R!pO#S!pO#T!pO#W5_O#X!yO'|!lO'}TO(QUO([!mO(g!sO~O!Z5^O~P%3hOj5dO![1[O%c5cO~Og%VOj5dO![1[O%c5cO~Oa5kO'{#mO'}TO(QUO!Y'lX!Z'lX~O!Y1gO!Z(|a~O'}TO(QUO([5mO~O_5qO~O#r5tO&T5uO~PMnO!j5vO~P%[O`5xO~O`5xO~P%[Oa1}O!Z5}O&c1|O~P`O!d6PO~O!d6ROg(ai!Y(ai!Z(ai!d(ai!k(ai~O!Y#di!Z#di~P#CvO#[6SO!Y#di!Z#di~O!Y!^i!Z!^i~P#CvO`%kO#[6]O'r%kO~O`%kO!d#uO#[6]O'r%kO~O!Y(jq!j(jq`(jq'r(jq~P!8dO!Y(dO!j(iq~O!P%eO![%fO#f6dO'{%dO~O!['ZO%c6gO~Oj6jO!['ZO%c6gO~O#g'baP'baZ'ba`'ban'ba}'ba!h'ba!i'ba!k'ba!o'ba#j'ba#k'ba#l'ba#m'ba#n'ba#o'ba#p'ba#q'ba#r'ba#t'ba#v'ba#x'ba#y'ba'r'ba(X'ba(h'ba!j'ba!V'ba'p'bar'ba!['ba%c'ba!d'ba~P%)_O#g'daP'daZ'da`'dan'da}'da!h'da!i'da!k'da!o'da#j'da#k'da#l'da#m'da#n'da#o'da#p'da#q'da#r'da#t'da#v'da#x'da#y'da'r'da(X'da(h'da!j'da!V'da'p'dar'da!['da%c'da!d'da~P%*QO#g$wiP$wiZ$wi`$win$wi}$wi!Y$wi!h$wi!i$wi!k$wi!o$wi#j$wi#k$wi#l$wi#m$wi#n$wi#o$wi#p$wi#q$wi#r$wi#t$wi#v$wi#x$wi#y$wi'r$wi(X$wi(h$wi!j$wi!V$wi'p$wi#[$wir$wi![$wi%c$wi!d$wi~P#-]O#g%ZiP%ZiZ%Zi`%Zin%Zi}%Zi!h%Zi!i%Zi!k%Zi!o%Zi#j%Zi#k%Zi#l%Zi#m%Zi#n%Zi#o%Zi#p%Zi#q%Zi#r%Zi#t%Zi#v%Zi#x%Zi#y%Zi'r%Zi(X%Zi(h%Zi!j%Zi!V%Zi'p%Zir%Zi![%Zi%c%Zi!d%Zi~P%-dO#g%]iP%]iZ%]i`%]in%]i}%]i!h%]i!i%]i!k%]i!o%]i#j%]i#k%]i#l%]i#m%]i#n%]i#o%]i#p%]i#q%]i#r%]i#t%]i#v%]i#x%]i#y%]i'r%]i(X%]i(h%]i!j%]i!V%]i'p%]ir%]i![%]i%c%]i!d%]i~P%.VOf'Ra!Y'Ra~P!0}O!Y'Sa!j'Sa~P!8dO!Y.lO!j(ci~O#|#_i!Y#_i!Z#_i~P#CvOP$]O|#yO}#zO!P#{O!i#wO!k#xO!o$]O(XVOZ#iin#ii!h#ii#k#ii#l#ii#m#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii#|#ii(h#ii(o#ii(p#ii!Y#ii!Z#ii~O#j#ii~P%FhO#j:lO~P%FhOP$]O|#yO}#zO!P#{O!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO(XVOZ#ii!h#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii#|#ii(h#ii(o#ii(p#ii!Y#ii!Z#ii~On#ii~P%HsOn:nO~P%HsOP$]On:nO|#yO}#zO!P#{O!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO(XVO#t#ii#v#ii#x#ii#y#ii#|#ii(h#ii(o#ii(p#ii!Y#ii!Z#ii~OZ#ii!h#ii#o#ii#p#ii#q#ii#r#ii~P%KOOZ:zO!h:pO#o:pO#p:pO#q:yO#r:pO~P%KOOP$]OZ:zOn:nO|#yO}#zO!P#{O!h:pO!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO#o:pO#p:pO#q:yO#r:pO#t:qO(XVO#v#ii#x#ii#y#ii#|#ii(h#ii(p#ii!Y#ii!Z#ii~O(o#ii~P%MjO(o#|O~P%MjOP$]OZ:zOn:nO|#yO}#zO!P#{O!h:pO!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO#o:pO#p:pO#q:yO#r:pO#t:qO#v:sO(XVO(o#|O#x#ii#y#ii#|#ii(h#ii!Y#ii!Z#ii~O(p#ii~P& uO(p#}O~P& uOP$]OZ:zOn:nO|#yO}#zO!P#{O!h:pO!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO#o:pO#p:pO#q:yO#r:pO#t:qO#v:sO#x:uO(XVO(o#|O(p#}O~O#y#ii#|#ii(h#ii!Y#ii!Z#ii~P&$QO`#zy!Y#zy'r#zy'p#zy!V#zy!j#zyr#zy![#zy%c#zy!d#zy~P!8dOj<gO|)zO!P){O(o$}O(p%PO~OP#iiZ#iin#ii}#ii!h#ii!i#ii!k#ii!o#ii#j#ii#k#ii#l#ii#m#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii#|#ii(X#ii(h#ii!Y#ii!Z#ii~P&&xO!i#wOP(WXZ(WXj(WXn(WX|(WX}(WX!P(WX!h(WX!k(WX!o(WX#j(WX#k(WX#l(WX#m(WX#n(WX#o(WX#p(WX#q(WX#r(WX#t(WX#v(WX#x(WX#y(WX#|(WX(X(WX(h(WX(o(WX(p(WX!Y(WX!Z(WX~O#|#}i!Y#}i!Z#}i~P#CvO#|!qi!Z!qi~P$'jO!Z6|O~O!Y']a!Z']a~P#CvO!d#uO(h'kO!Y'^a!j'^a~O!Y/cO!j(ui~O!Y/cO!d#uO!j(ui~Of$wq!Y$wq#[$wq#|$wq~P!0}O!V'`a!Y'`a~P#-]O!d7TO~O!Y/kO!V(vi~P#-]O!Y/kO!V(vi~O!V7XO~O!d#uO#r7^O~On7_O!d#uO(h'kO~O|)zO!P){O(p%POj'ca(o'ca!Y'ca#['ca~Of'ca#|'ca~P&.YO|)zO!P){Oj'ea(o'ea(p'ea!Y'ea#['ea~Of'ea#|'ea~P&.{O!V7aO~Of$yq!Y$yq#[$yq#|$yq~P!0}O`$ky!Y$ky'r$ky'p$ky!V$ky!j$kyr$ky![$ky%c$ky!d$ky~P!8dO!d6RO~O!Y4nO![(wa~O`#_y!Y#_y'r#_y'p#_y!V#_y!j#_yr#_y![#_y%c#_y!d#_y~P!8dOZ7fO~Oa7hO'{+hO'}TO(QUO~O!Y0rO!Z)Oi~O_7lO~O([(xO!Y'iX!Z'iX~O!Y5UO!Z({a~OlkO'{7sO~P.iO!Z7vO~P%3hOo!nO!P7wO'}TO(QUO([!mO(g!sO~O![1[O~O![1[O%c7yO~Oj7|O![1[O%c7yO~OZ8RO!Y'la!Z'la~O!Y1gO!Z(|i~O!j8VO~O!j8WO~O!j8ZO~O!j8ZO~P%[O`8]O~O!d8^O~O!j8_O~O!Y(mi!Z(mi~P#CvO`%kO#[8gO'r%kO~O!Y(jy!j(jy`(jy'r(jy~P!8dO!Y(dO!j(iy~O!['ZO%c8jO~O#g$wqP$wqZ$wq`$wqn$wq}$wq!Y$wq!h$wq!i$wq!k$wq!o$wq#j$wq#k$wq#l$wq#m$wq#n$wq#o$wq#p$wq#q$wq#r$wq#t$wq#v$wq#x$wq#y$wq'r$wq(X$wq(h$wq!j$wq!V$wq'p$wq#[$wqr$wq![$wq%c$wq!d$wq~P#-]O#g'caP'caZ'ca`'can'ca}'ca!h'ca!i'ca!k'ca!o'ca#j'ca#k'ca#l'ca#m'ca#n'ca#o'ca#p'ca#q'ca#r'ca#t'ca#v'ca#x'ca#y'ca'r'ca(X'ca(h'ca!j'ca!V'ca'p'car'ca!['ca%c'ca!d'ca~P&.YO#g'eaP'eaZ'ea`'ean'ea}'ea!h'ea!i'ea!k'ea!o'ea#j'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#t'ea#v'ea#x'ea#y'ea'r'ea(X'ea(h'ea!j'ea!V'ea'p'ear'ea!['ea%c'ea!d'ea~P&.{O#g$yqP$yqZ$yq`$yqn$yq}$yq!Y$yq!h$yq!i$yq!k$yq!o$yq#j$yq#k$yq#l$yq#m$yq#n$yq#o$yq#p$yq#q$yq#r$yq#t$yq#v$yq#x$yq#y$yq'r$yq(X$yq(h$yq!j$yq!V$yq'p$yq#[$yqr$yq![$yq%c$yq!d$yq~P#-]O!Y'Si!j'Si~P!8dO#|#_q!Y#_q!Z#_q~P#CvO(o$}OP%ZaZ%Zan%Za}%Za!h%Za!i%Za!k%Za!o%Za#j%Za#k%Za#l%Za#m%Za#n%Za#o%Za#p%Za#q%Za#r%Za#t%Za#v%Za#x%Za#y%Za#|%Za(X%Za(h%Za!Y%Za!Z%Za~Oj%Za|%Za!P%Za(p%Za~P&@bO(p%POP%]aZ%]an%]a}%]a!h%]a!i%]a!k%]a!o%]a#j%]a#k%]a#l%]a#m%]a#n%]a#o%]a#p%]a#q%]a#r%]a#t%]a#v%]a#x%]a#y%]a#|%]a(X%]a(h%]a!Y%]a!Z%]a~Oj%]a|%]a!P%]a(o%]a~P&BiOj<gO|)zO!P){O(p%PO~P&@bOj<gO|)zO!P){O(o$}O~P&BiO|0ZO}0ZO!P0[OPyaZyajyanya!hya!iya!kya!oya#jya#kya#lya#mya#nya#oya#pya#qya#rya#tya#vya#xya#yya#|ya(Xya(hya(oya(pya!Yya!Zya~O|)zO!P){OP$naZ$naj$nan$na}$na!h$na!i$na!k$na!o$na#j$na#k$na#l$na#m$na#n$na#o$na#p$na#q$na#r$na#t$na#v$na#x$na#y$na#|$na(X$na(h$na(o$na(p$na!Y$na!Z$na~O|)zO!P){OP$paZ$paj$pan$pa}$pa!h$pa!i$pa!k$pa!o$pa#j$pa#k$pa#l$pa#m$pa#n$pa#o$pa#p$pa#q$pa#r$pa#t$pa#v$pa#x$pa#y$pa#|$pa(X$pa(h$pa(o$pa(p$pa!Y$pa!Z$pa~OP%OaZ%Oan%Oa}%Oa!h%Oa!i%Oa!k%Oa!o%Oa#j%Oa#k%Oa#l%Oa#m%Oa#n%Oa#o%Oa#p%Oa#q%Oa#r%Oa#t%Oa#v%Oa#x%Oa#y%Oa#|%Oa(X%Oa(h%Oa!Y%Oa!Z%Oa~P&&xO#|$jq!Y$jq!Z$jq~P#CvO#|$kq!Y$kq!Z$kq~P#CvO!Z8vO~O#|8wO~P!0}O!d#uO!Y'^i!j'^i~O!d#uO(h'kO!Y'^i!j'^i~O!Y/cO!j(uq~O!V'`i!Y'`i~P#-]O!Y/kO!V(vq~O!V8}O~P#-]O!V8}O~Of(Vy!Y(Vy~P!0}O!Y'ga!['ga~P#-]O`%Vq![%Vq'r%Vq!Y%Vq~P#-]OZ9SO~O!Y0rO!Z)Oq~O#[9WO!Y'ia!Z'ia~O!Y5UO!Z({i~P#CvOP[XZ[Xn[X|[X}[X!P[X!V[X!Y[X!h[X!i[X!k[X!o[X#[[X#geX#j[X#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#t[X#v[X#x[X#y[X$O[X(X[X(h[X(o[X(p[X~O!d%TX#r%TX~P'#SO![1[O%c9[O~O'}TO(QUO([9aO~O!Y1gO!Z(|q~O!j9dO~O!j9eO~O!j9fO~O!j9fO~P%[O#[9iO!Y#dy!Z#dy~O!Y#dy!Z#dy~P#CvO!['ZO%c9nO~O#|#zy!Y#zy!Z#zy~P#CvOP$wiZ$win$wi}$wi!h$wi!i$wi!k$wi!o$wi#j$wi#k$wi#l$wi#m$wi#n$wi#o$wi#p$wi#q$wi#r$wi#t$wi#v$wi#x$wi#y$wi#|$wi(X$wi(h$wi!Y$wi!Z$wi~P&&xO|)zO!P){O(p%POP'baZ'baj'ban'ba}'ba!h'ba!i'ba!k'ba!o'ba#j'ba#k'ba#l'ba#m'ba#n'ba#o'ba#p'ba#q'ba#r'ba#t'ba#v'ba#x'ba#y'ba#|'ba(X'ba(h'ba(o'ba!Y'ba!Z'ba~O|)zO!P){OP'daZ'daj'dan'da}'da!h'da!i'da!k'da!o'da#j'da#k'da#l'da#m'da#n'da#o'da#p'da#q'da#r'da#t'da#v'da#x'da#y'da#|'da(X'da(h'da(o'da(p'da!Y'da!Z'da~O(o$}OP%ZiZ%Zij%Zin%Zi|%Zi}%Zi!P%Zi!h%Zi!i%Zi!k%Zi!o%Zi#j%Zi#k%Zi#l%Zi#m%Zi#n%Zi#o%Zi#p%Zi#q%Zi#r%Zi#t%Zi#v%Zi#x%Zi#y%Zi#|%Zi(X%Zi(h%Zi(p%Zi!Y%Zi!Z%Zi~O(p%POP%]iZ%]ij%]in%]i|%]i}%]i!P%]i!h%]i!i%]i!k%]i!o%]i#j%]i#k%]i#l%]i#m%]i#n%]i#o%]i#p%]i#q%]i#r%]i#t%]i#v%]i#x%]i#y%]i#|%]i(X%]i(h%]i(o%]i!Y%]i!Z%]i~O#|$ky!Y$ky!Z$ky~P#CvO#|#_y!Y#_y!Z#_y~P#CvO!d#uO!Y'^q!j'^q~O!Y/cO!j(uy~O!V'`q!Y'`q~P#-]O!V9wO~P#-]O!Y0rO!Z)Oy~O!Y5UO!Z({q~O![1[O%c:OO~O!j:RO~O!['ZO%c:WO~OP$wqZ$wqn$wq}$wq!h$wq!i$wq!k$wq!o$wq#j$wq#k$wq#l$wq#m$wq#n$wq#o$wq#p$wq#q$wq#r$wq#t$wq#v$wq#x$wq#y$wq#|$wq(X$wq(h$wq!Y$wq!Z$wq~P&&xO|)zO!P){O(p%POP'caZ'caj'can'ca}'ca!h'ca!i'ca!k'ca!o'ca#j'ca#k'ca#l'ca#m'ca#n'ca#o'ca#p'ca#q'ca#r'ca#t'ca#v'ca#x'ca#y'ca#|'ca(X'ca(h'ca(o'ca!Y'ca!Z'ca~O|)zO!P){OP'eaZ'eaj'ean'ea}'ea!h'ea!i'ea!k'ea!o'ea#j'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#t'ea#v'ea#x'ea#y'ea#|'ea(X'ea(h'ea(o'ea(p'ea!Y'ea!Z'ea~OP$yqZ$yqn$yq}$yq!h$yq!i$yq!k$yq!o$yq#j$yq#k$yq#l$yq#m$yq#n$yq#o$yq#p$yq#q$yq#r$yq#t$yq#v$yq#x$yq#y$yq#|$yq(X$yq(h$yq!Y$yq!Z$yq~P&&xOf%_!Z!Y%_!Z#[%_!Z#|%_!Z~P!0}O!Y'iq!Z'iq~P#CvO!Y#d!Z!Z#d!Z~P#CvO#g%_!ZP%_!ZZ%_!Z`%_!Zn%_!Z}%_!Z!Y%_!Z!h%_!Z!i%_!Z!k%_!Z!o%_!Z#j%_!Z#k%_!Z#l%_!Z#m%_!Z#n%_!Z#o%_!Z#p%_!Z#q%_!Z#r%_!Z#t%_!Z#v%_!Z#x%_!Z#y%_!Z'r%_!Z(X%_!Z(h%_!Z!j%_!Z!V%_!Z'p%_!Z#[%_!Zr%_!Z![%_!Z%c%_!Z!d%_!Z~P#-]OP%_!ZZ%_!Zn%_!Z}%_!Z!h%_!Z!i%_!Z!k%_!Z!o%_!Z#j%_!Z#k%_!Z#l%_!Z#m%_!Z#n%_!Z#o%_!Z#p%_!Z#q%_!Z#r%_!Z#t%_!Z#v%_!Z#x%_!Z#y%_!Z#|%_!Z(X%_!Z(h%_!Z!Y%_!Z!Z%_!Z~P&&xOr(]X~P1qO'|!lO~P!*fO!VeX!YeX#[eX~P'#SOP[XZ[Xn[X|[X}[X!P[X!Y[X!YeX!h[X!i[X!k[X!o[X#[[X#[eX#geX#j[X#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#t[X#v[X#x[X#y[X$O[X(X[X(h[X(o[X(p[X~O!deX!j[X!jeX(heX~P'@vOP:cOQ:cORfOc<[Od!iOlkOn:cOokOpkOvkOx:cOz:cO!PWO!TkO!UkO![XO!f:fO!kZO!n:cO!o:cO!p:cO!r:gO!t:jO!w!hO$T!kO'{)YO'}TO(QUO(XVO(g[O(t<YO~O!Y:wO!Z$ma~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz;RO!P${O![$|O!f<aO!k$xO#f;XO$T%^O$o;TO$q;VO$t%_O'{(pO'}TO(QUO(X$uO(o$}O(p%PO~O#s)aO~P'ElO!Z[X!ZeX~P'@vO#g:kO~O!d#uO#g:kO~O#[:{O~O#r:pO~O#[;ZO!Y(mX!Z(mX~O#[:{O!Y(kX!Z(kX~O#g;[O~Of;^O~P!0}O#g;cO~O#g;dO~O!d#uO#g;eO~O!d#uO#g;[O~O#|;fO~P#CvO#g;gO~O#g;hO~O#g;mO~O#g;nO~O#g;oO~O#g;pO~O#|;qO~P!0}O#|;rO~P!0}O!i#P#Q#S#T#W#e#f#q(t$o$q$t%W%b%c%d%k%m%p%q%s%u~'vS#k!U't'|#lo#j#mn|'u$Y'u'{$[([~",goto:"$2p)SPPPPP)TPP)WP)iP*x.|PPPP5pPP6WPP<S?gP?zP?zPPP?zPAxP?zP?zP?zPA|PPBRPBlPGdPPPGhPPPPGhJiPPPJoKjPGhPMxPPPP!!WGhPPPGhPGhP!$fGhP!'z!(|!)VP!)y!)}!)yPPPPP!-Y!(|PP!-v!.pP!1dGhGh!1i!4s!9Y!9Y!=OPPP!=VGhPPPPPPPPPPP!@dP!AuPPGh!CSPGhPGhGhGhGhPGh!DfP!GnP!JrP!Jv!KQ!KU!KUP!GkP!KY!KYP!N^P!NbGhGh!Nh##k?zP?zP?z?zP#$v?z?z#'O?z#)k?z#+m?z?z#,[#.f#.f#.j#.r#.f#.zP#.fP?z#/d?z#3R?z?z5pPPP#6vPPP#7a#7aP#7aP#7w#7aPP#7}P#7tP#7t#8b#7t#8|#9S5m)W#9V)WP#9^#9^#9^P)WP)WP)WP)WPP)WP#9d#9gP#9g)WP#9kP#9nP)WP)WP)WP)WP)WP)W)WPP#9t#9z#:V#:]#:c#:i#:o#:}#;T#;Z#;e#;k#;u#<U#<[#<|#=`#=f#=l#=z#>a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#Ip#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<Y<b<c<f<gQ&S|Q'P!eS'V%f-TQ+k%{Q,Z&bQ0]*yQ0w+lQ0|+rQ1m,_Q1n,`Q4v0rQ5P1OQ5k1gQ5n1iQ5o1lQ7h4wQ7k4|Q8U5qQ9V7lR9b8RrnOXst!V!Z#c%j&d&m&o&p&r,h,m1w1zR,]&f&v^OPXYstuvwz!Z!`!g!j!o#R#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']'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<[<][#[WZ#V#Y'S'}!S%gm#g#h#k%b%e(W(b(c(d+Q+R+T,d,z-x.O.P.Q.S2P2w2x6R6dQ%sxQ%wyS%||&RQ&Y!TQ'^!hQ'`!iQ(k#rS*V$x*ZS+e%x%yQ+i%{Q,S&]Q,W&_S-a'a'bQ.^(lQ/g*WQ0p+fQ0v+lQ0x+mQ0{+qQ1a,TS1e,X,YQ2i-bQ3y/cQ4u0rQ4y0uQ5O0}Q5j1fQ7Q3zQ7g4wQ7j4{Q9R7fR9y9S!O$zi#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<c!S%uy!i!t%w%x%y'Q'`'a'b'f'p*b+e+f,}-a-b-i/t0p2b2i2p4^Q+_%sQ+x&VQ+{&WQ,V&_Q.](kQ1`,SU1d,W,X,YQ3Q.^Q5e1aS5i1e1fQ8Q5j#W<^#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<go<_:y:z:};P;T;V;X;`;b;d;h;j;l;n;rW%Ti%V*r<YS&V!Q&dQ&W!RQ&X!SR+v&T$w%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<Y<b<c<f<gT)v$u)wV*v%Z;Q;RU'V!e%f-TS(y#y#zQ+p&OS.V(g(hQ1V+|Q4g0ZR7p5U&|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<]$i$`c#X#d%n%o%q'|(S(n(u(})O)P)Q)R)S)T)U)V)W)X)Z)^)b)l+Z+o-O-m-r-w-y.h.n.r.t.u.v/V0_2W2Z2k2r3Y3_3`3a3b3c3d3e3f3g3h3i3j3k3n3o3t4k4s6U6[6a6o6p6y6z7r8a8e8n8t8u9k9{:S:e<PT#SV#T&}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<]Q'T!eR2^-Qv!nQ!e!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_S*b$|*hS/t*c*jQ/}*kQ1X,OQ4^/|R4a0PnqOXst!Z#c%j&m&o&p&r,h,m1w1zQ&t!^Q'q!wS(m#t:kQ+c%vQ,Q&YQ,R&[Q-_'_Q-l'jS.g(r;[S0`+O;eQ0n+dQ1Z,PQ2O,oQ2Q,pQ2Y,{Q2g-`Q2j-dS4l0a;oQ4q0oS4t0q;pQ6T2[Q6X2hQ6^2oQ7e4rQ8b6VQ8c6YQ8f6_R9h8_$d$_c#X#d%o%q'|(S(n(u(})O)P)Q)R)S)T)U)V)W)X)Z)^)b)l+Z+o-O-m-r-w-y.h.n.r.u.v/V0_2W2Z2k2r3Y3_3`3a3b3c3d3e3f3g3h3i3j3k3n3o3t4k4s6U6[6a6o6p6y6z7r8a8e8n8t8u9k9{:S:e<PS(j#o'dU*o%R(q3mS+Y%n.tQ2|0hQ6f2{Q8l6iR9o8m$d$^c#X#d%o%q'|(S(n(u(})O)P)Q)R)S)T)U)V)W)X)Z)^)b)l+Z+o-O-m-r-w-y.h.n.r.u.v/V0_2W2Z2k2r3Y3_3`3a3b3c3d3e3f3g3h3i3j3k3n3o3t4k4s6U6[6a6o6p6y6z7r8a8e8n8t8u9k9{:S:e<PS(i#o'dS({#z$_S+X%n.tS.W(h(jQ.w)]Q0e+YR2y.X&|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<]S#p]:dQ&o!XQ&p!YQ&r![Q&s!]R1v,kQ'[!hQ+[%sQ-]'^S.Y(k+_Q2e-[W2}.].^0g0iQ6W2fU6e2z2|3QS8i6f6hS9m8k8lS:U9l9oQ:^:VR:a:_U!vQ'Z-YT5Z1[5]!Q_OXZ`st!V!Z#c#g%b%j&d&f&m&o&p&r(d,h,m.P1w1z]!pQ!r'Z-Y1[5]T#p]:d%Y{OPWXYZstuvw!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&j&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|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8gS(y#y#zS.V(g(h!s;v$[$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<]Y!tQ'Z-Y1[5]Q'f!rS'p!u!xS'r!y5_S-i'g'hQ-k'iR2p-jQ'o!tS(`#f1qS-h'f'rQ/f*VQ/r*bQ2q-kQ4O/gS4X/s/}Q7P3yS7[4_4aQ8y7QR9Q7_Q#vbQ'n!tS(_#f1qS(a#l*}Q+P%cQ+a%tQ+g%zU-g'f'o'rQ-{(`Q/e*VQ/q*bQ/w*eQ0m+bQ1b,US2n-h-kQ2v.TS3}/f/gS4W/r/}Q4Z/vQ4]/xQ5g1cQ6`2qQ7O3yQ7S4OS7W4X4aQ7]4`Q8O5hS8x7P7QQ8|7XQ9O7[Q9_8PQ9u8yQ9v8}Q9x9QQ:Q9`Q:Y9wQ;y;tQ<U;}R<V<OV!vQ'Z-Y%YaOPWXYZstuvw!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&j&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|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8gS#vz!j!r;s$[$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<]R;y<[%YbOPWXYZstuvw!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&j&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|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8gQ%cj!S%ty!i!t%w%x%y'Q'`'a'b'f'p*b+e+f,}-a-b-i/t0p2b2i2p4^S%zz!jQ+b%uQ,U&_W1c,V,W,X,YU5h1d1e1fS8P5i5jQ9`8Q!r;t$[$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;}<ZR<O<[$|eOPXYstuvw!Z!`!g!o#R#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|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8gY#aWZ#V#Y'}!S%gm#g#h#k%b%e(W(b(c(d+Q+R+T,d,z-x.O.P.Q.S2P2w2x6R6dQ,c&j!p;u$[$m)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<]R;x'SS'W!e%fR2`-T%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]8g!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,b&jQ0h+^Q2{.[Q6i3PR8m6j!f$Uc#X%n'|(S(n(u)U)V)W)X)^)b+o-m-r-w-y.h.n/V0_2k2r3Y3k4k4s6[6a6o8e9k:e!T:r)Z)l-O.t2W2Z3_3g3h3i3j3n3t6U6p6y6z7r8a8n8t8u9{:S<P!b$Wc#X%n'|(S(n(u)W)X)^)b+o-m-r-w-y.h.n/V0_2k2r3Y3k4k4s6[6a6o8e9k:e!P:t)Z)l-O.t2W2Z3_3i3j3n3t6U6p6y6z7r8a8n8t8u9{:S<P!^$[c#X%n'|(S(n(u)^)b+o-m-r-w-y.h.n/V0_2k2r3Y3k4k4s6[6a6o8e9k:eQ3x/az<])Z)l-O.t2W2Z3_3n3t6U6p6y6z7r8a8n8t8u9{:S<PQ<b<dR<c<e&|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<]S$nh$oR3q.z'TgOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%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.z.{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$jf$pQ$hfS)e$k)iR)q$pT$if$pT)g$k)i'ThOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%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.z.{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$nh$oQ$qhR)p$o%YjOPWXYZstuvw!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&j&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|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8g!s<Z$[$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<]#clOPXZst!Z!`!o#R#c#n#{$m%j&f&i&j&m&o&p&r&v'O'](z)n+S+^,e,h,m-^.[.{0[1_1o1p1r1t1w1z1|3P3p5Y5d5t5u5x6j7w7|8]!O%Ri#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<c#W(q#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<gQ*z%_Q/W)zo3m:y:z:};P;T;V;X;`;b;d;h;j;l;n;r!O$yi#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<cQ*[$zS*e$|*hQ*{%`Q/x*f#W;{#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<gn;|:y:z:};P;T;V;X;`;b;d;h;j;l;n;rQ<Q<^Q<R<_Q<S<`R<T<a!O%Ri#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<c#W(q#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<go3m:y:z:};P;T;V;X;`;b;d;h;j;l;n;rnoOXst!Z#c%j&m&o&p&r,h,m1w1zQ*_${Q,v&yQ,w&{R4R/k$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<Y<b<c<f<gQ+y&WQ1T+{Q5S1SR7o5TT*g$|*hS*g$|*hT5[1[5]S/v*d5YT4`0O7wQ+a%tQ/w*eQ0m+bQ1b,UQ5g1cQ8O5hQ9_8PR:Q9`!O%Oi#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<cr)}$v(s*O*n*|/i0U0V3W4P4j6}7`9t;z<W<XS0Q*m0R#W:|#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<gn:}:y:z:};P;T;V;X;`;b;d;h;j;l;n;r!^;_(o)`*U*^._.b.f/S/X/a/n0f1Q1S3T4Q4U5R5T6k6n7U7Y7b7d8{9P:X<d<e`;`3l6q6t6x8o9p9s:bS;i.a3UT;j6s8r!O%Qi#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<cv*P$v(s*Q*m*|/]/i0U0V3W4P4b4j6}7`9t;z<W<XS0S*n0T#W;O#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<gn;P:y:z:};P;T;V;X;`;b;d;h;j;l;n;r!b;a(o)`*U*^.`.a.f/S/X/a/n0f1Q1S3R3T4Q4U5R5T6k6l6n7U7Y7b7d8{9P:X<d<ed;b3l6r6s6x8o8p9p9q9s:bS;k.b3VT;l6t8srnOXst!V!Z#c%j&d&m&o&p&r,h,m1w1zQ&a!UR,e&jrnOXst!V!Z#c%j&d&m&o&p&r,h,m1w1zR&a!UQ+}&XR1P+vsnOXst!V!Z#c%j&d&m&o&p&r,h,m1w1zQ1],SS5b1`1aU7x5`5a5eS9Z7z7{S9|9Y9]Q:Z9}R:`:[Q&h!VR,^&dR5n1iS%||&RR0x+mQ&m!WR,h&nR,n&sT1x,m1zR,r&tQ,q&tR2R,rQ't!zR-n'tSsOtQ#cXT%ms#cQ!}TR'v!}Q#QUR'x#QQ)w$uR/T)wQ#TVR'z#TQ#WWU(Q#W(R-uQ(R#XR-u(SQ-R'TR2_-RQ.j(sR3X.jQ.m(uS3[.m3]R3].nQ-Y'ZR2c-YY!rQ'Z-Y1[5]R'e!rS#^W%eU(X#^(Y-vQ(Y#_R-v(TQ-U'WR2a-Ut`OXst!V!Z#c%j&d&f&m&o&p&r,h,m1w1zS#gZ%bU#q`#g.PR.P(dQ(e#iQ-|(aW.U(e-|2t6bQ2t-}R6b2uQ)i$kR.|)iQ$ohR)o$oQ$bcU)_$b-q:xQ-q:eR:x)lQ/d*VW3{/d3|7R8zU3|/e/f/gS7R3}4OR8z7S$X)|$v(o(s)`*U*^*m*n*w*x*|.a.b.d.e.f/S/X/]/_/a/i/n0U0V0f1Q1S3R3S3T3W3l4P4Q4U4b4d4j5R5T6k6l6m6n6s6t6v6w6x6}7U7Y7`7b7d8o8p8q8{9P9p9q9r9s9t:X:b;z<W<X<d<eQ/l*^U4T/l4V7VQ4V/nR7V4UQ*h$|R/z*hr*O$v(s*m*n*|/i0U0V3W4P4j6}7`9t;z<W<X!^._(o)`*U*^.a.b.f/S/X/a/n0f1Q1S3T4Q4U5R5T6k6n7U7Y7b7d8{9P:X<d<eU/^*O._6qa6q3l6s6t6x8o9p9s:bQ0R*mQ3U.aU4c0R3U8rR8r6sv*Q$v(s*m*n*|/]/i0U0V3W4P4b4j6}7`9t;z<W<X!b.`(o)`*U*^.a.b.f/S/X/a/n0f1Q1S3R3T4Q4U5R5T6k6l6n7U7Y7b7d8{9P:X<d<eU/`*Q.`6re6r3l6s6t6x8o8p9p9q9s:bQ0T*nQ3V.bU4e0T3V8sR8s6tQ*s%UR0X*sQ4o0fR7c4oQ+U%hR0d+UQ5V1VS7q5V9XR9X7rQ,P&YR1Y,PQ5]1[R7u5]Q1h,ZS5l1h8SR8S5nQ0s+iW4x0s4z7i9TQ4z0vQ7i4yR9T7jQ+n%|R0y+nQ1z,mR5|1zYrOXst#cQ&q!ZQ+W%jQ,g&mQ,i&oQ,j&pQ,l&rQ1u,hS1x,m1zR5{1wQ%lpQ&u!_Q&x!aQ&z!bQ&|!cQ'l!tQ+V%iQ+c%vQ+u&SQ,]&hQ,t&wW-e'f'n'o'rQ-l'jQ/y*gQ0n+dS1k,^,aQ2S,sQ2T,vQ2U,wQ2j-dW2l-g-h-k-mQ4q0oQ4}0|Q5Q1QQ5f1bQ5p1mQ5z1vU6Z2k2n2qQ6^2oQ7e4rQ7m5PQ7n5RQ7t5[Q7}5gQ8T5oS8d6[6`Q8f6_Q9U7kQ9^8OQ9c8UQ9j8eQ9z9VQ:P9_Q:T9kR:]:QQ%vyQ'_!iQ'j!tU+d%w%x%yQ,{'QU-`'`'a'bS-d'f'pQ/p*bS0o+e+fQ2[,}S2h-a-bQ2o-iQ4Y/tQ4r0pQ6V2bQ6Y2iQ6_2pR7Z4^S$wi<YR*t%VU%Ui%V<YR0W*rQ$viS(o#u+`Q(s#wS)`$c$dQ*U$xQ*^${Q*m%OQ*n%QQ*w%[Q*x%]Q*|%aQ.a:|Q.b;OQ.d;SQ.e;UQ.f;WQ/S)uS/X){/ZQ/])}Q/_*PQ/a*RQ/i*YQ/n*`Q0U*pQ0V*qh0f+].Z1^3O5c6g7y8j9[9n:O:WQ1Q+wQ1S+zQ3R;_Q3S;aQ3T;cQ3W.iS3l:y:zQ4P/jQ4Q/kQ4U/mQ4b0QQ4d0SQ4j0^Q5R1RQ5T1UQ6k;gQ6l;iQ6m;kQ6n;mQ6s:}Q6t;PQ6v;TQ6w;VQ6x;XQ6}3xQ7U4SQ7Y4[Q7`4fQ7b4nQ7d4pQ8o;dQ8p;`Q8q;bQ8{7TQ9P7^Q9p;hQ9q;jQ9r;lQ9s;nQ9t8wQ:X;qQ:b;rQ;z<YQ<W<bQ<X<cQ<d<fR<e<gnpOXst!Z#c%j&m&o&p&r,h,m1w1zQ!fPS#eZ#nQ&w!`U'c!o5Y7wQ'y#RQ(|#{Q)m$mS,a&f&iQ,f&jQ,s&vQ,x'OQ-[']Q.p(zQ/Q)nQ0b+SQ0i+^Q1s,eQ2f-^Q2|.[Q3s.{Q4h0[Q5a1_Q5r1oQ5s1pQ5w1rQ5y1tQ6O1|Q6f3PQ6{3pQ7{5dQ8X5tQ8Y5uQ8[5xQ8l6jQ9]7|R9g8]#WcOPXZst!Z!`!o#c#n#{%j&f&i&j&m&o&p&r&v'O'](z+S+^,e,h,m-^.[0[1_1o1p1r1t1w1z1|3P5Y5d5t5u5x6j7w7|8]Q#XWQ#dYQ%nuQ%ovS%qw!gS'|#V(PQ(S#YQ(n#tQ(u#xQ(}$OQ)O$PQ)P$QQ)Q$RQ)R$SQ)S$TQ)T$UQ)U$VQ)V$WQ)W$XQ)X$YQ)Z$[Q)^$aQ)b$eW)l$m)n.{3pQ+Z%pQ+o%}S-O'S2]Q-m'mS-r'}-tQ-w(VQ-y(^Q.h(rQ.n(vQ.r:cQ.t:fQ.u:gQ.v:jQ/V)yQ0_+OQ2W,yQ2Z,|Q2k-fQ2r-zQ3Y.lQ3_:kQ3`:lQ3a:mQ3b:nQ3c:oQ3d:pQ3e:qQ3f:rQ3g:sQ3h:tQ3i:uQ3j:vQ3k.sQ3n:{Q3o;YQ3t:wQ4k0aQ4s0qQ6U;ZQ6[2mQ6a2sQ6o3ZQ6p;[Q6y;^Q6z;eQ7r5WQ8a6SQ8e6]Q8n;fQ8t;oQ8u;pQ9k8gQ9{9WQ:S9iQ:e#RR<P<]R#ZWR'U!eY!tQ'Z-Y1[5]S'Q!e-QQ'f!rS'p!u!xS'r!y5_S,}'R'YS-i'g'hQ-k'iQ2b-WR2p-jR(t#wR(w#xQ!fQT-X'Z-Y]!qQ!r'Z-Y1[5]Q#o]R'd:dT#jZ%bS#iZ%bS%hm,dU(a#g#h#kS-}(b(cQ.R(dQ0c+TQ2u.OU2v.P.Q.SS6c2w2xR8h6d`#]W#V#Y%e'}(W+Q-xr#fZm#g#h#k%b(b(c(d+T.O.P.Q.S2w2x6dQ1q,dQ2X,zQ6Q2PQ8`6RT;w'S+RT#`W%eS#_W%eS(O#V(WS(T#Y+QS-P'S+RT-s'}-xT'X!e%fQ$kfR)s$pT)h$k)iR3r.zT*X$x*ZR*a${Q0g+]Q2z.ZQ5`1^Q6h3OQ7z5cQ8k6gQ9Y7yQ9l8jQ9}9[Q:V9nQ:[:OR:_:WnqOXst!Z#c%j&m&o&p&r,h,m1w1zQ&g!VR,]&dtmOXst!U!V!Z#c%j&d&m&o&p&r,h,m1w1zR,d&jT%im,dR1W+|R,[&bQ&Q|R+t&RR+j%{T&k!W&nT&l!W&nT1y,m1z",nodeNames:"⚠ ArithOp ArithOp JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < 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 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:Ase,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[zse],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(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^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$<k#p#q$=a#q#r$>q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!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$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$f&j(OpOY(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(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Op(R!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$f&j(Op(R!b't(;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(P#S$f&j'u(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$f&j(Op(R!b'u(;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`$f&j!o$Ip(Op(R!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`#t$Id$f&j(Op(R!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_#t$Id$f&j(Op(R!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$/|3l_'}$(n$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$f&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$a`$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$a``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$a`$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(R!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$a`(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k#%|:hh$f&j(Op(R!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__VS$f&j(Op(R!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]VS$f&j(R!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$f&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(R!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$f&j(OpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(OpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Op(R!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S#%|C}i$f&j(g!L^(Op(R!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr#%|EoP;=`<%lCr(CSFRk$f&j(Op(R!b$Y#t'{&;d([!LYOY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$f&j(Op(R!b$Y#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv(CSJPP;=`<%lEr%#SJ_`$f&j(Op(R!b#l$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#SKl_$f&j$O$Id(Op(R!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&COLva(p&;`$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#SNW`$f&j#x$Id(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/|! c_(Q$)`$f&j(OpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b'l!!i_$f&j(OpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b&z!#mX$f&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h'l!%R]$a`$f&j(OpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r!Q!&PZ(OpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z!Q!&yU$a`(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r!Q!'`P;=`<%l!%z'l!'fP;=`<%l!!b(*Q!'t_!k(!b$f&j(Op(R!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!'l!)O_!jM|$f&j(Op(R!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'+h!*[b$f&j(Op(R!b'|#)d#m$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S!+o`$f&j(Op(R!b#j$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&-O!,|`$f&j(Op(R!bn&%`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&C[!.Z_!Y&;l$f&j(Op(R!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(CS!/ec$f&j(Op(R!b|'<nOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z!'d!0ya$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z!'d!2Z_!XMt$f&j(Op(R!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$/l!3eg$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!5Vg$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!6wc$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!8_c$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS!9uf$f&j(Op(R!b#k$IdOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpxz!;Zz{#,f{!P!;Z!P!Q#-{!Q!^!;Z!^!_#'Z!_!`#5k!`!a#7Q!a!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z(r!;fb$f&j(Op(R!b!USOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z(Q!<w`$f&j(R!b!USOY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eb!Q!^!<n!^!_!GY!_!}!<n!}#O!Ja#O#P!Dj#P#o!<n#o#p!GY#p;'S!<n;'S;=`!Kj<%lO!<n&n!>Q^$f&j!USOY!=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$f&j!USO!^&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!USOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!US#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|[$f&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$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$f&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$f&j(R!b!USOY&}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(R!b!USOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(R!b!USOY'}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(R!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^$f&j(R!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!<n#Q#o!Ja#o#p!Ic#p;'S!Ja;'S;=`!Kd<%lO!Ja(Q!KgP;=`<%l!Ja(Q!KmP;=`<%l!<n'`!Ky`$f&j(Op!USOY!KpYZ&cZr!Kprs!=ys!P!Kp!P!Q!L{!Q!^!Kp!^!_!Ns!_!}!Kp!}#O##z#O#P!Dj#P#o!Kp#o#p!Ns#p;'S!Kp;'S;=`#%T<%lO!Kp'`!MUi$f&j(Op!USOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#Z(r#Z#[!L{#[#](r#]#^!L{#^#a(r#a#b!L{#b#g(r#g#h!L{#h#i(r#i#j!L{#j#m(r#m#n!L{#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rt!NzZ(Op!USOY!NsZr!Nsrs!@Ys!P!Ns!P!Q# m!Q!}!Ns!}#O#!|#O#P!Bb#P;'S!Ns;'S;=`##t<%lO!Nst# tb(Op!USOY)rZr)rs#O)r#P#Z)r#Z#[# m#[#])r#]#^# m#^#a)r#a#b# m#b#g)r#g#h# m#h#i)r#i#j# m#j#m)r#m#n# m#n;'S)r;'S;=`*Z<%lO)rt##RX(OpOY#!|Zr#!|rs!Acs#O#!|#O#P!A{#P#Q!Ns#Q;'S#!|;'S;=`##n<%lO#!|t##qP;=`<%l#!|t##wP;=`<%l!Ns'`#$R^$f&j(OpOY##zYZ&cZr##zrs!Bws!^##z!^!_#!|!_#O##z#O#P!Cr#P#Q!Kp#Q#o##z#o#p#!|#p;'S##z;'S;=`#$}<%lO##z'`#%QP;=`<%l##z'`#%WP;=`<%l!Kp(r#%fk$f&j(Op(R!b!USOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#Z%Z#Z#[#%Z#[#]%Z#]#^#%Z#^#a%Z#a#b#%Z#b#g%Z#g#h#%Z#h#i%Z#i#j#%Z#j#m%Z#m#n#%Z#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#W#'d](Op(R!b!USOY#'ZZr#'Zrs!GYsw#'Zwx!Nsx!P#'Z!P!Q#(]!Q!}#'Z!}#O#)w#O#P!Bb#P;'S#'Z;'S;=`#*w<%lO#'Z#W#(fe(Op(R!b!USOY*gZr*grs'}sw*gwx)rx#O*g#P#Z*g#Z#[#(]#[#]*g#]#^#(]#^#a*g#a#b#(]#b#g*g#g#h#(]#h#i*g#i#j#(]#j#m*g#m#n#(]#n;'S*g;'S;=`+Z<%lO*g#W#*OZ(Op(R!bOY#)wZr#)wrs!Icsw#)wwx#!|x#O#)w#O#P!A{#P#Q#'Z#Q;'S#)w;'S;=`#*q<%lO#)w#W#*tP;=`<%l#)w#W#*zP;=`<%l#'Z(r#+W`$f&j(Op(R!bOY#*}YZ&cZr#*}rs!Jasw#*}wx##zx!^#*}!^!_#)w!_#O#*}#O#P!Cr#P#Q!;Z#Q#o#*}#o#p#)w#p;'S#*};'S;=`#,Y<%lO#*}(r#,]P;=`<%l#*}(r#,cP;=`<%l!;Z(CS#,sb$f&j(Op(R!b'v(;d!USOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z(CS#.W_$f&j(Op(R!bS(;dOY#-{YZ&cZr#-{rs#/Vsw#-{wx#2gx!^#-{!^!_#4f!_#O#-{#O#P#0X#P#o#-{#o#p#4f#p;'S#-{;'S;=`#5e<%lO#-{(Bb#/`]$f&j(R!bS(;dOY#/VYZ&cZw#/Vwx#0Xx!^#/V!^!_#1j!_#O#/V#O#P#0X#P#o#/V#o#p#1j#p;'S#/V;'S;=`#2a<%lO#/V(AO#0`X$f&jS(;dOY#0XYZ&cZ!^#0X!^!_#0{!_#o#0X#o#p#0{#p;'S#0X;'S;=`#1d<%lO#0X(;d#1QSS(;dOY#0{Z;'S#0{;'S;=`#1^<%lO#0{(;d#1aP;=`<%l#0{(AO#1gP;=`<%l#0X(<v#1qW(R!bS(;dOY#1jZw#1jwx#0{x#O#1j#O#P#0{#P;'S#1j;'S;=`#2Z<%lO#1j(<v#2^P;=`<%l#1j(Bb#2dP;=`<%l#/V(Ap#2p]$f&j(OpS(;dOY#2gYZ&cZr#2grs#0Xs!^#2g!^!_#3i!_#O#2g#O#P#0X#P#o#2g#o#p#3i#p;'S#2g;'S;=`#4`<%lO#2g(<U#3pW(OpS(;dOY#3iZr#3irs#0{s#O#3i#O#P#0{#P;'S#3i;'S;=`#4Y<%lO#3i(<U#4]P;=`<%l#3i(Ap#4cP;=`<%l#2g(=h#4oY(Op(R!bS(;dOY#4fZr#4frs#1jsw#4fwx#3ix#O#4f#O#P#0{#P;'S#4f;'S;=`#5_<%lO#4f(=h#5bP;=`<%l#4f(CS#5hP;=`<%l#-{%#W#5xb$f&j$O$Id(Op(R!b!USOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z+h#7_b$W#t$f&j(Op(R!b!USOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z$/l#8rp$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#:v![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#:v#S#U%Z#U#V#>Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#<v#c#d#AY#d#l%Z#l#m#D[#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#;Rk$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#:v![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#:v#S#X%Z#X#Y!4|#Y#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#=R_$f&j(Op(R!bo$'|OY%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$/l#>Zd$f&j(Op(R!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$f&j(Op(R!bo$'|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#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#Acc$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#Bn!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#Bn#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#Bye$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#Bn!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#Bn#S#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#Deg$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#E|![!^%Z!^!_*g!_!c%Z!c!i#E|!i#O%Z#O#P&c#P#R%Z#R#S#E|#S#T%Z#T#Z#E|#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#FXi$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#E|![!^%Z!^!_*g!_!c%Z!c!i#E|!i#O%Z#O#P&c#P#R%Z#R#S#E|#S#T%Z#T#Z#E|#Z#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%Gh#HT_!d$b$f&j#|%<f(Op(R!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)[#I__`l$f&j(Op(R!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(@^#Jk^g!*v!h'.r(Op(R!b(tSOY*gZr*grs'}sw*gwx)rx!P*g!P!Q#Kg!Q!^*g!^!_#L]!_!`#M}!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#KpX$h&j(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g$Kh#LfZ#n$Id(Op(R!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#MX!`#O*g#P;'S*g;'S;=`+Z<%lO*g$Kh#MbX$O$Id(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g$Kh#NWX#o$Id(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g%Gh$ Oa#[%?x$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$!T!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#W$!`_#g$Ih$f&j(Op(R!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%Gh$#nafBf#o$Id$c#|$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$$s!`!a$%}!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$%O_#o$Id$f&j(Op(R!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%#S$&Ya#n$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$'_!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$'j`#n$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'+h$(wc(h$Ip$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P$*S!P!^%Z!^!_*g!_!a%Z!a!b$+^!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'+`$*__}'#p$f&j(Op(R!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%#S$+i`$f&j#y$Id(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&^$,v_!{!Ln$f&j(Op(R!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(@^$.Q_!P(8n$f&j(Op(R!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(n$/UZ$f&jO!^$/w!^!_$0_!_#i$/w#i#j$0d#j#l$/w#l#m$2V#m#o$/w#o#p$0_#p;'S$/w;'S;=`$4b<%lO$/w(n$0OT^#S$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0dO^#S(n$0i[$f&jO!Q&c!Q![$1_![!^&c!_!c&c!c!i$1_!i#T&c#T#Z$1_#Z#o&c#o#p$3u#p;'S&c;'S;=`&w<%lO&c(n$1dZ$f&jO!Q&c!Q![$2V![!^&c!_!c&c!c!i$2V!i#T&c#T#Z$2V#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2[Z$f&jO!Q&c!Q![$2}![!^&c!_!c&c!c!i$2}!i#T&c#T#Z$2}#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3SZ$f&jO!Q&c!Q![$/w![!^&c!_!c&c!c!i$/w!i#T&c#T#Z$/w#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$3xR!Q![$4R!c!i$4R#T#Z$4R#S$4US!Q![$4R!c!i$4R#T#Z$4R#q#r$0_(n$4eP;=`<%l$/w!2r$4s_!V!+S$f&j(Op(R!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%#S$5}`#v$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&,v$7[_$f&j(Op(R!b(X&%WOY%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(CS$8jk$f&j(Op(R!b'{&;d$[#t([!LYOY%ZYZ&cZr%Zrs&}st%Ztu$8Zuw%Zwx(rx}%Z}!O$:_!O!Q%Z!Q![$8Z![!^%Z!^!_*g!_!c%Z!c!}$8Z!}#O%Z#O#P&c#P#R%Z#R#S$8Z#S#T%Z#T#o$8Z#o#p*g#p$g%Z$g;'S$8Z;'S;=`$<e<%lO$8Z+d$:jk$f&j(Op(R!b$[#tOY%ZYZ&cZr%Zrs&}st%Ztu$:_uw%Zwx(rx}%Z}!O$:_!O!Q%Z!Q![$:_![!^%Z!^!_*g!_!c%Z!c!}$:_!}#O%Z#O#P&c#P#R%Z#R#S$:_#S#T%Z#T#o$:_#o#p*g#p$g%Z$g;'S$:_;'S;=`$<_<%lO$:_+d$<bP;=`<%l$:_(CS$<hP;=`<%l$8Z!5p$<tX![!3l(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g&CO$=la(o&;`$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+^#q;'S%Z;'S;=`+a<%lO%Z%#`$?O_!Z$I`r`$f&j(Op(R!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(r$@Y_!pS$f&j(Op(R!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(CS$Aj|$f&j(Op(R!b't(;d$Y#t'{&;d([!LYOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(CS$Duk$f&j(Op(R!b'u(;d$Y#t'{&;d([!LYOY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[Dse,jse,Nse,2,3,4,5,6,7,8,9,10,11,12,13,Rse,new fse("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOt~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(Z~~",141,332),new fse("j~RQYZXz{^~^O'x~~aP!P!Qd~iO'y~~",25,315)],topRules:{Script:[0,6],SingleExpression:[1,269],SingleClassItem:[2,270]},dialects:{jsx:0,ts:14602},dynamicPrecedences:{69:1,79:1,81:1,165:1,193:1},specialized:[{term:319,get:e=>_se[e]||-1},{term:334,get:e=>Lse[e]||-1},{term:70,get:e=>Qse[e]||-1}],tokenPrec:14626}),Fse=[Lle("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),Lle("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),Lle("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Lle("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Lle("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),Lle("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),Lle("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),Lle("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),Lle("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),Lle('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Lle('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Wse=Fse.concat([Lle("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Lle("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Lle("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Vse=new lte,Zse=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Xse(e){return(t,n)=>{let o=t.node.getChild("VariableDefinition");return o&&n(o,e),!0}}const Yse=["FunctionDeclaration"],Kse={FunctionDeclaration:Xse("function"),ClassDeclaration:Xse("class"),ClassExpression:()=>!0,EnumDeclaration:Xse("constant"),TypeAliasDeclaration:Xse("type"),NamespaceDeclaration:Xse("namespace"),VariableDefinition(e,t){e.matchContext(Yse)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function Gse(e,t){let n=Vse.get(t);if(n)return n;let o=[],r=!0;function i(t,n){let r=e.sliceString(t.from,t.to);o.push({label:r,type:n})}return t.cursor(Lee.IncludeAnonymous).iterate((t=>{if(r)r=!1;else if(t.name){let e=Kse[t.name];if(e&&e(t,i)||Zse.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of Gse(e,t.node))o.push(n);return!1}})),Vse.set(t,o),o}const Use=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,qse=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function Jse(e){let t=Fte(e.state).resolveInner(e.pos,-1);if(qse.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&Use.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let o=[];for(let r=t;r;r=r.parent)Zse.has(r.name)&&(o=o.concat(Gse(e.state.doc,r)));return{options:o,from:n?t.from:e.pos,validFor:Use}}const ece=Hte.define({name:"javascript",parser:Hse.configure({props:[lne.add({IfStatement:fne({except:/^\s*({|else\b)/}),TryStatement:fne({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:e=>e.baseIndent,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),o=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:o?1:2)*e.unit},Block:pne({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":fne({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),mne.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":function(e){let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null},BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),tce={test:e=>/^JSX/.test(e.name),facet:zte({commentTokens:{block:{open:"{/*",close:"*/}"}}})},nce=ece.configure({dialect:"ts"},"typescript"),oce=ece.configure({dialect:"jsx",props:[_te.add((e=>e.isTop?[tce]:void 0))]}),rce=ece.configure({dialect:"jsx ts",props:[_te.add((e=>e.isTop?[tce]:void 0))]},"typescript");let ice=e=>({label:e,type:"keyword"});const lce="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(ice),ace=lce.concat(["declare","implements","private","protected","public"].map(ice));function sce(e={}){let t=e.jsx?e.typescript?rce:oce:e.typescript?nce:ece,n=e.typescript?Wse.concat(ace):Fse.concat(lce);return new Jte(t,[ece.data.of({autocomplete:(o=qse,r=Vie(n),e=>{for(let t=Fte(e.state).resolveInner(e.pos,-1);t;t=t.parent){if(o.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return r(e)})}),ece.data.of({autocomplete:Jse}),e.jsx?dce:[]]);var o,r}function cce(e,t,n=e.length){for(let o=null==t?void 0:t.firstChild;o;o=o.nextSibling)if("JSXIdentifier"==o.name||"JSXBuiltin"==o.name||"JSXNamespacedName"==o.name||"JSXMemberExpression"==o.name)return e.sliceString(o.from,Math.min(o.to,n));return""}const uce="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),dce=H7.inputHandler.of(((e,t,n,o,r)=>{if((uce?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||">"!=o&&"/"!=o||!ece.isActiveAt(e.state,t,-1))return!1;let i=r(),{state:l}=i,a=l.changeByRange((e=>{var t;let n,{head:r}=e,i=Fte(l).resolveInner(r-1,-1);if("JSXStartTag"==i.name&&(i=i.parent),l.doc.sliceString(r-1,r)!=o||"JSXAttributeValue"==i.name&&i.to>r);else{if(">"==o&&"JSXFragmentTag"==i.name)return{range:e,changes:{from:r,insert:"</>"}};if("/"==o&&"JSXStartCloseTag"==i.name){let e=i.parent,o=e.parent;if(o&&e.from==r-2&&((n=cce(l.doc,o.firstChild,r))||"JSXFragmentTag"==(null===(t=o.firstChild)||void 0===t?void 0:t.name))){let e=`${n}>`;return{range:D3.cursor(r+e.length,-1),changes:{from:r,insert:e}}}}else if(">"==o){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(i);if(t&&!/^\/?>|^<\//.test(l.doc.sliceString(r,r+2))&&(n=cce(l.doc,t,r)))return{range:e,changes:{from:r,insert:`</${n}>`}}}}return{range:e}}));return!a.changes.empty&&(e.dispatch([i,l.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})),pce=f2(Ln({__name:"BranchDrawer",props:{open:k1().def(!1),len:M1().def(0),modelValue:I1().def({})},emits:["update:modelValue","update:open","save"],setup(e,{emit:t}){const n=t,o=e,r=Ot(!1),i=Ot({}),l=Ot({".cm-line":{fontSize:"18px"},".cm-scroller":{height:"500px",overflowY:"auto",overflowX:"hidden"}});wn((()=>o.open),(e=>{r.value=e}),{immediate:!0}),wn((()=>o.modelValue),(e=>{i.value=e}),{immediate:!0,deep:!0});const a=()=>{n("update:modelValue",i.value)},s=Ot(),c=()=>{var e;null==(e=s.value)||e.validate().then((()=>{u(),n("save",i.value)})).catch((()=>{wB.warning("请检查表单信息")}))},u=()=>{n("update:open",!1),r.value=!1};return(t,n)=>{const o=fn("a-typography-paragraph"),d=fn("a-select-option"),p=fn("a-select"),h=fn("a-radio"),f=fn("a-radio-group"),g=fn("a-form-item"),m=fn("a-form"),v=fn("a-button"),b=fn("a-drawer");return pr(),vr(b,{open:r.value,"onUpdate:open":n[5]||(n[5]=e=>r.value=e),"destroy-on-close":"",width:500,onClose:u},{title:sn((()=>[Sr(o,{style:{margin:"0",width:"412px"},ellipsis:"",content:i.value.nodeName,"onUpdate:content":n[0]||(n[0]=e=>i.value.nodeName=e),editable:{tooltip:!1,maxlength:64},onOnEnd:a},{editableEnterIcon:sn((()=>[kr(X(null))])),_:1},8,["content"])])),extra:sn((()=>[Sr(p,{value:i.value.priorityLevel,"onUpdate:value":n[1]||(n[1]=e=>i.value.priorityLevel=e),style:{width:"110px"}},{default:sn((()=>[(pr(!0),mr(lr,null,io(e.len-1,(e=>(pr(),vr(d,{key:e,value:e},{default:sn((()=>[kr("优先级 "+X(e),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),footer:sn((()=>[Sr(v,{type:"primary",onClick:c},{default:sn((()=>[kr("保存")])),_:1}),Sr(v,{style:{"margin-left":"12px"},onClick:u},{default:sn((()=>[kr("取消")])),_:1})])),default:sn((()=>[Sr(m,{layout:"vertical",ref_key:"formRef",ref:s,model:i.value,"label-align":"left","label-col":{style:{width:"100px"}}},{default:sn((()=>[Sr(g,{name:["decision","logicalCondition"],label:"判定逻辑",rules:[{required:!0,message:"请选择判定逻辑",trigger:"change"}]},{default:sn((()=>[Sr(f,{value:i.value.decision.logicalCondition,"onUpdate:value":n[2]||(n[2]=e=>i.value.decision.logicalCondition=e)},{default:sn((()=>[(pr(!0),mr(lr,null,io(Ct(E2)(Ct(Z1)),(e=>(pr(),vr(h,{key:e.value,value:e.value},{default:sn((()=>[kr(X(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1}),Sr(g,{name:["decision","expressionType"],label:"表达式类型",rules:[{required:!0,message:"请选择表达式类型",trigger:"change"}]},{default:sn((()=>[Sr(f,{value:i.value.decision.expressionType,"onUpdate:value":n[3]||(n[3]=e=>i.value.decision.expressionType=e)},{default:sn((()=>[(pr(!0),mr(lr,null,io(Ct(E2)(Ct(Q1)),(e=>(pr(),vr(h,{key:e.value,value:e.value},{default:sn((()=>[kr(X(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1}),Sr(g,{name:["decision","nodeExpression"],label:"条件表达式",rules:[{required:!0,message:"请填写条件表达式",trigger:"change"}]},{default:sn((()=>[Sr(Ct(Yae),{modelValue:i.value.decision.nodeExpression,"onUpdate:modelValue":n[4]||(n[4]=e=>i.value.decision.nodeExpression=e),theme:l.value,basic:"",lang:Ct(sce)(),extensions:[Ct(ose)]},null,8,["modelValue","theme","lang","extensions"])])),_:1})])),_:1},8,["model"])])),_:1},8,["open"])}}}),[["__scopeId","data-v-5d000a58"]]),hce=f2(Ln({__name:"BranchDetail",props:{modelValue:I1().def({}),open:k1().def(!1)},emits:["update:open"],setup(e,{emit:t}){const n=t,o=e,r=Ot(!1);wn((()=>o.open),(e=>{r.value=e}),{immediate:!0});const i=Ot("");Gn((()=>{var e;s(),(null==(e=o.modelValue.decision)?void 0:e.nodeExpression)&&(i.value=o.modelValue.decision.nodeExpression)}));const l=()=>{n("update:open",!1)},a=Ot({".cm-line":{fontSize:"18px"},".cm-scroller":{height:"520px",overflowY:"auto",overflowX:"hidden"}}),s=()=>{const e=document.querySelector(".ant-descriptions-view"),t=null==e?void 0:e.querySelector("tbody"),n=document.createElement("tr");n.className="ant-descriptions-row";const o=document.createElement("th");o.className="ant-descriptions-item-label",o.innerHTML="条件表达式",o.setAttribute("colspan","2"),n.appendChild(o),null==t||t.insertBefore(n,null==t?void 0:t.childNodes[4]);const r=document.getElementsByClassName("ant-descriptions-row")[4];r.childNodes[2].remove();const i=r.querySelector(".ant-descriptions-item-content");i.setAttribute("style","padding: 0"),null==i||i.setAttribute("colspan","2")};return(t,n)=>{const o=fn("a-descriptions-item"),s=fn("a-descriptions"),c=fn("a-drawer");return pr(),vr(c,{title:"决策详情",placement:"right",width:500,open:r.value,"onUpdate:open":n[1]||(n[1]=e=>r.value=e),"destroy-on-close":"",onClose:l},{default:sn((()=>[Sr(s,{column:1,bordered:"",labelStyle:{width:"120px"}},{default:sn((()=>[Sr(o,{label:"节点名称"},{default:sn((()=>[kr(X(e.modelValue.nodeName),1)])),_:1}),Sr(o,{label:"判定逻辑"},{default:sn((()=>{var t;return[kr(X(Ct(Z1)[null==(t=e.modelValue.decision)?void 0:t.logicalCondition]),1)]})),_:1}),Sr(o,{label:"表达式类型"},{default:sn((()=>{var t;return[kr(X(Ct(Q1)[null==(t=e.modelValue.decision)?void 0:t.expressionType]),1)]})),_:1}),Sr(o,{label:"条件表达式"},{default:sn((()=>[Sr(Ct(Yae),{modelValue:i.value,"onUpdate:modelValue":n[0]||(n[0]=e=>i.value=e),readonly:"",disabled:"",theme:a.value,basic:"",lang:Ct(sce)(),extensions:[Ct(ose)]},null,8,["modelValue","theme","lang","extensions"])])),_:1})])),_:1})])),_:1},8,["open"])}}}),[["__scopeId","data-v-53f4bc9a"]]),fce={class:"branch-wrap"},gce={class:"branch-box-wrap"},mce={class:"branch-box"},vce={class:"condition-node"},bce={class:"condition-node-box"},yce=["onClick"],Oce=["onClick"],wce={class:"title"},xce={class:"node-title"},$ce={class:"priority-title"},Sce={class:"content"},Cce={key:0},kce={key:1,class:"placeholder"},Pce=["onClick"],Mce={key:1,class:"top-left-cover-line"},Tce={key:2,class:"bottom-left-cover-line"},Ice={key:3,class:"top-right-cover-line"},Ece={key:4,class:"bottom-right-cover-line"},Ace=f2(Ln({__name:"BranchNode",props:{modelValue:I1().def({}),disabled:k1().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=J0(),i=Ot({});wn((()=>o.modelValue),(e=>{i.value=e}),{immediate:!0,deep:!0});const l=()=>{const e=i.value.conditionNodes.length;i.value.conditionNodes.splice(-1,0,{nodeName:"条件"+e,priorityLevel:e,decision:{expressionType:1,nodeExpression:void 0,logicalCondition:1}}),i.value.conditionNodes[e].priorityLevel=e+1},a=(e,t)=>{e.childNode?a(e.childNode,t):e.childNode=t},s=(e,t=1)=>{var o;i.value.conditionNodes[e]=i.value.conditionNodes.splice(e+t,1,i.value.conditionNodes[e])[0],null==(o=i.value.conditionNodes)||o.map(((e,t)=>{e.priorityLevel=t+1})),n("update:modelValue",i.value)},c=(e,t)=>{const{nodeName:n,decision:o}=e.conditionNodes[t],{logicalCondition:r,expressionType:i,nodeExpression:l}=o;return l?"其他情况"!==n?`判定逻辑:${Z1[r]}\n表达式类型: ${Q1[i]}\n节点表达式: ${l.length>10?l.substring(0,10)+"...":l}`:"如存在未满足其他分支条件的情况,则进入此分支":"其他情况"===n?"如存在未满足其他分支条件的情况,则进入此分支":void 0},u=Ot(0),d=Ot(!1),p=Ot([]),h=Ot({}),f=e=>{const t=i.value.conditionNodes[u.value].priorityLevel,o=e.priorityLevel;i.value.conditionNodes[u.value]=e,t!==o&&s(u.value,o-t),n("update:modelValue",i.value)},g=e=>o.disabled?2===r.TYPE?"其他情况"===e.nodeName?`node-disabled node-error node-error-${e.taskBatchStatus?Y1[e.taskBatchStatus].name:"default"}`:`node-error node-error-${e.taskBatchStatus?Y1[e.taskBatchStatus].name:"default"}`:"其他情况"===e.nodeName?"node-disabled":"node-error":"其他情况"===e.nodeName?"node-disabled":"auto-judge-def auto-judge-hover";return(t,m)=>{const v=fn("a-button"),b=fn("a-tooltip");return pr(),mr("div",fce,[$r("div",gce,[$r("div",mce,[e.disabled?Pr("",!0):(pr(),vr(v,{key:0,class:"add-branch",primary:"",onClick:l},{default:sn((()=>[kr("添加条件")])),_:1})),(pr(!0),mr(lr,null,io(i.value.conditionNodes,((l,f)=>(pr(),mr("div",{class:"col-box",key:f},[$r("div",vce,[$r("div",bce,[$r("div",{class:W(["auto-judge",g(l)]),onClick:e=>{return t=f,void(o.disabled||t===i.value.conditionNodes.length-1?0!==r.TYPE&&(p.value[t]=!0):(u.value=t,h.value=JSON.parse(JSON.stringify(i.value.conditionNodes[t])),d.value=!0));var t}},[0!==f?(pr(),mr("div",{key:0,class:"sort-left",onClick:Wi((e=>s(f,-1)),["stop"])},[Sr(Ct(jR))],8,Oce)):Pr("",!0),$r("div",wce,[$r("span",xce,[kr(X(l.nodeName)+" ",1),"其他情况"===l.nodeName?(pr(),vr(b,{key:0},{title:sn((()=>[kr(" 该分支为系统默认创建,与其他分支互斥。只有当其他分支都无法运行时,才会运行该分支。 ")])),default:sn((()=>[Sr(Ct(g$),{style:{"margin-left":"3px"}})])),_:1})):Pr("",!0)]),$r("span",$ce,"优先级"+X(l.priorityLevel),1),e.disabled?Pr("",!0):(pr(),vr(Ct(qb),{key:0,class:"close",onClick:Wi((e=>{return t=f,null==(o=i.value.conditionNodes)||o.splice(t,1),void(1===i.value.conditionNodes.length&&(i.value.childNode&&(i.value.conditionNodes[0].childNode?a(i.value.conditionNodes[0].childNode,i.value.childNode):i.value.conditionNodes[0].childNode=i.value.childNode),Vt((()=>{n("update:modelValue",i.value.conditionNodes[0].childNode)}))));var t,o}),["stop"])},null,8,["onClick"]))]),$r("div",Sce,[c(i.value,f)?(pr(),mr("span",Cce,X(c(i.value,f)),1)):(pr(),mr("span",kce," 请设置条件 "))]),f!==i.value.conditionNodes.length-2?(pr(),mr("div",{key:1,class:"sort-right",onClick:Wi((e=>s(f)),["stop"])},[Sr(Ct(nk))],8,Pce)):Pr("",!0),2===Ct(r).TYPE&&l.taskBatchStatus?(pr(),vr(b,{key:2},{title:sn((()=>[kr(X(Ct(Y1)[l.taskBatchStatus].title),1)])),default:sn((()=>[Sr(Ct(L1),{class:"error-tip",color:Ct(Y1)[l.taskBatchStatus].color,size:"24px",onClick:Wi((()=>{}),["stop"]),modelValue:Ct(Y1)[l.taskBatchStatus].icon,"onUpdate:modelValue":e=>Ct(Y1)[l.taskBatchStatus].icon=e},null,8,["color","modelValue","onUpdate:modelValue"])])),_:2},1024)):Pr("",!0)],10,yce),Sr(I2,{disabled:e.disabled,modelValue:l.childNode,"onUpdate:modelValue":e=>l.childNode=e},null,8,["disabled","modelValue","onUpdate:modelValue"])])]),l.childNode?lo(t.$slots,"default",{key:0,node:l},void 0,!0):Pr("",!0),0==f?(pr(),mr("div",Mce)):Pr("",!0),0==f?(pr(),mr("div",Tce)):Pr("",!0),f==i.value.conditionNodes.length-1?(pr(),mr("div",Ice)):Pr("",!0),f==i.value.conditionNodes.length-1?(pr(),mr("div",Ece)):Pr("",!0),0!==Ct(r).type&&p.value[f]?(pr(),vr(hce,{key:5,open:p.value[f],"onUpdate:open":e=>p.value[f]=e,modelValue:i.value.conditionNodes[f],"onUpdate:modelValue":e=>i.value.conditionNodes[f]=e},null,8,["open","onUpdate:open","modelValue","onUpdate:modelValue"])):Pr("",!0)])))),128))]),Sr(I2,{disabled:e.disabled,modelValue:i.value.childNode,"onUpdate:modelValue":m[0]||(m[0]=e=>i.value.childNode=e)},null,8,["disabled","modelValue"])]),Sr(pce,{open:d.value,"onUpdate:open":m[1]||(m[1]=e=>d.value=e),modelValue:h.value,"onUpdate:modelValue":m[2]||(m[2]=e=>h.value=e),len:i.value.conditionNodes.length,"onUpdate:len":m[3]||(m[3]=e=>i.value.conditionNodes.length=e),onSave:f},null,8,["open","modelValue","len"])])}}}),[["__scopeId","data-v-794f061c"]]),Rce=Ln({__name:"CallbackDrawer",props:{open:k1().def(!1),len:M1().def(0),modelValue:I1().def({})},emits:["update:modelValue","update:open","save"],setup(e,{emit:t}){const n=t,o=e,r=Ot(!1),i=Ot({});wn((()=>o.open),(e=>{r.value=e}),{immediate:!0}),wn((()=>o.modelValue),(e=>{i.value=e}),{immediate:!0,deep:!0});const l=()=>{n("update:modelValue",i.value)},a=Ot(),s=()=>{var e;null==(e=a.value)||e.validate().then((()=>{c(),n("save",i.value)})).catch((()=>{wB.warning("请检查表单信息")}))},c=()=>{n("update:open",!1),r.value=!1};return(e,t)=>{const n=fn("a-typography-paragraph"),o=fn("a-input"),u=fn("a-form-item"),d=fn("a-select-option"),p=fn("a-select"),h=fn("a-radio"),f=fn("a-radio-group"),g=fn("a-form"),m=fn("a-button"),v=fn("a-drawer");return pr(),vr(v,{open:r.value,"onUpdate:open":t[5]||(t[5]=e=>r.value=e),"destroy-on-close":"",width:500,onClose:c},{title:sn((()=>[Sr(n,{style:{margin:"0",width:"412px"},ellipsis:"",content:i.value.nodeName,"onUpdate:content":t[0]||(t[0]=e=>i.value.nodeName=e),editable:{tooltip:!1,maxlength:64},onOnEnd:l},null,8,["content"])])),footer:sn((()=>[Sr(m,{type:"primary",onClick:s},{default:sn((()=>[kr("保存")])),_:1}),Sr(m,{style:{"margin-left":"12px"},onClick:c},{default:sn((()=>[kr("取消")])),_:1})])),default:sn((()=>[Sr(g,{ref_key:"formRef",ref:a,layout:"vertical",model:i.value,"label-align":"left","label-col":{style:{width:"100px"}}},{default:sn((()=>[Sr(u,{name:["callback","webhook"],label:"webhook",rules:[{required:!0,message:"请输入 webhook",trigger:"change"}]},{default:sn((()=>[Sr(o,{value:i.value.callback.webhook,"onUpdate:value":t[1]||(t[1]=e=>i.value.callback.webhook=e),placeholder:"请输入 webhook"},null,8,["value"])])),_:1}),Sr(u,{name:["callback","contentType"],label:"请求类型",rules:[{required:!0,message:"请选择请求类型",trigger:"change"}]},{default:sn((()=>[Sr(p,{value:i.value.callback.contentType,"onUpdate:value":t[2]||(t[2]=e=>i.value.callback.contentType=e),placeholder:"请选择请求类型"},{default:sn((()=>[(pr(!0),mr(lr,null,io(Ct(E2)(Ct(X1)),(e=>(pr(),vr(d,{key:e.value,value:e.value},{default:sn((()=>[kr(X(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1}),Sr(u,{name:["callback","secret"],label:"秘钥",rules:[{required:!0,message:"请输入秘钥",trigger:"change"}]},{default:sn((()=>[Sr(o,{value:i.value.callback.secret,"onUpdate:value":t[3]||(t[3]=e=>i.value.callback.secret=e),placeholder:"请输入秘钥"},null,8,["value"])])),_:1}),Sr(u,{name:"workflowNodeStatus",label:"工作流状态",rules:[{required:!0,message:"请选择工作流状态",trigger:"change"}]},{default:sn((()=>[Sr(f,{value:i.value.workflowNodeStatus,"onUpdate:value":t[4]||(t[4]=e=>i.value.workflowNodeStatus=e)},{default:sn((()=>[(pr(!0),mr(lr,null,io(Ct(E2)(Ct(V1)),(e=>(pr(),vr(h,{key:e.value,value:e.value},{default:sn((()=>[kr(X(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1})])),_:1},8,["model"])])),_:1},8,["open"])}}}),Dce=Ln({__name:"CallbackDetail",props:{modelValue:I1().def({}),open:k1().def(!1)},emits:["update:open"],setup(e,{emit:t}){const n=t,o=e,r=Ot(!1);wn((()=>o.open),(e=>{r.value=e}),{immediate:!0});const i=()=>{n("update:open",!1)};return(t,n)=>{const o=fn("a-descriptions-item"),l=fn("a-descriptions"),a=fn("a-drawer");return pr(),vr(a,{title:"决策详情",placement:"right",width:500,open:r.value,"onUpdate:open":n[0]||(n[0]=e=>r.value=e),"destroy-on-close":"",onClose:i},{default:sn((()=>[Sr(l,{column:1,bordered:"",labelStyle:{width:"120px"}},{default:sn((()=>[Sr(o,{label:"节点名称"},{default:sn((()=>[kr(X(e.modelValue.nodeName),1)])),_:1}),Sr(o,{label:"webhook"},{default:sn((()=>{var t;return[kr(X(null==(t=e.modelValue.callback)?void 0:t.webhook),1)]})),_:1}),Sr(o,{label:"请求类型"},{default:sn((()=>{var t;return[kr(X(Ct(X1)[null==(t=e.modelValue.callback)?void 0:t.contentType]),1)]})),_:1}),Sr(o,{label:"密钥"},{default:sn((()=>{var t;return[kr(X(null==(t=e.modelValue.callback)?void 0:t.secret),1)]})),_:1})])),_:1})])),_:1},8,["open"])}}}),jce=e=>(ln("data-v-90d3ed8a"),e=e(),an(),e),Bce={class:"node-wrap"},Nce={class:"branch-box"},zce={class:"condition-node",style:{"min-height":"230px"}},_ce={class:"condition-node-box",style:{"padding-top":"0"}},Lce={class:"popover"},Qce=jce((()=>$r("span",null,"重试",-1))),Hce=jce((()=>$r("span",null,"忽略",-1))),Fce=["onClick"],Wce={class:"title"},Vce={class:"text",style:{color:"#935af6"}},Zce={class:"content",style:{"min-height":"81px"}},Xce={key:0,class:"placeholder"},Yce=jce((()=>$r("span",{class:"content_label"},"请求类型:",-1))),Kce=jce((()=>$r("span",{class:"content_label"},"节点状态:",-1))),Gce=jce((()=>$r("div",null,".........",-1))),Uce={key:1,class:"top-left-cover-line"},qce={key:2,class:"bottom-left-cover-line"},Jce={key:3,class:"top-right-cover-line"},eue={key:4,class:"bottom-right-cover-line"},tue=f2(Ln({__name:"CallbackNode",props:{modelValue:I1().def({}),disabled:k1().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=J0(),i=Ot({}),l=Ot({});wn((()=>o.modelValue),(e=>{i.value=e}),{immediate:!0,deep:!0});const a=()=>{i.value.childNode&&(i.value.conditionNodes[0].childNode?s(i.value.conditionNodes[0].childNode,i.value.childNode):i.value.conditionNodes[0].childNode=i.value.childNode),Vt((()=>{n("update:modelValue",i.value.conditionNodes[0].childNode)}))},s=(e,t)=>{e.childNode?s(e.childNode,t):e.childNode=t},c=Ot(0),u=Ot(!1),d=Ot(!1),p=Ot({}),h=e=>{i.value.conditionNodes[c.value]=e,n("update:modelValue",i.value)},f=e=>o.disabled?2===r.TYPE?`node-error node-error-${e.taskBatchStatus?Y1[e.taskBatchStatus].name:"default"}`:"node-error":"auto-judge-def auto-judge-hover";return(t,n)=>{const o=fn("a-divider"),s=fn("a-button"),g=fn("a-typography-text"),m=fn("a-tooltip"),v=fn("a-popover");return pr(),mr("div",Bce,[$r("div",Nce,[(pr(!0),mr(lr,null,io(i.value.conditionNodes,((n,h)=>(pr(),mr("div",{class:"col-box",key:h},[$r("div",zce,[$r("div",_ce,[Sr(v,{open:l.value[h]&&2===Ct(r).TYPE,getPopupContainer:e=>e.parentNode,onOpenChange:e=>l.value[h]=e},{content:sn((()=>[$r("div",Lce,[Sr(o,{type:"vertical"}),Sr(s,{type:"text",class:"popover-item"},{default:sn((()=>[Sr(Ct(bJ)),Qce])),_:1}),Sr(o,{type:"vertical"}),Sr(s,{type:"text",class:"popover-item"},{default:sn((()=>[Sr(Ct(oJ)),Hce])),_:1})])])),default:sn((()=>{var t,o;return[$r("div",{class:W(["auto-judge",f(n)]),onClick:e=>{return t=h,void(0===r.TYPE?(c.value=t,p.value=JSON.parse(JSON.stringify(i.value.conditionNodes[t])),u.value=!0):d.value=!0);var t}},[$r("div",Wce,[$r("span",Vce,X(n.nodeName),1),e.disabled?Pr("",!0):(pr(),vr(Ct(qb),{key:0,class:"close",onClick:Wi(a,["stop"])}))]),$r("div",Zce,[(null==(t=n.callback)?void 0:t.webhook)?Pr("",!0):(pr(),mr("div",Xce,"请配置回调通知")),(null==(o=n.callback)?void 0:o.webhook)?(pr(),mr(lr,{key:1},[$r("div",null,[Sr(g,{style:{width:"190px"},ellipsis:"",content:"Webhook: "+n.callback.webhook},null,8,["content"])]),$r("div",null,[Yce,kr(" "+X(Ct(X1)[n.callback.contentType]),1)]),$r("div",null,[Kce,kr(" "+X(Ct(V1)[n.workflowNodeStatus]),1)]),Gce],64)):Pr("",!0)]),2===Ct(r).TYPE&&n.taskBatchStatus?(pr(),vr(m,{key:0},{title:sn((()=>[kr(X(Ct(Y1)[n.taskBatchStatus].title),1)])),default:sn((()=>[Sr(Ct(L1),{class:"error-tip",color:Ct(Y1)[n.taskBatchStatus].color,size:"24px",onClick:Wi((()=>{}),["stop"]),modelValue:Ct(Y1)[n.taskBatchStatus].icon,"onUpdate:modelValue":e=>Ct(Y1)[n.taskBatchStatus].icon=e},null,8,["color","modelValue","onUpdate:modelValue"])])),_:2},1024)):Pr("",!0)],10,Fce)]})),_:2},1032,["open","getPopupContainer","onOpenChange"]),Sr(I2,{disabled:e.disabled,modelValue:n.childNode,"onUpdate:modelValue":e=>n.childNode=e},null,8,["disabled","modelValue","onUpdate:modelValue"])])]),n.childNode?lo(t.$slots,"default",{key:0,node:n},void 0,!0):Pr("",!0),0==h?(pr(),mr("div",Uce)):Pr("",!0),0==h?(pr(),mr("div",qce)):Pr("",!0),h==i.value.conditionNodes.length-1?(pr(),mr("div",Jce)):Pr("",!0),h==i.value.conditionNodes.length-1?(pr(),mr("div",eue)):Pr("",!0)])))),128))]),i.value.conditionNodes.length>1?(pr(),vr(I2,{key:0,disabled:e.disabled,modelValue:i.value.childNode,"onUpdate:modelValue":n[0]||(n[0]=e=>i.value.childNode=e)},null,8,["disabled","modelValue"])):Pr("",!0),0!==Ct(r).type?(pr(),vr(Dce,{key:1,open:d.value,"onUpdate:open":n[1]||(n[1]=e=>d.value=e),modelValue:i.value.conditionNodes[0],"onUpdate:modelValue":n[2]||(n[2]=e=>i.value.conditionNodes[0]=e)},null,8,["open","modelValue"])):Pr("",!0),Sr(Rce,{open:u.value,"onUpdate:open":n[3]||(n[3]=e=>u.value=e),modelValue:p.value,"onUpdate:modelValue":n[4]||(n[4]=e=>p.value=e),onSave:h},null,8,["open","modelValue"])])}}}),[["__scopeId","data-v-90d3ed8a"]]),nue=Ln({__name:"NodeWrap",props:{modelValue:I1().def({}),disabled:k1().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=Ot({});return wn((()=>o.modelValue),(e=>{r.value=e}),{immediate:!0,deep:!0}),wn((()=>r.value),(e=>{n("update:modelValue",e)})),(t,n)=>{const o=fn("node-wrap",!0);return pr(),mr(lr,null,[1==r.value.nodeType?(pr(),vr(t3,{key:0,modelValue:r.value,"onUpdate:modelValue":n[0]||(n[0]=e=>r.value=e),disabled:e.disabled},{default:sn((t=>[t.node?(pr(),vr(o,{key:0,modelValue:t.node.childNode,"onUpdate:modelValue":e=>t.node.childNode=e,disabled:e.disabled},null,8,["modelValue","onUpdate:modelValue","disabled"])):Pr("",!0)])),_:1},8,["modelValue","disabled"])):Pr("",!0),2==r.value.nodeType?(pr(),vr(Ace,{key:1,modelValue:r.value,"onUpdate:modelValue":n[1]||(n[1]=e=>r.value=e),disabled:e.disabled},{default:sn((t=>[t.node?(pr(),vr(o,{key:0,modelValue:t.node.childNode,"onUpdate:modelValue":e=>t.node.childNode=e,disabled:e.disabled},null,8,["modelValue","onUpdate:modelValue","disabled"])):Pr("",!0)])),_:1},8,["modelValue","disabled"])):Pr("",!0),3==r.value.nodeType?(pr(),vr(tue,{key:2,modelValue:r.value,"onUpdate:modelValue":n[2]||(n[2]=e=>r.value=e),disabled:e.disabled},{default:sn((t=>[t.node?(pr(),vr(o,{key:0,modelValue:t.node.childNode,"onUpdate:modelValue":e=>t.node.childNode=e,disabled:e.disabled},null,8,["modelValue","onUpdate:modelValue","disabled"])):Pr("",!0)])),_:1},8,["modelValue","disabled"])):Pr("",!0),r.value.childNode?(pr(),vr(o,{key:3,modelValue:r.value.childNode,"onUpdate:modelValue":n[3]||(n[3]=e=>r.value.childNode=e),disabled:e.disabled},null,8,["modelValue","disabled"])):Pr("",!0)],64)}}}),oue="*",rue="/",iue="-",lue=",",aue="?",sue="L",cue="W",uue="#",due="",pue="LW",hue=(new Date).getFullYear();function fue(e){return"number"==typeof e||/^\d+(\.\d+)?$/.test(e)}const{hasOwnProperty:gue}=Object.prototype;function mue(e,t){return Object.keys(t).forEach((n=>{!function(e,t,n){const o=t[n];(function(e){return null!=e})(o)&&(gue.call(e,n)&&function(e){return null!==e&&"object"==typeof e}(o)?e[n]=mue(Object(e[n]),t[n]):e[n]=o)}(e,t,n)})),e}const vue={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:hue+" ... 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}]},bue=Ot("zh-CN"),yue=it({"zh-CN":vue}),Oue={messages:()=>yue[bue.value],use(e,t){bue.value=e,this.add({[e]:t})},add(e={}){mue(yue,e)}},wue=Oue.messages(),xue={class:"cron-body-row"},$ue={class:"symbol"},Sue=f2(Ln({components:{Radio:IT},props:{timeUnit:{type:String,default:null},symbol:{type:String,default:null},type:{type:String,default:oue},tag:{type:String,default:oue},onChange:{type:Function}},setup:e=>({Message:wue,change:function(){e.onChange&&e.onChange({tag:oue,type:oue})},EVERY:oue})}),[["render",function(e,t,n,o,r,i){const l=fn("Radio");return pr(),mr("div",xue,[Sr(l,{checked:e.type===e.EVERY,onClick:e.change},{default:sn((()=>[$r("span",$ue,X(e.EVERY),1),kr(X(e.Message.common.every)+X(e.timeUnit),1)])),_:1},8,["checked","onClick"])])}]]),Cue=Oue.messages(),kue={class:"cron-body-row"},Pue={class:"symbol"},Mue=f2(Ln({components:{Radio:IT,InputNumber:dQ},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:rue},tag:{type:String,default:rue},onChange:{type:Function}},setup(e){const t=Ot(e.type),n=Ot(0);n.value<e.startConfig.min&&(n.value=e.startConfig.min);const o=Ot(1),r=Xr((()=>`${n.value}${rue}${o.value}`));function i(t){if(e.type!==rue)return;const r=t.split(rue);2===r.length?(r[0]===oue&&(r[0]=0),!fue(r[0])||parseInt(r[0])<e.startConfig.min||parseInt(r[0])>e.startConfig.max?wB.error(`${Cue.period.startError}:${r[0]}`):!fue(r[1])||parseInt(r[1])<e.cycleConfig.min||parseInt(r[1])>e.cycleConfig.max?wB.error(`${Cue.period.cycleError}:${r[1]}`):(n.value=parseInt(r[0]),o.value=parseInt(r[1]))):wB.error(`${Cue.common.tagError}:${t}`)}return Gn((()=>{i(e.tag)})),wn((()=>e.tag),(e=>{i(e)}),{deep:!0}),wn((()=>e.type),(()=>{i(e.tag)}),{deep:!0}),{Message:Cue,type_:t,start:n,cycle:o,tag_:r,PERIOD:rue,change:function(){e.onChange&&e.onChange({type:rue,tag:r.value})},changeTag:i}}}),[["render",function(e,t,n,o,r,i){const l=fn("InputNumber"),a=fn("Radio");return pr(),mr("div",kue,[Sr(a,{checked:e.type===e.PERIOD,onChange:e.change},{default:sn((()=>[$r("span",Pue,X(e.tag_),1),kr(" "+X(e.Message.common.fromThe)+" ",1),Sr(l,{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"]),kr(" "+X(e.timeUnit)+X(e.Message.common.start)+X(e.Message.common.every)+" ",1),Sr(l,{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"]),kr(" "+X(e.timeUnit),1)])),_:1},8,["checked","onChange"])])}]]),Tue=Oue.messages(),Iue={class:"cron-body-row"},Eue={class:"symbol"},Aue=f2(Ln({components:{Radio:IT,InputNumber:dQ},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:iue},tag:{type:String,default:iue},onChange:{type:Function}},setup(e){const t=Ot(e.type),n=Ot(1),o=Ot(0);o.value<e.lowerConfig.min&&(o.value=e.lowerConfig.min),n.value<e.upperConfig.min&&(n.value=e.upperConfig.min);const r=Ot(1),i=Xr((()=>`${o.value}${iue}${n.value}`));function l(t){if(e.type!==iue)return;const r=t.split(iue);2===r.length&&(r[0]===iue&&(r[0]=0),!fue(r[0])||parseInt(r[0])<e.lowerConfig.min||parseInt(r[0])>e.lowerConfig.max||!fue(r[1])||parseInt(r[1])<e.upperConfig.min||parseInt(r[1])>e.upperConfig.max||(o.value=parseInt(r[0]),n.value=parseInt(r[1])))}return Gn((()=>{l(e.tag)})),wn((()=>e.tag),(e=>{l(e)}),{deep:!0}),wn((()=>e.type),(()=>{l(e.tag)}),{deep:!0}),{Message:Tue,type_:t,lower:o,cycle:r,tag_:i,upper_:n,RANGE:iue,change:function(){e.onChange&&e.onChange({type:iue,tag:i.value})}}}}),[["render",function(e,t,n,o,r,i){const l=fn("InputNumber"),a=fn("Radio");return pr(),mr("div",Iue,[Sr(a,{checked:e.type===e.RANGE,onChange:e.change},{default:sn((()=>[$r("span",Eue,X(e.tag_),1),kr(" "+X(e.Message.common.between)+" ",1),Sr(l,{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"]),kr(" "+X(e.timeUnit)+X(e.Message.common.and)+" ",1),Sr(l,{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"]),kr(" "+X(e.Message.common.end)+X(e.Message.common.every)+X(e.timeUnit),1)])),_:1},8,["checked","onChange"])])}]]),Rue=Oue.messages(),Due=Ln({components:{Radio:IT,ASelect:Wx,Tooltip:xS},props:{nums:{type:Array,default:null},timeUnit:{type:String,default:null},type:{type:String,default:lue},tag:{type:String,default:lue},onChange:{type:Function}},setup(e){const t=Ot(e.type),n=Xr((()=>{let e="";if(o.value&&o.value.length){o.value.sort();for(let t=0;t<o.value.length;t++)e+=o.value[t]+lue;e=e.substring(0,e.length-1)}return e})),o=Ot([]),r=Ot(!0);function i(){if(e.type===lue){const t=e.tag.split(",");o.value=[],t.forEach((t=>{fue(t)&&parseInt(t)>=parseInt(e.nums[0].value)&&parseInt(t)<=parseInt(e.nums[e.nums.length-1].value)&&o.value.push(parseInt(t))}))}}return Gn((()=>{i()})),wn((()=>e.tag),(()=>i()),{deep:!0}),wn((()=>e.type),(()=>i()),{deep:!0}),{Message:Rue,type_:t,tag_:n,open:r,FIXED:lue,change:function(){e.onChange&&e.onChange({type:lue,tag:n.value||lue})},numArray:o,changeTag:i}}}),jue={class:"cron-body-row"},Bue=$r("span",{class:"symbol"},",",-1),Nue=f2(Due,[["render",function(e,t,n,o,r,i){const l=fn("Tooltip"),a=fn("Radio"),s=fn("ASelect");return pr(),mr("div",jue,[Sr(a,{checked:e.type===e.FIXED,onChange:e.change},{default:sn((()=>[Sr(l,{title:e.tag_},{default:sn((()=>[Bue])),_:1},8,["title"]),kr(" "+X(e.Message.common.specified),1)])),_:1},8,["checked","onChange"]),Sr(s,{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"])])}]]),zue={watch:{tag(e){this.resolveTag(e)}},mounted(){this.resolveTag(this.tag)},methods:{resolveTag(e){null==e&&(e=due);let t=null;(e=this.resolveCustom(e))===due?t=due:e===aue?t=aue:e===oue?t=oue:e===pue&&(t=pue),null==t&&(t=e.startsWith("L-")||e.endsWith(sue)?sue:e.endsWith(cue)&&e.length>1?cue:e.indexOf(uue)>0?uue:e.indexOf(rue)>0?rue:e.indexOf(iue)>0?iue:lue),this.type_=t,this.tag_=e},resolveCustom:e=>e}},_ue=Oue.messages(),Lue=f2(Ln({components:{Every:Sue,Period:Mue,Range:Aue,Fixed:Nue},mixins:[zue],props:{tag:{type:String,default:oue},onChange:{type:Function}},setup(e){const t={min:0,step:1,max:59},n={min:1,step:1,max:59},o={min:0,step:1,max:59},r={min:0,step:1,max:59},i=[];for(let s=0;s<60;s++){const e={label:s.toString(),value:s};i.push(e)}const l=Ot(oue),a=Ot(e.tag);return{Message:_ue,startConfig:t,cycleConfig:n,lowerConfig:o,upperConfig:r,nums:i,type_:l,tag_:a,change:function(t){l.value=t.type,a.value=t.tag,e.onChange&&e.onChange({type:l.value,tag:a.value})}}}}),[["render",function(e,t,n,o,r,i){const l=fn("Every"),a=fn("Period"),s=fn("Range"),c=fn("Fixed");return pr(),mr(lr,null,[Sr(l,{"time-unit":e.Message.second.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),Sr(a,{"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"]),Sr(s,{"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"]),Sr(c,{"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)}]]),Que=Oue.messages(),Hue=f2(Ln({components:{Every:Sue,Period:Mue,Range:Aue,Fixed:Nue},mixins:[zue],props:{tag:{type:String,default:oue},onChange:{type:Function}},setup(e){const t={min:0,step:1,max:59},n={min:1,step:1,max:59},o={min:0,step:1,max:59},r={min:0,step:1,max:59},i=[];for(let s=0;s<60;s++){const e={label:s.toString(),value:s};i.push(e)}const l=Ot(oue),a=Ot(e.tag);return{Message:Que,startConfig:t,cycleConfig:n,lowerConfig:o,upperConfig:r,nums:i,type_:l,tag_:a,change:function(t){l.value=t.type,a.value=t.tag,e.onChange&&e.onChange({type:l.value,tag:a.value})}}}}),[["render",function(e,t,n,o,r,i){const l=fn("Every"),a=fn("Period"),s=fn("Range"),c=fn("Fixed");return pr(),mr(lr,null,[Sr(l,{"time-unit":e.Message.minute.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),Sr(a,{"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"]),Sr(s,{"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"]),Sr(c,{"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)}]]),Fue=Oue.messages(),Wue=f2(Ln({components:{Every:Sue,Period:Mue,Range:Aue,Fixed:Nue},mixins:[zue],props:{tag:{type:String,default:oue},onChange:{type:Function}},setup(e){const t={min:0,step:1,max:23},n={min:1,step:1,max:23},o={min:0,step:1,max:23},r={min:0,step:1,max:23},i=[];for(let s=0;s<24;s++){const e={label:s.toString(),value:s};i.push(e)}const l=Ot(oue),a=Ot(e.tag);return{Message:Fue,startConfig:t,cycleConfig:n,lowerConfig:o,upperConfig:r,nums:i,type_:l,tag_:a,change:function(t){l.value=t.type,a.value=t.tag,e.onChange&&e.onChange({type:l.value,tag:a.value})}}}}),[["render",function(e,t,n,o,r,i){const l=fn("Every"),a=fn("Period"),s=fn("Range"),c=fn("Fixed");return pr(),mr(lr,null,[Sr(l,{"time-unit":e.Message.hour.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),Sr(a,{"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"]),Sr(s,{"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"]),Sr(c,{"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)}]]),Vue=Oue.messages(),Zue={class:"cron-body-row"},Xue={class:"symbol"},Yue=f2(Ln({components:{Radio:IT},props:{type:{type:String,default:aue},tag:{type:String,default:aue},onChange:{type:Function}},setup:e=>({Message:Vue,change:function(){e.onChange&&e.onChange({tag:aue,type:aue})},UNFIXED:aue})}),[["render",function(e,t,n,o,r,i){const l=fn("Radio");return pr(),mr("div",Zue,[Sr(l,{checked:e.type===e.UNFIXED,onClick:e.change},{default:sn((()=>[$r("span",Xue,X(e.UNFIXED),1),kr(X(e.Message.custom.unspecified),1)])),_:1},8,["checked","onClick"])])}]]),Kue=Oue.messages(),Gue={class:"cron-body-row"},Uue={class:"symbol"},que=f2(Ln({components:{Radio:IT,InputNumber:dQ},props:{lastConfig:{type:Object,default:null},targetTimeUnit:{type:String,default:null},timeUnit:{type:String,default:null},type:{type:String,default:sue},tag:{type:String,default:sue},onChange:{type:Function}},setup(e){const t=Ot(e.type),n=Ot(1),o=Xr((()=>1===n.value?sue:"L-"+(n.value-1)));function r(t){if(e.type!==sue)return;if(t===sue)return void(n.value=1);const o=t.substring(2);fue(o)&&parseInt(o)>=e.lastConfig.min&&parseInt(o)<=e.lastConfig.max?n.value=parseInt(o)+1:wB.error(Kue.common.numError+":"+o)}return Gn((()=>{r(e.tag)})),wn((()=>e.tag),(e=>{r(e)}),{deep:!0}),wn((()=>e.type),(()=>{r(e.tag)}),{deep:!0}),{Message:Kue,type_:t,tag_:o,LAST:sue,lastNum:n,change:function(){e.onChange&&e.onChange({type:sue,tag:o.value})},changeTag:r}}}),[["render",function(e,t,n,o,r,i){const l=fn("InputNumber"),a=fn("Radio");return pr(),mr("div",Gue,[Sr(a,{checked:e.type===e.LAST,onChange:e.change},{default:sn((()=>[$r("span",Uue,X(e.tag_),1),kr(" "+X(e.Message.common.current)+X(e.targetTimeUnit)+X(e.Message.custom.lastTh)+" ",1),Sr(l,{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"]),kr(" "+X(e.timeUnit),1)])),_:1},8,["checked","onChange"])])}]]),Jue=Oue.messages(),ede={class:"cron-body-row"},tde={class:"symbol"},nde=f2(Ln({components:{Radio:IT,InputNumber:dQ},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:cue},tag:{type:String,default:""},onChange:{type:Function}},setup(e){const t=Ot(e.type),n=Ot(1),o=Ot(1),r=Xr((()=>`${n.value}${cue}`));function i(t){if(e.type!==cue)return;const o=t.substring(0,t.length-1);!fue(o)||parseInt(o)<e.startDateConfig.min||parseInt(o)>e.startDateConfig.max?wB.error(`${Jue.common.numError}:${o}`):n.value=parseInt(o)}return Gn((()=>{i(e.tag)})),wn((()=>e.tag),(e=>{i(e)}),{deep:!0}),wn((()=>e.type),(()=>{i(e.tag)}),{deep:!0}),{Message:Jue,type_:t,startDate:n,weekDayNum:o,tag_:r,WORK_DAY:cue,change:function(){e.onChange&&e.onChange({type:cue,tag:r.value})},changeTag:i}}}),[["render",function(e,t,n,o,r,i){const l=fn("Radio"),a=fn("InputNumber");return pr(),mr("div",ede,[Sr(l,{checked:e.type===e.WORK_DAY,onChange:e.change},{default:sn((()=>[$r("span",tde,X(e.tag_),1),kr(" "+X(e.Message.common.every)+X(e.targetTimeUnit),1)])),_:1},8,["checked","onChange"]),Sr(a,{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"]),kr(" "+X(e.timeUnit)+X(e.Message.common.nearest)+X(e.Message.custom.workDay),1)])}]]),ode=Oue.messages(),rde={class:"cron-body-row"},ide={class:"symbol"},lde=f2(Ln({components:{Radio:IT},props:{targetTimeUnit:{type:String,default:null},type:{type:String,default:pue},tag:{type:String,default:pue},onChange:{type:Function}},setup:e=>({Message:ode,change:function(){e.onChange&&e.onChange({tag:pue,type:pue})},LAST_WORK_DAY:pue})}),[["render",function(e,t,n,o,r,i){const l=fn("Radio");return pr(),mr("div",rde,[Sr(l,{checked:e.type===e.LAST_WORK_DAY,onClick:e.change},{default:sn((()=>[$r("span",ide,X(e.LAST_WORK_DAY),1),kr(" "+X(e.Message.common.current)+X(e.targetTimeUnit)+X(e.Message.custom.latestWorkday),1)])),_:1},8,["checked","onClick"])])}]]),ade=Oue.messages(),sde=31,cde=f2(Ln({components:{Every:Sue,Period:Mue,Range:Aue,Fixed:Nue,UnFixed:Yue,Last:que,WorkDay:nde,LastWorkDay:lde},mixins:[zue],props:{tag:{type:String,default:oue},onChange:{type:Function}},setup(e){const t={min:1,step:1,max:sde},n={min:1,step:1,max:sde},o={min:1,step:1,max:sde},r={min:1,step:1,max:sde},i={min:1,step:1,max:sde},l=[];for(let c=1;c<32;c++){const e={label:c.toString(),value:c};l.push(e)}const a=Ot(oue),s=Ot(e.tag);return{Message:ade,startConfig:t,cycleConfig:n,lowerConfig:o,upperConfig:r,lastConfig:i,nums:l,type_:a,tag_:s,change:function(t){a.value=t.type,s.value=t.tag,e.onChange&&e.onChange({type:a.value,tag:s.value})}}}}),[["render",function(e,t,n,o,r,i){const l=fn("Every"),a=fn("Period"),s=fn("Range"),c=fn("Fixed"),u=fn("UnFixed"),d=fn("Last"),p=fn("WorkDay"),h=fn("LastWorkDay");return pr(),mr(lr,null,[Sr(l,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),Sr(a,{"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"]),Sr(s,{"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"]),Sr(c,{"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"]),Sr(u,{type:e.type_,nums:e.nums,onChange:e.change},null,8,["type","nums","onChange"]),Sr(d,{"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"]),Sr(p,{"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"]),Sr(h,{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)}]]),ude=Oue.messages(),dde=f2(Ln({components:{Every:Sue,Period:Mue,Range:Aue,Fixed:Nue},mixins:[zue],props:{tag:{type:String,default:oue},onChange:{type:Function}},setup(e){const t={min:1,step:1,max:12},n={min:1,step:1,max:12},o={min:1,step:1,max:12},r={min:1,step:1,max:12},i=[];for(let s=1;s<13;s++){const e={label:s.toString(),value:s};i.push(e)}const l=Ot(oue),a=Ot(e.tag);return{Message:ude,startConfig:t,cycleConfig:n,lowerConfig:o,upperConfig:r,nums:i,type_:l,tag_:a,change:function(t){l.value=t.type,a.value=t.tag,e.onChange&&e.onChange({type:l.value,tag:a.value})}}}}),[["render",function(e,t,n,o,r,i){const l=fn("Every"),a=fn("Period"),s=fn("Range"),c=fn("Fixed");return pr(),mr(lr,null,[Sr(l,{"time-unit":e.Message.month.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),Sr(a,{"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"]),Sr(s,{"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"]),Sr(c,{"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)}]]),pde=Oue.messages(),hde={class:"cron-body-row"},fde={class:"symbol"},gde=f2(Ln({components:{Radio:IT},props:{timeUnit:{type:String,default:null},symbol:{type:String,default:null},type:{type:String,default:due},tag:{type:String,default:due},onChange:{type:Function}},setup:e=>({Message:pde,change:function(){e.onChange&&e.onChange({tag:due,type:due})},EMPTY:due})}),[["render",function(e,t,n,o,r,i){const l=fn("Radio");return pr(),mr("div",hde,[Sr(l,{checked:e.type===e.EMPTY,onClick:e.change},{default:sn((()=>[$r("span",fde,X(e.Message.custom.empty),1)])),_:1},8,["checked","onClick"])])}]]),mde=Oue.messages(),vde=hue,bde=2099,yde=f2(Ln({components:{Every:Sue,Period:Mue,Range:Aue,Fixed:Nue,Empty:gde},mixins:[zue],props:{tag:{type:String,default:due},onChange:{type:Function}},setup(e){const t={min:vde,step:1,max:bde},n={min:1,step:1,max:bde},o={min:vde,step:1,max:bde},r={min:vde,step:1,max:bde},i=[];for(let s=vde;s<2100;s++){const e={label:s.toString(),value:s};i.push(e)}const l=Ot(due),a=Ot(e.tag);return{Message:mde,startConfig:t,cycleConfig:n,lowerConfig:o,upperConfig:r,nums:i,type_:l,tag_:a,change:function(t){l.value=t.type,a.value=t.tag,e.onChange&&e.onChange({type:l.value,tag:a.value})}}}}),[["render",function(e,t,n,o,r,i){const l=fn("Every"),a=fn("Period"),s=fn("Range"),c=fn("Fixed"),u=fn("Empty");return pr(),mr(lr,null,[Sr(l,{"time-unit":e.Message.year.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),Sr(a,{"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"]),Sr(s,{"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"]),Sr(c,{"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"]),Sr(u,{type:e.type_,tag:e.tag_,onChange:e.change},null,8,["type","tag","onChange"])],64)}]]),Ode=Oue.messages(),wde={class:"cron-body-row"},xde={class:"symbol"},$de=f2(Ln({components:{Radio:IT,InputNumber:dQ,ASelect:Wx},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:rue},tag:{type:String,default:rue},onChange:{type:Function}},setup(e){const t=Ot(e.type),n=Ot(1),o=Ot(1),r=Xr((()=>`${n.value}${rue}${o.value}`));function i(t){if(e.type!==rue)return;const r=t.split(rue);2===r.length?!fue(r[0])||parseInt(r[0])<e.startConfig.min||parseInt(r[0])>e.startConfig.max?wB.error(`${Ode.period.startError}:${r[0]}`):!fue(r[1])||parseInt(r[1])<e.cycleConfig.min||parseInt(r[1])>e.cycleConfig.max?wB.error(`${Ode.period.cycleError}:${r[1]}`):(n.value=parseInt(r[0]),o.value=parseInt(r[1])):wB.error(`${Ode.common.tagError}:${t}`)}return Gn((()=>{i(e.tag)})),wn((()=>e.tag),(e=>{i(e)}),{deep:!0}),wn((()=>e.type),(()=>{i(e.tag)}),{deep:!0}),{Message:Ode,type_:t,start:n,cycle:o,tag_:r,PERIOD:rue,change:function(){e.onChange&&e.onChange({type:rue,tag:r.value})},changeTag:i}}}),[["render",function(e,t,n,o,r,i){const l=fn("Radio"),a=fn("ASelect"),s=fn("InputNumber");return pr(),mr("div",wde,[Sr(l,{checked:e.type===e.PERIOD,onChange:e.change},{default:sn((()=>[$r("span",xde,X(e.tag_),1),kr(" "+X(e.Message.common.from),1)])),_:1},8,["checked","onChange"]),Sr(a,{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"]),kr(" "+X(e.Message.common.start)+X(e.Message.common.every)+" ",1),Sr(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"]),kr(" "+X(e.timeUnit),1)])}]]),Sde=Oue.messages(),Cde=Wx.Option,kde={class:"cron-body-row"},Pde={class:"symbol"},Mde=f2(Ln({components:{Radio:IT,ASelect:Wx,AOption:Cde},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:iue},tag:{type:String,default:iue},onChange:{type:Function}},setup(e){const t=Ot(e.type),n=Ot(1),o=Ot(0);o.value<e.lowerConfig.min&&(o.value=e.lowerConfig.min),n.value<e.upperConfig.min&&(n.value=e.upperConfig.min);const r=Ot(1),i=Xr((()=>`${o.value}${iue}${n.value}`));function l(t){if(e.type!==iue)return;const r=t.split(iue);2===r.length&&(r[0]===iue&&(r[0]=0),!fue(r[0])||parseInt(r[0])<e.lowerConfig.min||parseInt(r[0])>e.lowerConfig.max||!fue(r[1])||parseInt(r[1])<e.upperConfig.min||parseInt(r[1])>e.upperConfig.max||(o.value=parseInt(r[0]),n.value=parseInt(r[1])))}return Gn((()=>{l(e.tag)})),wn((()=>e.tag),(e=>{l(e)}),{deep:!0}),wn((()=>e.type),(()=>{l(e.tag)}),{deep:!0}),{Message:Sde,type_:t,lower:o,cycle:r,tag_:i,upper_:n,RANGE:iue,change:function(){e.onChange&&e.onChange({type:iue,tag:i.value})}}}}),[["render",function(e,t,n,o,r,i){const l=fn("Radio"),a=fn("AOption"),s=fn("ASelect");return pr(),mr("div",kde,[Sr(l,{checked:e.type===e.RANGE,onChange:e.change},{default:sn((()=>[$r("span",Pde,X(e.tag_),1),kr(" "+X(e.Message.common.between),1)])),_:1},8,["checked","onChange"]),Sr(s,{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:sn((()=>[(pr(!0),mr(lr,null,io(e.nums,(t=>(pr(),vr(a,{key:t.value,value:t.value,disabled:Number(t.value)>e.upper_},{default:sn((()=>[kr(X(t.label),1)])),_:2},1032,["value","disabled"])))),128))])),_:1},8,["value","placeholder","disabled","onChange"]),kr(" "+X(e.timeUnit)+X(e.Message.common.and)+" ",1),Sr(s,{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"]),kr(" "+X(e.Message.common.end)+X(e.Message.common.every)+X(e.timeUnit),1)])}]]),Tde=Oue.messages(),Ide={class:"cron-body-row"},Ede={class:"symbol"},Ade=f2(Ln({components:{Radio:IT,ASelect:Wx},props:{nums:{type:Array,default:null},targetTimeUnit:{type:String,default:null},timeUnit:{type:String,default:null},type:{type:String,default:sue},tag:{type:String,default:sue},onChange:{type:Function}},setup(e){const t=Ot(e.type),n=Ot(1),o=Xr((()=>(n.value>=1&&n.value<7?n.value:"")+sue));function r(t){if(e.type!==sue)return;if(t===sue)return void(n.value=7);const o=t.substring(0,t.length-1);fue(o)&&parseInt(o)>=parseInt(e.nums[0].value)&&parseInt(o)<=parseInt(e.nums[e.nums.length-1].value)?n.value=parseInt(o):wB.error(Tde.common.numError+":"+o)}return Gn((()=>{r(e.tag)})),wn((()=>e.tag),(e=>{r(e)}),{deep:!0}),wn((()=>e.type),(()=>{r(e.tag)}),{deep:!0}),{Message:Tde,type_:t,tag_:o,LAST:sue,lastNum:n,change:function(){e.onChange&&e.onChange({type:sue,tag:o.value})},changeTag:r}}}),[["render",function(e,t,n,o,r,i){const l=fn("Radio"),a=fn("ASelect");return pr(),mr("div",Ide,[Sr(l,{checked:e.type===e.LAST,onChange:e.change},{default:sn((()=>[$r("span",Ede,X(e.tag_),1),kr(" "+X(e.Message.common.current)+X(e.targetTimeUnit)+X(e.Message.custom.lastTh),1)])),_:1},8,["checked","onChange"]),Sr(a,{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"])])}]]),Rde=Oue.messages(),Dde={class:"cron-body-row"},jde={class:"symbol"},Bde=f2(Ln({components:{Radio:IT,InputNumber:dQ,ASelect:Wx},props:{targetTimeUnit:{type:String,default:null},nums:{type:Array,default:null},timeUnit:{type:String,default:null},type:{type:String,default:uue},tag:{type:String,default:""},onChange:{type:Function}},setup(e){const t=Ot(e.type),n=Ot(1),o=Ot(1),r=Xr((()=>`${n.value}${uue}${o.value}`));function i(t){if(e.type!==uue)return;const r=t.split(uue);2===r.length?!fue(r[0])||parseInt(r[0])<parseInt(e.nums[0].value)||parseInt(r[0])>parseInt(e.nums[e.nums.length-1].value)?wB.error(`${Rde.period.startError}:${r[0]}`):!fue(r[1])||parseInt(r[1])<1||parseInt(r[1])>5?wB.error(`${Rde.period.cycleError}:${r[1]}`):(n.value=parseInt(r[0]),o.value=parseInt(r[1])):wB.error(`${Rde.common.tagError}:${t}`)}return Gn((()=>{i(e.tag)})),wn((()=>e.tag),(e=>{i(e)}),{deep:!0}),wn((()=>e.type),(()=>{i(e.tag)}),{deep:!0}),{Message:Rde,type_:t,nth:n,weekDayNum:o,tag_:r,WEEK_DAY:uue,change:function(){e.onChange&&e.onChange({type:uue,tag:r.value})},changeTag:i}}}),[["render",function(e,t,n,o,r,i){const l=fn("Radio"),a=fn("InputNumber"),s=fn("ASelect");return pr(),mr("div",Dde,[Sr(l,{checked:e.type===e.WEEK_DAY,onChange:e.change},{default:sn((()=>[$r("span",jde,X(e.tag_),1),kr(" "+X(e.Message.common.current)+X(e.targetTimeUnit)+X(e.Message.common.nth),1)])),_:1},8,["checked","onChange"]),Sr(a,{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"]),kr(" "+X(e.Message.common.index)+" ",1),Sr(s,{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"])])}]]),Nde=Oue.messages(),zde=f2(Ln({components:{Every:Sue,Period:$de,Range:Mde,Fixed:Nue,UnFixed:Yue,Last:Ade,WeekDay:Bde},mixins:[zue],props:{tag:{type:String,default:aue},onChange:{type:Function}},setup(e){const t={min:1,step:1,max:7},n={min:1,step:1,max:7},o={min:1,step:1,max:7},r={min:1,step:1,max:7},i={min:1,step:1,max:7},l=Nde.daysOfWeekOptions,a=Ot(oue),s=Ot(e.tag);return{Message:Nde,startConfig:t,cycleConfig:o,lowerConfig:r,upperConfig:i,startDateConfig:n,nums:l,type_:a,tag_:s,change:function(t){a.value=t.type,s.value=t.tag,e.onChange&&e.onChange({type:a.value,tag:s.value})}}}}),[["render",function(e,t,n,o,r,i){const l=fn("Every"),a=fn("Period"),s=fn("Range"),c=fn("Fixed"),u=fn("UnFixed"),d=fn("Last"),p=fn("WeekDay");return pr(),mr(lr,null,[Sr(l,{"time-unit":e.Message.dayOfMonth.title,type:e.type_,onChange:e.change},null,8,["time-unit","type","onChange"]),Sr(a,{"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"]),Sr(s,{"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"]),Sr(c,{"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"]),Sr(u,{type:e.type_,nums:e.nums,onChange:e.change},null,8,["type","nums","onChange"]),Sr(d,{"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"]),Sr(p,{"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)}]]),_de=Oue.messages(),Lde=Ln({name:"VueCron",components:{AInput:Gz,Popover:PS,Card:SE,Seconds:Lue,Minutes:Hue,Hours:Wue,Days:cde,Months:dde,Years:yde,WeekDays:zde,CalendarOutlined:hN},props:{value:{type:String,default:"* * * * * ? *"}},setup(e,{emit:t}){const n=Ot(""),o=Ot([]),r=[{key:"seconds",tab:_de.second.title},{key:"minutes",tab:_de.minute.title},{key:"hours",tab:_de.hour.title},{key:"days",tab:_de.dayOfMonth.title},{key:"months",tab:_de.month.title},{key:"weekdays",tab:_de.dayOfWeek.title},{key:"years",tab:_de.year.title}],i=it({second:oue,minute:oue,hour:oue,dayOfMonth:oue,month:oue,dayOfWeek:aue,year:due}),l=Ot("seconds");function a(e){const o=e.trim().split(" ");if(!e||e.trim().length<11||6!==o.length&&7!==o.length){const e="* * * * * ?";return n.value=e,s(e),wB.error(_de.common.tagError),t("update:value",e),void t("change",e)}s(e),i.second=o[0],i.minute=o[1],i.hour=o[2],i.dayOfMonth=o[3],i.month=o[4],i.dayOfWeek=o[5],i.year=7===o.length?o[6]:""}function s(e){e1(`/job/cron?cron=${e}`).then((e=>{if(o.value=e,0===o.value.length){const e="* * * * * ?";n.value=e,s(e),t("update:value",e),t("change",e)}}))}return wn((()=>e.value),(e=>{a(e),n.value=e}),{immediate:!0}),{cronStr:n,list:o,tabList:r,activeTabKey:l,tag:i,changeTime:a,timeChange:function(e,n){const o={...i};o[e]=n,"dayOfWeek"===e&&"*"!==n&&"?"!==n?o.dayOfMonth="?":"dayOfMonth"===e&&"*"!==n&&"?"!==n&&(o.dayOfWeek="?");let r=[];r.push(o.second),r.push(o.minute),r.push(o.hour),r.push(o.dayOfMonth),r.push(o.month),r.push(o.dayOfWeek),r.push(o.year),s(r.join(" ").trim()),t("update:value",r.join(" ").trim()),t("change",r.join(" ").trim())}}}}),Qde={key:0},Hde={key:1},Fde={key:2},Wde={key:3},Vde={key:4},Zde={key:5},Xde={key:6},Yde={style:{display:"flex","align-items":"center","justify-content":"space-between"}},Kde=$r("span",{style:{width:"150px","font-weight":"600"}},"CRON 表达式: ",-1),Gde=$r("div",{style:{margin:"20px 0","border-left":"#1677ff 5px solid","font-size":"medium","font-weight":"bold"}},"    近5次的运行时间: ",-1),Ude=f2(Lde,[["render",function(e,t,n,o,r,i){const l=fn("AInput"),a=fn("CalendarOutlined"),s=fn("Seconds"),c=fn("Minutes"),u=fn("Hours"),d=fn("Days"),p=fn("Months"),h=fn("WeekDays"),f=fn("Years"),g=fn("a-tab-pane"),m=fn("a-tabs"),v=fn("a-divider"),b=fn("a-input"),y=fn("a-button"),O=fn("Card"),w=fn("Popover");return pr(),vr(w,{placement:"bottom",trigger:"click"},{content:sn((()=>[Sr(O,{size:"small"},{default:sn((()=>[Sr(m,{activeKey:e.activeTabKey,"onUpdate:activeKey":t[7]||(t[7]=t=>e.activeTabKey=t),type:"card"},{default:sn((()=>[(pr(!0),mr(lr,null,io(e.tabList,(n=>(pr(),vr(g,{key:n.key},{tab:sn((()=>[$r("span",null,[Sr(a),kr(" "+X(n.tab),1)])])),default:sn((()=>["seconds"===e.activeTabKey?(pr(),mr("div",Qde,[Sr(s,{tag:e.tag.second,onChange:t[0]||(t[0]=t=>e.timeChange("second",t.tag))},null,8,["tag"])])):"minutes"===e.activeTabKey?(pr(),mr("div",Hde,[Sr(c,{tag:e.tag.minute,onChange:t[1]||(t[1]=t=>e.timeChange("minute",t.tag))},null,8,["tag"])])):"hours"===e.activeTabKey?(pr(),mr("div",Fde,[Sr(u,{tag:e.tag.hour,onChange:t[2]||(t[2]=t=>e.timeChange("hour",t.tag))},null,8,["tag"])])):"days"===e.activeTabKey?(pr(),mr("div",Wde,[Sr(d,{tag:e.tag.dayOfMonth,onChange:t[3]||(t[3]=t=>e.timeChange("dayOfMonth",t.tag))},null,8,["tag"])])):"months"===e.activeTabKey?(pr(),mr("div",Vde,[Sr(p,{tag:e.tag.month,onChange:t[4]||(t[4]=t=>e.timeChange("month",t.tag))},null,8,["tag"])])):"weekdays"===e.activeTabKey?(pr(),mr("div",Zde,[Sr(h,{tag:e.tag.dayOfWeek,onChange:t[5]||(t[5]=t=>e.timeChange("dayOfWeek",t.tag))},null,8,["tag"])])):"years"===e.activeTabKey?(pr(),mr("div",Xde,[Sr(f,{tag:e.tag.year,onChange:t[6]||(t[6]=t=>e.timeChange("year",t.tag))},null,8,["tag"])])):Pr("",!0)])),_:2},1024)))),128))])),_:1},8,["activeKey"]),Sr(v),$r("div",Yde,[Kde,Sr(b,{value:e.cronStr,"onUpdate:value":t[8]||(t[8]=t=>e.cronStr=t)},null,8,["value"]),Sr(y,{type:"primary",style:{"margin-left":"16px"},onClick:t[9]||(t[9]=t=>e.changeTime(e.cronStr))},{default:sn((()=>[kr("保存")])),_:1})]),Sr(v),Gde,(pr(!0),mr(lr,null,io(e.list,((e,t)=>(pr(),mr("div",{key:e,style:{"margin-top":"10px"}},"第"+X(t+1)+"次: "+X(e),1)))),128))])),_:1})])),default:sn((()=>[Sr(l,{readonly:"",value:e.value},null,8,["value"])])),_:1})}]]),qde=Ln({__name:"StartDrawer",props:{open:k1().def(!1),modelValue:I1().def({})},emits:["update:open","save"],setup(e,{emit:t}){const n=t,o=e;let r="";const i=Ot(!1),l=Ot({}),a=Ot([]);wn((()=>o.open),(e=>{i.value=e}),{immediate:!0}),wn((()=>o.modelValue),(e=>{l.value=e,r=e.workflowName?e.workflowName:e.groupName?e.groupName:"请选择组"}),{immediate:!0,deep:!0});const s=Ot(),c=()=>{var e;null==(e=s.value)||e.validate().then((()=>{u(),n("save",l.value)})).catch((()=>{wB.warning("请检查表单信息")}))},u=()=>{n("update:open",!1),i.value=!1};Gn((()=>{Vt((()=>{d()}))}));const d=()=>{e1("/group/all/group-name/list").then((e=>{a.value=e}))},p=e=>{1===e?l.value.triggerInterval="* * * * * ?":2===e&&(l.value.triggerInterval="60")},h={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 n=fn("a-input"),o=fn("a-form-item"),d=fn("a-select-option"),f=fn("a-select"),g=fn("a-col"),m=fn("a-input-number"),v=fn("a-form-item-rest"),b=fn("a-row"),y=fn("a-radio"),O=fn("a-radio-group"),w=fn("a-textarea"),x=fn("a-form"),$=fn("a-button"),S=fn("a-drawer");return pr(),vr(S,{open:i.value,"onUpdate:open":t[9]||(t[9]=e=>i.value=e),title:Ct(r),"destroy-on-close":"",width:610,onClose:u},{footer:sn((()=>[Sr($,{type:"primary",onClick:c},{default:sn((()=>[kr("保存")])),_:1}),Sr($,{style:{"margin-left":"12px"},onClick:u},{default:sn((()=>[kr("取消")])),_:1})])),default:sn((()=>[Sr(x,{ref_key:"formRef",ref:s,layout:"vertical",model:l.value,rules:h,"label-align":"left","label-col":{style:{width:"100px"}}},{default:sn((()=>[Sr(o,{name:"workflowName",label:"工作流名称"},{default:sn((()=>[Sr(n,{value:l.value.workflowName,"onUpdate:value":t[0]||(t[0]=e=>l.value.workflowName=e),placeholder:"请输入工作流名称"},null,8,["value"])])),_:1}),Sr(o,{name:"groupName",label:"组名称"},{default:sn((()=>[Sr(f,{ref:"select",value:l.value.groupName,"onUpdate:value":t[1]||(t[1]=e=>l.value.groupName=e),placeholder:"请选择组"},{default:sn((()=>[(pr(!0),mr(lr,null,io(a.value,(e=>(pr(),vr(d,{key:e,value:e},{default:sn((()=>[kr(X(e),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1}),Sr(b,{gutter:24},{default:sn((()=>[Sr(g,{span:8},{default:sn((()=>[Sr(o,{name:"triggerType",label:"触发类型"},{default:sn((()=>[Sr(f,{ref:"select",value:l.value.triggerType,"onUpdate:value":t[2]||(t[2]=e=>l.value.triggerType=e),placeholder:"请选择触发类型",onChange:p},{default:sn((()=>[(pr(!0),mr(lr,null,io(Ct(E2)(Ct(H1)),(e=>(pr(),vr(d,{key:e.value,value:e.value},{default:sn((()=>[kr(X(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1})])),_:1}),Sr(g,{span:16},{default:sn((()=>[Sr(o,{name:"triggerInterval",label:"触发间隔"},{default:sn((()=>[Sr(v,null,{default:sn((()=>[1===l.value.triggerType?(pr(),vr(Ct(Ude),{key:0,value:l.value.triggerInterval,"onUpdate:value":t[3]||(t[3]=e=>l.value.triggerInterval=e)},null,8,["value"])):(pr(),vr(m,{key:1,addonAfter:"秒",style:{width:"-webkit-fill-available"},value:l.value.triggerInterval,"onUpdate:value":t[4]||(t[4]=e=>l.value.triggerInterval=e),placeholder:"请输入触发间隔"},null,8,["value"]))])),_:1})])),_:1})])),_:1})])),_:1}),Sr(b,{gutter:24},{default:sn((()=>[Sr(g,{span:8},{default:sn((()=>[Sr(o,{name:"executorTimeout",label:"执行超时时间"},{default:sn((()=>[Sr(m,{addonAfter:"秒",value:l.value.executorTimeout,"onUpdate:value":t[5]||(t[5]=e=>l.value.executorTimeout=e),placeholder:"请输入超时时间"},null,8,["value"])])),_:1})])),_:1}),Sr(g,{span:16},{default:sn((()=>[Sr(o,{name:"blockStrategy",label:"阻塞策略"},{default:sn((()=>[Sr(O,{value:l.value.blockStrategy,"onUpdate:value":t[6]||(t[6]=e=>l.value.blockStrategy=e)},{default:sn((()=>[(pr(!0),mr(lr,null,io(Ct(E2)(Ct(F1)),(e=>(pr(),vr(y,{key:e.value,value:e.value},{default:sn((()=>[kr(X(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1})])),_:1})])),_:1}),Sr(o,{name:"workflowStatus",label:"节点状态"},{default:sn((()=>[Sr(O,{value:l.value.workflowStatus,"onUpdate:value":t[7]||(t[7]=e=>l.value.workflowStatus=e)},{default:sn((()=>[(pr(!0),mr(lr,null,io(Ct(E2)(Ct(V1)),(e=>(pr(),vr(y,{key:e.value,value:e.value},{default:sn((()=>[kr(X(e.name),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"])])),_:1}),Sr(o,{name:"description",label:"描述"},{default:sn((()=>[Sr(w,{value:l.value.description,"onUpdate:value":t[8]||(t[8]=e=>l.value.description=e),"auto-size":{minRows:5},placeholder:"请输入描述"},null,8,["value"])])),_:1})])),_:1},8,["model"])])),_:1},8,["open","title"])}}}),Jde=Ln({__name:"StartDetail",props:{modelValue:I1().def({}),open:k1().def(!1)},emits:["update:open"],setup(e,{emit:t}){const n=t,o=e,r=Ot(!1);wn((()=>o.open),(e=>{r.value=e}),{immediate:!0});const i=()=>{n("update:open",!1)};return(t,n)=>{const o=fn("a-descriptions-item"),l=fn("a-descriptions"),a=fn("a-drawer");return pr(),vr(a,{title:"工作流详情",placement:"right",width:500,open:r.value,"onUpdate:open":n[0]||(n[0]=e=>r.value=e),"destroy-on-close":"",onClose:i},{default:sn((()=>[Sr(l,{column:1,bordered:"",labelStyle:{width:"120px"}},{default:sn((()=>[Sr(o,{label:"工作流名称"},{default:sn((()=>[kr(X(e.modelValue.workflowName),1)])),_:1}),Sr(o,{label:"组名称"},{default:sn((()=>[kr(X(e.modelValue.groupName),1)])),_:1}),Sr(o,{label:"触发类型"},{default:sn((()=>[kr(X(Ct(H1)[e.modelValue.triggerType]),1)])),_:1}),Sr(o,{label:"触发间隔"},{default:sn((()=>[kr(X(e.modelValue.triggerInterval)+" "+X(2===e.modelValue.triggerType?"秒":null),1)])),_:1}),Sr(o,{label:"执行超时时间"},{default:sn((()=>[kr(X(e.modelValue.executorTimeout)+" 秒 ",1)])),_:1}),Sr(o,{label:"阻塞策略"},{default:sn((()=>[kr(X(Ct(F1)[e.modelValue.blockStrategy]),1)])),_:1}),Sr(o,{label:"工作流状态"},{default:sn((()=>[kr(X(Ct(V1)[e.modelValue.workflowStatus]),1)])),_:1})])),_:1})])),_:1},8,["open"])}}}),epe=e=>(ln("data-v-314bc87b"),e=e(),an(),e),tpe={class:"node-wrap"},npe={class:"title",style:{background:"#ff943e"}},ope={class:"text"},rpe={key:0,class:"content"},ipe=epe((()=>$r("div",null,".........",-1))),lpe={key:1,class:"content"},ape=[epe((()=>$r("span",{class:"placeholder"}," 请配置工作流 ",-1)))],spe=f2(Ln({__name:"StartNode",props:{modelValue:I1().def({}),disabled:k1().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=Ot({}),i=Ot({});wn((()=>o.modelValue),(e=>{i.value=e}),{immediate:!0,deep:!0}),wn((()=>i.value),(e=>{n("update:modelValue",e)}));const l=J0();wn((()=>i.value.groupName),(e=>{e&&(l.setGroupName(e),e1(`/job/list?groupName=${e}`).then((e=>{l.setJobList(e)})))}),{immediate:!0});const a=Ot(!1),s=Ot(!1),c=e=>{i.value=e},u=()=>{0===l.TYPE?(r.value=JSON.parse(JSON.stringify(i.value)),a.value=!0):s.value=!0};return(t,n)=>(pr(),mr("div",tpe,[$r("div",{class:W([e.disabled?"start-node-disabled":"node-wrap-box-hover","node-wrap-box start-node"]),onClick:u},[$r("div",npe,[$r("span",ope,X(i.value.workflowName?i.value.workflowName:"请选择组"),1)]),i.value.groupName?(pr(),mr("div",rpe,[$r("div",null,"组名称: "+X(i.value.groupName),1),$r("div",null,"阻塞策略: "+X(Ct(F1)[i.value.blockStrategy]),1),$r("div",null,"工作流状态: "+X(Ct(V1)[i.value.workflowStatus]),1),ipe])):(pr(),mr("div",lpe,ape))],2),Sr(I2,{disabled:e.disabled,modelValue:i.value.nodeConfig,"onUpdate:modelValue":n[0]||(n[0]=e=>i.value.nodeConfig=e)},null,8,["disabled","modelValue"]),0!==Ct(l).TYPE?(pr(),vr(Jde,{key:0,open:s.value,"onUpdate:open":n[1]||(n[1]=e=>s.value=e),modelValue:i.value,"onUpdate:modelValue":n[2]||(n[2]=e=>i.value=e)},null,8,["open","modelValue"])):Pr("",!0),Sr(qde,{open:a.value,"onUpdate:open":n[3]||(n[3]=e=>a.value=e),modelValue:r.value,"onUpdate:modelValue":n[4]||(n[4]=e=>r.value=e),onSave:c},null,8,["open","modelValue"])]))}}),[["__scopeId","data-v-314bc87b"]]),cpe={class:"workflow-design"},upe={class:"box-scale"},dpe=$r("div",{class:"end-node"},[$r("div",{class:"end-node-circle"}),$r("div",{class:"end-node-text"},"流程结束")],-1),ppe=Ln({__name:"WorkFlow",props:{modelValue:I1().def({}),disabled:k1().def(!1)},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=Ot({});return wn((()=>o.modelValue),(e=>{r.value=e}),{immediate:!0,deep:!0}),wn((()=>r.value),(e=>{n("update:modelValue",e)})),(t,n)=>(pr(),mr("div",cpe,[$r("div",upe,[Sr(spe,{modelValue:r.value,"onUpdate:modelValue":n[0]||(n[0]=e=>r.value=e),disabled:e.disabled},null,8,["modelValue","disabled"]),r.value.nodeConfig?(pr(),vr(nue,{key:0,modelValue:r.value.nodeConfig,"onUpdate:modelValue":n[1]||(n[1]=e=>r.value.nodeConfig=e),disabled:e.disabled},null,8,["modelValue","disabled"])):Pr("",!0),dpe])]))}}),hpe={style:{width:"calc(100vw - 16px)",height:"calc(100vh - 48px)"}},fpe={class:"buttons"},gpe={style:{overflow:"auto",width:"100vw",height:"calc(100vh - 48px)"}},mpe=f2(Ln({__name:"App",setup(e){const t=e=>{const t={},n=window.location.href.split("?")[1];return n&&n.split("&").forEach((e=>{const n=e.split("=")[1],o=e.split("=")[0];t[o]=n})),t[e]},n=J0(),o=t("id"),r=localStorage.getItem("Access-Token"),i=localStorage.getItem("app_namespace"),l="xkjIc2ZHZ0"===t("x1c2Hdd6"),a="kaxC8Iml"===t("x1c2Hdd6")||l;Gn((()=>{if(n.clear(),!["D7Rzd7Oe","kaxC8Iml","xkjIc2ZHZ0"].includes(t("x1c2Hdd6")))return s.value=!0,void wB.error({content:"未知错误,请联系管理员",duration:0});n.setId(o),n.setToken(r),n.setNameSpaceId(i),n.setType(a?l?2:1:0),c.value=a,o&&"undefined"!==o&&(l?f():h())}));const s=Ot(!1),c=Ot(!1),u=Ot({workflowStatus:1,blockStrategy:1,description:void 0,executorTimeout:60}),d=()=>{"undefined"===o?e1("/workflow","post",u.value).then((()=>{window.parent.postMessage({code:"SV5ucvLBhvFkOftb",data:JSON.stringify(u.value)})})):e1("/workflow","put",u.value).then((()=>{window.parent.postMessage({code:"8Rr3XPtVVAHfduQg",data:JSON.stringify(u.value)})}))},p=()=>{window.parent.postMessage({code:"kb4DO9h6WIiqFhbp"})},h=()=>{s.value=!0,e1(`/workflow/${o}`).then((e=>{u.value=e})).finally((()=>{s.value=!1}))},f=()=>{s.value=!0,e1(`/workflow/batch/${o}`).then((e=>{u.value=e})).finally((()=>{s.value=!1}))};return(e,t)=>{const n=fn("a-button"),o=fn("a-affix"),r=fn("a-spin");return pr(),mr("div",hpe,[c.value?Pr("",!0):(pr(),vr(o,{key:0,"offset-top":0},{default:sn((()=>[$r("div",fpe,[Sr(n,{type:"primary",siz:"large",onClick:d},{default:sn((()=>[kr("保存")])),_:1}),Sr(n,{siz:"large",style:{"margin-left":"16px"},onClick:p},{default:sn((()=>[kr("取消")])),_:1})])])),_:1})),$r("div",gpe,[Sr(r,{spinning:s.value},{default:sn((()=>[Sr(Ct(ppe),{class:"work-flow",modelValue:u.value,"onUpdate:modelValue":t[0]||(t[0]=e=>u.value=e),disabled:c.value},null,8,["modelValue","disabled"])])),_:1},8,["spinning"])])])}}}),[["__scopeId","data-v-3633ca56"]]);function vpe(e,t){var n;return e="object"==typeof(n=e)&&null!==n?e:Object.create(null),new Proxy(e,{get:(e,n,o)=>"key"===n?Reflect.get(e,n,o):Reflect.get(e,n,o)||Reflect.get(t,n,o)})}function bpe(e,{storage:t,serializer:n,key:o,debug:r}){try{const r=null==t?void 0:t.getItem(o);r&&e.$patch(null==n?void 0:n.deserialize(r))}catch($pe){}}function ype(e,{storage:t,serializer:n,key:o,paths:r,debug:i}){try{const i=Array.isArray(r)?function(e,t){return t.reduce(((t,n)=>{const o=n.split(".");return function(e,t,n){return t.slice(0,-1).reduce(((e,t)=>/^(__proto__)$/.test(t)?{}:e[t]=e[t]||{}),e)[t[t.length-1]]=n,e}(t,o,function(e,t){return t.reduce(((e,t)=>null==e?void 0:e[t]),e)}(e,o))}),{})}(e,r):e;t.setItem(o,n.serialize(i))}catch($pe){}}var Ope=function(e={}){return t=>{const{auto:n=!1}=e,{options:{persist:o=n},store:r,pinia:i}=t;if(!o)return;if(!(r.$id in i.state.value)){const e=i._s.get(r.$id.replace("__hot:",""));return void(e&&Promise.resolve().then((()=>e.$persist())))}const l=(Array.isArray(o)?o.map((t=>vpe(t,e))):[vpe(o,e)]).map(function(e,t){return n=>{var o;try{const{storage:r=localStorage,beforeRestore:i,afterRestore:l,serializer:a={serialize:JSON.stringify,deserialize:JSON.parse},key:s=t.$id,paths:c=null,debug:u=!1}=n;return{storage:r,beforeRestore:i,afterRestore:l,serializer:a,key:(null!=(o=e.key)?o:e=>e)("string"==typeof s?s:s(t.$id)),paths:c,debug:u}}catch($pe){return n.debug,null}}}(e,r)).filter(Boolean);r.$persist=()=>{l.forEach((e=>{ype(r.$state,e)}))},r.$hydrate=({runHooks:e=!0}={})=>{l.forEach((n=>{const{beforeRestore:o,afterRestore:i}=n;e&&(null==o||o(t)),bpe(r,n),e&&(null==i||i(t))}))},l.forEach((e=>{const{beforeRestore:n,afterRestore:o}=e;null==n||n(t),bpe(r,e),null==o||o(t),r.$subscribe(((t,n)=>{ype(n,e)}),{detached:!0})}))}}();const wpe=function(){const e=J(!0),t=e.run((()=>Ot({})));let n=[],o=[];const r=ht({install(e){Ui(r),r._a=e,e.provide(qi,r),e.config.globalProperties.$pinia=r,o.forEach((e=>n.push(e))),o=[]},use(e){return this._a?n.push(e):o.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}();wpe.use(Ope);const xpe=Ki(mpe);xpe.use(q0),xpe.use(wpe),xpe.mount("#app")}},function(){return t||(0,e[n(e)[0]])((t={exports:{}}).exports,t),t.exports});export default o();