Files
zmVault/.obsidian/plugins/obsidian-quiet-outline/main.js
T

1010 lines
604 KiB
JavaScript
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.
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let l=require(`obsidian`),u=require(`@codemirror/view`);function d(e,t){let n=Object.keys(t).map(n=>f(e,n,t[n]));return n.length===1?n[0]:function(){n.forEach(e=>e())}}function f(e,t,n){let r=e[t],i=e.hasOwnProperty(t),a=i?r:function(){return Object.getPrototypeOf(e)[t].apply(this,arguments)},o=n(a);return r&&Object.setPrototypeOf(o,r),Object.setPrototypeOf(s,o),e[t]=s,c;function s(...n){return o===a&&e[t]===s&&c(),o.apply(this,n)}function c(){e[t]===s&&(i?e[t]=a:delete e[t]),o!==a&&(o=a,Object.setPrototypeOf(s,r||Function))}}function p(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var m={},h=[],g=()=>{},_=()=>!1,v=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),y=e=>e.startsWith(`onUpdate:`),b=Object.assign,x=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},S=Object.prototype.hasOwnProperty,C=(e,t)=>S.call(e,t),w=Array.isArray,T=e=>ne(e)===`[object Map]`,E=e=>ne(e)===`[object Set]`,D=e=>typeof e==`function`,O=e=>typeof e==`string`,k=e=>typeof e==`symbol`,A=e=>typeof e==`object`&&!!e,ee=e=>(A(e)||D(e))&&D(e.then)&&D(e.catch),te=Object.prototype.toString,ne=e=>te.call(e),re=e=>ne(e).slice(8,-1),ie=e=>ne(e)===`[object Object]`,ae=e=>O(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,oe=p(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),se=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ce=/-\w/g,le=se(e=>e.replace(ce,e=>e.slice(1).toUpperCase())),ue=/\B([A-Z])/g,de=se(e=>e.replace(ue,`-$1`).toLowerCase()),fe=se(e=>e.charAt(0).toUpperCase()+e.slice(1)),pe=se(e=>e?`on${fe(e)}`:``),me=(e,t)=>!Object.is(e,t),he=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ge=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},_e=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ve=e=>{let t=O(e)?Number(e):NaN;return isNaN(t)?e:t},ye,be=()=>ye||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function xe(e){if(w(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=O(r)?Te(r):xe(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(O(e)||A(e))return e}var Se=/;(?![^(]*\))/g,Ce=/:([^]+)/,we=/\/\*[^]*?\*\//g;function Te(e){let t={};return e.replace(we,``).split(Se).forEach(e=>{if(e){let n=e.split(Ce);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ee(e){let t=``;if(O(e))t=e;else if(w(e))for(let n=0;n<e.length;n++){let r=Ee(e[n]);r&&(t+=r+` `)}else if(A(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var De=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,Oe=p(De),ke=p(De+`,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);function Ae(e){return!!e||e===``}var je=e=>!!(e&&e.__v_isRef===!0),Me=e=>O(e)?e:e==null?``:w(e)||A(e)&&(e.toString===te||!D(e.toString))?je(e)?Me(e.value):JSON.stringify(e,Ne,2):String(e),Ne=(e,t)=>je(t)?Ne(e,t.value):T(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Pe(t,r)+` =>`]=n,e),{})}:E(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Pe(e))}:k(t)?Pe(t):A(t)&&!w(t)&&!ie(t)?String(t):t,Pe=(e,t=``)=>k(e)?`Symbol(${e.description??t})`:e;function Fe(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var Ie,Le=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ie,!e&&Ie&&(this.index=(Ie.scopes||=[]).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=Ie;try{return Ie=this,e()}finally{Ie=t}}}on(){++this._on===1&&(this.prevScope=Ie,Ie=this)}off(){this._on>0&&--this._on===0&&(Ie=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Re(){return Ie}var ze,Be=new WeakSet,Ve=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ie&&Ie.active&&Ie.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Be.has(this)&&(Be.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ge(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,it(this),Je(this);let e=ze,t=et;ze=this,et=!0;try{return this.fn()}finally{Ye(this),ze=e,et=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Qe(e);this.deps=this.depsTail=void 0,it(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Be.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Xe(this)&&this.run()}get dirty(){return Xe(this)}},He=0,Ue,We;function Ge(e,t=!1){if(e.flags|=8,t){e.next=We,We=e;return}e.next=Ue,Ue=e}function Ke(){He++}function qe(){if(--He>0)return;if(We){let e=We;for(We=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ue;){let t=Ue;for(Ue=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Je(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ye(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Qe(r),$e(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Xe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ze(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ze(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===at)||(e.globalVersion=at,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Xe(e))))return;e.flags|=2;let t=e.dep,n=ze,r=et;ze=e,et=!0;try{Je(e);let n=e.fn(e._value);(t.version===0||me(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{ze=n,et=r,Ye(e),e.flags&=-3}}function Qe(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Qe(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function $e(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var et=!0,tt=[];function nt(){tt.push(et),et=!1}function rt(){let e=tt.pop();et=e===void 0?!0:e}function it(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=ze;ze=void 0;try{t()}finally{ze=e}}}var at=0,ot=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},st=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ze||!et||ze===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==ze)t=this.activeLink=new ot(ze,this),ze.deps?(t.prevDep=ze.depsTail,ze.depsTail.nextDep=t,ze.depsTail=t):ze.deps=ze.depsTail=t,ct(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=ze.depsTail,t.nextDep=void 0,ze.depsTail.nextDep=t,ze.depsTail=t,ze.deps===t&&(ze.deps=e)}return t}trigger(e){this.version++,at++,this.notify(e)}notify(e){Ke();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{qe()}}};function ct(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)ct(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var lt=new WeakMap,ut=Symbol(``),dt=Symbol(``),ft=Symbol(``);function pt(e,t,n){if(et&&ze){let t=lt.get(e);t||lt.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new st),r.map=t,r.key=n),r.track()}}function mt(e,t,n,r,i,a){let o=lt.get(e);if(!o){at++;return}let s=e=>{e&&e.trigger()};if(Ke(),t===`clear`)o.forEach(s);else{let i=w(e),a=i&&ae(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===ft||!k(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(ft)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(ut)),T(e)&&s(o.get(dt)));break;case`delete`:i||(s(o.get(ut)),T(e)&&s(o.get(dt)));break;case`set`:T(e)&&s(o.get(ut));break}}qe()}function ht(e,t){let n=lt.get(e);return n&&n.get(t)}function gt(e){let t=j(e);return t===e?t:(pt(t,`iterate`,ft),nn(e)?t:t.map(on))}function _t(e){return pt(e=j(e),`iterate`,ft),e}function vt(e,t){return tn(e)?en(e)?sn(on(t)):sn(t):on(t)}var yt={__proto__:null,[Symbol.iterator](){return bt(this,Symbol.iterator,e=>vt(this,e))},concat(...e){return gt(this).concat(...e.map(e=>w(e)?gt(e):e))},entries(){return bt(this,`entries`,e=>(e[1]=vt(this,e[1]),e))},every(e,t){return St(this,`every`,e,t,void 0,arguments)},filter(e,t){return St(this,`filter`,e,t,e=>e.map(e=>vt(this,e)),arguments)},find(e,t){return St(this,`find`,e,t,e=>vt(this,e),arguments)},findIndex(e,t){return St(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return St(this,`findLast`,e,t,e=>vt(this,e),arguments)},findLastIndex(e,t){return St(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return St(this,`forEach`,e,t,void 0,arguments)},includes(...e){return wt(this,`includes`,e)},indexOf(...e){return wt(this,`indexOf`,e)},join(e){return gt(this).join(e)},lastIndexOf(...e){return wt(this,`lastIndexOf`,e)},map(e,t){return St(this,`map`,e,t,void 0,arguments)},pop(){return Tt(this,`pop`)},push(...e){return Tt(this,`push`,e)},reduce(e,...t){return Ct(this,`reduce`,e,t)},reduceRight(e,...t){return Ct(this,`reduceRight`,e,t)},shift(){return Tt(this,`shift`)},some(e,t){return St(this,`some`,e,t,void 0,arguments)},splice(...e){return Tt(this,`splice`,e)},toReversed(){return gt(this).toReversed()},toSorted(e){return gt(this).toSorted(e)},toSpliced(...e){return gt(this).toSpliced(...e)},unshift(...e){return Tt(this,`unshift`,e)},values(){return bt(this,`values`,e=>vt(this,e))}};function bt(e,t,n){let r=_t(e),i=r[t]();return r!==e&&!nn(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var xt=Array.prototype;function St(e,t,n,r,i,a){let o=_t(e),s=o!==e&&!nn(e),c=o[t];if(c!==xt[t]){let t=c.apply(e,a);return s?on(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,vt(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function Ct(e,t,n,r){let i=_t(e),a=n;return i!==e&&(nn(e)?n.length>3&&(a=function(t,r,i){return n.call(this,t,r,i,e)}):a=function(t,r,i){return n.call(this,t,vt(e,r),i,e)}),i[t](a,...r)}function wt(e,t,n){let r=j(e);pt(r,`iterate`,ft);let i=r[t](...n);return(i===-1||i===!1)&&rn(n[0])?(n[0]=j(n[0]),r[t](...n)):i}function Tt(e,t,n=[]){nt(),Ke();let r=j(e)[t].apply(e,n);return qe(),rt(),r}var Et=p(`__proto__,__v_isRef,__isVue`),Dt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(k));function Ot(e){k(e)||(e=String(e));let t=j(this);return pt(t,`has`,e),t.hasOwnProperty(e)}var kt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?qt:Kt:i?Gt:Wt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=w(e);if(!r){let e;if(a&&(e=yt[t]))return e;if(t===`hasOwnProperty`)return Ot}let o=Reflect.get(e,t,cn(e)?e:n);if((k(t)?Dt.has(t):Et(t))||(r||pt(e,`get`,t),i))return o;if(cn(o)){let e=a&&ae(t)?o:o.value;return r&&A(e)?Qt(e):e}return A(o)?r?Qt(o):Xt(o):o}},At=class extends kt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=w(e)&&ae(t);if(!this._isShallow){let e=tn(i);if(!nn(n)&&!tn(n)&&(i=j(i),n=j(n)),!a&&cn(i)&&!cn(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:C(e,t),s=Reflect.set(e,t,n,cn(e)?e:r);return e===j(r)&&(o?me(n,i)&&mt(e,`set`,t,n,i):mt(e,`add`,t,n)),s}deleteProperty(e,t){let n=C(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&mt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!k(t)||!Dt.has(t))&&pt(e,`has`,t),n}ownKeys(e){return pt(e,`iterate`,w(e)?`length`:ut),Reflect.ownKeys(e)}},jt=class extends kt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Mt=new At,Nt=new jt,Pt=new At(!0),Ft=e=>e,It=e=>Reflect.getPrototypeOf(e);function Lt(e,t,n){return function(...r){let i=this.__v_raw,a=j(i),o=T(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?Ft:t?sn:on;return!t&&pt(a,`iterate`,c?dt:ut),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Rt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function zt(e,t){let n={get(n){let r=this.__v_raw,i=j(r),a=j(n);e||(me(n,a)&&pt(i,`get`,n),pt(i,`get`,a));let{has:o}=It(i),s=t?Ft:e?sn:on;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&pt(j(t),`iterate`,ut),t.size},has(t){let n=this.__v_raw,r=j(n),i=j(t);return e||(me(t,i)&&pt(r,`has`,t),pt(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=j(a),s=t?Ft:e?sn:on;return!e&&pt(o,`iterate`,ut),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return b(n,e?{add:Rt(`add`),set:Rt(`set`),delete:Rt(`delete`),clear:Rt(`clear`)}:{add(e){!t&&!nn(e)&&!tn(e)&&(e=j(e));let n=j(this);return It(n).has.call(n,e)||(n.add(e),mt(n,`add`,e,e)),this},set(e,n){!t&&!nn(n)&&!tn(n)&&(n=j(n));let r=j(this),{has:i,get:a}=It(r),o=i.call(r,e);o||=(e=j(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?me(n,s)&&mt(r,`set`,e,n,s):mt(r,`add`,e,n),this},delete(e){let t=j(this),{has:n,get:r}=It(t),i=n.call(t,e);i||=(e=j(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&mt(t,`delete`,e,void 0,a),o},clear(){let e=j(this),t=e.size!==0,n=e.clear();return t&&mt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Lt(r,e,t)}),n}function Bt(e,t){let n=zt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(C(n,r)&&r in t?n:t,r,i)}var Vt={get:Bt(!1,!1)},Ht={get:Bt(!1,!0)},Ut={get:Bt(!0,!1)},Wt=new WeakMap,Gt=new WeakMap,Kt=new WeakMap,qt=new WeakMap;function Jt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Yt(e){return e.__v_skip||!Object.isExtensible(e)?0:Jt(re(e))}function Xt(e){return tn(e)?e:$t(e,!1,Mt,Vt,Wt)}function Zt(e){return $t(e,!1,Pt,Ht,Gt)}function Qt(e){return $t(e,!0,Nt,Ut,Kt)}function $t(e,t,n,r,i){if(!A(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=Yt(e);if(a===0)return e;let o=i.get(e);if(o)return o;let s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function en(e){return tn(e)?en(e.__v_raw):!!(e&&e.__v_isReactive)}function tn(e){return!!(e&&e.__v_isReadonly)}function nn(e){return!!(e&&e.__v_isShallow)}function rn(e){return e?!!e.__v_raw:!1}function j(e){let t=e&&e.__v_raw;return t?j(t):e}function an(e){return!C(e,`__v_skip`)&&Object.isExtensible(e)&&ge(e,`__v_skip`,!0),e}var on=e=>A(e)?Xt(e):e,sn=e=>A(e)?Qt(e):e;function cn(e){return e?e.__v_isRef===!0:!1}function M(e){return un(e,!1)}function ln(e){return un(e,!0)}function un(e,t){return cn(e)?e:new dn(e,t)}var dn=class{constructor(e,t){this.dep=new st,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:j(e),this._value=t?e:on(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||nn(e)||tn(e);e=n?e:j(e),me(e,t)&&(this._rawValue=e,this._value=n?e:on(e),this.dep.trigger())}};function N(e){return cn(e)?e.value:e}var fn={get:(e,t,n)=>t===`__v_raw`?e:N(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return cn(i)&&!cn(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function pn(e){return en(e)?e:new Proxy(e,fn)}var mn=class{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=j(e);let r=!0,i=e;if(!w(e)||!ae(String(t)))do r=!rn(i)||nn(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=N(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&cn(this._raw[this._key])){let t=this._object[this._key];if(cn(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return ht(this._raw,this._key)}},hn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function P(e,t,n){return cn(e)?e:D(e)?new hn(e):A(e)&&arguments.length>1?gn(e,t,n):M(e)}function gn(e,t,n){return new mn(e,t,n)}var _n=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new st(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=at-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ze!==this)return Ge(this,!0),!0}get value(){let e=this.dep.track();return Ze(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function vn(e,t,n=!1){let r,i;return D(e)?r=e:(r=e.get,i=e.set),new _n(r,i,n)}var yn={},bn=new WeakMap,xn=void 0;function Sn(e,t=!1,n=xn){if(n){let t=bn.get(n);t||bn.set(n,t=[]),t.push(e)}}function Cn(e,t,n=m){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>i?e:nn(e)||i===!1||i===0?wn(e,1):wn(e),u,d,f,p,h=!1,_=!1;if(cn(e)?(d=()=>e.value,h=nn(e)):en(e)?(d=()=>l(e),h=!0):w(e)?(_=!0,h=e.some(e=>en(e)||nn(e)),d=()=>e.map(e=>{if(cn(e))return e.value;if(en(e))return l(e);if(D(e))return c?c(e,2):e()})):d=D(e)?t?c?()=>c(e,2):e:()=>{if(f){nt();try{f()}finally{rt()}}let t=xn;xn=u;try{return c?c(e,3,[p]):e(p)}finally{xn=t}}:g,t&&i){let e=d,t=i===!0?1/0:i;d=()=>wn(e(),t)}let v=Re(),y=()=>{u.stop(),v&&v.active&&x(v.effects,u)};if(a&&t){let e=t;t=(...t)=>{e(...t),y()}}let b=_?Array(e.length).fill(yn):yn,S=e=>{if(!(!(u.flags&1)||!u.dirty&&!e))if(t){let e=u.run();if(i||h||(_?e.some((e,t)=>me(e,b[t])):me(e,b))){f&&f();let n=xn;xn=u;try{let n=[e,b===yn?void 0:_&&b[0]===yn?[]:b,p];b=e,c?c(t,3,n):t(...n)}finally{xn=n}}}else u.run()};return s&&s(S),u=new Ve(d),u.scheduler=o?()=>o(S,!1):S,p=e=>Sn(e,!1,u),f=u.onStop=()=>{let e=bn.get(u);if(e){if(c)c(e,4);else for(let t of e)t();bn.delete(u)}},t?r?S(!0):b=u.run():o?o(S.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function wn(e,t=1/0,n){if(t<=0||!A(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,cn(e))wn(e.value,t,n);else if(w(e))for(let r=0;r<e.length;r++)wn(e[r],t,n);else if(E(e)||T(e))e.forEach(e=>{wn(e,t,n)});else if(ie(e)){for(let r in e)wn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&wn(e[r],t,n)}return e}function Tn(e,t,n,r){try{return r?e(...r):e()}catch(e){Dn(e,t,n)}}function En(e,t,n,r){if(D(e)){let i=Tn(e,t,n,r);return i&&ee(i)&&i.catch(e=>{Dn(e,t,n)}),i}if(w(e)){let i=[];for(let a=0;a<e.length;a++)i.push(En(e[a],t,n,r));return i}}function Dn(e,t,n,r=!0){let i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||m;if(t){let r=t.parent,i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,o)===!1)return}r=r.parent}if(a){nt(),Tn(a,null,10,[e,i,o]),rt();return}}On(e,n,i,r,o)}function On(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var kn=[],An=-1,jn=[],Mn=null,Nn=0,Pn=Promise.resolve(),Fn=null;function In(e){let t=Fn||Pn;return e?t.then(this?e.bind(this):e):t}function Ln(e){let t=An+1,n=kn.length;for(;t<n;){let r=t+n>>>1,i=kn[r],a=Un(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Rn(e){if(!(e.flags&1)){let t=Un(e),n=kn[kn.length-1];!n||!(e.flags&2)&&t>=Un(n)?kn.push(e):kn.splice(Ln(t),0,e),e.flags|=1,zn()}}function zn(){Fn||=Pn.then(Wn)}function Bn(e){w(e)?jn.push(...e):Mn&&e.id===-1?Mn.splice(Nn+1,0,e):e.flags&1||(jn.push(e),e.flags|=1),zn()}function Vn(e,t,n=An+1){for(;n<kn.length;n++){let t=kn[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;kn.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function Hn(e){if(jn.length){let e=[...new Set(jn)].sort((e,t)=>Un(e)-Un(t));if(jn.length=0,Mn){Mn.push(...e);return}for(Mn=e,Nn=0;Nn<Mn.length;Nn++){let e=Mn[Nn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}Mn=null,Nn=0}}var Un=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Wn(e){try{for(An=0;An<kn.length;An++){let e=kn[An];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Tn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;An<kn.length;An++){let e=kn[An];e&&(e.flags&=-2)}An=-1,kn.length=0,Hn(e),Fn=null,(kn.length||jn.length)&&Wn(e)}}var Gn=null,Kn=null;function qn(e){let t=Gn;return Gn=e,Kn=e&&e.type.__scopeId||null,t}function Jn(e,t=Gn,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&ka(-1);let i=qn(t),a;try{a=e(...n)}finally{qn(i),r._d&&ka(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Yn(e,t){if(Gn===null)return e;let n=ho(Gn),r=e.dirs||=[];for(let e=0;e<t.length;e++){let[i,a,o,s=m]=t[e];i&&(D(i)&&(i={mounted:i,updated:i}),i.deep&&wn(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:o,modifiers:s}))}return e}function Xn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(nt(),En(c,n,8,[e.el,s,e,t]),rt())}}function Zn(e,t){if(Qa){let n=Qa.provides,r=Qa.parent&&Qa.parent.provides;r===n&&(n=Qa.provides=Object.create(r)),n[e]=t}}function Qn(e,t,n=!1){let r=$a();if(r||Ai){let i=Ai?Ai._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&D(t)?t.call(r&&r.proxy):t}}var $n=Symbol.for(`v-scx`),er=()=>Qn($n);function tr(e,t){return rr(e,null,t)}function nr(e,t,n){return rr(e,t,n)}function rr(e,t,n=m){let{immediate:r,deep:i,flush:a,once:o}=n,s=b({},n),c=t&&r||!t&&a!==`post`,l;if(ao){if(a===`sync`){let e=er();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=g,e.resume=g,e.pause=g,e}}let u=Qa;s.call=(e,t,n)=>En(e,u,t,n);let d=!1;a===`post`?s.scheduler=e=>{sa(e,u&&u.suspense)}:a!==`sync`&&(d=!0,s.scheduler=(e,t)=>{t?e():Rn(e)}),s.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let f=Cn(e,t,s);return ao&&(l?l.push(f):c&&f()),f}function ir(e,t,n){let r=this.proxy,i=O(e)?e.includes(`.`)?ar(r,e):()=>r[e]:e.bind(r,r),a;D(t)?a=t:(a=t.handler,n=t);let o=no(this),s=rr(i,a.bind(r),n);return o(),s}function ar(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var or=Symbol(`_vte`),sr=e=>e.__isTeleport,cr=e=>e&&(e.disabled||e.disabled===``),lr=e=>e&&(e.defer||e.defer===``),ur=e=>typeof SVGElement<`u`&&e instanceof SVGElement,dr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,fr=(e,t)=>{let n=e&&e.to;return O(n)?t?t(n):null:n},pr={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g}}=l,_=cr(t.props),{shapeFlag:v,children:y,dynamicChildren:b}=t;if(e==null){let e=t.el=h(``),l=t.anchor=h(``);p(e,n,r),p(l,n,r);let d=(e,t)=>{v&16&&u(y,e,t,i,a,o,s,c)},f=()=>{let e=t.target=fr(t.props,m),n=vr(e,t,h,p);e&&(o!==`svg`&&ur(e)?o=`svg`:o!==`mathml`&&dr(e)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(e),_||(d(e,n),_r(t,!1)))};_&&(d(n,l),_r(t,!0)),lr(t.props)?(t.el.__isMounted=!1,sa(()=>{f(),delete t.el.__isMounted},a)):f()}else{if(lr(t.props)&&e.el.__isMounted===!1){sa(()=>{pr.process(e,t,n,r,i,a,o,s,c,l)},a);return}t.el=e.el,t.targetStart=e.targetStart;let u=t.anchor=e.anchor,p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=cr(e.props),v=g?n:p,y=g?u:h;if(o===`svg`||ur(p)?o=`svg`:(o===`mathml`||dr(p))&&(o=`mathml`),b?(f(e.dynamicChildren,b,v,i,a,o,s),pa(e,t,!0)):c||d(e,t,v,y,i,a,o,s,!1),_)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):mr(t,n,u,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=fr(t.props,m);e&&mr(t,e,null,l,0)}else g&&mr(t,p,h,l,1);_r(t,_)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e;if(d&&(i(l),i(u)),a&&i(c),o&16){let e=a||!cr(f);for(let i=0;i<s.length;i++){let a=s[i];r(a,t,n,e,!!a.dynamicChildren)}}},move:mr,hydrate:hr};function mr(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),(!d||cr(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function hr(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,t,c,l){t.anchor=d(o(e),t,s(e),n,r,i,a),t.targetStart=c,t.targetAnchor=l}let p=t.target=fr(t.props,c),m=cr(t.props);if(p){let s=p._lpa||p.firstChild;if(t.shapeFlag&16)if(m)f(e,t,s,s&&o(s));else{t.anchor=o(e);let c=s;for(;c;){if(c&&c.nodeType===8){if(c.data===`teleport start anchor`)t.targetStart=c;else if(c.data===`teleport anchor`){t.targetAnchor=c,p._lpa=t.targetAnchor&&o(t.targetAnchor);break}}c=o(c)}t.targetAnchor||vr(p,t,u,l),d(s&&o(s),t,p,n,r,i,a)}_r(t,m)}else m&&t.shapeFlag&16&&f(e,t,e,o(e));return t.anchor&&o(t.anchor)}var gr=pr;function _r(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function vr(e,t,n,r){let i=t.targetStart=n(``),a=t.targetAnchor=n(``);return i[or]=a,e&&(r(i,e),r(a,e)),a}var yr=Symbol(`_leaveCb`),br=Symbol(`_enterCb`);function xr(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Yr(()=>{e.isMounted=!0}),Qr(()=>{e.isUnmounting=!0}),e}var Sr=[Function,Array],Cr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Sr,onEnter:Sr,onAfterEnter:Sr,onEnterCancelled:Sr,onBeforeLeave:Sr,onLeave:Sr,onAfterLeave:Sr,onLeaveCancelled:Sr,onBeforeAppear:Sr,onAppear:Sr,onAfterAppear:Sr,onAppearCancelled:Sr},wr=e=>{let t=e.subTree;return t.component?wr(t.component):t},Tr={name:`BaseTransition`,props:Cr,setup(e,{slots:t}){let n=$a(),r=xr();return()=>{let i=t.default&&Nr(t.default(),!0);if(!i||!i.length)return;let a=Er(i),o=j(e),{mode:s}=o;if(r.isLeaving)return Ar(a);let c=jr(a);if(!c)return Ar(a);let l=kr(c,o,r,n,e=>l=e);c.type!==Sa&&Mr(c,l);let u=n.subTree&&jr(n.subTree);if(u&&u.type!==Sa&&!Pa(u,c)&&wr(n).type!==Sa){let e=kr(u,o,r,n);if(Mr(u,e),s===`out-in`&&c.type!==Sa)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Ar(a);s===`in-out`&&c.type!==Sa?e.delayLeave=(e,t,n)=>{let i=Or(r,u);i[String(u.key)]=u,e[yr]=()=>{t(),e[yr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function Er(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Sa){t=n;break}}return t}var Dr=Tr;function Or(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function kr(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:m,onLeaveCancelled:h,onBeforeAppear:g,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),x=Or(n,e),S=(e,t)=>{e&&En(e,r,9,t)},C=(e,t)=>{let n=t[1];S(e,t),w(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=g||c;else return;t[yr]&&t[yr](!0);let i=x[b];i&&Pa(e,i)&&i.el[yr]&&i.el[yr](),S(r,[t])},enter(e){let t=l,r=u,i=d;if(!n.isMounted)if(a)t=_||l,r=v||u,i=y||d;else return;let o=!1,s=e[br]=t=>{o||(o=!0,S(t?i:r,[e]),T.delayedLeave&&T.delayedLeave(),e[br]=void 0)};t?C(t,[e,s]):s()},leave(t,r){let i=String(e.key);if(t[br]&&t[br](!0),n.isUnmounting)return r();S(f,[t]);let a=!1,o=t[yr]=n=>{a||(a=!0,r(),S(n?h:m,[t]),t[yr]=void 0,x[i]===e&&delete x[i])};x[i]=e,p?C(p,[t,o]):o()},clone(e){let a=kr(e,t,n,r,i);return i&&i(a),a}};return T}function Ar(e){if(Vr(e))return e=Va(e),e.children=null,e}function jr(e){if(!Vr(e))return sr(e.type)&&e.children?Er(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&D(n.default))return n.default()}}function Mr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Mr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Nr(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===ba?(o.patchFlag&128&&i++,r=r.concat(Nr(o.children,t,s))):(t||o.type!==Sa)&&r.push(s==null?o:Va(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function F(e,t){return D(e)?b({name:e.name},t,{setup:e}):e}function Pr(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}var Fr=new WeakMap;function Ir(e,t,n,r,i=!1){if(w(e)){e.forEach((e,a)=>Ir(e,t&&(w(t)?t[a]:t),n,r,i));return}if(Br(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Ir(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?ho(r.component):r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===m?s.refs={}:s.refs,d=s.setupState,f=j(d),p=d===m?_:e=>C(f,e),h=e=>!0;if(l!=null&&l!==c){if(Lr(t),O(l))u[l]=null,p(l)&&(d[l]=null);else if(cn(l)){h(l)&&(l.value=null);let e=t;e.k&&(u[e.k]=null)}}if(D(c))Tn(c,s,12,[o,u]);else{let t=O(c),r=cn(c);if(t||r){let s=()=>{if(e.f){let n=t?p(c)?d[c]:u[c]:h(c)||!e.k?c.value:u[e.k];if(i)w(n)&&x(n,a);else if(w(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],p(c)&&(d[c]=u[c]);else{let t=[a];h(c)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,p(c)&&(d[c]=o)):r&&(h(c)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){let t=()=>{s(),Fr.delete(e)};t.id=-1,Fr.set(e,t),sa(t,n)}else Lr(e),s()}}}function Lr(e){let t=Fr.get(e);t&&(t.flags|=8,Fr.delete(e))}var Rr=be().requestIdleCallback||(e=>setTimeout(e,1)),zr=be().cancelIdleCallback||(e=>clearTimeout(e)),Br=e=>!!e.type.__asyncLoader,Vr=e=>e.type.__isKeepAlive;function Hr(e,t){Wr(e,`a`,t)}function Ur(e,t){Wr(e,`da`,t)}function Wr(e,t,n=Qa){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Kr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Vr(e.parent.vnode)&&Gr(r,t,n,e),e=e.parent}}function Gr(e,t,n,r){let i=Kr(t,e,r,!0);$r(()=>{x(r[t],i)},n)}function Kr(e,t,n=Qa,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{nt();let i=no(n),a=En(t,n,e,r);return i(),rt(),a};return r?i.unshift(a):i.push(a),a}}var qr=e=>(t,n=Qa)=>{(!ao||e===`sp`)&&Kr(e,(...e)=>t(...e),n)},Jr=qr(`bm`),Yr=qr(`m`),Xr=qr(`bu`),Zr=qr(`u`),Qr=qr(`bum`),$r=qr(`um`),ei=qr(`sp`),ti=qr(`rtg`),ni=qr(`rtc`);function ri(e,t=Qa){Kr(`ec`,e,t)}var ii=Symbol.for(`v-ndc`);function ai(e,t,n={},r,i){if(Gn.ce||Gn.parent&&Br(Gn.parent)&&Gn.parent.ce){let e=Object.keys(n).length>0;return t!==`default`&&(n.name=t),Ea(),Ma(ba,null,[Ra(`slot`,n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),Ea();let o=a&&oi(a(n)),s=n.key||o&&o.key,c=Ma(ba,{key:(s&&!k(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function oi(e){return e.some(e=>Na(e)?!(e.type===Sa||e.type===ba&&!oi(e.children)):!0)?e:null}var si=e=>e?io(e)?ho(e):si(e.parent):null,ci=b(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=>si(e.parent),$root:e=>si(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>_i(e),$forceUpdate:e=>e.f||=()=>{Rn(e.update)},$nextTick:e=>e.n||=In.bind(e.proxy),$watch:e=>ir.bind(e)}),li=(e,t)=>e!==m&&!e.__isScriptSetup&&C(e,t),ui={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e;if(t[0]!==`$`){let e=o[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if(li(r,t))return o[t]=1,r[t];else if(i!==m&&C(i,t))return o[t]=2,i[t];else if(C(a,t))return o[t]=3,a[t];else if(n!==m&&C(n,t))return o[t]=4,n[t];else fi&&(o[t]=0)}let l=ci[t],u,d;if(l)return t===`$attrs`&&pt(e.attrs,`get`,``),l(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(n!==m&&C(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,C(d,t))return d[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return li(i,t)?(i[t]=n,!0):r!==m&&C(r,t)?(r[t]=n,!0):C(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||e!==m&&s[0]!==`$`&&C(e,s)||li(t,s)||C(a,s)||C(r,s)||C(ci,s)||C(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?C(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function di(e){return w(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var fi=!0;function pi(e){let t=_i(e),n=e.proxy,r=e.ctx;fi=!1,t.beforeCreate&&hi(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:h,deactivated:_,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:x,render:S,renderTracked:C,renderTriggered:T,errorCaptured:E,serverPrefetch:O,expose:k,inheritAttrs:ee,components:te,directives:ne,filters:re}=t;if(l&&mi(l,r,null),o)for(let e in o){let t=o[e];D(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);A(t)&&(e.data=Xt(t))}if(fi=!0,a)for(let e in a){let t=a[e],i=I({get:D(t)?t.bind(n,n):D(t.get)?t.get.bind(n,n):g,set:!D(t)&&D(t.set)?t.set.bind(n):g});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(let e in s)gi(s[e],r,n,e);if(c){let e=D(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{Zn(t,e[t])})}u&&hi(u,e,`c`);function ie(e,t){w(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(ie(Jr,d),ie(Yr,f),ie(Xr,p),ie(Zr,m),ie(Hr,h),ie(Ur,_),ie(ri,E),ie(ni,C),ie(ti,T),ie(Qr,y),ie($r,x),ie(ei,O),w(k))if(k.length){let t=e.exposed||={};k.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};S&&e.render===g&&(e.render=S),ee!=null&&(e.inheritAttrs=ee),te&&(e.components=te),ne&&(e.directives=ne),O&&Pr(e)}function mi(e,t,n=g){for(let n in w(e)&&(e=Si(e)),e){let r=e[n],i;i=A(r)?`default`in r?Qn(r.from||n,r.default,!0):Qn(r.from||n):Qn(r),cn(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function hi(e,t,n){En(w(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function gi(e,t,n,r){let i=r.includes(`.`)?ar(n,r):()=>n[r];if(O(e)){let n=t[e];D(n)&&nr(i,n)}else if(D(e))nr(i,e.bind(n));else if(A(e))if(w(e))e.forEach(e=>gi(e,t,n,r));else{let r=D(e.handler)?e.handler.bind(n):t[e.handler];D(r)&&nr(i,r,e)}}function _i(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>vi(c,e,o,!0)),vi(c,t,o)),A(t)&&a.set(t,c),c}function vi(e,t,n,r=!1){let{mixins:i,extends:a}=t;for(let o in a&&vi(e,a,n,!0),i&&i.forEach(t=>vi(e,t,n,!0)),t)if(!(r&&o===`expose`)){let r=yi[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}var yi={data:bi,props:Ti,emits:Ti,methods:wi,computed:wi,beforeCreate:Ci,created:Ci,beforeMount:Ci,mounted:Ci,beforeUpdate:Ci,updated:Ci,beforeDestroy:Ci,beforeUnmount:Ci,destroyed:Ci,unmounted:Ci,activated:Ci,deactivated:Ci,errorCaptured:Ci,serverPrefetch:Ci,components:wi,directives:wi,watch:Ei,provide:bi,inject:xi};function bi(e,t){return t?e?function(){return b(D(e)?e.call(this,this):e,D(t)?t.call(this,this):t)}:t:e}function xi(e,t){return wi(Si(e),Si(t))}function Si(e){if(w(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ci(e,t){return e?[...new Set([].concat(e,t))]:t}function wi(e,t){return e?b(Object.create(null),e,t):t}function Ti(e,t){return e?w(e)&&w(t)?[...new Set([...e,...t])]:b(Object.create(null),di(e),di(t??{})):t}function Ei(e,t){if(!e)return t;if(!t)return e;let n=b(Object.create(null),e);for(let r in t)n[r]=Ci(e[r],t[r]);return n}function Di(){return{app:null,config:{isNativeTag:_,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}}var Oi=0;function ki(e,t){return function(n,r=null){D(n)||(n=b({},n)),r!=null&&!A(r)&&(r=null);let i=Di(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:Oi++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:_o,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&D(e.install)?(a.add(e),e.install(c,...t)):D(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||Ra(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,ho(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(En(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=Ai;Ai=c;try{return e()}finally{Ai=t}}};return c}}var Ai=null,ji=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${le(t)}Modifiers`]||e[`${de(t)}Modifiers`];function Mi(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||m,i=n,a=t.startsWith(`update:`),o=a&&ji(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>O(e)?e.trim():e)),o.number&&(i=n.map(_e)));let s,c=r[s=pe(t)]||r[s=pe(le(t))];!c&&a&&(c=r[s=pe(de(t))]),c&&En(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,En(l,e,6,i)}}var Ni=new WeakMap;function Pi(e,t,n=!1){let r=n?Ni:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!D(e)){let r=e=>{let n=Pi(e,t,!0);n&&(s=!0,b(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(A(e)&&r.set(e,null),null):(w(a)?a.forEach(e=>o[e]=null):b(o,a),A(e)&&r.set(e,o),o)}function Fi(e,t){return!e||!v(t)?!1:(t=t.slice(2).replace(/Once$/,``),C(e,t[0].toLowerCase()+t.slice(1))||C(e,de(t))||C(e,t))}function Ii(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,g=qn(e),_,v;try{if(n.shapeFlag&4){let e=i||r,t=e;_=Wa(l.call(t,e,u,d,p,f,m)),v=s}else{let e=t;_=Wa(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),v=t.props?s:Li(s)}}catch(t){wa.length=0,Dn(t,e,1),_=Ra(Sa)}let b=_;if(v&&h!==!1){let e=Object.keys(v),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(y)&&(v=Ri(v,a)),b=Va(b,v,!1,!0))}return n.dirs&&(b=Va(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Mr(b,n.transition),_=b,qn(g),_}var Li=e=>{let t;for(let n in e)(n===`class`||n===`style`||v(n))&&((t||={})[n]=e[n]);return t},Ri=(e,t)=>{let n={};for(let r in e)(!y(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function zi(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Bi(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(o[n]!==r[n]&&!Fi(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?Bi(r,o,l):!0:!!o;return!1}function Bi(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(t[a]!==e[a]&&!Fi(n,a))return!0}return!1}function Vi({vnode:e,parent:t},n){for(;t;){let r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}var Hi={},Ui=()=>Object.create(Hi),Wi=e=>Object.getPrototypeOf(e)===Hi;function Gi(e,t,n,r=!1){let i={},a=Ui();for(let n in e.propsDefaults=Object.create(null),qi(e,t,i,a),e.propsOptions[0])n in i||(i[n]=void 0);n?e.props=r?i:Zt(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Ki(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=j(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(Fi(e.emitsOptions,o))continue;let u=t[o];if(c)if(C(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=le(o);i[t]=Ji(c,s,t,u,e,!1)}else u!==a[o]&&(a[o]=u,l=!0)}}}else{qi(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!C(t,a)&&((r=de(a))===a||!C(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=Ji(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!C(t,e))&&(delete a[e],l=!0)}l&&mt(e.attrs,`set`,``)}function qi(e,t,n,r){let[i,a]=e.propsOptions,o=!1,s;if(t)for(let c in t){if(oe(c))continue;let l=t[c],u;i&&C(i,u=le(c))?!a||!a.includes(u)?n[u]=l:(s||={})[u]=l:Fi(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(a){let t=j(n),r=s||m;for(let o=0;o<a.length;o++){let s=a[o];n[s]=Ji(i,t,s,r[s],e,!C(r,s))}}return o}function Ji(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=C(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&D(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=no(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===de(n))&&(r=!0))}return r}var Yi=new WeakMap;function Xi(e,t,n=!1){let r=n?Yi:t.propsCache,i=r.get(e);if(i)return i;let a=e.props,o={},s=[],c=!1;if(!D(e)){let r=e=>{c=!0;let[n,r]=Xi(e,t,!0);b(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return A(e)&&r.set(e,h),h;if(w(a))for(let e=0;e<a.length;e++){let t=le(a[e]);Zi(t)&&(o[t]=m)}else if(a)for(let e in a){let t=le(e);if(Zi(t)){let n=a[e],r=o[t]=w(n)||D(n)?{type:n}:b({},n),i=r.type,c=!1,l=!0;if(w(i))for(let e=0;e<i.length;++e){let t=i[e],n=D(t)&&t.name;if(n===`Boolean`){c=!0;break}else n===`String`&&(l=!1)}else c=D(i)&&i.name===`Boolean`;r[0]=c,r[1]=l,(c||C(r,`default`))&&s.push(t)}}let l=[o,s];return A(e)&&r.set(e,l),l}function Zi(e){return e[0]!==`$`&&!oe(e)}var Qi=e=>e===`_`||e===`_ctx`||e===`$stable`,$i=e=>w(e)?e.map(Wa):[Wa(e)],ea=(e,t,n)=>{if(t._n)return t;let r=Jn((...e)=>$i(t(...e)),n);return r._c=!1,r},ta=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Qi(n))continue;let i=e[n];if(D(i))t[n]=ea(n,i,r);else if(i!=null){let e=$i(i);t[n]=()=>e}}},na=(e,t)=>{let n=$i(t);e.slots.default=()=>n},ra=(e,t,n)=>{for(let r in t)(n||!Qi(r))&&(e[r]=t[r])},ia=(e,t,n)=>{let r=e.slots=Ui();if(e.vnode.shapeFlag&32){let e=t._;e?(ra(r,t,n),n&&ge(r,`_`,e,!0)):ta(t,r)}else t&&na(e,t)},aa=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=m;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:ra(i,t,n):(a=!t.$stable,ta(t,i)),o=t}else t&&(na(e,t),o={default:1});if(a)for(let e in i)!Qi(e)&&o[e]==null&&delete i[e]};function oa(){}var sa=ya;function ca(e){return la(e)}function la(e,t){let n=be();n.__VUE__=!0;let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=g,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Pa(e,t)&&(r=_e(e),de(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case xa:y(e,t,n,r);break;case Sa:b(e,t,n,r);break;case Ca:e??x(t,n,r,o);break;case ba:ee(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?te(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,xe)}u!=null&&i?Ir(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&Ir(e.ref,null,a,e,!0)},y=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},b=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=f(e),r(e,n,i),e=a;r(t,n,i)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),i(e),e=n;i(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),O(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&D(e.children,f,null,i,s,ua(e,c),l,d),_&&Xn(e,null,i,`created`),E(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!oe(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&Ja(p,i,e)}_&&Xn(e,null,i,`beforeMount`);let v=fa(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&sa(()=>{p&&Ja(p,i,e),v&&g.enter(f),_&&Xn(e,null,i,`mounted`)},s)},E=(e,t,n,r,i)=>{if(n&&p(e,n),r)for(let t=0;t<r.length;t++)p(e,r[t]);if(i){let n=i.subTree;if(t===n||va(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;E(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},D=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++)v(null,e[l]=s?Ga(e[l]):Wa(e[l]),t,n,r,i,a,o,s)},O=(e,t,n,r,i,o,s)=>{let c=t.el=e.el,{patchFlag:l,dynamicChildren:d,dirs:f}=t;l|=e.patchFlag&16;let p=e.props||m,h=t.props||m,g;if(n&&da(n,!1),(g=h.onVnodeBeforeUpdate)&&Ja(g,n,t,e),f&&Xn(t,e,n,`beforeUpdate`),n&&da(n,!0),(p.innerHTML&&h.innerHTML==null||p.textContent&&h.textContent==null)&&u(c,``),d?k(e.dynamicChildren,d,c,n,r,ua(t,i),o):s||se(e,t,c,null,n,r,ua(t,i),o,!1),l>0){if(l&16)A(c,p,h,n,i);else if(l&2&&p.class!==h.class&&a(c,`class`,null,h.class,i),l&4&&a(c,`style`,p.style,h.style,i),l&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],o=p[r],s=h[r];(s!==o||r===`value`)&&a(c,r,o,s,i,n)}}l&1&&e.children!==t.children&&u(c,t.children)}else !s&&d==null&&A(c,p,h,n,i);((g=h.onVnodeUpdated)||f)&&sa(()=>{g&&Ja(g,n,t,e),f&&Xn(t,e,n,`updated`)},r)},k=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s];v(c,l,c.el&&(c.type===ba||!Pa(c,l)||c.shapeFlag&198)?d(c.el):n,null,r,i,a,o,!0)}},A=(e,t,n,r,i)=>{if(t!==n){if(t!==m)for(let o in t)!oe(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(oe(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},ee=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),D(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(k(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&pa(e,t,!0)):se(e,t,n,f,a,o,c,l,u)},te=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):ne(t,n,r,i,a,o,c):re(e,t,c)},ne=(e,t,n,r,i,a,o)=>{let s=e.component=Za(e,r,i);if(Vr(e)&&(s.ctx.renderer=xe),oo(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ie,o),!e.el){let r=s.subTree=Ra(Sa);b(null,r,t,n),e.placeholder=r.el}}else ie(s,e,t,n,i,a,o)},re=(e,t,n)=>{let r=t.component=e.component;if(zi(e,t,n))if(r.asyncDep&&!r.asyncResolved){ae(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},ie=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:c,vnode:l}=e;{let n=ha(e);if(n){t&&(t.el=l.el,ae(e,t,o)),n.asyncDep.then(()=>{e.isUnmounted||s()});return}}let u=t,f;da(e,!1),t?(t.el=l.el,ae(e,t,o)):t=l,n&&he(n),(f=t.props&&t.props.onVnodeBeforeUpdate)&&Ja(f,c,t,l),da(e,!0);let p=Ii(e),m=e.subTree;e.subTree=p,v(m,p,d(m.el),_e(m),e,i,a),t.el=p.el,u===null&&Vi(e,p.el),r&&sa(r,i),(f=t.props&&t.props.onVnodeUpdated)&&sa(()=>Ja(f,c,t,l),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Br(t);if(da(e,!1),l&&he(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Ja(o,d,t),da(e,!0),s&&Ce){let t=()=>{e.subTree=Ii(e),Ce(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._def.shadowRoot!==!1&&f.ce._injectChildStyle(p);let o=e.subTree=Ii(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&sa(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;sa(()=>Ja(o,d,e),i)}(t.shapeFlag&256||d&&Br(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&sa(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ve(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Rn(u),da(e,!0),l()},ae=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Ki(e,t.props,r,n),aa(e,t.children,n),nt(),Vn(e),rt()},se=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){le(l,f,n,r,i,a,o,s,c);return}else if(p&256){ce(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&ge(l,i,a),f!==l&&u(n,f)):d&16?m&16?le(l,f,n,r,i,a,o,s,c):ge(l,i,a,!0):(d&8&&u(n,``),m&16&&D(f,n,r,i,a,o,s,c))},ce=(e,t,n,r,i,a,o,s,c)=>{e||=h,t||=h;let l=e.length,u=t.length,d=Math.min(l,u),f;for(f=0;f<d;f++){let r=t[f]=c?Ga(t[f]):Wa(t[f]);v(e[f],r,n,null,i,a,o,s,c)}l>u?ge(e,i,a,!0,!1,d):D(t,n,r,i,a,o,s,c,d)},le=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,f=u-1;for(;l<=d&&l<=f;){let r=e[l],u=t[l]=c?Ga(t[l]):Wa(t[l]);if(Pa(r,u))v(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=f;){let r=e[d],l=t[f]=c?Ga(t[f]):Wa(t[f]);if(Pa(r,l))v(r,l,n,null,i,a,o,s,c);else break;d--,f--}if(l>d){if(l<=f){let e=f+1,d=e<u?t[e].el:r;for(;l<=f;)v(null,t[l]=c?Ga(t[l]):Wa(t[l]),n,d,i,a,o,s,c),l++}}else if(l>f)for(;l<=d;)de(e[l],i,a,!0),l++;else{let p=l,m=l,g=new Map;for(l=m;l<=f;l++){let e=t[l]=c?Ga(t[l]):Wa(t[l]);e.key!=null&&g.set(e.key,l)}let _,y=0,b=f-m+1,x=!1,S=0,C=Array(b);for(l=0;l<b;l++)C[l]=0;for(l=p;l<=d;l++){let r=e[l];if(y>=b){de(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=m;_<=f;_++)if(C[_-m]===0&&Pa(r,t[_])){u=_;break}u===void 0?de(r,i,a,!0):(C[u-m]=l+1,u>=S?S=u:x=!0,v(r,t[u],n,null,i,a,o,s,c),y++)}let w=x?ma(C):h;for(_=w.length-1,l=b-1;l>=0;l--){let e=m+l,d=t[e],f=t[e+1],p=e+1<u?f.el||_a(f):r;C[l]===0?v(null,d,n,p,i,a,o,s,c):x&&(_<0||l!==w[_]?ue(d,n,p,2):_--)}}},ue=(e,t,n,a,o=null)=>{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){ue(e.component.subTree,t,n,a);return}if(d&128){e.suspense.move(t,n,a);return}if(d&64){c.move(e,t,n,xe);return}if(c===ba){r(s,t,n);for(let e=0;e<u.length;e++)ue(u[e],t,n,a);r(e.anchor,t,n);return}if(c===Ca){S(e,t,n);return}if(a!==2&&d&1&&l)if(a===0)l.beforeEnter(s),r(s,t,n),sa(()=>l.enter(s),o);else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{s._isLeaving&&s[yr](!0),a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}else r(s,t,n)},de=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p}=e;if(d===-2&&(i=!1),s!=null&&(nt(),Ir(s,null,n,e,!0),rt()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let m=u&1&&f,h=!Br(e),g;if(h&&(g=o&&o.onVnodeBeforeUnmount)&&Ja(g,t,e),u&6)me(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}m&&Xn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,xe,r):l&&!l.hasOnce&&(a!==ba||d>0&&d&64)?ge(l,t,n,!1,!0):(a===ba&&d&384||!i&&u&16)&&ge(c,t,n),r&&fe(e)}(h&&(g=o&&o.onVnodeUnmounted)||m)&&sa(()=>{g&&Ja(g,t,e),m&&Xn(e,null,t,`unmounted`)},n)},fe=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===ba){pe(n,r);return}if(t===Ca){C(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},pe=(e,t)=>{let n;for(;e!==t;)n=f(e),i(e),e=n;i(t)},me=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;ga(c),ga(l),r&&he(r),i.stop(),a&&(a.flags|=8,de(o,e,t,n)),s&&sa(s,t),sa(()=>{e.isUnmounted=!0},t)},ge=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)de(e[o],t,n,r,i)},_e=e=>{if(e.shapeFlag&6)return _e(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=f(e.anchor||e.el),n=t&&t[or];return n?f(n):t},ve=!1,ye=(e,t,n)=>{let r;e==null?t._vnode&&(de(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ve||=(ve=!0,Vn(r),Hn(),!1)},xe={p:v,um:de,m:ue,r:fe,mt:ne,mc:D,pc:se,pbc:k,n:_e,o:e},Se,Ce;return t&&([Se,Ce]=t(xe)),{render:ye,hydrate:Se,createApp:ki(ye,Se)}}function ua({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function da({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function fa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function pa(e,t,n=!1){let r=e.children,i=t.children;if(w(r)&&w(i))for(let t=0;t<r.length;t++){let a=r[t],o=i[t];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[t]=Ga(i[t]),o.el=a.el),!n&&o.patchFlag!==-2&&pa(a,o)),o.type===xa&&(o.patchFlag===-1?o.__elIndex=t+(e.type===ba?1:0):o.el=a.el),o.type===Sa&&!o.el&&(o.el=a.el)}}function ma(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function ha(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ha(t)}function ga(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function _a(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?_a(t.subTree):null}var va=e=>e.__isSuspense;function ya(e,t){t&&t.pendingBranch?w(e)?t.effects.push(...e):t.effects.push(e):Bn(e)}var ba=Symbol.for(`v-fgt`),xa=Symbol.for(`v-txt`),Sa=Symbol.for(`v-cmt`),Ca=Symbol.for(`v-stc`),wa=[],Ta=null;function Ea(e=!1){wa.push(Ta=e?null:[])}function Da(){wa.pop(),Ta=wa[wa.length-1]||null}var Oa=1;function ka(e,t=!1){Oa+=e,e<0&&Ta&&t&&(Ta.hasOnce=!0)}function Aa(e){return e.dynamicChildren=Oa>0?Ta||h:null,Da(),Oa>0&&Ta&&Ta.push(e),e}function ja(e,t,n,r,i,a){return Aa(La(e,t,n,r,i,a,!0))}function Ma(e,t,n,r,i){return Aa(Ra(e,t,n,r,i,!0))}function Na(e){return e?e.__v_isVNode===!0:!1}function Pa(e,t){return e.type===t.type&&e.key===t.key}var Fa=({key:e})=>e??null,Ia=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:O(e)||cn(e)||D(e)?{i:Gn,r:e,k:t,f:!!n}:e);function La(e,t=null,n=null,r=0,i=null,a=e===ba?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Fa(t),ref:t&&Ia(t),scopeId:Kn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Gn};return s?(Ka(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=O(n)?8:16),Oa>0&&!o&&Ta&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Ta.push(c),c}var Ra=za;function za(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===ii)&&(e=Sa),Na(e)){let r=Va(e,t,!0);return n&&Ka(r,n),Oa>0&&!a&&Ta&&(r.shapeFlag&6?Ta[Ta.indexOf(e)]=r:Ta.push(r)),r.patchFlag=-2,r}if(go(e)&&(e=e.__vccOpts),t){t=Ba(t);let{class:e,style:n}=t;e&&!O(e)&&(t.class=Ee(e)),A(n)&&(rn(n)&&!w(n)&&(n=b({},n)),t.style=xe(n))}let o=O(e)?1:va(e)?128:sr(e)?64:A(e)?4:D(e)?2:0;return La(e,t,n,r,i,o,a,!0)}function Ba(e){return e?rn(e)||Wi(e)?b({},e):e:null}function Va(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?qa(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Fa(l),ref:t&&t.ref?n&&a?w(a)?a.concat(Ia(t)):[a,Ia(t)]:Ia(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ba?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Va(e.ssContent),ssFallback:e.ssFallback&&Va(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Mr(u,c.clone(u)),u}function Ha(e=` `,t=0){return Ra(xa,null,e,t)}function Ua(e=``,t=!1){return t?(Ea(),Ma(Sa,null,e)):Ra(Sa,null,e)}function Wa(e){return e==null||typeof e==`boolean`?Ra(Sa):w(e)?Ra(ba,null,e.slice()):Na(e)?Ga(e):Ra(xa,null,String(e))}function Ga(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Va(e)}function Ka(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(w(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Ka(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!Wi(t)?t._ctx=Gn:r===3&&Gn&&(Gn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else D(t)?(t={default:t,_ctx:Gn},n=32):(t=String(t),r&64?(n=16,t=[Ha(t)]):n=8);e.children=t,e.shapeFlag|=n}function qa(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=Ee([t.class,r.class]));else if(e===`style`)t.style=xe([t.style,r.style]);else if(v(e)){let n=t[e],i=r[e];i&&n!==i&&!(w(n)&&n.includes(i))&&(t[e]=n?[].concat(n,i):i)}else e!==``&&(t[e]=r[e])}return t}function Ja(e,t,n,r=null){En(e,t,7,[n,r])}var Ya=Di(),Xa=0;function Za(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||Ya,a={uid:Xa++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Le(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Xi(r,i),emitsOptions:Pi(r,i),emit:null,emitted:null,propsDefaults:m,inheritAttrs:r.inheritAttrs,ctx:m,data:m,props:m,attrs:m,slots:m,refs:m,setupState:m,setupContext: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 a.ctx={_:a},a.root=t?t.root:a,a.emit=Mi.bind(null,a),e.ce&&e.ce(a),a}var Qa=null,$a=()=>Qa||Gn,eo,to;{let e=be(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};eo=t(`__VUE_INSTANCE_SETTERS__`,e=>Qa=e),to=t(`__VUE_SSR_SETTERS__`,e=>ao=e)}var no=e=>{let t=Qa;return eo(e),e.scope.on(),()=>{e.scope.off(),eo(t)}},ro=()=>{Qa&&Qa.scope.off(),eo(null)};function io(e){return e.vnode.shapeFlag&4}var ao=!1;function oo(e,t=!1,n=!1){t&&to(t);let{props:r,children:i}=e.vnode,a=io(e);Gi(e,r,a,t),ia(e,i,n||t);let o=a?so(e,t):void 0;return t&&to(!1),o}function so(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ui);let{setup:r}=n;if(r){nt();let n=e.setupContext=r.length>1?mo(e):null,i=no(e),a=Tn(r,e,0,[e.props,n]),o=ee(a);if(rt(),i(),(o||e.sp)&&!Br(e)&&Pr(e),o){if(a.then(ro,ro),t)return a.then(n=>{co(e,n,t)}).catch(t=>{Dn(t,e,0)});e.asyncDep=a}else co(e,a,t)}else fo(e,t)}function co(e,t,n){D(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:A(t)&&(e.setupState=pn(t)),fo(e,n)}var lo,uo;function fo(e,t,n){let r=e.type;if(!e.render){if(!t&&lo&&!r.render){let t=r.template||_i(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r;r.render=lo(t,b(b({isCustomElement:n,delimiters:a},i),o))}}e.render=r.render||g,uo&&uo(e)}{let t=no(e);nt();try{pi(e)}finally{rt(),t()}}}var po={get(e,t){return pt(e,`get`,``),e[t]}};function mo(e){return{attrs:new Proxy(e.attrs,po),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function ho(e){return e.exposed?e.exposeProxy||=new Proxy(pn(an(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ci)return ci[n](e)},has(e,t){return t in e||t in ci}}):e.proxy}function go(e){return D(e)&&`__vccOpts`in e}var I=(e,t)=>vn(e,t,ao);function L(e,t,n){try{ka(-1);let r=arguments.length;return r===2?A(t)&&!w(t)?Na(t)?Ra(e,null,[t]):Ra(e,t):Ra(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Na(n)&&(n=[n]),Ra(e,t,n))}finally{ka(1)}}var _o=`3.5.26`,vo=void 0,yo=typeof window<`u`&&window.trustedTypes;if(yo)try{vo=yo.createPolicy(`vue`,{createHTML:e=>e})}catch{}var bo=vo?e=>vo.createHTML(e):e=>e,xo=`http://www.w3.org/2000/svg`,So=`http://www.w3.org/1998/Math/MathML`,Co=typeof document<`u`?document:null,wo=Co&&Co.createElement(`template`),To={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Co.createElementNS(xo,e):t===`mathml`?Co.createElementNS(So,e):n?Co.createElement(e,{is:n}):Co.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Co.createTextNode(e),createComment:e=>Co.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Co.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{wo.innerHTML=bo(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=wo.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Eo=`transition`,Do=`animation`,Oo=Symbol(`_vtc`),ko={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},Ao=b({},Cr,ko),jo=e=>(e.displayName=`Transition`,e.props=Ao,e),Mo=jo((e,{slots:t})=>L(Dr,Fo(e),t)),No=(e,t=[])=>{w(e)?e.forEach(e=>e(...t)):e&&e(...t)},Po=e=>e?w(e)?e.some(e=>e.length>1):e.length>1:!1;function Fo(e){let t={};for(let n in e)n in ko||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Io(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=_,onAppear:w=v,onAppearCancelled:T=y}=t,E=(e,t,n,r)=>{e._enterCancelled=r,zo(e,t?u:s),zo(e,t?l:o),n&&n()},D=(e,t)=>{e._isLeaving=!1,zo(e,d),zo(e,p),zo(e,f),t&&t()},O=e=>(t,n)=>{let i=e?w:v,o=()=>E(t,e,n);No(i,[t,o]),Bo(()=>{zo(t,e?c:a),Ro(t,e?u:s),Po(i)||Ho(t,r,h,o)})};return b(t,{onBeforeEnter(e){No(_,[e]),Ro(e,a),Ro(e,o)},onBeforeAppear(e){No(C,[e]),Ro(e,c),Ro(e,l)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>D(e,t);Ro(e,d),e._enterCancelled?(Ro(e,f),Ko(e)):(Ko(e),Ro(e,f)),Bo(()=>{e._isLeaving&&(zo(e,d),Ro(e,p),Po(x)||Ho(e,r,g,n))}),No(x,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),No(y,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),No(T,[e])},onLeaveCancelled(e){D(e),No(S,[e])}})}function Io(e){if(e==null)return null;if(A(e))return[Lo(e.enter),Lo(e.leave)];{let t=Lo(e);return[t,t]}}function Lo(e){return ve(e)}function Ro(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Oo]||(e[Oo]=new Set)).add(t)}function zo(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Oo];n&&(n.delete(t),n.size||(e[Oo]=void 0))}function Bo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Vo=0;function Ho(e,t,n,r){let i=e._endId=++Vo,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Uo(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Uo(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${Eo}Delay`),a=r(`${Eo}Duration`),o=Wo(i,a),s=r(`${Do}Delay`),c=r(`${Do}Duration`),l=Wo(s,c),u=null,d=0,f=0;t===Eo?o>0&&(u=Eo,d=o,f=a.length):t===Do?l>0&&(u=Do,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?Eo:Do:null,f=u?u===Eo?a.length:c.length:0);let p=u===Eo&&/\b(?:transform|all)(?:,|$)/.test(r(`${Eo}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Wo(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Go(t)+Go(e[n])))}function Go(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Ko(e){return(e?e.ownerDocument:document).body.offsetHeight}function qo(e,t,n){let r=e[Oo];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Jo=Symbol(`_vod`),Yo=Symbol(`_vsh`),Xo=Symbol(``);function Zo(e){let t=$a();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>$o(e,n))},r=()=>{let r=e(t.proxy);t.ce?$o(t.ce,r):Qo(t.subTree,r),n(r)};Xr(()=>{Bn(r)}),Yr(()=>{nr(r,g,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),$r(()=>e.disconnect())})}function Qo(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Qo(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)$o(e.el,t);else if(e.type===ba)e.children.forEach(e=>Qo(e,t));else if(e.type===Ca){let{el:n,anchor:r}=e;for(;n&&($o(n,t),n!==r);)n=n.nextSibling}}function $o(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Fe(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[Xo]=r}}var es=/(?:^|;)\s*display\s*:/;function ts(e,t,n){let r=e.style,i=O(n),a=!1;if(n&&!i){if(t)if(O(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??rs(r,t,``)}else for(let e in t)n[e]??rs(r,e,``);for(let e in n)e===`display`&&(a=!0),rs(r,e,n[e])}else if(i){if(t!==n){let e=r[Xo];e&&(n+=`;`+e),r.cssText=n,a=es.test(n)}}else t&&e.removeAttribute(`style`);Jo in e&&(e[Jo]=a?r.display:``,e[Yo]&&(r.display=`none`))}var ns=/\s*!important$/;function rs(e,t,n){if(w(n))n.forEach(n=>rs(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=os(e,t);ns.test(n)?e.setProperty(de(r),n.replace(ns,``),`important`):e[r]=n}}var is=[`Webkit`,`Moz`,`ms`],as={};function os(e,t){let n=as[t];if(n)return n;let r=le(t);if(r!==`filter`&&r in e)return as[t]=r;r=fe(r);for(let n=0;n<is.length;n++){let i=is[n]+r;if(i in e)return as[t]=i}return t}var ss=`http://www.w3.org/1999/xlink`;function cs(e,t,n,r,i,a=Oe(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(ss,t.slice(6,t.length)):e.setAttributeNS(ss,t,n):n==null||a&&!Ae(n)?e.removeAttribute(t):e.setAttribute(t,a?``:k(n)?String(n):n)}function ls(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?bo(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=Ae(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function us(e,t,n,r){e.addEventListener(t,n,r)}function ds(e,t,n,r){e.removeEventListener(t,n,r)}var fs=Symbol(`_vei`);function ps(e,t,n,r,i=null){let a=e[fs]||(e[fs]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=hs(t);r?us(e,n,a[t]=ys(r,i),s):o&&(ds(e,n,o,s),a[t]=void 0)}}var ms=/(?:Once|Passive|Capture)$/;function hs(e){let t;if(ms.test(e)){t={};let n;for(;n=e.match(ms);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):de(e.slice(2)),t]}var gs=0,_s=Promise.resolve(),vs=()=>gs||=(_s.then(()=>gs=0),Date.now());function ys(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;En(bs(e,n.value),t,5,[e])};return n.value=e,n.attached=vs(),n}function bs(e,t){if(w(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var xs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ss=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?qo(e,r,o):t===`style`?ts(e,n,r):v(t)?y(t)||ps(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Cs(e,t,r,o))?(ls(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&cs(e,t,r,o,a,t!==`value`)):e._isVueCE&&(/[A-Z]/.test(t)||!O(r))?ls(e,le(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),cs(e,t,r,o))};function Cs(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&xs(t)&&D(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return xs(t)&&O(n)?!1:t in e}var ws=new WeakMap,Ts=new WeakMap,Es=Symbol(`_moveCb`),Ds=Symbol(`_enterCb`),Os=e=>(delete e.props.mode,e),ks=Os({name:`TransitionGroup`,props:b({},Ao,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=$a(),r=xr(),i,a;return Zr(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!Ns(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(As),i.forEach(js);let r=i.filter(Ms);Ko(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;Ro(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Es]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Es]=null,zo(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=j(e),s=Fo(o),c=o.tag||ba;if(i=[],a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&(i.push(t),Mr(t,kr(t,s,r,n)),ws.set(t,{left:t.el.offsetLeft,top:t.el.offsetTop}))}a=t.default?Nr(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&Mr(t,kr(t,s,r,n))}return Ra(c,null,a)}}});function As(e){let t=e.el;t[Es]&&t[Es](),t[Ds]&&t[Ds]()}function js(e){Ts.set(e,{left:e.el.offsetLeft,top:e.el.offsetTop})}function Ms(e){let t=ws.get(e),n=Ts.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${i}px)`,t.transitionDuration=`0s`,e}}function Ns(e,t,n){let r=e.cloneNode(),i=e[Oo];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Uo(r);return a.removeChild(r),o}var Ps=b({patchProp:Ss},To),Fs;function Is(){return Fs||=ca(Ps)}var Ls=((...e)=>{let t=Is().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=zs(e);if(!r)return;let i=t._component;!D(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Rs(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Rs(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function zs(e){return O(e)?document.querySelector(e):e}function Bs(e,t){for(let n=e;n>=0;n--)if(t[n].level<t[e].level)return n;return-1}function Vs(e,t){if(e===-1)return new Set(t.map((e,t)=>t));let n=[];for(let r=e+1;r<t.length&&!(t[r].level<=t[e].level);r++)n.push(r);return new Set(n)}function Hs(e,t){let n=[...Vs(Bs(e,t),t)].filter(n=>t[n].level===t[e].level);return new Set(n)}const R=Xt({headers:[],dark:!0,cssChange:!1,markdown:!0,ellipsis:!1,labelDirection:`left`,leafChange:!1,searchSupport:!0,levelSwitch:!0,hideUnsearched:!0,regexSearch:!1,currentEditingKey:``,modifyKeys:{},dragModify:!1,textDirectionDecideBy:`system`,refreshTree:()=>{},theme:{patchColor:!1,primaryColorLight:``,primaryColorDark:``,rainbowLine:!1,rainbowColor1:``,rainbowColor2:``,rainbowColor3:``,rainbowColor4:``,rainbowColor5:``,fontSize:``,fontFamily:``,fontWeight:``,lineHeight:``,lineGap:``,customFontColor:!1,h1ColorLight:``,h2ColorLight:``,h3ColorLight:``,h4ColorLight:``,h5ColorLight:``,h6ColorLight:``,h1ColorDark:``,h2ColorDark:``,h3ColorDark:``,h4ColorDark:``,h5ColorDark:``,h6ColorDark:``},init:Us});function Us(e){let{app:t,settings:n}=e;R.dark=activeDocument.body.hasClass(`theme-dark`),R.markdown=n.markdown,R.ellipsis=n.ellipsis,R.labelDirection=n.label_direction,R.refreshTree=()=>{e.outlineView?.vueInstance.forceRemakeTree(),t.workspace.trigger(`layout-change`)},R.searchSupport=n.search_support,R.levelSwitch=n.level_switch,R.hideUnsearched=n.hide_unsearched,R.regexSearch=n.regex_search,R.dragModify=n.drag_modify,R.textDirectionDecideBy=n.lang_direction_decide_by,R.theme.patchColor=n.patch_color,R.theme.primaryColorLight=n.primary_color_light,R.theme.primaryColorDark=n.primary_color_dark,R.theme.rainbowLine=n.rainbow_line,R.theme.rainbowColor1=n.rainbow_color_1,R.theme.rainbowColor2=n.rainbow_color_2,R.theme.rainbowColor3=n.rainbow_color_3,R.theme.rainbowColor4=n.rainbow_color_4,R.theme.rainbowColor5=n.rainbow_color_5,R.theme.fontSize=n.font_size,R.theme.fontFamily=n.font_family,R.theme.fontWeight=n.font_weight,R.theme.lineHeight=n.line_height,R.theme.lineGap=n.line_gap,R.theme.customFontColor=n.custom_font_color,R.theme.h1ColorLight=n.h1_color,R.theme.h2ColorLight=n.h2_color,R.theme.h3ColorLight=n.h3_color,R.theme.h4ColorLight=n.h4_color,R.theme.h5ColorLight=n.h5_color,R.theme.h6ColorLight=n.h6_color,R.theme.h1ColorDark=n.h1_color_dark,R.theme.h2ColorDark=n.h2_color_dark,R.theme.h3ColorDark=n.h3_color_dark,R.theme.h4ColorDark=n.h4_color_dark,R.theme.h5ColorDark=n.h5_color_dark,R.theme.h6ColorDark=n.h6_color_dark}var Ws=class e{state=`unresolved`;resolve;reject;promise=new Promise((e,t)=>{this.resolve=e,this.reject=t}).then(e=>(this.setState(`resolved`),e),e=>(this.setState(`rejected`),Promise.reject(Gs(e))));setState(e){this.state===`unresolved`&&(this.state=e)}static resolved(t){let n=new e;return n.resolve(t),n}isResolved(){return this.state===`resolved`}isRejected(){return this.state===`rejected`}};function Gs(e){return e instanceof Error?e:Error(String(e))}var Ks=class{_used=!1;_loaded=new Ws;_events=[];canDrop=!1;plugin;view;constructor(e,t){this.plugin=e,this.view=t}async load(){this._used||(this._used=!0,this.constructor._installed||(await this.install(),this.constructor._installed=!0),await this.onload(),this._loaded.resolve())}async unload(){for(await this._loaded.promise;this._events.length>0;)await this._events.pop()?.();await this.onunload(),this.plugin.navigator=new qs(this.plugin,null)}register(e){this._events.push(e)}registerEvent(e){this.register(()=>{e.e?.offref(e)})}registerDomEvent(e,t,n,r){e.addEventListener(t,n,r),this.register(()=>{e.removeEventListener(t,n,r)})}registerInterval(e){return this.register(()=>{window.clearInterval(e)}),e}getDefaultLevel(){return parseInt(this.plugin.settings.expand_level)}getPath(){return``}async install(){}async onload(){}async onunload(){}async handleDrop(e,t,n){}onRightClick(e,t,n,r){}toBottom(){}onExpandKeysChange(e,t){}changeHeadingContent(e,t){}async jumpWithoutFocus(e){await this.jump(e)}async jumpWhenClick(e){await this.jumpWithoutFocus(e)}},qs=class extends Ks{getId(){return`dummy`}async unload(){}async jump(e){}async getHeaders(){return[]}async setHeaders(){R.headers=[]}async updateHeaders(){}},Js={"Settings for Quiet Outline.":`Quiet Outline 的设置页面`,"Set Primary Color":`设置主颜色 明/暗`,"Patch default color":`用设置覆盖默认主颜色`,"Set Rainbow Line Color":`设置彩虹大纲线颜色`,"Render Markdown":`渲染markdown元素`,"Render heading string as markdown format.":`以markdown格式渲染标题文本`,"Search Support":`开启搜索`,"Add a searching area on the top":`在顶部添加一个搜索框`,"Level Switch":`层级切换器`,"Expand headings to certain level.":`展开标题到特定层级`,"Default Level":`默认层级`,"Default expand level when opening a new note.":`打开新笔记时,标题展开到的默认层级`,"No expand":`不展开`,"To Bottom":`跳转到笔记末尾`,Reset:`重置`,"Input to search":`输入以搜索`,"result(s):":`条匹配结果:`,"Hide Unsearched":`过滤未搜索的标题`,"Hide irrelevant headings when searching":`搜索时,隐藏未命中的标题`,"Regex Search":`正则搜索`,"Search headings using regular expression":`支持使用正则表达式来搜索`,"Auto Expand":`自动展开`,"Auto expand and collapse headings when scrolling and cursor position change":`当滚动页面时,自动跟踪当前所在标题并展开`,"Auto Scroll Into View":`自动滚动到定位的标题`,"Auto scroll located heading into view":`当滚动或者光标位置变化时,大纲自动滚动到相应标题`,"Only Expand":`仅展开当前标题`,"Expand and Collapse Rest":`展开同时折叠剩余标题`,"Expand and Collapse Rest to Default":`展开同时折叠剩余标题至默认层级`,"Expand and Collapse Rest to Setting Level (Level Switch)":`展开同时折叠剩余标题至设置层级(层级切换器)`,Disabled:`关闭自动展开`,"Locate By Cursor":`定位到光标处`,"Highlight and Auto expand postion will be determined by cursor position":`高亮和自动展开位置将由光标位置决定`,"Show Popover on hover":`鼠标悬停在标题时显示笔记内容`,"Press functional key and move cursor to heading":`按住功能键,移动光标到标题处`,Disable:`关闭`,Ellipsis:`省略长标题`,"Tooltip direction":`完整标题显示方向`,"Keep one line per heading":`保持标题只有一行,省略多余部分`,"Persist Markdown States":`记录 markdown 状态`,"Save and restore cursor, scroll state of markdown note, as well as expanded/collapsed state of headings":`保存和恢复 markdown 笔记的光标、滚动状态以及标题的展开/折叠状态`,"Keep Search Input":`保留搜索输入`,"Keep search input when switching between notes":`切换笔记时保留搜索输入`,"Drag headings to modify note":`启用拖拽标题来调整文档结果`,"❗ This will modify note content, be careful.":`❗ 拖拽操作会改变文档内容,小心使用`,"Text Direction":`文本方向`,"is decided by":`由什么决定`,"Export Format":`标题输出格式`,Canvas:`白板`,General:`常规设置`,Styles:`样式设置`,"Canvas Sort Order":`白板大纲排序`,"Heading Truncate Length":`标题截断长度`,"Sort method for canvas nodes":`白板卡片的排序逻辑`,"Sort by Area":`按面积 (大 -> 小)`,"Sort by Name (A -> Z)":`按名称 (A -> Z)`,"Sort by Name (Z -> A)":`按名称 (Z -> A)`,"Show group nodes":`显示组节点`,"Show file nodes":`显示文件节点`,"Show text nodes":`显示文本节点`,"Show link nodes":`显示链接节点`,Copy:`复制`,Heading:`标题`,"Heading and children headings":`标题和子标题`,"Heading and Content":`该段内容`,"Heading and siblings headings":`标题和兄弟标题`,"Rename heading":`重命名标题`,"Link of heading":`标题链接`,"Collapse Recursively":`递归折叠`,"Expand Recursively":`递归展开`,"Collapse Sibling":`折叠同级标题`,"Expand Sibling":`展开同级标题`,"Change Level":`调整层级`,Increase:`增加`,"Increase Recursively":`递归增加`,Decrease:`减少`,"Decrease Recursively":`递归减少`,"Maximum level reached":`已达到最大层级`,"Minimum level reached":`已达到最小层级`,"Vimlize Canvas":`Vim Canvas`,"Add vim-like keymap for canvas":`给 Canvas 添加 Vim 风格的快捷键`,Confirm:`确认`,Cancel:`取消`,Delete:`删除`,"This will delete heading:":`即将删除标题:`,"This will modify the note content. Continue?":`此操作会修改笔记内容,是否继续?`,"Font Size":`字体大小`,"Custom font size for outline text (e.g., 14px, 1rem)":`大纲文本的自定义字体大小(例如:14px, 1rem)`,"Font Family":`字体家族`,"Custom font family for outline text":`大纲文本的自定义字体家族`,"Font Weight":`字体粗细`,"Custom font weight for outline text (e.g., normal, bold, 400, 700)":`大纲文本的自定义字体粗细(例如:normal, bold, 400, 700`,"Line Height":`行高`,"Custom line height for outline text (e.g., 1.5, 2)":`大纲文本的自定义行高(例如:1.5, 2)`,"Line Gap":`行间距`,"Custom gap between lines (e.g., 4px, 0.5rem)":`行之间的自定义间距(例如:4px, 0.5rem)`,"Custom Font Color":`自定义字体颜色`,"Enable custom font colors for different heading levels":`为不同级别的标题启用自定义字体颜色`,"H1 Color":`H1 颜色`,"H2 Color":`H2 颜色`,"H3 Color":`H3 颜色`,"H4 Color":`H4 颜色`,"H5 Color":`H5 颜色`,"H6 Color":`H6 颜色`},Ys={"Change Level":`Change Level`,Increase:`Increase`,"Increase Recursively":`Increase Recursively`,Decrease:`Decrease`,"Decrease Recursively":`Decrease Recursively`,"Maximum level reached":`Maximum level reached`,"Minimum level reached":`Minimum level reached`,"Settings for Quiet Outline.":`Settings for Quiet Outline.`,"Set Primary Color":`Set Primary Color Light/Dark`,"Patch default color":`Patch default color`,"Set Rainbow Line Color":`Set Rainbow Line Color`,"Render Markdown":`Render Markdown`,"Render heading string as markdown format.":`Render heading string as markdown format`,"Search Support":`Search Support`,"Add a searching area on the top":`Add a search area on the top`,"Level Switch":`Level Switch`,"Expand headings to certain level.":`Expand headings to certain level`,"Default Level":`Default Level`,"Default expand level when opening a new note.":`Default expand level`,"No expand":`No expand`,"To Bottom":`To Bottom`,Reset:`Reset`,"Input to search":`Input to search`,"result(s):":`result(s):`,"Hide Unsearched":`Hide Unsearched`,"Hide irrelevant headings when searching":`Hide irrelevant headings when searching`,"Regex Search":`Regex Search`,"Search headings using regular expression":`Search headings using regular expression`,"Auto Expand":`Auto Expand`,"Auto expand and collapse headings when scrolling and cursor position change":`Auto expand and collapse headings when scrolling and cursor position change`,"Auto Scroll Into View":`Auto Scroll Into View`,"Auto scroll located heading into view":`Auto scroll located heading into view`,"Only Expand":`Only Expand`,"Expand and Collapse Rest":`Expand and Collapse Rest`,"Expand and Collapse Rest to Default":`Expand and Collapse Rest to Default`,"Expand and Collapse Rest to Setting Level (Level Switch)":`Expand and Collapse Rest to Setting Level (Level Switch)`,Disabled:`Disabled`,"Locate By Cursor":`Locate By Cursor`,"Show Popover on hover":`Show Popover on hover`,"Press functional key and move cursor to heading":`Press functional key and move cursor to heading`,Disable:`Disable`,"Highlight and Auto expand postion will be determined by cursor position":`Highlight and Auto expand postion will be determined by cursor position`,Ellipsis:`Ellipsis`,"Tooltip direction":`Tooltip direction`,"Keep one line per heading":`Keep one line per heading`,"Persist Markdown States":`Persist Markdown States`,"Save and restore cursor, scroll state of markdown note, as well as expanded/collapsed state of headings":`Save and restore cursor, scroll state of markdown note, as well as expanded/collapsed state of headings`,"Keep Search Input":`Keep Search Input`,"Keep search input when switching between notes":`Keep search input when switching between notes`,"Drag headings to modify note":`Drag headings to modify note`,"❗ This will modify note content, be careful.":`❗ This will modify note content, be careful`,"Text Direction":`Text Direction`,"is decided by":`is decided by`,"Export Format":`Export Format`,General:`General`,Styles:`Styles`,Canvas:`Canvas`,"Canvas Sort Order":`Canvas Sort Order`,"Heading Truncate Length":`Heading Truncate Length`,"Sort method for canvas nodes":`Sort method for canvas nodes`,"Sort by Area":`Sort by Area (Big -> Small)`,"Sort by Name (A -> Z)":`Sort by Name (A -> Z)`,"Sort by Name (Z -> A)":`Sort by Name (Z -> A)`,"Show group nodes":`Show group nodes`,"Show file nodes":`Show file nodes`,"Show text nodes":`Show text nodes`,"Show link nodes":`Show link nodes`,Copy:`Copy`,Heading:`Heading`,"Heading and children headings":`Heading and children headings`,"Heading and Content":`Heading and Content`,"Heading and siblings headings":`Heading and siblings headings`,"Rename heading":`Rename`,"Link of heading":`Link of heading`,"Collapse Recursively":`Collapse Recursively`,"Expand Recursively":`Expand Recursively`,"Collapse Sibling":`Collapse Sibling`,"Expand Sibling":`Expand Sibling`,"Vimlize Canvas":`Vimlize Canvas`,"Add vim-like keymap for canvas":`Add vim-like keymap for canvas`,Confirm:`Confirm`,Cancel:`Cancel`,Delete:`Delete`,"This will delete heading:":`This will delete heading:`,"This will modify the note content. Continue?":`This will modify the note content. Continue?`,"Font Size":`Font Size`,"Custom font size for outline text (e.g., 14px, 1rem)":`Custom font size for outline text (e.g., 14px, 1rem)`,"Font Family":`Font Family`,"Custom font family for outline text":`Custom font family for outline text`,"Font Weight":`Font Weight`,"Custom font weight for outline text (e.g., normal, bold, 400, 700)":`Custom font weight for outline text (e.g., normal, bold, 400, 700)`,"Line Height":`Line Height`,"Custom line height for outline text (e.g., 1.5, 2)":`Custom line height for outline text (e.g., 1.5, 2)`,"Line Gap":`Line Gap`,"Custom gap between lines (e.g., 4px, 0.5rem)":`Custom gap between lines (e.g., 4px, 0.5rem)`,"Custom Font Color":`Custom Font Color`,"Enable custom font colors for different heading levels":`Enable custom font colors for different heading levels`,"H1 Color":`H1 Color`,"H2 Color":`H2 Color`,"H3 Color":`H3 Color`,"H4 Color":`H4 Color`,"H5 Color":`H5 Color`,"H6 Color":`H6 Color`},Xs={"Change Level":`調整層級`,Increase:`增加`,"Increase Recursively":`遞迴增加`,Decrease:`減少`,"Decrease Recursively":`遞迴減少`,"Maximum level reached":`已達到最大層級`,"Minimum level reached":`已達到最小層級`,Confirm:`確認`,Cancel:`取消`,Delete:`刪除`,"This will delete heading:":`即將刪除標題:`,"This will modify the note content. Continue?":`此操作會修改筆記內容,是否繼續?`,"Settings for Quiet Outline.":`Quiet Outline 的設定頁面`,"Set Primary Color":`設定主要顏色 明/暗`,"Patch default color":`使用設定覆蓋預設主要顏色`,"Set Rainbow Line Color":`設定彩虹大綱線顏色`,"Render Markdown":`渲染 markdown 元素`,"Render heading string as markdown format.":`以 markdown 格式渲染標題文字`,"Search Support":`開啟搜尋`,"Add a searching area on the top":`在頂部新增一個搜尋框`,"Level Switch":`層級切換器`,"Expand headings to certain level.":`展開標題到特定層級`,"Default Level":`預設層級`,"Default expand level when opening a new note.":`開啟新筆記時,標題展開到的預設層級`,"No expand":`不展開`,"To Bottom":`跳轉到筆記末尾`,Reset:`重置`,"Input to search":`輸入以搜尋`,"result(s):":`筆相符結果:`,"Hide Unsearched":`過濾未搜尋的標題`,"Hide irrelevant headings when searching":`搜尋時,隱藏未命中的標題`,"Regex Search":`正則搜尋`,"Search headings using regular expression":`支援使用正則運算式來搜尋`,"Auto Expand":`自動展開`,"Auto expand and collapse headings when scrolling and cursor position change":`當捲動頁面或游標改變時,自動跟隨目前所在標題並展開`,"Auto Scroll Into View":`自動捲動到定位的標題`,"Auto scroll located heading into view":`當捲動或游標位置變化時,大綱自動捲動到相應標題`,"Only Expand":`僅展開目前標題`,"Expand and Collapse Rest":`展開同時摺疊剩餘標題`,"Expand and Collapse Rest to Default":`展開同時摺疊剩餘標題至預設層級`,"Expand and Collapse Rest to Setting Level (Level Switch)":`展開同時摺疊剩餘標題至設定層級(層級切換器)`,Disabled:`關閉自動展開`,"Locate By Cursor":`定位到游標處`,"Highlight and Auto expand postion will be determined by cursor position":`高亮和自動展開位置將由游標位置決定`,"Show Popover on hover":`滑鼠懸停在標題時顯示筆記內容`,"Press functional key and move cursor to heading":`按住功能鍵,移動游標到標題處`,Disable:`關閉`,Ellipsis:`省略長標題`,"Tooltip direction":`完整標題顯示方向`,"Keep one line per heading":`保持標題只有一行,省略多餘部分`,"Persist Markdown States":`持續保存 Markdown 狀態`,"Save and restore cursor, scroll state of markdown note, as well as expanded/collapsed state of headings":`儲存並恢復 Markdown 筆記的游標、捲動狀態,以及標題的展開/摺疊狀態`,"Keep Search Input":`保留搜尋輸入`,"Keep search input when switching between notes":`切換筆記時保留搜尋輸入`,"Drag headings to modify note":`啟用拖曳標題來調整文件結構`,"❗ This will modify note content, be careful.":`❗ 拖曳操作會改變文件內容,請小心使用`,"Text Direction":`文字方向`,"is decided by":`由什麼決定`,"Export Format":`標題輸出格式`,Canvas:`白板`,General:`一般設定`,Styles:`樣式設定`,"Canvas Sort Order":`白板大綱排序`,"Heading Truncate Length":`標題截斷長度`,"Show group nodes":`顯示群組節點`,"Show file nodes":`顯示檔案節點`,"Show text nodes":`顯示文字節點`,"Show link nodes":`顯示連結節點`,"Sort method for canvas nodes":`白板卡片的排序邏輯`,"Sort by Area":`按面積 (大 -> 小)`,"Sort by Name (A -> Z)":`按名稱 (A -> Z)`,"Sort by Name (Z -> A)":`按名稱 (Z -> A)`,Copy:`複製`,Heading:`標題`,"Heading and children headings":`標題和子標題`,"Heading and Content":`該段內容`,"Heading and siblings headings":`標題和兄弟標題`,"Rename heading":`重命名標題`,"Link of heading":`標題連結`,"Collapse Recursively":`遞迴摺疊`,"Expand Recursively":`遞迴展開`,"Collapse Sibling":`摺疊同級標題`,"Expand Sibling":`展開同級標題`,"Vimlize Canvas":`Vim Canvas`,"Add vim-like keymap for canvas":`給 Canvas 新增 Vim 風格的快捷鍵`,"Font Size":`字型大小`,"Custom font size for outline text (e.g., 14px, 1rem)":`大綱文字的自訂字型大小(例如:14px, 1rem)`,"Font Family":`字型家族`,"Custom font family for outline text":`大綱文字的自訂字型家族`,"Font Weight":`字型粗細`,"Custom font weight for outline text (e.g., normal, bold, 400, 700)":`大綱文字的自訂字型粗細(例如:normal, bold, 400, 700`,"Line Height":`行高`,"Custom line height for outline text (e.g., 1.5, 2)":`大綱文字的自訂行高(例如:1.5, 2)`,"Line Gap":`行間距`,"Custom gap between lines (e.g., 4px, 0.5rem)":`行之間的自訂間距(例如:4px, 0.5rem)`,"Custom Font Color":`自訂字型顏色`,"Enable custom font colors for different heading levels":`為不同級別的標題啟用自訂字型顏色`,"H1 Color":`H1 顏色`,"H2 Color":`H2 顏色`,"H3 Color":`H3 顏色`,"H4 Color":`H4 顏色`,"H5 Color":`H5 顏色`,"H6 Color":`H6 顏色`},Zs={en:Ys,zh:Js,"zh-TW":Xs}[(0,l.getLanguage)()||`en`];function z(e){return Zs&&Zs[e]||Ys[e]}var Qs=`quiet-outline-confirm-modal`,$s=`quiet-outline-confirm-modal__buttons`,ec=`quiet-outline-confirm-modal__btn-icon`;function tc(e,t=``){return e==null?t:typeof e==`string`?e:z(e.i18nKey)}var nc=class extends l.Modal{options;constructor(e,t){super(e),this.options=t}onOpen(){let{contentEl:e}=this,t=tc(this.options.title);t&&this.titleEl.setText(t);let n=tc(this.options.message).split(/\n\s*\n/g).map(e=>e.trim()).filter(Boolean);for(let t of n){let n=e.createEl(`p`),r=t.split(`
`);for(let e=0;e<r.length;e++)e>0&&n.createEl(`br`),n.appendText(r[e])}e.addClass(Qs);let r=e.createDiv({cls:$s}),i=tc(this.options.cancelText,z(`Cancel`)),a=tc(this.options.confirmText,z(`Confirm`)),o=new l.ButtonComponent(r).setButtonText(a).setCta().onClick(async()=>{await this.safeConfirm()});o.setClass(`mod-warning`),this.options.confirmIcon&&rc(o,this.options.confirmIcon);let s=new l.ButtonComponent(r).setButtonText(i).onClick(async()=>{await this.safeCancel(),this.close()});this.options.cancelIcon&&rc(s,this.options.cancelIcon),s.buttonEl.focus()}onClose(){this.contentEl.empty()}async safeConfirm(){let e=this.options.closeOnConfirm??!0;await this.options.onConfirm(),e&&this.close()}async safeCancel(){this.options.onCancel&&await this.options.onCancel()}};function rc(e,t){let n=e.buttonEl.createSpan({cls:ec});(0,l.setIcon)(n,t),e.buttonEl.prepend(n)}function ic(e,t){return new Promise(n=>{let r=new nc(e,{...t,onConfirm:()=>n(!0),onCancel:()=>n(!1)}),i=r.onClose.bind(r);r.onClose=()=>{n(!1),i()},r.open()})}var ac=class extends l.Events{on(e,t,n){return super.on(e,t,n)}off(e,t){super.off(e,t)}trigger(e,...t){super.trigger(e,...t)}};const oc=new ac;var sc=class{constructor(e){}update(e){e.selectionSet&&oc.trigger(`cursorchange`,e.docChanged)}destroy(){}};const cc=u.ViewPlugin.fromClass(sc);var lc=5;function uc(e,t){let n=0,r=0,i=[];for(;n<e.length&&r<t.length;){if(e[n].title===t[r].title&&e[n].level===t[r].level){n++,r++;continue}let a=dc(e,t,n,r);if(a.type==`modify`){let o=e[n].level<e[n+1].level?t[r].level<t[r+1].level?`parent2parent`:`parent2child`:t[r].level<t[r+1].level?`child2parent`:`child2child`;i.push({type:a.type,begin:n,length:a.length,levelChange:e[n].level!==t[r].level,levelChangeType:o})}else i.push({type:a.type,begin:n,length:a.length});a.type===`add`?r+=a.length:a.type===`remove`?n+=a.length:(n+=a.length,r+=a.length)}return n===e.length&&r!==t.length&&i.push({type:`add`,begin:n,length:t.length-r}),n!==e.length&&r===t.length&&i.push({type:`remove`,begin:n,length:e.length-n}),i}function dc(e,t,n,r){let i=fc(e[n],t,r),a=fc(t[r],e,n),o=pc(e,t,n,r),s=[{type:`add`,length:i},{type:`remove`,length:a},{type:`modify`,length:o}];return s.sort((e,t)=>e.length-t.length),s[0].type==`add`&&s[1].type==`remove`&&s[0].length===s[1].length?s[1]:s[0]}function fc(e,t,n){let r=t.slice(n),i=r.findIndex(t=>t.title===e.title&&t.level===e.level);return i=i<0?r.length:i,i}function pc(e,t,n,r){let i=Math.min(e.length-n-1,t.length-r-1,lc);for(let a=1;i>0&&a<=i;a++)if(e[n+a].title===t[r+a].title&&e[n+a].level===t[r+a].level)return a;return Number.MAX_VALUE}function mc(e,t){let n=uc(e,t),r={offsetModifies:[],removes:[],adds:[],modifies:[]},i=0;return n.forEach(e=>{switch(e.type){case`add`:r.adds.push({begin:i+e.begin}),i+=e.length,r.offsetModifies.push({begin:e.begin,offset:i});break;case`remove`:i-=e.length,r.offsetModifies.push({begin:e.begin+e.length,offset:i}),r.removes.push({begin:e.begin,length:e.length});break;case`modify`:if(!e.levelChange||e.levelChangeType===`child2child`)break;r.modifies.push({oldBegin:e.begin,newBegin:e.begin+i,levelChangeType:e.levelChangeType});break}}),r}async function hc(e,t){return await e.metadataCache.computeMetadataAsync(new TextEncoder().encode(t).buffer)}async function gc(e,t){let n=await hc(t,e),r=n.headings||[],i=n.sections||[],a=[{heading:``,headingLevel:0,headingExpaned:!1,id:-1,content:{preContent:``,children:[]},type:`section`}],o=0,s=0,c=0;for(let t of i)if(t.type===`heading`){for(s=Math.max(t.position.start.offset,0),a.last().content.preContent=e.slice(o,s);r[c].level<=a.last().headingLevel;)a.pop();let n={heading:r[c].heading,headingLevel:r[c].level,headingExpaned:!1,id:c,content:{preContent:``,children:[]},type:`section`};a.last().content.children.push(n),a.push(n),o=r[c].position.end.offset+1,c++}let l=e.slice(o);return a.length>1&&!l.endsWith(`
`)&&(l+=`
`),a.last().content.preContent=l,a[0]}function _c(e,t,n,r){let[i,a]=yc(e,t),[o,s]=yc(e,n),c=structuredClone(a);switch(r){case`before`:o.content.children.splice(o.content.children.indexOf(s),0,c),Cc(c,s.headingLevel-a.headingLevel);break;case`after`:o.content.children.splice(o.content.children.indexOf(s)+1,0,c),Cc(c,s.headingLevel-a.headingLevel);break;case`inside`:s.content.children.push(c),Cc(c,s.headingLevel-a.headingLevel+1);break}i.content.children.splice(i.content.children.indexOf(a),1)}function vc(e,t){let[n,r]=yc(e,t);n.content.children.splice(n.content.children.indexOf(r),1)}function yc(e,t){let n=bc(e,e,t);if(!n)throw Error(`section ${t} not found`);return n}function bc(e,t,n){if(e.id===n)return[t,e];for(let t of e.content.children){let r=bc(t,e,n);if(r)return r}}function xc(e){return e.preContent+e.children.map(Sc).join(``)}function Sc(e){let t=`#`.repeat(e.headingLevel)+` `+e.heading,n=xc(e.content);return e.id<0?n:`${t}\n${n}`}function Cc(e,t){e.headingLevel+=t,e.content.children.forEach(e=>{Cc(e,t)})}function wc(e,t){function n(e,t){switch(t.type){case`normal`:e.addItem(e=>e.setTitle(t.title).onClick(t.fn));break;case`danger`:e.addItem(e=>e.setTitle(t.title).setWarning(!0).onClick(t.fn));break;case`parent`:e.addItem(e=>{e.setTitle(t.title),wc(e.setSubmenu().setNoIcon(),t.subMenu)});break;case`separator`:e.addSeparator();break}}t.forEach(t=>{n(e,t)})}function Tc(e,t){return{type:`normal`,title:e,fn:t}}function Ec(e,t){return{type:`danger`,title:e,fn:t}}function Dc(e,t){return{type:`parent`,title:e,subMenu:t}}function Oc(){return{type:`separator`}}function kc(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Ac=class{data=new Map;count(){let e=0;for(let t of this.data.values())e+=t.length;return e}clear(e){this.data.delete(e)}add(e,t){this.data.has(e)||this.data.set(e,[]),this.data.get(e).push(t)}get(e){return this.data.get(e)}keys(){return Array.from(this.data.keys())}},jc=class{constructor(e,t,n,r,i){this.app=e,this.file=t,this.editor=n,this.tokenRange=r,this.oldHeading=i}async updateHeadingLinks(e){if(!e)return!1;let t=this.getChanges(e),n=t.data.size,r=t.count(),i=t.get(this.file.path)||[];i.length>0&&t.clear(this.file.path);let a=this.replaceInFile(e),o={link:``,original:``,position:{start:{line:0,col:0,offset:a.start},end:{line:0,col:0,offset:a.end}}};i.push({sourcePath:this.file.path,change:a.text,reference:o}),await this.app.vault.process(this.file,e=>Lc(e,i)),await this.app.fileManager.updateInternalLinks(t);let s=i18next.t(`nouns.link-with-count`,{count:r}),c=i18next.t(`nouns.file-with-count`,{count:n});new l.Notice(i18next.t(`dialogue.msg-updated-links`,{links:s,files:c}))}getChanges(e){let t=this.app.metadataCache,n=new Ac,r=(0,l.stripHeading)(this.oldHeading).toLowerCase(),i=(0,l.stripHeadingForLink)(e);return this.app.fileManager.iterateAllRefs((e,a)=>{if(!Pc(a))return;let o=(0,l.parseLinktext)(a.link),s=o.path,c=o.subpath;c&&(0,l.stripHeading)(c.substring(1)).toLowerCase()===r&&t.getFirstLinkpathDest(s,e)===this.file&&n.add(e,{sourcePath:e,reference:a,change:Bc(a,s+`#`+i)})}),n}replaceInEditor(e){let t=this.tokenRange,n=this.editor,r=n.offsetToPos(t.start),i=n.getLine(r.line),a=this.replaceHeadingText(i,e);n.setLine(r.line,a)}replaceInFile(e){let t=this.tokenRange,n=this.editor,r=n.offsetToPos(t.start),i=n.getLine(r.line),a=this.replaceHeadingText(i,e);return{...t,text:a}}replaceHeadingText(e,t){return e.replace(/^(#{1,6} ).*/m,(e,n)=>n+t)}getCustomReplacements(e){return{oldSubpath:(0,l.stripHeading)(this.oldHeading).toLowerCase(),newSubpath:(0,l.stripHeadingForLink)(e)}}};function Mc(e){if(!kc(e)||!kc(e.position))return!1;let t=e.position;return kc(t.start)&&kc(t.end)&&typeof t.start.offset==`number`&&typeof t.end.offset==`number`}function Nc(e){return kc(e)&&typeof e.key==`string`}function Pc(e){return kc(e)&&typeof e.link==`string`&&typeof e.original==`string`}function Fc(e){return kc(e)&&typeof e.contains==`function`}function Ic(e,t,n){let r=e;for(;r&&t.length;){let e=t.shift();if(Array.isArray(r)){let i=parseInt(e);if(isNaN(i)||i<0||i>=r.length)return;if(!(t.length>0)){r[i]=n;return}r=r[i]}else{if(!kc(r))return;if(!(t.length>0)){r[e]=n;return}!kc(r[e])&&!Array.isArray(r[e])&&(r[e]={}),r=r[e]}}}function Lc(e,t){let n=[],r=[];for(let e of t)if(Mc(e.reference)){let t=e.reference.position;n.push({start:t.start.offset,end:t.end.offset,text:e.change})}else Nc(e.reference)&&r.push({key:e.reference.key,value:e.change});if(n.length>0){n.sort((e,t)=>t.start-e.start);for(let t of n)e=e.substring(0,t.start)+t.text+e.substring(t.end)}if(r.length===0)return e;let i=(0,l.getFrontMatterInfo)(e);if(!i.exists)return e;let a;try{a=(0,l.parseYaml)(i.frontmatter)}catch{return e}if(!kc(a)&&!Array.isArray(a))return e;for(let e of r)Ic(a,e.key.split(`.`),e.value);let o=(0,l.stringifyYaml)(a);return e.slice(0,i.from)+o+e.slice(i.to)}var Rc=/^(!?\[\[)(.*?)(\|(.*))?(]])$/,zc=/^(!?\[)(.*?)(]\(\s*)((<[^>]*?>|[^ "]+?)(\s+([^ ]+|"[^"]+"|'[^']+'|\([^']+\)))?)?(\s*\))$/;function Bc(e,t,n){let r,i=e.original,a=e.link,o=i.match(Rc);if(o){let e=o[1],a=o[2],s=o[4],c=s===void 0?``:s,u=o[5];if(c){let o=/\\\|/.test(i)?`\\|`:`|`,s=c.trim(),d=Kc(a)===s,f=Fc(n)&&n.contains(s);d&&!f&&(c=Kc((0,l.getLinkpath)(t))),r=`${e}${t}${o}${c}${u}`}else r=e+t+u}else{let e=i.match(zc),n=!e||!e[5].startsWith(`<`)?Vc(t):`<${t}>`;if(e){let i=e[1],o=e[2],s=e[3],c=e[6]??``,u=e[8],d=Yc(o).trim(),f=(0,l.getLinkpath)(a);d===Kc(f)?o=Kc((0,l.getLinkpath)(t)):d.includes(`/`)&&d===qc(f)&&(o=qc((0,l.getLinkpath)(t))),r=i+o+s+n+c+u}else r=`[](${n})`,i.startsWith(`!`)&&(r=`!`+r)}return r}function Vc(e){return[...e].map(e=>{let t=e.charCodeAt(0);return e===`\\`||e===` `||t===0||t===8||t===11||t===12||t>=14&&t<=31?encodeURIComponent(e):e}).join(``)}function Hc(e){let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}function Uc(e){e=Hc(e);let t=e.lastIndexOf(`.`);return t===-1||t===e.length-1||t===0?e:e.substring(0,t)}function Wc(e){let t=e.lastIndexOf(`.`);return t===-1||t===e.length-1||t===0?``:e.substring(t+1).toLowerCase()}function Gc(e){let t=e.lastIndexOf(`.`);return t===-1||t===e.length-1||t===0?e:e.substring(0,t)}function Kc(e){let t=Hc(e);return Wc(t)===`md`?Uc(t):t}function qc(e){return Wc(Hc(e))===`md`?Gc(e):e}var Jc=/\u00A0|\u202F/g;function Yc(e){return e.replace(Jc,` `)}function Xc(e,t){function n(e,t){return Array(e.length+t.length).fill(``).map((n,r)=>r%2==0?e[r/2]:t[(r-1)/2])}let r=t.split(/\{.*?\}/),i=[...t.matchAll(/\{(.*?)\}/g)].map(e=>e[1]);function a(e){let t=o[e.level-1];return n(r,i.map(n=>{switch(n){case`title`:return e.title;case`path`:return`#`+e.title.replace(/ /g,`%20`);case`bullet`:return`-`;case`num`:return t.toString();case`num-nest`:return t.toString()}let r=n.match(/num-nest\[(.*?)\]/);if(r){let t=r[1];return o.slice(0,e.level).join(t)}return``})).join(``)}let o=[0,0,0,0,0,0],s=[];return e.forEach(e=>{o.forEach((t,n)=>{n>e.level-1&&(o[n]=0)}),o[e.level-1]++;let t=` `.repeat(e.level-1)+a(e);s.push(t)}),s}var Zc;const Qc=`markdown-states.json`;var $c=class extends Ks{canDrop=!0;expandedKeys;constructor(e,t){super(e,t),Zc=e}getId(){return`markdown`}async getHeaders(){let e=this.view.file&&this.plugin.app.metadataCache.getFileCache(this.view.file);return(structuredClone(e?.headings)||[]).map(e=>({title:e.heading,level:e.level,line:e.position.start.line,position:e.position}))}async setHeaders(){R.headers=await this.getHeaders()}async updateHeaders(){let e=await this.getHeaders();R.modifyKeys=mc(R.headers,e),R.headers=e}async jump(e){let t=el(e).line,n={line:t,cursor:{from:{line:t,ch:0},to:{line:t,ch:0}}};this.plugin.startJumping(),Zc.outlineView?.vueInstance.onPosChange(e),activeWindow.setTimeout(()=>{this.view.app.workspace.setActiveLeaf(this.view.leaf,{focus:!0}),this.view.setEphemeralState(n)})}async jumpWhenClick(e){await this.jump(e)}async jumpWithoutFocus(e){let t={line:el(e).line};this.plugin.startJumping(),Zc.outlineView?.vueInstance.onPosChange(e),activeWindow.setTimeout(()=>{this.view.setEphemeralState(t)})}async install(){this.plugin.registerEditorExtension([cc])}async onload(){this.registerEvent(oc.on(`cursorchange`,tl)),this.registerDomEvent(this.view.contentEl,`scroll`,sl,!0)}async onunload(){}toBottom(){let e=this.view.data.split(`
`),t=()=>{this.view.setEphemeralState({line:e.length-5})};t(),activeWindow.setTimeout(t,100)}getDefaultLevel(){let e;return this.view.file&&(e=this.plugin.app.metadataCache.getFileCache(this.view.file)?.frontmatter?.[`qo-default-level`],typeof e==`string`&&(e=parseInt(e))),e||parseInt(Zc.settings.expand_level)}getPath(){return this.view.file?.path??``}onExpandKeysChange(e,t){e===this.view.file?.path&&(this.expandedKeys=t,this.storeMarkdownState())}changeHeadingContent(e,t){!t||!this.view.file||(new jc(this.view.app,this.view.file,this.view.editor,{start:el(e).position.start.offset,end:el(e).position.end.offset},el(e).title).updateHeadingLinks(t),el(e).title=t)}changeHeadingLevel(e,t){if(t<1||t>6)return;let n=el(e).line;el(e).level=t,this.view.editor.setLine(n,`${`#`.repeat(t)} ${el(e).title}`)}async handleDrop(e,t,n){let r=await gc(this.view.data,this.view.app);_c(r,e,t,n),this.view.file&&await Zc.app.vault.modify(this.view.file,Sc(r))}onRightClick(e,t,n,r){wc(n,[Dc(z(`Copy`),[Tc(z(`Heading`),async()=>{await navigator.clipboard.writeText(t.raw)}),Tc(z(`Heading and siblings headings`),async()=>{let{no:e}=t,n=Xc(R.headers,this.plugin.settings.export_format).map(t=>t.slice(R.headers[e].level-1)),r=Hs(e,R.headers),i=n.filter((e,t)=>r.has(t));await navigator.clipboard.writeText(i.join(`
`))}),Tc(z(`Heading and children headings`),async()=>{let{no:e,level:n}=t,r=Xc(R.headers,this.plugin.settings.export_format);r=r.map(t=>t.slice(R.headers[e].level-1));let i=[r[e]];for(let t=e+1;t<R.headers.length&&!(R.headers[t].level<=n);t++)i.push(r[t]);await navigator.clipboard.writeText(i.join(`
`))}),Tc(z(`Link of heading`),async()=>{if(!this.view.file)return;let e=this.plugin.app.fileManager.generateMarkdownLink(this.view.file,``,`#`+t.raw);await navigator.clipboard.writeText(e)}),Tc(z(`Heading and Content`),async()=>{let{no:e,level:n}=t,r=e+1;for(;r<R.headers.length&&!(R.headers[r].level<=n);r++);let i=this.view.data.slice(el(e).position.start.offset,el(r)?.position.start.offset||this.view.data.length);await navigator.clipboard.writeText(i)})]),Oc(),Dc(z(`Change Level`),[Tc(z(`Increase`),()=>{this.changeHeadingLevel(t.no,t.level+1)}),Tc(z(`Increase Recursively`),async()=>{let e=[],n=0;for(let r=t.no;r<R.headers.length;r++){let i=R.headers[r];if(i.level<=t.level&&r!==t.no)break;e.push({...i,no:r}),n=Math.max(n,i.level)}if(n>=6){new l.Notice(z(`Maximum level reached`));return}e.forEach(e=>{this.changeHeadingLevel(e.no,e.level+1)})}),Tc(z(`Decrease`),()=>{this.changeHeadingLevel(t.no,t.level-1)}),Tc(z(`Decrease Recursively`),async()=>{let e=[],n=2**53-1;for(let r=t.no;r<R.headers.length;r++){let i=R.headers[r];if(i.level<=t.level&&r!==t.no)break;e.push({...i,no:r}),n=Math.min(n,i.level)}if(n<=1){new l.Notice(z(`Minimum level reached`));return}e.forEach(e=>{this.changeHeadingLevel(e.no,e.level-1)})})]),Tc(z(`Rename heading`),async()=>{R.currentEditingKey=t.node.key}),Ec(z(`Delete`),async()=>{let e=t.raw,n=`${z(`This will delete heading:`)} ${e}\n\n${z(`This will modify the note content. Continue?`)}`;if(!await ic(this.view.app,{title:z(`Confirm`),message:n,confirmText:z(`Delete`),cancelText:z(`Cancel`),confirmIcon:`trash`,cancelIcon:`x`}))return;let r=await gc(this.view.data,this.view.app);if(vc(r,t.no),!this.view.file){new l.Notice(`No file in markdown view`);return}await Zc.app.vault.modify(this.view.file,Sc(r))})]),n.onHide(r||(()=>{})),n.showAtMouseEvent(e)}async loadMarkdownState(){return Zc.data_manager.loadFileData(Qc,{})}storeMarkdownState(){let e=this.view;if(!e.file?.path)return;let t=Zc.data_manager.getData(`markdown-states.json`)||{},n=t[e.file.path]||{},r=this.expandedKeys||t[e.file.path]?.expandedKeys||[],i=Object.assign({},nl,n,{expandedKeys:r,...e.getEphemeralState()});t[e.file.path]=i,Zc.data_manager.saveFileData(Qc,t)}};function el(e){return R.headers[e]}function tl(e){if(Zc.settings.persist_md_states&&Zc.navigator.storeMarkdownState(),!(!Zc.allow_cursor_change||!Zc.jumping.isResolved()||e)&&Zc.settings.locate_by_cursor){Zc.block_scroll();let e=ol(rl(!1,!0));if(e===void 0)return;Zc.outlineView?.vueInstance.onPosChange(e)}}var nl=Object.freeze({scroll:0,cursor:{from:{line:0,ch:0},to:{line:0,ch:0}},expandedKeys:[]});function rl(e,t){let n=Zc.navigator.view;return n.editor?Zc.settings.locate_by_cursor&&!e?t?n.editor.getCursor(`from`).line:Math.ceil(n.previewMode.getScroll()):t?il(n.editor.cm):al(n):0}function il(e){let{y:t,height:n}=e.dom.getBoundingClientRect(),r=t+n/2,i=e.viewportLineBlocks,a=0;return i.forEach(t=>{let n=e.domAtPos(t.from).node,i=(n.nodeName==`#text`?n.parentNode:n).getBoundingClientRect();i.y+i.height/2<=r&&(a=e.state.doc.lineAt(t.from).number)}),Math.max(a-2,0)}function al(e){let t=e.previewMode.renderer,n=t.previewEl,r=n.getBoundingClientRect(),i=r.y+r.height/2,a=n.querySelectorAll(`.markdown-preview-sizer>div[class|=el]`),o=0;return a.forEach(e=>{let{y:n}=e.getBoundingClientRect();if(n<=i){let n=t.getSectionForElement(e);n&&(o=n.lineStart||n.start.line)}}),o}function ol(e){let t=null,n=R.headers.length;for(;--n>=0;)if(el(n).line<=e){t=el(n);break}if(t)return n}var sl=(0,l.debounce)(cl,150,!1);function cl(e){if(Zc.settings.persist_md_states&&Zc.navigator.storeMarkdownState(),!Zc.allow_scroll)return;if(!Zc.jumping.isResolved()){Zc.jumping.resolve();return}let t=e.target;if(!t.classList.contains(`markdown-preview-view`)&&!t.classList.contains(`cm-scroller`)&&!t.classList.contains(`outliner-plugin-list-lines-scroller`))return;let n=ol(rl(!0,Zc.navigator.view.getMode()===`source`));n!==void 0&&Zc.outlineView?.vueInstance.onPosChange(n)}var ll=class extends Ks{constructor(e,t){super(e,t)}async onload(){this.plugin.settings.vimlize_canvas&&yl(this.view)}async install(){let e=this.plugin;e.klasses.canvas||(this.patchCanvas(this.view.canvas),e.klasses.canvas=this.view.constructor),e.registerEvent(oc.on(`canvas-change`,()=>{e.refresh()})),e.registerEvent(oc.on(`canvas-selection-change`,async t=>{if(t.size===0||t.size>1){let t=e.app.workspace.getActiveFileView();if(!t)return;await e.updateNavAndRefresh(t.getViewType(),t);return}let n=[...t][0];if(!Object.prototype.hasOwnProperty.call(n,`nodeEl`))return;let r=n;if(Tl(r)&&r.filePath.endsWith(`.md`)){let t=r.child;await e.updateNavAndRefresh(`embed-markdown-file`,t);return}if(El(r)){let t=r.child;await e.updateNavAndRefresh(`embed-markdown-text`,t);return}await e.updateNavAndRefresh(`dummy`,null)}))}async jump(e){let t=this.view.canvas.nodes.get(R.headers[e].id);t!==void 0&&(this.view.canvas.zoomToBbox(t.bbox),this.view.canvas.selectOnly(t),this.view.setEphemeralState({focus:!0}))}async jumpWithoutFocus(e){let t=this.view.canvas.nodes.get(R.headers[e].id);t!==void 0&&this.view.canvas.zoomToBbox(t.bbox)}async setHeaders(){R.headers=await this.getHeaders()}async getHeaders(){let e=this.view.canvas.data.nodes;return e?(e=e.filter(e=>this.plugin.settings.shown_node_types.includes(e.type)),ul(e,this.plugin.settings.canvas_sort_by,this.plugin.settings.heading_truncate_length)):[]}async updateHeaders(){await this.setHeaders()}getPath(){return this.view.file?.path??``}getId(){return`canvas`}patchCanvas(e){this.plugin.register(d(e.constructor.prototype,{requestSave(e){return function(...t){return oc.trigger(`canvas-change`),e.apply(this,t)}},updateSelection(e){return function(...t){e.apply(this,t),oc.trigger(`canvas-selection-change`,this.selection)}}}))}};function ul(e,t=`area`,n=20){let r=e.slice().sort((e,n)=>t===`name_asc`?hl(e).localeCompare(hl(n),void 0,{numeric:!0}):t===`name_desc`?hl(n).localeCompare(hl(e),void 0,{numeric:!0}):-pl(e,n)),i=[];for(let e=0;e<r.length;e++)_l(i,r[e]);let a=[];return gl(i,1,(e,t)=>{a.push({level:t,title:hl(e,n),id:e.id,icon:dl(e)})}),a}function dl(e){if(e.type===`group`)return`create-group`;if(e.type===`text`)return`lucide-sticky-note`;if(e.type===`link`)return`lucide-globe-2`;if(e.type===`file`){if(e.file.endsWith(`.md`))return`lucide-file-text`;if(e.file.endsWith(`.mp3`))return`lucide-music-2`;if(e.file.endsWith(`.mp4`))return`lucide-youtube`;if(e.file.endsWith(`.png`)||e.file.endsWith(`.jpg`))return`lucide-file-image`}return`lucide-link`}var fl=e=>e.height*e.width;function pl(e,t){return fl(e)-fl(t)}var ml={};function hl(e,t=20){let n;switch(e.type){case`text`:n=e.text.split(`
`)[0],n=n.slice(n.search(/[^#\s].*/)),n.length>t&&(n=n.substring(0,t)+`...`);break;case`file`:n=e.file.split(`/`).slice(-1)[0];break;case`link`:ml[e.url]?n=ml[e.url]:(n=e.url,(0,l.request)(e.url).then(t=>{ml[e.url]=/<title>(.*)<\/title>/.exec(t)?.[1]||``}).catch(()=>{}));break;case`group`:n=e.label||`Unnamed Group`;break}return n}function gl(e,t,n){for(let r=0;r<e.length;r++)n(e[r].node,t),gl(e[r].children,t+1,n)}function _l(e,t){let n=!1;for(let r=0;r<e.length;r++)e[r].node.type===`group`&&vl(t,e[r].node)&&(n=!0,_l(e[r].children,t));n||e.push({node:t,children:[]})}function vl(e,t){return e.x>=t.x&&e.y>=t.y&&e.x+e.width<=t.x+t.width&&e.y+e.height<=t.y+t.height}function yl(e){if(e.__vimed)return;e.scope?.register([],`Escape`,t=>{bl(t)||(t.preventDefault(),e.canvas.deselectAll())}),e.scope?.register([],`J`,t=>{bl(t)||(t.preventDefault(),Sl(e.canvas,`down`))}),e.scope?.register([],`K`,t=>{bl(t)||(t.preventDefault(),Sl(e.canvas,`up`))}),e.scope?.register([],`H`,t=>{bl(t)||(t.preventDefault(),Sl(e.canvas,`left`))}),e.scope?.register([],`L`,t=>{bl(t)||(t.preventDefault(),Sl(e.canvas,`right`))}),e.scope?.register([],`I`,t=>{if(bl(t))return;let n=xl(e.canvas);n&&(t.preventDefault(),n.startEditing())});let t=null;e.scope?.register([],`Z`,n=>{if(!bl(n)){if(n.preventDefault(),t===`Z`){let n=xl(e.canvas);if(!n)return;t=null,e.canvas.zoomToBbox(n.bbox);return}t=`Z`,activeWindow.setTimeout(()=>{t=null},300)}}),e.scope?.register([],`A`,n=>{if(!bl(n)&&(n.preventDefault(),t===`Z`)){t=null,e.canvas.zoomToFit();return}}),e.__vimed=!0}function bl(e){let t=e.targetNode;return t?.instanceOf(HTMLElement)&&t.contentEditable===`true`}function xl(e){let t=[...e.selection];return t.length!==1||e.edges.has(t[0].id)?null:t[0]}function Sl(e,t){if(e.selection.size>1)return;if(e.selection.size===0){let t=e.getContainingNodes(e.getViewportBBox());t.length>0&&e.selectOnly(t[0]);return}let n=[...e.selection.values()][0];if(e.edges.has(n.id))return;let r=n,i=r.bbox,a=[...e.nodes.values()].filter(e=>e!==r&&e.unknownData.type!==`group`);switch(t){case`up`:{let e=a.filter(e=>e.bbox.maxY<i.minY),t=e.filter(e=>Cl(e.bbox,i,`x`));a=t.length>0?t.sort((e,t)=>t.bbox.maxY-e.bbox.maxY):e.sort((e,t)=>wl(e.bbox,i)-wl(t.bbox,i));break}case`down`:{let e=a.filter(e=>e.bbox.minY>i.maxY),t=e.filter(e=>Cl(e.bbox,i,`x`));a=t.length>0?t.sort((e,t)=>e.bbox.minY-t.bbox.minY):e.sort((e,t)=>wl(e.bbox,i)-wl(t.bbox,i));break}case`left`:{let e=a.filter(e=>e.bbox.maxX<i.minX),t=e.filter(e=>Cl(e.bbox,i,`y`));a=t.length>0?t.sort((e,t)=>t.bbox.maxX-e.bbox.maxX):e.sort((e,t)=>wl(e.bbox,i)-wl(t.bbox,i));break}case`right`:{let e=a.filter(e=>e.bbox.minX>i.maxX),t=e.filter(e=>Cl(e.bbox,i,`y`));a=t.length>0?t.sort((e,t)=>e.bbox.minX-t.bbox.minX):e.sort((e,t)=>wl(e.bbox,i)-wl(t.bbox,i));break}}let o=a[0];o&&(e.selectOnly(o),e.panIntoView(o.bbox))}function Cl(e,t,n){return n===`x`?e.minX<t.maxX&&e.maxX>t.minX:e.minY<t.maxY&&e.maxY>t.minY}function wl(e,t){let n={x:e.minX+(e.maxX-e.minX)/2,y:e.minY+(e.maxY-e.minY)/2},r={x:t.minX+(t.maxX-t.minX)/2,y:t.minY+(t.maxY-t.minY)/2};return Math.sqrt((n.x-r.x)**2+(n.y-r.y)**2)}function Tl(e){return e.unknownData.type===`file`}function El(e){return e.unknownData.type===`text`}var Dl=class extends $c{getId(){return`kanban`}canDrop=!1;async install(){$c._installed||=(await super.install(),!0)}async jump(e){activeDocument.querySelectorAll(`.workspace-leaf[style=""] .kanban-plugin__lane-wrapper`)[e]?.scrollIntoView({block:`center`,inline:`center`,behavior:`smooth`})}};function Ol(e){return R.headers[e]}var kl=class extends Ks{constructor(e,t){super(e,t)}getId(){return`embed-markdown-file`}async jump(e){let t=Ol(e).line;this.plugin.startJumping(),this.plugin.outlineView?.vueInstance.onPosChange(e),activeWindow.setTimeout(()=>{jl(this.view,{line:t,focus:!0})})}async jumpWithoutFocus(e){let t=Ol(e).line;this.plugin.startJumping(),this.plugin.outlineView?.vueInstance.onPosChange(e),activeWindow.setTimeout(()=>{jl(this.view,{line:t})})}async getHeaders(){return this.view.file?(this.plugin.app.metadataCache.getFileCache(this.view.file)?.headings||[]).map(e=>({level:e.level,title:e.heading,line:e.position.start.line,position:e.position})):[]}async setHeaders(){R.headers=await this.getHeaders()}async updateHeaders(){let e=await this.getHeaders();R.modifyKeys=mc(R.headers,e),R.headers=e}},Al=class extends Ks{constructor(e,t){super(e,t)}getId(){return`embed-markdown-text`}async jump(e){let t=Ol(e).line;jl(this.view,{line:t,focus:!0})}async jumpWithoutFocus(e){let t=Ol(e).line;jl(this.view,{line:t})}async getHeaders(){let{headings:e}=await hc(this.plugin.app,this.view.text);return(e||[]).map(e=>({...e,title:e.heading,line:e.position.start.line}))}async setHeaders(){R.headers=await this.getHeaders()}async updateHeaders(){let e=await this.getHeaders();R.modifyKeys=mc(R.headers,e),R.headers=e}};function jl(e,t){e.getMode()===`source`?(Ml(e.editMode.editor,t.line),t.focus&&e.editMode.editor.focus()):(Nl(e.previewMode.renderer,t.line),e.previewMode.containerEl.tabIndex=-1,t.focus&&e.previewMode.containerEl.focus())}function Ml(e,t){let n={from:{line:t,ch:0},to:{line:t,ch:e.getLine(t).length}};e.addHighlights([n],`is-flashing`,!0,!0),e.setCursor(n.from),e.scrollIntoView(n,!0)}function Nl(e,t){e.applyScroll(t,{highlight:!0,center:!0})}var Pl=3e3,Fl=class extends Ks{outline=[];view;get pdfViewer(){return this.view.viewer.child?.pdfViewer}constructor(e,t){super(e,t),this.view=t}async onload(){}getId(){return`pdf`}async jump(e){let t=Il(e).dest;t&&this.pdfViewer?.pdfOutlineViewer.linkService.goToDestination(t)}async getHeaders(){return Ll(await this.waitForPdfOutline()||[],1)}async setHeaders(){R.headers=await this.getHeaders()}async updateHeaders(){await this.setHeaders()}waitForPdfOutline(){return new Promise(e=>{let t=this.pdfViewer,n=t?.pdfOutlineViewer;if(!t||!n){e(null);return}if(n.outline){e(n.outline);return}let r=!1,i=n=>{r||(r=!0,window.clearTimeout(a),t.eventBus._off(`outlineloaded`,o),e(n))},a=window.setTimeout(()=>{i(null)},Pl),o=e=>{i(e.outlineCount>0?n.outline:null)};t.eventBus._on(`outlineloaded`,o)})}};function Il(e){return R.headers[e]}function Ll(e,t){let n=[];for(let r of e)n.push(Rl(r,t)),r.items&&n.push(...Ll(r.items,t+1));return n}function Rl(e,t){return{level:t,title:e.title,dest:e.dest}}var zl={dummy:qs,markdown:$c,kanban:Dl,canvas:ll,pdf:Fl,"embed-markdown-file":kl,"embed-markdown-text":Al};function Bl(e){return e in zl}function Vl(e,t,n){let r=zl[e];return new r(t,n)}function Hl(e,t,n){return Bl(e)?Vl(e,t,n):new qs(t,n)}function Ul(e){let t=`.`,n=`__`,r=`--`,i;if(e){let i=e.blockPrefix;i&&(t=i),i=e.elementPrefix,i&&(n=i),i=e.modifierPrefix,i&&(r=i)}let a={install(e){i=e.c;let t=e.context;t.bem={},t.bem.b=null,t.bem.els=null}};function o(e){let n,r;return{before(e){n=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=n,e.bem.els=r},$({context:n,props:r}){return e=typeof e==`string`?e:e({context:n,props:r}),n.bem.b=e,`${r?.bPrefix||t}${n.bem.b}`}}}function s(e){let r;return{before(e){r=e.bem.els},after(e){e.bem.els=r},$({context:r,props:i}){return e=typeof e==`string`?e:e({context:r,props:i}),r.bem.els=e.split(`,`).map(e=>e.trim()),r.bem.els.map(e=>`${i?.bPrefix||t}${r.bem.b}${n}${e}`).join(`, `)}}}function c(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=e.split(`,`).map(e=>e.trim());function s(e){return o.map(o=>`&${a?.bPrefix||t}${i.bem.b}${e===void 0?``:`${n}${e}`}${r}${o}`).join(`, `)}let c=i.bem.els;return c===null?s():s(c[0])}}}function l(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=i.bem.els;return`&:not(${a?.bPrefix||t}${i.bem.b}${o!==null&&o.length>0?`${n}${o[0]}`:``}${r}${e})`}}}return Object.assign(a,{cB:((...e)=>i(o(e[0]),e[1],e[2])),cE:((...e)=>i(s(e[0]),e[1],e[2])),cM:((...e)=>i(c(e[0]),e[1],e[2])),cNotM:((...e)=>i(l(e[0]),e[1],e[2]))}),a}function Wl(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var Gl=/\s*,(?![^(]*\))\s*/g,Kl=/\s+/g;function ql(e,t){let n=[];return t.split(Gl).forEach(t=>{let r=Wl(t);if(r){if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}}else{e.forEach(e=>{n.push((e&&e+` `)+t)});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function Jl(e,t){let n=[];return t.split(Gl).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function Yl(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?ql(t,e):Jl(t,e))}),t.join(`, `).replace(Kl,` `)}function Xl(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function Zl(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function Ql(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}function $l(e){return e?/^\s*@(s|m)/.test(e):!1}var eu=/[A-Z]/g;function tu(e){return e.replace(eu,e=>`-`+e.toLowerCase())}function nu(e,t=` `){return typeof e==`object`&&e?` {
`+Object.entries(e).map(e=>t+` ${tu(e[0])}: ${e[1]};`).join(`
`)+`
`+t+`}`:`: ${e};`}function ru(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function iu(e,t,n,r){if(!t)return``;let i=ru(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` {
}`:``;let o=e?[e+` {`]:[];return a.forEach(e=>{let t=i[e];if(e===`raw`){o.push(`
`+t+`
`);return}e=tu(e),t!=null&&o.push(` ${e}${nu(t)}`)}),e&&o.push(`}`),o.join(`
`)}function au(e,t,n){e&&e.forEach(e=>{if(Array.isArray(e))au(e,t,n);else if(typeof e==`function`){let r=e(t);Array.isArray(r)?au(r,t,n):r&&n(r)}else e&&n(e)})}function ou(e,t,n,r,i){let a=e.$,o=``;if(!a||typeof a==`string`)$l(a)?o=a:t.push(a);else if(typeof a==`function`){let e=a({context:r.context,props:i});$l(e)?o=e:t.push(e)}else if(a.before&&a.before(r.context),!a.$||typeof a.$==`string`)$l(a.$)?o=a.$:t.push(a.$);else if(a.$){let e=a.$({context:r.context,props:i});$l(e)?o=e:t.push(e)}let s=Yl(t),c=iu(s,e.props,r,i);o?n.push(`${o} {`):c.length&&n.push(c),e.children&&au(e.children,{context:r.context,props:i},e=>{if(typeof e==`string`){let t=iu(s,{raw:e},r,i);n.push(t)}else ou(e,t,n,r,i)}),t.pop(),o&&n.push(`}`),a&&a.after&&a.after(r.context)}function su(e,t,n){let r=[];return ou(e,[],r,t,n),r.join(`
`)}function cu(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var lu=cu;typeof window<`u`&&(window.__cssrContext={});function uu(e,t,n,r){let{els:i}=t;if(n===void 0)i.forEach(Xl),t.els=[];else{let e=Zl(n,r);e&&i.includes(e)&&(Xl(e),t.els=i.filter(t=>t!==e))}}function du(e,t){e.push(t)}function fu(e,t,n,r,i,a,o,s,c){let l;if(n===void 0&&(l=t.render(r),n=lu(l)),c){c.adapter(n,l??t.render(r));return}s===void 0&&(s=document.head);let u=Zl(n,s);if(u!==null&&!a)return u;let d=u??Ql(n);if(l===void 0&&(l=t.render(r)),d.textContent=l,u!==null)return u;if(o){let e=s.querySelector(`meta[name="${o}"]`);if(e)return s.insertBefore(d,e),du(t.els,d),d}return i?s.insertBefore(d,s.querySelector(`style, link`)):s.appendChild(d),du(t.els,d),d}function pu(e){return su(this,this.instance,e)}function mu(e={}){let{id:t,ssr:n,props:r,head:i=!1,force:a=!1,anchorMetaName:o,parent:s}=e;return fu(this.instance,this,t,r,i,a,o,s,n)}function hu(e={}){let{id:t,parent:n}=e;uu(this.instance,this,t,n)}var gu=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:pu,mount:mu,unmount:hu}};const _u=function(e,t,n,r){return Array.isArray(t)?gu(e,{$:null},null,t):Array.isArray(n)?gu(e,t,null,n):Array.isArray(r)?gu(e,t,n,r):gu(e,t,n,null)};function vu(e={}){let t={c:((...e)=>_u(t,...e)),use:(e,...n)=>e.install(t,...n),find:Zl,context:{},config:e};return t}function yu(e,t){if(e===void 0)return!1;if(t){let{context:{ids:n}}=t;return n.has(e)}return Zl(e)!==null}var bu=`n`,xu=`.n-`,Su=`__`,Cu=`--`,wu=vu(),Tu=Ul({blockPrefix:xu,elementPrefix:Su,modifierPrefix:Cu});wu.use(Tu);var{c:B,find:Eu}=wu,{cB:V,cE:H,cM:U,cNotM:Du}=Tu;function Ou(e){return B(({props:{bPrefix:e}})=>`${e||xu}modal, ${e||xu}drawer`,[e])}function ku(e){return B(({props:{bPrefix:e}})=>`${e||xu}popover`,[e])}function W(e,t){return e+(t===`default`?``:t.replace(/^[a-z]/,e=>e.toUpperCase()))}var Au=[],ju=new WeakMap;function Mu(){Au.forEach(e=>e(...ju.get(e))),Au=[]}function Nu(e,...t){ju.set(e,t),!Au.includes(e)&&Au.push(e)===1&&requestAnimationFrame(Mu)}function Pu(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function Fu(e){return e.composedPath()[0]||null}function Iu(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function Lu(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function Ru(e,t){let n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw Error(`[seemly/getMargin]:`+e+` is not a valid value.`)}return t===void 0?r:r[t]}var zu={aliceblue:`#F0F8FF`,antiquewhite:`#FAEBD7`,aqua:`#0FF`,aquamarine:`#7FFFD4`,azure:`#F0FFFF`,beige:`#F5F5DC`,bisque:`#FFE4C4`,black:`#000`,blanchedalmond:`#FFEBCD`,blue:`#00F`,blueviolet:`#8A2BE2`,brown:`#A52A2A`,burlywood:`#DEB887`,cadetblue:`#5F9EA0`,chartreuse:`#7FFF00`,chocolate:`#D2691E`,coral:`#FF7F50`,cornflowerblue:`#6495ED`,cornsilk:`#FFF8DC`,crimson:`#DC143C`,cyan:`#0FF`,darkblue:`#00008B`,darkcyan:`#008B8B`,darkgoldenrod:`#B8860B`,darkgray:`#A9A9A9`,darkgrey:`#A9A9A9`,darkgreen:`#006400`,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:`#F0F`,gainsboro:`#DCDCDC`,ghostwhite:`#F8F8FF`,gold:`#FFD700`,goldenrod:`#DAA520`,gray:`#808080`,grey:`#808080`,green:`#008000`,greenyellow:`#ADFF2F`,honeydew:`#F0FFF0`,hotpink:`#FF69B4`,indianred:`#CD5C5C`,indigo:`#4B0082`,ivory:`#FFFFF0`,khaki:`#F0E68C`,lavender:`#E6E6FA`,lavenderblush:`#FFF0F5`,lawngreen:`#7CFC00`,lemonchiffon:`#FFFACD`,lightblue:`#ADD8E6`,lightcoral:`#F08080`,lightcyan:`#E0FFFF`,lightgoldenrodyellow:`#FAFAD2`,lightgray:`#D3D3D3`,lightgrey:`#D3D3D3`,lightgreen:`#90EE90`,lightpink:`#FFB6C1`,lightsalmon:`#FFA07A`,lightseagreen:`#20B2AA`,lightskyblue:`#87CEFA`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#B0C4DE`,lightyellow:`#FFFFE0`,lime:`#0F0`,limegreen:`#32CD32`,linen:`#FAF0E6`,magenta:`#F0F`,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:`#F00`,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:`#FFF`,whitesmoke:`#F5F5F5`,yellow:`#FF0`,yellowgreen:`#9ACD32`,transparent:`#0000`};function Bu(e,t,n){t/=100,n/=100;let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function Vu(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0)*255,i(8)*255,i(4)*255]}var Hu=`^\\s*`,Uu=`\\s*$`,Wu=`\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*`,Gu=`\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*`,Ku=`([0-9A-Fa-f])`,qu=`([0-9A-Fa-f]{2})`,Ju=RegExp(`${Hu}hsl\\s*\\(${Gu},${Wu},${Wu}\\)${Uu}`),Yu=RegExp(`${Hu}hsv\\s*\\(${Gu},${Wu},${Wu}\\)${Uu}`),Xu=RegExp(`${Hu}hsla\\s*\\(${Gu},${Wu},${Wu},${Gu}\\)${Uu}`),Zu=RegExp(`${Hu}hsva\\s*\\(${Gu},${Wu},${Wu},${Gu}\\)${Uu}`),Qu=RegExp(`${Hu}rgb\\s*\\(${Gu},${Gu},${Gu}\\)${Uu}`),$u=RegExp(`${Hu}rgba\\s*\\(${Gu},${Gu},${Gu},${Gu}\\)${Uu}`),ed=RegExp(`${Hu}#${Ku}${Ku}${Ku}${Uu}`),td=RegExp(`${Hu}#${qu}${qu}${qu}${Uu}`),nd=RegExp(`${Hu}#${Ku}${Ku}${Ku}${Ku}${Uu}`),rd=RegExp(`${Hu}#${qu}${qu}${qu}${qu}${Uu}`);function id(e){return parseInt(e,16)}function ad(e){try{let t;if(t=Xu.exec(e))return[pd(t[1]),hd(t[5]),hd(t[9]),fd(t[13])];if(t=Ju.exec(e))return[pd(t[1]),hd(t[5]),hd(t[9]),1];throw Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(e){throw e}}function od(e){try{let t;if(t=Zu.exec(e))return[pd(t[1]),hd(t[5]),hd(t[9]),fd(t[13])];if(t=Yu.exec(e))return[pd(t[1]),hd(t[5]),hd(t[9]),1];throw Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(e){throw e}}function sd(e){try{let t;if(t=td.exec(e))return[id(t[1]),id(t[2]),id(t[3]),1];if(t=Qu.exec(e))return[md(t[1]),md(t[5]),md(t[9]),1];if(t=$u.exec(e))return[md(t[1]),md(t[5]),md(t[9]),fd(t[13])];if(t=ed.exec(e))return[id(t[1]+t[1]),id(t[2]+t[2]),id(t[3]+t[3]),1];if(t=rd.exec(e))return[id(t[1]),id(t[2]),id(t[3]),fd(id(t[4])/255)];if(t=nd.exec(e))return[id(t[1]+t[1]),id(t[2]+t[2]),id(t[3]+t[3]),fd(id(t[4]+t[4])/255)];if(e in zu)return sd(zu[e]);if(Ju.test(e)||Xu.test(e)){let[t,n,r,i]=ad(e);return[...Vu(t,n,r),i]}else if(Yu.test(e)||Zu.test(e)){let[t,n,r,i]=od(e);return[...Bu(t,n,r),i]}throw Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(e){throw e}}function cd(e){return e>1?1:e<0?0:e}function ld(e,t,n,r){return`rgba(${md(e)}, ${md(t)}, ${md(n)}, ${cd(r)})`}function ud(e,t,n,r,i){return md((e*t*(1-r)+n*r)/i)}function G(e,t){Array.isArray(e)||(e=sd(e)),Array.isArray(t)||(t=sd(t));let n=e[3],r=t[3],i=fd(n+r-n*r);return ld(ud(e[0],n,t[0],r,i),ud(e[1],n,t[1],r,i),ud(e[2],n,t[2],r,i),i)}function K(e,t){let[n,r,i,a=1]=Array.isArray(e)?e:sd(e);return typeof t.alpha==`number`?ld(n,r,i,t.alpha):ld(n,r,i,a)}function dd(e,t){let[n,r,i,a=1]=Array.isArray(e)?e:sd(e),{lightness:o=1,alpha:s=1}=t;return gd([n*o,r*o,i*o,a*s])}function fd(e){let t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function pd(e){let t=Math.round(Number(e));return t>=360||t<0?0:t}function md(e){let t=Math.round(Number(e));return t>255?255:t<0?0:t}function hd(e){let t=Math.round(Number(e));return t>100?100:t<0?0:t}function gd(e){let[t,n,r]=e;return 3 in e?`rgba(${md(t)}, ${md(n)}, ${md(r)}, ${fd(e[3])})`:`rgba(${md(t)}, ${md(n)}, ${md(r)}, 1)`}function _d(e=8){return Math.random().toString(16).slice(2,2+e)}function vd(e,t){let n=[];for(let r=0;r<e;++r)n.push(t);return n}function yd(e){return e.composedPath()[0]}var bd={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function xd(e,t,n){if(e===`mousemoveoutside`){let e=e=>{t.contains(yd(e))||n(e)};return{mousemove:e,touchstart:e}}else if(e===`clickoutside`){let e=!1,r=n=>{e=!t.contains(yd(n))},i=r=>{e&&(t.contains(yd(r))||n(r))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Sd(e,t,n){let r=bd[e],i=r.get(t);i===void 0&&r.set(t,i=new WeakMap);let a=i.get(n);return a===void 0&&i.set(n,a=xd(e,t,n)),a}function Cd(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=Sd(e,t,n);return Object.keys(i).forEach(e=>{Ed(e,document,i[e],r)}),!0}return!1}function wd(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=Sd(e,t,n);return Object.keys(i).forEach(e=>{Dd(e,document,i[e],r)}),!0}return!1}function Td(){if(typeof window>`u`)return{on:()=>{},off:()=>{}};let e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function i(e,t,n){let r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function a(e,t){e[t]=Event.prototype[t]}let o=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,`currentTarget`);function c(){return o.get(this)??null}function l(e,t){s!==void 0&&Object.defineProperty(e,`currentTarget`,{configurable:!0,enumerable:!0,get:t??s.get})}let u={bubble:{},capture:{}},d={};function f(){let s=function(s){let{type:d,eventPhase:f,bubbles:p}=s,m=yd(s);if(f===2)return;let h=f===1?`capture`:`bubble`,g=m,_=[];for(;g===null&&(g=window),_.push(g),g!==window;)g=g.parentNode||null;let v=u.capture[d],y=u.bubble[d];if(i(s,`stopPropagation`,n),i(s,`stopImmediatePropagation`,r),l(s,c),h===`capture`){if(v===void 0)return;for(let n=_.length-1;n>=0&&!e.has(s);--n){let e=_[n],r=v.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}if(n===0&&!p&&y!==void 0){let n=y.get(e);if(n!==void 0)for(let e of n){if(t.has(s))break;e(s)}}}}else if(h===`bubble`){if(y===void 0)return;for(let n=0;n<_.length&&!e.has(s);++n){let e=_[n],r=y.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}}}a(s,`stopPropagation`),a(s,`stopImmediatePropagation`),l(s)};return s.displayName=`evtdUnifiedHandler`,s}function p(){let e=function(e){let{type:t,eventPhase:n}=e;if(n!==2)return;let r=d[t];r!==void 0&&r.forEach(t=>t(e))};return e.displayName=`evtdUnifiedWindowEventHandler`,e}let m=f(),h=p();function g(e,t){let n=u[e];return n[t]===void 0&&(n[t]=new Map,window.addEventListener(t,m,e===`capture`)),n[t]}function _(e){return d[e]===void 0&&(d[e]=new Set,window.addEventListener(e,h)),d[e]}function v(e,t){let n=e.get(t);return n===void 0&&e.set(t,n=new Set),n}function y(e,t,n,r){let i=u[t][n];if(i!==void 0){let t=i.get(e);if(t!==void 0&&t.has(r))return!0}return!1}function b(e,t){let n=d[e];return!!(n!==void 0&&n.has(t))}function x(e,t,n,r){let i;if(i=typeof r==`object`&&r.once===!0?a=>{S(e,t,i,r),n(a)}:n,Cd(e,t,i,r))return;let a=v(g(r===!0||typeof r==`object`&&r.capture===!0?`capture`:`bubble`,e),t);if(a.has(i)||a.add(i),t===window){let t=_(e);t.has(i)||t.add(i)}}function S(e,t,n,r){if(wd(e,t,n,r))return;let i=r===!0||typeof r==`object`&&r.capture===!0,a=i?`capture`:`bubble`,o=g(a,e),s=v(o,t);if(t===window&&!y(t,i?`bubble`:`capture`,e,n)&&b(e,n)){let t=d[e];t.delete(n),t.size===0&&(window.removeEventListener(e,h),d[e]=void 0)}s.has(n)&&s.delete(n),s.size===0&&o.delete(t),o.size===0&&(window.removeEventListener(e,m,a===`capture`),u[a][e]=void 0)}return{on:x,off:S}}var{on:Ed,off:Dd}=Td();function Od(e){let t=M(!!e.value);if(t.value)return Qt(t);let n=nr(e,e=>{e&&(t.value=!0,n())});return Qt(t)}function kd(e){let t=I(e),n=M(t.value);return nr(t,e=>{n.value=e}),typeof e==`function`?n:{__v_isRef:!0,get value(){return n.value},set value(t){e.set(t)}}}var Ad=kd;const jd=typeof window<`u`;var Md,Nd,Pd=()=>{Md=jd?document?.fonts?.ready:void 0,Nd=!1,Md===void 0?Nd=!0:Md.then(()=>{Nd=!0})};Pd();function Fd(e){if(Nd)return;let t=!1;Yr(()=>{Nd||Md?.then(()=>{t||e()})}),Qr(()=>{t=!0})}function Id(e,t){return nr(e,e=>{e!==void 0&&(t.value=e)}),I(()=>e.value===void 0?t.value:e.value)}function Ld(){let e=M(!1);return Yr(()=>{e.value=!0}),Qt(e)}const Rd=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function zd(){return Rd}function Bd(e){return e}const Vd=Bd(`n-internal-select-menu`),Hd=Bd(`n-internal-select-menu-body`),Ud=Bd(`n-drawer-body`),Wd=Bd(`n-drawer`),Gd=Bd(`n-modal-body`),Kd=Bd(`n-modal-provider`),qd=Bd(`n-modal`),Jd=Bd(`n-popover-body`);var Yd=`__disabled__`;function Xd(e){let t=Qn(Gd,null),n=Qn(Ud,null),r=Qn(Jd,null),i=Qn(Hd,null),a=M();if(typeof document<`u`){a.value=document.fullscreenElement;let e=()=>{a.value=document.fullscreenElement};Yr(()=>{Ed(`fullscreenchange`,document,e)}),Qr(()=>{Dd(`fullscreenchange`,document,e)})}return Ad(()=>{let{to:o}=e;return o===void 0?t?.value?t.value.$el??t.value:n?.value?n.value:r?.value?r.value:i?.value?i.value:o??(a.value||`body`):o===!1?Yd:o===!0?a.value||`body`:o})}Xd.tdkey=Yd,Xd.propTo={type:[String,Object,Boolean],default:void 0};const Zd=typeof document<`u`&&typeof window<`u`;function Qd(e){let t={isDeactivated:!1},n=!1;return Hr(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),Ur(()=>{t.isDeactivated=!0,n||=!0}),t}function $d(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function ef(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(Ha(String(e)));return}if(Array.isArray(e)){ef(e,t,n);return}if(e.type===ba){if(e.children===null)return;Array.isArray(e.children)&&ef(e.children,t,n)}else e.type!==Sa&&n.push(e)}}),n}function tf(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);let i=ef(r());if(i.length===1)return i[0];throw Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}var nf=null;function rf(){if(nf===null&&(nf=document.getElementById(`v-binder-view-measurer`),nf===null)){nf=document.createElement(`div`),nf.id=`v-binder-view-measurer`;let{style:e}=nf;e.position=`fixed`,e.left=`0`,e.right=`0`,e.top=`0`,e.bottom=`0`,e.pointerEvents=`none`,e.visibility=`hidden`,document.body.appendChild(nf)}return nf.getBoundingClientRect()}function af(e,t){let n=rf();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function of(e){let t=e.getBoundingClientRect(),n=rf();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function sf(e){return e.nodeType===9?null:e.parentNode}function cf(e){if(e===null)return null;let t=sf(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){let{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+n))return t}return cf(t)}var lf=F({name:`Binder`,props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){Zn(`VBinder`,$a()?.proxy);let t=Qn(`VBinder`,null),n=M(null),r=r=>{n.value=r,t&&e.syncTargetWithParent&&t.setTargetRef(r)},i=[],a=()=>{let e=n.value;for(;e=cf(e),e!==null;)i.push(e);for(let e of i)Ed(`scroll`,e,u,!0)},o=()=>{for(let e of i)Dd(`scroll`,e,u,!0);i=[]},s=new Set,c=e=>{s.size===0&&a(),s.has(e)||s.add(e)},l=e=>{s.has(e)&&s.delete(e),s.size===0&&o()},u=()=>{Nu(d)},d=()=>{s.forEach(e=>e())},f=new Set,p=e=>{f.size===0&&Ed(`resize`,window,h),f.has(e)||f.add(e)},m=e=>{f.has(e)&&f.delete(e),f.size===0&&Dd(`resize`,window,h)},h=()=>{f.forEach(e=>e())};return Qr(()=>{Dd(`resize`,window,h),o()}),{targetRef:n,setTargetRef:r,addScrollListener:c,removeScrollListener:l,addResizeListener:p,removeResizeListener:m}},render(){return $d(`binder`,this.$slots)}}),uf=lf,df=F({name:`Target`,setup(){let{setTargetRef:e,syncTarget:t}=Qn(`VBinder`);return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){let{syncTarget:e,setTargetDirective:t}=this;return e?Yn(tf(`follower`,this.$slots),[[t]]):tf(`follower`,this.$slots)}});function ff(e,t){console.error(`[vdirs/${e}]: ${t}`)}var pf=class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){let{elementZIndex:n}=this;if(t!==void 0){e.style.zIndex=`${t}`,n.delete(e);return}let{nextZIndex:r}=this;n.has(e)&&n.get(e)+1===this.nextZIndex||(e.style.zIndex=`${r}`,n.set(e,r),this.nextZIndex=r+1,this.squashState())}unregister(e,t){let{elementZIndex:n}=this;n.has(e)?n.delete(e):t===void 0&&ff(`z-index-manager/unregister-element`,`Element not found when unregistering.`),this.squashState()}squashState(){let{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){let e=Array.from(this.elementZIndex.entries());e.sort((e,t)=>e[1]-t[1]),this.nextZIndex=2e3,e.forEach(e=>{let t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)})}},mf=new pf,hf=`@@ziContext`,gf={mounted(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n;e[hf]={enabled:!!i,initialized:!1},i&&(mf.ensureZIndex(e,r),e[hf].initialized=!0)},updated(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n,a=e[hf].enabled;i&&!a&&(mf.ensureZIndex(e,r),e[hf].initialized=!0),e[hf].enabled=!!i},unmounted(e,t){if(!e[hf].initialized)return;let{value:n={}}=t,{zIndex:r}=n;mf.unregister(e,r)}},_f=gf,vf=`@css-render/vue3-ssr`;function yf(e,t){return`<style cssr-id="${e}">\n${t}\n</style>`}function bf(e,t,n){let{styles:r,ids:i}=n;i.has(e)||r!==null&&(i.add(e),r.push(yf(e,t)))}var xf=typeof document<`u`;function Sf(){if(xf)return;let e=Qn(vf,null);if(e!==null)return{adapter:(t,n)=>bf(t,n,e),context:e}}function Cf(e,t){console.error(`[vueuc/${e}]: ${t}`)}function wf(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var Tf=/\s*,(?![^(]*\))\s*/g,Ef=/\s+/g;function Df(e,t){let n=[];return t.split(Tf).forEach(t=>{let r=wf(t);if(r){if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}}else{e.forEach(e=>{n.push((e&&e+` `)+t)});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function Of(e,t){let n=[];return t.split(Tf).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function kf(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?Df(t,e):Of(t,e))}),t.join(`, `).replace(Ef,` `)}function Af(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function jf(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function Mf(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}function Nf(e){return e?/^\s*@(s|m)/.test(e):!1}var Pf=/[A-Z]/g;function Ff(e){return e.replace(Pf,e=>`-`+e.toLowerCase())}function If(e,t=` `){return typeof e==`object`&&e?` {
`+Object.entries(e).map(e=>t+` ${Ff(e[0])}: ${e[1]};`).join(`
`)+`
`+t+`}`:`: ${e};`}function Lf(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function Rf(e,t,n,r){if(!t)return``;let i=Lf(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` {
}`:``;let o=e?[e+` {`]:[];return a.forEach(e=>{let t=i[e];if(e===`raw`){o.push(`
`+t+`
`);return}e=Ff(e),t!=null&&o.push(` ${e}${If(t)}`)}),e&&o.push(`}`),o.join(`
`)}function zf(e,t,n){e&&e.forEach(e=>{if(Array.isArray(e))zf(e,t,n);else if(typeof e==`function`){let r=e(t);Array.isArray(r)?zf(r,t,n):r&&n(r)}else e&&n(e)})}function Bf(e,t,n,r,i){let a=e.$,o=``;if(!a||typeof a==`string`)Nf(a)?o=a:t.push(a);else if(typeof a==`function`){let e=a({context:r.context,props:i});Nf(e)?o=e:t.push(e)}else if(a.before&&a.before(r.context),!a.$||typeof a.$==`string`)Nf(a.$)?o=a.$:t.push(a.$);else if(a.$){let e=a.$({context:r.context,props:i});Nf(e)?o=e:t.push(e)}let s=kf(t),c=Rf(s,e.props,r,i);o?n.push(`${o} {`):c.length&&n.push(c),e.children&&zf(e.children,{context:r.context,props:i},e=>{if(typeof e==`string`){let t=Rf(s,{raw:e},r,i);n.push(t)}else Bf(e,t,n,r,i)}),t.pop(),o&&n.push(`}`),a&&a.after&&a.after(r.context)}function Vf(e,t,n){let r=[];return Bf(e,[],r,t,n),r.join(`
`)}typeof window<`u`&&(window.__cssrContext={});function Hf(e,t,n,r){let{els:i}=t;if(n===void 0)i.forEach(Af),t.els=[];else{let e=jf(n,r);e&&i.includes(e)&&(Af(e),t.els=i.filter(t=>t!==e))}}function Uf(e,t){e.push(t)}function Wf(e,t,n,r,i,a,o,s,c){let l;if(n===void 0&&(l=t.render(r),n=lu(l)),c){c.adapter(n,l??t.render(r));return}s===void 0&&(s=document.head);let u=jf(n,s);if(u!==null&&!a)return u;let d=u??Mf(n);if(l===void 0&&(l=t.render(r)),d.textContent=l,u!==null)return u;if(o){let e=s.querySelector(`meta[name="${o}"]`);if(e)return s.insertBefore(d,e),Uf(t.els,d),d}return i?s.insertBefore(d,s.querySelector(`style, link`)):s.appendChild(d),Uf(t.els,d),d}function Gf(e){return Vf(this,this.instance,e)}function Kf(e={}){let{id:t,ssr:n,props:r,head:i=!1,force:a=!1,anchorMetaName:o,parent:s}=e;return Wf(this.instance,this,t,r,i,a,o,s,n)}function qf(e={}){let{id:t,parent:n}=e;Hf(this.instance,this,t,n)}var Jf=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:Gf,mount:Kf,unmount:qf}};const Yf=function(e,t,n,r){return Array.isArray(t)?Jf(e,{$:null},null,t):Array.isArray(n)?Jf(e,t,null,n):Array.isArray(r)?Jf(e,t,n,r):Jf(e,t,n,null)};function Xf(e={}){let t={c:((...e)=>Yf(t,...e)),use:(e,...n)=>e.install(t,...n),find:jf,context:{},config:e};return t}var{c:Zf}=Xf();const Qf=`vueuc-style`;function $f(e){return e&-e}var ep=class{constructor(e,t){this.l=e,this.min=t;let n=Array(e+1);for(let t=0;t<e+1;++t)n[t]=0;this.ft=n}add(e,t){if(t===0)return;let{l:n,ft:r}=this;for(e+=1;e<=n;)r[e]+=t,e+=$f(e)}get(e){return this.sum(e+1)-this.sum(e)}sum(e){if(e===void 0&&(e=this.l),e<=0)return 0;let{ft:t,min:n,l:r}=this;if(e>r)throw Error("[FinweckTree.sum]: `i` is larger than length.");let i=e*n;for(;e>0;)i+=t[e],e-=$f(e);return i}getBound(e){let t=0,n=this.l;for(;n>t;){let r=Math.floor((t+n)/2),i=this.sum(r);if(i>e){n=r;continue}else if(i<e){if(t===r)return this.sum(t+1)<=e?t+1:r;t=r}else return r}return t}},tp=F({name:`LazyTeleport`,props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:Od(P(e,`show`)),mergedTo:I(()=>{let{to:t}=e;return t??`body`})}},render(){return this.showTeleport?this.disabled?$d(`lazy-teleport`,this.$slots):L(gr,{disabled:this.disabled,to:this.mergedTo},$d(`lazy-teleport`,this.$slots)):null}}),np={top:`bottom`,bottom:`top`,left:`right`,right:`left`},rp={start:`end`,center:`center`,end:`start`},ip={top:`height`,bottom:`height`,left:`width`,right:`width`},ap={"bottom-start":`top left`,bottom:`top center`,"bottom-end":`top right`,"top-start":`bottom left`,top:`bottom center`,"top-end":`bottom right`,"right-start":`top left`,right:`center left`,"right-end":`bottom left`,"left-start":`top right`,left:`center right`,"left-end":`bottom right`},op={"bottom-start":`bottom left`,bottom:`bottom center`,"bottom-end":`bottom right`,"top-start":`top left`,top:`top center`,"top-end":`top right`,"right-start":`top right`,right:`center right`,"right-end":`bottom right`,"left-start":`top left`,left:`center left`,"left-end":`bottom left`},sp={"bottom-start":`right`,"bottom-end":`left`,"top-start":`right`,"top-end":`left`,"right-start":`bottom`,"right-end":`top`,"left-start":`bottom`,"left-end":`top`},cp={top:!0,bottom:!1,left:!0,right:!1},lp={top:`end`,bottom:`start`,left:`end`,right:`start`};function up(e,t,n,r,i,a){if(!i||a)return{placement:e,top:0,left:0};let[o,s]=e.split(`-`),c=s??`center`,l={top:0,left:0},u=(e,i,a)=>{let o=0,s=0,c=n[e]-t[i]-t[e];return c>0&&r&&(a?s=cp[i]?c:-c:o=cp[i]?c:-c),{left:o,top:s}},d=o===`left`||o===`right`;if(c!==`center`){let r=sp[e],i=np[r],a=ip[r];if(n[a]>t[a]){if(t[r]+t[a]<n[a]){let e=(n[a]-t[a])/2;t[r]<e||t[i]<e?t[r]<t[i]?(c=rp[s],l=u(a,i,d)):l=u(a,r,d):c=`center`}}else n[a]<t[a]&&t[i]<0&&t[r]>t[i]&&(c=rp[s])}else{let e=o===`bottom`||o===`top`?`left`:`top`,r=np[e],i=ip[e],a=(n[i]-t[i])/2;(t[e]<a||t[r]<a)&&(t[e]>t[r]?(c=lp[e],l=u(i,e,d)):(c=lp[r],l=u(i,r,d)))}let f=o;return t[o]<n[ip[o]]&&t[o]<t[np[o]]&&(f=np[o]),{placement:c===`center`?f:`${f}-${c}`,left:l.left,top:l.top}}function dp(e,t){return t?op[e]:ap[e]}function fp(e,t,n,r,i,a){if(a)switch(e){case`bottom-start`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-100%)`};case`bottom-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-100%)`};case`top-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:``};case`top-end`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%)`};case`right-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%)`};case`right-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-100%)`};case`left-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:``};case`left-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-100%)`};case`top`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:`translateX(-50%)`};case`right`:return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-50%)`};case`left`:return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-50%)`};case`bottom`:default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:`translateX(-50%) translateY(-100%)`}}switch(e){case`bottom-start`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:``};case`bottom-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateX(-100%)`};case`top-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateY(-100%)`};case`top-end`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateX(-100%) translateY(-100%)`};case`right-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:``};case`right-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateY(-100%)`};case`left-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateX(-100%)`};case`left-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateX(-100%) translateY(-100%)`};case`top`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:`translateY(-100%) translateX(-50%)`};case`right`:return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateY(-50%)`};case`left`:return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateY(-50%) translateX(-100%)`};case`bottom`:default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:`translateX(-50%)`}}}var pp=Zf([Zf(`.v-binder-follower-container`,{position:`absolute`,left:`0`,right:`0`,top:`0`,height:`0`,pointerEvents:`none`,zIndex:`auto`}),Zf(`.v-binder-follower-content`,{position:`absolute`,zIndex:`auto`},[Zf(`> *`,{pointerEvents:`all`})])]),mp=F({name:`Follower`,inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:`bottom`},syncTrigger:{type:Array,default:[`resize`,`scroll`]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){let t=Qn(`VBinder`),n=Ad(()=>e.enabled===void 0?e.show:e.enabled),r=M(null),i=M(null),a=()=>{let{syncTrigger:n}=e;n.includes(`scroll`)&&t.addScrollListener(c),n.includes(`resize`)&&t.addResizeListener(c)},o=()=>{t.removeScrollListener(c),t.removeResizeListener(c)};Yr(()=>{n.value&&(c(),a())});let s=Sf();pp.mount({id:`vueuc/binder`,head:!0,anchorMetaName:Qf,ssr:s}),Qr(()=>{o()}),Fd(()=>{n.value&&c()});let c=()=>{if(!n.value)return;let a=r.value;if(a===null)return;let o=t.targetRef,{x:s,y:c,overlap:l}=e,u=s!==void 0&&c!==void 0?af(s,c):of(o);a.style.setProperty(`--v-target-width`,`${Math.round(u.width)}px`),a.style.setProperty(`--v-target-height`,`${Math.round(u.height)}px`);let{width:d,minWidth:f,placement:p,internalShift:m,flip:h}=e;a.setAttribute(`v-placement`,p),l?a.setAttribute(`v-overlap`,``):a.removeAttribute(`v-overlap`);let{style:g}=a;d===`target`?g.width=`${u.width}px`:d===void 0?g.width=``:g.width=d,f===`target`?g.minWidth=`${u.width}px`:f===void 0?g.minWidth=``:g.minWidth=f;let _=of(a),v=of(i.value),{left:y,top:b,placement:x}=up(p,u,_,m,h,l),S=dp(x,l),{left:C,top:w,transform:T}=fp(x,v,u,b,y,l);a.setAttribute(`v-placement`,x),a.style.setProperty(`--v-offset-left`,`${Math.round(y)}px`),a.style.setProperty(`--v-offset-top`,`${Math.round(b)}px`),a.style.transform=`translateX(${C}) translateY(${w}) ${T}`,a.style.setProperty(`--v-transform-origin`,S),a.style.transformOrigin=S};nr(n,e=>{e?(a(),l()):o()});let l=()=>{In().then(c).catch(e=>console.error(e))};[`placement`,`x`,`y`,`internalShift`,`flip`,`width`,`overlap`,`minWidth`].forEach(t=>{nr(P(e,t),c)}),[`teleportDisabled`].forEach(t=>{nr(P(e,t),l)}),nr(P(e,`syncTrigger`),e=>{e.includes(`resize`)?t.addResizeListener(c):t.removeResizeListener(c),e.includes(`scroll`)?t.addScrollListener(c):t.removeScrollListener(c)});let u=Ld();return{VBinder:t,mergedEnabled:n,offsetContainerRef:i,followerRef:r,mergedTo:Ad(()=>{let{to:t}=e;if(t!==void 0)return t;u.value}),syncPosition:c}},render(){return L(tp,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e;let t=L(`div`,{class:[`v-binder-follower-container`,this.containerClass],ref:`offsetContainerRef`},[L(`div`,{class:`v-binder-follower-content`,ref:`followerRef`},(e=this.$slots).default?.call(e))]);return this.zindexable?Yn(t,[[_f,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):t}})}}),hp=[],gp=function(){return hp.some(function(e){return e.activeTargets.length>0})},_p=function(){return hp.some(function(e){return e.skippedTargets.length>0})},vp=`ResizeObserver loop completed with undelivered notifications.`,yp=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:vp}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=vp),window.dispatchEvent(e)},bp;(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(bp||={});var xp=function(e){return Object.freeze(e)},Sp=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,xp(this)}return e}(),Cp=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,xp(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),wp=function(e){return e instanceof SVGElement&&`getBBox`in e},Tp=function(e){if(wp(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},Ep=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},Dp=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1},Op=typeof window<`u`?window:{},kp=new WeakMap,Ap=/auto|scroll/,jp=/^tb|vertical/,Mp=/msie|trident/i.test(Op.navigator&&Op.navigator.userAgent),Np=function(e){return parseFloat(e||`0`)},Pp=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Sp((n?t:e)||0,(n?e:t)||0)},Fp=xp({devicePixelContentBoxSize:Pp(),borderBoxSize:Pp(),contentBoxSize:Pp(),contentRect:new Cp(0,0,0,0)}),Ip=function(e,t){if(t===void 0&&(t=!1),kp.has(e)&&!t)return kp.get(e);if(Tp(e))return kp.set(e,Fp),Fp;var n=getComputedStyle(e),r=wp(e)&&e.ownerSVGElement&&e.getBBox(),i=!Mp&&n.boxSizing===`border-box`,a=jp.test(n.writingMode||``),o=!r&&Ap.test(n.overflowY||``),s=!r&&Ap.test(n.overflowX||``),c=r?0:Np(n.paddingTop),l=r?0:Np(n.paddingRight),u=r?0:Np(n.paddingBottom),d=r?0:Np(n.paddingLeft),f=r?0:Np(n.borderTopWidth),p=r?0:Np(n.borderRightWidth),m=r?0:Np(n.borderBottomWidth),h=r?0:Np(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,b=s?e.offsetHeight-y-e.clientHeight:0,x=o?e.offsetWidth-v-e.clientWidth:0,S=i?g+v:0,C=i?_+y:0,w=r?r.width:Np(n.width)-S-x,T=r?r.height:Np(n.height)-C-b,E=w+g+x+v,D=T+_+b+y,O=xp({devicePixelContentBoxSize:Pp(Math.round(w*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:Pp(E,D,a),contentBoxSize:Pp(w,T,a),contentRect:new Cp(d,c,w,T)});return kp.set(e,O),O},Lp=function(e,t,n){var r=Ip(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case bp.DEVICE_PIXEL_CONTENT_BOX:return o;case bp.BORDER_BOX:return i;default:return a}},Rp=function(){function e(e){var t=Ip(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=xp([t.borderBoxSize]),this.contentBoxSize=xp([t.contentBoxSize]),this.devicePixelContentBoxSize=xp([t.devicePixelContentBoxSize])}return e}(),zp=function(e){if(Tp(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Bp=function(){var e=1/0,t=[];hp.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new Rp(t.target),i=zp(t.target);r.push(n),t.lastReportedSize=Lp(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},Vp=function(e){hp.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(zp(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},Hp=function(){var e=0;for(Vp(e);gp();)e=Bp(),Vp(e);return _p()&&yp(),e>0},Up,Wp=[],Gp=function(){return Wp.splice(0).forEach(function(e){return e()})},Kp=function(e){if(!Up){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return Gp()}).observe(n,{characterData:!0}),Up=function(){n.textContent=`${t?t--:t++}`}}Wp.push(e),Up()},qp=function(e){Kp(function(){requestAnimationFrame(e)})},Jp=0,Yp=function(){return!!Jp},Xp=250,Zp={attributes:!0,characterData:!0,childList:!0,subtree:!0},Qp=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],$p=function(e){return e===void 0&&(e=0),Date.now()+e},em=!1,tm=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=Xp),!em){em=!0;var n=$p(e);qp(function(){var r=!1;try{r=Hp()}finally{if(em=!1,e=n-$p(),!Yp())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Zp)};document.body?t():Op.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Qp.forEach(function(t){return Op.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Qp.forEach(function(t){return Op.removeEventListener(t,e.listener,!0)}),!0)},e}()),nm=function(e){!Jp&&e>0&&tm.start(),Jp+=e,!Jp&&tm.stop()},rm=function(e){return!wp(e)&&!Dp(e)&&getComputedStyle(e).display===`inline`},im=function(){function e(e,t){this.target=e,this.observedBox=t||bp.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Lp(this.target,this.observedBox,!0);return rm(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),am=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),om=new WeakMap,sm=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},cm=function(){function e(){}return e.connect=function(e,t){var n=new am(e,t);om.set(e,n)},e.observe=function(e,t,n){var r=om.get(e),i=r.observationTargets.length===0;sm(r.observationTargets,t)<0&&(i&&hp.push(r),r.observationTargets.push(new im(t,n&&n.box)),nm(1),tm.schedule())},e.unobserve=function(e,t){var n=om.get(e),r=sm(n.observationTargets,t),i=n.observationTargets.length===1;r>=0&&(i&&hp.splice(hp.indexOf(n),1),n.observationTargets.splice(r,1),nm(-1))},e.disconnect=function(e){var t=this,n=om.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),lm=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);cm.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!Ep(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);cm.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!Ep(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);cm.unobserve(this,e)},e.prototype.disconnect=function(){cm.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),um=class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<`u`&&window.ResizeObserver||lm)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(let t of e){let e=this.elHandlersMap.get(t.target);e!==void 0&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}},dm=new um,fm=F({name:`ResizeObserver`,props:{onResize:Function},setup(e){let t=!1,n=$a().proxy;function r(t){let{onResize:n}=e;n!==void 0&&n(t)}Yr(()=>{let e=n.$el;if(e===void 0){Cf(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){Cf(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(dm.registerHandler(e.nextElementSibling,r),t=!0)}),Qr(()=>{t&&dm.unregisterHandler(n.$el.nextElementSibling)})},render(){return ai(this.$slots,`default`)}}),pm;function mm(){return typeof document>`u`?!1:(pm===void 0&&(pm=`matchMedia`in window?window.matchMedia(`(pointer:coarse)`).matches:!1),pm)}var hm;function gm(){return typeof document>`u`?1:(hm===void 0&&(hm=`chrome`in window?window.devicePixelRatio:1),hm)}const _m=`VVirtualListXScroll`;function vm({columnsRef:e,renderColRef:t,renderItemWithColsRef:n}){let r=M(0),i=M(0),a=I(()=>{let t=e.value;if(t.length===0)return null;let n=new ep(t.length,0);return t.forEach((e,t)=>{n.add(t,e.width)}),n});return Zn(_m,{startIndexRef:Ad(()=>{let e=a.value;return e===null?0:Math.max(e.getBound(i.value)-1,0)}),endIndexRef:Ad(()=>{let t=a.value;return t===null?0:Math.min(t.getBound(i.value+r.value)+1,e.value.length-1)}),columnsRef:e,renderColRef:t,renderItemWithColsRef:n,getLeft:e=>{let t=a.value;return t===null?0:t.sum(e)}}),{listWidthRef:r,scrollLeftRef:i}}const ym=F({name:`VirtualListRow`,props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){let{startIndexRef:e,endIndexRef:t,columnsRef:n,getLeft:r,renderColRef:i,renderItemWithColsRef:a}=Qn(_m);return{startIndex:e,endIndex:t,columns:n,renderCol:i,renderItemWithCols:a,getLeft:r}},render(){let{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:i,getLeft:a,item:o}=this;if(i!=null)return i({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:o,getLeft:a});if(r!=null){let i=[];for(let s=e;s<=t;++s){let e=n[s];i.push(r({column:e,left:a(s),item:o}))}return i}return null}});var bm=Zf(`.v-vl`,{maxHeight:`inherit`,height:`100%`,overflow:`auto`,minWidth:`1px`},[Zf(`&:not(.v-vl--show-scrollbar)`,{scrollbarWidth:`none`},[Zf(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,{width:0,height:0,display:`none`})])]),xm=F({name:`VirtualList`,inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:`div`},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:`key`},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){let t=Sf();bm.mount({id:`vueuc/virtual-list`,head:!0,anchorMetaName:Qf,ssr:t}),Yr(()=>{let{defaultScrollIndex:t,defaultScrollKey:n}=e;t==null?n!=null&&g({key:n}):g({index:t})});let n=!1,r=!1;Hr(()=>{if(n=!1,!r){r=!0;return}g({top:p.value,left:o.value})}),Ur(()=>{n=!0,r||=!0});let i=Ad(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let t=0;return e.columns.forEach(e=>{t+=e.width}),t}),a=I(()=>{let t=new Map,{keyField:n}=e;return e.items.forEach((e,r)=>{t.set(e[n],r)}),t}),{scrollLeftRef:o,listWidthRef:s}=vm({columnsRef:P(e,`columns`),renderColRef:P(e,`renderCol`),renderItemWithColsRef:P(e,`renderItemWithCols`)}),c=M(null),l=M(void 0),u=new Map,d=I(()=>{let{items:t,itemSize:n,keyField:r}=e,i=new ep(t.length,n);return t.forEach((e,t)=>{let n=e[r],a=u.get(n);a!==void 0&&i.add(t,a)}),i}),f=M(0),p=M(0),m=Ad(()=>Math.max(d.value.getBound(p.value-Iu(e.paddingTop))-1,0)),h=I(()=>{let{value:t}=l;if(t===void 0)return[];let{items:n,itemSize:r}=e,i=m.value,a=Math.min(i+Math.ceil(t/r+1),n.length-1),o=[];for(let e=i;e<=a;++e)o.push(n[e]);return o}),g=(e,t)=>{if(typeof e==`number`){b(e,t,`auto`);return}let{left:n,top:r,index:i,key:o,position:s,behavior:c,debounce:l=!0}=e;if(n!==void 0||r!==void 0)b(n,r,c);else if(i!==void 0)y(i,c,l);else if(o!==void 0){let e=a.value.get(o);e!==void 0&&y(e,c,l)}else s===`bottom`?b(0,2**53-1,c):s===`top`&&b(0,0,c)},_,v=null;function y(t,n,r){let{value:i}=d,a=i.sum(t)+Iu(e.paddingTop);if(!r)c.value.scrollTo({left:0,top:a,behavior:n});else{_=t,v!==null&&window.clearTimeout(v),v=window.setTimeout(()=>{_=void 0,v=null},16);let{scrollTop:e,offsetHeight:r}=c.value;if(a>e){let o=i.get(t);a+o<=e+r||c.value.scrollTo({left:0,top:a+o-r,behavior:n})}else c.value.scrollTo({left:0,top:a,behavior:n})}}function b(e,t,n){c.value.scrollTo({left:e,top:t,behavior:n})}function x(t,r){if(n||e.ignoreItemResize||O(r.target))return;let{value:i}=d,o=a.value.get(t),s=i.get(o),l=r.borderBoxSize?.[0]?.blockSize??r.contentRect.height;if(l===s)return;l-e.itemSize===0?u.delete(t):u.set(t,l-e.itemSize);let p=l-s;if(p===0)return;i.add(o,p);let m=c.value;if(m!=null){if(_===void 0){let e=i.sum(o);m.scrollTop>e&&m.scrollBy(0,p)}else (o<_||o===_&&l+i.sum(o)>m.scrollTop+m.offsetHeight)&&m.scrollBy(0,p);D()}f.value++}let S=!mm(),C=!1;function w(t){var n;(n=e.onScroll)==null||n.call(e,t),(!S||!C)&&D()}function T(t){var n;if((n=e.onWheel)==null||n.call(e,t),S){let e=c.value;if(e!=null){if(t.deltaX===0&&(e.scrollTop===0&&t.deltaY<=0||e.scrollTop+e.offsetHeight>=e.scrollHeight&&t.deltaY>=0))return;t.preventDefault(),e.scrollTop+=t.deltaY/gm(),e.scrollLeft+=t.deltaX/gm(),D(),C=!0,Nu(()=>{C=!1})}}}function E(t){if(n||O(t.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(t.contentRect.height===l.value)return}else if(t.contentRect.height===l.value&&t.contentRect.width===s.value)return;l.value=t.contentRect.height,s.value=t.contentRect.width;let{onResize:r}=e;r!==void 0&&r(t)}function D(){let{value:e}=c;e!=null&&(p.value=e.scrollTop,o.value=e.scrollLeft)}function O(e){let t=e;for(;t!==null;){if(t.style.display===`none`)return!0;t=t.parentElement}return!1}return{listHeight:l,listStyle:{overflow:`auto`},keyToIndex:a,itemsStyle:I(()=>{let{itemResizable:t}=e,n=Lu(d.value.sum());return f.value,[e.itemsStyle,{boxSizing:`content-box`,width:Lu(i.value),height:t?``:n,minHeight:t?n:``,paddingTop:Lu(e.paddingTop),paddingBottom:Lu(e.paddingBottom)}]}),visibleItemsStyle:I(()=>(f.value,{transform:`translateY(${Lu(d.value.sum(m.value))})`})),viewportItems:h,listElRef:c,itemsElRef:M(null),scrollTo:g,handleListResize:E,handleListScroll:w,handleListWheel:T,handleItemResize:x}},render(){let{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return L(fm,{onResize:this.handleListResize},{default:()=>{var i;return L(`div`,qa(this.$attrs,{class:[`v-vl`,this.showScrollbar&&`v-vl--show-scrollbar`],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:`listElRef`}),[this.items.length===0?(i=this.$slots).empty?.call(i):L(`div`,{ref:`itemsElRef`,class:`v-vl-items`,style:this.itemsStyle},[L(r,Object.assign({class:`v-vl-visible-items`,style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{let{renderCol:r,renderItemWithCols:i}=this;return this.viewportItems.map(a=>{let o=a[t],s=n.get(o),c=r==null?void 0:L(ym,{index:s,item:a}),l=i==null?void 0:L(ym,{index:s,item:a}),u=this.$slots.default({item:a,renderedCols:c,renderedItemWithCols:l,index:s})[0];return e?L(fm,{key:o,onResize:e=>this.handleItemResize(o,e)},{default:()=>u}):(u.key=o,u)})}})])])}})}});function Sm(e){return e.replace(/#|\(|\)|,|\s|\./g,`_`)}function Cm(e){let{left:t,right:n,top:r,bottom:i}=Ru(e);return`${r} ${t} ${i} ${n}`}function wm(e,t){console.error(`[naive/${e}]: ${t}`)}function Tm(e,t){throw Error(`[naive/${e}]: ${t}`)}function q(e,...t){if(Array.isArray(e))e.forEach(e=>q(e,...t));else return e(...t)}function Em(e){return typeof e==`string`?`s-${e}`:`n-${e}`}function Dm(e,...t){return typeof e==`function`?e(...t):typeof e==`string`?Ha(e):typeof e==`number`?Ha(String(e)):null}function Om(e){return e.some(e=>Na(e)?!(e.type===Sa||e.type===ba&&!Om(e.children)):!0)?e:null}function km(e,t){return e&&Om(e())||t()}function Am(e,t,n){return e&&Om(e(t))||n(t)}function jm(e,t){return t(e&&Om(e())||null)}function Mm(e){return!(e&&Om(e()))}const Nm=F({render(){var e;return(e=this.$slots).default?.call(e)}}),Pm=Bd(`n-config-provider`),Fm=`n`;function Im(e={},t={defaultBordered:!0}){let n=Qn(Pm,null);return{inlineThemeDisabled:n?.inlineThemeDisabled,mergedRtlRef:n?.mergedRtlRef,mergedComponentPropsRef:n?.mergedComponentPropsRef,mergedBreakpointsRef:n?.mergedBreakpointsRef,mergedBorderedRef:I(()=>{let{bordered:r}=e;return r===void 0?n?.mergedBorderedRef.value??t.defaultBordered??!0:r}),mergedClsPrefixRef:n?n.mergedClsPrefixRef:ln(`n`),namespaceRef:I(()=>n?.mergedNamespaceRef.value)}}function Lm(e,t,n,r){n||Tm(`useThemeClass`,`cssVarsRef is not passed`);let i=Qn(Pm,null),a=i?.mergedThemeHashRef,o=i?.styleMountTarget,s=M(``),c=Sf(),l,u=`__${e}`,d=()=>{let e=u,i=t?t.value:void 0,d=a?.value;d&&(e+=`-${d}`),i&&(e+=`-${i}`);let{themeOverrides:f,builtinThemeOverrides:p}=r;f&&(e+=`-${lu(JSON.stringify(f))}`),p&&(e+=`-${lu(JSON.stringify(p))}`),s.value=e,l=()=>{let t=n.value,r=``;for(let e in t)r+=`${e}: ${t[e]};`;B(`.${e}`,r).mount({id:e,ssr:c,parent:o}),l=void 0}};return tr(()=>{d()}),{themeClass:s,onRender:()=>{l?.()}}}const Rm=Bd(`n-form-item`);function zm(e,{defaultSize:t=`medium`,mergedSize:n,mergedDisabled:r}={}){let i=Qn(Rm,null);Zn(Rm,null);let a=I(n?()=>n(i):()=>{let{size:n}=e;if(n)return n;if(i){let{mergedSize:e}=i;if(e.value!==void 0)return e.value}return t}),o=I(r?()=>r(i):()=>{let{disabled:t}=e;return t===void 0?i?i.disabled.value:!1:t}),s=I(()=>{let{status:t}=e;return t||i?.mergedValidationStatus.value});return Qr(()=>{i&&i.restoreValidation()}),{mergedSizeRef:a,mergedDisabledRef:o,mergedStatusRef:s,nTriggerFormBlur(){i&&i.handleContentBlur()},nTriggerFormChange(){i&&i.handleContentChange()},nTriggerFormFocus(){i&&i.handleContentFocus()},nTriggerFormInput(){i&&i.handleContentInput()}}}var Bm={name:`en-US`,global:{undo:`Undo`,redo:`Redo`,confirm:`Confirm`,clear:`Clear`},Popconfirm:{positiveText:`Confirm`,negativeText:`Cancel`},Cascader:{placeholder:`Please Select`,loading:`Loading`,loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`},DatePicker:{yearFormat:`yyyy`,monthFormat:`MMM`,dayFormat:`eeeeee`,yearTypeFormat:`yyyy`,monthTypeFormat:`yyyy-MM`,dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`,quarterFormat:`yyyy-qqq`,weekFormat:`YYYY-w`,clear:`Clear`,now:`Now`,confirm:`Confirm`,selectTime:`Select Time`,selectDate:`Select Date`,datePlaceholder:`Select Date`,datetimePlaceholder:`Select Date and Time`,monthPlaceholder:`Select Month`,yearPlaceholder:`Select Year`,quarterPlaceholder:`Select Quarter`,weekPlaceholder:`Select Week`,startDatePlaceholder:`Start Date`,endDatePlaceholder:`End Date`,startDatetimePlaceholder:`Start Date and Time`,endDatetimePlaceholder:`End Date and Time`,startMonthPlaceholder:`Start Month`,endMonthPlaceholder:`End Month`,monthBeforeYear:!0,firstDayOfWeek:6,today:`Today`},DataTable:{checkTableAll:`Select all in the table`,uncheckTableAll:`Unselect all in the table`,confirm:`Confirm`,clear:`Clear`},LegacyTransfer:{sourceTitle:`Source`,targetTitle:`Target`},Transfer:{selectAll:`Select all`,unselectAll:`Unselect all`,clearAll:`Clear`,total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:`No Data`},Select:{placeholder:`Please Select`},TimePicker:{placeholder:`Select Time`,positiveText:`OK`,negativeText:`Cancel`,now:`Now`,clear:`Clear`},Pagination:{goto:`Goto`,selectionSuffix:`page`},DynamicTags:{add:`Add`},Log:{loading:`Loading`},Input:{placeholder:`Please Input`},InputNumber:{placeholder:`Please Input`},DynamicInput:{create:`Create`},ThemeEditor:{title:`Theme Editor`,clearAllVars:`Clear All Variables`,clearSearch:`Clear Search`,filterCompName:`Filter Component Name`,filterVarName:`Filter Variable Name`,import:`Import`,export:`Export`,restore:`Reset to Default`},Image:{tipPrevious:`Previous picture (←)`,tipNext:`Next picture (→)`,tipCounterclockwise:`Counterclockwise`,tipClockwise:`Clockwise`,tipZoomOut:`Zoom out`,tipZoomIn:`Zoom in`,tipDownload:`Download`,tipClose:`Close (Esc)`,tipOriginalSize:`Zoom to original size`},Heatmap:{less:`less`,more:`more`,monthFormat:`MMM`,weekdayFormat:`eee`}},Vm=Bm;function Hm(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function Um(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}function Wm(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Km(s,e=>e.test(o)):Gm(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function Gm(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Km(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function qm(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var Jm={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}};const Ym=(e,t,n)=>{let r,i=Jm[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};var Xm={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`};const Zm=(e,t,n,r)=>Xm[e];var Qm={narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},$m={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},eh={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},th={narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},nh={narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},rh={narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},ih=(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`};const ah={ordinalNumber:ih,era:Um({values:Qm,defaultWidth:`wide`}),quarter:Um({values:$m,defaultWidth:`wide`,argumentCallback:e=>e-1}),month:Um({values:eh,defaultWidth:`wide`}),day:Um({values:th,defaultWidth:`wide`}),dayPeriod:Um({values:nh,defaultWidth:`wide`,formattingValues:rh,defaultFormattingWidth:`wide`})};var oh=/^(\d+)(th|st|nd|rd)?/i,sh=/\d+/i,ch={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},lh={any:[/^b/i,/^(a|c)/i]},uh={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},dh={any:[/1/i,/2/i,/3/i,/4/i]},fh={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ph={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},mh={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},hh={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},gh={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},_h={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};const vh={ordinalNumber:qm({matchPattern:oh,parsePattern:sh,valueCallback:e=>parseInt(e,10)}),era:Wm({matchPatterns:ch,defaultMatchWidth:`wide`,parsePatterns:lh,defaultParseWidth:`any`}),quarter:Wm({matchPatterns:uh,defaultMatchWidth:`wide`,parsePatterns:dh,defaultParseWidth:`any`,valueCallback:e=>e+1}),month:Wm({matchPatterns:fh,defaultMatchWidth:`wide`,parsePatterns:ph,defaultParseWidth:`any`}),day:Wm({matchPatterns:mh,defaultMatchWidth:`wide`,parsePatterns:hh,defaultParseWidth:`any`}),dayPeriod:Wm({matchPatterns:gh,defaultMatchWidth:`any`,parsePatterns:_h,defaultParseWidth:`any`})};var yh={full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},bh={full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},xh={full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`};const Sh={date:Hm({formats:yh,defaultWidth:`full`}),time:Hm({formats:bh,defaultWidth:`full`}),dateTime:Hm({formats:xh,defaultWidth:`full`})},Ch={code:`en-US`,formatDistance:Ym,formatLong:Sh,formatRelative:Zm,localize:ah,match:vh,options:{weekStartsOn:0,firstWeekContainsDate:1}};var wh={name:`en-US`,locale:Ch},Th=wh,Eh=typeof global==`object`&&global&&global.Object===Object&&global,Dh=Eh,Oh=typeof self==`object`&&self&&self.Object===Object&&self,kh=Dh||Oh||Function(`return this`)(),Ah=kh,jh=Ah.Symbol,Mh=jh,Nh=Object.prototype,Ph=Nh.hasOwnProperty,Fh=Nh.toString,Ih=Mh?Mh.toStringTag:void 0;function Lh(e){var t=Ph.call(e,Ih),n=e[Ih];try{e[Ih]=void 0;var r=!0}catch{}var i=Fh.call(e);return r&&(t?e[Ih]=n:delete e[Ih]),i}var Rh=Lh,zh=Object.prototype.toString;function Bh(e){return zh.call(e)}var Vh=Bh,Hh=`[object Null]`,Uh=`[object Undefined]`,Wh=Mh?Mh.toStringTag:void 0;function Gh(e){return e==null?e===void 0?Uh:Hh:Wh&&Wh in Object(e)?Rh(e):Vh(e)}var Kh=Gh;function qh(e){return typeof e==`object`&&!!e}var Jh=qh,Yh=`[object Symbol]`;function Xh(e){return typeof e==`symbol`||Jh(e)&&Kh(e)==Yh}var Zh=Xh;function Qh(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var $h=Qh,eg=Array.isArray,tg=eg,ng=1/0,rg=Mh?Mh.prototype:void 0,ig=rg?rg.toString:void 0;function ag(e){if(typeof e==`string`)return e;if(tg(e))return $h(e,ag)+``;if(Zh(e))return ig?ig.call(e):``;var t=e+``;return t==`0`&&1/e==-ng?`-0`:t}var og=ag;function sg(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var cg=sg;function lg(e){return e}var ug=lg,dg=`[object AsyncFunction]`,fg=`[object Function]`,pg=`[object GeneratorFunction]`,mg=`[object Proxy]`;function hg(e){if(!cg(e))return!1;var t=Kh(e);return t==fg||t==pg||t==dg||t==mg}var gg=hg,_g=Ah[`__core-js_shared__`],vg=_g,yg=function(){var e=/[^.]+$/.exec(vg&&vg.keys&&vg.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function bg(e){return!!yg&&yg in e}var xg=bg,Sg=Function.prototype.toString;function Cg(e){if(e!=null){try{return Sg.call(e)}catch{}try{return e+``}catch{}}return``}var wg=Cg,Tg=/[\\^$.*+?()[\]{}|]/g,Eg=/^\[object .+?Constructor\]$/,Dg=Function.prototype,Og=Object.prototype,kg=Dg.toString,Ag=Og.hasOwnProperty,jg=RegExp(`^`+kg.call(Ag).replace(Tg,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function Mg(e){return!cg(e)||xg(e)?!1:(gg(e)?jg:Eg).test(wg(e))}var Ng=Mg;function Pg(e,t){return e?.[t]}var Fg=Pg;function Ig(e,t){var n=Fg(e,t);return Ng(n)?n:void 0}var Lg=Ig,Rg=Object.create,zg=function(){function e(){}return function(t){if(!cg(t))return{};if(Rg)return Rg(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Bg=zg;function Vg(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)}var Hg=Vg;function Ug(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var Wg=Ug,Gg=800,Kg=16,qg=Date.now;function Jg(e){var t=0,n=0;return function(){var r=qg(),i=Kg-(r-n);if(n=r,i>0){if(++t>=Gg)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Yg=Jg;function Xg(e){return function(){return e}}var Zg=Xg,Qg=function(){try{var e=Lg(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),$g=Qg,e_=$g?function(e,t){return $g(e,`toString`,{configurable:!0,enumerable:!1,value:Zg(t),writable:!0})}:ug,t_=e_,n_=Yg(t_),r_=n_,i_=9007199254740991,a_=/^(?:0|[1-9]\d*)$/;function o_(e,t){var n=typeof e;return t??=i_,!!t&&(n==`number`||n!=`symbol`&&a_.test(e))&&e>-1&&e%1==0&&e<t}var s_=o_;function c_(e,t,n){t==`__proto__`&&$g?$g(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var l_=c_;function u_(e,t){return e===t||e!==e&&t!==t}var d_=u_,f_=Object.prototype.hasOwnProperty;function p_(e,t,n){var r=e[t];(!(f_.call(e,t)&&d_(r,n))||n===void 0&&!(t in e))&&l_(e,t,n)}var m_=p_;function h_(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?l_(n,s,c):m_(n,s,c)}return n}var g_=h_,__=Math.max;function v_(e,t,n){return t=__(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=__(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Hg(e,this,s)}}var y_=v_;function b_(e,t){return r_(y_(e,t,ug),e+``)}var x_=b_,S_=9007199254740991;function C_(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=S_}var w_=C_;function T_(e){return e!=null&&w_(e.length)&&!gg(e)}var E_=T_;function D_(e,t,n){if(!cg(n))return!1;var r=typeof t;return(r==`number`?E_(n)&&s_(t,n.length):r==`string`&&t in n)?d_(n[t],e):!1}var O_=D_;function k_(e){return x_(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&O_(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var A_=k_,j_=Object.prototype;function M_(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||j_)}var N_=M_;function P_(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var F_=P_,I_=`[object Arguments]`;function L_(e){return Jh(e)&&Kh(e)==I_}var R_=L_,z_=Object.prototype,B_=z_.hasOwnProperty,V_=z_.propertyIsEnumerable,H_=R_(function(){return arguments}())?R_:function(e){return Jh(e)&&B_.call(e,`callee`)&&!V_.call(e,`callee`)},U_=H_;function W_(){return!1}var G_=W_,K_=typeof exports==`object`&&exports&&!exports.nodeType&&exports,q_=K_&&typeof module==`object`&&module&&!module.nodeType&&module,J_=q_&&q_.exports===K_?Ah.Buffer:void 0,Y_=(J_?J_.isBuffer:void 0)||G_,X_=Y_,Z_=`[object Arguments]`,Q_=`[object Array]`,$_=`[object Boolean]`,ev=`[object Date]`,tv=`[object Error]`,nv=`[object Function]`,rv=`[object Map]`,iv=`[object Number]`,av=`[object Object]`,ov=`[object RegExp]`,sv=`[object Set]`,cv=`[object String]`,lv=`[object WeakMap]`,uv=`[object ArrayBuffer]`,dv=`[object DataView]`,fv=`[object Float32Array]`,pv=`[object Float64Array]`,mv=`[object Int8Array]`,hv=`[object Int16Array]`,gv=`[object Int32Array]`,_v=`[object Uint8Array]`,vv=`[object Uint8ClampedArray]`,yv=`[object Uint16Array]`,bv=`[object Uint32Array]`,xv={};xv[fv]=xv[pv]=xv[mv]=xv[hv]=xv[gv]=xv[_v]=xv[vv]=xv[yv]=xv[bv]=!0,xv[Z_]=xv[Q_]=xv[uv]=xv[$_]=xv[dv]=xv[ev]=xv[tv]=xv[nv]=xv[rv]=xv[iv]=xv[av]=xv[ov]=xv[sv]=xv[cv]=xv[lv]=!1;function Sv(e){return Jh(e)&&w_(e.length)&&!!xv[Kh(e)]}var Cv=Sv;function wv(e){return function(t){return e(t)}}var Tv=wv,Ev=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Dv=Ev&&typeof module==`object`&&module&&!module.nodeType&&module,Ov=Dv&&Dv.exports===Ev&&Dh.process,kv=function(){try{return Dv&&Dv.require&&Dv.require(`util`).types||Ov&&Ov.binding&&Ov.binding(`util`)}catch{}}(),Av=kv,jv=Av&&Av.isTypedArray,Mv=jv?Tv(jv):Cv,Nv=Mv,Pv=Object.prototype.hasOwnProperty;function Fv(e,t){var n=tg(e),r=!n&&U_(e),i=!n&&!r&&X_(e),a=!n&&!r&&!i&&Nv(e),o=n||r||i||a,s=o?F_(e.length,String):[],c=s.length;for(var l in e)(t||Pv.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||s_(l,c)))&&s.push(l);return s}var Iv=Fv;function Lv(e,t){return function(n){return e(t(n))}}var Rv=Lv;function zv(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Bv=zv,Vv=Object.prototype.hasOwnProperty;function Hv(e){if(!cg(e))return Bv(e);var t=N_(e),n=[];for(var r in e)r==`constructor`&&(t||!Vv.call(e,r))||n.push(r);return n}var Uv=Hv;function Wv(e){return E_(e)?Iv(e,!0):Uv(e)}var Gv=Wv,Kv=Lg(Object,`create`),qv=Kv;function Jv(){this.__data__=qv?qv(null):{},this.size=0}var Yv=Jv;function Xv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Zv=Xv,Qv=`__lodash_hash_undefined__`,$v=Object.prototype.hasOwnProperty;function ey(e){var t=this.__data__;if(qv){var n=t[e];return n===Qv?void 0:n}return $v.call(t,e)?t[e]:void 0}var ty=ey,ny=Object.prototype.hasOwnProperty;function ry(e){var t=this.__data__;return qv?t[e]!==void 0:ny.call(t,e)}var iy=ry,ay=`__lodash_hash_undefined__`;function oy(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=qv&&t===void 0?ay:t,this}var sy=oy;function cy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}cy.prototype.clear=Yv,cy.prototype.delete=Zv,cy.prototype.get=ty,cy.prototype.has=iy,cy.prototype.set=sy;var ly=cy;function uy(){this.__data__=[],this.size=0}var dy=uy;function fy(e,t){for(var n=e.length;n--;)if(d_(e[n][0],t))return n;return-1}var py=fy,my=Array.prototype.splice;function hy(e){var t=this.__data__,n=py(t,e);return n<0?!1:(n==t.length-1?t.pop():my.call(t,n,1),--this.size,!0)}var gy=hy;function _y(e){var t=this.__data__,n=py(t,e);return n<0?void 0:t[n][1]}var vy=_y;function yy(e){return py(this.__data__,e)>-1}var by=yy;function xy(e,t){var n=this.__data__,r=py(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Sy=xy;function Cy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Cy.prototype.clear=dy,Cy.prototype.delete=gy,Cy.prototype.get=vy,Cy.prototype.has=by,Cy.prototype.set=Sy;var wy=Cy,Ty=Lg(Ah,`Map`),Ey=Ty;function Dy(){this.size=0,this.__data__={hash:new ly,map:new(Ey||wy),string:new ly}}var Oy=Dy;function ky(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}var Ay=ky;function jy(e,t){var n=e.__data__;return Ay(t)?n[typeof t==`string`?`string`:`hash`]:n.map}var My=jy;function Ny(e){var t=My(this,e).delete(e);return this.size-=t?1:0,t}var Py=Ny;function Fy(e){return My(this,e).get(e)}var Iy=Fy;function Ly(e){return My(this,e).has(e)}var Ry=Ly;function zy(e,t){var n=My(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var By=zy;function Vy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Vy.prototype.clear=Oy,Vy.prototype.delete=Py,Vy.prototype.get=Iy,Vy.prototype.has=Ry,Vy.prototype.set=By;var Hy=Vy;function Uy(e){return e==null?``:og(e)}var Wy=Uy,Gy=Rv(Object.getPrototypeOf,Object),Ky=Gy,qy=`[object Object]`,Jy=Function.prototype,Yy=Object.prototype,Xy=Jy.toString,Zy=Yy.hasOwnProperty,Qy=Xy.call(Object);function $y(e){if(!Jh(e)||Kh(e)!=qy)return!1;var t=Ky(e);if(t===null)return!0;var n=Zy.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Xy.call(n)==Qy}var eb=$y;function tb(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}var nb=tb;function rb(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:nb(e,t,n)}var ib=rb,ab=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function ob(e){return ab.test(e)}var sb=ob;function cb(e){return e.split(``)}var lb=cb,ub=`\\ud800-\\udfff`,db=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,fb=`\\ufe0e\\ufe0f`,pb=`[`+ub+`]`,mb=`[`+db+`]`,hb=`\\ud83c[\\udffb-\\udfff]`,gb=`(?:`+mb+`|`+hb+`)`,_b=`[^`+ub+`]`,vb=`(?:\\ud83c[\\udde6-\\uddff]){2}`,yb=`[\\ud800-\\udbff][\\udc00-\\udfff]`,bb=`\\u200d`,xb=gb+`?`,Sb=`[`+fb+`]?`,Cb=`(?:`+bb+`(?:`+[_b,vb,yb].join(`|`)+`)`+Sb+xb+`)*`,wb=Sb+xb+Cb,Tb=`(?:`+[_b+mb+`?`,mb,vb,yb,pb].join(`|`)+`)`,Eb=RegExp(hb+`(?=`+hb+`)|`+Tb+wb,`g`);function Db(e){return e.match(Eb)||[]}var Ob=Db;function kb(e){return sb(e)?Ob(e):lb(e)}var Ab=kb;function jb(e){return function(t){t=Wy(t);var n=sb(t)?Ab(t):void 0,r=n?n[0]:t.charAt(0),i=n?ib(n,1).join(``):t.slice(1);return r[e]()+i}}var Mb=jb,Nb=Mb(`toUpperCase`),Pb=Nb;function Fb(){this.__data__=new wy,this.size=0}var Ib=Fb;function Lb(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var Rb=Lb;function zb(e){return this.__data__.get(e)}var Bb=zb;function Vb(e){return this.__data__.has(e)}var Hb=Vb,Ub=200;function Wb(e,t){var n=this.__data__;if(n instanceof wy){var r=n.__data__;if(!Ey||r.length<Ub-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hy(r)}return n.set(e,t),this.size=n.size,this}var Gb=Wb;function Kb(e){this.size=(this.__data__=new wy(e)).size}Kb.prototype.clear=Ib,Kb.prototype.delete=Rb,Kb.prototype.get=Bb,Kb.prototype.has=Hb,Kb.prototype.set=Gb;var qb=Kb,Jb=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Yb=Jb&&typeof module==`object`&&module&&!module.nodeType&&module,Xb=Yb&&Yb.exports===Jb?Ah.Buffer:void 0,Zb=Xb?Xb.allocUnsafe:void 0;function Qb(e,t){if(t)return e.slice();var n=e.length,r=Zb?Zb(n):new e.constructor(n);return e.copy(r),r}var $b=Qb,ex=Ah.Uint8Array,tx=ex;function nx(e){var t=new e.constructor(e.byteLength);return new tx(t).set(new tx(e)),t}var rx=nx;function ix(e,t){var n=t?rx(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ax=ix;function ox(e){return typeof e.constructor==`function`&&!N_(e)?Bg(Ky(e)):{}}var sx=ox;function cx(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var lx=cx,ux=lx(),dx=ux;function fx(e,t,n){(n!==void 0&&!d_(e[t],n)||n===void 0&&!(t in e))&&l_(e,t,n)}var px=fx;function mx(e){return Jh(e)&&E_(e)}var hx=mx;function gx(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var _x=gx;function vx(e){return g_(e,Gv(e))}var yx=vx;function bx(e,t,n,r,i,a,o){var s=_x(e,n),c=_x(t,n),l=o.get(c);if(l){px(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=tg(c),p=!f&&X_(c),m=!f&&!p&&Nv(c);u=c,f||p||m?tg(s)?u=s:hx(s)?u=Wg(s):p?(d=!1,u=$b(c,!0)):m?(d=!1,u=ax(c,!0)):u=[]:eb(c)||U_(c)?(u=s,U_(s)?u=yx(s):(!cg(s)||gg(s))&&(u=sx(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),px(e,n,u)}var xx=bx;function Sx(e,t,n,r,i){e!==t&&dx(t,function(a,o){if(i||=new qb,cg(a))xx(e,t,o,n,Sx,r,i);else{var s=r?r(_x(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),px(e,o,s)}},Gv)}var Cx=Sx,wx=A_(function(e,t,n){Cx(e,t,n)}),Tx=wx;function Ex(e){let{mergedLocaleRef:t,mergedDateLocaleRef:n}=Qn(Pm,null)||{},r=I(()=>t?.value?.[e]??Vm[e]);return{dateLocaleRef:I(()=>n?.value??Th),localeRef:r}}const Dx=`naive-ui-style`;function Ox(e,t,n){if(!t)return;let r=Sf(),i=I(()=>{let{value:n}=t;if(!n)return;let r=n[e];if(r)return r}),a=Qn(Pm,null),o=()=>{tr(()=>{let{value:t}=n,o=`${t}${e}Rtl`;if(yu(o,r))return;let{value:s}=i;s&&s.style.mount({id:o,head:!0,anchorMetaName:Dx,props:{bPrefix:t?`.${t}-`:void 0},ssr:r,parent:a?.styleMountTarget})})};return r?o():Jr(o),i}var kx={fontFamily:`v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"`,fontFamilyMono:`v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace`,fontWeight:`400`,fontWeightStrong:`500`,cubicBezierEaseInOut:`cubic-bezier(.4, 0, .2, 1)`,cubicBezierEaseOut:`cubic-bezier(0, 0, .2, 1)`,cubicBezierEaseIn:`cubic-bezier(.4, 0, 1, 1)`,borderRadius:`3px`,borderRadiusSmall:`2px`,fontSize:`14px`,fontSizeMini:`12px`,fontSizeTiny:`12px`,fontSizeSmall:`14px`,fontSizeMedium:`14px`,fontSizeLarge:`15px`,fontSizeHuge:`16px`,lineHeight:`1.6`,heightMini:`16px`,heightTiny:`22px`,heightSmall:`28px`,heightMedium:`34px`,heightLarge:`40px`,heightHuge:`46px`},{fontSize:Ax,fontFamily:jx,lineHeight:Mx}=kx,Nx=B(`body`,`
margin: 0;
font-size: ${Ax};
font-family: ${jx};
line-height: ${Mx};
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
`,[B(`input`,`
font-family: inherit;
font-size: inherit;
`)]);function Px(e,t,n){if(!t)return;let r=Sf(),i=Qn(Pm,null),a=()=>{let a=n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:Dx,props:{bPrefix:a?`.${a}-`:void 0},ssr:r,parent:i?.styleMountTarget}),i?.preflightStyleDisabled||Nx.mount({id:`n-global`,head:!0,anchorMetaName:Dx,ssr:r,parent:i?.styleMountTarget})};r?a():Jr(a)}function Fx(e){return e}function Ix(e,t,n,r,i,a){let o=Sf(),s=Qn(Pm,null);if(n){let e=()=>{let e=a?.value;n.mount({id:e===void 0?t:e+t,head:!0,props:{bPrefix:e?`.${e}-`:void 0},anchorMetaName:Dx,ssr:o,parent:s?.styleMountTarget}),s?.preflightStyleDisabled||Nx.mount({id:`n-global`,head:!0,anchorMetaName:Dx,ssr:o,parent:s?.styleMountTarget})};o?e():Jr(e)}return I(()=>{let{theme:{common:t,self:n,peers:a={}}={},themeOverrides:o={},builtinThemeOverrides:c={}}=i,{common:l,peers:u}=o,{common:d=void 0,[e]:{common:f=void 0,self:p=void 0,peers:m={}}={}}=s?.mergedThemeRef.value||{},{common:h=void 0,[e]:g={}}=s?.mergedThemeOverridesRef.value||{},{common:_,peers:v={}}=g,y=Tx({},t||f||d||r.common,h,_,l);return{common:y,self:Tx((n||p||r.self)?.(y),c,g,o),peers:Tx({},r.peers,m,a),peerOverrides:Tx({},c.peers,v,u)}})}Ix.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};var Lx=Ix,Rx=V(`base-icon`,`
height: 1em;
width: 1em;
line-height: 1em;
text-align: center;
display: inline-block;
position: relative;
fill: currentColor;
`,[B(`svg`,`
height: 1em;
width: 1em;
`)]),zx=F({name:`BaseIcon`,props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Px(`-base-icon`,Rx,P(e,`clsPrefix`))},render(){return L(`i`,{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),Bx=F({name:`BaseIconSwitchTransition`,setup(e,{slots:t}){let n=Ld();return()=>L(Mo,{name:`icon-switch-transition`,appear:n.value},t)}});function Vx(e,t){let n=F({render(){return t()}});return F({name:Pb(e),setup(){let t=Qn(Pm,null)?.mergedIconsRef;return()=>{let r=t?.value?.[e];return r?r():L(n,null)}}})}var Hx=F({name:`ChevronDown`,render(){return L(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L(`path`,{d:`M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z`,fill:`currentColor`}))}}),Ux=Vx(`clear`,()=>L(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},L(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},L(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},L(`path`,{d:`M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z`}))))),Wx=F({name:`Empty`,render(){return L(`svg`,{viewBox:`0 0 28 28`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},L(`path`,{d:`M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z`,fill:`currentColor`}),L(`path`,{d:`M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z`,fill:`currentColor`}))}}),Gx=F({name:`Eye`,render(){return L(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},L(`path`,{d:`M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`32`}),L(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),Kx=F({name:`EyeOff`,render(){return L(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},L(`path`,{d:`M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z`,fill:`currentColor`}),L(`path`,{d:`M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z`,fill:`currentColor`}),L(`path`,{d:`M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z`,fill:`currentColor`}),L(`path`,{d:`M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z`,fill:`currentColor`}),L(`path`,{d:`M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z`,fill:`currentColor`}))}}),qx=F({name:`Switcher`,render(){return L(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`},L(`path`,{d:`M12 8l10 8l-10 8z`}))}}),{cubicBezierEaseInOut:Jx}=kx;function Yx({originalTransform:e=``,left:t=0,top:n=0,transition:r=`all .3s ${Jx} !important`}={}){return[B(`&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to`,{transform:`${e} scale(0.75)`,left:t,top:n,opacity:0}),B(`&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from`,{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),B(`&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active`,{transformOrigin:`center`,position:`absolute`,left:t,top:n,transition:r})]}var Xx=V(`base-clear`,`
flex-shrink: 0;
height: 1em;
width: 1em;
position: relative;
`,[B(`>`,[H(`clear`,`
font-size: var(--n-clear-size);
height: 1em;
width: 1em;
cursor: pointer;
color: var(--n-clear-color);
transition: color .3s var(--n-bezier);
display: flex;
`,[B(`&:hover`,`
color: var(--n-clear-color-hover)!important;
`),B(`&:active`,`
color: var(--n-clear-color-pressed)!important;
`)]),H(`placeholder`,`
display: flex;
`),H(`clear, placeholder`,`
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
`,[Yx({originalTransform:`translateX(-50%) translateY(-50%)`,left:`50%`,top:`50%`})])])]),Zx=F({name:`BaseClear`,props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Px(`-base-clear`,Xx,P(e,`clsPrefix`)),{handleMouseDown(e){e.preventDefault()}}},render(){let{clsPrefix:e}=this;return L(`div`,{class:`${e}-base-clear`},L(Bx,null,{default:()=>{var t;return this.show?L(`div`,{key:`dismiss`,class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},km(this.$slots.icon,()=>[L(zx,{clsPrefix:e},{default:()=>L(Ux,null)})])):L(`div`,{key:`icon`,class:`${e}-base-clear__placeholder`},(t=this.$slots).placeholder?.call(t))}}))}}),Qx=F({name:`FadeInExpandTransition`,props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(t){e.width?t.style.maxWidth=`${t.offsetWidth}px`:t.style.maxHeight=`${t.offsetHeight}px`,t.offsetWidth}function r(t){e.width?t.style.maxWidth=`0`:t.style.maxHeight=`0`,t.offsetWidth;let{onLeave:n}=e;n&&n()}function i(t){e.width?t.style.maxWidth=``:t.style.maxHeight=``;let{onAfterLeave:n}=e;n&&n()}function a(t){if(t.style.transition=`none`,e.width){let e=t.offsetWidth;t.style.maxWidth=`0`,t.offsetWidth,t.style.transition=``,t.style.maxWidth=`${e}px`}else if(e.reverse)t.style.maxHeight=`${t.offsetHeight}px`,t.offsetHeight,t.style.transition=``,t.style.maxHeight=`0`;else{let e=t.offsetHeight;t.style.maxHeight=`0`,t.offsetWidth,t.style.transition=``,t.style.maxHeight=`${e}px`}t.offsetWidth}function o(t){var n;e.width?t.style.maxWidth=``:e.reverse||(t.style.maxHeight=``),(n=e.onAfterEnter)==null||n.call(e)}return()=>{let{group:s,width:c,appear:l,mode:u}=e,d=s?ks:Mo,f={name:c?`fade-in-width-expand-transition`:`fade-in-height-expand-transition`,appear:l,onEnter:a,onAfterEnter:o,onBeforeLeave:n,onLeave:r,onAfterLeave:i};return s||(f.mode=u),L(d,f,t)}}}),$x=B([B(`@keyframes rotator`,`
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}`),V(`base-loading`,`
position: relative;
line-height: 0;
width: 1em;
height: 1em;
`,[H(`transition-wrapper`,`
position: absolute;
width: 100%;
height: 100%;
`,[Yx()]),H(`placeholder`,`
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
`,[Yx({left:`50%`,top:`50%`,originalTransform:`translateX(-50%) translateY(-50%)`})]),H(`container`,`
animation: rotator 3s linear infinite both;
`,[H(`icon`,`
height: 1em;
width: 1em;
`)])])]),eS=`1.6s`,tS={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},nS=F({name:`BaseLoading`,props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},tS),setup(e){Px(`-base-loading`,$x,P(e,`clsPrefix`))},render(){let{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:i}=this,a=t/i;return L(`div`,{class:`${e}-base-loading`,role:`img`,"aria-label":`loading`},L(Bx,null,{default:()=>this.show?L(`div`,{key:`icon`,class:`${e}-base-loading__transition-wrapper`},L(`div`,{class:`${e}-base-loading__container`},L(`svg`,{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*a} ${2*a}`,xmlns:`http://www.w3.org/2000/svg`,style:{color:r}},L(`g`,null,L(`animateTransform`,{attributeName:`transform`,type:`rotate`,values:`0 ${a} ${a};270 ${a} ${a}`,begin:`0s`,dur:eS,fill:`freeze`,repeatCount:`indefinite`}),L(`circle`,{class:`${e}-base-loading__icon`,fill:`none`,stroke:`currentColor`,"stroke-width":n,"stroke-linecap":`round`,cx:a,cy:a,r:t-n/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},L(`animateTransform`,{attributeName:`transform`,type:`rotate`,values:`0 ${a} ${a};135 ${a} ${a};450 ${a} ${a}`,begin:`0s`,dur:eS,fill:`freeze`,repeatCount:`indefinite`}),L(`animate`,{attributeName:`stroke-dashoffset`,values:`${5.67*t};${1.42*t};${5.67*t}`,begin:`0s`,dur:eS,fill:`freeze`,repeatCount:`indefinite`})))))):L(`div`,{key:`placeholder`,class:`${e}-base-loading__placeholder`},this.$slots)}))}}),{cubicBezierEaseInOut:rS}=kx;function iS({name:e=`fade-in`,enterDuration:t=`0.2s`,leaveDuration:n=`0.2s`,enterCubicBezier:r=rS,leaveCubicBezier:i=rS}={}){return[B(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),B(`&.${e}-transition-leave-active`,{transition:`all ${n} ${i}!important`}),B(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),B(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}var J={neutralBase:`#000`,neutralInvertBase:`#fff`,neutralTextBase:`#fff`,neutralPopover:`rgb(72, 72, 78)`,neutralCard:`rgb(24, 24, 28)`,neutralModal:`rgb(44, 44, 50)`,neutralBody:`rgb(16, 16, 20)`,alpha1:`0.9`,alpha2:`0.82`,alpha3:`0.52`,alpha4:`0.38`,alpha5:`0.28`,alphaClose:`0.52`,alphaDisabled:`0.38`,alphaDisabledInput:`0.06`,alphaPending:`0.09`,alphaTablePending:`0.06`,alphaTableStriped:`0.05`,alphaPressed:`0.05`,alphaAvatar:`0.18`,alphaRail:`0.2`,alphaProgressRail:`0.12`,alphaBorder:`0.24`,alphaDivider:`0.09`,alphaInput:`0.1`,alphaAction:`0.06`,alphaTab:`0.04`,alphaScrollbar:`0.2`,alphaScrollbarHover:`0.3`,alphaCode:`0.12`,alphaTag:`0.2`,primaryHover:`#7fe7c4`,primaryDefault:`#63e2b7`,primaryActive:`#5acea7`,primarySuppl:`rgb(42, 148, 125)`,infoHover:`#8acbec`,infoDefault:`#70c0e8`,infoActive:`#66afd3`,infoSuppl:`rgb(56, 137, 197)`,errorHover:`#e98b8b`,errorDefault:`#e88080`,errorActive:`#e57272`,errorSuppl:`rgb(208, 58, 82)`,warningHover:`#f5d599`,warningDefault:`#f2c97d`,warningActive:`#e6c260`,warningSuppl:`rgb(240, 138, 0)`,successHover:`#7fe7c4`,successDefault:`#63e2b7`,successActive:`#5acea7`,successSuppl:`rgb(42, 148, 125)`},aS=sd(J.neutralBase),oS=sd(J.neutralInvertBase),sS=`rgba(${oS.slice(0,3).join(`, `)}, `;function cS(e){return`${sS+String(e)})`}function lS(e){let t=Array.from(oS);return t[3]=Number(e),G(aS,t)}var uS=Object.assign(Object.assign({name:`common`},kx),{baseColor:J.neutralBase,primaryColor:J.primaryDefault,primaryColorHover:J.primaryHover,primaryColorPressed:J.primaryActive,primaryColorSuppl:J.primarySuppl,infoColor:J.infoDefault,infoColorHover:J.infoHover,infoColorPressed:J.infoActive,infoColorSuppl:J.infoSuppl,successColor:J.successDefault,successColorHover:J.successHover,successColorPressed:J.successActive,successColorSuppl:J.successSuppl,warningColor:J.warningDefault,warningColorHover:J.warningHover,warningColorPressed:J.warningActive,warningColorSuppl:J.warningSuppl,errorColor:J.errorDefault,errorColorHover:J.errorHover,errorColorPressed:J.errorActive,errorColorSuppl:J.errorSuppl,textColorBase:J.neutralTextBase,textColor1:cS(J.alpha1),textColor2:cS(J.alpha2),textColor3:cS(J.alpha3),textColorDisabled:cS(J.alpha4),placeholderColor:cS(J.alpha4),placeholderColorDisabled:cS(J.alpha5),iconColor:cS(J.alpha4),iconColorDisabled:cS(J.alpha5),iconColorHover:cS(Number(J.alpha4)*1.25),iconColorPressed:cS(Number(J.alpha4)*.8),opacity1:J.alpha1,opacity2:J.alpha2,opacity3:J.alpha3,opacity4:J.alpha4,opacity5:J.alpha5,dividerColor:cS(J.alphaDivider),borderColor:cS(J.alphaBorder),closeIconColorHover:cS(Number(J.alphaClose)),closeIconColor:cS(Number(J.alphaClose)),closeIconColorPressed:cS(Number(J.alphaClose)),closeColorHover:`rgba(255, 255, 255, .12)`,closeColorPressed:`rgba(255, 255, 255, .08)`,clearColor:cS(J.alpha4),clearColorHover:dd(cS(J.alpha4),{alpha:1.25}),clearColorPressed:dd(cS(J.alpha4),{alpha:.8}),scrollbarColor:cS(J.alphaScrollbar),scrollbarColorHover:cS(J.alphaScrollbarHover),scrollbarWidth:`5px`,scrollbarHeight:`5px`,scrollbarBorderRadius:`5px`,progressRailColor:cS(J.alphaProgressRail),railColor:cS(J.alphaRail),popoverColor:J.neutralPopover,tableColor:J.neutralCard,cardColor:J.neutralCard,modalColor:J.neutralModal,bodyColor:J.neutralBody,tagColor:lS(J.alphaTag),avatarColor:cS(J.alphaAvatar),invertedColor:J.neutralBase,inputColor:cS(J.alphaInput),codeColor:cS(J.alphaCode),tabColor:cS(J.alphaTab),actionColor:cS(J.alphaAction),tableHeaderColor:cS(J.alphaAction),hoverColor:cS(J.alphaPending),tableColorHover:cS(J.alphaTablePending),tableColorStriped:cS(J.alphaTableStriped),pressedColor:cS(J.alphaPressed),opacityDisabled:J.alphaDisabled,inputColorDisabled:cS(J.alphaDisabledInput),buttonColor2:`rgba(255, 255, 255, .08)`,buttonColor2Hover:`rgba(255, 255, 255, .12)`,buttonColor2Pressed:`rgba(255, 255, 255, .08)`,boxShadow1:`0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)`,boxShadow2:`0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)`,boxShadow3:`0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)`}),Y=uS,X={neutralBase:`#FFF`,neutralInvertBase:`#000`,neutralTextBase:`#000`,neutralPopover:`#fff`,neutralCard:`#fff`,neutralModal:`#fff`,neutralBody:`#fff`,alpha1:`0.82`,alpha2:`0.72`,alpha3:`0.38`,alpha4:`0.24`,alpha5:`0.18`,alphaClose:`0.6`,alphaDisabled:`0.5`,alphaDisabledInput:`0.02`,alphaPending:`0.05`,alphaTablePending:`0.02`,alphaPressed:`0.07`,alphaAvatar:`0.2`,alphaRail:`0.14`,alphaProgressRail:`.08`,alphaBorder:`0.12`,alphaDivider:`0.06`,alphaInput:`0`,alphaAction:`0.02`,alphaTab:`0.04`,alphaScrollbar:`0.25`,alphaScrollbarHover:`0.4`,alphaCode:`0.05`,alphaTag:`0.02`,primaryHover:`#36ad6a`,primaryDefault:`#18a058`,primaryActive:`#0c7a43`,primarySuppl:`#36ad6a`,infoHover:`#4098fc`,infoDefault:`#2080f0`,infoActive:`#1060c9`,infoSuppl:`#4098fc`,errorHover:`#de576d`,errorDefault:`#d03050`,errorActive:`#ab1f3f`,errorSuppl:`#de576d`,warningHover:`#fcb040`,warningDefault:`#f0a020`,warningActive:`#c97c10`,warningSuppl:`#fcb040`,successHover:`#36ad6a`,successDefault:`#18a058`,successActive:`#0c7a43`,successSuppl:`#36ad6a`},dS=sd(X.neutralBase),fS=sd(X.neutralInvertBase),pS=`rgba(${fS.slice(0,3).join(`, `)}, `;function mS(e){return`${pS+String(e)})`}function hS(e){let t=Array.from(fS);return t[3]=Number(e),G(dS,t)}var gS=Object.assign(Object.assign({name:`common`},kx),{baseColor:X.neutralBase,primaryColor:X.primaryDefault,primaryColorHover:X.primaryHover,primaryColorPressed:X.primaryActive,primaryColorSuppl:X.primarySuppl,infoColor:X.infoDefault,infoColorHover:X.infoHover,infoColorPressed:X.infoActive,infoColorSuppl:X.infoSuppl,successColor:X.successDefault,successColorHover:X.successHover,successColorPressed:X.successActive,successColorSuppl:X.successSuppl,warningColor:X.warningDefault,warningColorHover:X.warningHover,warningColorPressed:X.warningActive,warningColorSuppl:X.warningSuppl,errorColor:X.errorDefault,errorColorHover:X.errorHover,errorColorPressed:X.errorActive,errorColorSuppl:X.errorSuppl,textColorBase:X.neutralTextBase,textColor1:`rgb(31, 34, 37)`,textColor2:`rgb(51, 54, 57)`,textColor3:`rgb(118, 124, 130)`,textColorDisabled:hS(X.alpha4),placeholderColor:hS(X.alpha4),placeholderColorDisabled:hS(X.alpha5),iconColor:hS(X.alpha4),iconColorHover:dd(hS(X.alpha4),{lightness:.75}),iconColorPressed:dd(hS(X.alpha4),{lightness:.9}),iconColorDisabled:hS(X.alpha5),opacity1:X.alpha1,opacity2:X.alpha2,opacity3:X.alpha3,opacity4:X.alpha4,opacity5:X.alpha5,dividerColor:`rgb(239, 239, 245)`,borderColor:`rgb(224, 224, 230)`,closeIconColor:hS(Number(X.alphaClose)),closeIconColorHover:hS(Number(X.alphaClose)),closeIconColorPressed:hS(Number(X.alphaClose)),closeColorHover:`rgba(0, 0, 0, .09)`,closeColorPressed:`rgba(0, 0, 0, .13)`,clearColor:hS(X.alpha4),clearColorHover:dd(hS(X.alpha4),{lightness:.75}),clearColorPressed:dd(hS(X.alpha4),{lightness:.9}),scrollbarColor:mS(X.alphaScrollbar),scrollbarColorHover:mS(X.alphaScrollbarHover),scrollbarWidth:`5px`,scrollbarHeight:`5px`,scrollbarBorderRadius:`5px`,progressRailColor:hS(X.alphaProgressRail),railColor:`rgb(219, 219, 223)`,popoverColor:X.neutralPopover,tableColor:X.neutralCard,cardColor:X.neutralCard,modalColor:X.neutralModal,bodyColor:X.neutralBody,tagColor:`#eee`,avatarColor:hS(X.alphaAvatar),invertedColor:`rgb(0, 20, 40)`,inputColor:hS(X.alphaInput),codeColor:`rgb(244, 244, 248)`,tabColor:`rgb(247, 247, 250)`,actionColor:`rgb(250, 250, 252)`,tableHeaderColor:`rgb(250, 250, 252)`,hoverColor:`rgb(243, 243, 245)`,tableColorHover:`rgba(0, 0, 100, 0.03)`,tableColorStriped:`rgba(0, 0, 100, 0.02)`,pressedColor:`rgb(237, 237, 239)`,opacityDisabled:X.alphaDisabled,inputColorDisabled:`rgb(250, 250, 252)`,buttonColor2:`rgba(46, 51, 56, .05)`,buttonColor2Hover:`rgba(46, 51, 56, .09)`,buttonColor2Pressed:`rgba(46, 51, 56, .13)`,boxShadow1:`0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)`,boxShadow2:`0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)`,boxShadow3:`0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)`}),Z=gS;const _S={railInsetHorizontalBottom:`auto 2px 4px 2px`,railInsetHorizontalTop:`4px 2px auto 2px`,railInsetVerticalRight:`2px 4px 2px auto`,railInsetVerticalLeft:`2px auto 2px 4px`,railColor:`transparent`};function vS(e){let{scrollbarColor:t,scrollbarColorHover:n,scrollbarHeight:r,scrollbarWidth:i,scrollbarBorderRadius:a}=e;return Object.assign(Object.assign({},_S),{height:r,width:i,borderRadius:a,color:t,colorHover:n})}var yS={name:`Scrollbar`,common:Z,self:vS},bS=yS,xS={name:`Scrollbar`,common:Y,self:vS},SS=xS,CS=V(`scrollbar`,`
overflow: hidden;
position: relative;
z-index: auto;
height: 100%;
width: 100%;
`,[B(`>`,[V(`scrollbar-container`,`
width: 100%;
overflow: scroll;
height: 100%;
min-height: inherit;
max-height: inherit;
scrollbar-width: none;
`,[B(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,`
width: 0;
height: 0;
display: none;
`),B(`>`,[V(`scrollbar-content`,`
box-sizing: border-box;
min-width: 100%;
`)])])]),B(`>, +`,[V(`scrollbar-rail`,`
position: absolute;
pointer-events: none;
user-select: none;
background: var(--n-scrollbar-rail-color);
-webkit-user-select: none;
`,[U(`horizontal`,`
height: var(--n-scrollbar-height);
`,[B(`>`,[H(`scrollbar`,`
height: var(--n-scrollbar-height);
border-radius: var(--n-scrollbar-border-radius);
right: 0;
`)])]),U(`horizontal--top`,`
top: var(--n-scrollbar-rail-top-horizontal-top);
right: var(--n-scrollbar-rail-right-horizontal-top);
bottom: var(--n-scrollbar-rail-bottom-horizontal-top);
left: var(--n-scrollbar-rail-left-horizontal-top);
`),U(`horizontal--bottom`,`
top: var(--n-scrollbar-rail-top-horizontal-bottom);
right: var(--n-scrollbar-rail-right-horizontal-bottom);
bottom: var(--n-scrollbar-rail-bottom-horizontal-bottom);
left: var(--n-scrollbar-rail-left-horizontal-bottom);
`),U(`vertical`,`
width: var(--n-scrollbar-width);
`,[B(`>`,[H(`scrollbar`,`
width: var(--n-scrollbar-width);
border-radius: var(--n-scrollbar-border-radius);
bottom: 0;
`)])]),U(`vertical--left`,`
top: var(--n-scrollbar-rail-top-vertical-left);
right: var(--n-scrollbar-rail-right-vertical-left);
bottom: var(--n-scrollbar-rail-bottom-vertical-left);
left: var(--n-scrollbar-rail-left-vertical-left);
`),U(`vertical--right`,`
top: var(--n-scrollbar-rail-top-vertical-right);
right: var(--n-scrollbar-rail-right-vertical-right);
bottom: var(--n-scrollbar-rail-bottom-vertical-right);
left: var(--n-scrollbar-rail-left-vertical-right);
`),U(`disabled`,[B(`>`,[H(`scrollbar`,`pointer-events: none;`)])]),B(`>`,[H(`scrollbar`,`
z-index: 1;
position: absolute;
cursor: pointer;
pointer-events: all;
background-color: var(--n-scrollbar-color);
transition: background-color .2s var(--n-scrollbar-bezier);
`,[iS(),B(`&:hover`,`background-color: var(--n-scrollbar-color-hover);`)])])])])]),wS=F({name:`Scrollbar`,props:Object.assign(Object.assign({},Lx.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:`hover`},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,yPlacement:{type:String,default:`right`},xPlacement:{type:String,default:`bottom`}}),inheritAttrs:!1,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=Im(e),i=Ox(`Scrollbar`,r,t),a=M(null),o=M(null),s=M(null),c=M(null),l=M(null),u=M(null),d=M(null),f=M(null),p=M(null),m=M(null),h=M(null),g=M(0),_=M(0),v=M(!1),y=M(!1),b=!1,x=!1,S,C,w=0,T=0,E=0,D=0,O=zd(),k=Lx(`Scrollbar`,`-scrollbar`,CS,bS,e,t),A=I(()=>{let{value:e}=f,{value:t}=u,{value:n}=m;return e===null||t===null||n===null?0:Math.min(e,n*e/t+Iu(k.value.self.width)*1.5)}),ee=I(()=>`${A.value}px`),te=I(()=>{let{value:e}=p,{value:t}=d,{value:n}=h;return e===null||t===null||n===null?0:n*e/t+Iu(k.value.self.height)*1.5}),ne=I(()=>`${te.value}px`),re=I(()=>{let{value:e}=f,{value:t}=g,{value:n}=u,{value:r}=m;if(e===null||n===null||r===null)return 0;{let i=n-e;return i?t/i*(r-A.value):0}}),ie=I(()=>`${re.value}px`),ae=I(()=>{let{value:e}=p,{value:t}=_,{value:n}=d,{value:r}=h;if(e===null||n===null||r===null)return 0;{let i=n-e;return i?t/i*(r-te.value):0}}),oe=I(()=>`${ae.value}px`),se=I(()=>{let{value:e}=f,{value:t}=u;return e!==null&&t!==null&&t>e}),ce=I(()=>{let{value:e}=p,{value:t}=d;return e!==null&&t!==null&&t>e}),le=I(()=>{let{trigger:t}=e;return t===`none`||v.value}),ue=I(()=>{let{trigger:t}=e;return t===`none`||y.value}),de=I(()=>{let{container:t}=e;return t?t():o.value}),fe=I(()=>{let{content:t}=e;return t?t():s.value}),pe=(t,n)=>{if(!e.scrollable)return;if(typeof t==`number`){ve(t,n??0,0,!1,`auto`);return}let{left:r,top:i,index:a,elSize:o,position:s,behavior:c,el:l,debounce:u=!0}=t;(r!==void 0||i!==void 0)&&ve(r??0,i??0,0,!1,c),l===void 0?a!==void 0&&o!==void 0?ve(0,a*o,o,u,c):s===`bottom`?ve(0,2**53-1,0,!1,c):s===`top`&&ve(0,0,0,!1,c):ve(0,l.offsetTop,l.offsetHeight,u,c)},me=Qd(()=>{e.container||pe({top:g.value,left:_.value})}),he=()=>{me.isDeactivated||Ae()},ge=t=>{if(me.isDeactivated)return;let{onResize:n}=e;n&&n(t),Ae()},_e=(t,n)=>{if(!e.scrollable)return;let{value:r}=de;r&&(typeof t==`object`?r.scrollBy(t):r.scrollBy(t,n||0))};function ve(e,t,n,r,i){let{value:a}=de;if(a){if(r){let{scrollTop:r,offsetHeight:o}=a;if(t>r){t+n<=r+o||a.scrollTo({left:e,top:t+n-o,behavior:i});return}}a.scrollTo({left:e,top:t,behavior:i})}}function ye(){we(),Te(),Ae()}function be(){xe()}function xe(){Se(),Ce()}function Se(){C!==void 0&&window.clearTimeout(C),C=window.setTimeout(()=>{y.value=!1},e.duration)}function Ce(){S!==void 0&&window.clearTimeout(S),S=window.setTimeout(()=>{v.value=!1},e.duration)}function we(){S!==void 0&&window.clearTimeout(S),v.value=!0}function Te(){C!==void 0&&window.clearTimeout(C),y.value=!0}function Ee(t){let{onScroll:n}=e;n&&n(t),De()}function De(){let{value:e}=de;e&&(g.value=e.scrollTop,_.value=e.scrollLeft*(i?.value?-1:1))}function Oe(){let{value:e}=fe;e&&(u.value=e.offsetHeight,d.value=e.offsetWidth);let{value:t}=de;t&&(f.value=t.offsetHeight,p.value=t.offsetWidth);let{value:n}=l,{value:r}=c;n&&(h.value=n.offsetWidth),r&&(m.value=r.offsetHeight)}function ke(){let{value:e}=de;e&&(g.value=e.scrollTop,_.value=e.scrollLeft*(i?.value?-1:1),f.value=e.offsetHeight,p.value=e.offsetWidth,u.value=e.scrollHeight,d.value=e.scrollWidth);let{value:t}=l,{value:n}=c;t&&(h.value=t.offsetWidth),n&&(m.value=n.offsetHeight)}function Ae(){e.scrollable&&(e.useUnifiedContainer?ke():(Oe(),De()))}function je(e){return!a.value?.contains(Fu(e))}function Me(e){e.preventDefault(),e.stopPropagation(),x=!0,Ed(`mousemove`,window,Ne,!0),Ed(`mouseup`,window,Pe,!0),T=_.value,E=i?.value?window.innerWidth-e.clientX:e.clientX}function Ne(t){if(!x)return;S!==void 0&&window.clearTimeout(S),C!==void 0&&window.clearTimeout(C);let{value:n}=p,{value:r}=d,{value:a}=te;if(n===null||r===null)return;let o=(i?.value?window.innerWidth-t.clientX-E:t.clientX-E)*(r-n)/(n-a),s=r-n,c=T+o;c=Math.min(s,c),c=Math.max(c,0);let{value:l}=de;if(l){l.scrollLeft=c*(i?.value?-1:1);let{internalOnUpdateScrollLeft:t}=e;t&&t(c)}}function Pe(e){e.preventDefault(),e.stopPropagation(),Dd(`mousemove`,window,Ne,!0),Dd(`mouseup`,window,Pe,!0),x=!1,Ae(),je(e)&&xe()}function Fe(e){e.preventDefault(),e.stopPropagation(),b=!0,Ed(`mousemove`,window,Ie,!0),Ed(`mouseup`,window,Le,!0),w=g.value,D=e.clientY}function Ie(e){if(!b)return;S!==void 0&&window.clearTimeout(S),C!==void 0&&window.clearTimeout(C);let{value:t}=f,{value:n}=u,{value:r}=A;if(t===null||n===null)return;let i=(e.clientY-D)*(n-t)/(t-r),a=n-t,o=w+i;o=Math.min(a,o),o=Math.max(o,0);let{value:s}=de;s&&(s.scrollTop=o)}function Le(e){e.preventDefault(),e.stopPropagation(),Dd(`mousemove`,window,Ie,!0),Dd(`mouseup`,window,Le,!0),b=!1,Ae(),je(e)&&xe()}tr(()=>{let{value:e}=ce,{value:n}=se,{value:r}=t,{value:i}=l,{value:a}=c;i&&(e?i.classList.remove(`${r}-scrollbar-rail--disabled`):i.classList.add(`${r}-scrollbar-rail--disabled`)),a&&(n?a.classList.remove(`${r}-scrollbar-rail--disabled`):a.classList.add(`${r}-scrollbar-rail--disabled`))}),Yr(()=>{e.container||Ae()}),Qr(()=>{S!==void 0&&window.clearTimeout(S),C!==void 0&&window.clearTimeout(C),Dd(`mousemove`,window,Ie,!0),Dd(`mouseup`,window,Le,!0)});let Re=I(()=>{let{common:{cubicBezierEaseInOut:e},self:{color:t,colorHover:n,height:r,width:a,borderRadius:o,railInsetHorizontalTop:s,railInsetHorizontalBottom:c,railInsetVerticalRight:l,railInsetVerticalLeft:u,railColor:d}}=k.value,{top:f,right:p,bottom:m,left:h}=Ru(s),{top:g,right:_,bottom:v,left:y}=Ru(c),{top:b,right:x,bottom:S,left:C}=Ru(i?.value?Cm(l):l),{top:w,right:T,bottom:E,left:D}=Ru(i?.value?Cm(u):u);return{"--n-scrollbar-bezier":e,"--n-scrollbar-color":t,"--n-scrollbar-color-hover":n,"--n-scrollbar-border-radius":o,"--n-scrollbar-width":a,"--n-scrollbar-height":r,"--n-scrollbar-rail-top-horizontal-top":f,"--n-scrollbar-rail-right-horizontal-top":p,"--n-scrollbar-rail-bottom-horizontal-top":m,"--n-scrollbar-rail-left-horizontal-top":h,"--n-scrollbar-rail-top-horizontal-bottom":g,"--n-scrollbar-rail-right-horizontal-bottom":_,"--n-scrollbar-rail-bottom-horizontal-bottom":v,"--n-scrollbar-rail-left-horizontal-bottom":y,"--n-scrollbar-rail-top-vertical-right":b,"--n-scrollbar-rail-right-vertical-right":x,"--n-scrollbar-rail-bottom-vertical-right":S,"--n-scrollbar-rail-left-vertical-right":C,"--n-scrollbar-rail-top-vertical-left":w,"--n-scrollbar-rail-right-vertical-left":T,"--n-scrollbar-rail-bottom-vertical-left":E,"--n-scrollbar-rail-left-vertical-left":D,"--n-scrollbar-rail-color":d}}),ze=n?Lm(`scrollbar`,void 0,Re,e):void 0,Be={scrollTo:pe,scrollBy:_e,sync:Ae,syncUnifiedContainer:ke,handleMouseEnterWrapper:ye,handleMouseLeaveWrapper:be};return Object.assign(Object.assign({},Be),{mergedClsPrefix:t,rtlEnabled:i,containerScrollTop:g,wrapperRef:a,containerRef:o,contentRef:s,yRailRef:c,xRailRef:l,needYBar:se,needXBar:ce,yBarSizePx:ee,xBarSizePx:ne,yBarTopPx:ie,xBarLeftPx:oe,isShowXBar:le,isShowYBar:ue,isIos:O,handleScroll:Ee,handleContentResize:he,handleContainerResize:ge,handleYScrollMouseDown:Fe,handleXScrollMouseDown:Me,cssVars:n?void 0:Re,themeClass:ze?.themeClass,onRender:ze?.onRender})},render(){let{$slots:e,mergedClsPrefix:t,triggerDisplayManually:n,rtlEnabled:r,internalHoistYRail:i,yPlacement:a,xPlacement:o,xScrollable:s}=this;if(!this.scrollable)return e.default?.call(e);let c=this.trigger===`none`,l=(e,n)=>L(`div`,{ref:`yRailRef`,class:[`${t}-scrollbar-rail`,`${t}-scrollbar-rail--vertical`,`${t}-scrollbar-rail--vertical--${a}`,e],"data-scrollbar-rail":!0,style:[n||``,this.verticalRailStyle],"aria-hidden":!0},L(c?Nm:Mo,c?null:{name:`fade-in-transition`},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?L(`div`,{class:`${t}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),u=()=>{var a;return(a=this.onRender)==null||a.call(this),L(`div`,qa(this.$attrs,{role:`none`,ref:`wrapperRef`,class:[`${t}-scrollbar`,this.themeClass,r&&`${t}-scrollbar--rtl`],style:this.cssVars,onMouseenter:n?void 0:this.handleMouseEnterWrapper,onMouseleave:n?void 0:this.handleMouseLeaveWrapper}),[this.container?e.default?.call(e):L(`div`,{role:`none`,ref:`containerRef`,class:[`${t}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},L(fm,{onResize:this.handleContentResize},{default:()=>L(`div`,{ref:`contentRef`,role:`none`,style:[{width:this.xScrollable?`fit-content`:null},this.contentStyle],class:[`${t}-scrollbar-content`,this.contentClass]},e)})),i?null:l(void 0,void 0),s&&L(`div`,{ref:`xRailRef`,class:[`${t}-scrollbar-rail`,`${t}-scrollbar-rail--horizontal`,`${t}-scrollbar-rail--horizontal--${o}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},L(c?Nm:Mo,c?null:{name:`fade-in-transition`},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?L(`div`,{class:`${t}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:r?this.xBarLeftPx:void 0,left:r?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},d=this.container?u():L(fm,{onResize:this.handleContainerResize},{default:u});return i?L(ba,null,d,l(this.themeClass,this.cssVars)):d}}),TS=wS;const ES=wS;function DS(e){return Array.isArray(e)?e:[e]}const OS={STOP:`STOP`};function kS(e,t){let n=t(e);e.children!==void 0&&n!==OS.STOP&&e.children.forEach(e=>kS(e,t))}function AS(e,t={}){let{preserveGroup:n=!1}=t,r=[],i=n?e=>{e.isLeaf||(r.push(e.key),a(e.children))}:e=>{e.isLeaf||(e.isGroup||r.push(e.key),a(e.children))};function a(e){e.forEach(i)}return a(e),r}function jS(e,t){let{isLeaf:n}=e;return n===void 0?!t(e):n}function MS(e){return e.children}function NS(e){return e.key}function PS(){return!1}function FS(e,t){let{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function IS(e){return e.disabled===!0}function LS(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function RS(e){return e==null?[]:Array.isArray(e)?e:e.checkedKeys??[]}function zS(e){return e==null||Array.isArray(e)?[]:e.indeterminateKeys??[]}function BS(e,t){let n=new Set(e);return t.forEach(e=>{n.has(e)||n.add(e)}),Array.from(n)}function VS(e,t){let n=new Set(e);return t.forEach(e=>{n.has(e)&&n.delete(e)}),Array.from(n)}function HS(e){return e?.type===`group`}function US(e){let t=new Map;return e.forEach((e,n)=>{t.set(e.key,n)}),e=>t.get(e)??null}var WS=class extends Error{constructor(){super(),this.message=`SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded.`}};function GS(e,t,n,r){return YS(t.concat(e),n,r,!1)}function KS(e,t){let n=new Set;return e.forEach(e=>{let r=t.treeNodeMap.get(e);if(r!==void 0){let e=r.parent;for(;e!==null&&!(e.disabled||n.has(e.key));)n.add(e.key),e=e.parent}}),n}function qS(e,t,n,r){let i=YS(t,n,r,!1),a=YS(e,n,r,!0),o=KS(e,n),s=[];return i.forEach(e=>{(a.has(e)||o.has(e))&&s.push(e)}),s.forEach(e=>i.delete(e)),i}function JS(e,t){let{checkedKeys:n,keysToCheck:r,keysToUncheck:i,indeterminateKeys:a,cascade:o,leafOnly:s,checkStrategy:c,allowNotLoaded:l}=e;if(!o)return r===void 0?i===void 0?{checkedKeys:Array.from(n),indeterminateKeys:Array.from(a)}:{checkedKeys:VS(n,i),indeterminateKeys:Array.from(a)}:{checkedKeys:BS(n,r),indeterminateKeys:Array.from(a)};let{levelTreeNodeMap:u}=t,d;d=i===void 0?r===void 0?YS(n,t,l,!1):GS(r,n,t,l):qS(i,n,t,l);let f=c===`parent`,p=c===`child`||s,m=d,h=new Set,g=Math.max.apply(null,Array.from(u.keys()));for(let e=g;e>=0;--e){let t=e===0,n=u.get(e);for(let e of n){if(e.isLeaf)continue;let{key:n,shallowLoaded:r}=e;if(p&&r&&e.children.forEach(e=>{!e.disabled&&!e.isLeaf&&e.shallowLoaded&&m.has(e.key)&&m.delete(e.key)}),e.disabled||!r)continue;let i=!0,a=!1,o=!0;for(let t of e.children){let e=t.key;if(!t.disabled){if(o&&=!1,m.has(e))a=!0;else if(h.has(e)){a=!0,i=!1;break}else if(i=!1,a)break}}i&&!o?(f&&e.children.forEach(e=>{!e.disabled&&m.has(e.key)&&m.delete(e.key)}),m.add(n)):a&&h.add(n),t&&p&&m.has(n)&&m.delete(n)}}return{checkedKeys:Array.from(m),indeterminateKeys:Array.from(h)}}function YS(e,t,n,r){let{treeNodeMap:i,getChildren:a}=t,o=new Set,s=new Set(e);return e.forEach(e=>{let t=i.get(e);t!==void 0&&kS(t,e=>{if(e.disabled)return OS.STOP;let{key:t}=e;if(!o.has(t)&&(o.add(t),s.add(t),LS(e.rawNode,a))){if(r)return OS.STOP;if(!n)throw new WS}})}),s}function XS(e,{includeGroup:t=!1,includeSelf:n=!0},r){let i=r.treeNodeMap,a=e==null?null:i.get(e)??null,o={keyPath:[],treeNodePath:[],treeNode:a};if(a?.ignored)return o.treeNode=null,o;for(;a;)!a.ignored&&(t||!a.isGroup)&&o.treeNodePath.push(a),a=a.parent;return o.treeNodePath.reverse(),n||o.treeNodePath.pop(),o.keyPath=o.treeNodePath.map(e=>e.key),o}function ZS(e){if(e.length===0)return null;let t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function QS(e,t){let n=e.siblings,r=n.length,{index:i}=e;return t?n[(i+1)%r]:i===n.length-1?null:n[i+1]}function $S(e,t,{loop:n=!1,includeDisabled:r=!1}={}){let i=t===`prev`?eC:QS,a={reverse:t===`prev`},o=!1,s=null;function c(t){if(t!==null){if(t===e){if(!o)o=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!t.disabled||r)&&!t.ignored&&!t.isGroup){s=t;return}if(t.isGroup){let e=nC(t,a);e===null?c(i(t,n)):s=e}else{let e=i(t,!1);if(e!==null)c(e);else{let e=tC(t);e?.isGroup?c(i(e,n)):n&&c(i(t,!0))}}}}return c(e),s}function eC(e,t){let n=e.siblings,r=n.length,{index:i}=e;return t?n[(i-1+r)%r]:i===0?null:n[i-1]}function tC(e){return e.parent}function nC(e,t={}){let{reverse:n=!1}=t,{children:r}=e;if(r){let{length:e}=r,i=n?e-1:0,a=n?-1:e,o=n?-1:1;for(let e=i;e!==a;e+=o){let n=r[e];if(!n.disabled&&!n.ignored)if(n.isGroup){let e=nC(n,t);if(e!==null)return e}else return n}}return null}const rC={getChild(){return this.ignored?null:nC(this)},getParent(){let{parent:e}=this;return e?.isGroup?e.getParent():e},getNext(e={}){return $S(this,`next`,e)},getPrev(e={}){return $S(this,`prev`,e)}};function iC(e,t){let n=t?new Set(t):void 0,r=[];function i(e){e.forEach(e=>{r.push(e),!(e.isLeaf||!e.children||e.ignored)&&(e.isGroup||n===void 0||n.has(e.key))&&i(e.children)})}return i(e),r}function aC(e,t){let n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function oC(e,t,n,r,i,a=null,o=0){let s=[];return e.forEach((c,l)=>{var u;let d=Object.create(r);if(d.rawNode=c,d.siblings=s,d.level=o,d.index=l,d.isFirstChild=l===0,d.isLastChild=l+1===e.length,d.parent=a,!d.ignored){let e=i(c);Array.isArray(e)&&(d.children=oC(e,t,n,r,i,d,o+1))}s.push(d),t.set(d.key,d),n.has(o)||n.set(o,[]),(u=n.get(o))==null||u.push(d)}),s}function sC(e,t={}){let n=new Map,r=new Map,{getDisabled:i=IS,getIgnored:a=PS,getIsGroup:o=HS,getKey:s=NS}=t,c=t.getChildren??MS,l=t.ignoreEmptyChildren?e=>{let t=c(e);return Array.isArray(t)?t.length?t:null:t}:c,u=oC(e,n,r,Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return o(this.rawNode)},get isLeaf(){return jS(this.rawNode,l)},get shallowLoaded(){return FS(this.rawNode,l)},get ignored(){return a(this.rawNode)},contains(e){return aC(this,e)}},rC),l);function d(e){if(e==null)return null;let t=n.get(e);return t&&!t.isGroup&&!t.ignored?t:null}function f(e){if(e==null)return null;let t=n.get(e);return t&&!t.ignored?t:null}function p(e,t){let n=f(e);return n?n.getPrev(t):null}function m(e,t){let n=f(e);return n?n.getNext(t):null}function h(e){let t=f(e);return t?t.getParent():null}function g(e){let t=f(e);return t?t.getChild():null}let _={treeNodes:u,treeNodeMap:n,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:l,getFlattenedNodes(e){return iC(u,e)},getNode:d,getPrev:p,getNext:m,getParent:h,getChild:g,getFirstAvailableNode(){return ZS(u)},getPath(e,t={}){return XS(e,t,_)},getCheckedKeys(e,t={}){let{cascade:n=!0,leafOnly:r=!1,checkStrategy:i=`all`,allowNotLoaded:a=!1}=t;return JS({checkedKeys:RS(e),indeterminateKeys:zS(e),cascade:n,leafOnly:r,checkStrategy:i,allowNotLoaded:a},_)},check(e,t,n={}){let{cascade:r=!0,leafOnly:i=!1,checkStrategy:a=`all`,allowNotLoaded:o=!1}=n;return JS({checkedKeys:RS(t),indeterminateKeys:zS(t),keysToCheck:e==null?[]:DS(e),cascade:r,leafOnly:i,checkStrategy:a,allowNotLoaded:o},_)},uncheck(e,t,n={}){let{cascade:r=!0,leafOnly:i=!1,checkStrategy:a=`all`,allowNotLoaded:o=!1}=n;return JS({checkedKeys:RS(t),indeterminateKeys:zS(t),keysToUncheck:e==null?[]:DS(e),cascade:r,leafOnly:i,checkStrategy:a,allowNotLoaded:o},_)},getNonLeafKeys(e={}){return AS(u,e)}};return _}var cC={iconSizeTiny:`28px`,iconSizeSmall:`34px`,iconSizeMedium:`40px`,iconSizeLarge:`46px`,iconSizeHuge:`52px`};function lC(e){let{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c}=e;return Object.assign(Object.assign({},cC),{fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c,textColor:t,iconColor:n,extraTextColor:r})}var uC={name:`Empty`,common:Z,self:lC},dC=uC,fC={name:`Empty`,common:Y,self:lC},pC=fC,mC=V(`empty`,`
display: flex;
flex-direction: column;
align-items: center;
font-size: var(--n-font-size);
`,[H(`icon`,`
width: var(--n-icon-size);
height: var(--n-icon-size);
font-size: var(--n-icon-size);
line-height: var(--n-icon-size);
color: var(--n-icon-color);
transition:
color .3s var(--n-bezier);
`,[B(`+`,[H(`description`,`
margin-top: 8px;
`)])]),H(`description`,`
transition: color .3s var(--n-bezier);
color: var(--n-text-color);
`),H(`extra`,`
text-align: center;
transition: color .3s var(--n-bezier);
margin-top: 12px;
color: var(--n-extra-text-color);
`)]);const hC=Object.assign(Object.assign({},Lx.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:`medium`},renderIcon:Function});var gC=F({name:`Empty`,props:hC,slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:r}=Im(e),i=Lx(`Empty`,`-empty`,mC,dC,e,t),{localeRef:a}=Ex(`Empty`),o=I(()=>e.description??r?.value?.Empty?.description),s=I(()=>r?.value?.Empty?.renderIcon||(()=>L(Wx,null))),c=I(()=>{let{size:t}=e,{common:{cubicBezierEaseInOut:n},self:{[W(`iconSize`,t)]:r,[W(`fontSize`,t)]:a,textColor:o,iconColor:s,extraTextColor:c}}=i.value;return{"--n-icon-size":r,"--n-font-size":a,"--n-bezier":n,"--n-text-color":o,"--n-icon-color":s,"--n-extra-text-color":c}}),l=n?Lm(`empty`,I(()=>{let t=``,{size:n}=e;return t+=n[0],t}),c,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:s,localizedDescription:I(()=>o.value||a.value.description),cssVars:n?void 0:c,themeClass:l?.themeClass,onRender:l?.onRender}},render(){let{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n?.(),L(`div`,{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?L(`div`,{class:`${t}-empty__icon`},e.icon?e.icon():L(zx,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?L(`div`,{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?L(`div`,{class:`${t}-empty__extra`},e.extra()):null)}}),_C={height:`calc(var(--n-option-height) * 7.6)`,paddingTiny:`4px 0`,paddingSmall:`4px 0`,paddingMedium:`4px 0`,paddingLarge:`4px 0`,paddingHuge:`4px 0`,optionPaddingTiny:`0 12px`,optionPaddingSmall:`0 12px`,optionPaddingMedium:`0 12px`,optionPaddingLarge:`0 12px`,optionPaddingHuge:`0 12px`,loadingSize:`18px`};function vC(e){let{borderRadius:t,popoverColor:n,textColor3:r,dividerColor:i,textColor2:a,primaryColorPressed:o,textColorDisabled:s,primaryColor:c,opacityDisabled:l,hoverColor:u,fontSizeTiny:d,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m,fontSizeHuge:h,heightTiny:g,heightSmall:_,heightMedium:v,heightLarge:y,heightHuge:b}=e;return Object.assign(Object.assign({},_C),{optionFontSizeTiny:d,optionFontSizeSmall:f,optionFontSizeMedium:p,optionFontSizeLarge:m,optionFontSizeHuge:h,optionHeightTiny:g,optionHeightSmall:_,optionHeightMedium:v,optionHeightLarge:y,optionHeightHuge:b,borderRadius:t,color:n,groupHeaderTextColor:r,actionDividerColor:i,optionTextColor:a,optionTextColorPressed:o,optionTextColorDisabled:s,optionTextColorActive:c,optionOpacityDisabled:l,optionCheckColor:c,optionColorPending:u,optionColorActive:`rgba(0, 0, 0, 0)`,optionColorActivePending:u,actionTextColor:a,loadingColor:c})}var yC=Fx({name:`InternalSelectMenu`,common:Z,peers:{Scrollbar:bS,Empty:dC},self:vC}),bC=yC,xC={name:`InternalSelectMenu`,common:Y,peers:{Scrollbar:SS,Empty:pC},self:vC},SC=xC,{cubicBezierEaseIn:CC,cubicBezierEaseOut:wC}=kx;function TC({transformOrigin:e=`inherit`,duration:t=`.2s`,enterScale:n=`.9`,originalTransform:r=``,originalTransition:i=``}={}){return[B(`&.fade-in-scale-up-transition-leave-active`,{transformOrigin:e,transition:`opacity ${t} ${CC}, transform ${t} ${CC} ${i&&`,${i}`}`}),B(`&.fade-in-scale-up-transition-enter-active`,{transformOrigin:e,transition:`opacity ${t} ${wC}, transform ${t} ${wC} ${i&&`,${i}`}`}),B(`&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to`,{opacity:0,transform:`${r} scale(${n})`}),B(`&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to`,{opacity:1,transform:`${r} scale(1)`})]}var EC={space:`6px`,spaceArrow:`10px`,arrowOffset:`10px`,arrowOffsetVertical:`10px`,arrowHeight:`6px`,padding:`8px 14px`};function DC(e){let{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:i,fontSize:a,dividerColor:o}=e;return Object.assign(Object.assign({},EC),{fontSize:a,borderRadius:i,color:n,dividerColor:o,textColor:r,boxShadow:t})}var OC=Fx({name:`Popover`,common:Z,peers:{Scrollbar:bS},self:DC}),kC=OC,AC={name:`Popover`,common:Y,peers:{Scrollbar:SS},self:DC},jC=AC,MC={closeIconSizeTiny:`12px`,closeIconSizeSmall:`12px`,closeIconSizeMedium:`14px`,closeIconSizeLarge:`14px`,closeSizeTiny:`16px`,closeSizeSmall:`16px`,closeSizeMedium:`18px`,closeSizeLarge:`18px`,padding:`0 7px`,closeMargin:`0 0 0 4px`},NC={name:`Tag`,common:Y,self(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:o,warningColor:s,errorColor:c,baseColor:l,borderColor:u,tagColor:d,opacityDisabled:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,closeColorHover:g,closeColorPressed:_,borderRadiusSmall:v,fontSizeMini:y,fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:S,heightMini:C,heightTiny:w,heightSmall:T,heightMedium:E,buttonColor2Hover:D,buttonColor2Pressed:O,fontWeightStrong:k}=e;return Object.assign(Object.assign({},MC),{closeBorderRadius:v,heightTiny:C,heightSmall:w,heightMedium:T,heightLarge:E,borderRadius:v,opacityDisabled:f,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:S,fontWeightStrong:k,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:l,colorCheckable:`#0000`,colorHoverCheckable:D,colorPressedCheckable:O,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:d,colorBordered:`#0000`,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,closeColorHover:g,closeColorPressed:_,borderPrimary:`1px solid ${K(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:K(i,{alpha:.16}),colorBorderedPrimary:`#0000`,closeIconColorPrimary:dd(i,{lightness:.7}),closeIconColorHoverPrimary:dd(i,{lightness:.7}),closeIconColorPressedPrimary:dd(i,{lightness:.7}),closeColorHoverPrimary:K(i,{alpha:.16}),closeColorPressedPrimary:K(i,{alpha:.12}),borderInfo:`1px solid ${K(a,{alpha:.3})}`,textColorInfo:a,colorInfo:K(a,{alpha:.16}),colorBorderedInfo:`#0000`,closeIconColorInfo:dd(a,{alpha:.7}),closeIconColorHoverInfo:dd(a,{alpha:.7}),closeIconColorPressedInfo:dd(a,{alpha:.7}),closeColorHoverInfo:K(a,{alpha:.16}),closeColorPressedInfo:K(a,{alpha:.12}),borderSuccess:`1px solid ${K(o,{alpha:.3})}`,textColorSuccess:o,colorSuccess:K(o,{alpha:.16}),colorBorderedSuccess:`#0000`,closeIconColorSuccess:dd(o,{alpha:.7}),closeIconColorHoverSuccess:dd(o,{alpha:.7}),closeIconColorPressedSuccess:dd(o,{alpha:.7}),closeColorHoverSuccess:K(o,{alpha:.16}),closeColorPressedSuccess:K(o,{alpha:.12}),borderWarning:`1px solid ${K(s,{alpha:.3})}`,textColorWarning:s,colorWarning:K(s,{alpha:.16}),colorBorderedWarning:`#0000`,closeIconColorWarning:dd(s,{alpha:.7}),closeIconColorHoverWarning:dd(s,{alpha:.7}),closeIconColorPressedWarning:dd(s,{alpha:.7}),closeColorHoverWarning:K(s,{alpha:.16}),closeColorPressedWarning:K(s,{alpha:.11}),borderError:`1px solid ${K(c,{alpha:.3})}`,textColorError:c,colorError:K(c,{alpha:.16}),colorBorderedError:`#0000`,closeIconColorError:dd(c,{alpha:.7}),closeIconColorHoverError:dd(c,{alpha:.7}),closeIconColorPressedError:dd(c,{alpha:.7}),closeColorHoverError:K(c,{alpha:.16}),closeColorPressedError:K(c,{alpha:.12})})}},PC=NC,FC=F({name:`InternalSelectionSuffix`,props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{let{clsPrefix:n}=e;return L(nS,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?L(Zx,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>L(zx,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>km(t.default,()=>[L(Hx,null)])})}):null})}}}),IC={paddingSingle:`0 26px 0 12px`,paddingMultiple:`3px 26px 0 12px`,clearSize:`16px`,arrowSize:`16px`},LC={name:`InternalSelection`,common:Y,peers:{Popover:jC},self(e){let{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:i,inputColorDisabled:a,primaryColor:o,primaryColorHover:s,warningColor:c,warningColorHover:l,errorColor:u,errorColorHover:d,iconColor:f,iconColorDisabled:p,clearColor:m,clearColorHover:h,clearColorPressed:g,placeholderColor:_,placeholderColorDisabled:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:S,heightTiny:C,heightSmall:w,heightMedium:T,heightLarge:E,fontWeight:D}=e;return Object.assign(Object.assign({},IC),{fontWeight:D,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:S,heightTiny:C,heightSmall:w,heightMedium:T,heightLarge:E,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:_,placeholderColorDisabled:v,color:i,colorDisabled:a,colorActive:K(o,{alpha:.1}),border:`1px solid #0000`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${o}`,borderFocus:`1px solid ${s}`,boxShadowHover:`none`,boxShadowActive:`0 0 8px 0 ${K(o,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${K(o,{alpha:.4})}`,caretColor:o,arrowColor:f,arrowColorDisabled:p,loadingColor:o,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${l}`,borderActiveWarning:`1px solid ${c}`,borderFocusWarning:`1px solid ${l}`,boxShadowHoverWarning:`none`,boxShadowActiveWarning:`0 0 8px 0 ${K(c,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${K(c,{alpha:.4})}`,colorActiveWarning:K(c,{alpha:.1}),caretColorWarning:c,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:`none`,boxShadowActiveError:`0 0 8px 0 ${K(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${K(u,{alpha:.4})}`,colorActiveError:K(u,{alpha:.1}),caretColorError:u,clearColor:m,clearColorHover:h,clearColorPressed:g})}},RC=LC;function zC(e){let{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:i,inputColorDisabled:a,primaryColor:o,primaryColorHover:s,warningColor:c,warningColorHover:l,errorColor:u,errorColorHover:d,borderColor:f,iconColor:p,iconColorDisabled:m,clearColor:h,clearColorHover:g,clearColorPressed:_,placeholderColor:v,placeholderColorDisabled:y,fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:S,fontSizeLarge:C,heightTiny:w,heightSmall:T,heightMedium:E,heightLarge:D,fontWeight:O}=e;return Object.assign(Object.assign({},IC),{fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:S,fontSizeLarge:C,heightTiny:w,heightSmall:T,heightMedium:E,heightLarge:D,borderRadius:t,fontWeight:O,textColor:n,textColorDisabled:r,placeholderColor:v,placeholderColorDisabled:y,color:i,colorDisabled:a,colorActive:i,border:`1px solid ${f}`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${o}`,borderFocus:`1px solid ${s}`,boxShadowHover:`none`,boxShadowActive:`0 0 0 2px ${K(o,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${K(o,{alpha:.2})}`,caretColor:o,arrowColor:p,arrowColorDisabled:m,loadingColor:o,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${l}`,borderActiveWarning:`1px solid ${c}`,borderFocusWarning:`1px solid ${l}`,boxShadowHoverWarning:`none`,boxShadowActiveWarning:`0 0 0 2px ${K(c,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${K(c,{alpha:.2})}`,colorActiveWarning:i,caretColorWarning:c,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:`none`,boxShadowActiveError:`0 0 0 2px ${K(u,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${K(u,{alpha:.2})}`,colorActiveError:i,caretColorError:u,clearColor:h,clearColorHover:g,clearColorPressed:_})}var BC=Fx({name:`InternalSelection`,common:Z,peers:{Popover:kC},self:zC}),VC=BC,{cubicBezierEaseInOut:HC}=kx;function UC({duration:e=`.2s`,delay:t=`.1s`}={}){return[B(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),B(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,`
opacity: 0!important;
margin-left: 0!important;
margin-right: 0!important;
`),B(`&.fade-in-width-expand-transition-leave-active`,`
overflow: hidden;
transition:
opacity ${e} ${HC},
max-width ${e} ${HC} ${t},
margin-left ${e} ${HC} ${t},
margin-right ${e} ${HC} ${t};
`),B(`&.fade-in-width-expand-transition-enter-active`,`
overflow: hidden;
transition:
opacity ${e} ${HC} ${t},
max-width ${e} ${HC},
margin-left ${e} ${HC},
margin-right ${e} ${HC};
`)]}var WC=V(`base-wave`,`
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
border-radius: inherit;
`),GC=F({name:`BaseWave`,props:{clsPrefix:{type:String,required:!0}},setup(e){Px(`-base-wave`,WC,P(e,`clsPrefix`));let t=M(null),n=M(!1),r=null;return Qr(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),In(()=>{var e;(e=t.value)==null||e.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){let{clsPrefix:e}=this;return L(`div`,{ref:`selfRef`,"aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),KC={iconMargin:`11px 8px 0 12px`,iconMarginRtl:`11px 12px 0 8px`,iconSize:`24px`,closeIconSize:`16px`,closeSize:`20px`,closeMargin:`13px 14px 0 0`,closeMarginRtl:`13px 0 0 14px`,padding:`13px`},qC={name:`Alert`,common:Y,self(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,dividerColor:i,inputColor:a,textColor1:o,textColor2:s,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,infoColorSuppl:p,successColorSuppl:m,warningColorSuppl:h,errorColorSuppl:g,fontSize:_}=e;return Object.assign(Object.assign({},KC),{fontSize:_,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:o,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderInfo:`1px solid ${K(p,{alpha:.35})}`,colorInfo:K(p,{alpha:.25}),titleTextColorInfo:o,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:c,closeColorPressedInfo:l,closeIconColorInfo:u,closeIconColorHoverInfo:d,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${K(m,{alpha:.35})}`,colorSuccess:K(m,{alpha:.25}),titleTextColorSuccess:o,iconColorSuccess:m,contentTextColorSuccess:s,closeColorHoverSuccess:c,closeColorPressedSuccess:l,closeIconColorSuccess:u,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${K(h,{alpha:.35})}`,colorWarning:K(h,{alpha:.25}),titleTextColorWarning:o,iconColorWarning:h,contentTextColorWarning:s,closeColorHoverWarning:c,closeColorPressedWarning:l,closeIconColorWarning:u,closeIconColorHoverWarning:d,closeIconColorPressedWarning:f,borderError:`1px solid ${K(g,{alpha:.35})}`,colorError:K(g,{alpha:.25}),titleTextColorError:o,iconColorError:g,contentTextColorError:s,closeColorHoverError:c,closeColorPressedError:l,closeIconColorError:u,closeIconColorHoverError:d,closeIconColorPressedError:f})}},JC=qC,{cubicBezierEaseInOut:YC,cubicBezierEaseOut:XC,cubicBezierEaseIn:ZC}=kx;function QC({overflow:e=`hidden`,duration:t=`.3s`,originalTransition:n=``,leavingDelay:r=`0s`,foldPadding:i=!1,enterToProps:a=void 0,leaveToProps:o=void 0,reverse:s=!1}={}){let c=s?`leave`:`enter`,l=s?`enter`:`leave`;return[B(`&.fade-in-height-expand-transition-${l}-from,
&.fade-in-height-expand-transition-${c}-to`,Object.assign(Object.assign({},a),{opacity:1})),B(`&.fade-in-height-expand-transition-${l}-to,
&.fade-in-height-expand-transition-${c}-from`,Object.assign(Object.assign({},o),{opacity:0,marginTop:`0 !important`,marginBottom:`0 !important`,paddingTop:i?`0 !important`:void 0,paddingBottom:i?`0 !important`:void 0})),B(`&.fade-in-height-expand-transition-${l}-active`,`
overflow: ${e};
transition:
max-height ${t} ${YC} ${r},
opacity ${t} ${XC} ${r},
margin-top ${t} ${YC} ${r},
margin-bottom ${t} ${YC} ${r},
padding-top ${t} ${YC} ${r},
padding-bottom ${t} ${YC} ${r}
${n?`,${n}`:``}
`),B(`&.fade-in-height-expand-transition-${c}-active`,`
overflow: ${e};
transition:
max-height ${t} ${YC},
opacity ${t} ${ZC},
margin-top ${t} ${YC},
margin-bottom ${t} ${YC},
padding-top ${t} ${YC},
padding-bottom ${t} ${YC}
${n?`,${n}`:``}
`)]}var $C={linkFontSize:`13px`,linkPadding:`0 0 0 16px`,railWidth:`4px`};function ew(e){let{borderRadius:t,railColor:n,primaryColor:r,primaryColorHover:i,primaryColorPressed:a,textColor2:o}=e;return Object.assign(Object.assign({},$C),{borderRadius:t,railColor:n,railColorActive:r,linkColor:K(r,{alpha:.15}),linkTextColor:o,linkTextColorHover:i,linkTextColorPressed:a,linkTextColorActive:r})}var tw={name:`Anchor`,common:Y,self:ew},nw=tw;const rw=Zd&&`chrome`in window,iw=Zd&&navigator.userAgent.includes(`Firefox`),aw=Zd&&navigator.userAgent.includes(`Safari`)&&!rw;var ow={paddingTiny:`0 8px`,paddingSmall:`0 10px`,paddingMedium:`0 12px`,paddingLarge:`0 14px`,clearSize:`16px`};function sw(e){let{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:i,primaryColorHover:a,inputColor:o,inputColorDisabled:s,warningColor:c,warningColorHover:l,errorColor:u,errorColorHover:d,borderRadius:f,lineHeight:p,fontSizeTiny:m,fontSizeSmall:h,fontSizeMedium:g,fontSizeLarge:_,heightTiny:v,heightSmall:y,heightMedium:b,heightLarge:x,clearColor:S,clearColorHover:C,clearColorPressed:w,placeholderColor:T,placeholderColorDisabled:E,iconColor:D,iconColorDisabled:O,iconColorHover:k,iconColorPressed:A,fontWeight:ee}=e;return Object.assign(Object.assign({},ow),{fontWeight:ee,countTextColorDisabled:r,countTextColor:n,heightTiny:v,heightSmall:y,heightMedium:b,heightLarge:x,fontSizeTiny:m,fontSizeSmall:h,fontSizeMedium:g,fontSizeLarge:_,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:`16px`,groupLabelColor:o,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:i,placeholderColor:T,placeholderColorDisabled:E,color:o,colorDisabled:s,colorFocus:K(i,{alpha:.1}),groupLabelBorder:`1px solid #0000`,border:`1px solid #0000`,borderHover:`1px solid ${a}`,borderDisabled:`1px solid #0000`,borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 8px 0 ${K(i,{alpha:.3})}`,loadingColor:i,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${l}`,colorFocusWarning:K(c,{alpha:.1}),borderFocusWarning:`1px solid ${l}`,boxShadowFocusWarning:`0 0 8px 0 ${K(c,{alpha:.3})}`,caretColorWarning:c,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,colorFocusError:K(u,{alpha:.1}),borderFocusError:`1px solid ${d}`,boxShadowFocusError:`0 0 8px 0 ${K(u,{alpha:.3})}`,caretColorError:u,clearColor:S,clearColorHover:C,clearColorPressed:w,iconColor:D,iconColorDisabled:O,iconColorHover:k,iconColorPressed:A,suffixTextColor:t})}var cw=Fx({name:`Input`,common:Y,peers:{Scrollbar:SS},self:sw}),lw=cw;function uw(e){let{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:i,primaryColorHover:a,inputColor:o,inputColorDisabled:s,borderColor:c,warningColor:l,warningColorHover:u,errorColor:d,errorColorHover:f,borderRadius:p,lineHeight:m,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:_,fontSizeLarge:v,heightTiny:y,heightSmall:b,heightMedium:x,heightLarge:S,actionColor:C,clearColor:w,clearColorHover:T,clearColorPressed:E,placeholderColor:D,placeholderColorDisabled:O,iconColor:k,iconColorDisabled:A,iconColorHover:ee,iconColorPressed:te,fontWeight:ne}=e;return Object.assign(Object.assign({},ow),{fontWeight:ne,countTextColorDisabled:r,countTextColor:n,heightTiny:y,heightSmall:b,heightMedium:x,heightLarge:S,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:_,fontSizeLarge:v,lineHeight:m,lineHeightTextarea:m,borderRadius:p,iconSize:`16px`,groupLabelColor:C,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:i,placeholderColor:D,placeholderColorDisabled:O,color:o,colorDisabled:s,colorFocus:o,groupLabelBorder:`1px solid ${c}`,border:`1px solid ${c}`,borderHover:`1px solid ${a}`,borderDisabled:`1px solid ${c}`,borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 0 2px ${K(i,{alpha:.2})}`,loadingColor:i,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:o,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${K(l,{alpha:.2})}`,caretColorWarning:l,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,colorFocusError:o,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${K(d,{alpha:.2})}`,caretColorError:d,clearColor:w,clearColorHover:T,clearColorPressed:E,iconColor:k,iconColorDisabled:A,iconColorHover:ee,iconColorPressed:te,suffixTextColor:t})}var dw=Fx({name:`Input`,common:Z,peers:{Scrollbar:bS},self:uw}),fw=dw;const pw=Bd(`n-input`);var mw=V(`input`,`
max-width: 100%;
cursor: text;
line-height: 1.5;
z-index: auto;
outline: none;
box-sizing: border-box;
position: relative;
display: inline-flex;
border-radius: var(--n-border-radius);
background-color: var(--n-color);
transition: background-color .3s var(--n-bezier);
font-size: var(--n-font-size);
font-weight: var(--n-font-weight);
--n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
`,[H(`input, textarea`,`
overflow: hidden;
flex-grow: 1;
position: relative;
`),H(`input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder`,`
box-sizing: border-box;
font-size: inherit;
line-height: 1.5;
font-family: inherit;
border: none;
outline: none;
background-color: #0000;
text-align: inherit;
transition:
-webkit-text-fill-color .3s var(--n-bezier),
caret-color .3s var(--n-bezier),
color .3s var(--n-bezier),
text-decoration-color .3s var(--n-bezier);
`),H(`input-el, textarea-el`,`
-webkit-appearance: none;
scrollbar-width: none;
width: 100%;
min-width: 0;
text-decoration-color: var(--n-text-decoration-color);
color: var(--n-text-color);
caret-color: var(--n-caret-color);
background-color: transparent;
`,[B(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,`
width: 0;
height: 0;
display: none;
`),B(`&::placeholder`,`
color: #0000;
-webkit-text-fill-color: transparent !important;
`),B(`&:-webkit-autofill ~`,[H(`placeholder`,`display: none;`)])]),U(`round`,[Du(`textarea`,`border-radius: calc(var(--n-height) / 2);`)]),H(`placeholder`,`
pointer-events: none;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
overflow: hidden;
color: var(--n-placeholder-color);
`,[B(`span`,`
width: 100%;
display: inline-block;
`)]),U(`textarea`,[H(`placeholder`,`overflow: visible;`)]),Du(`autosize`,`width: 100%;`),U(`autosize`,[H(`textarea-el, input-el`,`
position: absolute;
top: 0;
left: 0;
height: 100%;
`)]),V(`input-wrapper`,`
overflow: hidden;
display: inline-flex;
flex-grow: 1;
position: relative;
padding-left: var(--n-padding-left);
padding-right: var(--n-padding-right);
`),H(`input-mirror`,`
padding: 0;
height: var(--n-height);
line-height: var(--n-height);
overflow: hidden;
visibility: hidden;
position: static;
white-space: pre;
pointer-events: none;
`),H(`input-el`,`
padding: 0;
height: var(--n-height);
line-height: var(--n-height);
`,[B(`&[type=password]::-ms-reveal`,`display: none;`),B(`+`,[H(`placeholder`,`
display: flex;
align-items: center;
`)])]),Du(`textarea`,[H(`placeholder`,`white-space: nowrap;`)]),H(`eye`,`
display: flex;
align-items: center;
justify-content: center;
transition: color .3s var(--n-bezier);
`),U(`textarea`,`width: 100%;`,[V(`input-word-count`,`
position: absolute;
right: var(--n-padding-right);
bottom: var(--n-padding-vertical);
`),U(`resizable`,[V(`input-wrapper`,`
resize: vertical;
min-height: var(--n-height);
`)]),H(`textarea-el, textarea-mirror, placeholder`,`
height: 100%;
padding-left: 0;
padding-right: 0;
padding-top: var(--n-padding-vertical);
padding-bottom: var(--n-padding-vertical);
word-break: break-word;
display: inline-block;
vertical-align: bottom;
box-sizing: border-box;
line-height: var(--n-line-height-textarea);
margin: 0;
resize: none;
white-space: pre-wrap;
scroll-padding-block-end: var(--n-padding-vertical);
`),H(`textarea-mirror`,`
width: 100%;
pointer-events: none;
overflow: hidden;
visibility: hidden;
position: static;
white-space: pre-wrap;
overflow-wrap: break-word;
`)]),U(`pair`,[H(`input-el, placeholder`,`text-align: center;`),H(`separator`,`
display: flex;
align-items: center;
transition: color .3s var(--n-bezier);
color: var(--n-text-color);
white-space: nowrap;
`,[V(`icon`,`
color: var(--n-icon-color);
`),V(`base-icon`,`
color: var(--n-icon-color);
`)])]),U(`disabled`,`
cursor: not-allowed;
background-color: var(--n-color-disabled);
`,[H(`border`,`border: var(--n-border-disabled);`),H(`input-el, textarea-el`,`
cursor: not-allowed;
color: var(--n-text-color-disabled);
text-decoration-color: var(--n-text-color-disabled);
`),H(`placeholder`,`color: var(--n-placeholder-color-disabled);`),H(`separator`,`color: var(--n-text-color-disabled);`,[V(`icon`,`
color: var(--n-icon-color-disabled);
`),V(`base-icon`,`
color: var(--n-icon-color-disabled);
`)]),V(`input-word-count`,`
color: var(--n-count-text-color-disabled);
`),H(`suffix, prefix`,`color: var(--n-text-color-disabled);`,[V(`icon`,`
color: var(--n-icon-color-disabled);
`),V(`internal-icon`,`
color: var(--n-icon-color-disabled);
`)])]),Du(`disabled`,[H(`eye`,`
color: var(--n-icon-color);
cursor: pointer;
`,[B(`&:hover`,`
color: var(--n-icon-color-hover);
`),B(`&:active`,`
color: var(--n-icon-color-pressed);
`)]),B(`&:hover`,[H(`state-border`,`border: var(--n-border-hover);`)]),U(`focus`,`background-color: var(--n-color-focus);`,[H(`state-border`,`
border: var(--n-border-focus);
box-shadow: var(--n-box-shadow-focus);
`)])]),H(`border, state-border`,`
box-sizing: border-box;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
pointer-events: none;
border-radius: inherit;
border: var(--n-border);
transition:
box-shadow .3s var(--n-bezier),
border-color .3s var(--n-bezier);
`),H(`state-border`,`
border-color: #0000;
z-index: 1;
`),H(`prefix`,`margin-right: 4px;`),H(`suffix`,`
margin-left: 4px;
`),H(`suffix, prefix`,`
transition: color .3s var(--n-bezier);
flex-wrap: nowrap;
flex-shrink: 0;
line-height: var(--n-height);
white-space: nowrap;
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--n-suffix-text-color);
`,[V(`base-loading`,`
font-size: var(--n-icon-size);
margin: 0 2px;
color: var(--n-loading-color);
`),V(`base-clear`,`
font-size: var(--n-icon-size);
`,[H(`placeholder`,[V(`base-icon`,`
transition: color .3s var(--n-bezier);
color: var(--n-icon-color);
font-size: var(--n-icon-size);
`)])]),B(`>`,[V(`icon`,`
transition: color .3s var(--n-bezier);
color: var(--n-icon-color);
font-size: var(--n-icon-size);
`)]),V(`base-icon`,`
font-size: var(--n-icon-size);
`)]),V(`input-word-count`,`
pointer-events: none;
line-height: 1.5;
font-size: .85em;
color: var(--n-count-text-color);
transition: color .3s var(--n-bezier);
margin-left: 4px;
font-variant: tabular-nums;
`),[`warning`,`error`].map(e=>U(`${e}-status`,[Du(`disabled`,[V(`base-loading`,`
color: var(--n-loading-color-${e})
`),H(`input-el, textarea-el`,`
caret-color: var(--n-caret-color-${e});
`),H(`state-border`,`
border: var(--n-border-${e});
`),B(`&:hover`,[H(`state-border`,`
border: var(--n-border-hover-${e});
`)]),B(`&:focus`,`
background-color: var(--n-color-focus-${e});
`,[H(`state-border`,`
box-shadow: var(--n-box-shadow-focus-${e});
border: var(--n-border-focus-${e});
`)]),U(`focus`,`
background-color: var(--n-color-focus-${e});
`,[H(`state-border`,`
box-shadow: var(--n-box-shadow-focus-${e});
border: var(--n-border-focus-${e});
`)])])]))]);const hw=V(`input`,[U(`disabled`,[H(`input-el, textarea-el`,`
-webkit-text-fill-color: var(--n-text-color-disabled);
`)])]);function gw(e){let t=0;for(let n of e)t++;return t}function _w(e){return e===``||e==null}function vw(e){let t=M(null);function n(){let{value:n}=e;if(!n?.focus){i();return}let{selectionStart:r,selectionEnd:a,value:o}=n;if(r==null||a==null){i();return}t.value={start:r,end:a,beforeText:o.slice(0,r),afterText:o.slice(a)}}function r(){var n;let{value:r}=t,{value:i}=e;if(!r||!i)return;let{value:a}=i,{start:o,beforeText:s,afterText:c}=r,l=a.length;if(a.endsWith(c))l=a.length-c.length;else if(a.startsWith(s))l=s.length;else{let e=s[o-1],t=a.indexOf(e,o-1);t!==-1&&(l=t+1)}(n=i.setSelectionRange)==null||n.call(i,l,l)}function i(){t.value=null}return nr(e,i),{recordCursor:n,restoreCursor:r}}var yw=F({name:`InputWordCount`,setup(e,{slots:t}){let{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:i,countGraphemesRef:a}=Qn(pw),o=I(()=>{let{value:e}=n;return e===null||Array.isArray(e)?0:(a.value||gw)(e)});return()=>{let{value:e}=r,{value:a}=n;return L(`span`,{class:`${i.value}-input-word-count`},Am(t.default,{value:a===null||Array.isArray(a)?``:a},()=>[e===void 0?o.value:`${o.value} / ${e}`]))}}});const bw=Object.assign(Object.assign({},Lx.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:`text`},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean});var xw=F({name:`Input`,props:bw,slots:Object,setup(e){let{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=Im(e),a=Lx(`Input`,`-input`,mw,fw,e,t);aw&&Px(`-input-safari`,hw,t);let o=M(null),s=M(null),c=M(null),l=M(null),u=M(null),d=M(null),f=M(null),p=vw(f),m=M(null),{localeRef:h}=Ex(`Input`),g=M(e.defaultValue),_=Id(P(e,`value`),g),v=zm(e),{mergedSizeRef:y,mergedDisabledRef:b,mergedStatusRef:x}=v,S=M(!1),C=M(!1),w=M(!1),T=M(!1),E=null,D=I(()=>{let{placeholder:t,pair:n}=e;return n?Array.isArray(t)?t:t===void 0?[``,``]:[t,t]:t===void 0?[h.value.placeholder]:[t]}),O=I(()=>{let{value:e}=w,{value:t}=_,{value:n}=D;return!e&&(_w(t)||Array.isArray(t)&&_w(t[0]))&&n[0]}),k=I(()=>{let{value:e}=w,{value:t}=_,{value:n}=D;return!e&&n[1]&&(_w(t)||Array.isArray(t)&&_w(t[1]))}),A=Ad(()=>e.internalForceFocus||S.value),ee=Ad(()=>{if(b.value||e.readonly||!e.clearable||!A.value&&!C.value)return!1;let{value:t}=_,{value:n}=A;return e.pair?!!(Array.isArray(t)&&(t[0]||t[1]))&&(C.value||n):!!t&&(C.value||n)}),te=I(()=>{let{showPasswordOn:t}=e;if(t)return t;if(e.showPasswordToggle)return`click`}),ne=M(!1),re=I(()=>{let{textDecoration:t}=e;return t?Array.isArray(t)?t.map(e=>({textDecoration:e})):[{textDecoration:t}]:[``,``]}),ie=M(void 0),ae=()=>{if(e.type===`textarea`){let{autosize:t}=e;if(t&&(ie.value=m.value?.$el?.offsetWidth),!s.value||typeof t==`boolean`)return;let{paddingTop:n,paddingBottom:r,lineHeight:i}=window.getComputedStyle(s.value),a=Number(n.slice(0,-2)),o=Number(r.slice(0,-2)),l=Number(i.slice(0,-2)),{value:u}=c;if(!u)return;if(t.minRows){let e=Math.max(t.minRows,1),n=`${a+o+l*e}px`;u.style.minHeight=n}if(t.maxRows){let e=`${a+o+l*t.maxRows}px`;u.style.maxHeight=e}}},oe=I(()=>{let{maxlength:t}=e;return t===void 0?void 0:Number(t)});Yr(()=>{let{value:e}=_;Array.isArray(e)||Je(e)});let se=$a().proxy;function ce(t,n){let{onUpdateValue:r,"onUpdate:value":i,onInput:a}=e,{nTriggerFormInput:o}=v;r&&q(r,t,n),i&&q(i,t,n),a&&q(a,t,n),g.value=t,o()}function le(t,n){let{onChange:r}=e,{nTriggerFormChange:i}=v;r&&q(r,t,n),g.value=t,i()}function ue(t){let{onBlur:n}=e,{nTriggerFormBlur:r}=v;n&&q(n,t),r()}function de(t){let{onFocus:n}=e,{nTriggerFormFocus:r}=v;n&&q(n,t),r()}function fe(t){let{onClear:n}=e;n&&q(n,t)}function pe(t){let{onInputBlur:n}=e;n&&q(n,t)}function me(t){let{onInputFocus:n}=e;n&&q(n,t)}function he(){let{onDeactivate:t}=e;t&&q(t)}function ge(){let{onActivate:t}=e;t&&q(t)}function _e(t){let{onClick:n}=e;n&&q(n,t)}function ve(t){let{onWrapperFocus:n}=e;n&&q(n,t)}function ye(t){let{onWrapperBlur:n}=e;n&&q(n,t)}function be(){w.value=!0}function xe(e){w.value=!1,e.target===d.value?Se(e,1):Se(e,0)}function Se(t,n=0,r=`input`){let i=t.target.value;if(Je(i),t instanceof InputEvent&&!t.isComposing&&(w.value=!1),e.type===`textarea`){let{value:e}=m;e&&e.syncUnifiedContainer()}if(E=i,w.value)return;p.recordCursor();let a=Ce(i);if(a)if(!e.pair)r===`input`?ce(i,{source:n}):le(i,{source:n});else{let{value:e}=_;e=Array.isArray(e)?[e[0],e[1]]:[``,``],e[n]=i,r===`input`?ce(e,{source:n}):le(e,{source:n})}se.$forceUpdate(),a||In(p.restoreCursor)}function Ce(t){let{countGraphemes:n,maxlength:r,minlength:i}=e;if(n){let e;if(r!==void 0&&(e===void 0&&(e=n(t)),e>Number(r))||i!==void 0&&(e===void 0&&(e=n(t)),e<Number(r)))return!1}let{allowInput:a}=e;return typeof a==`function`?a(t):!0}function we(e){pe(e),e.relatedTarget===o.value&&he(),e.relatedTarget!==null&&(e.relatedTarget===u.value||e.relatedTarget===d.value||e.relatedTarget===s.value)||(T.value=!1),Oe(e,`blur`),f.value=null}function Te(e,t){me(e),S.value=!0,T.value=!0,ge(),Oe(e,`focus`),t===0?f.value=u.value:t===1?f.value=d.value:t===2&&(f.value=s.value)}function Ee(t){e.passivelyActivated&&(ye(t),Oe(t,`blur`))}function De(t){e.passivelyActivated&&(S.value=!0,ve(t),Oe(t,`focus`))}function Oe(e,t){e.relatedTarget!==null&&(e.relatedTarget===u.value||e.relatedTarget===d.value||e.relatedTarget===s.value||e.relatedTarget===o.value)||(t===`focus`?(de(e),S.value=!0):t===`blur`&&(ue(e),S.value=!1))}function ke(e,t){Se(e,t,`change`)}function Ae(e){_e(e)}function je(e){fe(e),Me()}function Me(){e.pair?(ce([``,``],{source:`clear`}),le([``,``],{source:`clear`})):(ce(``,{source:`clear`}),le(``,{source:`clear`}))}function Ne(t){let{onMousedown:n}=e;n&&n(t);let{tagName:r}=t.target;if(r!==`INPUT`&&r!==`TEXTAREA`){if(e.resizable){let{value:e}=o;if(e){let{left:n,top:r,width:i,height:a}=e.getBoundingClientRect();if(n+i-14<t.clientX&&t.clientX<n+i&&r+a-14<t.clientY&&t.clientY<r+a)return}}t.preventDefault(),S.value||He()}}function Pe(){var t;C.value=!0,e.type===`textarea`&&((t=m.value)==null||t.handleMouseEnterWrapper())}function Fe(){var t;C.value=!1,e.type===`textarea`&&((t=m.value)==null||t.handleMouseLeaveWrapper())}function Ie(){b.value||te.value===`click`&&(ne.value=!ne.value)}function Le(e){if(b.value)return;e.preventDefault();let t=e=>{e.preventDefault(),Dd(`mouseup`,document,t)};if(Ed(`mouseup`,document,t),te.value!==`mousedown`)return;ne.value=!0;let n=()=>{ne.value=!1,Dd(`mouseup`,document,n)};Ed(`mouseup`,document,n)}function Re(t){e.onKeyup&&q(e.onKeyup,t)}function ze(t){switch(e.onKeydown&&q(e.onKeydown,t),t.key){case`Escape`:Ve();break;case`Enter`:Be(t);break}}function Be(t){var n,r;if(e.passivelyActivated){let{value:i}=T;if(i){e.internalDeactivateOnEnter&&Ve();return}t.preventDefault(),e.type===`textarea`?(n=s.value)==null||n.focus():(r=u.value)==null||r.focus()}}function Ve(){e.passivelyActivated&&(T.value=!1,In(()=>{var e;(e=o.value)==null||e.focus()}))}function He(){var t,n,r;b.value||(e.passivelyActivated?(t=o.value)==null||t.focus():((n=s.value)==null||n.focus(),(r=u.value)==null||r.focus()))}function Ue(){o.value?.contains(document.activeElement)&&document.activeElement.blur()}function We(){var e,t;(e=s.value)==null||e.select(),(t=u.value)==null||t.select()}function Ge(){b.value||(s.value?s.value.focus():u.value&&u.value.focus())}function Ke(){let{value:e}=o;e?.contains(document.activeElement)&&e!==document.activeElement&&Ve()}function qe(t){if(e.type===`textarea`){let{value:e}=s;e?.scrollTo(t)}else{let{value:e}=u;e?.scrollTo(t)}}function Je(t){let{type:n,pair:r,autosize:i}=e;if(!r&&i)if(n===`textarea`){let{value:e}=c;e&&(e.textContent=`${t??``}\r\n`)}else{let{value:e}=l;e&&(t?e.textContent=t:e.innerHTML=`&nbsp;`)}}function Ye(){ae()}let Xe=M({top:`0`});function Ze(e){var t;let{scrollTop:n}=e.target;Xe.value.top=`${-n}px`,(t=m.value)==null||t.syncUnifiedContainer()}let Qe=null;tr(()=>{let{autosize:t,type:n}=e;t&&n===`textarea`?Qe=nr(_,e=>{!Array.isArray(e)&&e!==E&&Je(e)}):Qe?.()});let $e=null;tr(()=>{e.type===`textarea`?$e=nr(_,e=>{var t;!Array.isArray(e)&&e!==E&&((t=m.value)==null||t.syncUnifiedContainer())}):$e?.()}),Zn(pw,{mergedValueRef:_,maxlengthRef:oe,mergedClsPrefixRef:t,countGraphemesRef:P(e,`countGraphemes`)});let et={wrapperElRef:o,inputElRef:u,textareaElRef:s,isCompositing:w,clear:Me,focus:He,blur:Ue,select:We,deactivate:Ke,activate:Ge,scrollTo:qe},tt=Ox(`Input`,i,t),nt=I(()=>{let{value:e}=y,{common:{cubicBezierEaseInOut:t},self:{color:n,borderRadius:r,textColor:i,caretColor:o,caretColorError:s,caretColorWarning:c,textDecorationColor:l,border:u,borderDisabled:d,borderHover:f,borderFocus:p,placeholderColor:m,placeholderColorDisabled:h,lineHeightTextarea:g,colorDisabled:_,colorFocus:v,textColorDisabled:b,boxShadowFocus:x,iconSize:S,colorFocusWarning:C,boxShadowFocusWarning:w,borderWarning:T,borderFocusWarning:E,borderHoverWarning:D,colorFocusError:O,boxShadowFocusError:k,borderError:A,borderFocusError:ee,borderHoverError:te,clearSize:ne,clearColor:re,clearColorHover:ie,clearColorPressed:ae,iconColor:oe,iconColorDisabled:se,suffixTextColor:ce,countTextColor:le,countTextColorDisabled:ue,iconColorHover:de,iconColorPressed:fe,loadingColor:pe,loadingColorError:me,loadingColorWarning:he,fontWeight:ge,[W(`padding`,e)]:_e,[W(`fontSize`,e)]:ve,[W(`height`,e)]:ye}}=a.value,{left:be,right:xe}=Ru(_e);return{"--n-bezier":t,"--n-count-text-color":le,"--n-count-text-color-disabled":ue,"--n-color":n,"--n-font-size":ve,"--n-font-weight":ge,"--n-border-radius":r,"--n-height":ye,"--n-padding-left":be,"--n-padding-right":xe,"--n-text-color":i,"--n-caret-color":o,"--n-text-decoration-color":l,"--n-border":u,"--n-border-disabled":d,"--n-border-hover":f,"--n-border-focus":p,"--n-placeholder-color":m,"--n-placeholder-color-disabled":h,"--n-icon-size":S,"--n-line-height-textarea":g,"--n-color-disabled":_,"--n-color-focus":v,"--n-text-color-disabled":b,"--n-box-shadow-focus":x,"--n-loading-color":pe,"--n-caret-color-warning":c,"--n-color-focus-warning":C,"--n-box-shadow-focus-warning":w,"--n-border-warning":T,"--n-border-focus-warning":E,"--n-border-hover-warning":D,"--n-loading-color-warning":he,"--n-caret-color-error":s,"--n-color-focus-error":O,"--n-box-shadow-focus-error":k,"--n-border-error":A,"--n-border-focus-error":ee,"--n-border-hover-error":te,"--n-loading-color-error":me,"--n-clear-color":re,"--n-clear-size":ne,"--n-clear-color-hover":ie,"--n-clear-color-pressed":ae,"--n-icon-color":oe,"--n-icon-color-hover":de,"--n-icon-color-pressed":fe,"--n-icon-color-disabled":se,"--n-suffix-text-color":ce}}),rt=r?Lm(`input`,I(()=>{let{value:e}=y;return e[0]}),nt,e):void 0;return Object.assign(Object.assign({},et),{wrapperElRef:o,inputElRef:u,inputMirrorElRef:l,inputEl2Ref:d,textareaElRef:s,textareaMirrorElRef:c,textareaScrollbarInstRef:m,rtlEnabled:tt,uncontrolledValue:g,mergedValue:_,passwordVisible:ne,mergedPlaceholder:D,showPlaceholder1:O,showPlaceholder2:k,mergedFocus:A,isComposing:w,activated:T,showClearButton:ee,mergedSize:y,mergedDisabled:b,textDecorationStyle:re,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:te,placeholderStyle:Xe,mergedStatus:x,textAreaScrollContainerWidth:ie,handleTextAreaScroll:Ze,handleCompositionStart:be,handleCompositionEnd:xe,handleInput:Se,handleInputBlur:we,handleInputFocus:Te,handleWrapperBlur:Ee,handleWrapperFocus:De,handleMouseEnter:Pe,handleMouseLeave:Fe,handleMouseDown:Ne,handleChange:ke,handleClick:Ae,handleClear:je,handlePasswordToggleClick:Ie,handlePasswordToggleMousedown:Le,handleWrapperKeydown:ze,handleWrapperKeyup:Re,handleTextAreaMirrorResize:Ye,getTextareaScrollContainer:()=>s.value,mergedTheme:a,cssVars:r?void 0:nt,themeClass:rt?.themeClass,onRender:rt?.onRender})},render(){let{mergedClsPrefix:e,mergedStatus:t,themeClass:n,type:r,countGraphemes:i,onRender:a}=this,o=this.$slots;return a?.(),L(`div`,{ref:`wrapperElRef`,class:[`${e}-input`,n,t&&`${e}-input--${t}-status`,{[`${e}-input--rtl`]:this.rtlEnabled,[`${e}-input--disabled`]:this.mergedDisabled,[`${e}-input--textarea`]:r===`textarea`,[`${e}-input--resizable`]:this.resizable&&!this.autosize,[`${e}-input--autosize`]:this.autosize,[`${e}-input--round`]:this.round&&r!==`textarea`,[`${e}-input--pair`]:this.pair,[`${e}-input--focus`]:this.mergedFocus,[`${e}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},L(`div`,{class:`${e}-input-wrapper`},jm(o.prefix,t=>t&&L(`div`,{class:`${e}-input__prefix`},t)),r===`textarea`?L(TS,{ref:`textareaScrollbarInstRef`,class:`${e}-input__textarea`,container:this.getTextareaScrollContainer,theme:this.theme?.peers?.Scrollbar,themeOverrides:this.themeOverrides?.peers?.Scrollbar,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{let{textAreaScrollContainerWidth:t}=this,n={width:this.autosize&&t&&`${t}px`};return L(ba,null,L(`textarea`,Object.assign({},this.inputProps,{ref:`textareaElRef`,class:[`${e}-input__textarea-el`,this.inputProps?.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:i?void 0:this.maxlength,minlength:i?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],this.inputProps?.style,n],onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?L(`div`,{class:`${e}-input__placeholder`,style:[this.placeholderStyle,n],key:`placeholder`},this.mergedPlaceholder[0]):null,this.autosize?L(fm,{onResize:this.handleTextAreaMirrorResize},{default:()=>L(`div`,{ref:`textareaMirrorElRef`,class:`${e}-input__textarea-mirror`,key:`mirror`})}):null)}}):L(`div`,{class:`${e}-input__input`},L(`input`,Object.assign({type:r===`password`&&this.mergedShowPasswordOn&&this.passwordVisible?`text`:r},this.inputProps,{ref:`inputElRef`,class:[`${e}-input__input-el`,this.inputProps?.class],style:[this.textDecorationStyle[0],this.inputProps?.style],tabindex:this.passivelyActivated&&!this.activated?-1:this.inputProps?.tabindex,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:i?void 0:this.maxlength,minlength:i?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,0)},onInput:e=>{this.handleInput(e,0)},onChange:e=>{this.handleChange(e,0)}})),this.showPlaceholder1?L(`div`,{class:`${e}-input__placeholder`},L(`span`,null,this.mergedPlaceholder[0])):null,this.autosize?L(`div`,{class:`${e}-input__input-mirror`,key:`mirror`,ref:`inputMirrorElRef`},`\xA0`):null),!this.pair&&jm(o.suffix,t=>t||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?L(`div`,{class:`${e}-input__suffix`},[jm(o[`clear-icon-placeholder`],t=>(this.clearable||t)&&L(Zx,{clsPrefix:e,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>t,icon:()=>{var e;return(e=this.$slots)[`clear-icon`]?.call(e)}})),this.internalLoadingBeforeSuffix?null:t,this.loading===void 0?null:L(FC,{clsPrefix:e,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}),this.internalLoadingBeforeSuffix?t:null,this.showCount&&this.type!==`textarea`?L(yw,null,{default:e=>{let{renderCount:t}=this;return t?t(e):o.count?.call(o,e)}}):null,this.mergedShowPasswordOn&&this.type===`password`?L(`div`,{class:`${e}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?km(o[`password-visible-icon`],()=>[L(zx,{clsPrefix:e},{default:()=>L(Gx,null)})]):km(o[`password-invisible-icon`],()=>[L(zx,{clsPrefix:e},{default:()=>L(Kx,null)})])):null]):null)),this.pair?L(`span`,{class:`${e}-input__separator`},km(o.separator,()=>[this.separator])):null,this.pair?L(`div`,{class:`${e}-input-wrapper`},L(`div`,{class:`${e}-input__input`},L(`input`,{ref:`inputEl2Ref`,type:this.type,class:`${e}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:i?void 0:this.maxlength,minlength:i?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,1)},onInput:e=>{this.handleInput(e,1)},onChange:e=>{this.handleChange(e,1)}}),this.showPlaceholder2?L(`div`,{class:`${e}-input__placeholder`},L(`span`,null,this.mergedPlaceholder[1])):null),jm(o.suffix,t=>(this.clearable||t)&&L(`div`,{class:`${e}-input__suffix`},[this.clearable&&L(Zx,{clsPrefix:e,show:this.showClearButton,onClear:this.handleClear},{icon:()=>o[`clear-icon`]?.call(o),placeholder:()=>o[`clear-icon-placeholder`]?.call(o)}),t]))):null,this.mergedBordered?L(`div`,{class:`${e}-input__border`}):null,this.mergedBordered?L(`div`,{class:`${e}-input__state-border`}):null,this.showCount&&r===`textarea`?L(yw,null,{default:e=>{let{renderCount:t}=this;return t?t(e):o.count?.call(o,e)}}):null)}});function Sw(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}var Cw=Fx({name:`AutoComplete`,common:Z,peers:{InternalSelectMenu:bC,Input:fw},self:Sw}),ww={name:`AutoComplete`,common:Y,peers:{InternalSelectMenu:SC,Input:lw},self:Sw},Tw=ww;function Ew(e){let{borderRadius:t,avatarColor:n,cardColor:r,fontSize:i,heightTiny:a,heightSmall:o,heightMedium:s,heightLarge:c,heightHuge:l,modalColor:u,popoverColor:d}=e;return{borderRadius:t,fontSize:i,border:`2px solid ${r}`,heightTiny:a,heightSmall:o,heightMedium:s,heightLarge:c,heightHuge:l,color:G(r,n),colorModal:G(u,n),colorPopover:G(d,n)}}var Dw={name:`Avatar`,common:Z,self:Ew},Ow=Dw,kw={name:`Avatar`,common:Y,self:Ew},Aw=kw;function jw(){return{gap:`-12px`}}var Mw=Fx({name:`AvatarGroup`,common:Z,peers:{Avatar:Ow},self:jw}),Nw={name:`AvatarGroup`,common:Y,peers:{Avatar:Aw},self:jw},Pw=Nw,Fw={width:`44px`,height:`44px`,borderRadius:`22px`,iconSize:`26px`},Iw={name:`BackTop`,common:Y,self(e){let{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:i}=e;return Object.assign(Object.assign({},Fw),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:i,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`})}},Lw=Iw,Rw={name:`Badge`,common:Y,self(e){let{errorColorSuppl:t,infoColorSuppl:n,successColorSuppl:r,warningColorSuppl:i,fontFamily:a}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:i,fontSize:`12px`,fontFamily:a}}},zw=Rw,Bw={fontWeightActive:`400`};function Vw(e){let{fontSize:t,textColor3:n,textColor2:r,borderRadius:i,buttonColor2Hover:a,buttonColor2Pressed:o}=e;return Object.assign(Object.assign({},Bw),{fontSize:t,itemLineHeight:`1.25`,itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:i,itemColorHover:a,itemColorPressed:o,separatorColor:n})}var Hw={name:`Breadcrumb`,common:Y,self:Vw},Uw=Hw;function Ww(e){return G(e,[255,255,255,.16])}function Gw(e){return G(e,[0,0,0,.12])}const Kw=Bd(`n-button-group`);var qw={paddingTiny:`0 6px`,paddingSmall:`0 10px`,paddingMedium:`0 14px`,paddingLarge:`0 18px`,paddingRoundTiny:`0 10px`,paddingRoundSmall:`0 14px`,paddingRoundMedium:`0 18px`,paddingRoundLarge:`0 22px`,iconMarginTiny:`6px`,iconMarginSmall:`6px`,iconMarginMedium:`6px`,iconMarginLarge:`6px`,iconSizeTiny:`14px`,iconSizeSmall:`18px`,iconSizeMedium:`18px`,iconSizeLarge:`20px`,rippleDuration:`.6s`};function Jw(e){let{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:i,borderRadius:a,fontSizeTiny:o,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:l,opacityDisabled:u,textColor2:d,textColor3:f,primaryColorHover:p,primaryColorPressed:m,borderColor:h,primaryColor:g,baseColor:_,infoColor:v,infoColorHover:y,infoColorPressed:b,successColor:x,successColorHover:S,successColorPressed:C,warningColor:w,warningColorHover:T,warningColorPressed:E,errorColor:D,errorColorHover:O,errorColorPressed:k,fontWeight:A,buttonColor2:ee,buttonColor2Hover:te,buttonColor2Pressed:ne,fontWeightStrong:re}=e;return Object.assign(Object.assign({},qw),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:i,borderRadiusTiny:a,borderRadiusSmall:a,borderRadiusMedium:a,borderRadiusLarge:a,fontSizeTiny:o,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:l,opacityDisabled:u,colorOpacitySecondary:`0.16`,colorOpacitySecondaryHover:`0.22`,colorOpacitySecondaryPressed:`0.28`,colorSecondary:ee,colorSecondaryHover:te,colorSecondaryPressed:ne,colorTertiary:ee,colorTertiaryHover:te,colorTertiaryPressed:ne,colorQuaternary:`#0000`,colorQuaternaryHover:te,colorQuaternaryPressed:ne,color:`#0000`,colorHover:`#0000`,colorPressed:`#0000`,colorFocus:`#0000`,colorDisabled:`#0000`,textColor:d,textColorTertiary:f,textColorHover:p,textColorPressed:m,textColorFocus:p,textColorDisabled:d,textColorText:d,textColorTextHover:p,textColorTextPressed:m,textColorTextFocus:p,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:p,textColorGhostPressed:m,textColorGhostFocus:p,textColorGhostDisabled:d,border:`1px solid ${h}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${m}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${h}`,rippleColor:g,colorPrimary:g,colorHoverPrimary:p,colorPressedPrimary:m,colorFocusPrimary:p,colorDisabledPrimary:g,textColorPrimary:_,textColorHoverPrimary:_,textColorPressedPrimary:_,textColorFocusPrimary:_,textColorDisabledPrimary:_,textColorTextPrimary:g,textColorTextHoverPrimary:p,textColorTextPressedPrimary:m,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:d,textColorGhostPrimary:g,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:m,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:g,borderPrimary:`1px solid ${g}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${m}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${g}`,rippleColorPrimary:g,colorInfo:v,colorHoverInfo:y,colorPressedInfo:b,colorFocusInfo:y,colorDisabledInfo:v,textColorInfo:_,textColorHoverInfo:_,textColorPressedInfo:_,textColorFocusInfo:_,textColorDisabledInfo:_,textColorTextInfo:v,textColorTextHoverInfo:y,textColorTextPressedInfo:b,textColorTextFocusInfo:y,textColorTextDisabledInfo:d,textColorGhostInfo:v,textColorGhostHoverInfo:y,textColorGhostPressedInfo:b,textColorGhostFocusInfo:y,textColorGhostDisabledInfo:v,borderInfo:`1px solid ${v}`,borderHoverInfo:`1px solid ${y}`,borderPressedInfo:`1px solid ${b}`,borderFocusInfo:`1px solid ${y}`,borderDisabledInfo:`1px solid ${v}`,rippleColorInfo:v,colorSuccess:x,colorHoverSuccess:S,colorPressedSuccess:C,colorFocusSuccess:S,colorDisabledSuccess:x,textColorSuccess:_,textColorHoverSuccess:_,textColorPressedSuccess:_,textColorFocusSuccess:_,textColorDisabledSuccess:_,textColorTextSuccess:x,textColorTextHoverSuccess:S,textColorTextPressedSuccess:C,textColorTextFocusSuccess:S,textColorTextDisabledSuccess:d,textColorGhostSuccess:x,textColorGhostHoverSuccess:S,textColorGhostPressedSuccess:C,textColorGhostFocusSuccess:S,textColorGhostDisabledSuccess:x,borderSuccess:`1px solid ${x}`,borderHoverSuccess:`1px solid ${S}`,borderPressedSuccess:`1px solid ${C}`,borderFocusSuccess:`1px solid ${S}`,borderDisabledSuccess:`1px solid ${x}`,rippleColorSuccess:x,colorWarning:w,colorHoverWarning:T,colorPressedWarning:E,colorFocusWarning:T,colorDisabledWarning:w,textColorWarning:_,textColorHoverWarning:_,textColorPressedWarning:_,textColorFocusWarning:_,textColorDisabledWarning:_,textColorTextWarning:w,textColorTextHoverWarning:T,textColorTextPressedWarning:E,textColorTextFocusWarning:T,textColorTextDisabledWarning:d,textColorGhostWarning:w,textColorGhostHoverWarning:T,textColorGhostPressedWarning:E,textColorGhostFocusWarning:T,textColorGhostDisabledWarning:w,borderWarning:`1px solid ${w}`,borderHoverWarning:`1px solid ${T}`,borderPressedWarning:`1px solid ${E}`,borderFocusWarning:`1px solid ${T}`,borderDisabledWarning:`1px solid ${w}`,rippleColorWarning:w,colorError:D,colorHoverError:O,colorPressedError:k,colorFocusError:O,colorDisabledError:D,textColorError:_,textColorHoverError:_,textColorPressedError:_,textColorFocusError:_,textColorDisabledError:_,textColorTextError:D,textColorTextHoverError:O,textColorTextPressedError:k,textColorTextFocusError:O,textColorTextDisabledError:d,textColorGhostError:D,textColorGhostHoverError:O,textColorGhostPressedError:k,textColorGhostFocusError:O,textColorGhostDisabledError:D,borderError:`1px solid ${D}`,borderHoverError:`1px solid ${O}`,borderPressedError:`1px solid ${k}`,borderFocusError:`1px solid ${O}`,borderDisabledError:`1px solid ${D}`,rippleColorError:D,waveOpacity:`0.6`,fontWeight:A,fontWeightStrong:re})}var Yw={name:`Button`,common:Z,self:Jw},Xw=Yw,Zw={name:`Button`,common:Y,self(e){let t=Jw(e);return t.waveOpacity=`0.8`,t.colorOpacitySecondary=`0.16`,t.colorOpacitySecondaryHover=`0.2`,t.colorOpacitySecondaryPressed=`0.12`,t}},Qw=Zw,$w=B([V(`button`,`
margin: 0;
font-weight: var(--n-font-weight);
line-height: 1;
font-family: inherit;
padding: var(--n-padding);
height: var(--n-height);
font-size: var(--n-font-size);
border-radius: var(--n-border-radius);
color: var(--n-text-color);
background-color: var(--n-color);
width: var(--n-width);
white-space: nowrap;
outline: none;
position: relative;
z-index: auto;
border: none;
display: inline-flex;
flex-wrap: nowrap;
flex-shrink: 0;
align-items: center;
justify-content: center;
user-select: none;
-webkit-user-select: none;
text-align: center;
cursor: pointer;
text-decoration: none;
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
opacity .3s var(--n-bezier),
border-color .3s var(--n-bezier);
`,[U(`color`,[H(`border`,{borderColor:`var(--n-border-color)`}),U(`disabled`,[H(`border`,{borderColor:`var(--n-border-color-disabled)`})]),Du(`disabled`,[B(`&:focus`,[H(`state-border`,{borderColor:`var(--n-border-color-focus)`})]),B(`&:hover`,[H(`state-border`,{borderColor:`var(--n-border-color-hover)`})]),B(`&:active`,[H(`state-border`,{borderColor:`var(--n-border-color-pressed)`})]),U(`pressed`,[H(`state-border`,{borderColor:`var(--n-border-color-pressed)`})])])]),U(`disabled`,{backgroundColor:`var(--n-color-disabled)`,color:`var(--n-text-color-disabled)`},[H(`border`,{border:`var(--n-border-disabled)`})]),Du(`disabled`,[B(`&:focus`,{backgroundColor:`var(--n-color-focus)`,color:`var(--n-text-color-focus)`},[H(`state-border`,{border:`var(--n-border-focus)`})]),B(`&:hover`,{backgroundColor:`var(--n-color-hover)`,color:`var(--n-text-color-hover)`},[H(`state-border`,{border:`var(--n-border-hover)`})]),B(`&:active`,{backgroundColor:`var(--n-color-pressed)`,color:`var(--n-text-color-pressed)`},[H(`state-border`,{border:`var(--n-border-pressed)`})]),U(`pressed`,{backgroundColor:`var(--n-color-pressed)`,color:`var(--n-text-color-pressed)`},[H(`state-border`,{border:`var(--n-border-pressed)`})])]),U(`loading`,`cursor: wait;`),V(`base-wave`,`
pointer-events: none;
top: 0;
right: 0;
bottom: 0;
left: 0;
animation-iteration-count: 1;
animation-duration: var(--n-ripple-duration);
animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
`,[U(`active`,{zIndex:1,animationName:`button-wave-spread, button-wave-opacity`})]),Zd&&`MozBoxSizing`in document.createElement(`div`).style?B(`&::moz-focus-inner`,{border:0}):null,H(`border, state-border`,`
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
border-radius: inherit;
transition: border-color .3s var(--n-bezier);
pointer-events: none;
`),H(`border`,`
border: var(--n-border);
`),H(`state-border`,`
border: var(--n-border);
border-color: #0000;
z-index: 1;
`),H(`icon`,`
margin: var(--n-icon-margin);
margin-left: 0;
height: var(--n-icon-size);
width: var(--n-icon-size);
max-width: var(--n-icon-size);
font-size: var(--n-icon-size);
position: relative;
flex-shrink: 0;
`,[V(`icon-slot`,`
height: var(--n-icon-size);
width: var(--n-icon-size);
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
display: flex;
align-items: center;
justify-content: center;
`,[Yx({top:`50%`,originalTransform:`translateY(-50%)`})]),UC()]),H(`content`,`
display: flex;
align-items: center;
flex-wrap: nowrap;
min-width: 0;
`,[B(`~`,[H(`icon`,{margin:`var(--n-icon-margin)`,marginRight:0})])]),U(`block`,`
display: flex;
width: 100%;
`),U(`dashed`,[H(`border, state-border`,{borderStyle:`dashed !important`})]),U(`disabled`,{cursor:`not-allowed`,opacity:`var(--n-opacity-disabled)`})]),B(`@keyframes button-wave-spread`,{from:{boxShadow:`0 0 0.5px 0 var(--n-ripple-color)`},to:{boxShadow:`0 0 0.5px 4.5px var(--n-ripple-color)`}}),B(`@keyframes button-wave-opacity`,{from:{opacity:`var(--n-wave-opacity)`},to:{opacity:0}})]);const eT=Object.assign(Object.assign({},Lx.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:`button`},type:{type:String,default:`default`},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:`left`},attrType:{type:String,default:`button`},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!aw}});var tT=F({name:`Button`,props:eT,slots:Object,setup(e){let t=M(null),n=M(null),r=M(!1),i=Ad(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),a=Qn(Kw,{}),{mergedSizeRef:o}=zm({},{defaultSize:`medium`,mergedSize:t=>{let{size:n}=e;if(n)return n;let{size:r}=a;if(r)return r;let{mergedSize:i}=t||{};return i?i.value:`medium`}}),s=I(()=>e.focusable&&!e.disabled),c=n=>{var r;s.value||n.preventDefault(),!e.nativeFocusBehavior&&(n.preventDefault(),!e.disabled&&s.value&&((r=t.value)==null||r.focus({preventScroll:!0})))},l=t=>{var r;if(!e.disabled&&!e.loading){let{onClick:i}=e;i&&q(i,t),e.text||(r=n.value)==null||r.play()}},u=t=>{switch(t.key){case`Enter`:if(!e.keyboard)return;r.value=!1}},d=t=>{switch(t.key){case`Enter`:if(!e.keyboard||e.loading){t.preventDefault();return}r.value=!0}},f=()=>{r.value=!1},{inlineThemeDisabled:p,mergedClsPrefixRef:m,mergedRtlRef:h}=Im(e),g=Lx(`Button`,`-button`,$w,Xw,e,m),_=Ox(`Button`,h,m),v=I(()=>{let{common:{cubicBezierEaseInOut:t,cubicBezierEaseOut:n},self:r}=g.value,{rippleDuration:i,opacityDisabled:a,fontWeight:s,fontWeightStrong:c}=r,l=o.value,{dashed:u,type:d,ghost:f,text:p,color:m,round:h,circle:_,textColor:v,secondary:y,tertiary:b,quaternary:x,strong:S}=e,C={"--n-font-weight":S?c:s},w={"--n-color":`initial`,"--n-color-hover":`initial`,"--n-color-pressed":`initial`,"--n-color-focus":`initial`,"--n-color-disabled":`initial`,"--n-ripple-color":`initial`,"--n-text-color":`initial`,"--n-text-color-hover":`initial`,"--n-text-color-pressed":`initial`,"--n-text-color-focus":`initial`,"--n-text-color-disabled":`initial`},T=d===`tertiary`,E=d===`default`,D=T?`default`:d;if(p){let e=v||m,t=e||r[W(`textColorText`,D)];w={"--n-color":`#0000`,"--n-color-hover":`#0000`,"--n-color-pressed":`#0000`,"--n-color-focus":`#0000`,"--n-color-disabled":`#0000`,"--n-ripple-color":`#0000`,"--n-text-color":t,"--n-text-color-hover":e?Ww(e):r[W(`textColorTextHover`,D)],"--n-text-color-pressed":e?Gw(e):r[W(`textColorTextPressed`,D)],"--n-text-color-focus":e?Ww(e):r[W(`textColorTextHover`,D)],"--n-text-color-disabled":e||r[W(`textColorTextDisabled`,D)]}}else if(f||u){let e=v||m;w={"--n-color":`#0000`,"--n-color-hover":`#0000`,"--n-color-pressed":`#0000`,"--n-color-focus":`#0000`,"--n-color-disabled":`#0000`,"--n-ripple-color":m||r[W(`rippleColor`,D)],"--n-text-color":e||r[W(`textColorGhost`,D)],"--n-text-color-hover":e?Ww(e):r[W(`textColorGhostHover`,D)],"--n-text-color-pressed":e?Gw(e):r[W(`textColorGhostPressed`,D)],"--n-text-color-focus":e?Ww(e):r[W(`textColorGhostHover`,D)],"--n-text-color-disabled":e||r[W(`textColorGhostDisabled`,D)]}}else if(y){let e=E?r.textColor:T?r.textColorTertiary:r[W(`color`,D)],t=m||e,n=d!==`default`&&d!==`tertiary`;w={"--n-color":n?K(t,{alpha:Number(r.colorOpacitySecondary)}):r.colorSecondary,"--n-color-hover":n?K(t,{alpha:Number(r.colorOpacitySecondaryHover)}):r.colorSecondaryHover,"--n-color-pressed":n?K(t,{alpha:Number(r.colorOpacitySecondaryPressed)}):r.colorSecondaryPressed,"--n-color-focus":n?K(t,{alpha:Number(r.colorOpacitySecondaryHover)}):r.colorSecondaryHover,"--n-color-disabled":r.colorSecondary,"--n-ripple-color":`#0000`,"--n-text-color":t,"--n-text-color-hover":t,"--n-text-color-pressed":t,"--n-text-color-focus":t,"--n-text-color-disabled":t}}else if(b||x){let e=E?r.textColor:T?r.textColorTertiary:r[W(`color`,D)],t=m||e;b?(w[`--n-color`]=r.colorTertiary,w[`--n-color-hover`]=r.colorTertiaryHover,w[`--n-color-pressed`]=r.colorTertiaryPressed,w[`--n-color-focus`]=r.colorSecondaryHover,w[`--n-color-disabled`]=r.colorTertiary):(w[`--n-color`]=r.colorQuaternary,w[`--n-color-hover`]=r.colorQuaternaryHover,w[`--n-color-pressed`]=r.colorQuaternaryPressed,w[`--n-color-focus`]=r.colorQuaternaryHover,w[`--n-color-disabled`]=r.colorQuaternary),w[`--n-ripple-color`]=`#0000`,w[`--n-text-color`]=t,w[`--n-text-color-hover`]=t,w[`--n-text-color-pressed`]=t,w[`--n-text-color-focus`]=t,w[`--n-text-color-disabled`]=t}else w={"--n-color":m||r[W(`color`,D)],"--n-color-hover":m?Ww(m):r[W(`colorHover`,D)],"--n-color-pressed":m?Gw(m):r[W(`colorPressed`,D)],"--n-color-focus":m?Ww(m):r[W(`colorFocus`,D)],"--n-color-disabled":m||r[W(`colorDisabled`,D)],"--n-ripple-color":m||r[W(`rippleColor`,D)],"--n-text-color":v||(m?r.textColorPrimary:T?r.textColorTertiary:r[W(`textColor`,D)]),"--n-text-color-hover":v||(m?r.textColorHoverPrimary:r[W(`textColorHover`,D)]),"--n-text-color-pressed":v||(m?r.textColorPressedPrimary:r[W(`textColorPressed`,D)]),"--n-text-color-focus":v||(m?r.textColorFocusPrimary:r[W(`textColorFocus`,D)]),"--n-text-color-disabled":v||(m?r.textColorDisabledPrimary:r[W(`textColorDisabled`,D)])};let O={"--n-border":`initial`,"--n-border-hover":`initial`,"--n-border-pressed":`initial`,"--n-border-focus":`initial`,"--n-border-disabled":`initial`};O=p?{"--n-border":`none`,"--n-border-hover":`none`,"--n-border-pressed":`none`,"--n-border-focus":`none`,"--n-border-disabled":`none`}:{"--n-border":r[W(`border`,D)],"--n-border-hover":r[W(`borderHover`,D)],"--n-border-pressed":r[W(`borderPressed`,D)],"--n-border-focus":r[W(`borderFocus`,D)],"--n-border-disabled":r[W(`borderDisabled`,D)]};let{[W(`height`,l)]:k,[W(`fontSize`,l)]:A,[W(`padding`,l)]:ee,[W(`paddingRound`,l)]:te,[W(`iconSize`,l)]:ne,[W(`borderRadius`,l)]:re,[W(`iconMargin`,l)]:ie,waveOpacity:ae}=r,oe={"--n-width":_&&!p?k:`initial`,"--n-height":p?`initial`:k,"--n-font-size":A,"--n-padding":_||p?`initial`:h?te:ee,"--n-icon-size":ne,"--n-icon-margin":ie,"--n-border-radius":p?`initial`:_||h?k:re};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":t,"--n-bezier-ease-out":n,"--n-ripple-duration":i,"--n-opacity-disabled":a,"--n-wave-opacity":ae},C),w),O),oe)}),y=p?Lm(`button`,I(()=>{let t=``,{dashed:n,type:r,ghost:i,text:a,color:s,round:c,circle:l,textColor:u,secondary:d,tertiary:f,quaternary:p,strong:m}=e;n&&(t+=`a`),i&&(t+=`b`),a&&(t+=`c`),c&&(t+=`d`),l&&(t+=`e`),d&&(t+=`f`),f&&(t+=`g`),p&&(t+=`h`),m&&(t+=`i`),s&&(t+=`j${Sm(s)}`),u&&(t+=`k${Sm(u)}`);let{value:h}=o;return t+=`l${h[0]}`,t+=`m${r[0]}`,t}),v,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:m,mergedFocusable:s,mergedSize:o,showBorder:i,enterPressed:r,rtlEnabled:_,handleMousedown:c,handleKeydown:d,handleBlur:f,handleKeyup:u,handleClick:l,customColorCssVars:I(()=>{let{color:t}=e;if(!t)return null;let n=Ww(t);return{"--n-border-color":t,"--n-border-color-hover":n,"--n-border-color-pressed":Gw(t),"--n-border-color-focus":n,"--n-border-color-disabled":t}}),cssVars:p?void 0:v,themeClass:y?.themeClass,onRender:y?.onRender}},render(){let{mergedClsPrefix:e,tag:t,onRender:n}=this;n?.();let r=jm(this.$slots.default,t=>t&&L(`span`,{class:`${e}-button__content`},t));return L(t,{ref:`selfElRef`,class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement===`right`&&r,L(Qx,{width:!0},{default:()=>jm(this.$slots.icon,t=>(this.loading||this.renderIcon||t)&&L(`span`,{class:`${e}-button__icon`,style:{margin:Mm(this.$slots.default)?`0`:``}},L(Bx,null,{default:()=>this.loading?L(nS,{clsPrefix:e,key:`loading`,class:`${e}-icon-slot`,strokeWidth:20}):L(`div`,{key:`icon`,class:`${e}-icon-slot`,role:`none`},this.renderIcon?this.renderIcon():t)})))}),this.iconPlacement===`left`&&r,this.text?null:L(GC,{ref:`waveElRef`,clsPrefix:e}),this.showBorder?L(`div`,{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?L(`div`,{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),nT=tT,rT={titleFontSize:`22px`};function iT(e){let{borderRadius:t,fontSize:n,lineHeight:r,textColor2:i,textColor1:a,textColorDisabled:o,dividerColor:s,fontWeightStrong:c,primaryColor:l,baseColor:u,hoverColor:d,cardColor:f,modalColor:p,popoverColor:m}=e;return Object.assign(Object.assign({},rT),{borderRadius:t,borderColor:G(f,s),borderColorModal:G(p,s),borderColorPopover:G(m,s),textColor:i,titleFontWeight:c,titleTextColor:a,dayTextColor:o,fontSize:n,lineHeight:r,dateColorCurrent:l,dateTextColorCurrent:u,cellColorHover:G(f,d),cellColorHoverModal:G(p,d),cellColorHoverPopover:G(m,d),cellColor:f,cellColorModal:p,cellColorPopover:m,barColor:l})}var aT=Fx({name:`Calendar`,common:Z,peers:{Button:Xw},self:iT}),oT={name:`Calendar`,common:Y,peers:{Button:Qw},self:iT},sT=oT,cT={paddingSmall:`12px 16px 12px`,paddingMedium:`19px 24px 20px`,paddingLarge:`23px 32px 24px`,paddingHuge:`27px 40px 28px`,titleFontSizeSmall:`16px`,titleFontSizeMedium:`18px`,titleFontSizeLarge:`18px`,titleFontSizeHuge:`18px`,closeIconSize:`18px`,closeSize:`22px`};function lT(e){let{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:i,cardColor:a,textColor2:o,textColor1:s,dividerColor:c,fontWeightStrong:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeColorHover:p,closeColorPressed:m,modalColor:h,boxShadow1:g,popoverColor:_,actionColor:v}=e;return Object.assign(Object.assign({},cT),{lineHeight:r,color:a,colorModal:h,colorPopover:_,colorTarget:t,colorEmbedded:v,colorEmbeddedModal:v,colorEmbeddedPopover:v,textColor:o,titleTextColor:s,borderColor:c,actionColor:v,titleFontWeight:l,closeColorHover:p,closeColorPressed:m,closeBorderRadius:n,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,fontSizeSmall:i,fontSizeMedium:i,fontSizeLarge:i,fontSizeHuge:i,boxShadow:g,borderRadius:n})}var uT={name:`Card`,common:Z,self:lT},dT=uT,fT={name:`Card`,common:Y,self(e){let t=lT(e),{cardColor:n,modalColor:r,popoverColor:i}=e;return t.colorEmbedded=n,t.colorEmbeddedModal=r,t.colorEmbeddedPopover=i,t}},pT=fT;function mT(){return{dotSize:`8px`,dotColor:`rgba(255, 255, 255, .3)`,dotColorActive:`rgba(255, 255, 255, 1)`,dotColorFocus:`rgba(255, 255, 255, .5)`,dotLineWidth:`16px`,dotLineWidthActive:`24px`,arrowColor:`#eee`}}var hT={name:`Carousel`,common:Y,self:mT},gT=hT,_T={sizeSmall:`14px`,sizeMedium:`16px`,sizeLarge:`18px`,labelPadding:`0 8px`,labelFontWeight:`400`};function vT(e){let{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:i,popoverColor:a,textColorDisabled:o,borderColor:s,primaryColor:c,textColor2:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadiusSmall:p,lineHeight:m}=e;return Object.assign(Object.assign({},_T),{labelLineHeight:m,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadius:p,color:t,colorChecked:c,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:i,colorTableHeaderPopover:a,checkMarkColor:t,checkMarkColorDisabled:o,checkMarkColorDisabledChecked:o,border:`1px solid ${s}`,borderDisabled:`1px solid ${s}`,borderDisabledChecked:`1px solid ${s}`,borderChecked:`1px solid ${c}`,borderFocus:`1px solid ${c}`,boxShadowFocus:`0 0 0 2px ${K(c,{alpha:.3})}`,textColor:l,textColorDisabled:o})}var yT={name:`Checkbox`,common:Z,self:vT},bT=yT,xT={name:`Checkbox`,common:Y,self(e){let{cardColor:t}=e,n=vT(e);return n.color=`#0000`,n.checkMarkColor=t,n}},ST=xT;function CT(e){let{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:i,textColor3:a,primaryColor:o,textColorDisabled:s,dividerColor:c,hoverColor:l,fontSizeMedium:u,heightMedium:d}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:n,menuDividerColor:c,menuHeight:`calc(var(--n-option-height) * 6.6)`,optionArrowColor:a,optionHeight:d,optionFontSize:u,optionColorHover:l,optionTextColor:i,optionTextColorActive:o,optionTextColorDisabled:s,optionCheckMarkColor:o,loadingColor:o,columnWidth:`180px`}}var wT=Fx({name:`Cascader`,common:Z,peers:{InternalSelectMenu:bC,InternalSelection:VC,Scrollbar:bS,Checkbox:bT,Empty:dC},self:CT}),TT={name:`Cascader`,common:Y,peers:{InternalSelectMenu:SC,InternalSelection:RC,Scrollbar:SS,Checkbox:ST,Empty:dC},self:CT},ET=TT;const DT=Bd(`n-checkbox-group`),OT={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]};var kT=F({name:`CheckboxGroup`,props:OT,setup(e){let{mergedClsPrefixRef:t}=Im(e),n=zm(e),{mergedSizeRef:r,mergedDisabledRef:i}=n,a=M(e.defaultValue),o=Id(I(()=>e.value),a),s=I(()=>o.value?.length||0),c=I(()=>Array.isArray(o.value)?new Set(o.value):new Set);function l(t,r){let{nTriggerFormInput:i,nTriggerFormChange:s}=n,{onChange:c,"onUpdate:value":l,onUpdateValue:u}=e;if(Array.isArray(o.value)){let e=Array.from(o.value),n=e.findIndex(e=>e===r);t?~n||(e.push(r),u&&q(u,e,{actionType:`check`,value:r}),l&&q(l,e,{actionType:`check`,value:r}),i(),s(),a.value=e,c&&q(c,e)):~n&&(e.splice(n,1),u&&q(u,e,{actionType:`uncheck`,value:r}),l&&q(l,e,{actionType:`uncheck`,value:r}),c&&q(c,e),a.value=e,i(),s())}else t?(u&&q(u,[r],{actionType:`check`,value:r}),l&&q(l,[r],{actionType:`check`,value:r}),c&&q(c,[r]),a.value=[r],i(),s()):(u&&q(u,[],{actionType:`uncheck`,value:r}),l&&q(l,[],{actionType:`uncheck`,value:r}),c&&q(c,[]),a.value=[],i(),s())}return Zn(DT,{checkedCountRef:s,maxRef:P(e,`max`),minRef:P(e,`min`),valueSetRef:c,disabledRef:i,mergedSizeRef:r,toggleCheckbox:l}),{mergedClsPrefix:t}},render(){return L(`div`,{class:`${this.mergedClsPrefix}-checkbox-group`,role:`group`},this.$slots)}}),AT=()=>L(`svg`,{viewBox:`0 0 64 64`,class:`check-icon`},L(`path`,{d:`M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z`})),jT=()=>L(`svg`,{viewBox:`0 0 100 100`,class:`line-icon`},L(`path`,{d:`M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z`})),MT=B([V(`checkbox`,`
font-size: var(--n-font-size);
outline: none;
cursor: pointer;
display: inline-flex;
flex-wrap: nowrap;
align-items: flex-start;
word-break: break-word;
line-height: var(--n-size);
--n-merged-color-table: var(--n-color-table);
`,[U(`show-label`,`line-height: var(--n-label-line-height);`),B(`&:hover`,[V(`checkbox-box`,[H(`border`,`border: var(--n-border-checked);`)])]),B(`&:focus:not(:active)`,[V(`checkbox-box`,[H(`border`,`
border: var(--n-border-focus);
box-shadow: var(--n-box-shadow-focus);
`)])]),U(`inside-table`,[V(`checkbox-box`,`
background-color: var(--n-merged-color-table);
`)]),U(`checked`,[V(`checkbox-box`,`
background-color: var(--n-color-checked);
`,[V(`checkbox-icon`,[B(`.check-icon`,`
opacity: 1;
transform: scale(1);
`)])])]),U(`indeterminate`,[V(`checkbox-box`,[V(`checkbox-icon`,[B(`.check-icon`,`
opacity: 0;
transform: scale(.5);
`),B(`.line-icon`,`
opacity: 1;
transform: scale(1);
`)])])]),U(`checked, indeterminate`,[B(`&:focus:not(:active)`,[V(`checkbox-box`,[H(`border`,`
border: var(--n-border-checked);
box-shadow: var(--n-box-shadow-focus);
`)])]),V(`checkbox-box`,`
background-color: var(--n-color-checked);
border-left: 0;
border-top: 0;
`,[H(`border`,{border:`var(--n-border-checked)`})])]),U(`disabled`,{cursor:`not-allowed`},[U(`checked`,[V(`checkbox-box`,`
background-color: var(--n-color-disabled-checked);
`,[H(`border`,{border:`var(--n-border-disabled-checked)`}),V(`checkbox-icon`,[B(`.check-icon, .line-icon`,{fill:`var(--n-check-mark-color-disabled-checked)`})])])]),V(`checkbox-box`,`
background-color: var(--n-color-disabled);
`,[H(`border`,`
border: var(--n-border-disabled);
`),V(`checkbox-icon`,[B(`.check-icon, .line-icon`,`
fill: var(--n-check-mark-color-disabled);
`)])]),H(`label`,`
color: var(--n-text-color-disabled);
`)]),V(`checkbox-box-wrapper`,`
position: relative;
width: var(--n-size);
flex-shrink: 0;
flex-grow: 0;
user-select: none;
-webkit-user-select: none;
`),V(`checkbox-box`,`
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
height: var(--n-size);
width: var(--n-size);
display: inline-block;
box-sizing: border-box;
border-radius: var(--n-border-radius);
background-color: var(--n-color);
transition: background-color 0.3s var(--n-bezier);
`,[H(`border`,`
transition:
border-color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier);
border-radius: inherit;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
border: var(--n-border);
`),V(`checkbox-icon`,`
display: flex;
align-items: center;
justify-content: center;
position: absolute;
left: 1px;
right: 1px;
top: 1px;
bottom: 1px;
`,[B(`.check-icon, .line-icon`,`
width: 100%;
fill: var(--n-check-mark-color);
opacity: 0;
transform: scale(0.5);
transform-origin: center;
transition:
fill 0.3s var(--n-bezier),
transform 0.3s var(--n-bezier),
opacity 0.3s var(--n-bezier),
border-color 0.3s var(--n-bezier);
`),Yx({left:`1px`,top:`1px`})])]),H(`label`,`
color: var(--n-text-color);
transition: color .3s var(--n-bezier);
user-select: none;
-webkit-user-select: none;
padding: var(--n-label-padding);
font-weight: var(--n-label-font-weight);
`,[B(`&:empty`,{display:`none`})])]),Ou(V(`checkbox`,`
--n-merged-color-table: var(--n-color-table-modal);
`)),ku(V(`checkbox`,`
--n-merged-color-table: var(--n-color-table-popover);
`))]);const NT=Object.assign(Object.assign({},Lx.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]});var PT=F({name:`Checkbox`,props:NT,setup(e){let t=Qn(DT,null),n=M(null),{mergedClsPrefixRef:r,inlineThemeDisabled:i,mergedRtlRef:a}=Im(e),o=M(e.defaultChecked),s=Id(P(e,`checked`),o),c=Ad(()=>{if(t){let n=t.valueSetRef.value;return n&&e.value!==void 0?n.has(e.value):!1}else return s.value===e.checkedValue}),l=zm(e,{mergedSize(n){let{size:r}=e;if(r!==void 0)return r;if(t){let{value:e}=t.mergedSizeRef;if(e!==void 0)return e}if(n){let{mergedSize:e}=n;if(e!==void 0)return e.value}return`medium`},mergedDisabled(n){let{disabled:r}=e;if(r!==void 0)return r;if(t){if(t.disabledRef.value)return!0;let{maxRef:{value:e},checkedCountRef:n}=t;if(e!==void 0&&n.value>=e&&!c.value)return!0;let{minRef:{value:r}}=t;if(r!==void 0&&n.value<=r&&c.value)return!0}return n?n.disabled.value:!1}}),{mergedDisabledRef:u,mergedSizeRef:d}=l,f=Lx(`Checkbox`,`-checkbox`,MT,bT,e,r);function p(n){if(t&&e.value!==void 0)t.toggleCheckbox(!c.value,e.value);else{let{onChange:t,"onUpdate:checked":r,onUpdateChecked:i}=e,{nTriggerFormInput:a,nTriggerFormChange:s}=l,u=c.value?e.uncheckedValue:e.checkedValue;r&&q(r,u,n),i&&q(i,u,n),t&&q(t,u,n),a(),s(),o.value=u}}function m(e){u.value||p(e)}function h(e){if(!u.value)switch(e.key){case` `:case`Enter`:p(e)}}function g(e){switch(e.key){case` `:e.preventDefault()}}let _={focus:()=>{var e;(e=n.value)==null||e.focus()},blur:()=>{var e;(e=n.value)==null||e.blur()}},v=Ox(`Checkbox`,a,r),y=I(()=>{let{value:e}=d,{common:{cubicBezierEaseInOut:t},self:{borderRadius:n,color:r,colorChecked:i,colorDisabled:a,colorTableHeader:o,colorTableHeaderModal:s,colorTableHeaderPopover:c,checkMarkColor:l,checkMarkColorDisabled:u,border:p,borderFocus:m,borderDisabled:h,borderChecked:g,boxShadowFocus:_,textColor:v,textColorDisabled:y,checkMarkColorDisabledChecked:b,colorDisabledChecked:x,borderDisabledChecked:S,labelPadding:C,labelLineHeight:w,labelFontWeight:T,[W(`fontSize`,e)]:E,[W(`size`,e)]:D}}=f.value;return{"--n-label-line-height":w,"--n-label-font-weight":T,"--n-size":D,"--n-bezier":t,"--n-border-radius":n,"--n-border":p,"--n-border-checked":g,"--n-border-focus":m,"--n-border-disabled":h,"--n-border-disabled-checked":S,"--n-box-shadow-focus":_,"--n-color":r,"--n-color-checked":i,"--n-color-table":o,"--n-color-table-modal":s,"--n-color-table-popover":c,"--n-color-disabled":a,"--n-color-disabled-checked":x,"--n-text-color":v,"--n-text-color-disabled":y,"--n-check-mark-color":l,"--n-check-mark-color-disabled":u,"--n-check-mark-color-disabled-checked":b,"--n-font-size":E,"--n-label-padding":C}}),b=i?Lm(`checkbox`,I(()=>d.value[0]),y,e):void 0;return Object.assign(l,_,{rtlEnabled:v,selfRef:n,mergedClsPrefix:r,mergedDisabled:u,renderedChecked:c,mergedTheme:f,labelId:_d(),handleClick:m,handleKeyUp:h,handleKeyDown:g,cssVars:i?void 0:y,themeClass:b?.themeClass,onRender:b?.onRender})},render(){var e;let{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:i,privateInsideTable:a,cssVars:o,labelId:s,label:c,mergedClsPrefix:l,focusable:u,handleKeyUp:d,handleKeyDown:f,handleClick:p}=this;(e=this.onRender)==null||e.call(this);let m=jm(t.default,e=>c||e?L(`span`,{class:`${l}-checkbox__label`,id:s},c||e):null);return L(`div`,{ref:`selfRef`,class:[`${l}-checkbox`,this.themeClass,this.rtlEnabled&&`${l}-checkbox--rtl`,n&&`${l}-checkbox--checked`,r&&`${l}-checkbox--disabled`,i&&`${l}-checkbox--indeterminate`,a&&`${l}-checkbox--inside-table`,m&&`${l}-checkbox--show-label`],tabindex:r||!u?void 0:0,role:`checkbox`,"aria-checked":i?`mixed`:n,"aria-labelledby":s,style:o,onKeyup:d,onKeydown:f,onClick:p,onMousedown:()=>{Ed(`selectstart`,window,e=>{e.preventDefault()},{once:!0})}},L(`div`,{class:`${l}-checkbox-box-wrapper`},`\xA0`,L(`div`,{class:`${l}-checkbox-box`},L(Bx,null,{default:()=>this.indeterminate?L(`div`,{key:`indeterminate`,class:`${l}-checkbox-icon`},jT()):L(`div`,{key:`check`,class:`${l}-checkbox-icon`},AT())}),L(`div`,{class:`${l}-checkbox-box__border`}))),m)}}),FT={name:`Code`,common:Y,self(e){let{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:i}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":`#5c6370`,"hue-1":`#56b6c2`,"hue-2":`#61aeee`,"hue-3":`#c678dd`,"hue-4":`#98c379`,"hue-5":`#e06c75`,"hue-5-2":`#be5046`,"hue-6":`#d19a66`,"hue-6-2":`#e6c07b`,lineNumberTextColor:i}}},IT=FT;function LT(e){let{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:i,dividerColor:a,fontSize:o}=e;return{titleFontSize:o,titleFontWeight:t,dividerColor:a,titleTextColor:n,titleTextColorDisabled:i,fontSize:o,textColor:r,arrowColor:r,arrowColorDisabled:i,itemMargin:`16px 0 0 0`,titlePadding:`16px 0 0 0`}}var RT={name:`Collapse`,common:Y,self:LT},zT=RT;function BT(e){let{cubicBezierEaseInOut:t}=e;return{bezier:t}}var VT={name:`CollapseTransition`,common:Y,self:BT},HT=VT;function UT(e){let{fontSize:t,boxShadow2:n,popoverColor:r,textColor2:i,borderRadius:a,borderColor:o,heightSmall:s,heightMedium:c,heightLarge:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:p}=e;return{panelFontSize:t,boxShadow:n,color:r,textColor:i,borderRadius:a,border:`1px solid ${o}`,heightSmall:s,heightMedium:c,heightLarge:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:p}}var WT=Fx({name:`ColorPicker`,common:Z,peers:{Input:fw,Button:Xw},self:UT}),GT={name:`ColorPicker`,common:Y,peers:{Input:lw,Button:Qw},self:UT},KT=GT;const qT={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:`div`},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(wm(`config-provider`,"`as` is deprecated, please use `tag` instead."),!0),default:void 0}};var JT=F({name:`ConfigProvider`,alias:[`App`],props:qT,setup(e){let t=Qn(Pm,null),n=I(()=>{let{theme:n}=e;if(n===null)return;let r=t?.mergedThemeRef.value;return n===void 0?r:r===void 0?n:Object.assign({},r,n)}),r=I(()=>{let{themeOverrides:n}=e;if(n!==null){if(n===void 0)return t?.mergedThemeOverridesRef.value;{let e=t?.mergedThemeOverridesRef.value;return e===void 0?n:Tx({},e,n)}}}),i=Ad(()=>{let{namespace:n}=e;return n===void 0?t?.mergedNamespaceRef.value:n}),a=Ad(()=>{let{bordered:n}=e;return n===void 0?t?.mergedBorderedRef.value:n}),o=I(()=>{let{icons:n}=e;return n===void 0?t?.mergedIconsRef.value:n}),s=I(()=>{let{componentOptions:n}=e;return n===void 0?t?.mergedComponentPropsRef.value:n}),c=I(()=>{let{clsPrefix:n}=e;return n===void 0?t?t.mergedClsPrefixRef.value:`n`:n}),l=I(()=>{var n;let{rtl:r}=e;if(r===void 0)return t?.mergedRtlRef.value;let i={};for(let e of r)i[e.name]=an(e),(n=e.peers)==null||n.forEach(e=>{e.name in i||(i[e.name]=an(e))});return i}),u=I(()=>e.breakpoints||t?.mergedBreakpointsRef.value),d=e.inlineThemeDisabled||t?.inlineThemeDisabled,f=e.preflightStyleDisabled||t?.preflightStyleDisabled,p=e.styleMountTarget||t?.styleMountTarget;return Zn(Pm,{mergedThemeHashRef:I(()=>{let{value:e}=n,{value:t}=r,i=t&&Object.keys(t).length!==0,a=e?.name;return a?i?`${a}-${lu(JSON.stringify(r.value))}`:a:i?lu(JSON.stringify(r.value)):``}),mergedBreakpointsRef:u,mergedRtlRef:l,mergedIconsRef:o,mergedComponentPropsRef:s,mergedBorderedRef:a,mergedNamespaceRef:i,mergedClsPrefixRef:c,mergedLocaleRef:I(()=>{let{locale:n}=e;if(n!==null)return n===void 0?t?.mergedLocaleRef.value:n}),mergedDateLocaleRef:I(()=>{let{dateLocale:n}=e;if(n!==null)return n===void 0?t?.mergedDateLocaleRef.value:n}),mergedHljsRef:I(()=>{let{hljs:n}=e;return n===void 0?t?.mergedHljsRef.value:n}),mergedKatexRef:I(()=>{let{katex:n}=e;return n===void 0?t?.mergedKatexRef.value:n}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:d||!1,preflightStyleDisabled:f||!1,styleMountTarget:p}),{mergedClsPrefix:c,mergedBordered:a,mergedNamespace:i,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t;return this.abstract?(t=this.$slots).default?.call(t):L(this.as||this.tag,{class:`${this.mergedClsPrefix||`n`}-config-provider`},(e=this.$slots).default?.call(e))}}),YT={name:`Popselect`,common:Y,peers:{Popover:jC,InternalSelectMenu:SC}},XT=YT;function ZT(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}var QT=Fx({name:`Popselect`,common:Z,peers:{Popover:kC,InternalSelectMenu:bC},self:ZT}),$T=QT;function eE(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}var tE=Fx({name:`Select`,common:Z,peers:{InternalSelection:VC,InternalSelectMenu:bC},self:eE}),nE=tE,rE={name:`Select`,common:Y,peers:{InternalSelection:RC,InternalSelectMenu:SC},self:eE},iE=rE,aE={itemPaddingSmall:`0 4px`,itemMarginSmall:`0 0 0 8px`,itemMarginSmallRtl:`0 8px 0 0`,itemPaddingMedium:`0 4px`,itemMarginMedium:`0 0 0 8px`,itemMarginMediumRtl:`0 8px 0 0`,itemPaddingLarge:`0 4px`,itemMarginLarge:`0 0 0 8px`,itemMarginLargeRtl:`0 8px 0 0`,buttonIconSizeSmall:`14px`,buttonIconSizeMedium:`16px`,buttonIconSizeLarge:`18px`,inputWidthSmall:`60px`,selectWidthSmall:`unset`,inputMarginSmall:`0 0 0 8px`,inputMarginSmallRtl:`0 8px 0 0`,selectMarginSmall:`0 0 0 8px`,prefixMarginSmall:`0 8px 0 0`,suffixMarginSmall:`0 0 0 8px`,inputWidthMedium:`60px`,selectWidthMedium:`unset`,inputMarginMedium:`0 0 0 8px`,inputMarginMediumRtl:`0 8px 0 0`,selectMarginMedium:`0 0 0 8px`,prefixMarginMedium:`0 8px 0 0`,suffixMarginMedium:`0 0 0 8px`,inputWidthLarge:`60px`,selectWidthLarge:`unset`,inputMarginLarge:`0 0 0 8px`,inputMarginLargeRtl:`0 8px 0 0`,selectMarginLarge:`0 0 0 8px`,prefixMarginLarge:`0 8px 0 0`,suffixMarginLarge:`0 0 0 8px`};function oE(e){let{textColor2:t,primaryColor:n,primaryColorHover:r,primaryColorPressed:i,inputColorDisabled:a,textColorDisabled:o,borderColor:s,borderRadius:c,fontSizeTiny:l,fontSizeSmall:u,fontSizeMedium:d,heightTiny:f,heightSmall:p,heightMedium:m}=e;return Object.assign(Object.assign({},aE),{buttonColor:`#0000`,buttonColorHover:`#0000`,buttonColorPressed:`#0000`,buttonBorder:`1px solid ${s}`,buttonBorderHover:`1px solid ${s}`,buttonBorderPressed:`1px solid ${s}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:i,itemTextColorActive:n,itemTextColorDisabled:o,itemColor:`#0000`,itemColorHover:`#0000`,itemColorPressed:`#0000`,itemColorActive:`#0000`,itemColorActiveHover:`#0000`,itemColorDisabled:a,itemBorder:`1px solid #0000`,itemBorderHover:`1px solid #0000`,itemBorderPressed:`1px solid #0000`,itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${s}`,itemBorderRadius:c,itemSizeSmall:f,itemSizeMedium:p,itemSizeLarge:m,itemFontSizeSmall:l,itemFontSizeMedium:u,itemFontSizeLarge:d,jumperFontSizeSmall:l,jumperFontSizeMedium:u,jumperFontSizeLarge:d,jumperTextColor:t,jumperTextColorDisabled:o})}var sE=Fx({name:`Pagination`,common:Z,peers:{Select:nE,Input:fw,Popselect:$T},self:oE}),cE=sE,lE={name:`Pagination`,common:Y,peers:{Select:iE,Input:lw,Popselect:XT},self(e){let{primaryColor:t,opacity3:n}=e,r=K(t,{alpha:Number(n)}),i=oE(e);return i.itemBorderActive=`1px solid ${r}`,i.itemBorderDisabled=`1px solid #0000`,i}},uE=lE,dE={padding:`4px 0`,optionIconSizeSmall:`14px`,optionIconSizeMedium:`16px`,optionIconSizeLarge:`16px`,optionIconSizeHuge:`18px`,optionSuffixWidthSmall:`14px`,optionSuffixWidthMedium:`14px`,optionSuffixWidthLarge:`16px`,optionSuffixWidthHuge:`16px`,optionIconSuffixWidthSmall:`32px`,optionIconSuffixWidthMedium:`32px`,optionIconSuffixWidthLarge:`36px`,optionIconSuffixWidthHuge:`36px`,optionPrefixWidthSmall:`14px`,optionPrefixWidthMedium:`14px`,optionPrefixWidthLarge:`16px`,optionPrefixWidthHuge:`16px`,optionIconPrefixWidthSmall:`36px`,optionIconPrefixWidthMedium:`36px`,optionIconPrefixWidthLarge:`40px`,optionIconPrefixWidthHuge:`40px`};function fE(e){let{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:i,popoverColor:a,invertedColor:o,borderRadius:s,fontSizeSmall:c,fontSizeMedium:l,fontSizeLarge:u,fontSizeHuge:d,heightSmall:f,heightMedium:p,heightLarge:m,heightHuge:h,textColor3:g,opacityDisabled:_}=e;return Object.assign(Object.assign({},dE),{optionHeightSmall:f,optionHeightMedium:p,optionHeightLarge:m,optionHeightHuge:h,borderRadius:s,fontSizeSmall:c,fontSizeMedium:l,fontSizeLarge:u,fontSizeHuge:d,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:a,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:i,optionColorActive:K(t,{alpha:.1}),groupHeaderTextColor:g,optionTextColorInverted:`#BBB`,optionTextColorHoverInverted:`#FFF`,optionTextColorActiveInverted:`#FFF`,optionTextColorChildActiveInverted:`#FFF`,colorInverted:o,dividerColorInverted:`#BBB`,suffixColorInverted:`#BBB`,prefixColorInverted:`#BBB`,optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:`#AAA`,optionOpacityDisabled:_})}var pE=Fx({name:`Dropdown`,common:Z,peers:{Popover:kC},self:fE}),mE=pE,hE={name:`Dropdown`,common:Y,peers:{Popover:jC},self(e){let{primaryColorSuppl:t,primaryColor:n,popoverColor:r}=e,i=fE(e);return i.colorInverted=r,i.optionColorActive=K(n,{alpha:.15}),i.optionColorActiveInverted=t,i.optionColorHoverInverted=t,i}},gE=hE,_E={padding:`8px 14px`},vE={name:`Tooltip`,common:Y,peers:{Popover:jC},self(e){let{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:i}=e;return Object.assign(Object.assign({},_E),{borderRadius:t,boxShadow:n,color:r,textColor:i})}},yE=vE;function bE(e){let{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},_E),{borderRadius:t,boxShadow:n,color:G(r,`rgba(0, 0, 0, .85)`),textColor:r})}var xE=Fx({name:`Tooltip`,common:Z,peers:{Popover:kC},self:bE}),SE=xE,CE={name:`Ellipsis`,common:Y,peers:{Tooltip:yE}},wE=CE,TE=Fx({name:`Ellipsis`,common:Z,peers:{Tooltip:SE}}),EE=TE,DE={radioSizeSmall:`14px`,radioSizeMedium:`16px`,radioSizeLarge:`18px`,labelPadding:`0 8px`,labelFontWeight:`400`},OE={name:`Radio`,common:Y,self(e){let{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:i,inputColorDisabled:a,textColor2:o,opacityDisabled:s,borderRadius:c,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:p,heightLarge:m,lineHeight:h}=e;return Object.assign(Object.assign({},DE),{labelLineHeight:h,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:m,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${K(n,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:`#0000`,colorDisabled:a,colorActive:`#0000`,textColor:o,textColorDisabled:i,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:n,buttonColor:`#0000`,buttonColorActive:n,buttonTextColor:o,buttonTextColorActive:r,buttonTextColorHover:n,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${K(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${n}`,buttonBoxShadow:`inset 0 0 0 1px #0000`,buttonBorderRadius:c})}},kE=OE;function AE(e){let{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:i,inputColorDisabled:a,textColor2:o,opacityDisabled:s,borderRadius:c,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:p,heightLarge:m,lineHeight:h}=e;return Object.assign(Object.assign({},DE),{labelLineHeight:h,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:m,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${K(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:a,colorActive:`#0000`,textColor:o,textColorDisabled:i,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:o,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${K(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px #0000`,buttonBoxShadow:`inset 0 0 0 1px #0000`,buttonBorderRadius:c})}var jE={name:`Radio`,common:Z,self:AE},ME=jE,NE={thPaddingSmall:`8px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`8px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`,sorterSize:`15px`,resizableContainerSize:`8px`,resizableSize:`2px`,filterSize:`15px`,paginationMargin:`12px 0 0 0`,emptyPadding:`48px 0`,actionPadding:`8px 12px`,actionButtonMargin:`0 8px 0 0`};function PE(e){let{cardColor:t,modalColor:n,popoverColor:r,textColor2:i,textColor1:a,tableHeaderColor:o,tableColorHover:s,iconColor:c,primaryColor:l,fontWeightStrong:u,borderRadius:d,lineHeight:f,fontSizeSmall:p,fontSizeMedium:m,fontSizeLarge:h,dividerColor:g,heightSmall:_,opacityDisabled:v,tableColorStriped:y}=e;return Object.assign(Object.assign({},NE),{actionDividerColor:g,lineHeight:f,borderRadius:d,fontSizeSmall:p,fontSizeMedium:m,fontSizeLarge:h,borderColor:G(t,g),tdColorHover:G(t,s),tdColorSorting:G(t,s),tdColorStriped:G(t,y),thColor:G(t,o),thColorHover:G(G(t,o),s),thColorSorting:G(G(t,o),s),tdColor:t,tdTextColor:i,thTextColor:a,thFontWeight:u,thButtonColorHover:s,thIconColor:c,thIconColorActive:l,borderColorModal:G(n,g),tdColorHoverModal:G(n,s),tdColorSortingModal:G(n,s),tdColorStripedModal:G(n,y),thColorModal:G(n,o),thColorHoverModal:G(G(n,o),s),thColorSortingModal:G(G(n,o),s),tdColorModal:n,borderColorPopover:G(r,g),tdColorHoverPopover:G(r,s),tdColorSortingPopover:G(r,s),tdColorStripedPopover:G(r,y),thColorPopover:G(r,o),thColorHoverPopover:G(G(r,o),s),thColorSortingPopover:G(G(r,o),s),tdColorPopover:r,boxShadowBefore:`inset -12px 0 8px -12px rgba(0, 0, 0, .18)`,boxShadowAfter:`inset 12px 0 8px -12px rgba(0, 0, 0, .18)`,loadingColor:l,loadingSize:_,opacityLoading:v})}var FE=Fx({name:`DataTable`,common:Z,peers:{Button:Xw,Checkbox:bT,Radio:ME,Pagination:cE,Scrollbar:bS,Empty:dC,Popover:kC,Ellipsis:EE,Dropdown:mE},self:PE}),IE={name:`DataTable`,common:Y,peers:{Button:Qw,Checkbox:ST,Radio:kE,Pagination:uE,Scrollbar:SS,Empty:pC,Popover:jC,Ellipsis:wE,Dropdown:gE},self(e){let t=PE(e);return t.boxShadowAfter=`inset 12px 0 8px -12px rgba(0, 0, 0, .36)`,t.boxShadowBefore=`inset -12px 0 8px -12px rgba(0, 0, 0, .36)`,t}},LE=IE;function RE(e){let{textColorBase:t,opacity1:n,opacity2:r,opacity3:i,opacity4:a,opacity5:o}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:i,opacity4Depth:a,opacity5Depth:o}}var zE={name:`Icon`,common:Y,self:RE},BE=zE,VE={itemFontSize:`12px`,itemHeight:`36px`,itemWidth:`52px`,panelActionPadding:`8px 0`};function HE(e){let{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:i,dividerColor:a,opacityDisabled:o,boxShadow2:s,borderRadius:c,iconColor:l,iconColorDisabled:u}=e;return Object.assign(Object.assign({},VE),{panelColor:t,panelBoxShadow:s,panelDividerColor:a,itemTextColor:n,itemTextColorActive:r,itemColorHover:i,itemOpacityDisabled:o,itemBorderRadius:c,borderRadius:c,iconColor:l,iconColorDisabled:u})}var UE=Fx({name:`TimePicker`,common:Z,peers:{Scrollbar:bS,Button:Xw,Input:fw},self:HE}),WE=UE,GE={name:`TimePicker`,common:Y,peers:{Scrollbar:SS,Button:Qw,Input:lw},self:HE},KE=GE,qE={itemSize:`24px`,itemCellWidth:`38px`,itemCellHeight:`32px`,scrollItemWidth:`80px`,scrollItemHeight:`40px`,panelExtraFooterPadding:`8px 12px`,panelActionPadding:`8px 12px`,calendarTitlePadding:`0`,calendarTitleHeight:`28px`,arrowSize:`14px`,panelHeaderPadding:`8px 12px`,calendarDaysHeight:`32px`,calendarTitleGridTempateColumns:`28px 28px 1fr 28px 28px`,calendarLeftPaddingDate:`6px 12px 4px 12px`,calendarLeftPaddingDatetime:`4px 12px`,calendarLeftPaddingDaterange:`6px 12px 4px 12px`,calendarLeftPaddingDatetimerange:`4px 12px`,calendarLeftPaddingMonth:`0`,calendarLeftPaddingYear:`0`,calendarLeftPaddingQuarter:`0`,calendarLeftPaddingMonthrange:`0`,calendarLeftPaddingQuarterrange:`0`,calendarLeftPaddingYearrange:`0`,calendarLeftPaddingWeek:`6px 12px 4px 12px`,calendarRightPaddingDate:`6px 12px 4px 12px`,calendarRightPaddingDatetime:`4px 12px`,calendarRightPaddingDaterange:`6px 12px 4px 12px`,calendarRightPaddingDatetimerange:`4px 12px`,calendarRightPaddingMonth:`0`,calendarRightPaddingYear:`0`,calendarRightPaddingQuarter:`0`,calendarRightPaddingMonthrange:`0`,calendarRightPaddingQuarterrange:`0`,calendarRightPaddingYearrange:`0`,calendarRightPaddingWeek:`0`};function JE(e){let{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:i,popoverColor:a,primaryColor:o,borderRadiusSmall:s,iconColor:c,iconColorDisabled:l,textColor1:u,dividerColor:d,boxShadow2:f,borderRadius:p,fontWeightStrong:m}=e;return Object.assign(Object.assign({},qE),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:i,itemTextColorActive:a,itemTextColorCurrent:o,itemColorIncluded:K(o,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:o,itemBorderRadius:s,panelColor:a,panelTextColor:r,arrowColor:c,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:d,calendarDaysDividerColor:d,calendarDividerColor:d,panelActionDividerColor:d,panelBoxShadow:f,panelBorderRadius:p,calendarTitleFontWeight:m,scrollItemBorderRadius:p,iconColor:c,iconColorDisabled:l})}var YE=Fx({name:`DatePicker`,common:Z,peers:{Input:fw,Button:Xw,TimePicker:WE,Scrollbar:bS},self:JE}),XE={name:`DatePicker`,common:Y,peers:{Input:lw,Button:Qw,TimePicker:KE,Scrollbar:SS},self(e){let{popoverColor:t,hoverColor:n,primaryColor:r}=e,i=JE(e);return i.itemColorDisabled=G(t,n),i.itemColorIncluded=K(r,{alpha:.15}),i.itemColorHover=G(t,n),i}},ZE=XE,QE={thPaddingBorderedSmall:`8px 12px`,thPaddingBorderedMedium:`12px 16px`,thPaddingBorderedLarge:`16px 24px`,thPaddingSmall:`0`,thPaddingMedium:`0`,thPaddingLarge:`0`,tdPaddingBorderedSmall:`8px 12px`,tdPaddingBorderedMedium:`12px 16px`,tdPaddingBorderedLarge:`16px 24px`,tdPaddingSmall:`0 0 8px 0`,tdPaddingMedium:`0 0 12px 0`,tdPaddingLarge:`0 0 16px 0`};function $E(e){let{tableHeaderColor:t,textColor2:n,textColor1:r,cardColor:i,modalColor:a,popoverColor:o,dividerColor:s,borderRadius:c,fontWeightStrong:l,lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p}=e;return Object.assign(Object.assign({},QE),{lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p,titleTextColor:r,thColor:G(i,t),thColorModal:G(a,t),thColorPopover:G(o,t),thTextColor:r,thFontWeight:l,tdTextColor:n,tdColor:i,tdColorModal:a,tdColorPopover:o,borderColor:G(i,s),borderColorModal:G(a,s),borderColorPopover:G(o,s),borderRadius:c})}var eD={name:`Descriptions`,common:Y,self:$E},tD=eD,nD={titleFontSize:`18px`,padding:`16px 28px 20px 28px`,iconSize:`28px`,actionSpace:`12px`,contentMargin:`8px 0 16px 0`,iconMargin:`0 4px 0 0`,iconMarginIconTop:`4px 0 8px 0`,closeSize:`22px`,closeIconSize:`18px`,closeMargin:`20px 26px 0 0`,closeMarginIconTop:`10px 16px 0 0`};function rD(e){let{textColor1:t,textColor2:n,modalColor:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,infoColor:l,successColor:u,warningColor:d,errorColor:f,primaryColor:p,dividerColor:m,borderRadius:h,fontWeightStrong:g,lineHeight:_,fontSize:v}=e;return Object.assign(Object.assign({},nD),{fontSize:v,lineHeight:_,border:`1px solid ${m}`,titleTextColor:t,textColor:n,color:r,closeColorHover:s,closeColorPressed:c,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeBorderRadius:h,iconColor:p,iconColorInfo:l,iconColorSuccess:u,iconColorWarning:d,iconColorError:f,borderRadius:h,titleFontWeight:g})}var iD=Fx({name:`Dialog`,common:Z,peers:{Button:Xw},self:rD}),aD=iD,oD={name:`Dialog`,common:Y,peers:{Button:Qw},self:rD},sD=oD;function cD(e){let{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}}var lD=Fx({name:`Modal`,common:Z,peers:{Scrollbar:bS,Dialog:aD,Card:dT},self:cD}),uD={name:`Modal`,common:Y,peers:{Scrollbar:SS,Dialog:sD,Card:pT},self:cD},dD=uD,fD={name:`LoadingBar`,common:Y,self(e){let{primaryColor:t}=e;return{colorError:`red`,colorLoading:t,height:`2px`}}},pD=fD,mD={margin:`0 0 8px 0`,padding:`10px 20px`,maxWidth:`720px`,minWidth:`420px`,iconMargin:`0 10px 0 0`,closeMargin:`0 0 0 10px`,closeSize:`20px`,closeIconSize:`16px`,iconSize:`20px`,fontSize:`14px`};function hD(e){let{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:i,infoColor:a,successColor:o,errorColor:s,warningColor:c,popoverColor:l,boxShadow2:u,primaryColor:d,lineHeight:f,borderRadius:p,closeColorHover:m,closeColorPressed:h}=e;return Object.assign(Object.assign({},mD),{closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:l,colorInfo:l,colorSuccess:l,colorError:l,colorWarning:l,colorLoading:l,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:a,iconColorSuccess:o,iconColorWarning:c,iconColorError:s,iconColorLoading:d,closeColorHover:m,closeColorPressed:h,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:i,closeColorHoverInfo:m,closeColorPressedInfo:h,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:i,closeColorHoverSuccess:m,closeColorPressedSuccess:h,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:i,closeColorHoverError:m,closeColorPressedError:h,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:i,closeColorHoverWarning:m,closeColorPressedWarning:h,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:i,closeColorHoverLoading:m,closeColorPressedLoading:h,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:i,loadingColor:d,lineHeight:f,borderRadius:p,border:`0`})}var gD={name:`Message`,common:Y,self:hD},_D=gD,vD={closeMargin:`16px 12px`,closeSize:`20px`,closeIconSize:`16px`,width:`365px`,padding:`16px`,titleFontSize:`16px`,metaFontSize:`12px`,descriptionFontSize:`12px`};function yD(e){let{textColor2:t,successColor:n,infoColor:r,warningColor:i,errorColor:a,popoverColor:o,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeColorHover:u,closeColorPressed:d,textColor1:f,textColor3:p,borderRadius:m,fontWeightStrong:h,boxShadow2:g,lineHeight:_,fontSize:v}=e;return Object.assign(Object.assign({},vD),{borderRadius:m,lineHeight:_,fontSize:v,headerFontWeight:h,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:i,iconColorError:a,color:o,textColor:t,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeBorderRadius:m,closeColorHover:u,closeColorPressed:d,headerTextColor:f,descriptionTextColor:p,actionTextColor:t,boxShadow:g})}var bD=Fx({name:`Notification`,common:Z,peers:{Scrollbar:bS},self:yD}),xD={name:`Notification`,common:Y,peers:{Scrollbar:SS},self:yD},SD=xD;function CD(e){let{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}}var wD={name:`Divider`,common:Y,self:CD},TD=wD;function ED(e){let{modalColor:t,textColor1:n,textColor2:r,boxShadow3:i,lineHeight:a,fontWeightStrong:o,dividerColor:s,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:p,primaryColorHover:m}=e;return{bodyPadding:`16px 24px`,borderRadius:p,headerPadding:`16px 24px`,footerPadding:`16px 24px`,color:t,textColor:r,titleTextColor:n,titleFontSize:`18px`,titleFontWeight:o,boxShadow:i,lineHeight:a,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeSize:`22px`,closeIconSize:`18px`,closeColorHover:c,closeColorPressed:l,closeBorderRadius:p,resizableTriggerColorHover:m}}var DD=Fx({name:`Drawer`,common:Z,peers:{Scrollbar:bS},self:ED}),OD={name:`Drawer`,common:Y,peers:{Scrollbar:SS},self:ED},kD=OD,AD={actionMargin:`0 0 0 20px`,actionMarginRtl:`0 20px 0 0`},jD={name:`DynamicInput`,common:Y,peers:{Input:lw,Button:Qw},self(){return AD}},MD=jD,ND={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},PD={name:`Space`,self(){return ND}},FD=PD,ID={name:`DynamicTags`,common:Y,peers:{Input:lw,Button:Qw,Tag:PC,Space:FD},self(){return{inputWidth:`64px`}}},LD=ID,RD={name:`Element`,common:Y},zD=RD,BD={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},VD={name:`Flex`,self(){return BD}},HD=VD,UD={name:`ButtonGroup`,common:Y},WD=UD,GD={feedbackPadding:`4px 0 0 2px`,feedbackHeightSmall:`24px`,feedbackHeightMedium:`24px`,feedbackHeightLarge:`26px`,feedbackFontSizeSmall:`13px`,feedbackFontSizeMedium:`14px`,feedbackFontSizeLarge:`14px`,labelFontSizeLeftSmall:`14px`,labelFontSizeLeftMedium:`14px`,labelFontSizeLeftLarge:`15px`,labelFontSizeTopSmall:`13px`,labelFontSizeTopMedium:`14px`,labelFontSizeTopLarge:`14px`,labelHeightSmall:`24px`,labelHeightMedium:`26px`,labelHeightLarge:`28px`,labelPaddingVertical:`0 0 6px 2px`,labelPaddingHorizontal:`0 12px 0 0`,labelTextAlignVertical:`left`,labelTextAlignHorizontal:`right`,labelFontWeight:`400`};function KD(e){let{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:i,errorColor:a,warningColor:o,lineHeight:s,textColor3:c}=e;return Object.assign(Object.assign({},GD),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:s,labelTextColor:i,asteriskColor:a,feedbackTextColorError:a,feedbackTextColorWarning:o,feedbackTextColor:c})}var qD={name:`Form`,common:Y,self:KD},JD=qD,YD={name:`GradientText`,common:Y,self(e){let{primaryColor:t,successColor:n,warningColor:r,errorColor:i,infoColor:a,primaryColorSuppl:o,successColorSuppl:s,warningColorSuppl:c,errorColorSuppl:l,infoColorSuppl:u,fontWeightStrong:d}=e;return{fontWeight:d,rotate:`252deg`,colorStartPrimary:t,colorEndPrimary:o,colorStartInfo:a,colorEndInfo:u,colorStartWarning:r,colorEndWarning:c,colorStartError:i,colorEndError:l,colorStartSuccess:n,colorEndSuccess:s}}},XD=YD,ZD={name:`InputNumber`,common:Y,peers:{Button:Qw,Input:lw},self(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}},QD=ZD;function $D(){return{inputWidthSmall:`24px`,inputWidthMedium:`30px`,inputWidthLarge:`36px`,gapSmall:`8px`,gapMedium:`8px`,gapLarge:`8px`}}var eO=Fx({name:`InputOtp`,common:Z,peers:{Input:fw},self:$D}),tO={name:`InputOtp`,common:Y,peers:{Input:lw},self:$D},nO=tO,rO={name:`Layout`,common:Y,peers:{Scrollbar:SS},self(e){let{textColor2:t,bodyColor:n,popoverColor:r,cardColor:i,dividerColor:a,scrollbarColor:o,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,headerColor:i,headerColorInverted:i,footerColor:i,footerColorInverted:i,headerBorderColor:a,headerBorderColorInverted:a,footerBorderColor:a,footerBorderColorInverted:a,siderBorderColor:a,siderBorderColorInverted:a,siderColor:i,siderColorInverted:i,siderToggleButtonBorder:`1px solid transparent`,siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:G(n,o),siderToggleBarColorHover:G(n,s),__invertScrollbar:`false`}}},iO=rO,aO={name:`Row`,common:Y},oO=aO;function sO(e){let{textColor2:t,cardColor:n,modalColor:r,popoverColor:i,dividerColor:a,borderRadius:o,fontSize:s,hoverColor:c}=e;return{textColor:t,color:n,colorHover:c,colorModal:r,colorHoverModal:G(r,c),colorPopover:i,colorHoverPopover:G(i,c),borderColor:a,borderColorModal:G(r,a),borderColorPopover:G(i,a),borderRadius:o,fontSize:s}}var cO={name:`List`,common:Y,self:sO},lO=cO,uO={name:`Log`,common:Y,peers:{Scrollbar:SS,Code:IT},self(e){let{textColor2:t,inputColor:n,fontSize:r,primaryColor:i}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid #0000`,loadingColor:i}}},dO=uO,fO={name:`Mention`,common:Y,peers:{InternalSelectMenu:SC,Input:lw},self(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}},pO=fO;function mO(e,t,n,r){return{itemColorHoverInverted:`#0000`,itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}function hO(e){let{borderRadius:t,textColor3:n,primaryColor:r,textColor2:i,textColor1:a,fontSize:o,dividerColor:s,hoverColor:c,primaryColorHover:l}=e;return Object.assign({borderRadius:t,color:`#0000`,groupTextColor:n,itemColorHover:c,itemColorActive:K(r,{alpha:.1}),itemColorActiveHover:K(r,{alpha:.1}),itemColorActiveCollapsed:K(r,{alpha:.1}),itemTextColor:i,itemTextColorHover:i,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:i,itemTextColorHoverHorizontal:l,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:a,itemIconColorHover:a,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:a,itemIconColorHorizontal:a,itemIconColorHoverHorizontal:l,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:`42px`,arrowColor:i,arrowColorHover:i,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:`#0000`,borderColorHorizontal:`#0000`,fontSize:o,dividerColor:s},mO(`#BBB`,r,`#FFF`,`#AAA`))}var gO=Fx({name:`Menu`,common:Z,peers:{Tooltip:SE,Dropdown:mE},self:hO}),_O={name:`Menu`,common:Y,peers:{Tooltip:yE,Dropdown:gE},self(e){let{primaryColor:t,primaryColorSuppl:n}=e,r=hO(e);return r.itemColorActive=K(t,{alpha:.15}),r.itemColorActiveHover=K(t,{alpha:.15}),r.itemColorActiveCollapsed=K(t,{alpha:.15}),r.itemColorActiveInverted=n,r.itemColorActiveHoverInverted=n,r.itemColorActiveCollapsedInverted=n,r}},vO=_O,yO={titleFontSize:`18px`,backSize:`22px`};function bO(e){let{textColor1:t,textColor2:n,textColor3:r,fontSize:i,fontWeightStrong:a,primaryColorHover:o,primaryColorPressed:s}=e;return Object.assign(Object.assign({},yO),{titleFontWeight:a,fontSize:i,titleTextColor:t,backColor:n,backColorHover:o,backColorPressed:s,subtitleTextColor:r})}const xO=Fx({name:`PageHeader`,common:Z,self:bO}),SO={name:`PageHeader`,common:Y,self:bO};var CO={iconSize:`22px`};function wO(e){let{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},CO),{fontSize:t,iconColor:n})}var TO=Fx({name:`Popconfirm`,common:Z,peers:{Button:Xw,Popover:kC},self:wO}),EO={name:`Popconfirm`,common:Y,peers:{Button:Qw,Popover:jC},self:wO},DO=EO;function OO(e){let{infoColor:t,successColor:n,warningColor:r,errorColor:i,textColor2:a,progressRailColor:o,fontSize:s,fontWeight:c}=e;return{fontSize:s,fontSizeCircle:`28px`,fontWeightCircle:c,railColor:o,railHeight:`8px`,iconSizeCircle:`36px`,iconSizeLine:`18px`,iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:i,textColorCircle:a,textColorLineInner:`rgb(255, 255, 255)`,textColorLineOuter:a,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:i,lineBgProcessing:`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`}}var kO={name:`Progress`,common:Z,self:OO},AO=kO,jO={name:`Progress`,common:Y,self(e){let t=OO(e);return t.textColorLineInner=`rgb(0, 0, 0)`,t.lineBgProcessing=`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`,t}},MO=jO,NO={name:`Rate`,common:Y,self(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#CCAA33`,itemSize:`20px`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}},PO=NO,FO={titleFontSizeSmall:`26px`,titleFontSizeMedium:`32px`,titleFontSizeLarge:`40px`,titleFontSizeHuge:`48px`,fontSizeSmall:`14px`,fontSizeMedium:`14px`,fontSizeLarge:`15px`,fontSizeHuge:`16px`,iconSizeSmall:`64px`,iconSizeMedium:`80px`,iconSizeLarge:`100px`,iconSizeHuge:`125px`,iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function IO(e){let{textColor2:t,textColor1:n,errorColor:r,successColor:i,infoColor:a,warningColor:o,lineHeight:s,fontWeightStrong:c}=e;return Object.assign(Object.assign({},FO),{lineHeight:s,titleFontWeight:c,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:i,iconColorInfo:a,iconColorWarning:o})}var LO={name:`Result`,common:Y,self:IO},RO=LO,zO={railHeight:`4px`,railWidthVertical:`4px`,handleSize:`18px`,dotHeight:`8px`,dotWidth:`8px`,dotBorderRadius:`4px`},BO={name:`Slider`,common:Y,self(e){let{railColor:t,modalColor:n,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:o,borderRadius:s,fontSize:c,opacityDisabled:l}=e;return Object.assign(Object.assign({},zO),{fontSize:c,markFontSize:c,railColor:t,railColorHover:t,fillColor:r,fillColorHover:r,opacityDisabled:l,handleColor:`#FFF`,dotColor:o,dotColorModal:n,dotColorPopover:i,handleBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowHover:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowActive:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowFocus:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,indicatorColor:i,indicatorBoxShadow:`0 2px 8px 0 rgba(0, 0, 0, 0.12)`,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${t}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:``})}},VO=BO;function HO(e){let{railColor:t,primaryColor:n,baseColor:r,cardColor:i,modalColor:a,popoverColor:o,borderRadius:s,fontSize:c,opacityDisabled:l}=e;return Object.assign(Object.assign({},zO),{fontSize:c,markFontSize:c,railColor:t,railColorHover:t,fillColor:n,fillColorHover:n,opacityDisabled:l,handleColor:`#FFF`,dotColor:i,dotColorModal:a,dotColorPopover:o,handleBoxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,handleBoxShadowHover:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,handleBoxShadowActive:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,handleBoxShadowFocus:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,indicatorColor:`rgba(0, 0, 0, .85)`,indicatorBoxShadow:`0 2px 8px 0 rgba(0, 0, 0, 0.12)`,indicatorTextColor:r,indicatorBorderRadius:s,dotBorder:`2px solid ${t}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:``})}var UO={name:`Slider`,common:Z,self:HO},WO=UO;function GO(e){let{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:i,heightLarge:a,heightHuge:o,primaryColor:s,fontSize:c}=e;return{fontSize:c,textColor:s,sizeTiny:n,sizeSmall:r,sizeMedium:i,sizeLarge:a,sizeHuge:o,color:s,opacitySpinning:t}}var KO={name:`Spin`,common:Y,self:GO},qO=KO;function JO(e){let{textColor2:t,textColor3:n,fontSize:r,fontWeight:i}=e;return{labelFontSize:r,labelFontWeight:i,valueFontWeight:i,valueFontSize:`24px`,labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}var YO={name:`Statistic`,common:Y,self:JO},XO=YO,ZO={stepHeaderFontSizeSmall:`14px`,stepHeaderFontSizeMedium:`16px`,indicatorIndexFontSizeSmall:`14px`,indicatorIndexFontSizeMedium:`16px`,indicatorSizeSmall:`22px`,indicatorSizeMedium:`28px`,indicatorIconSizeSmall:`14px`,indicatorIconSizeMedium:`18px`};function QO(e){let{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:i,errorColor:a,textColor1:o,textColor2:s}=e;return Object.assign(Object.assign({},ZO),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:i,indicatorTextColorError:a,indicatorBorderColorProcess:i,indicatorBorderColorWait:r,indicatorBorderColorFinish:i,indicatorBorderColorError:a,indicatorColorProcess:i,indicatorColorWait:`#0000`,indicatorColorFinish:`#0000`,indicatorColorError:`#0000`,splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:i,splitorColorError:r,headerTextColorProcess:o,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:a,descriptionTextColorProcess:s,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:a})}var $O={name:`Steps`,common:Y,self:QO},ek=$O,tk={buttonHeightSmall:`14px`,buttonHeightMedium:`18px`,buttonHeightLarge:`22px`,buttonWidthSmall:`14px`,buttonWidthMedium:`18px`,buttonWidthLarge:`22px`,buttonWidthPressedSmall:`20px`,buttonWidthPressedMedium:`24px`,buttonWidthPressedLarge:`28px`,railHeightSmall:`18px`,railHeightMedium:`22px`,railHeightLarge:`26px`,railWidthSmall:`32px`,railWidthMedium:`40px`,railWidthLarge:`48px`},nk={name:`Switch`,common:Y,self(e){let{primaryColorSuppl:t,opacityDisabled:n,borderRadius:r,primaryColor:i,textColor2:a,baseColor:o}=e;return Object.assign(Object.assign({},tk),{iconColor:o,textColor:a,loadingColor:t,opacityDisabled:n,railColor:`rgba(255, 255, 255, .20)`,railColorActive:t,buttonBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${K(i,{alpha:.3})}`})}},rk=nk,ik={thPaddingSmall:`6px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`6px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`};function ak(e){let{dividerColor:t,cardColor:n,modalColor:r,popoverColor:i,tableHeaderColor:a,tableColorStriped:o,textColor1:s,textColor2:c,borderRadius:l,fontWeightStrong:u,lineHeight:d,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m}=e;return Object.assign(Object.assign({},ik),{fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m,lineHeight:d,borderRadius:l,borderColor:G(n,t),borderColorModal:G(r,t),borderColorPopover:G(i,t),tdColor:n,tdColorModal:r,tdColorPopover:i,tdColorStriped:G(n,o),tdColorStripedModal:G(r,o),tdColorStripedPopover:G(i,o),thColor:G(n,a),thColorModal:G(r,a),thColorPopover:G(i,a),thTextColor:s,tdTextColor:c,thFontWeight:u})}var ok={name:`Table`,common:Y,self:ak},sk=ok,ck={tabFontSizeSmall:`14px`,tabFontSizeMedium:`14px`,tabFontSizeLarge:`16px`,tabGapSmallLine:`36px`,tabGapMediumLine:`36px`,tabGapLargeLine:`36px`,tabGapSmallLineVertical:`8px`,tabGapMediumLineVertical:`8px`,tabGapLargeLineVertical:`8px`,tabPaddingSmallLine:`6px 0`,tabPaddingMediumLine:`10px 0`,tabPaddingLargeLine:`14px 0`,tabPaddingVerticalSmallLine:`6px 12px`,tabPaddingVerticalMediumLine:`8px 16px`,tabPaddingVerticalLargeLine:`10px 20px`,tabGapSmallBar:`36px`,tabGapMediumBar:`36px`,tabGapLargeBar:`36px`,tabGapSmallBarVertical:`8px`,tabGapMediumBarVertical:`8px`,tabGapLargeBarVertical:`8px`,tabPaddingSmallBar:`4px 0`,tabPaddingMediumBar:`6px 0`,tabPaddingLargeBar:`10px 0`,tabPaddingVerticalSmallBar:`6px 12px`,tabPaddingVerticalMediumBar:`8px 16px`,tabPaddingVerticalLargeBar:`10px 20px`,tabGapSmallCard:`4px`,tabGapMediumCard:`4px`,tabGapLargeCard:`4px`,tabGapSmallCardVertical:`4px`,tabGapMediumCardVertical:`4px`,tabGapLargeCardVertical:`4px`,tabPaddingSmallCard:`8px 16px`,tabPaddingMediumCard:`10px 20px`,tabPaddingLargeCard:`12px 24px`,tabPaddingSmallSegment:`4px 0`,tabPaddingMediumSegment:`6px 0`,tabPaddingLargeSegment:`8px 0`,tabPaddingVerticalLargeSegment:`0 8px`,tabPaddingVerticalSmallCard:`8px 12px`,tabPaddingVerticalMediumCard:`10px 16px`,tabPaddingVerticalLargeCard:`12px 20px`,tabPaddingVerticalSmallSegment:`0 4px`,tabPaddingVerticalMediumSegment:`0 6px`,tabGapSmallSegment:`0`,tabGapMediumSegment:`0`,tabGapLargeSegment:`0`,tabGapSmallSegmentVertical:`0`,tabGapMediumSegmentVertical:`0`,tabGapLargeSegmentVertical:`0`,panePaddingSmall:`8px 0 0 0`,panePaddingMedium:`12px 0 0 0`,panePaddingLarge:`16px 0 0 0`,closeSize:`18px`,closeIconSize:`14px`};function lk(e){let{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,tabColor:l,baseColor:u,dividerColor:d,fontWeight:f,textColor1:p,borderRadius:m,fontSize:h,fontWeightStrong:g}=e;return Object.assign(Object.assign({},ck),{colorSegment:l,tabFontSizeCard:h,tabTextColorLine:p,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,closeBorderRadius:m,tabColor:l,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:m,paneTextColor:t,fontWeightStrong:g})}var uk={name:`Tabs`,common:Y,self(e){let t=lk(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}},dk=uk;function fk(e){let{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:i}=e;return{fontSize:i,titleTextColor:t,textColor:n,titleFontWeight:r}}var pk={name:`Thing`,common:Y,self:fk},mk=pk,hk={titleMarginMedium:`0 0 6px 0`,titleMarginLarge:`-2px 0 6px 0`,titleFontSizeMedium:`14px`,titleFontSizeLarge:`16px`,iconSizeMedium:`14px`,iconSizeLarge:`14px`},gk={name:`Timeline`,common:Y,self(e){let{textColor3:t,infoColorSuppl:n,errorColorSuppl:r,successColorSuppl:i,warningColorSuppl:a,textColor1:o,textColor2:s,railColor:c,fontWeightStrong:l,fontSize:u}=e;return Object.assign(Object.assign({},hk),{contentFontSize:u,titleFontWeight:l,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${i}`,circleBorderWarning:`2px solid ${a}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:i,iconColorWarning:a,titleTextColor:o,contentTextColor:s,metaTextColor:t,lineColor:c})}},_k=gk,vk={extraFontSizeSmall:`12px`,extraFontSizeMedium:`12px`,extraFontSizeLarge:`14px`,titleFontSizeSmall:`14px`,titleFontSizeMedium:`16px`,titleFontSizeLarge:`16px`,closeSize:`20px`,closeIconSize:`16px`,headerHeightSmall:`44px`,headerHeightMedium:`44px`,headerHeightLarge:`50px`},yk={name:`Transfer`,common:Y,peers:{Checkbox:ST,Scrollbar:SS,Input:lw,Empty:pC,Button:Qw},self(e){let{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:i,heightLarge:a,heightMedium:o,borderRadius:s,inputColor:c,tableHeaderColor:l,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:p,hoverColor:m,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y,dividerColor:b}=e;return Object.assign(Object.assign({},vk),{itemHeightSmall:o,itemHeightMedium:o,itemHeightLarge:a,fontSizeSmall:i,fontSizeMedium:r,fontSizeLarge:n,borderRadius:s,dividerColor:b,borderColor:`#0000`,listColor:c,headerColor:l,titleTextColor:u,titleTextColorDisabled:d,extraTextColor:p,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:m,titleFontWeight:t,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y})}},bk=yk;function xk(e){let{borderRadiusSmall:t,dividerColor:n,hoverColor:r,pressedColor:i,primaryColor:a,textColor3:o,textColor2:s,textColorDisabled:c,fontSize:l}=e;return{fontSize:l,lineHeight:`1.5`,nodeHeight:`30px`,nodeWrapperPadding:`3px 0`,nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:i,nodeColorActive:K(a,{alpha:.1}),arrowColor:o,nodeTextColor:s,nodeTextColorDisabled:c,loadingColor:a,dropMarkColor:a,lineColor:n}}var Sk=Fx({name:`Tree`,common:Z,peers:{Checkbox:bT,Scrollbar:bS,Empty:dC},self:xk}),Ck=Sk,wk={name:`Tree`,common:Y,peers:{Checkbox:ST,Scrollbar:SS,Empty:pC},self(e){let{primaryColor:t}=e,n=xk(e);return n.nodeColorActive=K(t,{alpha:.15}),n}},Tk=wk,Ek={name:`TreeSelect`,common:Y,peers:{Tree:Tk,Empty:pC,InternalSelection:RC}},Dk=Ek,Ok={headerFontSize1:`30px`,headerFontSize2:`22px`,headerFontSize3:`18px`,headerFontSize4:`16px`,headerFontSize5:`16px`,headerFontSize6:`16px`,headerMargin1:`28px 0 20px 0`,headerMargin2:`28px 0 20px 0`,headerMargin3:`28px 0 20px 0`,headerMargin4:`28px 0 18px 0`,headerMargin5:`28px 0 18px 0`,headerMargin6:`28px 0 18px 0`,headerPrefixWidth1:`16px`,headerPrefixWidth2:`16px`,headerPrefixWidth3:`12px`,headerPrefixWidth4:`12px`,headerPrefixWidth5:`12px`,headerPrefixWidth6:`12px`,headerBarWidth1:`4px`,headerBarWidth2:`4px`,headerBarWidth3:`3px`,headerBarWidth4:`3px`,headerBarWidth5:`3px`,headerBarWidth6:`3px`,pMargin:`16px 0 16px 0`,liMargin:`.25em 0 0 0`,olPadding:`0 0 0 2em`,ulPadding:`0 0 0 2em`};function kk(e){let{primaryColor:t,textColor2:n,borderColor:r,lineHeight:i,fontSize:a,borderRadiusSmall:o,dividerColor:s,fontWeightStrong:c,textColor1:l,textColor3:u,infoColor:d,warningColor:f,errorColor:p,successColor:m,codeColor:h}=e;return Object.assign(Object.assign({},Ok),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:i,blockquoteFontSize:a,codeBorderRadius:o,liTextColor:n,liLineHeight:i,liFontSize:a,hrColor:s,headerFontWeight:c,headerTextColor:l,pTextColor:n,pTextColor1Depth:l,pTextColor2Depth:n,pTextColor3Depth:u,pLineHeight:i,pFontSize:a,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:p,headerBarColorWarning:f,headerBarColorSuccess:m,textColor:n,textColor1Depth:l,textColor2Depth:n,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:m,textColorWarning:f,textColorError:p,codeTextColor:n,codeColor:h,codeBorder:`1px solid #0000`})}var Ak={name:`Typography`,common:Y,self:kk},jk=Ak;function Mk(e){let{iconColor:t,primaryColor:n,errorColor:r,textColor2:i,successColor:a,opacityDisabled:o,actionColor:s,borderColor:c,hoverColor:l,lineHeight:u,borderRadius:d,fontSize:f}=e;return{fontSize:f,lineHeight:u,borderRadius:d,draggerColor:s,draggerBorder:`1px dashed ${c}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:l,itemColorHoverError:K(r,{alpha:.06}),itemTextColor:i,itemTextColorError:r,itemTextColorSuccess:a,itemIconColor:t,itemDisabledOpacity:o,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${c}`}}var Nk=Fx({name:`Upload`,common:Z,peers:{Button:Xw,Progress:AO},self:Mk}),Pk={name:`Upload`,common:Y,peers:{Button:Qw,Progress:MO},self(e){let{errorColor:t}=e,n=Mk(e);return n.itemColorHoverError=K(t,{alpha:.09}),n}},Fk=Pk,Ik={name:`Watermark`,common:Y,self(e){let{fontFamily:t}=e;return{fontFamily:t}}},Lk=Ik,Rk={name:`FloatButton`,common:Y,self(e){let{popoverColor:t,textColor2:n,buttonColor2Hover:r,buttonColor2Pressed:i,primaryColor:a,primaryColorHover:o,primaryColorPressed:s,baseColor:c,borderRadius:l}=e;return{color:t,textColor:n,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`,colorHover:r,colorPressed:i,colorPrimary:a,colorPrimaryHover:o,colorPrimaryPressed:s,textColorPrimary:c,borderRadiusSquare:l}}},zk=Rk;function Bk(e){let{borderRadius:t,fontSizeMini:n,fontSizeTiny:r,fontSizeSmall:i,fontWeight:a,textColor2:o,cardColor:s,buttonColor2Hover:c}=e;return{activeColors:[`#9be9a8`,`#40c463`,`#30a14e`,`#216e39`],borderRadius:t,borderColor:s,textColor:o,mininumColor:c,fontWeight:a,loadingColorStart:`rgba(0, 0, 0, 0.06)`,loadingColorEnd:`rgba(0, 0, 0, 0.12)`,rectSizeSmall:`10px`,rectSizeMedium:`11px`,rectSizeLarge:`12px`,borderRadiusSmall:`2px`,borderRadiusMedium:`2px`,borderRadiusLarge:`2px`,xGapSmall:`2px`,xGapMedium:`3px`,xGapLarge:`3px`,yGapSmall:`2px`,yGapMedium:`3px`,yGapLarge:`3px`,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:i}}var Vk=Fx({name:`Heatmap`,common:Z,self:Bk}),Hk={name:`Heatmap`,common:Y,self(e){let t=Bk(e);return Object.assign(Object.assign({},t),{activeColors:[`#0d4429`,`#006d32`,`#26a641`,`#39d353`],mininumColor:`rgba(255, 255, 255, 0.1)`,loadingColorStart:`rgba(255, 255, 255, 0.12)`,loadingColorEnd:`rgba(255, 255, 255, 0.18)`})}},Uk=Hk;function Wk(e){let{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}}var Gk={name:`IconWrapper`,common:Y,self:Wk},Kk=Gk;const qk={name:`Image`,common:Y,peers:{Tooltip:yE},self:e=>{let{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}};var Jk={extraFontSize:`12px`,width:`440px`},Yk={name:`Transfer`,common:Y,peers:{Checkbox:ST,Scrollbar:SS,Input:lw,Empty:pC,Button:Qw},self(e){let{iconColorDisabled:t,iconColor:n,fontWeight:r,fontSizeLarge:i,fontSizeMedium:a,fontSizeSmall:o,heightLarge:s,heightMedium:c,heightSmall:l,borderRadius:u,inputColor:d,tableHeaderColor:f,textColor1:p,textColorDisabled:m,textColor2:h,hoverColor:g}=e;return Object.assign(Object.assign({},Jk),{itemHeightSmall:l,itemHeightMedium:c,itemHeightLarge:s,fontSizeSmall:o,fontSizeMedium:a,fontSizeLarge:i,borderRadius:u,borderColor:`#0000`,listColor:d,headerColor:f,titleTextColor:p,titleTextColorDisabled:m,extraTextColor:h,filterDividerColor:`#0000`,itemTextColor:h,itemTextColorDisabled:m,itemColorPending:g,titleFontWeight:r,iconColor:n,iconColorDisabled:t})}},Xk=Yk;function Zk(){return{}}var Qk={name:`Marquee`,common:Y,self:Zk},$k=Qk,eA={name:`QrCode`,common:Y,self:e=>({borderRadius:e.borderRadius})},tA=eA;const nA={name:`Skeleton`,common:Y,self(e){let{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:i}=e;return{color:`rgba(255, 255, 255, 0.12)`,colorEnd:`rgba(255, 255, 255, 0.18)`,borderRadius:i,heightSmall:t,heightMedium:n,heightLarge:r}}};var rA=B([V(`slider`,`
display: block;
padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0;
position: relative;
z-index: 0;
width: 100%;
cursor: pointer;
user-select: none;
-webkit-user-select: none;
`,[U(`reverse`,[V(`slider-handles`,[V(`slider-handle-wrapper`,`
transform: translate(50%, -50%);
`)]),V(`slider-dots`,[V(`slider-dot`,`
transform: translateX(50%, -50%);
`)]),U(`vertical`,[V(`slider-handles`,[V(`slider-handle-wrapper`,`
transform: translate(-50%, -50%);
`)]),V(`slider-marks`,[V(`slider-mark`,`
transform: translateY(calc(-50% + var(--n-dot-height) / 2));
`)]),V(`slider-dots`,[V(`slider-dot`,`
transform: translateX(-50%) translateY(0);
`)])])]),U(`vertical`,`
box-sizing: content-box;
padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2);
width: var(--n-rail-width-vertical);
height: 100%;
`,[V(`slider-handles`,`
top: calc(var(--n-handle-size) / 2);
right: 0;
bottom: calc(var(--n-handle-size) / 2);
left: 0;
`,[V(`slider-handle-wrapper`,`
top: unset;
left: 50%;
transform: translate(-50%, 50%);
`)]),V(`slider-rail`,`
height: 100%;
`,[H(`fill`,`
top: unset;
right: 0;
bottom: unset;
left: 0;
`)]),U(`with-mark`,`
width: var(--n-rail-width-vertical);
margin: 0 32px 0 8px;
`),V(`slider-marks`,`
top: calc(var(--n-handle-size) / 2);
right: unset;
bottom: calc(var(--n-handle-size) / 2);
left: 22px;
font-size: var(--n-mark-font-size);
`,[V(`slider-mark`,`
transform: translateY(50%);
white-space: nowrap;
`)]),V(`slider-dots`,`
top: calc(var(--n-handle-size) / 2);
right: unset;
bottom: calc(var(--n-handle-size) / 2);
left: 50%;
`,[V(`slider-dot`,`
transform: translateX(-50%) translateY(50%);
`)])]),U(`disabled`,`
cursor: not-allowed;
opacity: var(--n-opacity-disabled);
`,[V(`slider-handle`,`
cursor: not-allowed;
`)]),U(`with-mark`,`
width: 100%;
margin: 8px 0 32px 0;
`),B(`&:hover`,[V(`slider-rail`,{backgroundColor:`var(--n-rail-color-hover)`},[H(`fill`,{backgroundColor:`var(--n-fill-color-hover)`})]),V(`slider-handle`,{boxShadow:`var(--n-handle-box-shadow-hover)`})]),U(`active`,[V(`slider-rail`,{backgroundColor:`var(--n-rail-color-hover)`},[H(`fill`,{backgroundColor:`var(--n-fill-color-hover)`})]),V(`slider-handle`,{boxShadow:`var(--n-handle-box-shadow-hover)`})]),V(`slider-marks`,`
position: absolute;
top: 18px;
left: calc(var(--n-handle-size) / 2);
right: calc(var(--n-handle-size) / 2);
`,[V(`slider-mark`,`
position: absolute;
transform: translateX(-50%);
white-space: nowrap;
`)]),V(`slider-rail`,`
width: 100%;
position: relative;
height: var(--n-rail-height);
background-color: var(--n-rail-color);
transition: background-color .3s var(--n-bezier);
border-radius: calc(var(--n-rail-height) / 2);
`,[H(`fill`,`
position: absolute;
top: 0;
bottom: 0;
border-radius: calc(var(--n-rail-height) / 2);
transition: background-color .3s var(--n-bezier);
background-color: var(--n-fill-color);
`)]),V(`slider-handles`,`
position: absolute;
top: 0;
right: calc(var(--n-handle-size) / 2);
bottom: 0;
left: calc(var(--n-handle-size) / 2);
`,[V(`slider-handle-wrapper`,`
outline: none;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
cursor: pointer;
display: flex;
`,[V(`slider-handle`,`
height: var(--n-handle-size);
width: var(--n-handle-size);
border-radius: 50%;
overflow: hidden;
transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier);
background-color: var(--n-handle-color);
box-shadow: var(--n-handle-box-shadow);
`,[B(`&:hover`,`
box-shadow: var(--n-handle-box-shadow-hover);
`)]),B(`&:focus`,[V(`slider-handle`,`
box-shadow: var(--n-handle-box-shadow-focus);
`,[B(`&:hover`,`
box-shadow: var(--n-handle-box-shadow-active);
`)])])])]),V(`slider-dots`,`
position: absolute;
top: 50%;
left: calc(var(--n-handle-size) / 2);
right: calc(var(--n-handle-size) / 2);
`,[U(`transition-disabled`,[V(`slider-dot`,`transition: none;`)]),V(`slider-dot`,`
transition:
border-color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier),
background-color .3s var(--n-bezier);
position: absolute;
transform: translate(-50%, -50%);
height: var(--n-dot-height);
width: var(--n-dot-width);
border-radius: var(--n-dot-border-radius);
overflow: hidden;
box-sizing: border-box;
border: var(--n-dot-border);
background-color: var(--n-dot-color);
`,[U(`active`,`border: var(--n-dot-border-active);`)])])]),V(`slider-handle-indicator`,`
font-size: var(--n-font-size);
padding: 6px 10px;
border-radius: var(--n-indicator-border-radius);
color: var(--n-indicator-text-color);
background-color: var(--n-indicator-color);
box-shadow: var(--n-indicator-box-shadow);
`,[TC()]),V(`slider-handle-indicator`,`
font-size: var(--n-font-size);
padding: 6px 10px;
border-radius: var(--n-indicator-border-radius);
color: var(--n-indicator-text-color);
background-color: var(--n-indicator-color);
box-shadow: var(--n-indicator-box-shadow);
`,[U(`top`,`
margin-bottom: 12px;
`),U(`right`,`
margin-left: 12px;
`),U(`bottom`,`
margin-top: 12px;
`),U(`left`,`
margin-right: 12px;
`),TC()]),Ou(V(`slider`,[V(`slider-dot`,`background-color: var(--n-dot-color-modal);`)])),ku(V(`slider`,[V(`slider-dot`,`background-color: var(--n-dot-color-popover);`)]))]);function iA(e){return window.TouchEvent&&e instanceof window.TouchEvent}function aA(){let e=new Map;return Xr(()=>{e.clear()}),[e,t=>n=>{e.set(t,n)}]}var oA=0;const sA=Object.assign(Object.assign({},Lx.props),{to:Xd.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onDragstart:[Function],onDragend:[Function]});var cA=F({name:`Slider`,props:sA,slots:Object,setup(e){let{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=Im(e),i=Lx(`Slider`,`-slider`,rA,WO,e,t),a=M(null),[o,s]=aA(),[c,l]=aA(),u=M(new Set),d=zm(e),{mergedDisabledRef:f}=d,p=I(()=>{let{step:t}=e;if(Number(t)<=0||t===`mark`)return 0;let n=t.toString(),r=0;return n.includes(`.`)&&(r=n.length-n.indexOf(`.`)-1),r}),m=M(e.defaultValue),h=Id(P(e,`value`),m),g=I(()=>{let{value:t}=h;return(e.range?t:[t]).map(oe)}),_=I(()=>g.value.length>2),v=I(()=>e.placement===void 0?e.vertical?`right`:`top`:e.placement),y=I(()=>{let{marks:t}=e;return t?Object.keys(t).map(Number.parseFloat):null}),b=M(-1),x=M(-1),S=M(-1),C=M(!1),w=M(!1),T=I(()=>{let{vertical:t,reverse:n}=e;return t?n?`top`:`bottom`:n?`right`:`left`}),E=I(()=>{if(_.value)return;let t=g.value,n=se(e.range?Math.min(...t):e.min),r=se(e.range?Math.max(...t):t[0]),{value:i}=T;return e.vertical?{[i]:`${n}%`,height:`${r-n}%`}:{[i]:`${n}%`,width:`${r-n}%`}}),D=I(()=>{let t=[],{marks:n}=e;if(n){let r=g.value.slice();r.sort((e,t)=>e-t);let{value:i}=T,{value:a}=_,{range:o}=e,s=a?()=>!1:e=>o?e>=r[0]&&e<=r[r.length-1]:e<=r[0];for(let e of Object.keys(n)){let r=Number(e);t.push({active:s(r),key:r,label:n[e],style:{[i]:`${se(r)}%`}})}}return t});function O(e,t){let n=se(e),{value:r}=T;return{[r]:`${n}%`,zIndex:t===b.value?1:0}}function k(t){return e.showTooltip||S.value===t||b.value===t&&C.value}function A(e){return C.value?!(b.value===e&&x.value===e):!0}function ee(e){var t;~e&&(b.value=e,(t=o.get(e))==null||t.focus())}function te(){c.forEach((e,t)=>{k(t)&&e.syncPosition()})}function ne(t){let{"onUpdate:value":n,onUpdateValue:r}=e,{nTriggerFormInput:i,nTriggerFormChange:a}=d;r&&q(r,t),n&&q(n,t),m.value=t,i(),a()}function re(t){let{range:n}=e;if(n){if(Array.isArray(t)){let{value:e}=g;t.join()!==e.join()&&ne(t)}}else Array.isArray(t)||g.value[0]!==t&&ne(t)}function ie(t,n){if(e.range){let e=g.value.slice();e.splice(n,1,t),re(e)}else re(t)}function ae(t,n,r){let i=r!==void 0;r||=t-n>0?1:-1;let a=y.value||[],{step:o}=e;if(o===`mark`){let e=ue(t,a.concat(n),i?r:void 0);return e?e.value:n}if(o<=0)return n;let{value:s}=p,c;if(i){let e=Number((n/o).toFixed(s)),t=Math.floor(e),i=e>t?t:t-1,l=e<t?t:t+1;c=ue(n,[Number((i*o).toFixed(s)),Number((l*o).toFixed(s)),...a],r)}else{let e=le(t);c=ue(t,[...a,e])}return c?oe(c.value):n}function oe(t){return Math.min(e.max,Math.max(e.min,t))}function se(t){let{max:n,min:r}=e;return(t-r)/(n-r)*100}function ce(t){let{max:n,min:r}=e;return r+(n-r)*t}function le(t){let{step:n,min:r}=e;if(Number(n)<=0||n===`mark`)return t;let i=Math.round((t-r)/n)*n+r;return Number(i.toFixed(p.value))}function ue(e,t=y.value,n){if(!t?.length)return null;let r=null,i=-1;for(;++i<t.length;){let a=t[i]-e,o=Math.abs(a);(n===void 0||a*n>0)&&(r===null||o<r.distance)&&(r={index:i,distance:o,value:t[i]})}return r}function de(t){let n=a.value;if(!n)return;let r=iA(t)?t.touches[0]:t,i=n.getBoundingClientRect(),o;return o=e.vertical?(i.bottom-r.clientY)/i.height:(r.clientX-i.left)/i.width,e.reverse&&(o=1-o),ce(o)}function fe(t){if(f.value||!e.keyboard)return;let{vertical:n,reverse:r}=e;switch(t.key){case`ArrowUp`:t.preventDefault(),pe(n&&r?-1:1);break;case`ArrowRight`:t.preventDefault(),pe(!n&&r?-1:1);break;case`ArrowDown`:t.preventDefault(),pe(n&&r?1:-1);break;case`ArrowLeft`:t.preventDefault(),pe(!n&&r?1:-1);break}}function pe(t){let n=b.value;if(n===-1)return;let{step:r}=e,i=g.value[n];ie(ae(Number(r)<=0||r===`mark`?i:i+r*t,i,t>0?1:-1),n)}function me(t){if(f.value||!iA(t)&&t.button!==oA)return;let n=de(t);if(n===void 0)return;let r=g.value.slice(),i=e.range?ue(n,r)?.index??-1:0;i!==-1&&(t.preventDefault(),ee(i),he(),ie(ae(n,g.value[i]),i))}function he(){C.value||(C.value=!0,e.onDragstart&&q(e.onDragstart),Ed(`touchend`,document,ve),Ed(`mouseup`,document,ve),Ed(`touchmove`,document,_e),Ed(`mousemove`,document,_e))}function ge(){C.value&&(C.value=!1,e.onDragend&&q(e.onDragend),Dd(`touchend`,document,ve),Dd(`mouseup`,document,ve),Dd(`touchmove`,document,_e),Dd(`mousemove`,document,_e))}function _e(e){let{value:t}=b;if(!C.value||t===-1){ge();return}let n=de(e);n!==void 0&&ie(ae(n,g.value[t]),t)}function ve(){ge()}function ye(e){b.value=e,f.value||(S.value=e)}function be(e){b.value===e&&(b.value=-1,ge()),S.value===e&&(S.value=-1)}function xe(e){S.value=e}function Se(e){S.value===e&&(S.value=-1)}nr(b,(e,t)=>void In(()=>x.value=t)),nr(h,()=>{if(e.marks){if(w.value)return;w.value=!0,In(()=>{w.value=!1})}In(te)}),Qr(()=>{ge()});let Ce=I(()=>{let{self:{markFontSize:e,railColor:t,railColorHover:n,fillColor:r,fillColorHover:a,handleColor:o,opacityDisabled:s,dotColor:c,dotColorModal:l,handleBoxShadow:u,handleBoxShadowHover:d,handleBoxShadowActive:f,handleBoxShadowFocus:p,dotBorder:m,dotBoxShadow:h,railHeight:g,railWidthVertical:_,handleSize:v,dotHeight:y,dotWidth:b,dotBorderRadius:x,fontSize:S,dotBorderActive:C,dotColorPopover:w},common:{cubicBezierEaseInOut:T}}=i.value;return{"--n-bezier":T,"--n-dot-border":m,"--n-dot-border-active":C,"--n-dot-border-radius":x,"--n-dot-box-shadow":h,"--n-dot-color":c,"--n-dot-color-modal":l,"--n-dot-color-popover":w,"--n-dot-height":y,"--n-dot-width":b,"--n-fill-color":r,"--n-fill-color-hover":a,"--n-font-size":S,"--n-handle-box-shadow":u,"--n-handle-box-shadow-active":f,"--n-handle-box-shadow-focus":p,"--n-handle-box-shadow-hover":d,"--n-handle-color":o,"--n-handle-size":v,"--n-opacity-disabled":s,"--n-rail-color":t,"--n-rail-color-hover":n,"--n-rail-height":g,"--n-rail-width-vertical":_,"--n-mark-font-size":e}}),we=r?Lm(`slider`,void 0,Ce,e):void 0,Te=I(()=>{let{self:{fontSize:e,indicatorColor:t,indicatorBoxShadow:n,indicatorTextColor:r,indicatorBorderRadius:a}}=i.value;return{"--n-font-size":e,"--n-indicator-border-radius":a,"--n-indicator-box-shadow":n,"--n-indicator-color":t,"--n-indicator-text-color":r}}),Ee=r?Lm(`slider-indicator`,void 0,Te,e):void 0;return{mergedClsPrefix:t,namespace:n,uncontrolledValue:m,mergedValue:h,mergedDisabled:f,mergedPlacement:v,isMounted:Ld(),adjustedTo:Xd(e),dotTransitionDisabled:w,markInfos:D,isShowTooltip:k,shouldKeepTooltipTransition:A,handleRailRef:a,setHandleRefs:s,setFollowerRefs:l,fillStyle:E,getHandleStyle:O,activeIndex:b,arrifiedValues:g,followerEnabledIndexSet:u,handleRailMouseDown:me,handleHandleFocus:ye,handleHandleBlur:be,handleHandleMouseEnter:xe,handleHandleMouseLeave:Se,handleRailKeyDown:fe,indicatorCssVars:r?void 0:Te,indicatorThemeClass:Ee?.themeClass,indicatorOnRender:Ee?.onRender,cssVars:r?void 0:Ce,themeClass:we?.themeClass,onRender:we?.onRender}},render(){var e;let{mergedClsPrefix:t,themeClass:n,formatTooltip:r}=this;return(e=this.onRender)==null||e.call(this),L(`div`,{class:[`${t}-slider`,n,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},L(`div`,{class:`${t}-slider-rail`},L(`div`,{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?L(`div`,{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(e=>L(`div`,{key:e.key,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:e.active}],style:e.style}))):null,L(`div`,{ref:`handleRailRef`,class:`${t}-slider-handles`},this.arrifiedValues.map((e,n)=>{let i=this.isShowTooltip(n);return L(uf,null,{default:()=>[L(df,null,{default:()=>L(`div`,{ref:this.setHandleRefs(n),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,role:`slider`,"aria-valuenow":e,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-orientation":this.vertical?`vertical`:`horizontal`,"aria-disabled":this.disabled,style:this.getHandleStyle(e,n),onFocus:()=>{this.handleHandleFocus(n)},onBlur:()=>{this.handleHandleBlur(n)},onMouseenter:()=>{this.handleHandleMouseEnter(n)},onMouseleave:()=>{this.handleHandleMouseLeave(n)}},km(this.$slots.thumb,()=>[L(`div`,{class:`${t}-slider-handle`})]))}),this.tooltip&&L(mp,{ref:this.setFollowerRefs(n),show:i,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(n),teleportDisabled:this.adjustedTo===Xd.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>L(Mo,{name:`fade-in-scale-up-transition`,appear:this.isMounted,css:this.shouldKeepTooltipTransition(n),onEnter:()=>{this.followerEnabledIndexSet.add(n)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(n)}},{default:()=>{var n;return i?((n=this.indicatorOnRender)==null||n.call(this),L(`div`,{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof r==`function`?r(e):e)):null}})})]})})),this.marks?L(`div`,{class:`${t}-slider-marks`},this.markInfos.map(e=>L(`div`,{key:e.key,class:`${t}-slider-mark`,style:e.style},typeof e.label==`function`?e.label():e.label))):null))}}),lA={name:`Split`,common:Y},uA=lA;const dA=Bd(`n-tree-select`);function fA({position:e,offsetLevel:t,indent:n,el:r}){let i={position:`absolute`,boxSizing:`border-box`,right:0};if(e===`inside`)i.left=0,i.top=0,i.bottom=0,i.borderRadius=`inherit`,i.boxShadow=`inset 0 0 0 2px var(--n-drop-mark-color)`;else{let a=e===`before`?`top`:`bottom`;i[a]=0,i.left=`${r.offsetLeft+6-t*n}px`,i.height=`2px`,i.backgroundColor=`var(--n-drop-mark-color)`,i.transformOrigin=a,i.borderRadius=`1px`,i.transform=e===`before`?`translateY(-4px)`:`translateY(4px)`}return L(`div`,{style:i})}function pA({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!==`inside`}const mA=Bd(`n-tree`);function hA({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,mergedCheckedKeysRef:i,handleCheck:a,handleSelect:o,handleSwitcherClick:s}){let{value:c}=r,l=Qn(dA,null),u=l?l.pendingNodeKeyRef:M(c.length?c[c.length-1]:null);function d(r){if(!e.keyboard)return{enterBehavior:null};let{value:c}=u,l=null;if(c===null){if((r.key===`ArrowDown`||r.key===`ArrowUp`)&&r.preventDefault(),[`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`].includes(r.key)&&c===null){let{value:e}=t,n=0;for(;n<e.length;){if(!e[n].disabled){u.value=e[n].key;break}n+=1}}}else{let{value:d}=t,f=d.findIndex(e=>e.key===c);if(!~f)return{enterBehavior:null};if(r.key===`Enter`){let t=d[f];switch(l=e.overrideDefaultNodeClickBehavior?.call(e,{option:t.rawNode})||null,l){case`toggleCheck`:a(t,!i.value.includes(t.key));break;case`toggleSelect`:o(t);break;case`toggleExpand`:s(t);break;case`none`:break;case`default`:default:l=`default`,o(t)}}else if(r.key===`ArrowDown`)for(r.preventDefault(),f+=1;f<d.length;){if(!d[f].disabled){u.value=d[f].key;break}f+=1}else if(r.key===`ArrowUp`)for(r.preventDefault(),--f;f>=0;){if(!d[f].disabled){u.value=d[f].key;break}--f}else if(r.key===`ArrowLeft`){let e=d[f];if(e.isLeaf||!n.value.includes(c)){let t=e.getParent();t&&(u.value=t.key)}else s(e)}else if(r.key===`ArrowRight`){let e=d[f];if(e.isLeaf)return{enterBehavior:null};if(!n.value.includes(c))s(e);else for(f+=1;f<d.length;){if(!d[f].disabled){u.value=d[f].key;break}f+=1}}}return{enterBehavior:l}}return{pendingNodeKeyRef:u,handleKeydown:d}}var gA=F({name:`NTreeNodeCheckbox`,props:{clsPrefix:{type:String,required:!0},indent:{type:Number,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(e){let t=Qn(mA);function n(t){let{onCheck:n}=e;n&&n(t)}function r(e){n(e)}return{handleUpdateValue:r,mergedTheme:t.mergedThemeRef}},render(){let{clsPrefix:e,mergedTheme:t,checked:n,indeterminate:r,disabled:i,focusable:a,indent:o,handleUpdateValue:s}=this;return L(`span`,{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],style:{width:`${o}px`},"data-checkbox":!0},L(PT,{focusable:a,disabled:i,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:s}))}}),_A=F({name:`TreeNodeContent`,props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(e){let{renderLabelRef:t,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:i}=Qn(mA),a=M(null);function o(t){let{onClick:n}=e;n&&n(t)}function s(e){o(e)}return{selfRef:a,renderLabel:t,renderPrefix:n,renderSuffix:r,labelField:i,handleClick:s}},render(){let{clsPrefix:e,labelField:t,nodeProps:n,checked:r=!1,selected:i=!1,renderLabel:a,renderPrefix:o,renderSuffix:s,handleClick:c,onDragstart:l,tmNode:{rawNode:u,rawNode:{prefix:d,suffix:f,[t]:p}}}=this;return L(`span`,Object.assign({},n,{ref:`selfRef`,class:[`${e}-tree-node-content`,n?.class],onClick:c,draggable:l===void 0?void 0:!0,onDragstart:l}),o||d?L(`div`,{class:`${e}-tree-node-content__prefix`},o?o({option:u,selected:i,checked:r}):Dm(d)):null,L(`div`,{class:`${e}-tree-node-content__text`},a?a({option:u,selected:i,checked:r}):Dm(p)),s||f?L(`div`,{class:`${e}-tree-node-content__suffix`},s?s({option:u,selected:i,checked:r}):Dm(f)):null)}}),vA=F({name:`NTreeSwitcher`,props:{clsPrefix:{type:String,required:!0},indent:{type:Number,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function,tmNode:{type:Object,required:!0}},setup(e){let{renderSwitcherIconRef:t}=Qn(mA,null);return()=>{let{clsPrefix:n,expanded:r,hide:i,indent:a,onClick:o}=e;return L(`span`,{"data-switcher":!0,class:[`${n}-tree-node-switcher`,r&&`${n}-tree-node-switcher--expanded`,i&&`${n}-tree-node-switcher--hide`],style:{width:`${a}px`},onClick:o},L(`div`,{class:`${n}-tree-node-switcher__icon`},L(Bx,null,{default:()=>{if(e.loading)return L(nS,{clsPrefix:n,key:`loading`,radius:85,strokeWidth:20});let{value:r}=t;return r?r({expanded:e.expanded,selected:e.selected,option:e.tmNode.rawNode}):L(zx,{clsPrefix:n,key:`switcher`},{default:()=>L(qx,null)})}})))}}});function yA(e){return I(()=>e.leafOnly?`child`:e.checkStrategy)}function bA(e,t){return!!e.rawNode[t]}function xA(e,t,n,r){e?.forEach(e=>{n(e),xA(e[t],t,n,r),r(e)})}function SA(e,t,n,r,i){let a=new Set,o=new Set,s=[];return xA(e,r,e=>{if(s.push(e),i(t,e)){o.add(e[n]);for(let e=s.length-2;e>=0;--e)if(!a.has(s[e][n]))a.add(s[e][n]);else return}},()=>{s.pop()}),{expandedKeys:Array.from(a),highlightKeySet:o}}var CA=null;if(Zd&&Image){let e=new Image;e.src=`data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==`}function wA(e,t,n,r,i){let a=new Set,o=new Set,s=new Set,c=[],l=[],u=[];function d(e){e.forEach(e=>{if(u.push(e),t(n,e)){a.add(e[r]),s.add(e[r]);for(let e=u.length-2;e>=0;--e){let t=u[e][r];if(!o.has(t))o.add(t),a.has(t)&&a.delete(t);else break}}let c=e[i];c&&d(c),u.pop()})}d(e);function f(e,t){e.forEach(e=>{let n=e[r],s=a.has(n),l=o.has(n);if(!s&&!l)return;let u=e[i];if(u)if(s)t.push(e);else{c.push(n);let r=Object.assign(Object.assign({},e),{[i]:[]});t.push(r),f(u,r[i])}else t.push(e)})}return f(e,l),{filteredTree:l,highlightKeySet:s,expandedKeys:c}}var TA=F({name:`TreeNode`,props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){let t=Qn(mA),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:i,droppingPositionRef:a,droppingOffsetLevelRef:o,nodePropsRef:s,indentRef:c,blockLineRef:l,checkboxPlacementRef:u,checkOnClickRef:d,disabledFieldRef:f,showLineRef:p,renderSwitcherIconRef:m,overrideDefaultNodeClickBehaviorRef:h}=t,g=Ad(()=>!!e.tmNode.rawNode.checkboxDisabled),_=Ad(()=>bA(e.tmNode,f.value)),v=Ad(()=>t.disabledRef.value||_.value),y=I(()=>{let{value:t}=s;if(t)return t({option:e.tmNode.rawNode})}),b=M(null),x={value:null};Yr(()=>{x.value=b.value.$el});function S(){let n=()=>{let{tmNode:n}=e;if(!n.isLeaf&&!n.shallowLoaded){if(!t.loadingKeysRef.value.has(n.key))t.loadingKeysRef.value.add(n.key);else return;let{onLoadRef:{value:e}}=t;e&&e(n.rawNode).then(e=>{e!==!1&&t.handleSwitcherClick(n)}).finally(()=>{t.loadingKeysRef.value.delete(n.key)})}else t.handleSwitcherClick(n)};m.value?setTimeout(n,0):n()}let C=Ad(()=>!_.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!==`child`||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),w=Ad(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!==`child`||e.tmNode.isLeaf)),T=Ad(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),E=Ad(()=>{let{value:t}=w;if(!t)return!1;let{value:n}=d,{tmNode:r}=e;return typeof n==`boolean`?!r.disabled&&n:n(e.tmNode.rawNode)});function D(n){let{value:r}=t.expandOnClickRef,{value:i}=C,{value:a}=E;if(!i&&!r&&!a||Pu(n,`checkbox`)||Pu(n,`switcher`))return;let{tmNode:o}=e;i&&t.handleSelect(o),r&&!o.isLeaf&&S(),a&&ee(!T.value)}function O(n){var r,i;if(!(Pu(n,`checkbox`)||Pu(n,`switcher`))){if(!v.value){let r=h.value,i=!1;if(r)switch(r({option:e.tmNode.rawNode})){case`toggleCheck`:i=!0,ee(!T.value);break;case`toggleSelect`:i=!0,t.handleSelect(e.tmNode);break;case`toggleExpand`:i=!0,S(),i=!0;break;case`none`:i=!0,i=!0;return;case`default`:default:break}i||D(n)}(i=(r=y.value)?.onClick)==null||i.call(r,n)}}function k(e){l.value||O(e)}function A(e){l.value&&O(e)}function ee(n){t.handleCheck(e.tmNode,n)}function te(n){t.handleDragStart({event:n,node:e.tmNode})}function ne(n){n.currentTarget===n.target&&t.handleDragEnter({event:n,node:e.tmNode})}function re(n){n.preventDefault(),t.handleDragOver({event:n,node:e.tmNode})}function ie(n){t.handleDragEnd({event:n,node:e.tmNode})}function ae(n){n.currentTarget===n.target&&t.handleDragLeave({event:n,node:e.tmNode})}function oe(n){n.preventDefault(),a.value!==null&&t.handleDrop({event:n,node:e.tmNode,dropPosition:a.value})}let se=I(()=>{let{clsPrefix:t}=e,{value:n}=c;if(p.value){let r=[],i=e.tmNode.parent;for(;i;)i.isLastChild?r.push(L(`div`,{class:`${t}-tree-node-indent`},L(`div`,{style:{width:`${n}px`}}))):r.push(L(`div`,{class:[`${t}-tree-node-indent`,`${t}-tree-node-indent--show-line`]},L(`div`,{style:{width:`${n}px`}}))),i=i.parent;return r.reverse()}else return vd(e.tmNode.level,L(`div`,{class:`${e.clsPrefix}-tree-node-indent`},L(`div`,{style:{width:`${n}px`}})))});return{showDropMark:Ad(()=>{let{value:t}=i;if(!t)return;let{value:n}=a;if(!n)return;let{value:o}=r;if(!o)return;let{tmNode:s}=e;return s.key===o.key}),showDropMarkAsParent:Ad(()=>{let{value:t}=n;if(!t)return!1;let{tmNode:r}=e,{value:i}=a;return i===`before`||i===`after`?t.key===r.key:!1}),pending:Ad(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:Ad(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:Ad(()=>t.highlightKeySetRef.value?.has(e.tmNode.key)),checked:T,indeterminate:Ad(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:Ad(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:Ad(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:v,checkable:w,mergedCheckOnClick:E,checkboxDisabled:g,selectable:C,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:l,nodeProps:y,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:a,droppingOffsetLevel:o,indent:c,checkboxPlacement:u,showLine:p,contentInstRef:b,contentElRef:x,indentNodes:se,handleCheck:ee,handleDrop:oe,handleDragStart:te,handleDragEnter:ne,handleDragOver:re,handleDragEnd:ie,handleDragLeave:ae,handleLineClick:A,handleContentClick:k,handleSwitcherClick:S}},render(){let{tmNode:e,clsPrefix:t,checkable:n,expandOnClick:r,selectable:i,selected:a,checked:o,highlight:s,draggable:c,blockLine:l,indent:u,indentNodes:d,disabled:f,pending:p,internalScrollable:m,nodeProps:h,checkboxPlacement:g}=this,_=c&&!f?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,v=m?Em(e.key):void 0,y=g===`right`,b=n?L(gA,{indent:u,right:y,focusable:this.checkboxFocusable,disabled:f||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return L(`div`,Object.assign({class:`${t}-tree-node-wrapper`},_),L(`div`,Object.assign({},l?h:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:a,[`${t}-tree-node--checkable`]:n,[`${t}-tree-node--highlight`]:s,[`${t}-tree-node--pending`]:p,[`${t}-tree-node--disabled`]:f,[`${t}-tree-node--selectable`]:i,[`${t}-tree-node--clickable`]:i||r||this.mergedCheckOnClick},h?.class],"data-key":v,draggable:c&&l,onClick:this.handleLineClick,onDragstart:c&&l&&!f?this.handleDragStart:void 0}),d,e.isLeaf&&this.showLine?L(`div`,{class:[`${t}-tree-node-indent`,`${t}-tree-node-indent--show-line`,e.isLeaf&&`${t}-tree-node-indent--is-leaf`,e.isLastChild&&`${t}-tree-node-indent--last-child`]},L(`div`,{style:{width:`${u}px`}})):L(vA,{clsPrefix:t,expanded:this.expanded,selected:a,loading:this.loading,hide:e.isLeaf,tmNode:this.tmNode,indent:u,onClick:this.handleSwitcherClick}),y?null:b,L(_A,{ref:`contentInstRef`,clsPrefix:t,checked:o,selected:a,onClick:this.handleContentClick,nodeProps:l?void 0:h,onDragstart:c&&!l&&!f?this.handleDragStart:void 0,tmNode:e}),c?this.showDropMark?fA({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:u}):this.showDropMarkAsParent?fA({el:this.contentElRef.value,position:`inside`,offsetLevel:this.droppingOffsetLevel,indent:u}):null:null,y?b:null))}}),EA=TA,DA=F({name:`TreeMotionWrapper`,props:{clsPrefix:{type:String,required:!0},height:Number,nodes:{type:Array,required:!0},mode:{type:String,required:!0},onAfterEnter:{type:Function,required:!0}},render(){let{clsPrefix:e}=this;return L(Qx,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode===`collapse`},{default:()=>L(`div`,{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:Lu(this.height)}},this.nodes.map(t=>L(EA,{clsPrefix:e,tmNode:t})))})}}),OA=Yx(),kA=V(`tree`,`
font-size: var(--n-font-size);
outline: none;
`,[B(`ul, li`,`
margin: 0;
padding: 0;
list-style: none;
`),B(`>`,[V(`tree-node`,[B(`&:first-child`,`margin-top: 0;`)])]),V(`tree-motion-wrapper`,[U(`expand`,[QC({duration:`0.2s`})]),U(`collapse`,[QC({duration:`0.2s`,reverse:!0})])]),V(`tree-node-wrapper`,`
box-sizing: border-box;
padding: var(--n-node-wrapper-padding);
`),V(`tree-node`,`
position: relative;
display: flex;
border-radius: var(--n-node-border-radius);
transition: background-color .3s var(--n-bezier);
`,[U(`highlight`,[V(`tree-node-content`,[H(`text`,`border-bottom-color: var(--n-node-text-color-disabled);`)])]),U(`disabled`,[V(`tree-node-content`,`
color: var(--n-node-text-color-disabled);
cursor: not-allowed;
`)]),Du(`disabled`,[U(`clickable`,[V(`tree-node-content`,`
cursor: pointer;
`)])])]),U(`block-node`,[V(`tree-node-content`,`
flex: 1;
min-width: 0;
`)]),Du(`block-line`,[V(`tree-node`,[Du(`disabled`,[V(`tree-node-content`,[B(`&:hover`,`background: var(--n-node-color-hover);`)]),U(`selectable`,[V(`tree-node-content`,[B(`&:active`,`background: var(--n-node-color-pressed);`)])]),U(`pending`,[V(`tree-node-content`,`
background: var(--n-node-color-hover);
`)]),U(`selected`,[V(`tree-node-content`,`background: var(--n-node-color-active);`)])]),U(`selected`,[V(`tree-node-content`,`background: var(--n-node-color-active);`)])])]),U(`block-line`,[V(`tree-node`,[Du(`disabled`,[B(`&:hover`,`background: var(--n-node-color-hover);`),U(`pending`,`
background: var(--n-node-color-hover);
`),U(`selectable`,[Du(`selected`,[B(`&:active`,`background: var(--n-node-color-pressed);`)])]),U(`selected`,`background: var(--n-node-color-active);`)]),U(`selected`,`background: var(--n-node-color-active);`),U(`disabled`,`
cursor: not-allowed;
`)])]),U(`ellipsis`,[V(`tree-node`,[V(`tree-node-content`,`
overflow: hidden;
`,[H(`text`,`
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
`)])])]),V(`tree-node-indent`,`
flex-grow: 0;
flex-shrink: 0;
`,[U(`show-line`,`position: relative`,[B(`&::before`,`
position: absolute;
left: 50%;
border-left: 1px solid var(--n-line-color);
transition: border-color .3s var(--n-bezier);
transform: translate(-50%);
content: "";
top: var(--n-line-offset-top);
bottom: var(--n-line-offset-bottom);
`),U(`last-child`,[B(`&::before`,`
bottom: 50%;
`)]),U(`is-leaf`,[B(`&::after`,`
position: absolute;
content: "";
left: calc(50% + 0.5px);
right: 0;
bottom: 50%;
transition: border-color .3s var(--n-bezier);
border-bottom: 1px solid var(--n-line-color);
`)])]),Du(`show-line`,`height: 0;`)]),V(`tree-node-switcher`,`
cursor: pointer;
display: inline-flex;
flex-shrink: 0;
height: var(--n-node-content-height);
align-items: center;
justify-content: center;
transition: transform .15s var(--n-bezier);
vertical-align: bottom;
`,[H(`icon`,`
position: relative;
height: 14px;
width: 14px;
display: flex;
color: var(--n-arrow-color);
transition: color .3s var(--n-bezier);
font-size: 14px;
`,[V(`icon`,[OA]),V(`base-loading`,`
color: var(--n-loading-color);
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
`,[OA]),V(`base-icon`,[OA])]),U(`hide`,`visibility: hidden;`),U(`expanded`,`transform: rotate(90deg);`)]),V(`tree-node-checkbox`,`
display: inline-flex;
height: var(--n-node-content-height);
vertical-align: bottom;
align-items: center;
justify-content: center;
`),V(`tree-node-content`,`
user-select: none;
position: relative;
display: inline-flex;
align-items: center;
min-height: var(--n-node-content-height);
box-sizing: border-box;
line-height: var(--n-line-height);
vertical-align: bottom;
padding: 0 6px 0 4px;
cursor: default;
border-radius: var(--n-node-border-radius);
color: var(--n-node-text-color);
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
border-color .3s var(--n-bezier);
`,[B(`&:last-child`,`margin-bottom: 0;`),H(`prefix`,`
display: inline-flex;
margin-right: 8px;
`),H(`text`,`
border-bottom: 1px solid #0000;
transition: border-color .3s var(--n-bezier);
flex-grow: 1;
max-width: 100%;
`),H(`suffix`,`
display: inline-flex;
`)]),H(`empty`,`margin: auto;`)]),AA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function jA(e,t,n,r){return{getIsGroup(){return!1},getKey(t){return t[e]},getChildren:r||(e=>e[t]),getDisabled(e){return!!(e[n]||e.checkboxDisabled)}}}const MA={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:`key`},labelField:{type:String,default:`label`},childrenField:{type:String,default:`children`},disabledField:{type:String,default:`disabled`},defaultExpandedKeys:{type:Array,default:()=>[]},indent:{type:Number,default:24},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array],overrideDefaultNodeClickBehavior:Function},NA=Object.assign(Object.assign(Object.assign(Object.assign({},Lx.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,showLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:``},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},scrollbarProps:Object,allowDrop:{type:Function,default:pA},animated:{type:Boolean,default:!0},ellipsis:Boolean,checkboxPlacement:{type:String,default:`left`},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),MA),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:`all`},leafOnly:Boolean});var PA=F({name:`Tree`,props:NA,slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=Im(e),i=Ox(`Tree`,r,t),a=Lx(`Tree`,`-tree`,kA,Ck,e,t),o=M(null),s=M(null),c=M(null);function l(){return c.value?.listElRef}function u(){return c.value?.itemsElRef}let d=I(()=>{let{filter:t}=e;if(t)return t;let{labelField:n}=e;return(e,t)=>{if(!e.length)return!0;let r=t[n];return typeof r==`string`?r.toLowerCase().includes(e.toLowerCase()):!1}}),f=I(()=>{let{pattern:t}=e;return!t||!t.length||!d.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:wA(e.data,d.value,t,e.keyField,e.childrenField)}),p=I(()=>sC(e.showIrrelevantNodes?e.data:f.value.filteredTree,jA(e.keyField,e.childrenField,e.disabledField,e.getChildren))),m=Qn(dA,null),h=e.internalTreeSelect?m.dataTreeMate:I(()=>e.showIrrelevantNodes?p.value:sC(e.data,jA(e.keyField,e.childrenField,e.disabledField,e.getChildren))),{watchProps:g}=e,_=M([]);g?.includes(`defaultCheckedKeys`)?tr(()=>{_.value=e.defaultCheckedKeys}):_.value=e.defaultCheckedKeys;let v=Id(P(e,`checkedKeys`),_),y=I(()=>h.value.getCheckedKeys(v.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),b=yA(e),x=I(()=>y.value.checkedKeys),S=I(()=>{let{indeterminateKeys:t}=e;return t===void 0?y.value.indeterminateKeys:t}),C=M([]);g?.includes(`defaultSelectedKeys`)?tr(()=>{C.value=e.defaultSelectedKeys}):C.value=e.defaultSelectedKeys;let w=Id(P(e,`selectedKeys`),C),T=M([]),E=t=>{T.value=e.defaultExpandAll?h.value.getNonLeafKeys():t===void 0?e.defaultExpandedKeys:t};g?.includes(`defaultExpandedKeys`)?tr(()=>{E(void 0)}):tr(()=>{E(e.defaultExpandedKeys)});let D=Id(P(e,`expandedKeys`),T),O=I(()=>p.value.getFlattenedNodes(D.value)),{pendingNodeKeyRef:k,handleKeydown:A}=hA({props:e,mergedCheckedKeysRef:v,mergedSelectedKeysRef:w,fNodesRef:O,mergedExpandedKeysRef:D,handleCheck:ze,handleSelect:He,handleSwitcherClick:Ve}),ee=null,te=null,ne=M(new Set),re=Id(I(()=>e.internalHighlightKeySet||f.value.highlightKeySet),ne),ie=M(new Set),ae=I(()=>D.value.filter(e=>!ie.value.has(e))),oe=0,se=M(null),ce=M(null),le=M(null),ue=M(null),de=M(0),fe=I(()=>{let{value:e}=ce;return e?e.parent:null}),pe=!1;nr(P(e,`data`),()=>{pe=!0,In(()=>{pe=!1}),ie.value.clear(),k.value=null,Fe()},{deep:!1});let me=!1,he=()=>{me=!0,In(()=>{me=!1})},ge;nr(P(e,`pattern`),(t,n)=>{if(e.showIrrelevantNodes)if(ge=void 0,t){let{expandedKeys:t,highlightKeySet:n}=SA(e.data,e.pattern,e.keyField,e.childrenField,d.value);ne.value=n,he(),Te(t,we(t),{node:null,action:`filter`})}else ne.value=new Set;else if(!t.length)ge!==void 0&&(he(),Te(ge,we(ge),{node:null,action:`filter`}));else{n.length||(ge=D.value);let{expandedKeys:e}=f.value;e!==void 0&&(he(),Te(e,we(e),{node:null,action:`filter`}))}});function _e(t){return AA(this,void 0,void 0,function*(){let{onLoad:n}=e;if(!n){yield Promise.resolve();return}let{value:r}=ie;if(!r.has(t.key)){r.add(t.key);try{(yield n(t.rawNode))===!1&&Re()}catch(e){console.error(e),Re()}r.delete(t.key)}})}tr(()=>{var e;let{value:t}=p;if(!t)return;let{getNode:n}=t;(e=D.value)==null||e.forEach(e=>{let t=n(e);t&&!t.shallowLoaded&&_e(t)})});let ve=M(!1),ye=M([]);nr(ae,(t,n)=>{if(!e.animated||me){In(Se);return}if(pe)return;let r=Iu(a.value.self.nodeHeight),i=new Set(n),s=null,l=null;for(let e of t)if(!i.has(e)){if(s!==null)return;s=e}let u=new Set(t);for(let e of n)if(!u.has(e)){if(l!==null)return;l=e}if(s===null&&l===null)return;let{virtualScroll:d}=e,f=(d?c.value.listElRef:o.value).offsetHeight,m=Math.ceil(f/r)+1,h;if(s!==null&&(h=n),l!==null&&(h=h===void 0?t:h.filter(e=>e!==l)),ve.value=!0,ye.value=p.value.getFlattenedNodes(h),s!==null){let e=ye.value.findIndex(e=>e.key===s);if(~e){let n=ye.value[e].children;if(n){let i=iC(n,t);ye.value.splice(e+1,0,{__motion:!0,mode:`expand`,height:d?i.length*r:void 0,nodes:d?i.slice(0,m):i})}}}if(l!==null){let e=ye.value.findIndex(e=>e.key===l);if(~e){let n=ye.value[e].children;if(!n)return;ve.value=!0;let i=iC(n,t);ye.value.splice(e+1,0,{__motion:!0,mode:`collapse`,height:d?i.length*r:void 0,nodes:d?i.slice(0,m):i})}}});let be=I(()=>US(O.value)),xe=I(()=>ve.value?ye.value:O.value);function Se(){let{value:e}=s;e&&e.sync()}function Ce(){ve.value=!1,e.virtualScroll&&In(Se)}function we(e){let{getNode:t}=h.value;return e.map(e=>t(e)?.rawNode||null)}function Te(t,n,r){let{"onUpdate:expandedKeys":i,onUpdateExpandedKeys:a}=e;T.value=t,i&&q(i,t,n,r),a&&q(a,t,n,r)}function Ee(t,n,r){let{"onUpdate:checkedKeys":i,onUpdateCheckedKeys:a}=e;_.value=t,a&&q(a,t,n,r),i&&q(i,t,n,r)}function De(t,n){let{"onUpdate:indeterminateKeys":r,onUpdateIndeterminateKeys:i}=e;r&&q(r,t,n),i&&q(i,t,n)}function Oe(t,n,r){let{"onUpdate:selectedKeys":i,onUpdateSelectedKeys:a}=e;C.value=t,a&&q(a,t,n,r),i&&q(i,t,n,r)}function ke(t){let{onDragenter:n}=e;n&&q(n,t)}function Ae(t){let{onDragleave:n}=e;n&&q(n,t)}function je(t){let{onDragend:n}=e;n&&q(n,t)}function Me(t){let{onDragstart:n}=e;n&&q(n,t)}function Ne(t){let{onDragover:n}=e;n&&q(n,t)}function Pe(t){let{onDrop:n}=e;n&&q(n,t)}function Fe(){Ie(),Le()}function Ie(){se.value=null}function Le(){de.value=0,ce.value=null,le.value=null,ue.value=null,Re()}function Re(){ee&&=(window.clearTimeout(ee),null),te=null}function ze(t,n){if(e.disabled||bA(t,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){He(t);return}let r=n?`check`:`uncheck`,{checkedKeys:i,indeterminateKeys:a}=h.value[r](t.key,x.value,{cascade:e.cascade,checkStrategy:b.value,allowNotLoaded:e.allowCheckingNotLoaded});Ee(i,we(i),{node:t.rawNode,action:r}),De(a,we(a))}function Be(t){if(e.disabled)return;let{key:n}=t,{value:r}=D,i=r.findIndex(e=>e===n);if(~i){let e=Array.from(r);e.splice(i,1),Te(e,we(e),{node:t.rawNode,action:`collapse`})}else{let i=p.value.getNode(n);if(!i||i.isLeaf)return;let a;if(e.accordion){let e=new Set(t.siblings.map(({key:e})=>e));a=r.filter(t=>!e.has(t)),a.push(n)}else a=r.concat(n);Te(a,we(a),{node:t.rawNode,action:`expand`})}}function Ve(t){e.disabled||ve.value||Be(t)}function He(t){if(!(e.disabled||!e.selectable)){if(k.value=t.key,e.internalUnifySelectCheck){let{value:{checkedKeys:n,indeterminateKeys:r}}=y;e.multiple?ze(t,!(n.includes(t.key)||r.includes(t.key))):Ee([t.key],we([t.key]),{node:t.rawNode,action:`check`})}if(e.multiple){let n=Array.from(w.value),r=n.findIndex(e=>e===t.key);~r?e.cancelable&&n.splice(r,1):~r||n.push(t.key),Oe(n,we(n),{node:t.rawNode,action:~r?`unselect`:`select`})}else w.value.includes(t.key)?e.cancelable&&Oe([],[],{node:t.rawNode,action:`unselect`}):Oe([t.key],we([t.key]),{node:t.rawNode,action:`select`})}}function Ue(e){if(ee&&=(window.clearTimeout(ee),null),e.isLeaf)return;te=e.key;let t=()=>{if(te!==e.key)return;let{value:t}=le;if(t&&t.key===e.key&&!D.value.includes(e.key)){let t=D.value.concat(e.key);Te(t,we(t),{node:e.rawNode,action:`expand`})}ee=null,te=null};ee=e.shallowLoaded?window.setTimeout(()=>{t()},1e3):window.setTimeout(()=>{_e(e).then(()=>{t()})},1e3)}function We({event:t,node:n}){!e.draggable||e.disabled||bA(n,e.disabledField)||(Ye({event:t,node:n},!1),ke({event:t,node:n.rawNode}))}function Ge({event:t,node:n}){!e.draggable||e.disabled||bA(n,e.disabledField)||Ae({event:t,node:n.rawNode})}function Ke(e){e.target===e.currentTarget&&Le()}function qe({event:t,node:n}){Fe(),!(!e.draggable||e.disabled||bA(n,e.disabledField))&&je({event:t,node:n.rawNode})}function Je({event:t,node:n}){!e.draggable||e.disabled||bA(n,e.disabledField)||(oe=t.clientX,se.value=n,Me({event:t,node:n.rawNode}))}function Ye({event:t,node:n},r=!0){if(!e.draggable||e.disabled||bA(n,e.disabledField))return;let{value:i}=se;if(!i)return;let{allowDrop:a,indent:o}=e;r&&Ne({event:t,node:n.rawNode});let{height:s,top:c}=t.currentTarget.getBoundingClientRect(),l=t.clientY-c,u;u=a({node:n.rawNode,dropPosition:`inside`,phase:`drag`})?l<=8?`before`:l>=s-8?`after`:`inside`:l<=s/2?`before`:`after`;let{value:d}=be,f,p,m=d(n.key);if(m===null){Le();return}let h=!1;u===`inside`?(f=n,p=`inside`):u===`before`?n.isFirstChild?(f=n,p=`before`):(f=O.value[m-1],p=`after`):(f=n,p=`after`),!f.isLeaf&&D.value.includes(f.key)&&(h=!0,p===`after`&&(f=O.value[m+1],f?p=`before`:(f=n,p=`inside`)));let g=f;if(le.value=g,!h&&i.isLastChild&&i.key===f.key&&(p=`after`),p===`after`){let e=oe-t.clientX,n=0;for(;e>=o/2&&f.parent!==null&&f.isLastChild&&n<1;)e-=o,n+=1,f=f.parent;de.value=n}else de.value=0;if((i.contains(f)||p===`inside`&&i.parent?.key===f.key)&&!(i.key===g.key&&i.key===f.key)){Le();return}if(!a({node:f.rawNode,dropPosition:p,phase:`drag`})){Le();return}if(i.key===f.key)Re();else if(te!==f.key)if(p===`inside`){if(e.expandOnDragenter){if(Ue(f),!f.shallowLoaded&&te!==f.key){Fe();return}}else if(!f.shallowLoaded){Fe();return}}else Re();else p!==`inside`&&Re();ue.value=p,ce.value=f}function Xe({event:t,node:n,dropPosition:r}){if(!e.draggable||e.disabled||bA(n,e.disabledField))return;let{value:i}=se,{value:a}=ce,{value:o}=ue;if(!(!i||!a||!o)&&e.allowDrop({node:a.rawNode,dropPosition:o,phase:`drag`})&&i.key!==a.key){if(o===`before`){let e=i.getNext({includeDisabled:!0});if(e&&e.key===a.key){Le();return}}if(o===`after`){let e=i.getPrev({includeDisabled:!0});if(e&&e.key===a.key){Le();return}}Pe({event:t,node:a.rawNode,dragNode:i.rawNode,dropPosition:r}),Fe()}}function Ze(){Se()}function Qe(){Se()}function $e(t){if(e.virtualScroll||e.internalScrollable){let{value:e}=s;if((e?.containerRef)?.contains(t.relatedTarget))return;k.value=null}else{let{value:e}=o;if(e?.contains(t.relatedTarget))return;k.value=null}}nr(k,t=>{var n;if(t!==null){if(e.virtualScroll)(n=c.value)==null||n.scrollTo({key:t});else if(e.internalScrollable){let{value:e}=s;if(e===null)return;let n=e.contentRef?.querySelector(`[data-key="${Em(t)}"]`);if(!n)return;e.scrollTo({el:n})}}}),Zn(mA,{loadingKeysRef:ie,highlightKeySetRef:re,displayedCheckedKeysRef:x,displayedIndeterminateKeysRef:S,mergedSelectedKeysRef:w,mergedExpandedKeysRef:D,mergedThemeRef:a,mergedCheckStrategyRef:b,nodePropsRef:P(e,`nodeProps`),disabledRef:P(e,`disabled`),checkableRef:P(e,`checkable`),selectableRef:P(e,`selectable`),expandOnClickRef:P(e,`expandOnClick`),onLoadRef:P(e,`onLoad`),draggableRef:P(e,`draggable`),blockLineRef:P(e,`blockLine`),indentRef:P(e,`indent`),cascadeRef:P(e,`cascade`),checkOnClickRef:P(e,`checkOnClick`),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:le,droppingNodeParentRef:fe,draggingNodeRef:se,droppingPositionRef:ue,droppingOffsetLevelRef:de,fNodesRef:O,pendingNodeKeyRef:k,showLineRef:P(e,`showLine`),disabledFieldRef:P(e,`disabledField`),internalScrollableRef:P(e,`internalScrollable`),internalCheckboxFocusableRef:P(e,`internalCheckboxFocusable`),internalTreeSelect:e.internalTreeSelect,renderLabelRef:P(e,`renderLabel`),renderPrefixRef:P(e,`renderPrefix`),renderSuffixRef:P(e,`renderSuffix`),renderSwitcherIconRef:P(e,`renderSwitcherIcon`),labelFieldRef:P(e,`labelField`),multipleRef:P(e,`multiple`),overrideDefaultNodeClickBehaviorRef:P(e,`overrideDefaultNodeClickBehavior`),handleSwitcherClick:Ve,handleDragEnd:qe,handleDragEnter:We,handleDragLeave:Ge,handleDragStart:Je,handleDrop:Xe,handleDragOver:Ye,handleSelect:He,handleCheck:ze});function et(e,t){var n,r;typeof e==`number`?(n=c.value)==null||n.scrollTo(e,t||0):(r=c.value)==null||r.scrollTo(e)}let tt={handleKeydown:A,scrollTo:et,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};let{checkedKeys:t}=y.value;return{keys:t,options:we(t)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};let{indeterminateKeys:t}=y.value;return{keys:t,options:we(t)}}},nt=I(()=>{let{common:{cubicBezierEaseInOut:e},self:{fontSize:t,nodeBorderRadius:n,nodeColorHover:r,nodeColorPressed:i,nodeColorActive:o,arrowColor:s,loadingColor:c,nodeTextColor:l,nodeTextColorDisabled:u,dropMarkColor:d,nodeWrapperPadding:f,nodeHeight:p,lineHeight:m,lineColor:h}}=a.value,g=Ru(f,`top`),_=Ru(f,`bottom`),v=Lu(Iu(p)-Iu(g)-Iu(_));return{"--n-arrow-color":s,"--n-loading-color":c,"--n-bezier":e,"--n-font-size":t,"--n-node-border-radius":n,"--n-node-color-active":o,"--n-node-color-hover":r,"--n-node-color-pressed":i,"--n-node-text-color":l,"--n-node-text-color-disabled":u,"--n-drop-mark-color":d,"--n-node-wrapper-padding":f,"--n-line-offset-top":`-${g}`,"--n-line-offset-bottom":`-${_}`,"--n-node-content-height":v,"--n-line-height":m,"--n-line-color":h}}),rt=n?Lm(`tree`,void 0,nt,e):void 0;return Object.assign(Object.assign({},tt),{mergedClsPrefix:t,mergedTheme:a,rtlEnabled:i,fNodes:xe,aip:ve,selfElRef:o,virtualListInstRef:c,scrollbarInstRef:s,handleFocusout:$e,handleDragLeaveTree:Ke,handleScroll:Ze,getScrollContainer:l,getScrollContent:u,handleAfterEnter:Ce,handleResize:Qe,cssVars:n?void 0:nt,themeClass:rt?.themeClass,onRender:rt?.onRender})},render(){var e;let{fNodes:t,internalRenderEmpty:n}=this;if(!t.length&&n)return n();let{mergedClsPrefix:r,blockNode:i,blockLine:a,draggable:o,disabled:s,ellipsis:c,internalFocusable:l,checkable:u,handleKeydown:d,rtlEnabled:f,handleFocusout:p,scrollbarProps:m}=this,h=l&&!s,g=h?`0`:void 0,_=[`${r}-tree`,f&&`${r}-tree--rtl`,u&&`${r}-tree--checkable`,(a||i)&&`${r}-tree--block-node`,a&&`${r}-tree--block-line`,c&&`${r}-tree--ellipsis`],v=e=>`__motion`in e?L(DA,{height:e.height,nodes:e.nodes,clsPrefix:r,mode:e.mode,onAfterEnter:this.handleAfterEnter}):L(EA,{key:e.key,tmNode:e,clsPrefix:r});if(this.virtualScroll){let{mergedTheme:e,internalScrollablePadding:n}=this,i=Ru(n||`0`);return L(ES,Object.assign({},m,{ref:`scrollbarInstRef`,onDragleave:o?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:_,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,tabindex:g,onKeydown:h?d:void 0,onFocusout:h?p:void 0}),{default:()=>{var n;return(n=this.onRender)==null||n.call(this),t.length?L(xm,{ref:`virtualListInstRef`,items:this.fNodes,itemSize:Iu(e.self.nodeHeight),ignoreItemResize:this.aip,paddingTop:i.top,paddingBottom:i.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:i.left,paddingRight:i.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:e})=>v(e)}):km(this.$slots.empty,()=>[L(gC,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})])}})}let{internalScrollable:y}=this;return _.push(this.themeClass),(e=this.onRender)==null||e.call(this),y?L(ES,Object.assign({},m,{class:_,tabindex:g,onKeydown:h?d:void 0,onFocusout:h?p:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}}),{default:()=>L(`div`,{onDragleave:o?this.handleDragLeaveTree:void 0,ref:`selfElRef`},this.fNodes.map(v))}):L(`div`,{class:_,tabindex:g,ref:`selfElRef`,style:this.cssVars,onKeydown:h?d:void 0,onFocusout:h?p:void 0,onDragleave:o?this.handleDragLeaveTree:void 0},t.length?t.map(v):km(this.$slots.empty,()=>[L(gC,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}});const FA=()=>({});var IA={name:`Equation`,common:Y,self:FA},LA=IA,RA={name:`FloatButtonGroup`,common:Y,self(e){let{popoverColor:t,dividerColor:n,borderRadius:r}=e;return{color:t,buttonBorderColor:n,borderRadiusSquare:r,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`}}},zA=RA;const BA={name:`dark`,common:Y,Alert:JC,Anchor:nw,AutoComplete:Tw,Avatar:Aw,AvatarGroup:Pw,BackTop:Lw,Badge:zw,Breadcrumb:Uw,Button:Qw,ButtonGroup:WD,Calendar:sT,Card:pT,Carousel:gT,Cascader:ET,Checkbox:ST,Code:IT,Collapse:zT,CollapseTransition:HT,ColorPicker:KT,DataTable:LE,DatePicker:ZE,Descriptions:tD,Dialog:sD,Divider:TD,Drawer:kD,Dropdown:gE,DynamicInput:MD,DynamicTags:LD,Element:zD,Empty:pC,Ellipsis:wE,Equation:LA,Flex:HD,Form:JD,GradientText:XD,Heatmap:Uk,Icon:BE,IconWrapper:Kk,Image:qk,Input:lw,InputNumber:QD,InputOtp:nO,LegacyTransfer:Xk,Layout:iO,List:lO,LoadingBar:pD,Log:dO,Menu:vO,Mention:pO,Message:_D,Modal:dD,Notification:SD,PageHeader:SO,Pagination:uE,Popconfirm:DO,Popover:jC,Popselect:XT,Progress:MO,QrCode:tA,Radio:kE,Rate:PO,Result:RO,Row:oO,Scrollbar:SS,Select:iE,Skeleton:nA,Slider:VO,Space:FD,Spin:qO,Statistic:XO,Steps:ek,Switch:rk,Table:sk,Tabs:dk,Tag:PC,Thing:mk,TimePicker:KE,Timeline:_k,Tooltip:yE,Transfer:bk,Tree:Tk,TreeSelect:Dk,Typography:jk,Upload:Fk,Watermark:Lk,Split:uA,FloatButton:zk,FloatButtonGroup:zA,Marquee:$k};function VA(e,t,n){Yr(()=>{N(e).addEventListener(t,n)}),Qr(()=>{N(e).removeEventListener(t,n)})}function HA(e,t){Yr(()=>{oc.on(e,t)}),Qr(()=>{oc.off(e,t)})}var UA=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},WA={},GA={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`};function KA(e,t){return Ea(),ja(`svg`,GA,[...t[0]||=[La(`path`,{d:`M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8s-8-3.59-8-8s3.59-8 8-8m0-2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm1 10V9c0-.55-.45-1-1-1s-1 .45-1 1v3H9.21c-.45 0-.67.54-.35.85l2.79 2.79c.2.2.51.2.71 0l2.79-2.79a.5.5 0 0 0-.35-.85H13z`,fill:`currentColor`},null,-1)]])}var qA=UA(WA,[[`render`,KA]]),JA={},YA={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`};function XA(e,t){return Ea(),ja(`svg`,YA,[...t[0]||=[La(`path`,{d:`M11.77 3c-2.65.07-5 1.28-6.6 3.16L3.85 4.85a.5.5 0 0 0-.85.36V9.5c0 .28.22.5.5.5h4.29c.45 0 .67-.54.35-.85L6.59 7.59C7.88 6.02 9.82 5 12 5c4.32 0 7.74 3.94 6.86 8.41c-.54 2.77-2.81 4.98-5.58 5.47c-3.8.68-7.18-1.74-8.05-5.16c-.12-.42-.52-.72-.96-.72c-.65 0-1.14.61-.98 1.23C4.28 18.12 7.8 21 12 21c5.06 0 9.14-4.17 9-9.26c-.14-4.88-4.35-8.86-9.23-8.74zM14 12c0-1.1-.9-2-2-2s-2 .9-2 2s.9 2 2 2s2-.9 2-2z`,fill:`currentColor`},null,-1)]])}var ZA=UA(JA,[[`render`,XA]]),QA={},$A={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`};function ej(e,t){return Ea(),ja(`svg`,$A,[...t[0]||=[La(`path`,{d:`M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31a.996.996 0 0 0 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76z`,fill:`currentColor`},null,-1)]])}var tj=UA(QA,[[`render`,ej]]),nj=[`innerHTML`],rj=F({__name:`LocalIcon`,props:{id:{type:String,default:`ghost`}},setup(e){let t=(0,l.getIcon)(e.id)?.outerHTML||(0,l.getIcon)(`ghost`)?.outerHTML;return(e,n)=>(Ea(),ja(`div`,{innerHTML:N(t)},null,8,nj))}}),ij=rj;function aj(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var oj=/\s*,(?![^(]*\))\s*/g,sj=/\s+/g;function cj(e,t){let n=[];return t.split(oj).forEach(t=>{let r=aj(t);if(r){if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}}else{e.forEach(e=>{n.push((e&&e+` `)+t)});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function lj(e,t){let n=[];return t.split(oj).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function uj(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?cj(t,e):lj(t,e))}),t.join(`, `).replace(sj,` `)}var dj=/[A-Z]/g;function fj(e){return e.replace(dj,e=>`-`+e.toLowerCase())}function pj(e,t=` `){return typeof e==`object`&&e?` {
`+Object.entries(e).map(e=>t+` ${fj(e[0])}: ${e[1]};`).join(`
`)+`
`+t+`}`:`: ${e};`}function mj(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function hj(e,t,n,r){if(!t)return``;let i=mj(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` {
}`:``;let o=e?[e+` {`]:[];return a.forEach(e=>{let t=i[e];if(e===`raw`){o.push(`
`+t+`
`);return}e=fj(e),t!=null&&o.push(` ${e}${pj(t)}`)}),e&&o.push(`}`),o.join(`
`)}function gj(e,t,n){e&&e.forEach(e=>{if(Array.isArray(e))gj(e,t,n);else if(typeof e==`function`){let r=e(t);Array.isArray(r)?gj(r,t,n):r&&n(r)}else e&&n(e)})}function _j(e,t,n,r,i,a){let o=e.$;!o||typeof o==`string`?t.push(o):typeof o==`function`?t.push(o({context:r.context,props:i})):(o.before&&o.before(r.context),!o.$||typeof o.$==`string`?t.push(o.$):o.$&&t.push(o.$({context:r.context,props:i})));let s=uj(t),c=hj(s,e.props,r,i);a&&c&&a.insertRule(c),!a&&c.length&&n.push(c),e.children&&gj(e.children,{context:r.context,props:i},e=>{if(typeof e==`string`){let t=hj(s,{raw:e},r,i);a?a.insertRule(t):n.push(t)}else _j(e,t,n,r,i,a)}),t.pop(),o&&o.after&&o.after(r.context)}function vj(e,t,n,r=!1){let i=[];return _j(e,[],i,t,n,r?e.instance.__styleSheet:void 0),r?``:i.join(`
`)}function yj(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function bj(e){return document.querySelector(`style[cssr-id="${e}"]`)}function xj(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}window&&(window.__cssrContext={});function Sj(e){let t=e.getAttribute(`mount-count`);return t===null?null:Number(t)}function Cj(e,t){e.setAttribute(`mount-count`,String(t))}function wj(e,t,n,r){let{els:i}=t;if(n===void 0)i.forEach(yj),t.els=[];else{let e=bj(n);if(e&&i.includes(e)){let a=Sj(e);r?a===null?console.error(`[css-render/unmount]: The style with target='${n}' is mounted in count mode.`):a<=1?(yj(e),t.els=i.filter(t=>t!==e)):Cj(e,a-1):a===null?(yj(e),t.els=i.filter(t=>t!==e)):console.error(`[css-render/unmount]: The style with target='${n}' is mounted in no-count mode.`)}}}function Tj(e,t){e.push(t)}function Ej(e,t,n,r,i,a,o,s,c){if(o&&!c){if(n===void 0){console.error("[css-render/mount]: `id` is required in `boost` mode.");return}let i=window.__cssrContext;i[n]||(i[n]=!0,vj(t,e,r,o));return}let l,{els:u}=t,d;if(n===void 0&&(d=t.render(r),n=lu(d)),c){c(n,d??t.render(r));return}let f=bj(n);if(s||f===null){if(l=f===null?xj(n):f,d===void 0&&(d=t.render(r)),l.textContent=d,f!==null)return;if(i){let e=document.head.getElementsByTagName(`style`)[0]||null;document.head.insertBefore(l,e)}else document.head.appendChild(l);a&&Cj(l,1),Tj(u,l)}else{let e=Sj(f);a?e===null?console.error(`[css-render/mount]: The style with id='${n}' has been mounted in no-count mode.`):Cj(f,e+1):e!==null&&console.error(`[css-render/mount]: The style with id='${n}' has been mounted in count mode.`)}return f??l}function Dj(e){return vj(this,this.instance,e)}function Oj(e={}){let{target:t,id:n,ssr:r,props:i,count:a=!1,head:o=!1,boost:s=!1,force:c=!1}=e;return Ej(this.instance,this,n??t,i,o,a,s,c,r)}function kj(e={}){let{id:t,target:n,delay:r=0,count:i=!1}=e;r===0?wj(this.instance,this,t??n,i):setTimeout(()=>wj(this.instance,this,t??n,i),r)}var Aj=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:Dj,mount:Oj,unmount:kj}};const jj=function(e,t,n,r){return Array.isArray(t)?Aj(e,{$:null},null,t):Array.isArray(n)?Aj(e,t,null,n):Array.isArray(r)?Aj(e,t,n,r):Aj(e,t,n,null)};function Mj(e={}){let t=null,n={c:((...e)=>jj(n,...e)),use:(e,...t)=>e.install(n,...t),find:bj,context:{},config:e,get __styleSheet(){if(!t){let e=document.createElement(`style`);return document.head.appendChild(e),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}var{c:Nj}=Mj(),Pj=Nj(`.xicon`,{width:`1em`,height:`1em`,display:`inline-flex`},[Nj(`svg`,{width:`1em`,height:`1em`}),Nj(`svg:not([fill])`,{fill:`currentColor`})]);const Fj=()=>{Pj.mount({id:`xicons-icon`})},Ij={size:[String,Number],color:String,tag:String},Lj=Symbol(`IconConfigInjection`),Rj=F({name:`IconConfigProvider`,props:Ij,setup(e,{slots:t}){return Zn(Lj,e),()=>ai(t,`default`)}}),zj=`span`,Bj=F({name:`Icon`,props:Ij,setup(e,{slots:t}){let n=Qn(Lj,null),r=I(()=>{let t=e.size??n?.size;if(t!==void 0)return typeof t==`number`||/^\d+$/.test(t)?`${t}px`:t}),i=I(()=>{let{color:t}=e;return t===void 0?n?n.color:void 0:t}),a=I(()=>{let{tag:t}=e;return t===void 0?n?.tag??`span`:t});return Jr(()=>{Fj()}),()=>L(a.value,{class:`xicon`,style:{color:i.value,fontSize:r.value}},[ai(t,`default`)])}});var Vj=F({__name:`Button`,props:{iconStyle:{},onClick:{type:Function},label:{},svgIcon:{}},setup(e){return(t,n)=>(Ea(),Ma(N(nT),{size:`small`,circle:``,onClick:e.onClick,"aria-label":e.label},{icon:Jn(()=>[Ra(N(Bj),null,{default:Jn(()=>[Ra(N(e.svgIcon),{style:xe(e.iconStyle)},null,8,[`style`])]),_:1})]),_:1},8,[`onClick`,`aria-label`]))}}),Hj=Vj;function Uj(e,t){return`item-`+e+`-`+t}function Wj(e){return parseInt(e.split(`-`)[2])}function Gj(e){return typeof e!=`string`&&(e=e.key),parseInt(e.split(`-`)[2])}function Kj(e){return e===R.headers.length-1||R.headers[e+1].level<=R.headers[e].level}function qj(e){let t=[],n=R.headers[e].level+1;for(let r=e;r>=0;r--)R.headers[r].level<n&&(t.push(r),n=R.headers[r].level);return t.reverse()}function Jj(e,t){try{return JSON.parse(e)}catch{return t}}function Yj(e){}function Xj({plugin:e,container:t,expanded:n,modifyExpandKeys:r}){let i=I(()=>Zj(R.headers)),a=M(0),o=M([]);VA(window,`click`,()=>{o.value=[]});function s(r){let i=qj(r),o=i.find(e=>!n.value.contains(Uj(R.headers[e].level,e)));o=o===void 0?i[i.length-1]:o,a.value=o,activeWindow.setTimeout(()=>{if(!e.settings.auto_scroll_into_view)return;let n=t.querySelector(`#no-${o}`);n&&n.scrollIntoView({block:`center`,behavior:`smooth`})},100)}return{data:i,nodeProps:I(()=>t=>{let s=parseInt(t.option.key.split(`-`)[1]),c=parseInt(t.option.key.split(`-`)[2]),u=t.option.label||``,d=a.value===c?`located`:``;function f(t){let n=t.key.split(`-`),r=parseInt(n[2]);e.navigator.jumpWhenClick(r)}return{class:`level-${s} ${d}`,id:`no-${c}`,"aria-label":R.ellipsis?t.option.label:``,"data-tooltip-position":R.labelDirection,raw:u,onClick:e=>{e.target,!e.target.matchParent(`.n-tree-node-switcher`)&&e.target.matchParent(`.n-tree-node`)&&f(t.option)},onContextmenu(a){o.value=[t.option.key];let{self:d,siblings:f,descendants:p}=$j(i,Wj(t.option.key)),m=new l.Menu().setNoIcon(),h=[d,...p].filter(e=>e.children).map(e=>e.key),g=f.filter(e=>e.children).map(e=>e.key);wc(m,[n.value.includes(t.option.key)?Tc(z(`Collapse Recursively`),()=>r(h,`remove`)):Tc(z(`Expand Recursively`),()=>r(h,`add`)),Tc(z(`Collapse Sibling`),()=>r(g,`remove`)),Tc(z(`Expand Sibling`),()=>r(g,`add`)),Oc()]),e.navigator.onRightClick(a,{node:t.option,no:c,level:s,raw:u},m,()=>{o.value=[]})}}}),locateIdx:a,resetLocated:s,selectedKeys:o}}function Zj(e){return Qj(e)}function Qj(e){let t={children:[]},n=[{node:t,level:-1}];return e.forEach((e,t)=>{let r={label:e.title,key:Uj(e.level,t),icon:e.icon,no:t};for(;e.level<=n.last().level;)n.pop();let i=n.last().node;i.children===void 0&&(i.children=[]),r.parent=i,i.children.push(r),n.push({node:r,level:e.level})}),t.children?.forEach(e=>e.parent=void 0),t.children}function $j(e,t){let n=[];function r(e){if(!e||e.length===0)return;let i=0;for(let r=e.length-1;r>=0;r--)if(Wj(e[r].key)<=t){n.push(e[r]),i=r;break}r(e[i].children)}r(e.value);let i=n[n.length-1],a=n[n.length-2]?n[n.length-2].children||[]:e.value,o=[];function s(e){if(!(!e||e.length===0))for(let t=0;t<e.length;t++){let n=e[t];o.push(n),s(n.children)}}return s(i.children),{self:i,path:n,siblings:a,descendants:o}}function eM(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var tM=eM();function nM(e){tM=e}var rM={exec:()=>null};function iM(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(oM.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var aM=(()=>{try{return!0}catch{return!1}})(),oM={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},sM=/^(?:[ \t]*(?:\n|$))+/,cM=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,lM=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,uM=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,dM=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,fM=/(?:[*+-]|\d{1,9}[.)])/,pM=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,mM=iM(pM).replace(/bull/g,fM).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),hM=iM(pM).replace(/bull/g,fM).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),gM=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,_M=/^[^\n]+/,vM=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,yM=iM(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,vM).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),bM=iM(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,fM).getRegex(),xM=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,SM=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,CM=iM(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,SM).replace(`tag`,xM).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),wM=iM(gM).replace(`hr`,uM).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,xM).getRegex(),TM={blockquote:iM(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,wM).getRegex(),code:cM,def:yM,fences:lM,heading:dM,hr:uM,html:CM,lheading:mM,list:bM,newline:sM,paragraph:wM,table:rM,text:_M},EM=iM(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,uM).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,xM).getRegex(),DM={...TM,lheading:hM,table:EM,paragraph:iM(gM).replace(`hr`,uM).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,EM).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,xM).getRegex()},OM={...TM,html:iM(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,SM).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:rM,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:iM(gM).replace(`hr`,uM).replace(`heading`,` *#{1,6} *[^
]`).replace(`lheading`,mM).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},kM=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,AM=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,jM=/^( {2,}|\\)\n(?!\s*$)/,MM=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,NM=/[\p{P}\p{S}]/u,PM=/[\s\p{P}\p{S}]/u,FM=/[^\s\p{P}\p{S}]/u,IM=iM(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,PM).getRegex(),LM=/(?!~)[\p{P}\p{S}]/u,RM=/(?!~)[\s\p{P}\p{S}]/u,zM=/(?:[^\s\p{P}\p{S}]|~)/u,BM=iM(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,aM?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),VM=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,HM=iM(VM,`u`).replace(/punct/g,NM).getRegex(),UM=iM(VM,`u`).replace(/punct/g,LM).getRegex(),WM=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,GM=iM(WM,`gu`).replace(/notPunctSpace/g,FM).replace(/punctSpace/g,PM).replace(/punct/g,NM).getRegex(),KM=iM(WM,`gu`).replace(/notPunctSpace/g,zM).replace(/punctSpace/g,RM).replace(/punct/g,LM).getRegex(),qM=iM(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,FM).replace(/punctSpace/g,PM).replace(/punct/g,NM).getRegex(),JM=iM(/\\(punct)/,`gu`).replace(/punct/g,NM).getRegex(),YM=iM(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),XM=iM(SM).replace(`(?:-->|$)`,`-->`).getRegex(),ZM=iM(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,XM).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),QM=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,$M=iM(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,QM).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),eN=iM(/^!?\[(label)\]\[(ref)\]/).replace(`label`,QM).replace(`ref`,vM).getRegex(),tN=iM(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,vM).getRegex(),nN=iM(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,eN).replace(`nolink`,tN).getRegex(),rN=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,iN={_backpedal:rM,anyPunctuation:JM,autolink:YM,blockSkip:BM,br:jM,code:AM,del:rM,emStrongLDelim:HM,emStrongRDelimAst:GM,emStrongRDelimUnd:qM,escape:kM,link:$M,nolink:tN,punctuation:IM,reflink:eN,reflinkSearch:nN,tag:ZM,text:MM,url:rM},aN={...iN,link:iM(/^!?\[(label)\]\((.*?)\)/).replace(`label`,QM).getRegex(),reflink:iM(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,QM).getRegex()},oN={...iN,emStrongRDelimAst:KM,emStrongLDelim:UM,url:iM(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,rN).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:iM(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,rN).getRegex()},sN={...oN,br:iM(jM).replace(`{2,}`,`*`).getRegex(),text:iM(oN.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},cN={normal:TM,gfm:DM,pedantic:OM},lN={normal:iN,gfm:oN,breaks:sN,pedantic:aN},uN={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},dN=e=>uN[e];function fN(e,t){if(t){if(oM.escapeTest.test(e))return e.replace(oM.escapeReplace,dN)}else if(oM.escapeTestNoEncode.test(e))return e.replace(oM.escapeReplaceNoEncode,dN);return e}function pN(e){try{e=encodeURI(e).replace(oM.percentDecode,`%`)}catch{return null}return e}function mN(e,t){let n=e.replace(oM.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(oM.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(oM.slashPipe,`|`);return n}function hN(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function gN(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function _N(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function vN(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
`)}var yN=class{options;rules;lexer;constructor(e){this.options=e||tM}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:hN(e,`
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=vN(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=hN(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:hN(t[0],`
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=hN(t[0],`
`).split(`
`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
`),c=s.replace(this.rules.other.blockquoteSetextReplace,`
$1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
${s}`:s,r=r?`${r}
${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
`+e.join(`
`),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}else if(u?.type===`list`){let t=u,a=t.raw+`
`+e.join(`
`),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
`);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=t[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,e=>` `.repeat(3*e.length)),l=e.split(`
`,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
`,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d);for(;e;){let f=e.split(`
`,1)[0],p;if(l=f,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),p=l):p=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||t.test(l)||n.test(l))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
`+p.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
`+l}!u&&!l.trim()&&(u=!0),r+=f+`
`,e=e.substring(f.length+1),c=p.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,``),e.tokens[0]?.type===`text`||e.tokens[0]?.type===`paragraph`){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,``),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:`checkbox`,raw:t[0]+` `,checked:t[0]!==`[ ]`};e.checked=n.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:`paragraph`,raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=mN(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
`):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(mN(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=hN(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=gN(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),_N(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return _N(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:`del`,raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},bN=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||tM,this.options.tokenizer=this.options.tokenizer||new yN,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:oM,block:cN.normal,inline:lN.normal};this.options.pedantic?(t.block=cN.pedantic,t.inline=lN.pedantic):this.options.gfm&&(t.block=cN.gfm,this.options.breaks?t.inline=lN.breaks:t.inline=lN.gfm),this.tokenizer.rules=t}static get rules(){return{block:cN,inline:lN}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(oM.carriageReturn,`
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(oM.tabCharGlobal,` `).replace(oM.spaceLine,``));e;){let r;if(this.options.extensions?.block?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=`
`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
`)?``:`
`)+r.raw,n.text+=`
`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
`)?``:`
`)+r.raw,n.text+=`
`+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type===`paragraph`?(a.raw+=(a.raw.endsWith(`
`)?``:`
`)+r.raw,a.text+=`
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
`)?``:`
`)+r.raw,n.text+=`
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``;for(;e;){a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return t}},xN=class{options;parser;constructor(e){this.options=e||tM}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(oM.notSpaceStart)?.[0],i=e.replace(oM.endingNewline,``)+`
`;return r?`<pre><code class="language-`+fN(r)+`">`+(n?i:fN(i,!0))+`</code></pre>
`:`<pre><code>`+(n?i:fN(i,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
`}hr(e){return`<hr>
`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
`+r+`</`+i+`>
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
`}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
<thead>
`+t+`</thead>
`+r+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${fN(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=pN(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+fN(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=pN(e);if(i===null)return fN(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${fN(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:fN(e.text)}},SN=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},CN=class e{options;renderer;textRenderer;constructor(e){this.options=e||tM,this.options.renderer=this.options.renderer||new xN,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new SN}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},wN=class{options;block;constructor(e){this.options=e||tM}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?bN.lex:bN.lexInline}provideParser(){return this.block?CN.parse:CN.parseInline}},TN=class{defaults=eM();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=CN;Renderer=xN;TextRenderer=SN;Lexer=bN;Tokenizer=yN;Hooks=wN;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new xN(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new yN(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new wN;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];wN.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&wN.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return bN.lex(e,t??this.defaults)}parser(e,t){return CN.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?bN.lex:bN.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser():e?CN.parse:CN.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?bN.lex:bN.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?CN.parse:CN.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+fN(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},EN=new TN;function DN(e,t){return EN.parse(e,t)}DN.options=DN.setOptions=function(e){return EN.setOptions(e),DN.defaults=EN.defaults,nM(DN.defaults),DN},DN.getDefaults=eM,DN.defaults=tM,DN.use=function(...e){return EN.use(...e),DN.defaults=EN.defaults,nM(DN.defaults),DN},DN.walkTokens=function(e,t){return EN.walkTokens(e,t)},DN.parseInline=EN.parseInline,DN.Parser=CN,DN.parser=CN.parse,DN.Renderer=xN,DN.TextRenderer=SN,DN.Lexer=bN,DN.lexer=bN.lex,DN.Tokenizer=yN,DN.Hooks=wN,DN.parse=DN;var ON=DN.options,kN=DN.setOptions,AN=DN.use,jN=DN.walkTokens,MN=DN.parseInline,NN=DN,PN=CN.parse,FN=bN.lex;const IN={name:`formula`,level:`inline`,start(e){return e.match(/\$/)?.index||-1},tokenizer(e,t){let n=/^\$([^$]+)\$/.exec(e);if(n)return{type:`formula`,raw:n[0],formula:n[1].trim()}},renderer(e){try{let t=(0,l.renderMath)(e.formula,!1);return t.setAttr(`origin`,e.formula),(0,l.finishRenderMath)(),t.outerHTML}catch{return(0,l.loadMathJax)().then(()=>{R.refreshTree()}),!1}}},LN={name:`internal`,level:`inline`,start(e){let t=e.match(/!?\[\[/);return t?t.index:-1},tokenizer(e,t){let n=/^!?\[\[([^[\]]+?)\]\]/.exec(e);if(n){let e=/.*\|(.*)/.exec(n[1]);return{type:`internal`,raw:n[0],internal:e?e[1]:n[1]}}},renderer(e){return`<span class="internal-link">${e.internal}</span>`}},RN={name:`ref`,level:`inline`,start(e){let t=e.match(/\^|\[/);return t?t.index:-1},tokenizer(e,t){let n=/^(\^[A-Za-z0-9-]+)|^(\^\[[^\]]*\])|^(\[\^[^\]]*\])/.exec(e);if(n)return{type:`ref`,raw:n[0],ref:(n[1]||n[2]||n[3]).trim()}},renderer(){return``}},zN={name:`highlight`,level:`inline`,start(e){let t=e.match(/==/);return t?t.index:-1},tokenizer(e,t){let n=/^==([^=]+)==/.exec(e);if(n)return{type:`highlight`,raw:n[0],internal:n[1]}},renderer(e){return`<mark>${e.internal}</mark>`}},BN={name:`tag`,level:`inline`,start(e){let t=/(^|\s)#/.exec(e);return t?t.index+t[1].length:-1},tokenizer(e,t){let n=/^#([^[\]{}:;'"`~,.<>?|\\!@#$%^&*()=+\d\s][^[\]{}:;'"`~,.<>?|\\!@#$%^&*()=+\s]*)/.exec(e);if(n)return{type:`tag`,raw:n[0],internal:n[1]}},renderer(e){return`<a href="" class="tag" target="_blank" rel="noopener">#${e.internal}</a>`}},VN=e=>{e.type===`link`&&(e.href=`#`)},HN={list(){}};function UN(){DN.use({extensions:[IN,LN,zN,BN,RN]}),DN.use({walkTokens:VN}),DN.use({tokenizer:HN})}UN();function WN(e){let t=M();return{renderLabel:I(()=>{let n=R.markdown?KN:({option:e})=>L(`div`,e.label);return({option:r})=>r.key===R.currentEditingKey?(t.value===void 0&&(t.value=r.label),L(xw,{value:t.value,onUpdateValue:e=>{t.value=e},onClick(e){e.stopPropagation()},onKeydown(n){n.key===`Enter`?(e.navigator.changeHeadingContent(r.no,t.value||``),R.currentEditingKey=``,t.value=void 0):n.key===`Escape`&&(R.currentEditingKey=``,t.value=void 0)}})):n({option:r})}),renderSwitcherIcon:qN,editingHeadingText:t,renderPrefix:JN}}function GN(e){let t=DN.parse(e||``,{async:!1}).trim(),n=0,r=t.match(/<mjx-container.*?>.*?<\/mjx-container>/g)||[];return t=t.replace(/<mjx-container.*?>.*?<\/mjx-container>/g,()=>`<math></math>`),t=(0,l.sanitizeHTMLToDom)(`<div>${t}</div>`).children[0].innerHTML,t=t.replace(/<math.*?>.*?<\/math>/g,()=>r[n++]),t}function KN({option:e}){return L(`div`,{innerHTML:GN(e.label)})}function qN(){return L(Bj,{size:`12px`},{default:()=>L(tj)})}function JN({option:e}){if(!e.icon)return null;let t=null;switch(e.icon){default:t=L(ij,{id:e.icon})}return L(Bj,{size:`1.2em`},{default:()=>t})}function YN(e,t){let n,r,i=``;function a(e){let t=e.target.closest(`.n-tree-node`);t&&(n=t,r=e,addEventListener(`keydown`,l))}function o(e){removeEventListener(`keydown`,l)}let s=t=>e.settings.show_popover_key===`ctrlKey`&&t.ctrlKey||e.settings.show_popover_key===`altKey`&&t.altKey||e.settings.show_popover_key===`metaKey`&&t.metaKey;function c(t){s(t)&&e.app.workspace.trigger(`hover-link`,{event:r,source:`preview`,targetEl:n,hoverParent:{hoverPopover:null},linktext:`#`+n?.getAttribute(`raw`),sourcePath:e.navigator.getPath()})}let l=u(c,100);function u(e,t){let r=!0,a;return function(...o){let s=n?.getAttribute(`raw`)||``;if(s!==i||r){e(...o),r=!1,i=s;return}a&&activeWindow.clearTimeout(a),a=activeWindow.setTimeout(()=>{r=!0},t)}}Yr(()=>{t.addEventListener(`mouseover`,a),t.addEventListener(`mouseout`,o)}),$r(()=>{t.removeEventListener(`mouseover`,a),t.removeEventListener(`mouseout`,o),removeEventListener(`keydown`,l)})}function XN(){let e=I(()=>R.dark?BA:null),t=I(()=>R.theme.patchColor?R.dark?R.theme.primaryColorDark:R.theme.primaryColorLight:(R.cssChange,ZN())),n=I(()=>(R.dark,{color:`var(--icon-color)`})),r=I(()=>{let e=R.theme.patchColor?R.theme.primaryColorLight:t.value;return{common:{primaryColor:e,primaryColorHover:e},Slider:{handleSize:`10px`,fillColor:e,fillColorHover:e,dotBorderActive:`2px solid ${e}`},Tree:{nodeTextColor:`var(--nav-item-color)`,arrowColor:`var(--nav-collapse-icon-color)`}}}),i=I(()=>{let e=R.theme.patchColor?R.theme.primaryColorDark:t.value;return{common:{primaryColor:e,primaryColorHover:e},Slider:{handleSize:`10px`,fillColor:e,fillColorHover:e,dotBorderActive:`2px solid ${e}`},Tree:{nodeTextColor:`var(--nav-item-color)`,arrowColor:`var(--nav-collapse-icon-color)`}}});return{theme:e,themeOverrides:I(()=>e.value===null?r.value:i.value),iconColor:n,primaryColor:t,rainbowColors:I(()=>R.theme.rainbowLine?{h1:`rgba(${$N(R.theme.rainbowColor1)}, 0.6)`,h2:`rgba(${$N(R.theme.rainbowColor2)}, 0.6)`,h3:`rgba(${$N(R.theme.rainbowColor3)}, 0.6)`,h4:`rgba(${$N(R.theme.rainbowColor4)}, 0.6)`,h5:`rgba(${$N(R.theme.rainbowColor5)}, 0.6)`}:{h1:`var(--nav-indentation-guide-color)`,h2:`var(--nav-indentation-guide-color)`,h3:`var(--nav-indentation-guide-color)`,h4:`var(--nav-indentation-guide-color)`,h5:`var(--nav-indentation-guide-color)`}),containerStyle:I(()=>{let e={};if(e[`--custom-font-size`]=R.theme.fontSize,e[`--custom-font-family`]=R.theme.fontFamily,e[`--custom-font-weight`]=R.theme.fontWeight,e[`--custom-line-height`]=R.theme.lineHeight,e[`--custom-line-gap`]=R.theme.lineGap,R.theme.customFontColor){let t=R.dark?R.theme.h1ColorDark:R.theme.h1ColorLight,n=R.dark?R.theme.h2ColorDark:R.theme.h2ColorLight,r=R.dark?R.theme.h3ColorDark:R.theme.h3ColorLight,i=R.dark?R.theme.h4ColorDark:R.theme.h4ColorLight,a=R.dark?R.theme.h5ColorDark:R.theme.h5ColorLight,o=R.dark?R.theme.h6ColorDark:R.theme.h6ColorLight;e[`--h1-color`]=t,e[`--h2-color`]=n,e[`--h3-color`]=r,e[`--h4-color`]=i,e[`--h5-color`]=a,e[`--h6-color`]=o}return e}),biDi:I(()=>R.textDirectionDecideBy===`text`?`plaintext`:`isolate`)}}function ZN(){let e=activeDocument.body.createDiv({attr:{style:`width: 0px; height: 0px; background-color: var(--interactive-accent);`}}),t=activeWindow.getComputedStyle(e,null).getPropertyValue(`background-color`);return e.remove(),QN(t)}function QN(e){if(!CSS.supports(`color`,e))return`rgba(0, 0, 0, 0)`;let t=activeDocument.createElement(`canvas`);t.width=t.height=1;let n=t.getContext(`2d`,{willReadFrequently:!0});n.clearRect(0,0,1,1),n.fillStyle=e,n.fillRect(0,0,1,1);let[r,i,a,o]=n.getImageData(0,0,1,1).data;return`rgba(${r}, ${i}, ${a}, ${o/255})`}function $N(e){return`${parseInt(e.slice(1,3),16)},${parseInt(e.slice(3,5),16)},${parseInt(e.slice(5,7),16)}`}function eP(e,t){Yr(()=>{e.addEventListener(`dragstart`,e=>{if(!t.navigator.canDrop)return;let n=e.target;if(!n||!n.hasClass(`n-tree-node`))return;let r=parseInt(n.id.slice(3)),i=R.headers[r];e.dataTransfer?.setData(`text/plain`,i.title),t.app.dragManager.onDragStart(e,{source:`outline`,type:`heading`,icon:`heading-glyph`,title:i.title,heading:i,file:t.navigator.view.file})})});async function n({node:e,dragNode:n,dropPosition:r}){if(!t.navigator.canDrop)return;let i=Gj(n),a=Gj(e);await t.navigator.handleDrop(i,a,r)}return{onDrop:n}}var tP;(function(e){e.Root=`root`,e.Text=`text`,e.Directive=`directive`,e.Comment=`comment`,e.Script=`script`,e.Style=`style`,e.Tag=`tag`,e.CDATA=`cdata`,e.Doctype=`doctype`})(tP||={});function nP(e){return e.type===tP.Tag||e.type===tP.Script||e.type===tP.Style}const rP=tP.Root,iP=tP.Text,aP=tP.Directive,oP=tP.Comment,sP=tP.Script,cP=tP.Style,lP=tP.Tag,uP=tP.CDATA,dP=tP.Doctype;var fP=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return DP(this,e)}},pP=class extends fP{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},mP=class extends pP{constructor(){super(...arguments),this.type=tP.Text}get nodeType(){return 3}},hP=class extends pP{constructor(){super(...arguments),this.type=tP.Comment}get nodeType(){return 8}},gP=class extends pP{constructor(e,t){super(t),this.name=e,this.type=tP.Directive}get nodeType(){return 1}},_P=class extends fP{constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},vP=class extends _P{constructor(){super(...arguments),this.type=tP.CDATA}get nodeType(){return 4}},yP=class extends _P{constructor(){super(...arguments),this.type=tP.Root}get nodeType(){return 9}},bP=class extends _P{constructor(e,t,n=[],r=e===`script`?tP.Script:e===`style`?tP.Style:tP.Tag){super(n),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this[`x-attribsNamespace`]?.[e],prefix:this[`x-attribsPrefix`]?.[e]}))}};function xP(e){return nP(e)}function SP(e){return e.type===tP.CDATA}function CP(e){return e.type===tP.Text}function wP(e){return e.type===tP.Comment}function TP(e){return e.type===tP.Directive}function EP(e){return e.type===tP.Root}function DP(e,t=!1){let n;if(CP(e))n=new mP(e.data);else if(wP(e))n=new hP(e.data);else if(xP(e)){let r=t?OP(e.children):[],i=new bP(e.name,{...e.attribs},r);r.forEach(e=>e.parent=i),e.namespace!=null&&(i.namespace=e.namespace),e[`x-attribsNamespace`]&&(i[`x-attribsNamespace`]={...e[`x-attribsNamespace`]}),e[`x-attribsPrefix`]&&(i[`x-attribsPrefix`]={...e[`x-attribsPrefix`]}),n=i}else if(SP(e)){let r=t?OP(e.children):[],i=new vP(r);r.forEach(e=>e.parent=i),n=i}else if(EP(e)){let r=t?OP(e.children):[],i=new yP(r);r.forEach(e=>e.parent=i),e[`x-mode`]&&(i[`x-mode`]=e[`x-mode`]),n=i}else if(TP(e)){let t=new gP(e.name,e.data);e[`x-name`]!=null&&(t[`x-name`]=e[`x-name`],t[`x-publicId`]=e[`x-publicId`],t[`x-systemId`]=e[`x-systemId`]),n=t}else throw Error(`Not implemented yet: ${e.type}`);return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function OP(e){let t=e.map(e=>DP(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}var kP={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},AP=class{constructor(e,t,n){this.dom=[],this.root=new yP(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof t==`function`&&(n=t,t=kP),typeof e==`object`&&(t=e,e=void 0),this.callback=e??null,this.options=t??kP,this.elementCB=n??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new yP(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;let e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){let n=new bP(e,t,void 0,this.options.xmlMode?tP.Tag:void 0);this.addNode(n),this.tagStack.push(n)}ontext(e){let{lastNode:t}=this;if(t&&t.type===tP.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{let t=new mP(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===tP.Comment){this.lastNode.data+=e;return}let t=new hP(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){let e=new mP(``),t=new vP([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){let n=new gP(e,t);this.addNode(n)}handleCallback(e){if(typeof this.callback==`function`)this.callback(e,this.dom);else if(e)throw e}addNode(e){let t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null}},jP=/\n/g;function MP(e){let t=[...e.matchAll(jP)].map((e=>e.index||0));t.unshift(-1);let n=NP(t,0,t.length);return e=>PP(n,e)}function NP(e,t,n){if(n-t==1)return{offset:e[t],index:t+1};let r=Math.ceil((t+n)/2),i=NP(e,t,r),a=NP(e,r,n);return{offset:i.offset,low:i,high:a}}function PP(e,t){return function(e){return Object.prototype.hasOwnProperty.call(e,`index`)}(e)?{line:e.index,column:t-e.offset}:PP(e.high.offset<t?e.high:e.low,t)}function FP(e,t=``,n={}){let r=typeof t==`string`?n:t,i=typeof t==`string`?t:``,a=e.map(IP),o=!!r.lineNumbers;return function(e,t=0){let n=o?MP(e):()=>({line:0,column:0}),r=t,s=[];e:for(;r<e.length;){let t=!1;for(let o of a){o.regex.lastIndex=r;let a=o.regex.exec(e);if(a&&a[0].length>0){if(!o.discard){let e=n(r),t=typeof o.replace==`string`?a[0].replace(new RegExp(o.regex.source,o.regex.flags),o.replace):a[0];s.push({state:i,name:o.name,text:t,offset:r,len:a[0].length,line:e.line,column:e.column})}if(r=o.regex.lastIndex,t=!0,o.push){let t=o.push(e,r);s.push(...t.tokens),r=t.offset}if(o.pop)break e;break}}if(!t)break}return{tokens:s,offset:r,complete:e.length<=r}}}function IP(e,t){return{...e,regex:LP(e,t)}}function LP(e,t){if(e.name.length===0)throw Error(`Rule #${t} has empty name, which is not allowed.`);if(function(e){return Object.prototype.hasOwnProperty.call(e,`regex`)}(e))return function(e){if(e.global)throw Error(`Regular expression /${e.source}/${e.flags} contains the global flag, which is not allowed.`);return e.sticky?e:new RegExp(e.source,e.flags+`y`)}(e.regex);if(function(e){return Object.prototype.hasOwnProperty.call(e,`str`)}(e)){if(e.str.length===0)throw Error(`Rule #${t} ("${e.name}") has empty "str" property, which is not allowed.`);return new RegExp(RP(e.str),`y`)}return new RegExp(RP(e.name),`y`)}function RP(e){return e.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,`\\$&`)}function zP(e,t){return(n,r)=>{let i=r,a;return r<n.tokens.length?(a=e(n.tokens[r],n,r),a!==void 0&&i++):t?.(n,r),a===void 0?{matched:!1}:{matched:!0,position:i,value:a}}}function BP(e,t){return e.matched?{matched:!0,position:e.position,value:t(e.value,e.position)}:e}function VP(e,t){return e.matched?t(e):e}function HP(e,t){return(n,r)=>BP(e(n,r),(e,i)=>t(e,n,r,i))}function UP(e,t){return(n,r)=>{let i=e(n,r);return i.matched?i:{matched:!0,position:r,value:t}}}function WP(...e){return(t,n)=>{for(let r of e){let e=r(t,n);if(e.matched)return e}return{matched:!1}}}function GP(e,t){return(n,r)=>{let i=e(n,r);return i.matched?i:t(n,r)}}function KP(e,t){return(n,r)=>{let i=[],a=!0;do{let o=e(n,r);o.matched&&t(o.value,i.length+1,n,r,o.position)?(i.push(o.value),r=o.position):a=!1}while(a);return{matched:!0,position:r,value:i}}}function qP(e){return KP(e,()=>!0)}function JP(e){return YP(e,qP(e),(e,t)=>[e,...t])}function YP(e,t,n){return(r,i)=>VP(e(r,i),e=>BP(t(r,e.position),(t,a)=>n(e.value,t,r,i,a)))}function XP(e,t){return YP(e,t,e=>e)}function ZP(e,t){return YP(e,t,(e,t)=>t)}function QP(e,t,n,r){return(i,a)=>VP(e(i,a),e=>VP(t(i,e.position),t=>BP(n(i,t.position),(n,o)=>r(e.value,t.value,n,i,a,o))))}function $P(e,t,n){return QP(e,t,n,(e,t)=>t)}function eF(...e){return(t,n)=>{let r=[],i=n;for(let n of e){let e=n(t,i);if(e.matched)r.push(e.value),i=e.position;else return{matched:!1}}return{matched:!0,position:i,value:r}}}function tF(...e){return nF(eF(...e))}function nF(e){return HP(e,e=>e.flatMap(e=>e))}function rF(e,t){return(n,r)=>{let i=!0,a=e,o=r;do{let e=t(a,n,o)(n,o);e.matched?(a=e.value,o=e.position):i=!1}while(i);return{matched:!0,position:o,value:a}}}function iF(e,t,n){return rF(e,e=>HP(t,(t,r,i,a)=>n(e,t,r,i,a)))}function aF(e,t,n){return oF(e,e=>iF(e,YP(t,n,(e,t)=>[e,t]),(e,[t,n])=>t(e,n)))}function oF(e,t){return(n,r)=>VP(e(n,r),e=>t(e.value,n,r,e.position)(n,e.position))}var sF=`(?:[ \\t\\r\\n\\f]*)`,cF=`(?:\\n|\\r\\n|\\r|\\f)`,lF=`[^\\x00-\\x7F]`,uF=`(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)`,dF=`(?:\\\\[^\\n\\r\\f0-9a-f])`,fF=`(?:[_a-z]|${lF}|${uF}|${dF})`,pF=`(?:[_a-z0-9-]|${lF}|${uF}|${dF})`,mF=`(?:${pF}+)`,hF=`(?:[-]?${fF}${pF}*)`,gF=`'([^\\n\\r\\f\\\\']|\\\\${cF}|${lF}|${uF}|${dF})*'`,_F=`"([^\\n\\r\\f\\\\"]|\\\\${cF}|${lF}|${uF}|${dF})*"`,vF=FP([{name:`ws`,regex:new RegExp(sF)},{name:`hash`,regex:RegExp(`#${mF}`,`i`)},{name:`ident`,regex:new RegExp(hF,`i`)},{name:`str1`,regex:new RegExp(gF,`i`)},{name:`str2`,regex:new RegExp(_F,`i`)},{name:`*`},{name:`.`},{name:`,`},{name:`[`},{name:`]`},{name:`=`},{name:`>`},{name:`|`},{name:`+`},{name:`~`},{name:`^`},{name:`$`}]),yF=FP([{name:`unicode`,regex:new RegExp(uF,`i`)},{name:`escape`,regex:new RegExp(dF,`i`)},{name:`any`,regex:RegExp(`[\\s\\S]`,`i`)}]);function bF([e,t,n],[r,i,a]){return[e+r,t+i,n+a]}function xF(e){return e.reduce(bF,[0,0,0])}var SF=zP(e=>e.name===`unicode`?String.fromCodePoint(parseInt(e.text.slice(1),16)):void 0),CF=zP(e=>e.name===`escape`?e.text.slice(1):void 0),wF=zP(e=>e.name===`any`?e.text:void 0),TF=HP(qP(WP(SF,CF,wF)),e=>e.join(``));function EF(e){return TF({tokens:yF(e).tokens,options:void 0},0).value}function DF(e){return zP(t=>t.name===e?!0:void 0)}var OF=zP(e=>e.name===`ws`?null:void 0),kF=UP(OF,null);function AF(e){return $P(kF,e,kF)}var jF=zP(e=>e.name===`ident`?EF(e.text):void 0),MF=zP(e=>e.name===`hash`?EF(e.text.slice(1)):void 0),NF=zP(e=>e.name.startsWith(`str`)?EF(e.text.slice(1,-1)):void 0),PF=XP(UP(jF,``),DF(`|`)),FF=GP(YP(PF,jF,(e,t)=>({name:t,namespace:e})),HP(jF,e=>({name:e,namespace:null}))),IF=GP(YP(PF,DF(`*`),e=>({type:`universal`,namespace:e,specificity:[0,0,0]})),HP(DF(`*`),()=>({type:`universal`,namespace:null,specificity:[0,0,0]}))),LF=HP(FF,({name:e,namespace:t})=>({type:`tag`,name:e,namespace:t,specificity:[0,0,1]})),RF=YP(DF(`.`),jF,(e,t)=>({type:`class`,name:t,specificity:[0,1,0]})),zF=HP(MF,e=>({type:`id`,name:e,specificity:[1,0,0]})),BF=zP(e=>{if(e.name===`ident`){if(e.text===`i`||e.text===`I`)return`i`;if(e.text===`s`||e.text===`S`)return`s`}}),VF=GP(YP(NF,UP(ZP(kF,BF),null),(e,t)=>({value:e,modifier:t})),YP(jF,UP(ZP(OF,BF),null),(e,t)=>({value:e,modifier:t}))),HF=WP(HP(DF(`=`),()=>`=`),YP(DF(`~`),DF(`=`),()=>`~=`),YP(DF(`|`),DF(`=`),()=>`|=`),YP(DF(`^`),DF(`=`),()=>`^=`),YP(DF(`$`),DF(`=`),()=>`$=`),YP(DF(`*`),DF(`=`),()=>`*=`)),UF=QP(DF(`[`),AF(FF),DF(`]`),(e,{name:t,namespace:n})=>({type:`attrPresence`,name:t,namespace:n,specificity:[0,1,0]})),WF=$P(DF(`[`),QP(AF(FF),HF,AF(VF),({name:e,namespace:t},n,{value:r,modifier:i})=>({type:`attrValue`,name:e,namespace:t,matcher:n,value:r,modifier:i,specificity:[0,1,0]})),DF(`]`)),GF=GP(UF,WF),KF=GP(IF,LF),qF=WP(zF,RF,GF),JF=HP(GP(tF(KF,qP(qF)),JP(qF)),e=>({type:`compound`,list:e,specificity:xF(e.map(e=>e.specificity))})),YF=WP(HP(DF(`>`),()=>`>`),HP(DF(`+`),()=>`+`),HP(DF(`~`),()=>`~`),YP(DF(`|`),DF(`|`),()=>`||`)),XF=GP(AF(YF),HP(OF,()=>` `)),ZF=aF(JF,HP(XF,e=>(t,n)=>({type:`compound`,list:[...n.list,{type:`combinator`,combinator:e,left:t,specificity:t.specificity}],specificity:bF(t.specificity,n.specificity)})),JF),QF=aF(HP(ZF,e=>({type:`list`,list:[e]})),HP(AF(DF(`,`)),()=>(e,t)=>({type:`list`,list:[...e.list,t]})),ZF);function $F(e,t){if(!(typeof t==`string`||t instanceof String))throw Error(`Expected a selector string. Actual input is not a string!`);let n=vF(t);if(!n.complete)throw Error(`The input "${t}" was only partially tokenized, stopped at offset ${n.offset}!\n`+eI(t,n.offset));let r=AF(e)({tokens:n.tokens,options:void 0},0);if(!r.matched)throw Error(`No match for "${t}" input!`);if(r.position<n.tokens.length){let e=n.tokens[r.position];throw Error(`The input "${t}" was only partially parsed, stopped at offset ${e.offset}!\n`+eI(t,e.offset,e.len))}return r.value}function eI(e,t,n=1){return`${e.replace(/(\t)|(\r)|(\n)/g,(e,t,n)=>t?``:n?``:``)}\n${``.padEnd(t)}${`^`.repeat(n)}`}function tI(e){return $F(ZF,e)}function nI(e){if(!e.type)throw Error(`This is not an AST node.`);switch(e.type){case`universal`:return rI(e.namespace)+`*`;case`tag`:return rI(e.namespace)+aI(e.name);case`class`:return`.`+aI(e.name);case`id`:return`#`+aI(e.name);case`attrPresence`:return`[${rI(e.namespace)}${aI(e.name)}]`;case`attrValue`:return`[${rI(e.namespace)}${aI(e.name)}${e.matcher}"${oI(e.value)}"${e.modifier?e.modifier:``}]`;case`combinator`:return nI(e.left)+e.combinator;case`compound`:return e.list.reduce((e,t)=>t.type===`combinator`?nI(t)+e:e+nI(t),``);case`list`:return e.list.map(nI).join(`,`)}}function rI(e){return e||e===``?aI(e)+`|`:``}function iI(e){return`\\${e.codePointAt(0).toString(16)} `}function aI(e){return e.replace(/(^[0-9])|(^-[0-9])|(^-$)|([-0-9a-zA-Z_]|[^\x00-\x7F])|(\x00)|([\x01-\x1f]|\x7f)|([\s\S])/g,(e,t,n,r,i,a,o,s)=>t?iI(t):n?`-`+iI(n.slice(1)):r?`\\-`:i||(a?``:o?iI(o):`\\`+s))}function oI(e){return e.replace(/(")|(\\)|(\x00)|([\x01-\x1f]|\x7f)/g,(e,t,n,r,i)=>t?`\\"`:n?`\\\\`:r?``:iI(i))}function sI(e){if(!e.type)throw Error(`This is not an AST node.`);switch(e.type){case`compound`:e.list.forEach(sI),e.list.sort((e,t)=>uI(cI(e),cI(t)));break;case`combinator`:sI(e.left);break;case`list`:e.list.forEach(sI),e.list.sort((e,t)=>nI(e)<nI(t)?-1:1);break}return e}function cI(e){switch(e.type){case`universal`:return[1];case`tag`:return[1];case`id`:return[2];case`class`:return[3,e.name];case`attrPresence`:return[4,nI(e)];case`attrValue`:return[5,nI(e)];case`combinator`:return[15,nI(e)]}}function lI(e,t){return uI(e,t)}function uI(e,t){if(!Array.isArray(e)||!Array.isArray(t))throw Error(`Arguments must be arrays.`);let n=e.length<t.length?e.length:t.length;for(let r=0;r<n;r++)if(e[r]!==t[r])return e[r]<t[r]?-1:1;return e.length-t.length}var dI=class{constructor(e){this.branches=hI(fI(e))}build(e){return e(this.branches)}};function fI(e){let t=e.length,n=Array(t);for(let r=0;r<t;r++){let[t,i]=e[r],a=pI(tI(t));n[r]={ast:a,terminal:{type:`terminal`,valueContainer:{index:r,value:i,specificity:a.specificity}}}}return n}function pI(e){return mI(e),sI(e),e}function mI(e){let t=[];e.list.forEach(e=>{switch(e.type){case`class`:t.push({matcher:`~=`,modifier:null,name:`class`,namespace:null,specificity:e.specificity,type:`attrValue`,value:e.name});break;case`id`:t.push({matcher:`=`,modifier:null,name:`id`,namespace:null,specificity:e.specificity,type:`attrValue`,value:e.name});break;case`combinator`:mI(e.left),t.push(e);break;case`universal`:break;default:t.push(e);break}}),e.list=t}function hI(e){let t=[];for(;e.length;){let n=DI(e,e=>!0,vI),{matches:r,nonmatches:i,empty:a}=_I(e,n);e=i,r.length&&t.push(yI(n,r)),a.length&&t.push(...gI(a))}return t}function gI(e){let t=[];for(let n of e){let e=n.terminal;if(e.type===`terminal`)t.push(e);else{let{matches:n,rest:r}=OI(e.cont,e=>e.type===`terminal`);n.forEach(e=>t.push(e)),r.length&&(e.cont=r,t.push(e))}}return t}function _I(e,t){let n=[],r=[],i=[];for(let a of e){let e=a.ast.list;e.length?(e.some(e=>vI(e)===t)?n:r).push(a):i.push(a)}return{matches:n,nonmatches:r,empty:i}}function vI(e){switch(e.type){case`attrPresence`:return`attrPresence ${e.name}`;case`attrValue`:return`attrValue ${e.name}`;case`combinator`:return`combinator ${e.combinator}`;default:return e.type}}function yI(e,t){if(e===`tag`)return bI(t);if(e.startsWith(`attrValue `))return SI(e.substring(10),t);if(e.startsWith(`attrPresence `))return xI(e.substring(13),t);if(e===`combinator >`)return wI(`>`,t);if(e===`combinator +`)return wI(`+`,t);throw Error(`Unsupported selector kind: ${e}`)}function bI(e){let t=TI(e,e=>e.type===`tag`,e=>e.name);return{type:`tagName`,variants:Object.entries(t).map(([e,t])=>({type:`variant`,value:e,cont:hI(t.items)}))}}function xI(e,t){for(let n of t)EI(n,t=>t.type===`attrPresence`&&t.name===e);return{type:`attrPresence`,name:e,cont:hI(t)}}function SI(e,t){let n=TI(t,t=>t.type===`attrValue`&&t.name===e,e=>`${e.matcher} ${e.modifier||``} ${e.value}`),r=[];for(let e of Object.values(n)){let t=e.oneSimpleSelector,n=CI(t),i=hI(e.items);r.push({type:`matcher`,matcher:t.matcher,modifier:t.modifier,value:t.value,predicate:n,cont:i})}return{type:`attrValue`,name:e,matchers:r}}function CI(e){if(e.modifier===`i`){let t=e.value.toLowerCase();switch(e.matcher){case`=`:return e=>t===e.toLowerCase();case`~=`:return e=>e.toLowerCase().split(/[ \t]+/).includes(t);case`^=`:return e=>e.toLowerCase().startsWith(t);case`$=`:return e=>e.toLowerCase().endsWith(t);case`*=`:return e=>e.toLowerCase().includes(t);case`|=`:return e=>{let n=e.toLowerCase();return t===n||n.startsWith(t)&&n[t.length]===`-`}}}else{let t=e.value;switch(e.matcher){case`=`:return e=>t===e;case`~=`:return e=>e.split(/[ \t]+/).includes(t);case`^=`:return e=>e.startsWith(t);case`$=`:return e=>e.endsWith(t);case`*=`:return e=>e.includes(t);case`|=`:return e=>t===e||e.startsWith(t)&&e[t.length]===`-`}}}function wI(e,t){let n=TI(t,t=>t.type===`combinator`&&t.combinator===e,e=>nI(e.left)),r=[];for(let e of Object.values(n)){let t=hI(e.items),n=e.oneSimpleSelector.left;r.push({ast:n,terminal:{type:`popElement`,cont:t}})}return{type:`pushElement`,combinator:e,cont:hI(r)}}function TI(e,t,n){let r={};for(;e.length;){let i=DI(e,t,n),a=e=>t(e)&&n(e)===i,{matches:o,rest:s}=kI(e,e=>e.ast.list.some(a)),c=null;for(let e of o){let t=EI(e,a);c||=t}if(c==null)throw Error(`No simple selector is found.`);r[i]={oneSimpleSelector:c,items:o},e=s}return r}function EI(e,t){let n=e.ast.list,r=Array(n.length),i=-1;for(let e=n.length;e-- >0;)t(n[e])&&(r[e]=!0,i=e);if(i==-1)throw Error(`Couldn't find the required simple selector.`);let a=n[i];return e.ast.list=n.filter((e,t)=>!r[t]),a}function DI(e,t,n){let r={};for(let i of e){let e={};for(let r of i.ast.list.filter(t))e[n(r)]=!0;for(let t of Object.keys(e))r[t]?r[t]++:r[t]=1}let i=``,a=0;for(let e of Object.entries(r))e[1]>a&&(i=e[0],a=e[1]);return i}function OI(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return{matches:n,rest:r}}function kI(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return{matches:n,rest:r}}var AI=class{constructor(e){this.f=e}pickAll(e){return this.f(e)}pick1(e,t=!1){let n=this.f(e),r=n.length;if(r===0)return null;if(r===1)return n[0].value;let i=t?jI:MI,a=n[0];for(let e=1;e<r;e++){let t=n[e];i(a,t)&&(a=t)}return a.value}};function jI(e,t){let n=lI(t.specificity,e.specificity);return n>0||n===0&&t.index<e.index}function MI(e,t){let n=lI(t.specificity,e.specificity);return n>0||n===0&&t.index>e.index}function NI(e){return new AI(PI(e))}function PI(e){let t=e.map(FI);return(e,...n)=>t.flatMap(t=>t(e,...n))}function FI(e){switch(e.type){case`terminal`:{let t=[e.valueContainer];return(e,...n)=>t}case`tagName`:return II(e);case`attrValue`:return RI(e);case`attrPresence`:return LI(e);case`pushElement`:return zI(e);case`popElement`:return HI(e)}}function II(e){let t={};for(let n of e.variants)t[n.value]=PI(n.cont);return(e,...n)=>{let r=t[e.name];return r?r(e,...n):[]}}function LI(e){let t=e.name,n=PI(e.cont);return(e,...r)=>Object.prototype.hasOwnProperty.call(e.attribs,t)?n(e,...r):[]}function RI(e){let t=[];for(let n of e.matchers){let e=n.predicate,r=PI(n.cont);t.push((t,n,...i)=>e(t)?r(n,...i):[])}let n=e.name;return(e,...r)=>{let i=e.attribs[n];return i||i===``?t.flatMap(t=>t(i,e,...r)):[]}}function zI(e){let t=PI(e.cont),n=e.combinator===`+`?BI:VI;return(e,...r)=>{let i=n(e);return i===null?[]:t(i,e,...r)}}var BI=e=>{let t=e.prev;return t===null?null:xP(t)?t:BI(t)},VI=e=>{let t=e.parent;return t&&xP(t)?t:null};function HI(e){let t=PI(e.cont);return(e,n,...r)=>t(n,...r)}var UI=new Uint16Array(`ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0\0\0\0\0ᬡᬮ᭍᭒\0\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0\0ᾡᾧ\0\0ῆῌ\0\0ῦῪ \0llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0\0\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xA0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌`.split(``).map(e=>e.charCodeAt(0))),WI=new Uint16Array(`Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢`.split(``).map(e=>e.charCodeAt(0))),GI,KI=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);const qI=(GI=String.fromCodePoint)??function(e){let t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function JI(e){return e>=55296&&e<=57343||e>1114111?65533:KI.get(e)??e}var YI;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(YI||={});var XI=32,ZI;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(ZI||={});function QI(e){return e>=YI.ZERO&&e<=YI.NINE}function $I(e){return e>=YI.UPPER_A&&e<=YI.UPPER_F||e>=YI.LOWER_A&&e<=YI.LOWER_F}function eL(e){return e>=YI.UPPER_A&&e<=YI.UPPER_Z||e>=YI.LOWER_A&&e<=YI.LOWER_Z||QI(e)}function tL(e){return e===YI.EQUALS||eL(e)}var nL;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(nL||={});var rL;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(rL||={});var iL=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=nL.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=rL.Strict}startEntity(e){this.decodeMode=e,this.state=nL.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case nL.EntityStart:return e.charCodeAt(t)===YI.NUM?(this.state=nL.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=nL.NamedEntity,this.stateNamedEntity(e,t));case nL.NumericStart:return this.stateNumericStart(e,t);case nL.NumericDecimal:return this.stateNumericDecimal(e,t);case nL.NumericHex:return this.stateNumericHex(e,t);case nL.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|XI)===YI.LOWER_X?(this.state=nL.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=nL.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(QI(r)||$I(r))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(QI(r))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)==null||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===YI.SEMI)this.consumed+=1;else if(this.decodeMode===rL.Strict)return 0;return this.emitCodePoint(JI(this.result),this.consumed),this.errors&&(e!==YI.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&ZI.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=oL(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===rL.Attribute&&(i===0||tL(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&ZI.VALUE_LENGTH)>>14,i!==0){if(a===YI.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==rL.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&ZI.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~ZI.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case nL.NamedEntity:return this.result!==0&&(this.decodeMode!==rL.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case nL.NumericDecimal:return this.emitNumericEntity(0,2);case nL.NumericHex:return this.emitNumericEntity(0,3);case nL.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case nL.EntityStart:return 0}}};function aL(e){let t=``,n=new iL(e,e=>t+=qI(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf(`&`,a))>=0;){t+=e.slice(i,a),n.startEntity(r);let o=n.write(e,a+1);if(o<0){i=a+n.end();break}i=a+o,a=o===0?i+1:i}let o=t+e.slice(i);return t=``,o}}function oL(e,t,n,r){let i=(t&ZI.BRANCH_LENGTH)>>7,a=t&ZI.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(n<r)o=t+1;else if(n>r)s=t-1;else return e[t+i]}return-1}var sL=aL(UI),cL=aL(WI),Q;(function(e){e[e.Tab=9]=`Tab`,e[e.NewLine=10]=`NewLine`,e[e.FormFeed=12]=`FormFeed`,e[e.CarriageReturn=13]=`CarriageReturn`,e[e.Space=32]=`Space`,e[e.ExclamationMark=33]=`ExclamationMark`,e[e.Number=35]=`Number`,e[e.Amp=38]=`Amp`,e[e.SingleQuote=39]=`SingleQuote`,e[e.DoubleQuote=34]=`DoubleQuote`,e[e.Dash=45]=`Dash`,e[e.Slash=47]=`Slash`,e[e.Zero=48]=`Zero`,e[e.Nine=57]=`Nine`,e[e.Semi=59]=`Semi`,e[e.Lt=60]=`Lt`,e[e.Eq=61]=`Eq`,e[e.Gt=62]=`Gt`,e[e.Questionmark=63]=`Questionmark`,e[e.UpperA=65]=`UpperA`,e[e.LowerA=97]=`LowerA`,e[e.UpperF=70]=`UpperF`,e[e.LowerF=102]=`LowerF`,e[e.UpperZ=90]=`UpperZ`,e[e.LowerZ=122]=`LowerZ`,e[e.LowerX=120]=`LowerX`,e[e.OpeningSquareBracket=91]=`OpeningSquareBracket`})(Q||={});var $;(function(e){e[e.Text=1]=`Text`,e[e.BeforeTagName=2]=`BeforeTagName`,e[e.InTagName=3]=`InTagName`,e[e.InSelfClosingTag=4]=`InSelfClosingTag`,e[e.BeforeClosingTagName=5]=`BeforeClosingTagName`,e[e.InClosingTagName=6]=`InClosingTagName`,e[e.AfterClosingTagName=7]=`AfterClosingTagName`,e[e.BeforeAttributeName=8]=`BeforeAttributeName`,e[e.InAttributeName=9]=`InAttributeName`,e[e.AfterAttributeName=10]=`AfterAttributeName`,e[e.BeforeAttributeValue=11]=`BeforeAttributeValue`,e[e.InAttributeValueDq=12]=`InAttributeValueDq`,e[e.InAttributeValueSq=13]=`InAttributeValueSq`,e[e.InAttributeValueNq=14]=`InAttributeValueNq`,e[e.BeforeDeclaration=15]=`BeforeDeclaration`,e[e.InDeclaration=16]=`InDeclaration`,e[e.InProcessingInstruction=17]=`InProcessingInstruction`,e[e.BeforeComment=18]=`BeforeComment`,e[e.CDATASequence=19]=`CDATASequence`,e[e.InSpecialComment=20]=`InSpecialComment`,e[e.InCommentLike=21]=`InCommentLike`,e[e.BeforeSpecialS=22]=`BeforeSpecialS`,e[e.SpecialStartSequence=23]=`SpecialStartSequence`,e[e.InSpecialTag=24]=`InSpecialTag`,e[e.BeforeEntity=25]=`BeforeEntity`,e[e.BeforeNumericEntity=26]=`BeforeNumericEntity`,e[e.InNamedEntity=27]=`InNamedEntity`,e[e.InNumericEntity=28]=`InNumericEntity`,e[e.InHexEntity=29]=`InHexEntity`})($||={});function lL(e){return e===Q.Space||e===Q.NewLine||e===Q.Tab||e===Q.FormFeed||e===Q.CarriageReturn}function uL(e){return e===Q.Slash||e===Q.Gt||lL(e)}function dL(e){return e>=Q.Zero&&e<=Q.Nine}function fL(e){return e>=Q.LowerA&&e<=Q.LowerZ||e>=Q.UpperA&&e<=Q.UpperZ}function pL(e){return e>=Q.UpperA&&e<=Q.UpperF||e>=Q.LowerA&&e<=Q.LowerF}var mL;(function(e){e[e.NoValue=0]=`NoValue`,e[e.Unquoted=1]=`Unquoted`,e[e.Single=2]=`Single`,e[e.Double=3]=`Double`})(mL||={});var hL={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},gL=class{constructor({xmlMode:e=!1,decodeEntities:t=!0},n){this.cbs=n,this.state=$.Text,this.buffer=``,this.sectionStart=0,this.index=0,this.baseState=$.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=e,this.decodeEntities=t,this.entityTrie=e?WI:UI}reset(){this.state=$.Text,this.buffer=``,this.sectionStart=0,this.index=0,this.baseState=$.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(e){e===Q.Lt||!this.decodeEntities&&this.fastForwardTo(Q.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=$.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===Q.Amp&&(this.state=$.BeforeEntity)}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(!(t?uL(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=$.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===Q.Gt||lL(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart<t){let e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===hL.TitleEnd?this.decodeEntities&&e===Q.Amp&&(this.state=$.BeforeEntity):this.fastForwardTo(Q.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===Q.Lt)}stateCDATASequence(e){e===hL.Cdata[this.sequenceIndex]?++this.sequenceIndex===hL.Cdata.length&&(this.state=$.InCommentLike,this.currentSequence=hL.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=$.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===hL.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=$.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!uL(e):fL(e)}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=$.SpecialStartSequence}stateBeforeTagName(e){if(e===Q.ExclamationMark)this.state=$.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===Q.Questionmark)this.state=$.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){let t=e|32;this.sectionStart=this.index,!this.xmlMode&&t===hL.TitleEnd[2]?this.startSpecial(hL.TitleEnd,3):this.state=!this.xmlMode&&t===hL.ScriptEnd[2]?$.BeforeSpecialS:$.InTagName}else e===Q.Slash?this.state=$.BeforeClosingTagName:(this.state=$.Text,this.stateText(e))}stateInTagName(e){uL(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=$.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){lL(e)||(e===Q.Gt?this.state=$.Text:(this.state=this.isTagStartChar(e)?$.InClosingTagName:$.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===Q.Gt||lL(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=$.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.state=$.Text,this.baseState=$.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===Q.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=$.InSpecialTag,this.sequenceIndex=0):this.state=$.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===Q.Slash?this.state=$.InSelfClosingTag:lL(e)||(this.state=$.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===Q.Gt?(this.cbs.onselfclosingtag(this.index),this.state=$.Text,this.baseState=$.Text,this.sectionStart=this.index+1,this.isSpecial=!1):lL(e)||(this.state=$.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===Q.Eq||uL(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=$.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===Q.Eq?this.state=$.BeforeAttributeValue:e===Q.Slash||e===Q.Gt?(this.cbs.onattribend(mL.NoValue,this.index),this.state=$.BeforeAttributeName,this.stateBeforeAttributeName(e)):lL(e)||(this.cbs.onattribend(mL.NoValue,this.index),this.state=$.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===Q.DoubleQuote?(this.state=$.InAttributeValueDq,this.sectionStart=this.index+1):e===Q.SingleQuote?(this.state=$.InAttributeValueSq,this.sectionStart=this.index+1):lL(e)||(this.sectionStart=this.index,this.state=$.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===Q.DoubleQuote?mL.Double:mL.Single,this.index),this.state=$.BeforeAttributeName):this.decodeEntities&&e===Q.Amp&&(this.baseState=this.state,this.state=$.BeforeEntity)}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,Q.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,Q.SingleQuote)}stateInAttributeValueNoQuotes(e){lL(e)||e===Q.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(mL.Unquoted,this.index),this.state=$.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===Q.Amp&&(this.baseState=this.state,this.state=$.BeforeEntity)}stateBeforeDeclaration(e){e===Q.OpeningSquareBracket?(this.state=$.CDATASequence,this.sequenceIndex=0):this.state=e===Q.Dash?$.BeforeComment:$.InDeclaration}stateInDeclaration(e){(e===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=$.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=$.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===Q.Dash?(this.state=$.InCommentLike,this.currentSequence=hL.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=$.InDeclaration}stateInSpecialComment(e){(e===Q.Gt||this.fastForwardTo(Q.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=$.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){let t=e|32;t===hL.ScriptEnd[3]?this.startSpecial(hL.ScriptEnd,4):t===hL.StyleEnd[3]?this.startSpecial(hL.StyleEnd,4):(this.state=$.InTagName,this.stateInTagName(e))}stateBeforeEntity(e){this.entityExcess=1,this.entityResult=0,e===Q.Number?this.state=$.BeforeNumericEntity:e===Q.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=$.InNamedEntity,this.stateInNamedEntity(e))}stateInNamedEntity(e){if(this.entityExcess+=1,this.trieIndex=oL(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];let t=this.trieCurrent&ZI.VALUE_LENGTH;if(t){let n=(t>>14)-1;if(!this.allowLegacyEntity()&&e!==Q.Semi)this.trieIndex+=n;else{let e=this.index-this.entityExcess+1;e>this.sectionStart&&this.emitPartial(this.sectionStart,e),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,n===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult!==0)switch((this.entityTrie[this.entityResult]&ZI.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~ZI.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(e){(e|32)===Q.LowerX?(this.entityExcess++,this.state=$.InHexEntity):(this.state=$.InNumericEntity,this.stateInNumericEntity(e))}emitNumericEntity(e){let t=this.index-this.entityExcess-1;t+2+Number(this.state===$.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint(JI(this.entityResult))),this.state=this.baseState}stateInNumericEntity(e){e===Q.Semi?this.emitNumericEntity(!0):dL(e)?(this.entityResult=this.entityResult*10+(e-Q.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(e){e===Q.Semi?this.emitNumericEntity(!0):dL(e)?(this.entityResult=this.entityResult*16+(e-Q.Zero),this.entityExcess++):pL(e)?(this.entityResult=this.entityResult*16+((e|32)-Q.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===$.Text||this.baseState===$.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===$.Text||this.state===$.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===$.InAttributeValueDq||this.state===$.InAttributeValueSq||this.state===$.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case $.Text:this.stateText(e);break;case $.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case $.InSpecialTag:this.stateInSpecialTag(e);break;case $.CDATASequence:this.stateCDATASequence(e);break;case $.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case $.InAttributeName:this.stateInAttributeName(e);break;case $.InCommentLike:this.stateInCommentLike(e);break;case $.InSpecialComment:this.stateInSpecialComment(e);break;case $.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case $.InTagName:this.stateInTagName(e);break;case $.InClosingTagName:this.stateInClosingTagName(e);break;case $.BeforeTagName:this.stateBeforeTagName(e);break;case $.AfterAttributeName:this.stateAfterAttributeName(e);break;case $.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case $.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case $.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case $.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case $.BeforeSpecialS:this.stateBeforeSpecialS(e);break;case $.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case $.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case $.InDeclaration:this.stateInDeclaration(e);break;case $.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case $.BeforeComment:this.stateBeforeComment(e);break;case $.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case $.InNamedEntity:this.stateInNamedEntity(e);break;case $.BeforeEntity:this.stateBeforeEntity(e);break;case $.InHexEntity:this.stateInHexEntity(e);break;case $.InNumericEntity:this.stateInNumericEntity(e);break;default:this.stateBeforeNumericEntity(e)}this.index++}this.cleanup()}finish(){this.state===$.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let e=this.buffer.length+this.offset;this.state===$.InCommentLike?this.currentSequence===hL.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===$.InNumericEntity&&this.allowLegacyEntity()||this.state===$.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===$.InTagName||this.state===$.BeforeAttributeName||this.state===$.BeforeAttributeValue||this.state===$.AfterAttributeName||this.state===$.InAttributeName||this.state===$.InAttributeValueSq||this.state===$.InAttributeValueDq||this.state===$.InAttributeValueNq||this.state===$.InClosingTagName||this.cbs.ontext(this.sectionStart,e)}emitPartial(e,t){this.baseState!==$.Text&&this.baseState!==$.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)}emitCodePoint(e){this.baseState!==$.Text&&this.baseState!==$.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)}},_L=new Set([`input`,`option`,`optgroup`,`select`,`button`,`datalist`,`textarea`]),vL=new Set([`p`]),yL=new Set([`thead`,`tbody`]),bL=new Set([`dd`,`dt`]),xL=new Set([`rt`,`rp`]),SL=new Map([[`tr`,new Set([`tr`,`th`,`td`])],[`th`,new Set([`th`])],[`td`,new Set([`thead`,`th`,`td`])],[`body`,new Set([`head`,`link`,`script`])],[`li`,new Set([`li`])],[`p`,vL],[`h1`,vL],[`h2`,vL],[`h3`,vL],[`h4`,vL],[`h5`,vL],[`h6`,vL],[`select`,_L],[`input`,_L],[`output`,_L],[`button`,_L],[`datalist`,_L],[`textarea`,_L],[`option`,new Set([`option`])],[`optgroup`,new Set([`optgroup`,`option`])],[`dd`,bL],[`dt`,bL],[`address`,vL],[`article`,vL],[`aside`,vL],[`blockquote`,vL],[`details`,vL],[`div`,vL],[`dl`,vL],[`fieldset`,vL],[`figcaption`,vL],[`figure`,vL],[`footer`,vL],[`form`,vL],[`header`,vL],[`hr`,vL],[`main`,vL],[`nav`,vL],[`ol`,vL],[`pre`,vL],[`section`,vL],[`table`,vL],[`ul`,vL],[`rt`,xL],[`rp`,xL],[`tbody`,yL],[`tfoot`,yL]]),CL=new Set([`area`,`base`,`basefont`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`img`,`input`,`isindex`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),wL=new Set([`math`,`svg`]),TL=new Set([`mi`,`mo`,`mn`,`ms`,`mtext`,`annotation-xml`,`foreignobject`,`desc`,`title`]),EL=/\s|\//,DL=class{constructor(e,t={}){var n,r;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname=``,this.attribname=``,this.attribvalue=``,this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=t.lowerCaseTags??!t.xmlMode,this.lowerCaseAttributeNames=t.lowerCaseAttributeNames??!t.xmlMode,this.tokenizer=new(t.Tokenizer??gL)(this.options,this),(r=(n=this.cbs).onparserinit)==null||r.call(n,this)}ontext(e,t){var n,r;let i=this.getSlice(e,t);this.endIndex=t-1,(r=(n=this.cbs).ontext)==null||r.call(n,i),this.startIndex=t}ontextentity(e){var t,n;let r=this.tokenizer.getSectionStart();this.endIndex=r-1,(n=(t=this.cbs).ontext)==null||n.call(t,qI(e)),this.startIndex=r}isVoidElement(e){return!this.options.xmlMode&&CL.has(e)}onopentagname(e,t){this.endIndex=t;let n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)}emitOpenTag(e){var t,n,r,i;this.openTagStart=this.startIndex,this.tagname=e;let a=!this.options.xmlMode&&SL.get(e);if(a)for(;this.stack.length>0&&a.has(this.stack[this.stack.length-1]);){let e=this.stack.pop();(n=(t=this.cbs).onclosetag)==null||n.call(t,e,!0)}this.isVoidElement(e)||(this.stack.push(e),wL.has(e)?this.foreignContext.push(!0):TL.has(e)&&this.foreignContext.push(!1)),(i=(r=this.cbs).onopentagname)==null||i.call(r,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&=((n=(t=this.cbs).onopentag)==null||n.call(t,this.tagname,this.attribs,e),null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=``}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){var n,r,i,a,o,s;this.endIndex=t;let c=this.getSlice(e,t);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(wL.has(c)||TL.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))!this.options.xmlMode&&c===`br`&&((r=(n=this.cbs).onopentagname)==null||r.call(n,`br`),(a=(i=this.cbs).onopentag)==null||a.call(i,`br`,{},!0),(s=(o=this.cbs).onclosetag)==null||s.call(o,`br`,!1));else{let e=this.stack.lastIndexOf(c);if(e!==-1)if(this.cbs.onclosetag){let t=this.stack.length-e;for(;t--;)this.cbs.onclosetag(this.stack.pop(),t!==0)}else this.stack.length=e;else !this.options.xmlMode&&c===`p`&&(this.emitOpenTag(`p`),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,n;let r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===r&&((n=(t=this.cbs).onclosetag)==null||n.call(t,r,!e),this.stack.pop())}onattribname(e,t){this.startIndex=e;let n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=qI(e)}onattribend(e,t){var n,r;this.endIndex=t,(r=(n=this.cbs).onattribute)==null||r.call(n,this.attribname,this.attribvalue,e===mL.Double?`"`:e===mL.Single?`'`:e===mL.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=``}getInstructionName(e){let t=e.search(EL),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(e,t){this.endIndex=t;let n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${e}`,`!${n}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;let n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${e}`,`?${n}`)}this.startIndex=t+1}oncomment(e,t,n){var r,i,a,o;this.endIndex=t,(i=(r=this.cbs).oncomment)==null||i.call(r,this.getSlice(e,t-n)),(o=(a=this.cbs).oncommentend)==null||o.call(a),this.startIndex=t+1}oncdata(e,t,n){var r,i,a,o,s,c,l,u,d,f;this.endIndex=t;let p=this.getSlice(e,t-n);this.options.xmlMode||this.options.recognizeCDATA?((i=(r=this.cbs).oncdatastart)==null||i.call(r),(o=(a=this.cbs).ontext)==null||o.call(a,p),(c=(s=this.cbs).oncdataend)==null||c.call(s)):((u=(l=this.cbs).oncomment)==null||u.call(l,`[CDATA[${p}]]`),(f=(d=this.cbs).oncommentend)==null||f.call(d)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=this.stack.length;e>0;this.cbs.onclosetag(this.stack[--e],!0));}(t=(e=this.cbs).onend)==null||t.call(e)}reset(){var e,t,n,r;(t=(e=this.cbs).onreset)==null||t.call(e),this.tokenizer.reset(),this.tagname=``,this.attribname=``,this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(r=(n=this.cbs).onparserinit)==null||r.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,n;if(this.ended){(n=(t=this.cbs).onerror)==null||n.call(t,Error(`.write() after done!`));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)}end(e){var t,n;if(this.ended){(n=(t=this.cbs).onerror)==null||n.call(t,Error(`.end() after done!`));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}};const OL=/["&'<>$\x80-\uFFFF]/g;var kL=new Map([[34,`&quot;`],[38,`&amp;`],[39,`&apos;`],[60,`&lt;`],[62,`&gt;`]]);const AL=String.prototype.codePointAt==null?(e,t)=>(e.charCodeAt(t)&64512)==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t):(e,t)=>e.codePointAt(t);function jL(e){let t=``,n=0,r;for(;(r=OL.exec(e))!==null;){let i=r.index,a=e.charCodeAt(i),o=kL.get(a);o===void 0?(t+=`${e.substring(n,i)}&#x${AL(e,i).toString(16)};`,n=OL.lastIndex+=Number((a&64512)==55296)):(t+=e.substring(n,i)+o,n=i+1)}return t+e.substr(n)}function ML(e,t){return function(n){let r,i=0,a=``;for(;r=e.exec(n);)i!==r.index&&(a+=n.substring(i,r.index)),a+=t.get(r[0].charCodeAt(0)),i=r.index+1;return a+n.substring(i)}}const NL=ML(/[&<>'"]/g,kL),PL=ML(/["&\u00A0]/g,new Map([[34,`&quot;`],[38,`&amp;`],[160,`&nbsp;`]])),FL=ML(/[&<>\u00A0]/g,new Map([[38,`&amp;`],[60,`&lt;`],[62,`&gt;`],[160,`&nbsp;`]])),IL=new Map(`altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.textPath`.split(`.`).map(e=>[e.toLowerCase(),e])),LL=new Map(`definitionURL.attributeName.attributeType.baseFrequency.baseProfile.calcMode.clipPathUnits.diffuseConstant.edgeMode.filterUnits.glyphRef.gradientTransform.gradientUnits.kernelMatrix.kernelUnitLength.keyPoints.keySplines.keyTimes.lengthAdjust.limitingConeAngle.markerHeight.markerUnits.markerWidth.maskContentUnits.maskUnits.numOctaves.pathLength.patternContentUnits.patternTransform.patternUnits.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.refX.refY.repeatCount.repeatDur.requiredExtensions.requiredFeatures.specularConstant.specularExponent.spreadMethod.startOffset.stdDeviation.stitchTiles.surfaceScale.systemLanguage.tableValues.targetX.targetY.textLength.viewBox.viewTarget.xChannelSelector.yChannelSelector.zoomAndPan`.split(`.`).map(e=>[e.toLowerCase(),e]));var RL=new Set([`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`]);function zL(e){return e.replace(/"/g,`&quot;`)}function BL(e,t){if(!e)return;let n=(t.encodeEntities??t.decodeEntities)===!1?zL:t.xmlMode||t.encodeEntities!==`utf8`?jL:PL;return Object.keys(e).map(r=>{let i=e[r]??``;return t.xmlMode===`foreign`&&(r=LL.get(r)??r),!t.emptyAttrs&&!t.xmlMode&&i===``?r:`${r}="${n(i)}"`}).join(` `)}var VL=new Set([`area`,`base`,`basefont`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`img`,`input`,`isindex`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`]);function HL(e,t={}){let n=`length`in e?e:[e],r=``;for(let e=0;e<n.length;e++)r+=UL(n[e],t);return r}function UL(e,t){switch(e.type){case rP:return HL(e.children,t);case dP:case aP:return qL(e);case oP:return XL(e);case uP:return YL(e);case sP:case cP:case lP:return KL(e,t);case iP:return JL(e,t)}}var WL=new Set([`mi`,`mo`,`mn`,`ms`,`mtext`,`annotation-xml`,`foreignObject`,`desc`,`title`]),GL=new Set([`svg`,`math`]);function KL(e,t){t.xmlMode===`foreign`&&(e.name=IL.get(e.name)??e.name,e.parent&&WL.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&GL.has(e.name)&&(t={...t,xmlMode:`foreign`});let n=`<${e.name}`,r=BL(e.attribs,t);return r&&(n+=` ${r}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&VL.has(e.name))?(t.xmlMode||(n+=` `),n+=`/>`):(n+=`>`,e.children.length>0&&(n+=HL(e.children,t)),(t.xmlMode||!VL.has(e.name))&&(n+=`</${e.name}>`)),n}function qL(e){return`<${e.data}>`}function JL(e,t){let n=e.data||``;return(t.encodeEntities??t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&RL.has(e.parent.name))&&(n=t.xmlMode||t.encodeEntities!==`utf8`?jL(n):FL(n)),n}function YL(e){return`<![CDATA[${e.children[0].data}]]>`}function XL(e){return`<!--${e.data}-->`}function ZL(e,t){let n=new AP(void 0,t);return new DL(n,t).end(e),n.root}var QL=o(((e,t)=>{var n=function(e){return r(e)&&!i(e)};function r(e){return!!e&&typeof e==`object`}function i(e){var t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||o(e)}var a=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function o(e){return e.$$typeof===a}function s(e){return Array.isArray(e)?[]:{}}function c(e,t){return t.clone!==!1&&t.isMergeableObject(e)?g(s(e),e,t):e}function l(e,t,n){return e.concat(t).map(function(e){return c(e,n)})}function u(e,t){if(!t.customMerge)return g;var n=t.customMerge(e);return typeof n==`function`?n:g}function d(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function f(e){return Object.keys(e).concat(d(e))}function p(e,t){try{return t in e}catch{return!1}}function m(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function h(e,t,n){var r={};return n.isMergeableObject(e)&&f(e).forEach(function(t){r[t]=c(e[t],n)}),f(t).forEach(function(i){m(e,i)||(p(e,i)&&n.isMergeableObject(t[i])?r[i]=u(i,n)(e[i],t[i],n):r[i]=c(t[i],n))}),r}function g(e,t,r){r||={},r.arrayMerge=r.arrayMerge||l,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=c;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):h(e,t,r):c(t,r)}g.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return g(e,n,t)},{})},t.exports=g})),$L=c(QL(),1);function eR(e,t,n=()=>void 0){if(e===void 0){let e=function(...n){return t(e,...n)};return e}return e>=0?function(...r){return t(eR(e-1,t,n),...r)}:n}function tR(e,t){let n=0,r=e.length;for(;n<r&&e[n]===t;)++n;for(;r>n&&e[r-1]===t;)--r;return n>0||r<e.length?e.substring(n,r):e}function nR(e,t){let n=e.length;for(;n>0&&e[n-1]===t;)--n;return n<e.length?e.substring(0,n):e}function rR(e){return e.replace(/[\s\S]/g,e=>`\\u`+e.charCodeAt().toString(16).padStart(4,`0`))}function iR(e,t){let n=new Map;for(let r=e.length;r-- >0;){let i=e[r],a=t(i);n.set(a,n.has(a)?(0,$L.default)(i,n.get(a),{arrayMerge:aR}):i)}return[...n.values()].reverse()}var aR=(e,t,n)=>[...t];function oR(e,t){for(let n of t){if(!e)return;e=e[n]}return e}function sR(e,t=`a`,n=26){let r=[];do--e,r.push(e%n),e=e/n>>0;while(e>0);let i=t.charCodeAt(0);return r.reverse().map(e=>String.fromCharCode(i+e)).join(``)}var cR=[`I`,`X`,`C`,`M`],lR=[`V`,`L`,`D`];function uR(e){return[...e+``].map(e=>+e).reverse().map((e,t)=>e%5<4?(e<5?``:lR[t])+cR[t].repeat(e%5):cR[t]+(e<5?lR[t]:cR[t+1])).reverse().join(``)}var dR=class{constructor(e,t=void 0){this.lines=[],this.nextLineWords=[],this.maxLineLength=t||e.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=oR(e,[`longWordSplit`,`wrapCharacters`])||[],this.forceWrapOnLimit=oR(e,[`longWordSplit`,`forceWrapOnLimit`])||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(e,t=!1){this.nextLineAvailableChars<=0&&!t&&this.startNewLine();let n=this.nextLineWords.length===0,r=e.length+(n?0:1);if(r<=this.nextLineAvailableChars||t)this.nextLineWords.push(e),this.nextLineAvailableChars-=r;else{let[t,...r]=this.splitLongWord(e);n||this.startNewLine(),this.nextLineWords.push(t),this.nextLineAvailableChars-=t.length;for(let e of r)this.startNewLine(),this.nextLineWords.push(e),this.nextLineAvailableChars-=e.length}}popWord(){let e=this.nextLineWords.pop();if(e!==void 0){let t=this.nextLineWords.length===0,n=e.length+(t?0:1);this.nextLineAvailableChars+=n}return e}concatWord(e,t=!1){if(this.wordBreakOpportunity&&e.length>this.nextLineAvailableChars)this.pushWord(e,t),this.wordBreakOpportunity=!1;else{let n=this.popWord();this.pushWord(n?n.concat(e):e,t)}}startNewLine(e=1){this.lines.push(this.nextLineWords),e>1&&this.lines.push(...Array.from({length:e-1},()=>[])),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return this.lines.length===0&&this.nextLineWords.length===0}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map(e=>e.join(` `)).join(`
`)}splitLongWord(e){let t=[],n=0;for(;e.length>this.maxLineLength;){let r=e.substring(0,this.maxLineLength),i=e.substring(this.maxLineLength),a=r.lastIndexOf(this.wrapCharacters[n]);if(a>-1)e=r.substring(a+1)+i,t.push(r.substring(0,a+1));else if(n++,n<this.wrapCharacters.length)e=r+i;else{if(this.forceWrapOnLimit){if(t.push(r),e=i,e.length>this.maxLineLength)continue}else e=r+i;break}}return t.push(e),t}},fR=class{constructor(e=null){this.next=e}getRoot(){return this.next?this.next:this}},pR=class extends fR{constructor(e,t=null,n=1,r=void 0){super(t),this.leadingLineBreaks=n,this.inlineTextBuilder=new dR(e,r),this.rawText=``,this.stashedLineBreaks=0,this.isPre=t&&t.isPre,this.isNoWrap=t&&t.isNoWrap}},mR=class extends pR{constructor(e,t=null,{interRowLineBreaks:n=1,leadingLineBreaks:r=2,maxLineLength:i=void 0,maxPrefixLength:a=0,prefixAlign:o=`left`}={}){super(e,t,r,i),this.maxPrefixLength=a,this.prefixAlign=o,this.interRowLineBreaks=n}},hR=class extends pR{constructor(e,t=null,{leadingLineBreaks:n=1,maxLineLength:r=void 0,prefix:i=``}={}){super(e,t,n,r),this.prefix=i}},gR=class extends fR{constructor(e=null){super(e),this.rows=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}},_R=class extends fR{constructor(e=null){super(e),this.cells=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}},vR=class extends fR{constructor(e,t=null,n=void 0){super(t),this.inlineTextBuilder=new dR(e,n),this.rawText=``,this.stashedLineBreaks=0,this.isPre=t&&t.isPre,this.isNoWrap=t&&t.isNoWrap}},yR=class extends fR{constructor(e=null,t){super(e),this.transform=t}};function bR(e){return[...e].map(e=>`\\u`+e.charCodeAt(0).toString(16).padStart(4,`0`)).join(``)}var xR=class{constructor(e){this.whitespaceChars=e.preserveNewlines?e.whitespaceCharacters.replace(/\n/g,``):e.whitespaceCharacters;let t=bR(this.whitespaceChars);if(this.leadingWhitespaceRe=RegExp(`^[${t}]`),this.trailingWhitespaceRe=RegExp(`[${t}]$`),this.allWhitespaceOrEmptyRe=RegExp(`^[${t}]*$`),this.newlineOrNonWhitespaceRe=RegExp(`(\\n|[^\\n${t}])`,`g`),this.newlineOrNonNewlineStringRe=RegExp(`(\\n|[^\\n]+)`,`g`),e.preserveNewlines){let e=RegExp(`\\n|[^\\n${t}]+`,`gm`);this.shrinkWrapAdd=function(t,n,r=(e=>e),i=!1){if(!t)return;let a=n.stashedSpace,o=!1,s=e.exec(t);if(s)for(o=!0,s[0]===`
`?n.startNewLine():a||this.testLeadingWhitespace(t)?n.pushWord(r(s[0]),i):n.concatWord(r(s[0]),i);(s=e.exec(t))!==null;)s[0]===`
`?n.startNewLine():n.pushWord(r(s[0]),i);n.stashedSpace=a&&!o||this.testTrailingWhitespace(t)}}else{let e=RegExp(`[^${t}]+`,`g`);this.shrinkWrapAdd=function(t,n,r=(e=>e),i=!1){if(!t)return;let a=n.stashedSpace,o=!1,s=e.exec(t);if(s)for(o=!0,a||this.testLeadingWhitespace(t)?n.pushWord(r(s[0]),i):n.concatWord(r(s[0]),i);(s=e.exec(t))!==null;)n.pushWord(r(s[0]),i);n.stashedSpace=a&&!o||this.testTrailingWhitespace(t)}}}addLiteral(e,t,n=!0){if(!e)return;let r=t.stashedSpace,i=!1,a=this.newlineOrNonNewlineStringRe.exec(e);if(a)for(i=!0,a[0]===`
`?t.startNewLine():r?t.pushWord(a[0],n):t.concatWord(a[0],n);(a=this.newlineOrNonNewlineStringRe.exec(e))!==null;)a[0]===`
`?t.startNewLine():t.pushWord(a[0],n);t.stashedSpace=r&&!i}testLeadingWhitespace(e){return this.leadingWhitespaceRe.test(e)}testTrailingWhitespace(e){return this.trailingWhitespaceRe.test(e)}testContainsWords(e){return!this.allWhitespaceOrEmptyRe.test(e)}countNewlinesNoWords(e){this.newlineOrNonWhitespaceRe.lastIndex=0;let t=0,n;for(;(n=this.newlineOrNonWhitespaceRe.exec(e))!==null;)if(n[0]===`
`)t++;else return 0;return t}},SR=class{constructor(e,t,n=void 0){this.options=e,this.picker=t,this.metadata=n,this.whitespaceProcessor=new xR(e),this._stackItem=new pR(e),this._wordTransformer=void 0}pushWordTransform(e){this._wordTransformer=new yR(this._wordTransformer,e)}popWordTransform(){if(!this._wordTransformer)return;let e=this._wordTransformer.transform;return this._wordTransformer=this._wordTransformer.next,e}startNoWrap(){this._stackItem.isNoWrap=!0}stopNoWrap(){this._stackItem.isNoWrap=!1}_getCombinedWordTransformer(){let e=this._wordTransformer?(e=>TR(e,this._wordTransformer)):void 0,t=this.options.encodeCharacters;return e?t?n=>t(e(n)):e:t}_popStackItem(){let e=this._stackItem;return this._stackItem=e.next,e}addLineBreak(){(this._stackItem instanceof pR||this._stackItem instanceof hR||this._stackItem instanceof vR)&&(this._stackItem.isPre?this._stackItem.rawText+=`
`:this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof pR||this._stackItem instanceof hR||this._stackItem instanceof vR)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(e,{noWordTransform:t=!1}={}){if(this._stackItem instanceof pR||this._stackItem instanceof hR||this._stackItem instanceof vR){if(this._stackItem.isPre){this._stackItem.rawText+=e;return}if(!(e.length===0||this._stackItem.stashedLineBreaks&&!this.whitespaceProcessor.testContainsWords(e))){if(this.options.preserveNewlines){let t=this.whitespaceProcessor.countNewlinesNoWords(e);if(t>0){this._stackItem.inlineTextBuilder.startNewLine(t);return}}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(e,this._stackItem.inlineTextBuilder,t?void 0:this._getCombinedWordTransformer(),this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}}}addLiteral(e){if((this._stackItem instanceof pR||this._stackItem instanceof hR||this._stackItem instanceof vR)&&e.length!==0){if(this._stackItem.isPre){this._stackItem.rawText+=e;return}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.addLiteral(e,this._stackItem.inlineTextBuilder,this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}}openBlock({leadingLineBreaks:e=1,reservedLineLength:t=0,isPre:n=!1}={}){let r=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-t);this._stackItem=new pR(this.options,this._stackItem,e,r),n&&(this._stackItem.isPre=!0)}closeBlock({trailingLineBreaks:e=1,blockTransform:t=void 0}={}){let n=this._popStackItem(),r=t?t(CR(n)):CR(n);wR(this._stackItem,r,n.leadingLineBreaks,Math.max(n.stashedLineBreaks,e))}openList({maxPrefixLength:e=0,prefixAlign:t=`left`,interRowLineBreaks:n=1,leadingLineBreaks:r=2}={}){this._stackItem=new mR(this.options,this._stackItem,{interRowLineBreaks:n,leadingLineBreaks:r,maxLineLength:this._stackItem.inlineTextBuilder.maxLineLength,maxPrefixLength:e,prefixAlign:t})}openListItem({prefix:e=``}={}){if(!(this._stackItem instanceof mR))throw Error(`Can't add a list item to something that is not a list! Check the formatter.`);let t=this._stackItem,n=Math.max(e.length,t.maxPrefixLength),r=Math.max(20,t.inlineTextBuilder.maxLineLength-n);this._stackItem=new hR(this.options,t,{prefix:e,maxLineLength:r,leadingLineBreaks:t.interRowLineBreaks})}closeListItem(){let e=this._popStackItem(),t=e.next,n=Math.max(e.prefix.length,t.maxPrefixLength),r=`
`+` `.repeat(n);wR(t,(t.prefixAlign===`right`?e.prefix.padStart(n):e.prefix.padEnd(n))+CR(e).replace(/\n/g,r),e.leadingLineBreaks,Math.max(e.stashedLineBreaks,t.interRowLineBreaks))}closeList({trailingLineBreaks:e=2}={}){let t=this._popStackItem(),n=CR(t);n&&wR(this._stackItem,n,t.leadingLineBreaks,e)}openTable(){this._stackItem=new gR(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof gR))throw Error(`Can't add a table row to something that is not a table! Check the formatter.`);this._stackItem=new _R(this._stackItem)}openTableCell({maxColumnWidth:e=void 0}={}){if(!(this._stackItem instanceof _R))throw Error(`Can't add a table cell to something that is not a table row! Check the formatter.`);this._stackItem=new vR(this.options,this._stackItem,e)}closeTableCell({colspan:e=1,rowspan:t=1}={}){let n=this._popStackItem(),r=tR(CR(n),`
`);n.next.cells.push({colspan:e,rowspan:t,text:r})}closeTableRow(){let e=this._popStackItem();e.next.rows.push(e.cells)}closeTable({tableToString:e,leadingLineBreaks:t=2,trailingLineBreaks:n=2}){let r=e(this._popStackItem().rows);r&&wR(this._stackItem,r,t,n)}toString(){return CR(this._stackItem.getRoot())}};function CR(e){if(!(e instanceof pR||e instanceof hR||e instanceof vR))throw Error(`Only blocks, list items and table cells can be requested for text contents.`);return e.inlineTextBuilder.isEmpty()?e.rawText:e.rawText+e.inlineTextBuilder.toString()}function wR(e,t,n,r){if(!(e instanceof pR||e instanceof hR||e instanceof vR))throw Error(`Only blocks, list items and table cells can contain text.`);let i=CR(e),a=Math.max(e.stashedLineBreaks,n);e.inlineTextBuilder.clear(),i?e.rawText=i+`
`.repeat(a)+t:(e.rawText=t,e.leadingLineBreaks=a),e.stashedLineBreaks=r}function TR(e,t){return t?TR(t.transform(e),t.next):e}function ER(e={}){let t=e.selectors.filter(e=>!e.format);if(t.length)throw Error(`Following selectors have no specified format: `+t.map(e=>`\`${e.selector}\``).join(`, `));let n=new dI(e.selectors.map(e=>[e.selector,e])).build(NI);typeof e.encodeCharacters!=`function`&&(e.encodeCharacters=AR(e.encodeCharacters));let r=new dI(e.baseElements.selectors.map((e,t)=>[e,t+1])).build(NI);function i(t){return OR(t,e,r)}let a=eR(e.limits.maxDepth,kR,function(t,n){n.addInline(e.limits.ellipsis||``)});return function(t,r=void 0){return DR(t,r,e,n,i,a)}}function DR(e,t,n,r,i,a){let o=n.limits.maxInputLength;o&&e&&e.length>o&&(console.warn(`Input length ${e.length} is above allowed limit of ${o}. Truncating without ellipsis.`),e=e.substring(0,o));let s=i(ZL(e,{decodeEntities:n.decodeEntities}).children),c=new SR(n,r,t);return a(s,c),c.toString()}function OR(e,t,n){let r=[];function i(e,i){i=i.slice(0,t.limits.maxChildNodes);for(let a of i){if(a.type!==`tag`)continue;let i=n.pick1(a);if(i>0?r.push({selectorIndex:i,element:a}):a.children&&e(a.children),r.length>=t.limits.maxBaseElements)return}}return eR(t.limits.maxDepth,i)(e),t.baseElements.orderBy!==`occurrence`&&r.sort((e,t)=>e.selectorIndex-t.selectorIndex),t.baseElements.returnDomByDefault&&r.length===0?e:r.map(e=>e.element)}function kR(e,t,n){if(!t)return;let r=n.options;t.length>r.limits.maxChildNodes&&(t=t.slice(0,r.limits.maxChildNodes),t.push({data:r.limits.ellipsis,type:`text`}));for(let i of t)switch(i.type){case`text`:n.addInline(i.data);break;case`tag`:{let t=n.picker.pick1(i),a=r.formatters[t.format];a(i,e,n,t.options||{});break}}}function AR(e){if(!e||Object.keys(e).length===0)return;let t=Object.entries(e).filter(([,e])=>e!==!1),n=new RegExp(t.map(([e])=>`(${rR([...e][0])})`).join(`|`),`g`),r=t.map(([,e])=>e),i=(e,...t)=>r[t.findIndex(e=>e)];return e=>e.replace(n,i)}function jR(e,t,n,r){}function MR(e,t,n,r){n.addLiteral(r.string||``)}function NR(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.addLiteral(r.string||``),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function PR(e,t,n,r){t(e.children,n)}function FR(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function IR(e){let t=e.attribs&&e.attribs.length?` `+Object.entries(e.attribs).map(([e,t])=>t===``?e:`${e}=${t.replace(/"/g,`&quot;`)}`).join(` `):``;return`<${e.name}${t}>`}function LR(e){return`</${e.name}>`}function RR(e,t,n,r){n.startNoWrap(),n.addLiteral(IR(e)),n.stopNoWrap(),t(e.children,n),n.startNoWrap(),n.addLiteral(LR(e)),n.stopNoWrap()}function zR(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.startNoWrap(),n.addLiteral(IR(e)),n.stopNoWrap(),t(e.children,n),n.startNoWrap(),n.addLiteral(LR(e)),n.stopNoWrap(),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function BR(e,t,n,r){n.startNoWrap(),n.addLiteral(HL(e,{decodeEntities:n.options.decodeEntities})),n.stopNoWrap()}function VR(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.startNoWrap(),n.addLiteral(HL(e,{decodeEntities:n.options.decodeEntities})),n.stopNoWrap(),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function HR(e,t,n,r){n.addLiteral(r.prefix||``),t(e.children,n),n.addLiteral(r.suffix||``)}var UR=Object.freeze({__proto__:null,block:FR,blockHtml:VR,blockString:NR,blockTag:zR,inline:PR,inlineHtml:BR,inlineString:MR,inlineSurround:HR,inlineTag:RR,skip:jR});function WR(e,t){return e[t]||(e[t]=[]),e[t]}function GR(e,t=0){for(;e[t];)t++;return t}function KR(e,t){for(let n=0;n<t;n++){let t=WR(e,n);for(let r=0;r<n;r++){let i=WR(e,r);if(t[r]||i[n]){let e=t[r];t[r]=i[n],i[n]=e}}}}function qR(e,t,n,r){for(let i=0;i<e.rowspan;i++){let a=WR(t,n+i);for(let t=0;t<e.colspan;t++)a[r+t]=e}}function JR(e,t){return e[t]===void 0&&(e[t]=t===0?0:1+JR(e,t-1)),e[t]}function YR(e,t,n,r){e[t+n]=Math.max(JR(e,t+n),JR(e,t)+r)}function XR(e,t,n){let r=[],i=0,a=e.length,o=[0];for(let n=0;n<a;n++){let a=WR(r,n),s=e[n],c=0;for(let e=0;e<s.length;e++){let i=s[e];c=GR(a,c),qR(i,r,n,c),c+=i.colspan,i.lines=i.text.split(`
`);let l=i.lines.length;YR(o,n,i.rowspan,l+t)}i=a.length>i?a.length:i}KR(r,a>i?a:i);let s=[],c=[0];for(let e=0;e<i;e++){let t=0,i,l=Math.min(a,r[e].length);for(;t<l;)if(i=r[e][t],i){if(!i.rendered){let r=0;for(let n=0;n<i.lines.length;n++){let a=i.lines[n],l=o[t]+n;s[l]=(s[l]||``).padEnd(c[e])+a,r=a.length>r?a.length:r}YR(c,e,i.colspan,r+n),i.rendered=!0}t+=i.rowspan}else{let e=o[t];s[e]=s[e]||``,t++}}return s.join(`
`)}function ZR(e,t,n,r){n.addLineBreak()}function QR(e,t,n,r){n.addWordBreakOpportunity()}function $R(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.addInline(`-`.repeat(r.length||n.options.wordwrap||40)),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function ez(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function tz(e,t,n,r){n.openBlock({isPre:!0,leadingLineBreaks:r.leadingLineBreaks||2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function nz(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),r.uppercase===!1?t(e.children,n):(n.pushWordTransform(e=>e.toUpperCase()),t(e.children,n),n.popWordTransform()),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})}function rz(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2,reservedLineLength:2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2,blockTransform:e=>(r.trimEmptyLines===!1?e:tR(e,`
`)).split(`
`).map(e=>`> `+e).join(`
`)})}function iz(e,t){if(!t)return e;let n=typeof t[0]==`string`?t[0]:`[`,r=typeof t[1]==`string`?t[1]:`]`;return n+e+r}function az(e,t,n,r,i){let a=typeof t==`function`?t(e,r,i):e;return a[0]===`/`&&n?nR(n,`/`)+a:a}function oz(e,t,n,r){let i=e.attribs||{},a=i.alt?i.alt:``,o=i.src?az(i.src,r.pathRewrite,r.baseUrl,n.metadata,e):``,s=o?a?a+` `+iz(o,r.linkBrackets):iz(o,r.linkBrackets):a;n.addInline(s,{noWordTransform:!0})}function sz(e,t,n,r){function i(){if(r.ignoreHref||!e.attribs||!e.attribs.href)return``;let t=e.attribs.href.replace(/^mailto:/,``);return r.noAnchorUrl&&t[0]===`#`?``:(t=az(t,r.pathRewrite,r.baseUrl,n.metadata,e),t)}let a=i();if(!a)t(e.children,n);else{let i=``;n.pushWordTransform(e=>(e&&(i+=e),e)),t(e.children,n),n.popWordTransform(),r.hideLinkHrefIfSameAsText&&a===i||n.addInline(i?` `+iz(a,r.linkBrackets):a,{noWordTransform:!0})}}function cz(e,t,n,r,i){let a=oR(e,[`parent`,`name`])===`li`,o=0,s=(e.children||[]).filter(e=>e.type!==`text`||!/^\s*$/.test(e.data)).map(function(e){if(e.name!==`li`)return{node:e,prefix:``};let t=a?i().trimStart():i();return t.length>o&&(o=t.length),{node:e,prefix:t}});if(s.length){n.openList({interRowLineBreaks:1,leadingLineBreaks:a?1:r.leadingLineBreaks||2,maxPrefixLength:o,prefixAlign:`left`});for(let{node:e,prefix:r}of s)n.openListItem({prefix:r}),t([e],n),n.closeListItem();n.closeList({trailingLineBreaks:a?1:r.trailingLineBreaks||2})}}function lz(e,t,n,r){let i=r.itemPrefix||` * `;return cz(e,t,n,r,()=>i)}function uz(e,t,n,r){let i=Number(e.attribs.start||`1`),a=dz(e.attribs.type);return cz(e,t,n,r,()=>` `+a(i++)+`. `)}function dz(e=`1`){switch(e){case`a`:return e=>sR(e,`a`);case`A`:return e=>sR(e,`A`);case`i`:return e=>uR(e).toLowerCase();case`I`:return e=>uR(e);case`1`:default:return e=>e.toString()}}function fz(e){let t=[],n=[];for(let r of e)r.startsWith(`.`)?t.push(r.substring(1)):r.startsWith(`#`)&&n.push(r.substring(1));return{classes:t,ids:n}}function pz(e,t){if(t===!0)return!0;if(!e)return!1;let{classes:n,ids:r}=fz(t),i=(e.class||``).split(` `),a=(e.id||``).split(` `);return i.some(e=>n.includes(e))||a.some(e=>r.includes(e))}function mz(e,t,n,r){return pz(e.attribs,n.options.tables)?gz(e,t,n,r):hz(e,t,n,r)}function hz(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks})}function gz(e,t,n,r){n.openTable(),e.children.forEach(a),n.closeTable({tableToString:e=>XR(e,r.rowSpacing??0,r.colSpacing??3),leadingLineBreaks:r.leadingLineBreaks,trailingLineBreaks:r.trailingLineBreaks});function i(e){let i=+oR(e,[`attribs`,`colspan`])||1,a=+oR(e,[`attribs`,`rowspan`])||1;n.openTableCell({maxColumnWidth:r.maxColumnWidth}),t(e.children,n),n.closeTableCell({colspan:i,rowspan:a})}function a(e){if(e.type!==`tag`)return;let t=r.uppercaseHeaderCells===!1?i:e=>{n.pushWordTransform(e=>e.toUpperCase()),i(e),n.popWordTransform()};switch(e.name){case`thead`:case`tbody`:case`tfoot`:case`center`:e.children.forEach(a);return;case`tr`:n.openTableRow();for(let n of e.children)if(n.type===`tag`)switch(n.name){case`th`:t(n);break;case`td`:i(n);break}n.closeTableRow();break}}}var _z=Object.freeze({__proto__:null,anchor:sz,blockquote:rz,dataTable:gz,heading:nz,horizontalLine:$R,image:oz,lineBreak:ZR,orderedList:uz,paragraph:ez,pre:tz,table:mz,unorderedList:lz,wbr:QR}),vz={baseElements:{selectors:[`body`],orderBy:`selectors`,returnDomByDefault:!0},decodeEntities:!0,encodeCharacters:{},formatters:{},limits:{ellipsis:`...`,maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:1<<24},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:`*`,format:`inline`},{selector:`a`,format:`anchor`,options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:[`[`,`]`],noAnchorUrl:!0}},{selector:`article`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`aside`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`blockquote`,format:`blockquote`,options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:`br`,format:`lineBreak`},{selector:`div`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`footer`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`form`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`h1`,format:`heading`,options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:`h2`,format:`heading`,options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:`h3`,format:`heading`,options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:`h4`,format:`heading`,options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:`h5`,format:`heading`,options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:`h6`,format:`heading`,options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:`header`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`hr`,format:`horizontalLine`,options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:`img`,format:`image`,options:{baseUrl:null,linkBrackets:[`[`,`]`]}},{selector:`main`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`nav`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`ol`,format:`orderedList`,options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:`p`,format:`paragraph`,options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:`pre`,format:`pre`,options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:`section`,format:`block`,options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:`table`,format:`table`,options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:`ul`,format:`unorderedList`,options:{itemPrefix:` * `,leadingLineBreaks:2,trailingLineBreaks:2}},{selector:`wbr`,format:`wbr`}],tables:[],whitespaceCharacters:` \r
\f`,wordwrap:80},yz=(e,t,n)=>[...e,...t],bz=(e,t,n)=>[...t],xz=(e,t,n)=>e.some(e=>typeof e==`object`)?yz(e,t):bz(e,t);function Sz(e={}){return e=(0,$L.default)(vz,e,{arrayMerge:bz,customMerge:e=>e===`selectors`?xz:void 0}),e.formatters=Object.assign({},UR,_z,e.formatters),e.selectors=iR(e.selectors,(e=>e.selector)),Cz(e),ER(e)}function Cz(e){if(e.tags){let t=Object.entries(e.tags).map(([e,t])=>({...t,selector:e||`*`}));e.selectors.push(...t),e.selectors=iR(e.selectors,(e=>e.selector))}function t(e,t,n){let r=t.pop();for(let n of t){let t=e[n];t||(t={},e[n]=t),e=t}e[r]=n}if(e.baseElement){let n=e.baseElement;t(e,[`baseElements`,`selectors`],Array.isArray(n)?n:[n])}e.returnDomByDefault!==void 0&&t(e,[`baseElements`,`returnDomByDefault`],e.returnDomByDefault);for(let n of e.selectors)n.format===`anchor`&&oR(n,[`options`,`noLinkBrackets`])&&t(n,[`options`,`linkBrackets`],!1)}function wz(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`)}const Tz=Sz({wordwrap:!1}),Ez=Sz({selectors:[{selector:`mjx-container`,format:`origin`}],formatters:{origin:(e,t,n)=>{n.openBlock(),n.addInline(e.attribs.origin),n.closeBlock()}}});function Dz(){let e=M(``),t=I(()=>R.regexSearch?Oz:kz);return{pattern:e,filter:t,matchCount:I(()=>R.headers.filter(n=>{let r={label:n.title};return t.value(e.value,r)}).length)}}function Oz(e,t){let n=/.*/;try{n=RegExp(e,`i`)}catch{}return n.test(Az(t.label))}function kz(e,t){return Az(t.label).toLowerCase().contains(e.toLowerCase())}function Az(e){let t=DN.parse(e||``,{async:!1}).trim(),n=0,r=t.match(/<mjx-container.*?>.*?<\/mjx-container>/g)||[];return r=r.map(e=>wz(Ez(e))),t=t.replace(/<mjx-container.*?>.*?<\/mjx-container>/g,()=>`<math></math>`),t=t.replace(/<math.*?>.*?<\/math>/g,()=>r[n++]),Tz(t)}function jz(e){function t(){return e.navigator.getDefaultLevel()}let n=M(t());function r(e){n.value=e,o(Nz(e))}HA(`levelchange`,e=>{typeof e==`number`?r(e):e===`inc`?r(Math.clamp(n.value+1,0,5)):e===`dec`&&r(Math.clamp(n.value-1,0,5))});let i=M([]);function a(e){return e.filter(e=>{let t=Wj(e);return t<R.headers.length-1&&R.headers[t].level<R.headers[t+1].level})}function o(e,t=`replace`){let n;n=t===`replace`?e:t===`remove`?i.value.filter(t=>!e.includes(t)):[...new Set([...i.value,...e])],i.value=a(n),s()}function s(){let t=e.navigator.getPath();if(!t)return;let n=j(i.value);e.navigator.onExpandKeysChange(t,n)}function c(r){if(e.settings.auto_expand_ext!==`disable`){let a=R.headers[r],s=r<R.headers.length-1&&R.headers[r].level<R.headers[r+1].level?[Uj(a.level,r)]:[],c=a.level,l=r;for(;l-- >0&&(R.headers[l].level<c&&(s.push(Uj(R.headers[l].level,l)),c=R.headers[l].level),c!==1););e.settings.auto_expand_ext===`expand-and-collapse-rest-to-setting`?i.value=Nz(n.value):e.settings.auto_expand_ext===`expand-and-collapse-rest-to-default`&&(i.value=Nz(t())),o(s,`add`)}}return nr(()=>j(R.modifyKeys),({offsetModifies:e,removes:t,adds:n,modifies:r})=>{let a=i.value.filter(e=>{let n=Wj(e),i=!t.some(e=>e.begin<=n&&n<e.begin+e.length),a=!r.some(e=>e.oldBegin===n&&e.levelChangeType===`parent2child`);return i&&a}).map(t=>{let n=Wj(t),i=r.find(e=>e.oldBegin===n),a=e.findLastIndex(e=>e.begin<=n),o=a===-1?t:Mz(t,e[a].offset),s=Wj(o);return i?Uj(R.headers[i.newBegin].level,s):o});r.filter(e=>e.levelChangeType===`child2parent`).forEach(e=>{a.push(Uj(R.headers[e.newBegin].level,e.newBegin))}),n.forEach(e=>{let t=qj(e.begin);(e.begin>=R.headers.length-1||R.headers[e.begin].level>=R.headers[e.begin+1].level)&&t.pop(),t.forEach(e=>{a.push(Uj(R.headers[e].level,e))})}),o([...new Set(a)])}),{getDefaultLevel:t,level:n,switchLevel:r,expanded:i,modifyExpandKeys:o,autoExpand:c}}function Mz(e,t){let n=e.split(`-`);return Uj(parseInt(n[1]),parseInt(n[2])+t)}function Nz(e){return R.headers.map((e,t)=>({level:e.level,no:t})).filter((t,n,r)=>n===r.length-1||r[n].level>=r[n+1].level?!1:r[n].level<=e).map(e=>Uj(e.level,e.no))}function Pz({container:e,locateIdx:t,selectedKeys:n,expanded:r,modifyExpandKeys:i,pattern:a}){function o(){let e=qj(t.value),i=e.findIndex(e=>!r.value.contains(Fz(e)));n.value=[Fz(i===-1?t.value:e[i])]}function s(e){let t=n.value[0];!t||Kj(Gj(t))||(e?i([t],`add`):i([t],`remove`))}function c(){let t=n.value[0];if(!t)return;let r=Gj(t);e.querySelector(`.n-tree .n-tree-node-wrapper:has(#no-${r})`)?.scrollIntoView({behavior:`smooth`,block:`center`})}function l(t){let r=n.value[0];if(!r)return;let i=Gj(r),a=e.querySelector(`.n-tree .n-tree-node-wrapper:has(#no-${i})`);if(!a){let t=e.querySelector(`.n-tree .n-tree-node-wrapper`)?.firstElementChild;if(!t)return;u(t);return}if(t===`up`){let e=a.previousSibling?.firstChild;e&&u(e)}else if(t===`down`){let e=a.nextSibling?.firstChild;e&&u(e)}else if(t===`bottom`){let e=a.parentElement?.lastElementChild?.firstElementChild;e&&u(e)}else if(t===`top`){let e=a.parentElement?.firstElementChild?.firstElementChild;e&&u(e)}}function u(e){let t=e.id.match(/no-(\d+)/);t&&(n.value=[Fz(parseInt(t[1]))],e.scrollIntoView({behavior:`smooth`,block:`nearest`}))}function d(){a.value=``}function f(){let e=n.value[0];if(e)return Gj(e)}return{selectVisible:o,setExpand:s,center:c,move:l,resetPattern:d,currentSelected:f}}function Fz(e){return Uj(R.headers[e].level,e)}var Iz={key:0,class:`function-bar`},Lz={key:2},Rz=F({__name:`Outline`,setup(e,{expose:t}){Zo(e=>({f4d4e7c4:N(p),v04832a3a:N(d).h1,v04832a38:N(d).h2,v04832a36:N(d).h3,v04832a34:N(d).h4,v04832a32:N(d).h5,v1c14051a:N(u)}));let n=Qn(`plugin`),r=Qn(`container`),i=M(),a={0:``,1:``,2:``,3:``,4:``,5:``};function o(e){let t=R.headers.filter(t=>t.level===e).length;return e>0?`H${e}: ${t}`:`No expand`}let{theme:s,themeOverrides:c,iconColor:l,primaryColor:u,rainbowColors:d,containerStyle:f,biDi:p}=XN(),{level:m,switchLevel:h,expanded:g,modifyExpandKeys:_,getDefaultLevel:v,autoExpand:y}=jz(n),{data:b,nodeProps:x,locateIdx:S,resetLocated:C,selectedKeys:w}=Xj({plugin:n,container:r,level:m,expanded:g,modifyExpandKeys:_}),{pattern:T,filter:E,matchCount:D}=Dz(),{onDrop:O}=eP(r,n),{renderLabel:k,renderPrefix:A,renderSwitcherIcon:ee,editingHeadingText:te}=WN(n);YN(n,r);async function ne(){n.navigator.toBottom()}function re(){T.value=``,h(v())}HA(`reset-panel`,re);function ie(e){_(e)}let ae=M(0);function oe(){ae.value++}function se(e){y(e),C(e)}function ce(){i.value?.handleAfterEnter();let e=T.value;T.value=``,m.value=v();let t=n.data_manager.getData(Qc),r=n.navigator.getId()===`markdown`?t?.[n.navigator.getPath()]?.expandedKeys:null;n.settings.persist_md_states&&r?_(r):h(m.value),n.settings.keep_search_input&&In(()=>{T.value=e})}ce();let{selectVisible:le,setExpand:ue,center:de,move:fe,resetPattern:pe,currentSelected:me}=Pz({container:r,locateIdx:S,selectedKeys:w,expanded:g,modifyExpandKeys:_,pattern:T});return t({setExpand:ue,center:de,move:fe,selectVisible:le,resetPattern:pe,currentSelected:me,onPosChange:se,onLeafChange:ce,forceRemakeTree:oe}),(e,t)=>(Ea(),Ma(N(JT),{theme:N(s),"theme-overrides":N(c),style:xe(N(f))},{default:Jn(()=>[N(R).searchSupport?(Ea(),ja(`div`,Iz,[Ra(Hj,{onClick:ne,"icon-style":N(l),"svg-icon":N(qA),label:N(z)(`To Bottom`)},null,8,[`icon-style`,`svg-icon`,`label`]),Ra(Hj,{onClick:re,"icon-style":N(l),"svg-icon":N(ZA),label:N(z)(`Reset`)},null,8,[`icon-style`,`svg-icon`,`label`]),Ra(N(xw),{value:N(T),"onUpdate:value":t[0]||=e=>cn(T)?T.value=e:null,placeholder:N(z)(`Input to search`),size:`small`,clearable:``},null,8,[`value`,`placeholder`])])):Ua(``,!0),N(R).levelSwitch?(Ea(),Ma(N(cA),{key:1,value:N(m),"on-update:value":N(h),marks:a,step:`mark`,min:0,max:5,style:{margin:`4px 0`},"format-tooltip":o},null,8,[`value`,`on-update:value`])):Ua(``,!0),N(T)?(Ea(),ja(`code`,Lz,Me(N(D))+` `+Me(N(z)(`result(s):`)),1)):Ua(``,!0),(Ea(),Ma(N(PA),{ref_key:`tree`,ref:i,"block-line":``,indent:17,pattern:N(T),data:N(b),"selected-keys":N(w),"render-label":N(k),"render-prefix":N(A),"node-props":N(x),keyboard:!1,"expanded-keys":N(g),"render-switcher-icon":N(ee),"on-update:expanded-keys":ie,key:ae.value,filter:N(E),"show-irrelevant-nodes":!N(R).hideUnsearched,class:Ee({ellipsis:N(R).ellipsis}),draggable:N(R).dragModify&&!N(te),onDrop:N(O),"allow-drop":()=>N(n).navigator.canDrop},null,8,[`pattern`,`data`,`selected-keys`,`render-label`,`render-prefix`,`node-props`,`expanded-keys`,`render-switcher-icon`,`filter`,`show-irrelevant-nodes`,`class`,`draggable`,`onDrop`,`allow-drop`]))]),_:1},8,[`theme`,`theme-overrides`,`style`]))}}),zz=Rz;const Bz=`quiet-outline`;var Vz=class extends l.ItemView{vueApp;vueInstance;plugin;scopes;pendingKey;constructor(e,t){super(e),this.plugin=t,this.setupScopes()}getViewType(){return Bz}getDisplayText(){return`Quiet Outline`}getIcon(){return`lines-of-text`}async onOpen(){let e=this.containerEl.children[1];e.empty();let t=e.createDiv({cls:`quiet-outline`});this.vueApp=Ls(zz),this.vueApp.provide(`plugin`,this.plugin),this.vueApp.provide(`container`,t),this.vueInstance=this.vueApp.mount(t),this.plugin.outlineView=this}setupScopes(){let e=new l.Scope(this.app.scope);e.register([],`H`,()=>this.vueInstance.setExpand(!1)),e.register([],`J`,()=>this.vueInstance.move(`down`)),e.register([],`K`,()=>this.vueInstance.move(`up`)),e.register([],`L`,()=>this.vueInstance.setExpand(!0)),e.register([],`G`,()=>{if(this.pendingKey===`G`){this.vueInstance.move(`top`),this.pendingKey=void 0;return}this.pendingKey=`G`,activeWindow.setTimeout(()=>this.pendingKey=void 0,500)}),e.register([],`Z`,()=>{if(this.pendingKey===`Z`){this.vueInstance.center(),this.pendingKey=void 0;return}this.pendingKey=`Z`,activeWindow.setTimeout(()=>this.pendingKey=void 0,500)}),e.register([`Shift`],`G`,()=>this.vueInstance.move(`bottom`)),e.register([],`ArrowLeft`,()=>this.vueInstance.setExpand(!1)),e.register([],`ArrowDown`,()=>this.vueInstance.move(`down`)),e.register([],`ArrowUp`,()=>this.vueInstance.move(`up`)),e.register([],`ArrowRight`,()=>this.vueInstance.setExpand(!0)),e.register([],`/`,e=>{e.preventDefault(),this.focusOn(`search`)}),e.register([],` `,e=>{e.preventDefault();let t=this.vueInstance.currentSelected();t!==void 0&&this.plugin.navigator.jumpWithoutFocus(t)}),e.register([],`Enter`,()=>{let e=this.vueInstance.currentSelected();e!==void 0&&(this.plugin.navigator.jump(e),this.vueInstance.resetPattern())}),e.register(null,null,e=>{e.key===`Escape`&&activeWindow.setTimeout(()=>{this.plugin.app.workspace.activeLeaf?.setEphemeralState({focus:!0})})});let t=new l.Scope(this.app.scope);t.register([],`Escape`,()=>this.vueInstance.resetPattern()),t.register([],`Enter`,()=>this.focusOn(`tree`)),this.scopes={tree:e,search:t,switcher:new l.Scope(this.app.scope)}}focusOn(e){switch(e){case`tree`:this.contentEl.querySelector(`.n-tree`).focus(),this.scope=this.scopes.tree,this.vueInstance.selectVisible();break;case`search`:this.contentEl.querySelector(`.n-input__input-el`).focus(),this.scope=this.scopes.search;break}}async onClose(){}onunload(){this.vueApp.unmount(),this.plugin.outlineView=null}};function Hz(e,t,n){let r=-1;return()=>{e(),window.clearTimeout(r),r=window.setTimeout(n,t)}}var Uz={search_support:!0,level_switch:!0,markdown:!0,expand_level:`0`,hide_unsearched:!0,auto_expand_ext:`only-expand`,regex_search:!1,ellipsis:!1,label_direction:`left`,drag_modify:!1,locate_by_cursor:!1,show_popover_key:`ctrlKey`,persist_md_states:!0,keep_search_input:!1,export_format:`{title}`,lang_direction_decide_by:`system`,auto_scroll_into_view:!0,vimlize_canvas:!1,canvas_sort_by:`area`,shown_node_types:[`file`,`group`,`text`,`link`],heading_truncate_length:20,patch_color:!1,primary_color_light:`#18a058`,primary_color_dark:`#63e2b7`,rainbow_line:!1,rainbow_color_1:`#FD8B1F`,rainbow_color_2:`#FFDF00`,rainbow_color_3:`#07EB23`,rainbow_color_4:`#2D8FF0`,rainbow_color_5:`#BC01E2`,font_size:``,font_family:``,font_weight:``,line_height:``,line_gap:``,custom_font_color:!1,h1_color:`#000000`,h2_color:`#000000`,h3_color:`#000000`,h4_color:`#000000`,h5_color:`#000000`,h6_color:`#000000`,h1_color_dark:`#000000`,h2_color_dark:`#000000`,h3_color_dark:`#000000`,h4_color_dark:`#000000`,h5_color_dark:`#000000`,h6_color_dark:`#000000`},Wz=class extends l.PluginSettingTab{plugin;activeTab=`general`;constructor(e,t){super(e,t),this.plugin=t}display(){let{containerEl:e}=this;e.empty(),new l.Setting(e).setName(z(`Settings for Quiet Outline.`)).setHeading();let t=e.createDiv({cls:`quiet-outline-tabs`}),n=t.createEl(`button`,{text:z(`General`),cls:this.activeTab===`general`?`active`:``}),r=t.createEl(`button`,{text:z(`Styles`),cls:this.activeTab===`styles`?`active`:``}),i=t.createEl(`button`,{text:z(`Canvas`),cls:this.activeTab===`canvas`?`active`:``});n.addEventListener(`click`,()=>{this.activeTab=`general`,this.display()}),r.addEventListener(`click`,()=>{this.activeTab=`styles`,this.display()}),i.addEventListener(`click`,()=>{this.activeTab=`canvas`,this.display()});let a=e.createDiv({cls:`quiet-outline-tab-content`});this.activeTab===`general`?this.renderGeneralSettings(a):this.activeTab===`styles`?this.renderStyleSettings(a):this.activeTab===`canvas`&&this.renderCanvasSettings(a)}renderGeneralSettings(e){e.empty(),new l.Setting(e).setName(z(`Search Support`)).setDesc(z(`Add a searching area on the top`)).addToggle(e=>e.setValue(this.plugin.settings.search_support).onChange(async e=>{this.plugin.settings.search_support=e,R.searchSupport=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Level Switch`)).setDesc(z(`Expand headings to certain level.`)).addToggle(e=>e.setValue(this.plugin.settings.level_switch).onChange(async e=>{this.plugin.settings.level_switch=e,R.levelSwitch=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Render Markdown`)).setDesc(z(`Render heading string as markdown format.`)).addToggle(e=>e.setValue(this.plugin.settings.markdown).onChange(async e=>{this.plugin.settings.markdown=e,R.markdown=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Default Level`)).setDesc(z(`Default expand level when opening a new note.`)).addDropdown(e=>e.addOption(`0`,z(`No expand`)).addOption(`1`,`H1`).addOption(`2`,`H2`).addOption(`3`,`H3`).addOption(`4`,`H4`).addOption(`5`,`H5`).setValue(this.plugin.settings.expand_level).onChange(async e=>{this.plugin.settings.expand_level=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Hide Unsearched`)).setDesc(z(`Hide irrelevant headings when searching`)).addToggle(e=>e.setValue(this.plugin.settings.hide_unsearched).onChange(async e=>{this.plugin.settings.hide_unsearched=e,R.hideUnsearched=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Regex Search`)).setDesc(z(`Search headings using regular expression`)).addToggle(e=>e.setValue(this.plugin.settings.regex_search).onChange(async e=>{this.plugin.settings.regex_search=e,R.regexSearch=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Auto Expand`)).setDesc(z(`Auto expand and collapse headings when scrolling and cursor position change`)).addDropdown(e=>e.addOption(`only-expand`,z(`Only Expand`)).addOption(`expand-and-collapse-rest-to-default`,z(`Expand and Collapse Rest to Default`)).addOption(`expand-and-collapse-rest-to-setting`,z(`Expand and Collapse Rest to Setting Level (Level Switch)`)).addOption(`disable`,z(`Disabled`)).setValue(this.plugin.settings.auto_expand_ext).onChange(async e=>{this.plugin.settings.auto_expand_ext=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Auto Scroll Into View`)).setDesc(z(`Auto scroll located heading into view`)).addToggle(e=>e.setValue(this.plugin.settings.auto_scroll_into_view).onChange(async e=>{this.plugin.settings.auto_scroll_into_view=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Locate By Cursor`)).setDesc(z(`Highlight and Auto expand postion will be determined by cursor position`)).addToggle(e=>e.setValue(this.plugin.settings.locate_by_cursor).onChange(async e=>{this.plugin.settings.locate_by_cursor=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Show Popover on hover`)).setDesc(z(`Press functional key and move cursor to heading`)).addDropdown(e=>e.addOption(`ctrlKey`,`Ctrl`).addOption(`altKey`,`Alt`).addOption(`metaKey`,`Meta`).addOption(`disable`,z(`Disable`)).setValue(this.plugin.settings.show_popover_key).onChange(async e=>{this.plugin.settings.show_popover_key=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Persist Markdown States`)).setDesc(z(`Save and restore cursor, scroll state of markdown note, as well as expanded/collapsed state of headings`)).addToggle(e=>e.setValue(this.plugin.settings.persist_md_states).onChange(async e=>{this.plugin.settings.persist_md_states=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Keep Search Input`)).setDesc(z(`Keep search input when switching between notes`)).addToggle(e=>e.setValue(this.plugin.settings.keep_search_input).onChange(async e=>{this.plugin.settings.keep_search_input=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Drag headings to modify note`)).setDesc(z(`❗ This will modify note content, be careful.`)).addToggle(e=>e.setValue(this.plugin.settings.drag_modify).onChange(async e=>{this.plugin.settings.drag_modify=e,R.dragModify=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Ellipsis`)).setDesc(z(`Keep one line per heading`)).addToggle(e=>e.setValue(this.plugin.settings.ellipsis).onChange(async e=>{this.plugin.settings.ellipsis=e,R.ellipsis=e,await this.plugin.saveSettings(),R.refreshTree(),this.display()})),this.plugin.settings.ellipsis&&new l.Setting(e).setName(z(`Tooltip direction`)).addDropdown(e=>e.addOption(`left`,`Left`).addOption(`right`,`Right`).addOption(`top`,`Top`).addOption(`bottom`,`Bottom`).setValue(this.plugin.settings.label_direction).onChange(async e=>{this.plugin.settings.label_direction=e,R.labelDirection=e,await this.plugin.saveSettings(),R.refreshTree()})),new l.Setting(e).setName(z(`Text Direction`)).setDesc(z(`is decided by`)).addDropdown(e=>e.addOption(`system`,`Obsidian Language`).addOption(`text`,`Specific text of heading`).setValue(this.plugin.settings.lang_direction_decide_by).onChange(async e=>{this.plugin.settings.lang_direction_decide_by=e,R.textDirectionDecideBy=e,await this.plugin.saveSettings(),R.refreshTree()})),new l.Setting(e).setName(z(`Export Format`)).addText(e=>e.setValue(this.plugin.settings.export_format).onChange(async e=>{this.plugin.settings.export_format=e,await this.plugin.saveSettings()}).inputEl.addClass(`quiet-outline-export-format-input`)).addExtraButton(e=>e.setIcon(`help`).setTooltip(`release doc 0.3.32`).onClick(()=>activeWindow.open(`https://github.com/guopenghui/obsidian-quiet-outline/releases/tag/0.3.32`)))}renderStyleSettings(e){e.empty(),new l.Setting(e).setName(z(`Set Primary Color`)).addToggle(e=>e.setTooltip(z(`Patch default color`)).setValue(this.plugin.settings.patch_color).onChange(async e=>{this.plugin.settings.patch_color=e,R.theme.patchColor=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.primary_color_light).onChange(async e=>{this.plugin.settings.primary_color_light=e,R.theme.primaryColorLight=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.primary_color_dark).onChange(async e=>{this.plugin.settings.primary_color_dark=e,R.theme.primaryColorDark=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Set Rainbow Line Color`)).addToggle(e=>e.setTooltip(z(`Patch default color`)).setValue(this.plugin.settings.rainbow_line).onChange(async e=>{this.plugin.settings.rainbow_line=e,R.theme.rainbowLine=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.rainbow_color_1).onChange(async e=>{this.plugin.settings.rainbow_color_1=e,R.theme.rainbowColor1=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.rainbow_color_2).onChange(async e=>{this.plugin.settings.rainbow_color_2=e,R.theme.rainbowColor2=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.rainbow_color_3).onChange(async e=>{this.plugin.settings.rainbow_color_3=e,R.theme.rainbowColor3=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.rainbow_color_4).onChange(async e=>{this.plugin.settings.rainbow_color_4=e,R.theme.rainbowColor4=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.rainbow_color_5).onChange(async e=>{this.plugin.settings.rainbow_color_5=e,R.theme.rainbowColor5=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Font Size`)).setDesc(z(`Custom font size for outline text (e.g., 14px, 1rem)`)).addText(e=>e.setPlaceholder(`inherit`).setValue(this.plugin.settings.font_size).onChange(async e=>{this.plugin.settings.font_size=e,R.theme.fontSize=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Font Family`)).setDesc(z(`Custom font family for outline text`)).addText(e=>e.setPlaceholder(`inherit`).setValue(this.plugin.settings.font_family).onChange(async e=>{this.plugin.settings.font_family=e,R.theme.fontFamily=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Font Weight`)).setDesc(z(`Custom font weight for outline text (e.g., normal, bold, 400, 700)`)).addText(e=>e.setPlaceholder(`inherit`).setValue(this.plugin.settings.font_weight).onChange(async e=>{this.plugin.settings.font_weight=e,R.theme.fontWeight=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Line Height`)).setDesc(z(`Custom line height for outline text (e.g., 1.5, 2)`)).addText(e=>e.setPlaceholder(`inherit`).setValue(this.plugin.settings.line_height).onChange(async e=>{this.plugin.settings.line_height=e,R.theme.lineHeight=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Line Gap`)).setDesc(z(`Custom gap between lines (e.g., 4px, 0.5rem)`)).addText(e=>e.setPlaceholder(`inherit`).setValue(this.plugin.settings.line_gap).onChange(async e=>{this.plugin.settings.line_gap=e,R.theme.lineGap=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Custom Font Color`)).setDesc(z(`Enable custom font colors for different heading levels`)).addToggle(e=>e.setValue(this.plugin.settings.custom_font_color).onChange(async e=>{this.plugin.settings.custom_font_color=e,R.theme.customFontColor=e,await this.plugin.saveSettings(),this.display()})),this.plugin.settings.custom_font_color&&(new l.Setting(e).setName(z(`H1 Color`)).addColorPicker(e=>e.setValue(this.plugin.settings.h1_color).onChange(async e=>{this.plugin.settings.h1_color=e,R.theme.h1ColorLight=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.h1_color_dark).onChange(async e=>{this.plugin.settings.h1_color_dark=e,R.theme.h1ColorDark=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`H2 Color`)).addColorPicker(e=>e.setValue(this.plugin.settings.h2_color).onChange(async e=>{this.plugin.settings.h2_color=e,R.theme.h2ColorLight=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.h2_color_dark).onChange(async e=>{this.plugin.settings.h2_color_dark=e,R.theme.h2ColorDark=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`H3 Color`)).addColorPicker(e=>e.setValue(this.plugin.settings.h3_color).onChange(async e=>{this.plugin.settings.h3_color=e,R.theme.h3ColorLight=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.h3_color_dark).onChange(async e=>{this.plugin.settings.h3_color_dark=e,R.theme.h3ColorDark=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`H4 Color`)).addColorPicker(e=>e.setValue(this.plugin.settings.h4_color).onChange(async e=>{this.plugin.settings.h4_color=e,R.theme.h4ColorLight=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.h4_color_dark).onChange(async e=>{this.plugin.settings.h4_color_dark=e,R.theme.h4ColorDark=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`H5 Color`)).addColorPicker(e=>e.setValue(this.plugin.settings.h5_color).onChange(async e=>{this.plugin.settings.h5_color=e,R.theme.h5ColorLight=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.h5_color_dark).onChange(async e=>{this.plugin.settings.h5_color_dark=e,R.theme.h5ColorDark=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`H6 Color`)).addColorPicker(e=>e.setValue(this.plugin.settings.h6_color).onChange(async e=>{this.plugin.settings.h6_color=e,R.theme.h6ColorLight=e,await this.plugin.saveSettings()})).addColorPicker(e=>e.setValue(this.plugin.settings.h6_color_dark).onChange(async e=>{this.plugin.settings.h6_color_dark=e,R.theme.h6ColorDark=e,await this.plugin.saveSettings()})))}renderCanvasSettings(e){e.empty(),new l.Setting(e).setName(z(`Vimlize Canvas`)).setDesc(z(`Add vim-like keymap for canvas`)).addToggle(e=>e.setValue(this.plugin.settings.vimlize_canvas).onChange(async e=>{this.plugin.settings.vimlize_canvas=e,await this.plugin.saveSettings()})),new l.Setting(e).setName(z(`Heading Truncate Length`)).addText(e=>e.setValue(this.plugin.settings.heading_truncate_length.toString()).onChange(async e=>{let t=parseInt(e);isNaN(t)||(this.plugin.settings.heading_truncate_length=t,await this.plugin.saveSettings())})),new l.Setting(e).setName(z(`Canvas Sort Order`)).setDesc(z(`Sort method for canvas nodes`)).addDropdown(e=>e.addOption(`area`,z(`Sort by Area`)).addOption(`name_asc`,z(`Sort by Name (A -> Z)`)).addOption(`name_desc`,z(`Sort by Name (Z -> A)`)).setValue(this.plugin.settings.canvas_sort_by).onChange(async e=>{this.plugin.settings.canvas_sort_by=e,await this.plugin.saveSettings(),this.plugin.refresh()})),new l.Setting(e).setName(z(`Show group nodes`)).addToggle(e=>e.setValue(this.plugin.settings.shown_node_types.includes(`group`)).onChange(async e=>{let t=new Set(this.plugin.settings.shown_node_types);e?t.add(`group`):t.delete(`group`),this.plugin.settings.shown_node_types=Array.from(t),await this.plugin.saveSettings(),this.plugin.refresh()})),new l.Setting(e).setName(z(`Show file nodes`)).addToggle(e=>e.setValue(this.plugin.settings.shown_node_types.includes(`file`)).onChange(async e=>{let t=new Set(this.plugin.settings.shown_node_types);e?t.add(`file`):t.delete(`file`),this.plugin.settings.shown_node_types=Array.from(t),await this.plugin.saveSettings(),this.plugin.refresh()})),new l.Setting(e).setName(z(`Show text nodes`)).addToggle(e=>e.setValue(this.plugin.settings.shown_node_types.includes(`text`)).onChange(async e=>{let t=new Set(this.plugin.settings.shown_node_types);e?t.add(`text`):t.delete(`text`),this.plugin.settings.shown_node_types=Array.from(t),await this.plugin.saveSettings(),this.plugin.refresh()})),new l.Setting(e).setName(z(`Show link nodes`)).addToggle(e=>e.setValue(this.plugin.settings.shown_node_types.includes(`link`)).onChange(async e=>{let t=new Set(this.plugin.settings.shown_node_types);e?t.add(`link`):t.delete(`link`),this.plugin.settings.shown_node_types=Array.from(t),await this.plugin.saveSettings(),this.plugin.refresh()}))}},Gz=class{cache={};writeQueue=Promise.resolve();constructor(e,t){this.app=e,this.pluginPath=t}async checkPath(e){let t=e.split(`/`).slice(0,-1).join(`/`);await this.app.vault.adapter.exists(t)||await this.app.vault.createFolder(t)}async writeFileDirectly(e,t){await this.checkPath(e),await this.app.vault.adapter.write(e,t)}getData(e){if(this.cache[e])return this.cache[e]}async loadFileData(e,t){let n=[this.pluginPath,e].join(`/`);if(!await this.app.vault.adapter.exists(n))return await this.writeFileDirectly(n,JSON.stringify(t,null,2)),this.cache[e]=t,t;let r=await this.app.vault.adapter.read(n);return this.cache[e]=Jj(r,t),this.cache[e]}saveFileData=(0,l.debounce)(this._saveFileData.bind(this),200,!0);_saveFileData(e,t){this.cache[e]=t;let n=[this.pluginPath,e].join(`/`);this.writeQueue=this.writeQueue.then(()=>this.app.vault.adapter.write(n,JSON.stringify(t,null,2))).catch(e=>console.error(`Failed to save data to ${n}: ${e}`))}};function Kz(e){let t=[{id:`quiet-outline`,name:`Quiet Outline`,callback:()=>{e.activateView()}},{id:`focus-heading-tree`,name:`Focus Heading Tree`,callback:async()=>{let t=e.app.workspace.getLeavesOfType(Bz)[0];if(!t)return;let n=t.view;await e.app.workspace.revealLeaf(t),n.focusOn(`tree`)}},{id:`quiet-outline-reset`,name:`Reset expanding level`,callback:()=>{oc.trigger(`reset-panel`)}},{id:`quiet-outline-focus-input`,name:`Focus on input`,callback:async()=>{let t=e.app.workspace.getLeavesOfType(Bz)[0];if(!t)return;let n=t.view;await e.app.workspace.revealLeaf(t),n.focusOn(`search`)}},{id:`quiet-outline-copy-as-text`,name:`Copy Current Headings As Text`,callback:async()=>{let t=Xc(R.headers,e.settings.export_format);await navigator.clipboard.writeText(t.join(`
`)),new l.Notice(`Headings copied`)}},{id:`inc-level`,name:`Increase Level`,callback:()=>{oc.trigger(`levelchange`,`inc`)}},{id:`dec-level`,name:`Decrease Level`,callback:()=>{oc.trigger(`levelchange`,`dec`)}},{id:`prev-heading`,name:`To previous heading`,editorCallback:t=>{let n=t.getCursor().line,r=R.headers.findLastIndex(e=>e.line<n);r!==-1&&e.navigator.jump(r)}},{id:`next-heading`,name:`To next heading`,editorCallback:t=>{let n=t.getCursor().line,r=R.headers.findIndex(e=>e.line>n);r!==-1&&e.navigator.jump(r)}}];for(let n of t)e.addCommand(n)}var qz=class extends l.Plugin{settings;navigator=Hl(`dummy`,this,null);jumping=Ws.resolved();klasses={};data_manager;outlineView=null;allow_scroll=!0;block_scroll;allow_cursor_change=!0;block_cursor_change;prevActiveFile=null;prevActiveFileView=null;prevView=null;async startJumping(){let e=this.jumping=new Ws;await Promise.race([e.promise,sleep(1e3)]),e.resolve()}async onload(){await this.loadSettings(),this.data_manager=new Gz(this.app,this.getPluginPath()),await this.data_manager.loadFileData(Qc,{}),R.init(this),this.registerView(Bz,e=>new Vz(e,this)),this.registerListener(),Kz(this),this.addSettingTab(new Wz(this.app,this)),await this.firstTimeInstall()&&this.app.workspace.onLayoutReady(()=>{this.activateView(),this.saveSettings()}),this.block_scroll=Hz(()=>{this.allow_scroll=!1},300,()=>{this.allow_scroll=!0}),this.block_cursor_change=Hz(()=>{this.allow_cursor_change=!1},300,()=>{this.allow_cursor_change=!0})}async firstTimeInstall(){return!await this.app.vault.adapter.exists(this.manifest.dir+`/data.json`)}registerListener(){this.registerEvent(this.app.workspace.on(`css-change`,()=>{R.dark=activeDocument.body.hasClass(`theme-dark`),R.cssChange=!R.cssChange})),this.registerEvent(this.app.metadataCache.on(`changed`,()=>{this.refresh(`file-modify`)})),this.registerEvent(this.app.workspace.on(`active-leaf-change`,async e=>{let t=this.prevView;if(this.prevView=e?.view||null,e){if(!this.app.workspace.getActiveFileView()){this.prevActiveFileView=null,this.prevActiveFile=null,oc.trigger(`active-fileview-change`,null);return}if(e.view instanceof l.FileView&&e.view.navigation&&e.view.file){let n=e.view.getViewType()===`canvas`&&this.prevActiveFileView===e.view&&e.view===t;(e.view!==this.prevActiveFileView||e.view.file!==this.prevActiveFile||n)&&(this.prevActiveFileView=e.view,this.prevActiveFile=e.view.file,oc.trigger(`active-fileview-change`,e.view))}}})),this.registerEvent(oc.on(`active-fileview-change`,async e=>{if(!this.outlineView?.leaf?.group){if(!e){await this.updateNavAndRefresh(`dummy`,null);return}this.block_cursor_change(),await this.updateNavAndRefresh(e.getViewType(),e)}}));let e=(e,t)=>{if(!this.settings.persist_md_states)return t;let n=this.data_manager.getData(Qc)[typeof e.state?.file==`string`?e.state.file:``];return n?{...t,scroll:n.scroll,cursor:n.cursor}:t};this.register(d(l.WorkspaceLeaf.prototype,{setViewState(t){return async function(n,r){return n.type===`markdown`?t.apply(this,[n,e(n,r)]):t.apply(this,[n,r])}}}))}refresh_outline=async e=>{e===`file-modify`?await this.navigator.updateHeaders():await this.navigator.setHeaders()};refresh=(0,l.debounce)(this.refresh_outline,300,!0);async updateNav(e,t){await this.navigator.unload(),this.navigator=Hl(e,this,t),await this.navigator.load()}async updateNavAndRefresh(e,t){await this.updateNav(e,t),R.headers=await this.navigator.getHeaders(),this.outlineView?.vueInstance.onLeafChange()}onunload(){this.unloadPlugin()}async unloadPlugin(){try{await this.navigator.unload()}finally{this.outlineView=null}}async loadSettings(){this.settings=Object.assign({},Uz,await this.loadData())}async saveSettings(){await this.saveData(this.settings)}getPluginPath(){return this.manifest.dir}async activateView(){this.app.workspace.getLeavesOfType(`quiet-outline`).length===0&&await this.app.workspace.getRightLeaf(!1)?.setViewState({type:Bz,active:!0}),await this.app.workspace.revealLeaf(this.app.workspace.getLeavesOfType(Bz)[0])}};exports.default=qz;
/* nosourcemap */