diff --git a/plugins/zmmfzpta/assets/collect-36e46703.svg b/plugins/zmmfzpta/assets/collect-36e46703.svg
new file mode 100644
index 00000000..6c8789fb
--- /dev/null
+++ b/plugins/zmmfzpta/assets/collect-36e46703.svg
@@ -0,0 +1,4 @@
+
\ No newline at end of file
diff --git a/plugins/zmmfzpta/assets/del-64733c22.svg b/plugins/zmmfzpta/assets/del-64733c22.svg
new file mode 100644
index 00000000..d99fcb0f
--- /dev/null
+++ b/plugins/zmmfzpta/assets/del-64733c22.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/plugins/zmmfzpta/assets/favorite-a7bd6528.svg b/plugins/zmmfzpta/assets/favorite-a7bd6528.svg
new file mode 100644
index 00000000..426f7551
--- /dev/null
+++ b/plugins/zmmfzpta/assets/favorite-a7bd6528.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/plugins/zmmfzpta/assets/free-382ba20e.svg b/plugins/zmmfzpta/assets/free-382ba20e.svg
new file mode 100644
index 00000000..dbbb270d
--- /dev/null
+++ b/plugins/zmmfzpta/assets/free-382ba20e.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/plugins/zmmfzpta/assets/hot-e1cbd962.svg b/plugins/zmmfzpta/assets/hot-e1cbd962.svg
new file mode 100644
index 00000000..cf1e5b99
--- /dev/null
+++ b/plugins/zmmfzpta/assets/hot-e1cbd962.svg
@@ -0,0 +1,4 @@
+
\ No newline at end of file
diff --git a/plugins/zmmfzpta/assets/index-fb37ffdb.js b/plugins/zmmfzpta/assets/index-fb37ffdb.js
new file mode 100644
index 00000000..a4f8529b
--- /dev/null
+++ b/plugins/zmmfzpta/assets/index-fb37ffdb.js
@@ -0,0 +1,3724 @@
+(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const d of l.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();function makeMap(t,o){const n=Object.create(null),r=t.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=t=>onRE.test(t),isModelListener=t=>t.startsWith("onUpdate:"),extend$3=Object.assign,remove$1=(t,o)=>{const n=t.indexOf(o);n>-1&&t.splice(n,1)},hasOwnProperty$m=Object.prototype.hasOwnProperty,hasOwn$1=(t,o)=>hasOwnProperty$m.call(t,o),isArray$6=Array.isArray,isMap=t=>toTypeString(t)==="[object Map]",isSet=t=>toTypeString(t)==="[object Set]",isDate$4=t=>toTypeString(t)==="[object Date]",isRegExp$1=t=>toTypeString(t)==="[object RegExp]",isFunction$7=t=>typeof t=="function",isString$3=t=>typeof t=="string",isSymbol$4=t=>typeof t=="symbol",isObject$d=t=>t!==null&&typeof t=="object",isPromise=t=>(isObject$d(t)||isFunction$7(t))&&isFunction$7(t.then)&&isFunction$7(t.catch),objectToString$4=Object.prototype.toString,toTypeString=t=>objectToString$4.call(t),toRawType=t=>toTypeString(t).slice(8,-1),isPlainObject$3=t=>toTypeString(t)==="[object Object]",isIntegerKey=t=>isString$3(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=t=>{const o=Object.create(null);return n=>o[n]||(o[n]=t(n))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(t=>t.replace(camelizeRE,(o,n)=>n?n.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate$1=cacheStringFunction(t=>t.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$1=cacheStringFunction(t=>t.charAt(0).toUpperCase()+t.slice(1)),toHandlerKey=cacheStringFunction(t=>t?`on${capitalize$1(t)}`:""),hasChanged=(t,o)=>!Object.is(t,o),invokeArrayFns=(t,o)=>{for(let n=0;n{Object.defineProperty(t,o,{configurable:!0,enumerable:!1,value:n})},looseToNumber=t=>{const o=parseFloat(t);return isNaN(o)?t:o},toNumber$4=t=>{const o=isString$3(t)?Number(t):NaN;return isNaN(o)?t:o};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),GLOBALS_ALLOWED="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",isGloballyAllowed=makeMap(GLOBALS_ALLOWED);function normalizeStyle(t){if(isArray$6(t)){const o={};for(let n=0;n{if(n){const r=n.split(propertyDelimiterRE);r.length>1&&(o[r[0].trim()]=r[1].trim())}}),o}function normalizeClass(t){let o="";if(isString$3(t))o=t;else if(isArray$6(t))for(let n=0;nlooseEqual(n,o))}const toDisplayString=t=>isString$3(t)?t:t==null?"":isArray$6(t)||isObject$d(t)&&(t.toString===objectToString$4||!isFunction$7(t.toString))?JSON.stringify(t,replacer,2):String(t),replacer=(t,o)=>o&&o.__v_isRef?replacer(t,o.value):isMap(o)?{[`Map(${o.size})`]:[...o.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:isSet(o)?{[`Set(${o.size})`]:[...o.values()]}:isObject$d(o)&&!isArray$6(o)&&!isPlainObject$3(o)?String(o):o;let activeEffectScope;class EffectScope{constructor(o=!1){this.detached=o,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!o&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(o){if(this._active){const n=activeEffectScope;try{return activeEffectScope=this,o()}finally{activeEffectScope=n}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(o){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const o=new Set(t);return o.w=0,o.n=0,o},wasTracked=t=>(t.w&trackOpBit)>0,newTracked=t=>(t.n&trackOpBit)>0,initDepMarkers=({deps:t})=>{if(t.length)for(let o=0;o{const{deps:o}=t;if(o.length){let n=0;for(let r=0;r{(v==="length"||!isSymbol$4(v)&&v>=_)&&m.push(g)})}else switch(n!==void 0&&m.push(d.get(n)),o){case"add":isArray$6(t)?isIntegerKey(n)&&m.push(d.get("length")):(m.push(d.get(ITERATE_KEY)),isMap(t)&&m.push(d.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$6(t)||(m.push(d.get(ITERATE_KEY)),isMap(t)&&m.push(d.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(t)&&m.push(d.get(ITERATE_KEY));break}if(m.length===1)m[0]&&triggerEffects(m[0]);else{const _=[];for(const g of m)g&&_.push(...g);triggerEffects(createDep(_))}}function triggerEffects(t,o){const n=isArray$6(t)?t:[...t];for(const r of n)r.computed&&triggerEffect(r);for(const r of n)r.computed||triggerEffect(r)}function triggerEffect(t,o){(t!==activeEffect||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function getDepFromReactive(t,o){var n;return(n=targetMap.get(t))==null?void 0:n.get(o)}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(isSymbol$4)),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const t={};return["includes","indexOf","lastIndexOf"].forEach(o=>{t[o]=function(...n){const r=toRaw(this);for(let l=0,d=this.length;l{t[o]=function(...n){pauseTracking();const r=toRaw(this)[o].apply(this,n);return resetTracking(),r}}),t}function hasOwnProperty$l(t){const o=toRaw(this);return track(o,"has",t),o.hasOwnProperty(t)}class BaseReactiveHandler{constructor(o=!1,n=!1){this._isReadonly=o,this._shallow=n}get(o,n,r){const s=this._isReadonly,l=this._shallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return l;if(n==="__v_raw"&&r===(s?l?shallowReadonlyMap:readonlyMap:l?shallowReactiveMap:reactiveMap).get(o))return o;const d=isArray$6(o);if(!s){if(d&&hasOwn$1(arrayInstrumentations,n))return Reflect.get(arrayInstrumentations,n,r);if(n==="hasOwnProperty")return hasOwnProperty$l}const m=Reflect.get(o,n,r);return(isSymbol$4(n)?builtInSymbols.has(n):isNonTrackableKeys(n))||(s||track(o,"get",n),l)?m:isRef(m)?d&&isIntegerKey(n)?m:m.value:isObject$d(m)?s?readonly(m):reactive(m):m}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(o=!1){super(!1,o)}set(o,n,r,s){let l=o[n];if(isReadonly(l)&&isRef(l)&&!isRef(r))return!1;if(!this._shallow&&(!isShallow(r)&&!isReadonly(r)&&(l=toRaw(l),r=toRaw(r)),!isArray$6(o)&&isRef(l)&&!isRef(r)))return l.value=r,!0;const d=isArray$6(o)&&isIntegerKey(n)?Number(n)t,getProto=t=>Reflect.getPrototypeOf(t);function get$4(t,o,n=!1,r=!1){t=t.__v_raw;const s=toRaw(t),l=toRaw(o);n||(hasChanged(o,l)&&track(s,"get",o),track(s,"get",l));const{has:d}=getProto(s),m=r?toShallow:n?toReadonly:toReactive;if(d.call(s,o))return m(t.get(o));if(d.call(s,l))return m(t.get(l));t!==s&&t.get(o)}function has$1(t,o=!1){const n=this.__v_raw,r=toRaw(n),s=toRaw(t);return o||(hasChanged(t,s)&&track(r,"has",t),track(r,"has",s)),t===s?n.has(t):n.has(t)||n.has(s)}function size$2(t,o=!1){return t=t.__v_raw,!o&&track(toRaw(t),"iterate",ITERATE_KEY),Reflect.get(t,"size",t)}function add$3(t){t=toRaw(t);const o=toRaw(this);return getProto(o).has.call(o,t)||(o.add(t),trigger$1(o,"add",t,t)),this}function set$2(t,o){o=toRaw(o);const n=toRaw(this),{has:r,get:s}=getProto(n);let l=r.call(n,t);l||(t=toRaw(t),l=r.call(n,t));const d=s.call(n,t);return n.set(t,o),l?hasChanged(o,d)&&trigger$1(n,"set",t,o):trigger$1(n,"add",t,o),this}function deleteEntry(t){const o=toRaw(this),{has:n,get:r}=getProto(o);let s=n.call(o,t);s||(t=toRaw(t),s=n.call(o,t)),r&&r.call(o,t);const l=o.delete(t);return s&&trigger$1(o,"delete",t,void 0),l}function clear(){const t=toRaw(this),o=t.size!==0,n=t.clear();return o&&trigger$1(t,"clear",void 0,void 0),n}function createForEach(t,o){return function(r,s){const l=this,d=l.__v_raw,m=toRaw(d),_=o?toShallow:t?toReadonly:toReactive;return!t&&track(m,"iterate",ITERATE_KEY),d.forEach((g,v)=>r.call(s,_(g),_(v),l))}}function createIterableMethod(t,o,n){return function(...r){const s=this.__v_raw,l=toRaw(s),d=isMap(l),m=t==="entries"||t===Symbol.iterator&&d,_=t==="keys"&&d,g=s[t](...r),v=n?toShallow:o?toReadonly:toReactive;return!o&&track(l,"iterate",_?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:y,done:w}=g.next();return w?{value:y,done:w}:{value:m?[v(y[0]),v(y[1])]:v(y),done:w}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(t){return function(...o){return t==="delete"?!1:this}}function createInstrumentations(){const t={get(l){return get$4(this,l)},get size(){return size$2(this)},has:has$1,add:add$3,set:set$2,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},o={get(l){return get$4(this,l,!1,!0)},get size(){return size$2(this)},has:has$1,add:add$3,set:set$2,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},n={get(l){return get$4(this,l,!0)},get size(){return size$2(this,!0)},has(l){return has$1.call(this,l,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},r={get(l){return get$4(this,l,!0,!0)},get size(){return size$2(this,!0)},has(l){return has$1.call(this,l,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{t[l]=createIterableMethod(l,!1,!1),n[l]=createIterableMethod(l,!0,!1),o[l]=createIterableMethod(l,!1,!0),r[l]=createIterableMethod(l,!0,!0)}),[t,n,o,r]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(t,o){const n=o?t?shallowReadonlyInstrumentations:shallowInstrumentations:t?readonlyInstrumentations:mutableInstrumentations;return(r,s,l)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(hasOwn$1(n,s)&&s in r?n:r,s,l)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(t){return t.__v_skip||!Object.isExtensible(t)?0:targetTypeMap(toRawType(t))}function reactive(t){return isReadonly(t)?t:createReactiveObject(t,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(t){return createReactiveObject(t,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(t){return createReactiveObject(t,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(t){return createReactiveObject(t,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(t,o,n,r,s){if(!isObject$d(t)||t.__v_raw&&!(o&&t.__v_isReactive))return t;const l=s.get(t);if(l)return l;const d=getTargetType(t);if(d===0)return t;const m=new Proxy(t,d===2?r:n);return s.set(t,m),m}function isReactive(t){return isReadonly(t)?isReactive(t.__v_raw):!!(t&&t.__v_isReactive)}function isReadonly(t){return!!(t&&t.__v_isReadonly)}function isShallow(t){return!!(t&&t.__v_isShallow)}function isProxy(t){return isReactive(t)||isReadonly(t)}function toRaw(t){const o=t&&t.__v_raw;return o?toRaw(o):t}function markRaw(t){return def(t,"__v_skip",!0),t}const toReactive=t=>isObject$d(t)?reactive(t):t,toReadonly=t=>isObject$d(t)?readonly(t):t;function trackRefValue(t){shouldTrack&&activeEffect&&(t=toRaw(t),trackEffects(t.dep||(t.dep=createDep())))}function triggerRefValue(t,o){t=toRaw(t);const n=t.dep;n&&triggerEffects(n)}function isRef(t){return!!(t&&t.__v_isRef===!0)}function ref(t){return createRef(t,!1)}function shallowRef(t){return createRef(t,!0)}function createRef(t,o){return isRef(t)?t:new RefImpl(t,o)}class RefImpl{constructor(o,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?o:toRaw(o),this._value=n?o:toReactive(o)}get value(){return trackRefValue(this),this._value}set value(o){const n=this.__v_isShallow||isShallow(o)||isReadonly(o);o=n?o:toRaw(o),hasChanged(o,this._rawValue)&&(this._rawValue=o,this._value=n?o:toReactive(o),triggerRefValue(this))}}function triggerRef(t){triggerRefValue(t)}function unref(t){return isRef(t)?t.value:t}function toValue(t){return isFunction$7(t)?t():unref(t)}const shallowUnwrapHandlers={get:(t,o,n)=>unref(Reflect.get(t,o,n)),set:(t,o,n,r)=>{const s=t[o];return isRef(s)&&!isRef(n)?(s.value=n,!0):Reflect.set(t,o,n,r)}};function proxyRefs(t){return isReactive(t)?t:new Proxy(t,shallowUnwrapHandlers)}class CustomRefImpl{constructor(o){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=o(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=n,this._set=r}get value(){return this._get()}set value(o){this._set(o)}}function customRef(t){return new CustomRefImpl(t)}function toRefs(t){const o=isArray$6(t)?new Array(t.length):{};for(const n in t)o[n]=propertyToRef(t,n);return o}class ObjectRefImpl{constructor(o,n,r){this._object=o,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const o=this._object[this._key];return o===void 0?this._defaultValue:o}set value(o){this._object[this._key]=o}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(o){this._getter=o,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function toRef(t,o,n){return isRef(t)?t:isFunction$7(t)?new GetterRefImpl(t):isObject$d(t)&&arguments.length>1?propertyToRef(t,o,n):ref(t)}function propertyToRef(t,o,n){const r=t[o];return isRef(r)?r:new ObjectRefImpl(t,o,n)}class ComputedRefImpl{constructor(o,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ReactiveEffect(o,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const o=toRaw(this);return trackRefValue(o),(o._dirty||!o._cacheable)&&(o._dirty=!1,o._value=o.effect.run()),o._value}set value(o){this._setter(o)}}function computed$1(t,o,n=!1){let r,s;const l=isFunction$7(t);return l?(r=t,s=NOOP):(r=t.get,s=t.set),new ComputedRefImpl(r,s,l||!s,n)}function warn$4(t,...o){}function assertNumber(t,o){}function callWithErrorHandling(t,o,n,r){let s;try{s=r?t(...r):t()}catch(l){handleError(l,o,n)}return s}function callWithAsyncErrorHandling(t,o,n,r){if(isFunction$7(t)){const l=callWithErrorHandling(t,o,n,r);return l&&isPromise(l)&&l.catch(d=>{handleError(d,o,n)}),l}const s=[];for(let l=0;l>>1,s=queue[r],l=getId(s);lflushIndex&&queue.splice(o,1)}function queuePostFlushCb(t){isArray$6(t)?pendingPostFlushCbs.push(...t):(!activePostFlushCbs||!activePostFlushCbs.includes(t,t.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(t),queueFlush()}function flushPreFlushCbs(t,o=isFlushing?flushIndex+1:0){for(;ogetId(n)-getId(r)),postFlushIndex=0;postFlushIndext.id==null?1/0:t.id,comparator=(t,o)=>{const n=getId(t)-getId(o);if(n===0){if(t.pre&&!o.pre)return-1;if(o.pre&&!t.pre)return 1}return n};function flushJobs(t){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);const o=NOOP;try{for(flushIndex=0;flushIndexdevtools.emit(s,...l)),buffer=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((o.__VUE_DEVTOOLS_HOOK_REPLAY__=o.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(l=>{setDevtoolsHook(l,o)}),setTimeout(()=>{devtools||(o.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer=[])},3e3)):buffer=[]}function emit(t,o,...n){if(t.isUnmounted)return;const r=t.vnode.props||EMPTY_OBJ;let s=n;const l=o.startsWith("update:"),d=l&&o.slice(7);if(d&&d in r){const v=`${d==="modelValue"?"model":d}Modifiers`,{number:y,trim:w}=r[v]||EMPTY_OBJ;w&&(s=n.map(B=>isString$3(B)?B.trim():B)),y&&(s=n.map(looseToNumber))}let m,_=r[m=toHandlerKey(o)]||r[m=toHandlerKey(camelize(o))];!_&&l&&(_=r[m=toHandlerKey(hyphenate$1(o))]),_&&callWithAsyncErrorHandling(_,t,6,s);const g=r[m+"Once"];if(g){if(!t.emitted)t.emitted={};else if(t.emitted[m])return;t.emitted[m]=!0,callWithAsyncErrorHandling(g,t,6,s)}}function normalizeEmitsOptions(t,o,n=!1){const r=o.emitsCache,s=r.get(t);if(s!==void 0)return s;const l=t.emits;let d={},m=!1;if(!isFunction$7(t)){const _=g=>{const v=normalizeEmitsOptions(g,o,!0);v&&(m=!0,extend$3(d,v))};!n&&o.mixins.length&&o.mixins.forEach(_),t.extends&&_(t.extends),t.mixins&&t.mixins.forEach(_)}return!l&&!m?(isObject$d(t)&&r.set(t,null),null):(isArray$6(l)?l.forEach(_=>d[_]=null):extend$3(d,l),isObject$d(t)&&r.set(t,d),d)}function isEmitListener(t,o){return!t||!isOn(o)?!1:(o=o.slice(2).replace(/Once$/,""),hasOwn$1(t,o[0].toLowerCase()+o.slice(1))||hasOwn$1(t,hyphenate$1(o))||hasOwn$1(t,o))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(t){const o=currentRenderingInstance;return currentRenderingInstance=t,currentScopeId=t&&t.type.__scopeId||null,o}function pushScopeId(t){currentScopeId=t}function popScopeId(){currentScopeId=null}const withScopeId=t=>withCtx;function withCtx(t,o=currentRenderingInstance,n){if(!o||t._n)return t;const r=(...s)=>{r._d&&setBlockTracking(-1);const l=setCurrentRenderingInstance(o);let d;try{d=t(...s)}finally{setCurrentRenderingInstance(l),r._d&&setBlockTracking(1)}return d};return r._n=!0,r._c=!0,r._d=!0,r}function markAttrsAccessed(){}function renderComponentRoot(t){const{type:o,vnode:n,proxy:r,withProxy:s,props:l,propsOptions:[d],slots:m,attrs:_,emit:g,render:v,renderCache:y,data:w,setupState:B,ctx:k,inheritAttrs:N}=t;let S,x;const C=setCurrentRenderingInstance(t);try{if(n.shapeFlag&4){const D=s||r;S=normalizeVNode(v.call(D,D,y,l,B,w,k)),x=_}else{const D=o;S=normalizeVNode(D.length>1?D(l,{attrs:_,slots:m,emit:g}):D(l,null)),x=o.props?_:getFunctionalFallthrough(_)}}catch(D){blockStack.length=0,handleError(D,t,1),S=createVNode(Comment$2)}let I=S;if(x&&N!==!1){const D=Object.keys(x),{shapeFlag:R}=I;D.length&&R&7&&(d&&D.some(isModelListener)&&(x=filterModelListeners(x,d)),I=cloneVNode(I,x))}return n.dirs&&(I=cloneVNode(I),I.dirs=I.dirs?I.dirs.concat(n.dirs):n.dirs),n.transition&&(I.transition=n.transition),S=I,setCurrentRenderingInstance(C),S}function filterSingleRoot(t){let o;for(let n=0;n{let o;for(const n in t)(n==="class"||n==="style"||isOn(n))&&((o||(o={}))[n]=t[n]);return o},filterModelListeners=(t,o)=>{const n={};for(const r in t)(!isModelListener(r)||!(r.slice(9)in o))&&(n[r]=t[r]);return n};function shouldUpdateComponent(t,o,n){const{props:r,children:s,component:l}=t,{props:d,children:m,patchFlag:_}=o,g=l.emitsOptions;if(o.dirs||o.transition)return!0;if(n&&_>=0){if(_&1024)return!0;if(_&16)return r?hasPropsChanged(r,d,g):!!d;if(_&8){const v=o.dynamicProps;for(let y=0;yt.__isSuspense,SuspenseImpl={name:"Suspense",__isSuspense:!0,process(t,o,n,r,s,l,d,m,_,g){t==null?mountSuspense(o,n,r,s,l,d,m,_,g):patchSuspense(t,o,n,r,s,d,m,_,g)},hydrate:hydrateSuspense,create:createSuspenseBoundary,normalize:normalizeSuspenseChildren},Suspense=SuspenseImpl;function triggerEvent(t,o){const n=t.props&&t.props[o];isFunction$7(n)&&n()}function mountSuspense(t,o,n,r,s,l,d,m,_){const{p:g,o:{createElement:v}}=_,y=v("div"),w=t.suspense=createSuspenseBoundary(t,s,r,o,y,n,l,d,m,_);g(null,w.pendingBranch=t.ssContent,y,null,r,w,l,d),w.deps>0?(triggerEvent(t,"onPending"),triggerEvent(t,"onFallback"),g(null,t.ssFallback,o,n,r,null,l,d),setActiveBranch(w,t.ssFallback)):w.resolve(!1,!0)}function patchSuspense(t,o,n,r,s,l,d,m,{p:_,um:g,o:{createElement:v}}){const y=o.suspense=t.suspense;y.vnode=o,o.el=t.el;const w=o.ssContent,B=o.ssFallback,{activeBranch:k,pendingBranch:N,isInFallback:S,isHydrating:x}=y;if(N)y.pendingBranch=w,isSameVNodeType(w,N)?(_(N,w,y.hiddenContainer,null,s,y,l,d,m),y.deps<=0?y.resolve():S&&(_(k,B,n,r,s,null,l,d,m),setActiveBranch(y,B))):(y.pendingId++,x?(y.isHydrating=!1,y.activeBranch=N):g(N,s,y),y.deps=0,y.effects.length=0,y.hiddenContainer=v("div"),S?(_(null,w,y.hiddenContainer,null,s,y,l,d,m),y.deps<=0?y.resolve():(_(k,B,n,r,s,null,l,d,m),setActiveBranch(y,B))):k&&isSameVNodeType(w,k)?(_(k,w,n,r,s,y,l,d,m),y.resolve(!0)):(_(null,w,y.hiddenContainer,null,s,y,l,d,m),y.deps<=0&&y.resolve()));else if(k&&isSameVNodeType(w,k))_(k,w,n,r,s,y,l,d,m),setActiveBranch(y,w);else if(triggerEvent(o,"onPending"),y.pendingBranch=w,y.pendingId++,_(null,w,y.hiddenContainer,null,s,y,l,d,m),y.deps<=0)y.resolve();else{const{timeout:C,pendingId:I}=y;C>0?setTimeout(()=>{y.pendingId===I&&y.fallback(B)},C):C===0&&y.fallback(B)}}function createSuspenseBoundary(t,o,n,r,s,l,d,m,_,g,v=!1){const{p:y,m:w,um:B,n:k,o:{parentNode:N,remove:S}}=g;let x;const C=isVNodeSuspensible(t);C&&o!=null&&o.pendingBranch&&(x=o.pendingId,o.deps++);const I=t.props?toNumber$4(t.props.timeout):void 0,D={vnode:t,parent:o,parentComponent:n,isSVG:d,container:r,hiddenContainer:s,anchor:l,deps:0,pendingId:0,timeout:typeof I=="number"?I:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:v,isUnmounted:!1,effects:[],resolve(R=!1,O=!1){const{vnode:Q,activeBranch:Y,pendingBranch:W,pendingId:K,effects:ee,parentComponent:q,container:ae}=D;let ie=!1;if(D.isHydrating)D.isHydrating=!1;else if(!R){ie=Y&&W.transition&&W.transition.mode==="out-in",ie&&(Y.transition.afterLeave=()=>{K===D.pendingId&&(w(W,ae,j,0),queuePostFlushCb(ee))});let{anchor:j}=D;Y&&(j=k(Y),B(Y,q,D,!0)),ie||w(W,ae,j,0)}setActiveBranch(D,W),D.pendingBranch=null,D.isInFallback=!1;let oe=D.parent,J=!1;for(;oe;){if(oe.pendingBranch){oe.effects.push(...ee),J=!0;break}oe=oe.parent}!J&&!ie&&queuePostFlushCb(ee),D.effects=[],C&&o&&o.pendingBranch&&x===o.pendingId&&(o.deps--,o.deps===0&&!O&&o.resolve()),triggerEvent(Q,"onResolve")},fallback(R){if(!D.pendingBranch)return;const{vnode:O,activeBranch:Q,parentComponent:Y,container:W,isSVG:K}=D;triggerEvent(O,"onFallback");const ee=k(Q),q=()=>{D.isInFallback&&(y(null,R,W,ee,Y,null,K,m,_),setActiveBranch(D,R))},ae=R.transition&&R.transition.mode==="out-in";ae&&(Q.transition.afterLeave=q),D.isInFallback=!0,B(Q,Y,null,!0),ae||q()},move(R,O,Q){D.activeBranch&&w(D.activeBranch,R,O,Q),D.container=R},next(){return D.activeBranch&&k(D.activeBranch)},registerDep(R,O){const Q=!!D.pendingBranch;Q&&D.deps++;const Y=R.vnode.el;R.asyncDep.catch(W=>{handleError(W,R,0)}).then(W=>{if(R.isUnmounted||D.isUnmounted||D.pendingId!==R.suspenseId)return;R.asyncResolved=!0;const{vnode:K}=R;handleSetupResult(R,W,!1),Y&&(K.el=Y);const ee=!Y&&R.subTree.el;O(R,K,N(Y||R.subTree.el),Y?null:k(R.subTree),D,d,_),ee&&S(ee),updateHOCHostEl(R,K.el),Q&&--D.deps===0&&D.resolve()})},unmount(R,O){D.isUnmounted=!0,D.activeBranch&&B(D.activeBranch,n,R,O),D.pendingBranch&&B(D.pendingBranch,n,R,O)}};return D}function hydrateSuspense(t,o,n,r,s,l,d,m,_){const g=o.suspense=createSuspenseBoundary(o,r,n,t.parentNode,document.createElement("div"),null,s,l,d,m,!0),v=_(t,g.pendingBranch=o.ssContent,n,g,l,d);return g.deps===0&&g.resolve(!1,!0),v}function normalizeSuspenseChildren(t){const{shapeFlag:o,children:n}=t,r=o&32;t.ssContent=normalizeSuspenseSlot(r?n.default:n),t.ssFallback=r?normalizeSuspenseSlot(n.fallback):createVNode(Comment$2)}function normalizeSuspenseSlot(t){let o;if(isFunction$7(t)){const n=isBlockTreeEnabled&&t._c;n&&(t._d=!1,openBlock()),t=t(),n&&(t._d=!0,o=currentBlock,closeBlock())}return isArray$6(t)&&(t=filterSingleRoot(t)),t=normalizeVNode(t),o&&!t.dynamicChildren&&(t.dynamicChildren=o.filter(n=>n!==t)),t}function queueEffectWithSuspense(t,o){o&&o.pendingBranch?isArray$6(t)?o.effects.push(...t):o.effects.push(t):queuePostFlushCb(t)}function setActiveBranch(t,o){t.activeBranch=o;const{vnode:n,parentComponent:r}=t,s=n.el=o.el;r&&r.subTree===n&&(r.vnode.el=s,updateHOCHostEl(r,s))}function isVNodeSuspensible(t){var o;return((o=t.props)==null?void 0:o.suspensible)!=null&&t.props.suspensible!==!1}function watchEffect(t,o){return doWatch(t,null,o)}function watchPostEffect(t,o){return doWatch(t,null,{flush:"post"})}function watchSyncEffect(t,o){return doWatch(t,null,{flush:"sync"})}const INITIAL_WATCHER_VALUE={};function watch(t,o,n){return doWatch(t,o,n)}function doWatch(t,o,{immediate:n,deep:r,flush:s,onTrack:l,onTrigger:d}=EMPTY_OBJ){var m;const _=getCurrentScope()===((m=currentInstance)==null?void 0:m.scope)?currentInstance:null;let g,v=!1,y=!1;if(isRef(t)?(g=()=>t.value,v=isShallow(t)):isReactive(t)?(g=()=>t,r=!0):isArray$6(t)?(y=!0,v=t.some(D=>isReactive(D)||isShallow(D)),g=()=>t.map(D=>{if(isRef(D))return D.value;if(isReactive(D))return traverse(D);if(isFunction$7(D))return callWithErrorHandling(D,_,2)})):isFunction$7(t)?o?g=()=>callWithErrorHandling(t,_,2):g=()=>{if(!(_&&_.isUnmounted))return w&&w(),callWithAsyncErrorHandling(t,_,3,[B])}:g=NOOP,o&&r){const D=g;g=()=>traverse(D())}let w,B=D=>{w=C.onStop=()=>{callWithErrorHandling(D,_,4)}},k;if(isInSSRComponentSetup)if(B=NOOP,o?n&&callWithAsyncErrorHandling(o,_,3,[g(),y?[]:void 0,B]):g(),s==="sync"){const D=useSSRContext();k=D.__watcherHandles||(D.__watcherHandles=[])}else return NOOP;let N=y?new Array(t.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const S=()=>{if(C.active)if(o){const D=C.run();(r||v||(y?D.some((R,O)=>hasChanged(R,N[O])):hasChanged(D,N)))&&(w&&w(),callWithAsyncErrorHandling(o,_,3,[D,N===INITIAL_WATCHER_VALUE?void 0:y&&N[0]===INITIAL_WATCHER_VALUE?[]:N,B]),N=D)}else C.run()};S.allowRecurse=!!o;let x;s==="sync"?x=S:s==="post"?x=()=>queuePostRenderEffect(S,_&&_.suspense):(S.pre=!0,_&&(S.id=_.uid),x=()=>queueJob(S));const C=new ReactiveEffect(g,x);o?n?S():N=C.run():s==="post"?queuePostRenderEffect(C.run.bind(C),_&&_.suspense):C.run();const I=()=>{C.stop(),_&&_.scope&&remove$1(_.scope.effects,C)};return k&&k.push(I),I}function instanceWatch(t,o,n){const r=this.proxy,s=isString$3(t)?t.includes(".")?createPathGetter(r,t):()=>r[t]:t.bind(r,r);let l;isFunction$7(o)?l=o:(l=o.handler,n=o);const d=currentInstance;setCurrentInstance(this);const m=doWatch(s,l.bind(r),n);return d?setCurrentInstance(d):unsetCurrentInstance(),m}function createPathGetter(t,o){const n=o.split(".");return()=>{let r=t;for(let s=0;s{traverse(n,o)});else if(isPlainObject$3(t))for(const n in t)traverse(t[n],o);return t}function withDirectives(t,o){const n=currentRenderingInstance;if(n===null)return t;const r=getExposeProxy(n)||n.proxy,s=t.dirs||(t.dirs=[]);for(let l=0;l{t.isMounted=!0}),onBeforeUnmount(()=>{t.isUnmounting=!0}),t}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(t,{slots:o}){const n=getCurrentInstance(),r=useTransitionState();let s;return()=>{const l=o.default&&getTransitionRawChildren(o.default(),!0);if(!l||!l.length)return;let d=l[0];if(l.length>1){for(const N of l)if(N.type!==Comment$2){d=N;break}}const m=toRaw(t),{mode:_}=m;if(r.isLeaving)return emptyPlaceholder(d);const g=getKeepAliveChild(d);if(!g)return emptyPlaceholder(d);const v=resolveTransitionHooks(g,m,r,n);setTransitionHooks(g,v);const y=n.subTree,w=y&&getKeepAliveChild(y);let B=!1;const{getTransitionKey:k}=g.type;if(k){const N=k();s===void 0?s=N:N!==s&&(s=N,B=!0)}if(w&&w.type!==Comment$2&&(!isSameVNodeType(g,w)||B)){const N=resolveTransitionHooks(w,m,r,n);if(setTransitionHooks(w,N),_==="out-in")return r.isLeaving=!0,N.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},emptyPlaceholder(d);_==="in-out"&&g.type!==Comment$2&&(N.delayLeave=(S,x,C)=>{const I=getLeavingNodesForType(r,w);I[String(w.key)]=w,S[leaveCbKey]=()=>{x(),S[leaveCbKey]=void 0,delete v.delayedLeave},v.delayedLeave=C})}return d}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(t,o){const{leavingVNodes:n}=t;let r=n.get(o.type);return r||(r=Object.create(null),n.set(o.type,r)),r}function resolveTransitionHooks(t,o,n,r){const{appear:s,mode:l,persisted:d=!1,onBeforeEnter:m,onEnter:_,onAfterEnter:g,onEnterCancelled:v,onBeforeLeave:y,onLeave:w,onAfterLeave:B,onLeaveCancelled:k,onBeforeAppear:N,onAppear:S,onAfterAppear:x,onAppearCancelled:C}=o,I=String(t.key),D=getLeavingNodesForType(n,t),R=(Y,W)=>{Y&&callWithAsyncErrorHandling(Y,r,9,W)},O=(Y,W)=>{const K=W[1];R(Y,W),isArray$6(Y)?Y.every(ee=>ee.length<=1)&&K():Y.length<=1&&K()},Q={mode:l,persisted:d,beforeEnter(Y){let W=m;if(!n.isMounted)if(s)W=N||m;else return;Y[leaveCbKey]&&Y[leaveCbKey](!0);const K=D[I];K&&isSameVNodeType(t,K)&&K.el[leaveCbKey]&&K.el[leaveCbKey](),R(W,[Y])},enter(Y){let W=_,K=g,ee=v;if(!n.isMounted)if(s)W=S||_,K=x||g,ee=C||v;else return;let q=!1;const ae=Y[enterCbKey$1]=ie=>{q||(q=!0,ie?R(ee,[Y]):R(K,[Y]),Q.delayedLeave&&Q.delayedLeave(),Y[enterCbKey$1]=void 0)};W?O(W,[Y,ae]):ae()},leave(Y,W){const K=String(t.key);if(Y[enterCbKey$1]&&Y[enterCbKey$1](!0),n.isUnmounting)return W();R(y,[Y]);let ee=!1;const q=Y[leaveCbKey]=ae=>{ee||(ee=!0,W(),ae?R(k,[Y]):R(B,[Y]),Y[leaveCbKey]=void 0,D[K]===t&&delete D[K])};D[K]=t,w?O(w,[Y,q]):q()},clone(Y){return resolveTransitionHooks(Y,o,n,r)}};return Q}function emptyPlaceholder(t){if(isKeepAlive(t))return t=cloneVNode(t),t.children=null,t}function getKeepAliveChild(t){return isKeepAlive(t)?t.children?t.children[0]:void 0:t}function setTransitionHooks(t,o){t.shapeFlag&6&&t.component?setTransitionHooks(t.component.subTree,o):t.shapeFlag&128?(t.ssContent.transition=o.clone(t.ssContent),t.ssFallback.transition=o.clone(t.ssFallback)):t.transition=o}function getTransitionRawChildren(t,o=!1,n){let r=[],s=0;for(let l=0;l1)for(let l=0;lextend$3({name:t.name},o,{setup:t}))():t}const isAsyncWrapper=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function defineAsyncComponent(t){isFunction$7(t)&&(t={loader:t});const{loader:o,loadingComponent:n,errorComponent:r,delay:s=200,timeout:l,suspensible:d=!0,onError:m}=t;let _=null,g,v=0;const y=()=>(v++,_=null,w()),w=()=>{let B;return _||(B=_=o().catch(k=>{if(k=k instanceof Error?k:new Error(String(k)),m)return new Promise((N,S)=>{m(k,()=>N(y()),()=>S(k),v+1)});throw k}).then(k=>B!==_&&_?_:(k&&(k.__esModule||k[Symbol.toStringTag]==="Module")&&(k=k.default),g=k,k)))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:w,get __asyncResolved(){return g},setup(){const B=currentInstance;if(g)return()=>createInnerComp(g,B);const k=C=>{_=null,handleError(C,B,13,!r)};if(d&&B.suspense||isInSSRComponentSetup)return w().then(C=>()=>createInnerComp(C,B)).catch(C=>(k(C),()=>r?createVNode(r,{error:C}):null));const N=ref(!1),S=ref(),x=ref(!!s);return s&&setTimeout(()=>{x.value=!1},s),l!=null&&setTimeout(()=>{if(!N.value&&!S.value){const C=new Error(`Async component timed out after ${l}ms.`);k(C),S.value=C}},l),w().then(()=>{N.value=!0,B.parent&&isKeepAlive(B.parent.vnode)&&queueJob(B.parent.update)}).catch(C=>{k(C),S.value=C}),()=>{if(N.value&&g)return createInnerComp(g,B);if(S.value&&r)return createVNode(r,{error:S.value});if(n&&!x.value)return createVNode(n)}}})}function createInnerComp(t,o){const{ref:n,props:r,children:s,ce:l}=o.vnode,d=createVNode(t,r,s);return d.ref=n,d.ce=l,delete o.vnode.ce,d}const isKeepAlive=t=>t.type.__isKeepAlive,KeepAliveImpl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:o}){const n=getCurrentInstance(),r=n.ctx;if(!r.renderer)return()=>{const C=o.default&&o.default();return C&&C.length===1?C[0]:C};const s=new Map,l=new Set;let d=null;const m=n.suspense,{renderer:{p:_,m:g,um:v,o:{createElement:y}}}=r,w=y("div");r.activate=(C,I,D,R,O)=>{const Q=C.component;g(C,I,D,0,m),_(Q.vnode,C,I,D,Q,m,R,C.slotScopeIds,O),queuePostRenderEffect(()=>{Q.isDeactivated=!1,Q.a&&invokeArrayFns(Q.a);const Y=C.props&&C.props.onVnodeMounted;Y&&invokeVNodeHook(Y,Q.parent,C)},m)},r.deactivate=C=>{const I=C.component;g(C,w,null,1,m),queuePostRenderEffect(()=>{I.da&&invokeArrayFns(I.da);const D=C.props&&C.props.onVnodeUnmounted;D&&invokeVNodeHook(D,I.parent,C),I.isDeactivated=!0},m)};function B(C){resetShapeFlag(C),v(C,n,m,!0)}function k(C){s.forEach((I,D)=>{const R=getComponentName(I.type);R&&(!C||!C(R))&&N(D)})}function N(C){const I=s.get(C);!d||!isSameVNodeType(I,d)?B(I):d&&resetShapeFlag(d),s.delete(C),l.delete(C)}watch(()=>[t.include,t.exclude],([C,I])=>{C&&k(D=>matches$1(C,D)),I&&k(D=>!matches$1(I,D))},{flush:"post",deep:!0});let S=null;const x=()=>{S!=null&&s.set(S,getInnerChild(n.subTree))};return onMounted(x),onUpdated(x),onBeforeUnmount(()=>{s.forEach(C=>{const{subTree:I,suspense:D}=n,R=getInnerChild(I);if(C.type===R.type&&C.key===R.key){resetShapeFlag(R);const O=R.component.da;O&&queuePostRenderEffect(O,D);return}B(C)})}),()=>{if(S=null,!o.default)return null;const C=o.default(),I=C[0];if(C.length>1)return d=null,C;if(!isVNode(I)||!(I.shapeFlag&4)&&!(I.shapeFlag&128))return d=null,I;let D=getInnerChild(I);const R=D.type,O=getComponentName(isAsyncWrapper(D)?D.type.__asyncResolved||{}:R),{include:Q,exclude:Y,max:W}=t;if(Q&&(!O||!matches$1(Q,O))||Y&&O&&matches$1(Y,O))return d=D,I;const K=D.key==null?R:D.key,ee=s.get(K);return D.el&&(D=cloneVNode(D),I.shapeFlag&128&&(I.ssContent=D)),S=K,ee?(D.el=ee.el,D.component=ee.component,D.transition&&setTransitionHooks(D,D.transition),D.shapeFlag|=512,l.delete(K),l.add(K)):(l.add(K),W&&l.size>parseInt(W,10)&&N(l.values().next().value)),D.shapeFlag|=256,d=D,isSuspense(I.type)?I:D}}},KeepAlive=KeepAliveImpl;function matches$1(t,o){return isArray$6(t)?t.some(n=>matches$1(n,o)):isString$3(t)?t.split(",").includes(o):isRegExp$1(t)?t.test(o):!1}function onActivated(t,o){registerKeepAliveHook(t,"a",o)}function onDeactivated(t,o){registerKeepAliveHook(t,"da",o)}function registerKeepAliveHook(t,o,n=currentInstance){const r=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(injectHook(o,r,n),n){let s=n.parent;for(;s&&s.parent;)isKeepAlive(s.parent.vnode)&&injectToKeepAliveRoot(r,o,n,s),s=s.parent}}function injectToKeepAliveRoot(t,o,n,r){const s=injectHook(o,t,r,!0);onUnmounted(()=>{remove$1(r[o],s)},n)}function resetShapeFlag(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function getInnerChild(t){return t.shapeFlag&128?t.ssContent:t}function injectHook(t,o,n=currentInstance,r=!1){if(n){const s=n[t]||(n[t]=[]),l=o.__weh||(o.__weh=(...d)=>{if(n.isUnmounted)return;pauseTracking(),setCurrentInstance(n);const m=callWithAsyncErrorHandling(o,n,t,d);return unsetCurrentInstance(),resetTracking(),m});return r?s.unshift(l):s.push(l),l}}const createHook=t=>(o,n=currentInstance)=>(!isInSSRComponentSetup||t==="sp")&&injectHook(t,(...r)=>o(...r),n),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(t,o=currentInstance){injectHook("ec",t,o)}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent(t,o){return resolveAsset(COMPONENTS,t,!0,o)||t}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(t){return isString$3(t)?resolveAsset(COMPONENTS,t,!1)||t:t||NULL_DYNAMIC_COMPONENT}function resolveDirective(t){return resolveAsset(DIRECTIVES,t)}function resolveAsset(t,o,n=!0,r=!1){const s=currentRenderingInstance||currentInstance;if(s){const l=s.type;if(t===COMPONENTS){const m=getComponentName(l,!1);if(m&&(m===o||m===camelize(o)||m===capitalize$1(camelize(o))))return l}const d=resolve(s[t]||l[t],o)||resolve(s.appContext[t],o);return!d&&r?l:d}}function resolve(t,o){return t&&(t[o]||t[camelize(o)]||t[capitalize$1(camelize(o))])}function renderList(t,o,n,r){let s;const l=n&&n[r];if(isArray$6(t)||isString$3(t)){s=new Array(t.length);for(let d=0,m=t.length;do(d,m,void 0,l&&l[m]));else{const d=Object.keys(t);s=new Array(d.length);for(let m=0,_=d.length;m<_;m++){const g=d[m];s[m]=o(t[g],g,m,l&&l[m])}}else s=[];return n&&(n[r]=s),s}function createSlots(t,o){for(let n=0;n{const l=r.fn(...s);return l&&(l.key=r.key),l}:r.fn)}return t}function renderSlot(t,o,n={},r,s){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.isCE)return o!=="default"&&(n.name=o),createVNode("slot",n,r&&r());let l=t[o];l&&l._c&&(l._d=!1),openBlock();const d=l&&ensureValidVNode$1(l(n)),m=createBlock(Fragment,{key:n.key||d&&d.key||`_${o}`},d||(r?r():[]),d&&t._===1?64:-2);return!s&&m.scopeId&&(m.slotScopeIds=[m.scopeId+"-s"]),l&&l._c&&(l._d=!0),m}function ensureValidVNode$1(t){return t.some(o=>isVNode(o)?!(o.type===Comment$2||o.type===Fragment&&!ensureValidVNode$1(o.children)):!0)?t:null}function toHandlers(t,o){const n={};for(const r in t)n[o&&/[A-Z]/.test(r)?`on:${r}`:toHandlerKey(r)]=t[r];return n}const getPublicInstance=t=>t?isStatefulComponent(t)?getExposeProxy(t)||t.proxy:getPublicInstance(t.parent):null,publicPropertiesMap=extend$3(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>getPublicInstance(t.parent),$root:t=>getPublicInstance(t.root),$emit:t=>t.emit,$options:t=>resolveMergedOptions(t),$forceUpdate:t=>t.f||(t.f=()=>queueJob(t.update)),$nextTick:t=>t.n||(t.n=nextTick.bind(t.proxy)),$watch:t=>instanceWatch.bind(t)}),hasSetupBinding=(t,o)=>t!==EMPTY_OBJ&&!t.__isScriptSetup&&hasOwn$1(t,o),PublicInstanceProxyHandlers={get({_:t},o){const{ctx:n,setupState:r,data:s,props:l,accessCache:d,type:m,appContext:_}=t;let g;if(o[0]!=="$"){const B=d[o];if(B!==void 0)switch(B){case 1:return r[o];case 2:return s[o];case 4:return n[o];case 3:return l[o]}else{if(hasSetupBinding(r,o))return d[o]=1,r[o];if(s!==EMPTY_OBJ&&hasOwn$1(s,o))return d[o]=2,s[o];if((g=t.propsOptions[0])&&hasOwn$1(g,o))return d[o]=3,l[o];if(n!==EMPTY_OBJ&&hasOwn$1(n,o))return d[o]=4,n[o];shouldCacheAccess&&(d[o]=0)}}const v=publicPropertiesMap[o];let y,w;if(v)return o==="$attrs"&&track(t,"get",o),v(t);if((y=m.__cssModules)&&(y=y[o]))return y;if(n!==EMPTY_OBJ&&hasOwn$1(n,o))return d[o]=4,n[o];if(w=_.config.globalProperties,hasOwn$1(w,o))return w[o]},set({_:t},o,n){const{data:r,setupState:s,ctx:l}=t;return hasSetupBinding(s,o)?(s[o]=n,!0):r!==EMPTY_OBJ&&hasOwn$1(r,o)?(r[o]=n,!0):hasOwn$1(t.props,o)||o[0]==="$"&&o.slice(1)in t?!1:(l[o]=n,!0)},has({_:{data:t,setupState:o,accessCache:n,ctx:r,appContext:s,propsOptions:l}},d){let m;return!!n[d]||t!==EMPTY_OBJ&&hasOwn$1(t,d)||hasSetupBinding(o,d)||(m=l[0])&&hasOwn$1(m,d)||hasOwn$1(r,d)||hasOwn$1(publicPropertiesMap,d)||hasOwn$1(s.config.globalProperties,d)},defineProperty(t,o,n){return n.get!=null?t._.accessCache[o]=0:hasOwn$1(n,"value")&&this.set(t,o,n.value,null),Reflect.defineProperty(t,o,n)}},RuntimeCompiledPublicInstanceProxyHandlers=extend$3({},PublicInstanceProxyHandlers,{get(t,o){if(o!==Symbol.unscopables)return PublicInstanceProxyHandlers.get(t,o,t)},has(t,o){return o[0]!=="_"&&!isGloballyAllowed(o)}});function defineProps(){return null}function defineEmits(){return null}function defineExpose(t){}function defineOptions(t){}function defineSlots(){return null}function defineModel(){}function withDefaults(t,o){return null}function useSlots(){return getContext().slots}function useAttrs(){return getContext().attrs}function useModel(t,o,n){const r=getCurrentInstance();if(n&&n.local){const s=ref(t[o]);return watch(()=>t[o],l=>s.value=l),watch(s,l=>{l!==t[o]&&r.emit(`update:${o}`,l)}),s}else return{__v_isRef:!0,get value(){return t[o]},set value(s){r.emit(`update:${o}`,s)}}}function getContext(){const t=getCurrentInstance();return t.setupContext||(t.setupContext=createSetupContext(t))}function normalizePropsOrEmits(t){return isArray$6(t)?t.reduce((o,n)=>(o[n]=null,o),{}):t}function mergeDefaults(t,o){const n=normalizePropsOrEmits(t);for(const r in o){if(r.startsWith("__skip"))continue;let s=n[r];s?isArray$6(s)||isFunction$7(s)?s=n[r]={type:s,default:o[r]}:s.default=o[r]:s===null&&(s=n[r]={default:o[r]}),s&&o[`__skip_${r}`]&&(s.skipFactory=!0)}return n}function mergeModels(t,o){return!t||!o?t||o:isArray$6(t)&&isArray$6(o)?t.concat(o):extend$3({},normalizePropsOrEmits(t),normalizePropsOrEmits(o))}function createPropsRestProxy(t,o){const n={};for(const r in t)o.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>t[r]});return n}function withAsyncContext(t){const o=getCurrentInstance();let n=t();return unsetCurrentInstance(),isPromise(n)&&(n=n.catch(r=>{throw setCurrentInstance(o),r})),[n,()=>setCurrentInstance(o)]}let shouldCacheAccess=!0;function applyOptions(t){const o=resolveMergedOptions(t),n=t.proxy,r=t.ctx;shouldCacheAccess=!1,o.beforeCreate&&callHook$1(o.beforeCreate,t,"bc");const{data:s,computed:l,methods:d,watch:m,provide:_,inject:g,created:v,beforeMount:y,mounted:w,beforeUpdate:B,updated:k,activated:N,deactivated:S,beforeDestroy:x,beforeUnmount:C,destroyed:I,unmounted:D,render:R,renderTracked:O,renderTriggered:Q,errorCaptured:Y,serverPrefetch:W,expose:K,inheritAttrs:ee,components:q,directives:ae,filters:ie}=o;if(g&&resolveInjections(g,r,null),d)for(const j in d){const re=d[j];isFunction$7(re)&&(r[j]=re.bind(n))}if(s){const j=s.call(n,n);isObject$d(j)&&(t.data=reactive(j))}if(shouldCacheAccess=!0,l)for(const j in l){const re=l[j],ce=isFunction$7(re)?re.bind(n,n):isFunction$7(re.get)?re.get.bind(n,n):NOOP,le=!isFunction$7(re)&&isFunction$7(re.set)?re.set.bind(n):NOOP,se=computed({get:ce,set:le});Object.defineProperty(r,j,{enumerable:!0,configurable:!0,get:()=>se.value,set:te=>se.value=te})}if(m)for(const j in m)createWatcher(m[j],r,n,j);if(_){const j=isFunction$7(_)?_.call(n):_;Reflect.ownKeys(j).forEach(re=>{provide(re,j[re])})}v&&callHook$1(v,t,"c");function J(j,re){isArray$6(re)?re.forEach(ce=>j(ce.bind(n))):re&&j(re.bind(n))}if(J(onBeforeMount,y),J(onMounted,w),J(onBeforeUpdate,B),J(onUpdated,k),J(onActivated,N),J(onDeactivated,S),J(onErrorCaptured,Y),J(onRenderTracked,O),J(onRenderTriggered,Q),J(onBeforeUnmount,C),J(onUnmounted,D),J(onServerPrefetch,W),isArray$6(K))if(K.length){const j=t.exposed||(t.exposed={});K.forEach(re=>{Object.defineProperty(j,re,{get:()=>n[re],set:ce=>n[re]=ce})})}else t.exposed||(t.exposed={});R&&t.render===NOOP&&(t.render=R),ee!=null&&(t.inheritAttrs=ee),q&&(t.components=q),ae&&(t.directives=ae)}function resolveInjections(t,o,n=NOOP){isArray$6(t)&&(t=normalizeInject(t));for(const r in t){const s=t[r];let l;isObject$d(s)?"default"in s?l=inject(s.from||r,s.default,!0):l=inject(s.from||r):l=inject(s),isRef(l)?Object.defineProperty(o,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:d=>l.value=d}):o[r]=l}}function callHook$1(t,o,n){callWithAsyncErrorHandling(isArray$6(t)?t.map(r=>r.bind(o.proxy)):t.bind(o.proxy),o,n)}function createWatcher(t,o,n,r){const s=r.includes(".")?createPathGetter(n,r):()=>n[r];if(isString$3(t)){const l=o[t];isFunction$7(l)&&watch(s,l)}else if(isFunction$7(t))watch(s,t.bind(n));else if(isObject$d(t))if(isArray$6(t))t.forEach(l=>createWatcher(l,o,n,r));else{const l=isFunction$7(t.handler)?t.handler.bind(n):o[t.handler];isFunction$7(l)&&watch(s,l,t)}}function resolveMergedOptions(t){const o=t.type,{mixins:n,extends:r}=o,{mixins:s,optionsCache:l,config:{optionMergeStrategies:d}}=t.appContext,m=l.get(o);let _;return m?_=m:!s.length&&!n&&!r?_=o:(_={},s.length&&s.forEach(g=>mergeOptions(_,g,d,!0)),mergeOptions(_,o,d)),isObject$d(o)&&l.set(o,_),_}function mergeOptions(t,o,n,r=!1){const{mixins:s,extends:l}=o;l&&mergeOptions(t,l,n,!0),s&&s.forEach(d=>mergeOptions(t,d,n,!0));for(const d in o)if(!(r&&d==="expose")){const m=internalOptionMergeStrats[d]||n&&n[d];t[d]=m?m(t[d],o[d]):o[d]}return t}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(t,o){return o?t?function(){return extend$3(isFunction$7(t)?t.call(this,this):t,isFunction$7(o)?o.call(this,this):o)}:o:t}function mergeInject(t,o){return mergeObjectOptions(normalizeInject(t),normalizeInject(o))}function normalizeInject(t){if(isArray$6(t)){const o={};for(let n=0;n1)return n&&isFunction$7(o)?o.call(r&&r.proxy):o}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}function initProps(t,o,n,r=!1){const s={},l={};def(l,InternalObjectKey,1),t.propsDefaults=Object.create(null),setFullProps(t,o,s,l);for(const d in t.propsOptions[0])d in s||(s[d]=void 0);n?t.props=r?s:shallowReactive(s):t.type.props?t.props=s:t.props=l,t.attrs=l}function updateProps(t,o,n,r){const{props:s,attrs:l,vnode:{patchFlag:d}}=t,m=toRaw(s),[_]=t.propsOptions;let g=!1;if((r||d>0)&&!(d&16)){if(d&8){const v=t.vnode.dynamicProps;for(let y=0;y{_=!0;const[w,B]=normalizePropsOptions(y,o,!0);extend$3(d,w),B&&m.push(...B)};!n&&o.mixins.length&&o.mixins.forEach(v),t.extends&&v(t.extends),t.mixins&&t.mixins.forEach(v)}if(!l&&!_)return isObject$d(t)&&r.set(t,EMPTY_ARR),EMPTY_ARR;if(isArray$6(l))for(let v=0;v-1,B[1]=N<0||k-1||hasOwn$1(B,"default"))&&m.push(y)}}}const g=[d,m];return isObject$d(t)&&r.set(t,g),g}function validatePropName(t){return t[0]!=="$"}function getType(t){const o=t&&t.toString().match(/^\s*(function|class) (\w+)/);return o?o[2]:t===null?"null":""}function isSameType(t,o){return getType(t)===getType(o)}function getTypeIndex(t,o){return isArray$6(o)?o.findIndex(n=>isSameType(n,t)):isFunction$7(o)&&isSameType(o,t)?0:-1}const isInternalKey=t=>t[0]==="_"||t==="$stable",normalizeSlotValue=t=>isArray$6(t)?t.map(normalizeVNode):[normalizeVNode(t)],normalizeSlot=(t,o,n)=>{if(o._n)return o;const r=withCtx((...s)=>normalizeSlotValue(o(...s)),n);return r._c=!1,r},normalizeObjectSlots=(t,o,n)=>{const r=t._ctx;for(const s in t){if(isInternalKey(s))continue;const l=t[s];if(isFunction$7(l))o[s]=normalizeSlot(s,l,r);else if(l!=null){const d=normalizeSlotValue(l);o[s]=()=>d}}},normalizeVNodeSlots=(t,o)=>{const n=normalizeSlotValue(o);t.slots.default=()=>n},initSlots=(t,o)=>{if(t.vnode.shapeFlag&32){const n=o._;n?(t.slots=toRaw(o),def(o,"_",n)):normalizeObjectSlots(o,t.slots={})}else t.slots={},o&&normalizeVNodeSlots(t,o);def(t.slots,InternalObjectKey,1)},updateSlots=(t,o,n)=>{const{vnode:r,slots:s}=t;let l=!0,d=EMPTY_OBJ;if(r.shapeFlag&32){const m=o._;m?n&&m===1?l=!1:(extend$3(s,o),!n&&m===1&&delete s._):(l=!o.$stable,normalizeObjectSlots(o,s)),d=o}else o&&(normalizeVNodeSlots(t,o),d={default:1});if(l)for(const m in s)!isInternalKey(m)&&d[m]==null&&delete s[m]};function setRef(t,o,n,r,s=!1){if(isArray$6(t)){t.forEach((w,B)=>setRef(w,o&&(isArray$6(o)?o[B]:o),n,r,s));return}if(isAsyncWrapper(r)&&!s)return;const l=r.shapeFlag&4?getExposeProxy(r.component)||r.component.proxy:r.el,d=s?null:l,{i:m,r:_}=t,g=o&&o.r,v=m.refs===EMPTY_OBJ?m.refs={}:m.refs,y=m.setupState;if(g!=null&&g!==_&&(isString$3(g)?(v[g]=null,hasOwn$1(y,g)&&(y[g]=null)):isRef(g)&&(g.value=null)),isFunction$7(_))callWithErrorHandling(_,m,12,[d,v]);else{const w=isString$3(_),B=isRef(_);if(w||B){const k=()=>{if(t.f){const N=w?hasOwn$1(y,_)?y[_]:v[_]:_.value;s?isArray$6(N)&&remove$1(N,l):isArray$6(N)?N.includes(l)||N.push(l):w?(v[_]=[l],hasOwn$1(y,_)&&(y[_]=v[_])):(_.value=[l],t.k&&(v[t.k]=_.value))}else w?(v[_]=d,hasOwn$1(y,_)&&(y[_]=d)):B&&(_.value=d,t.k&&(v[t.k]=d))};d?(k.id=-1,queuePostRenderEffect(k,n)):k()}}}let hasMismatch=!1;const isSVGContainer=t=>/svg/.test(t.namespaceURI)&&t.tagName!=="foreignObject",isComment$1=t=>t.nodeType===8;function createHydrationFunctions(t){const{mt:o,p:n,o:{patchProp:r,createText:s,nextSibling:l,parentNode:d,remove:m,insert:_,createComment:g}}=t,v=(I,D)=>{if(!D.hasChildNodes()){n(null,I,D),flushPostFlushCbs(),D._vnode=I;return}hasMismatch=!1,y(D.firstChild,I,null,null,null),flushPostFlushCbs(),D._vnode=I,hasMismatch&&console.error("Hydration completed but contains mismatches.")},y=(I,D,R,O,Q,Y=!1)=>{const W=isComment$1(I)&&I.data==="[",K=()=>N(I,D,R,O,Q,W),{type:ee,ref:q,shapeFlag:ae,patchFlag:ie}=D;let oe=I.nodeType;D.el=I,ie===-2&&(Y=!1,D.dynamicChildren=null);let J=null;switch(ee){case Text$2:oe!==3?D.children===""?(_(D.el=s(""),d(I),I),J=I):J=K():(I.data!==D.children&&(hasMismatch=!0,I.data=D.children),J=l(I));break;case Comment$2:if(oe!==8||W)if(I.tagName.toLowerCase()==="template"){const j=D.el.content.firstChild;x(j,I,R),D.el=I=j,J=l(I)}else J=K();else J=l(I);break;case Static:if(W&&(I=l(I),oe=I.nodeType),oe===1||oe===3){J=I;const j=!D.children.length;for(let re=0;re{Y=Y||!!D.dynamicChildren;const{type:W,props:K,patchFlag:ee,shapeFlag:q,dirs:ae,transition:ie}=D,oe=W==="input"&&ae||W==="option";if(oe||ee!==-1){if(ae&&invokeDirectiveHook(D,null,R,"created"),K)if(oe||!Y||ee&48)for(const re in K)(oe&&re.endsWith("value")||isOn(re)&&!isReservedProp(re))&&r(I,re,null,K[re],!1,void 0,R);else K.onClick&&r(I,"onClick",null,K.onClick,!1,void 0,R);let J;(J=K&&K.onVnodeBeforeMount)&&invokeVNodeHook(J,R,D);let j=!1;if(C(I)){j=needTransition(O,ie)&&R&&R.vnode.props&&R.vnode.props.appear;const re=I.content.firstChild;j&&ie.beforeEnter(re),x(re,I,R),D.el=I=re}if(ae&&invokeDirectiveHook(D,null,R,"beforeMount"),((J=K&&K.onVnodeMounted)||ae||j)&&queueEffectWithSuspense(()=>{J&&invokeVNodeHook(J,R,D),j&&ie.enter(I),ae&&invokeDirectiveHook(D,null,R,"mounted")},O),q&16&&!(K&&(K.innerHTML||K.textContent))){let re=B(I.firstChild,D,I,R,O,Q,Y);for(;re;){hasMismatch=!0;const ce=re;re=re.nextSibling,m(ce)}}else q&8&&I.textContent!==D.children&&(hasMismatch=!0,I.textContent=D.children)}return I.nextSibling},B=(I,D,R,O,Q,Y,W)=>{W=W||!!D.dynamicChildren;const K=D.children,ee=K.length;for(let q=0;q{const{slotScopeIds:W}=D;W&&(Q=Q?Q.concat(W):W);const K=d(I),ee=B(l(I),D,K,R,O,Q,Y);return ee&&isComment$1(ee)&&ee.data==="]"?l(D.anchor=ee):(hasMismatch=!0,_(D.anchor=g("]"),K,ee),ee)},N=(I,D,R,O,Q,Y)=>{if(hasMismatch=!0,D.el=null,Y){const ee=S(I);for(;;){const q=l(I);if(q&&q!==ee)m(q);else break}}const W=l(I),K=d(I);return m(I),n(null,D,K,W,R,O,isSVGContainer(K),Q),W},S=(I,D="[",R="]")=>{let O=0;for(;I;)if(I=l(I),I&&isComment$1(I)&&(I.data===D&&O++,I.data===R)){if(O===0)return l(I);O--}return I},x=(I,D,R)=>{const O=D.parentNode;O&&O.replaceChild(I,D);let Q=R;for(;Q;)Q.vnode.el===D&&(Q.vnode.el=I,Q.subTree.el=I),Q=Q.parent},C=I=>I.nodeType===1&&I.tagName.toLowerCase()==="template";return[v,y]}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(t){return baseCreateRenderer(t)}function createHydrationRenderer(t){return baseCreateRenderer(t,createHydrationFunctions)}function baseCreateRenderer(t,o){const n=getGlobalThis();n.__VUE__=!0;const{insert:r,remove:s,patchProp:l,createElement:d,createText:m,createComment:_,setText:g,setElementText:v,parentNode:y,nextSibling:w,setScopeId:B=NOOP,insertStaticContent:k}=t,N=(me,be,Ne,qe=null,Be=null,ge=null,ot=!1,lt=null,ut=!!be.dynamicChildren)=>{if(me===be)return;me&&!isSameVNodeType(me,be)&&(qe=ze(me),te(me,Be,ge,!0),me=null),be.patchFlag===-2&&(ut=!1,be.dynamicChildren=null);const{type:et,ref:pt,shapeFlag:Ie}=be;switch(et){case Text$2:S(me,be,Ne,qe);break;case Comment$2:x(me,be,Ne,qe);break;case Static:me==null&&C(be,Ne,qe,ot);break;case Fragment:q(me,be,Ne,qe,Be,ge,ot,lt,ut);break;default:Ie&1?R(me,be,Ne,qe,Be,ge,ot,lt,ut):Ie&6?ae(me,be,Ne,qe,Be,ge,ot,lt,ut):(Ie&64||Ie&128)&&et.process(me,be,Ne,qe,Be,ge,ot,lt,ut,ke)}pt!=null&&Be&&setRef(pt,me&&me.ref,ge,be||me,!be)},S=(me,be,Ne,qe)=>{if(me==null)r(be.el=m(be.children),Ne,qe);else{const Be=be.el=me.el;be.children!==me.children&&g(Be,be.children)}},x=(me,be,Ne,qe)=>{me==null?r(be.el=_(be.children||""),Ne,qe):be.el=me.el},C=(me,be,Ne,qe)=>{[me.el,me.anchor]=k(me.children,be,Ne,qe,me.el,me.anchor)},I=({el:me,anchor:be},Ne,qe)=>{let Be;for(;me&&me!==be;)Be=w(me),r(me,Ne,qe),me=Be;r(be,Ne,qe)},D=({el:me,anchor:be})=>{let Ne;for(;me&&me!==be;)Ne=w(me),s(me),me=Ne;s(be)},R=(me,be,Ne,qe,Be,ge,ot,lt,ut)=>{ot=ot||be.type==="svg",me==null?O(be,Ne,qe,Be,ge,ot,lt,ut):W(me,be,Be,ge,ot,lt,ut)},O=(me,be,Ne,qe,Be,ge,ot,lt)=>{let ut,et;const{type:pt,props:Ie,shapeFlag:at,transition:He,dirs:Fe}=me;if(ut=me.el=d(me.type,ge,Ie&&Ie.is,Ie),at&8?v(ut,me.children):at&16&&Y(me.children,ut,null,qe,Be,ge&&pt!=="foreignObject",ot,lt),Fe&&invokeDirectiveHook(me,null,qe,"created"),Q(ut,me,me.scopeId,ot,qe),Ie){for(const gt in Ie)gt!=="value"&&!isReservedProp(gt)&&l(ut,gt,null,Ie[gt],ge,me.children,qe,Be,ve);"value"in Ie&&l(ut,"value",null,Ie.value),(et=Ie.onVnodeBeforeMount)&&invokeVNodeHook(et,qe,me)}Fe&&invokeDirectiveHook(me,null,qe,"beforeMount");const dt=needTransition(Be,He);dt&&He.beforeEnter(ut),r(ut,be,Ne),((et=Ie&&Ie.onVnodeMounted)||dt||Fe)&&queuePostRenderEffect(()=>{et&&invokeVNodeHook(et,qe,me),dt&&He.enter(ut),Fe&&invokeDirectiveHook(me,null,qe,"mounted")},Be)},Q=(me,be,Ne,qe,Be)=>{if(Ne&&B(me,Ne),qe)for(let ge=0;ge{for(let et=ut;et{const lt=be.el=me.el;let{patchFlag:ut,dynamicChildren:et,dirs:pt}=be;ut|=me.patchFlag&16;const Ie=me.props||EMPTY_OBJ,at=be.props||EMPTY_OBJ;let He;Ne&&toggleRecurse(Ne,!1),(He=at.onVnodeBeforeUpdate)&&invokeVNodeHook(He,Ne,be,me),pt&&invokeDirectiveHook(be,me,Ne,"beforeUpdate"),Ne&&toggleRecurse(Ne,!0);const Fe=Be&&be.type!=="foreignObject";if(et?K(me.dynamicChildren,et,lt,Ne,qe,Fe,ge):ot||re(me,be,lt,null,Ne,qe,Fe,ge,!1),ut>0){if(ut&16)ee(lt,be,Ie,at,Ne,qe,Be);else if(ut&2&&Ie.class!==at.class&&l(lt,"class",null,at.class,Be),ut&4&&l(lt,"style",Ie.style,at.style,Be),ut&8){const dt=be.dynamicProps;for(let gt=0;gt{He&&invokeVNodeHook(He,Ne,be,me),pt&&invokeDirectiveHook(be,me,Ne,"updated")},qe)},K=(me,be,Ne,qe,Be,ge,ot)=>{for(let lt=0;lt{if(Ne!==qe){if(Ne!==EMPTY_OBJ)for(const lt in Ne)!isReservedProp(lt)&&!(lt in qe)&&l(me,lt,Ne[lt],null,ot,be.children,Be,ge,ve);for(const lt in qe){if(isReservedProp(lt))continue;const ut=qe[lt],et=Ne[lt];ut!==et&<!=="value"&&l(me,lt,et,ut,ot,be.children,Be,ge,ve)}"value"in qe&&l(me,"value",Ne.value,qe.value)}},q=(me,be,Ne,qe,Be,ge,ot,lt,ut)=>{const et=be.el=me?me.el:m(""),pt=be.anchor=me?me.anchor:m("");let{patchFlag:Ie,dynamicChildren:at,slotScopeIds:He}=be;He&&(lt=lt?lt.concat(He):He),me==null?(r(et,Ne,qe),r(pt,Ne,qe),Y(be.children,Ne,pt,Be,ge,ot,lt,ut)):Ie>0&&Ie&64&&at&&me.dynamicChildren?(K(me.dynamicChildren,at,Ne,Be,ge,ot,lt),(be.key!=null||Be&&be===Be.subTree)&&traverseStaticChildren(me,be,!0)):re(me,be,Ne,pt,Be,ge,ot,lt,ut)},ae=(me,be,Ne,qe,Be,ge,ot,lt,ut)=>{be.slotScopeIds=lt,me==null?be.shapeFlag&512?Be.ctx.activate(be,Ne,qe,ot,ut):ie(be,Ne,qe,Be,ge,ot,ut):oe(me,be,ut)},ie=(me,be,Ne,qe,Be,ge,ot)=>{const lt=me.component=createComponentInstance(me,qe,Be);if(isKeepAlive(me)&&(lt.ctx.renderer=ke),setupComponent(lt),lt.asyncDep){if(Be&&Be.registerDep(lt,J),!me.el){const ut=lt.subTree=createVNode(Comment$2);x(null,ut,be,Ne)}return}J(lt,me,be,Ne,Be,ge,ot)},oe=(me,be,Ne)=>{const qe=be.component=me.component;if(shouldUpdateComponent(me,be,Ne))if(qe.asyncDep&&!qe.asyncResolved){j(qe,be,Ne);return}else qe.next=be,invalidateJob(qe.update),qe.update();else be.el=me.el,qe.vnode=be},J=(me,be,Ne,qe,Be,ge,ot)=>{const lt=()=>{if(me.isMounted){let{next:pt,bu:Ie,u:at,parent:He,vnode:Fe}=me,dt=pt,gt;toggleRecurse(me,!1),pt?(pt.el=Fe.el,j(me,pt,ot)):pt=Fe,Ie&&invokeArrayFns(Ie),(gt=pt.props&&pt.props.onVnodeBeforeUpdate)&&invokeVNodeHook(gt,He,pt,Fe),toggleRecurse(me,!0);const Ke=renderComponentRoot(me),De=me.subTree;me.subTree=Ke,N(De,Ke,y(De.el),ze(De),me,Be,ge),pt.el=Ke.el,dt===null&&updateHOCHostEl(me,Ke.el),at&&queuePostRenderEffect(at,Be),(gt=pt.props&&pt.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(gt,He,pt,Fe),Be)}else{let pt;const{el:Ie,props:at}=be,{bm:He,m:Fe,parent:dt}=me,gt=isAsyncWrapper(be);if(toggleRecurse(me,!1),He&&invokeArrayFns(He),!gt&&(pt=at&&at.onVnodeBeforeMount)&&invokeVNodeHook(pt,dt,be),toggleRecurse(me,!0),Ie&&tt){const Ke=()=>{me.subTree=renderComponentRoot(me),tt(Ie,me.subTree,me,Be,null)};gt?be.type.__asyncLoader().then(()=>!me.isUnmounted&&Ke()):Ke()}else{const Ke=me.subTree=renderComponentRoot(me);N(null,Ke,Ne,qe,me,Be,ge),be.el=Ke.el}if(Fe&&queuePostRenderEffect(Fe,Be),!gt&&(pt=at&&at.onVnodeMounted)){const Ke=be;queuePostRenderEffect(()=>invokeVNodeHook(pt,dt,Ke),Be)}(be.shapeFlag&256||dt&&isAsyncWrapper(dt.vnode)&&dt.vnode.shapeFlag&256)&&me.a&&queuePostRenderEffect(me.a,Be),me.isMounted=!0,be=Ne=qe=null}},ut=me.effect=new ReactiveEffect(lt,()=>queueJob(et),me.scope),et=me.update=()=>ut.run();et.id=me.uid,toggleRecurse(me,!0),et()},j=(me,be,Ne)=>{be.component=me;const qe=me.vnode.props;me.vnode=be,me.next=null,updateProps(me,be.props,qe,Ne),updateSlots(me,be.children,Ne),pauseTracking(),flushPreFlushCbs(),resetTracking()},re=(me,be,Ne,qe,Be,ge,ot,lt,ut=!1)=>{const et=me&&me.children,pt=me?me.shapeFlag:0,Ie=be.children,{patchFlag:at,shapeFlag:He}=be;if(at>0){if(at&128){le(et,Ie,Ne,qe,Be,ge,ot,lt,ut);return}else if(at&256){ce(et,Ie,Ne,qe,Be,ge,ot,lt,ut);return}}He&8?(pt&16&&ve(et,Be,ge),Ie!==et&&v(Ne,Ie)):pt&16?He&16?le(et,Ie,Ne,qe,Be,ge,ot,lt,ut):ve(et,Be,ge,!0):(pt&8&&v(Ne,""),He&16&&Y(Ie,Ne,qe,Be,ge,ot,lt,ut))},ce=(me,be,Ne,qe,Be,ge,ot,lt,ut)=>{me=me||EMPTY_ARR,be=be||EMPTY_ARR;const et=me.length,pt=be.length,Ie=Math.min(et,pt);let at;for(at=0;atpt?ve(me,Be,ge,!0,!1,Ie):Y(be,Ne,qe,Be,ge,ot,lt,ut,Ie)},le=(me,be,Ne,qe,Be,ge,ot,lt,ut)=>{let et=0;const pt=be.length;let Ie=me.length-1,at=pt-1;for(;et<=Ie&&et<=at;){const He=me[et],Fe=be[et]=ut?cloneIfMounted(be[et]):normalizeVNode(be[et]);if(isSameVNodeType(He,Fe))N(He,Fe,Ne,null,Be,ge,ot,lt,ut);else break;et++}for(;et<=Ie&&et<=at;){const He=me[Ie],Fe=be[at]=ut?cloneIfMounted(be[at]):normalizeVNode(be[at]);if(isSameVNodeType(He,Fe))N(He,Fe,Ne,null,Be,ge,ot,lt,ut);else break;Ie--,at--}if(et>Ie){if(et<=at){const He=at+1,Fe=Heat)for(;et<=Ie;)te(me[et],Be,ge,!0),et++;else{const He=et,Fe=et,dt=new Map;for(et=Fe;et<=at;et++){const Ue=be[et]=ut?cloneIfMounted(be[et]):normalizeVNode(be[et]);Ue.key!=null&&dt.set(Ue.key,et)}let gt,Ke=0;const De=at-Fe+1;let Me=!1,Se=0;const Pe=new Array(De);for(et=0;et=De){te(Ue,Be,ge,!0);continue}let ye;if(Ue.key!=null)ye=dt.get(Ue.key);else for(gt=Fe;gt<=at;gt++)if(Pe[gt-Fe]===0&&isSameVNodeType(Ue,be[gt])){ye=gt;break}ye===void 0?te(Ue,Be,ge,!0):(Pe[ye-Fe]=et+1,ye>=Se?Se=ye:Me=!0,N(Ue,be[ye],Ne,null,Be,ge,ot,lt,ut),Ke++)}const ct=Me?getSequence(Pe):EMPTY_ARR;for(gt=ct.length-1,et=De-1;et>=0;et--){const Ue=Fe+et,ye=be[Ue],Qe=Ue+1{const{el:ge,type:ot,transition:lt,children:ut,shapeFlag:et}=me;if(et&6){se(me.component.subTree,be,Ne,qe);return}if(et&128){me.suspense.move(be,Ne,qe);return}if(et&64){ot.move(me,be,Ne,ke);return}if(ot===Fragment){r(ge,be,Ne);for(let Ie=0;Ielt.enter(ge),Be);else{const{leave:Ie,delayLeave:at,afterLeave:He}=lt,Fe=()=>r(ge,be,Ne),dt=()=>{Ie(ge,()=>{Fe(),He&&He()})};at?at(ge,Fe,dt):dt()}else r(ge,be,Ne)},te=(me,be,Ne,qe=!1,Be=!1)=>{const{type:ge,props:ot,ref:lt,children:ut,dynamicChildren:et,shapeFlag:pt,patchFlag:Ie,dirs:at}=me;if(lt!=null&&setRef(lt,null,Ne,me,!0),pt&256){be.ctx.deactivate(me);return}const He=pt&1&&at,Fe=!isAsyncWrapper(me);let dt;if(Fe&&(dt=ot&&ot.onVnodeBeforeUnmount)&&invokeVNodeHook(dt,be,me),pt&6)fe(me.component,Ne,qe);else{if(pt&128){me.suspense.unmount(Ne,qe);return}He&&invokeDirectiveHook(me,null,be,"beforeUnmount"),pt&64?me.type.remove(me,be,Ne,Be,ke,qe):et&&(ge!==Fragment||Ie>0&&Ie&64)?ve(et,be,Ne,!1,!0):(ge===Fragment&&Ie&384||!Be&&pt&16)&&ve(ut,be,Ne),qe&&ne(me)}(Fe&&(dt=ot&&ot.onVnodeUnmounted)||He)&&queuePostRenderEffect(()=>{dt&&invokeVNodeHook(dt,be,me),He&&invokeDirectiveHook(me,null,be,"unmounted")},Ne)},ne=me=>{const{type:be,el:Ne,anchor:qe,transition:Be}=me;if(be===Fragment){de(Ne,qe);return}if(be===Static){D(me);return}const ge=()=>{s(Ne),Be&&!Be.persisted&&Be.afterLeave&&Be.afterLeave()};if(me.shapeFlag&1&&Be&&!Be.persisted){const{leave:ot,delayLeave:lt}=Be,ut=()=>ot(Ne,ge);lt?lt(me.el,ge,ut):ut()}else ge()},de=(me,be)=>{let Ne;for(;me!==be;)Ne=w(me),s(me),me=Ne;s(be)},fe=(me,be,Ne)=>{const{bum:qe,scope:Be,update:ge,subTree:ot,um:lt}=me;qe&&invokeArrayFns(qe),Be.stop(),ge&&(ge.active=!1,te(ot,me,be,Ne)),lt&&queuePostRenderEffect(lt,be),queuePostRenderEffect(()=>{me.isUnmounted=!0},be),be&&be.pendingBranch&&!be.isUnmounted&&me.asyncDep&&!me.asyncResolved&&me.suspenseId===be.pendingId&&(be.deps--,be.deps===0&&be.resolve())},ve=(me,be,Ne,qe=!1,Be=!1,ge=0)=>{for(let ot=ge;otme.shapeFlag&6?ze(me.component.subTree):me.shapeFlag&128?me.suspense.next():w(me.anchor||me.el),Re=(me,be,Ne)=>{me==null?be._vnode&&te(be._vnode,null,null,!0):N(be._vnode||null,me,be,null,null,null,Ne),flushPreFlushCbs(),flushPostFlushCbs(),be._vnode=me},ke={p:N,um:te,m:se,r:ne,mt:ie,mc:Y,pc:re,pbc:K,n:ze,o:t};let xe,tt;return o&&([xe,tt]=o(ke)),{render:Re,hydrate:xe,createApp:createAppAPI(Re,xe)}}function toggleRecurse({effect:t,update:o},n){t.allowRecurse=o.allowRecurse=n}function needTransition(t,o){return(!t||t&&!t.pendingBranch)&&o&&!o.persisted}function traverseStaticChildren(t,o,n=!1){const r=t.children,s=o.children;if(isArray$6(r)&&isArray$6(s))for(let l=0;l>1,t[n[m]]0&&(o[r]=n[l-1]),n[l]=r)}}for(l=n.length,d=n[l-1];l-- >0;)n[l]=d,d=o[d];return n}const isTeleport=t=>t.__isTeleport,isTeleportDisabled=t=>t&&(t.disabled||t.disabled===""),isTargetSVG=t=>typeof SVGElement<"u"&&t instanceof SVGElement,resolveTarget=(t,o)=>{const n=t&&t.to;return isString$3(n)?o?o(n):null:n},TeleportImpl={__isTeleport:!0,process(t,o,n,r,s,l,d,m,_,g){const{mc:v,pc:y,pbc:w,o:{insert:B,querySelector:k,createText:N,createComment:S}}=g,x=isTeleportDisabled(o.props);let{shapeFlag:C,children:I,dynamicChildren:D}=o;if(t==null){const R=o.el=N(""),O=o.anchor=N("");B(R,n,r),B(O,n,r);const Q=o.target=resolveTarget(o.props,k),Y=o.targetAnchor=N("");Q&&(B(Y,Q),d=d||isTargetSVG(Q));const W=(K,ee)=>{C&16&&v(I,K,ee,s,l,d,m,_)};x?W(n,O):Q&&W(Q,Y)}else{o.el=t.el;const R=o.anchor=t.anchor,O=o.target=t.target,Q=o.targetAnchor=t.targetAnchor,Y=isTeleportDisabled(t.props),W=Y?n:O,K=Y?R:Q;if(d=d||isTargetSVG(O),D?(w(t.dynamicChildren,D,W,s,l,d,m),traverseStaticChildren(t,o,!0)):_||y(t,o,W,K,s,l,d,m,!1),x)Y?o.props&&t.props&&o.props.to!==t.props.to&&(o.props.to=t.props.to):moveTeleport(o,n,R,g,1);else if((o.props&&o.props.to)!==(t.props&&t.props.to)){const ee=o.target=resolveTarget(o.props,k);ee&&moveTeleport(o,ee,null,g,0)}else Y&&moveTeleport(o,O,Q,g,1)}updateCssVars(o)},remove(t,o,n,r,{um:s,o:{remove:l}},d){const{shapeFlag:m,children:_,anchor:g,targetAnchor:v,target:y,props:w}=t;if(y&&l(v),d&&l(g),m&16){const B=d||!isTeleportDisabled(w);for(let k=0;k<_.length;k++){const N=_[k];s(N,o,n,B,!!N.dynamicChildren)}}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(t,o,n,{o:{insert:r},m:s},l=2){l===0&&r(t.targetAnchor,o,n);const{el:d,anchor:m,shapeFlag:_,children:g,props:v}=t,y=l===2;if(y&&r(d,o,n),(!y||isTeleportDisabled(v))&&_&16)for(let w=0;w0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(t),t}function createElementBlock(t,o,n,r,s,l){return setupBlock(createBaseVNode(t,o,n,r,s,l,!0))}function createBlock(t,o,n,r,s){return setupBlock(createVNode(t,o,n,r,s,!0))}function isVNode(t){return t?t.__v_isVNode===!0:!1}function isSameVNodeType(t,o){return t.type===o.type&&t.key===o.key}function transformVNodeArgs(t){}const InternalObjectKey="__vInternal",normalizeKey=({key:t})=>t??null,normalizeRef=({ref:t,ref_key:o,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?isString$3(t)||isRef(t)||isFunction$7(t)?{i:currentRenderingInstance,r:t,k:o,f:!!n}:t:null);function createBaseVNode(t,o=null,n=null,r=0,s=null,l=t===Fragment?0:1,d=!1,m=!1){const _={__v_isVNode:!0,__v_skip:!0,type:t,props:o,key:o&&normalizeKey(o),ref:o&&normalizeRef(o),scopeId:currentScopeId,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return m?(normalizeChildren(_,n),l&128&&t.normalize(_)):n&&(_.shapeFlag|=isString$3(n)?8:16),isBlockTreeEnabled>0&&!d&¤tBlock&&(_.patchFlag>0||l&6)&&_.patchFlag!==32&¤tBlock.push(_),_}const createVNode=_createVNode;function _createVNode(t,o=null,n=null,r=0,s=null,l=!1){if((!t||t===NULL_DYNAMIC_COMPONENT)&&(t=Comment$2),isVNode(t)){const m=cloneVNode(t,o,!0);return n&&normalizeChildren(m,n),isBlockTreeEnabled>0&&!l&¤tBlock&&(m.shapeFlag&6?currentBlock[currentBlock.indexOf(t)]=m:currentBlock.push(m)),m.patchFlag|=-2,m}if(isClassComponent(t)&&(t=t.__vccOpts),o){o=guardReactiveProps(o);let{class:m,style:_}=o;m&&!isString$3(m)&&(o.class=normalizeClass(m)),isObject$d(_)&&(isProxy(_)&&!isArray$6(_)&&(_=extend$3({},_)),o.style=normalizeStyle(_))}const d=isString$3(t)?1:isSuspense(t)?128:isTeleport(t)?64:isObject$d(t)?4:isFunction$7(t)?2:0;return createBaseVNode(t,o,n,r,s,d,l,!0)}function guardReactiveProps(t){return t?isProxy(t)||InternalObjectKey in t?extend$3({},t):t:null}function cloneVNode(t,o,n=!1){const{props:r,ref:s,patchFlag:l,children:d}=t,m=o?mergeProps(r||{},o):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:m,key:m&&normalizeKey(m),ref:o&&o.ref?n&&s?isArray$6(s)?s.concat(normalizeRef(o)):[s,normalizeRef(o)]:normalizeRef(o):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:d,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:o&&t.type!==Fragment?l===-1?16:l|16:l,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&cloneVNode(t.ssContent),ssFallback:t.ssFallback&&cloneVNode(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function createTextVNode(t=" ",o=0){return createVNode(Text$2,null,t,o)}function createStaticVNode(t,o){const n=createVNode(Static,null,t);return n.staticCount=o,n}function createCommentVNode(t="",o=!1){return o?(openBlock(),createBlock(Comment$2,null,t)):createVNode(Comment$2,null,t)}function normalizeVNode(t){return t==null||typeof t=="boolean"?createVNode(Comment$2):isArray$6(t)?createVNode(Fragment,null,t.slice()):typeof t=="object"?cloneIfMounted(t):createVNode(Text$2,null,String(t))}function cloneIfMounted(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:cloneVNode(t)}function normalizeChildren(t,o){let n=0;const{shapeFlag:r}=t;if(o==null)o=null;else if(isArray$6(o))n=16;else if(typeof o=="object")if(r&65){const s=o.default;s&&(s._c&&(s._d=!1),normalizeChildren(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=o._;!s&&!(InternalObjectKey in o)?o._ctx=currentRenderingInstance:s===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?o._=1:(o._=2,t.patchFlag|=1024))}else isFunction$7(o)?(o={default:o,_ctx:currentRenderingInstance},n=32):(o=String(o),r&64?(n=16,o=[createTextVNode(o)]):n=8);t.children=o,t.shapeFlag|=n}function mergeProps(...t){const o={};for(let n=0;ncurrentInstance||currentRenderingInstance;let internalSetCurrentInstance,globalCurrentInstanceSetters,settersKey="__VUE_INSTANCE_SETTERS__";(globalCurrentInstanceSetters=getGlobalThis()[settersKey])||(globalCurrentInstanceSetters=getGlobalThis()[settersKey]=[]),globalCurrentInstanceSetters.push(t=>currentInstance=t),internalSetCurrentInstance=t=>{globalCurrentInstanceSetters.length>1?globalCurrentInstanceSetters.forEach(o=>o(t)):globalCurrentInstanceSetters[0](t)};const setCurrentInstance=t=>{internalSetCurrentInstance(t),t.scope.on()},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(t){return t.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(t,o=!1){isInSSRComponentSetup=o;const{props:n,children:r}=t.vnode,s=isStatefulComponent(t);initProps(t,n,s,o),initSlots(t,r);const l=s?setupStatefulComponent(t,o):void 0;return isInSSRComponentSetup=!1,l}function setupStatefulComponent(t,o){const n=t.type;t.accessCache=Object.create(null),t.proxy=markRaw(new Proxy(t.ctx,PublicInstanceProxyHandlers));const{setup:r}=n;if(r){const s=t.setupContext=r.length>1?createSetupContext(t):null;setCurrentInstance(t),pauseTracking();const l=callWithErrorHandling(r,t,0,[t.props,s]);if(resetTracking(),unsetCurrentInstance(),isPromise(l)){if(l.then(unsetCurrentInstance,unsetCurrentInstance),o)return l.then(d=>{handleSetupResult(t,d,o)}).catch(d=>{handleError(d,t,0)});t.asyncDep=l}else handleSetupResult(t,l,o)}else finishComponentSetup(t,o)}function handleSetupResult(t,o,n){isFunction$7(o)?t.type.__ssrInlineRender?t.ssrRender=o:t.render=o:isObject$d(o)&&(t.setupState=proxyRefs(o)),finishComponentSetup(t,n)}let compile$2,installWithProxy;function registerRuntimeCompiler(t){compile$2=t,installWithProxy=o=>{o.render._rc&&(o.withProxy=new Proxy(o.ctx,RuntimeCompiledPublicInstanceProxyHandlers))}}const isRuntimeOnly=()=>!compile$2;function finishComponentSetup(t,o,n){const r=t.type;if(!t.render){if(!o&&compile$2&&!r.render){const s=r.template||resolveMergedOptions(t).template;if(s){const{isCustomElement:l,compilerOptions:d}=t.appContext.config,{delimiters:m,compilerOptions:_}=r,g=extend$3(extend$3({isCustomElement:l,delimiters:m},d),_);r.render=compile$2(s,g)}}t.render=r.render||NOOP,installWithProxy&&installWithProxy(t)}{setCurrentInstance(t),pauseTracking();try{applyOptions(t)}finally{resetTracking(),unsetCurrentInstance()}}}function getAttrsProxy(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(o,n){return track(t,"get","$attrs"),o[n]}}))}function createSetupContext(t){const o=n=>{t.exposed=n||{}};return{get attrs(){return getAttrsProxy(t)},slots:t.slots,emit:t.emit,expose:o}}function getExposeProxy(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(proxyRefs(markRaw(t.exposed)),{get(o,n){if(n in o)return o[n];if(n in publicPropertiesMap)return publicPropertiesMap[n](t)},has(o,n){return n in o||n in publicPropertiesMap}}))}function getComponentName(t,o=!0){return isFunction$7(t)?t.displayName||t.name:t.name||o&&t.__name}function isClassComponent(t){return isFunction$7(t)&&"__vccOpts"in t}const computed=(t,o)=>computed$1(t,o,isInSSRComponentSetup);function h(t,o,n){const r=arguments.length;return r===2?isObject$d(o)&&!isArray$6(o)?isVNode(o)?createVNode(t,null,[o]):createVNode(t,o):createVNode(t,null,o):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&isVNode(n)&&(n=[n]),createVNode(t,o,n))}const ssrContextKey$1=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey$1);function initCustomFormatter(){}function withMemo(t,o,n,r){const s=n[r];if(s&&isMemoSame(s,t))return s;const l=o();return l.memo=t.slice(),n[r]=l}function isMemoSame(t,o){const n=t.memo;if(n.length!=o.length)return!1;for(let r=0;r0&¤tBlock&¤tBlock.push(t),!0}const version$2="3.3.7",_ssrUtils={createComponentInstance,setupComponent,renderComponentRoot,setCurrentRenderingInstance,isVNode,normalizeVNode},ssrUtils=_ssrUtils,resolveFilter=null,compatUtils=null,svgNS="http://www.w3.org/2000/svg",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(t,o,n)=>{o.insertBefore(t,n||null)},remove:t=>{const o=t.parentNode;o&&o.removeChild(t)},createElement:(t,o,n,r)=>{const s=o?doc.createElementNS(svgNS,t):doc.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:t=>doc.createTextNode(t),createComment:t=>doc.createComment(t),setText:(t,o)=>{t.nodeValue=o},setElementText:(t,o)=>{t.textContent=o},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>doc.querySelector(t),setScopeId(t,o){t.setAttribute(o,"")},insertStaticContent(t,o,n,r,s,l){const d=n?n.previousSibling:o.lastChild;if(s&&(s===l||s.nextSibling))for(;o.insertBefore(s.cloneNode(!0),n),!(s===l||!(s=s.nextSibling)););else{templateContainer.innerHTML=r?``:t;const m=templateContainer.content;if(r){const _=m.firstChild;for(;_.firstChild;)m.appendChild(_.firstChild);m.removeChild(_)}o.insertBefore(m,n)}return[d?d.nextSibling:o.firstChild,n?n.previousSibling:o.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),Transition=(t,{slots:o})=>h(BaseTransition,resolveTransitionProps(t),o);Transition.displayName="Transition";const DOMTransitionPropsValidators={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},TransitionPropsValidators=Transition.props=extend$3({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),callHook=(t,o=[])=>{isArray$6(t)?t.forEach(n=>n(...o)):t&&t(...o)},hasExplicitCallback=t=>t?isArray$6(t)?t.some(o=>o.length>1):t.length>1:!1;function resolveTransitionProps(t){const o={};for(const q in t)q in DOMTransitionPropsValidators||(o[q]=t[q]);if(t.css===!1)return o;const{name:n="v",type:r,duration:s,enterFromClass:l=`${n}-enter-from`,enterActiveClass:d=`${n}-enter-active`,enterToClass:m=`${n}-enter-to`,appearFromClass:_=l,appearActiveClass:g=d,appearToClass:v=m,leaveFromClass:y=`${n}-leave-from`,leaveActiveClass:w=`${n}-leave-active`,leaveToClass:B=`${n}-leave-to`}=t,k=normalizeDuration(s),N=k&&k[0],S=k&&k[1],{onBeforeEnter:x,onEnter:C,onEnterCancelled:I,onLeave:D,onLeaveCancelled:R,onBeforeAppear:O=x,onAppear:Q=C,onAppearCancelled:Y=I}=o,W=(q,ae,ie)=>{removeTransitionClass(q,ae?v:m),removeTransitionClass(q,ae?g:d),ie&&ie()},K=(q,ae)=>{q._isLeaving=!1,removeTransitionClass(q,y),removeTransitionClass(q,B),removeTransitionClass(q,w),ae&&ae()},ee=q=>(ae,ie)=>{const oe=q?Q:C,J=()=>W(ae,q,ie);callHook(oe,[ae,J]),nextFrame(()=>{removeTransitionClass(ae,q?_:l),addTransitionClass(ae,q?v:m),hasExplicitCallback(oe)||whenTransitionEnds(ae,r,N,J)})};return extend$3(o,{onBeforeEnter(q){callHook(x,[q]),addTransitionClass(q,l),addTransitionClass(q,d)},onBeforeAppear(q){callHook(O,[q]),addTransitionClass(q,_),addTransitionClass(q,g)},onEnter:ee(!1),onAppear:ee(!0),onLeave(q,ae){q._isLeaving=!0;const ie=()=>K(q,ae);addTransitionClass(q,y),forceReflow(),addTransitionClass(q,w),nextFrame(()=>{q._isLeaving&&(removeTransitionClass(q,y),addTransitionClass(q,B),hasExplicitCallback(D)||whenTransitionEnds(q,r,S,ie))}),callHook(D,[q,ie])},onEnterCancelled(q){W(q,!1),callHook(I,[q])},onAppearCancelled(q){W(q,!0),callHook(Y,[q])},onLeaveCancelled(q){K(q),callHook(R,[q])}})}function normalizeDuration(t){if(t==null)return null;if(isObject$d(t))return[NumberOf(t.enter),NumberOf(t.leave)];{const o=NumberOf(t);return[o,o]}}function NumberOf(t){return toNumber$4(t)}function addTransitionClass(t,o){o.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[vtcKey]||(t[vtcKey]=new Set)).add(o)}function removeTransitionClass(t,o){o.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[vtcKey];n&&(n.delete(o),n.size||(t[vtcKey]=void 0))}function nextFrame(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let endId=0;function whenTransitionEnds(t,o,n,r){const s=t._endId=++endId,l=()=>{s===t._endId&&r()};if(n)return setTimeout(l,n);const{type:d,timeout:m,propCount:_}=getTransitionInfo(t,o);if(!d)return r();const g=d+"end";let v=0;const y=()=>{t.removeEventListener(g,w),l()},w=B=>{B.target===t&&++v>=_&&y()};setTimeout(()=>{v<_&&y()},m+1),t.addEventListener(g,w)}function getTransitionInfo(t,o){const n=window.getComputedStyle(t),r=k=>(n[k]||"").split(", "),s=r(`${TRANSITION}Delay`),l=r(`${TRANSITION}Duration`),d=getTimeout(s,l),m=r(`${ANIMATION}Delay`),_=r(`${ANIMATION}Duration`),g=getTimeout(m,_);let v=null,y=0,w=0;o===TRANSITION?d>0&&(v=TRANSITION,y=d,w=l.length):o===ANIMATION?g>0&&(v=ANIMATION,y=g,w=_.length):(y=Math.max(d,g),v=y>0?d>g?TRANSITION:ANIMATION:null,w=v?v===TRANSITION?l.length:_.length:0);const B=v===TRANSITION&&/\b(transform|all)(,|$)/.test(r(`${TRANSITION}Property`).toString());return{type:v,timeout:y,propCount:w,hasTransform:B}}function getTimeout(t,o){for(;t.lengthtoMs(n)+toMs(t[r])))}function toMs(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}function patchClass(t,o,n){const r=t[vtcKey];r&&(o=(o?[o,...r]:[...r]).join(" ")),o==null?t.removeAttribute("class"):n?t.setAttribute("class",o):t.className=o}const vShowOldKey=Symbol("_vod"),vShow={beforeMount(t,{value:o},{transition:n}){t[vShowOldKey]=t.style.display==="none"?"":t.style.display,n&&o?n.beforeEnter(t):setDisplay(t,o)},mounted(t,{value:o},{transition:n}){n&&o&&n.enter(t)},updated(t,{value:o,oldValue:n},{transition:r}){!o!=!n&&(r?o?(r.beforeEnter(t),setDisplay(t,!0),r.enter(t)):r.leave(t,()=>{setDisplay(t,!1)}):setDisplay(t,o))},beforeUnmount(t,{value:o}){setDisplay(t,o)}};function setDisplay(t,o){t.style.display=o?t[vShowOldKey]:"none"}function initVShowForSSR(){vShow.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}function patchStyle(t,o,n){const r=t.style,s=isString$3(n);if(n&&!s){if(o&&!isString$3(o))for(const l in o)n[l]==null&&setStyle$1(r,l,"");for(const l in n)setStyle$1(r,l,n[l])}else{const l=r.display;s?o!==n&&(r.cssText=n):o&&t.removeAttribute("style"),vShowOldKey in t&&(r.display=l)}}const importantRE=/\s*!important$/;function setStyle$1(t,o,n){if(isArray$6(n))n.forEach(r=>setStyle$1(t,o,r));else if(n==null&&(n=""),o.startsWith("--"))t.setProperty(o,n);else{const r=autoPrefix(t,o);importantRE.test(n)?t.setProperty(hyphenate$1(r),n.replace(importantRE,""),"important"):t[r]=n}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(t,o){const n=prefixCache[o];if(n)return n;let r=camelize(o);if(r!=="filter"&&r in t)return prefixCache[o]=r;r=capitalize$1(r);for(let s=0;scachedNow||(p.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(t,o){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(r,n.value),o,5,[r])};return n.value=t,n.attached=getNow(),n}function patchStopImmediatePropagation(t,o){if(isArray$6(o)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},o.map(r=>s=>!s._stopped&&r&&r(s))}else return o}const nativeOnRE=/^on[a-z]/,patchProp=(t,o,n,r,s=!1,l,d,m,_)=>{o==="class"?patchClass(t,r,s):o==="style"?patchStyle(t,n,r):isOn(o)?isModelListener(o)||patchEvent(t,o,n,r,d):(o[0]==="."?(o=o.slice(1),!0):o[0]==="^"?(o=o.slice(1),!1):shouldSetAsProp(t,o,r,s))?patchDOMProp(t,o,r,l,d,m,_):(o==="true-value"?t._trueValue=r:o==="false-value"&&(t._falseValue=r),patchAttr(t,o,r,s))};function shouldSetAsProp(t,o,n,r){return r?!!(o==="innerHTML"||o==="textContent"||o in t&&nativeOnRE.test(o)&&isFunction$7(n)):o==="spellcheck"||o==="draggable"||o==="translate"||o==="form"||o==="list"&&t.tagName==="INPUT"||o==="type"&&t.tagName==="TEXTAREA"||nativeOnRE.test(o)&&isString$3(n)?!1:o in t}/*! #__NO_SIDE_EFFECTS__ */function defineCustomElement(t,o){const n=defineComponent(t);class r extends VueElement{constructor(l){super(n,l,o)}}return r.def=n,r}/*! #__NO_SIDE_EFFECTS__ */const defineSSRCustomElement=t=>defineCustomElement(t,hydrate),BaseClass=typeof HTMLElement<"u"?HTMLElement:class{};class VueElement extends BaseClass{constructor(o,n={},r){super(),this._def=o,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),nextTick(()=>{this._connected||(render$9(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const s of r)this._setAttr(s.attributeName)}),this._ob.observe(this,{attributes:!0});const o=(r,s=!1)=>{const{props:l,styles:d}=r;let m;if(l&&!isArray$6(l))for(const _ in l){const g=l[_];(g===Number||g&&g.type===Number)&&(_ in this._props&&(this._props[_]=toNumber$4(this._props[_])),(m||(m=Object.create(null)))[camelize(_)]=!0)}this._numberProps=m,s&&this._resolveProps(r),this._applyStyles(d),this._update()},n=this._def.__asyncLoader;n?n().then(r=>o(r,!0)):o(this._def)}_resolveProps(o){const{props:n}=o,r=isArray$6(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&r.includes(s)&&this._setProp(s,this[s],!0,!1);for(const s of r.map(camelize))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(l){this._setProp(s,l)}})}_setAttr(o){let n=this.getAttribute(o);const r=camelize(o);this._numberProps&&this._numberProps[r]&&(n=toNumber$4(n)),this._setProp(r,n,!1)}_getProp(o){return this._props[o]}_setProp(o,n,r=!0,s=!0){n!==this._props[o]&&(this._props[o]=n,s&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(hyphenate$1(o),""):typeof n=="string"||typeof n=="number"?this.setAttribute(hyphenate$1(o),n+""):n||this.removeAttribute(hyphenate$1(o))))}_update(){render$9(this._createVNode(),this.shadowRoot)}_createVNode(){const o=createVNode(this._def,extend$3({},this._props));return this._instance||(o.ce=n=>{this._instance=n,n.isCE=!0;const r=(l,d)=>{this.dispatchEvent(new CustomEvent(l,{detail:d}))};n.emit=(l,...d)=>{r(l,d),hyphenate$1(l)!==l&&r(hyphenate$1(l),d)};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof VueElement){n.parent=s._instance,n.provides=s._instance.provides;break}}),o}_applyStyles(o){o&&o.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function useCssModule(t="$style"){{const o=getCurrentInstance();if(!o)return EMPTY_OBJ;const n=o.type.__cssModules;if(!n)return EMPTY_OBJ;const r=n[t];return r||EMPTY_OBJ}}function useCssVars(t){const o=getCurrentInstance();if(!o)return;const n=o.ut=(s=t(o.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${o.uid}"]`)).forEach(l=>setVarsOnNode(l,s))},r=()=>{const s=t(o.proxy);setVarsOnVNode(o.subTree,s),n(s)};watchPostEffect(r),onMounted(()=>{const s=new MutationObserver(r);s.observe(o.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>s.disconnect())})}function setVarsOnVNode(t,o){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{setVarsOnVNode(n.activeBranch,o)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)setVarsOnNode(t.el,o);else if(t.type===Fragment)t.children.forEach(n=>setVarsOnVNode(n,o));else if(t.type===Static){let{el:n,anchor:r}=t;for(;n&&(setVarsOnNode(n,o),n!==r);)n=n.nextSibling}}function setVarsOnNode(t,o){if(t.nodeType===1){const n=t.style;for(const r in o)n.setProperty(`--${r}`,o[r])}}const positionMap=new WeakMap,newPositionMap=new WeakMap,moveCbKey=Symbol("_moveCb"),enterCbKey=Symbol("_enterCb"),TransitionGroupImpl={name:"TransitionGroup",props:extend$3({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(t,{slots:o}){const n=getCurrentInstance(),r=useTransitionState();let s,l;return onUpdated(()=>{if(!s.length)return;const d=t.moveClass||`${t.name||"v"}-move`;if(!hasCSSTransform(s[0].el,n.vnode.el,d))return;s.forEach(callPendingCbs),s.forEach(recordPosition);const m=s.filter(applyTranslation);forceReflow(),m.forEach(_=>{const g=_.el,v=g.style;addTransitionClass(g,d),v.transform=v.webkitTransform=v.transitionDuration="";const y=g[moveCbKey]=w=>{w&&w.target!==g||(!w||/transform$/.test(w.propertyName))&&(g.removeEventListener("transitionend",y),g[moveCbKey]=null,removeTransitionClass(g,d))};g.addEventListener("transitionend",y)})}),()=>{const d=toRaw(t),m=resolveTransitionProps(d);let _=d.tag||Fragment;s=l,l=o.default?getTransitionRawChildren(o.default()):[];for(let g=0;gdelete t.mode;TransitionGroupImpl.props;const TransitionGroup=TransitionGroupImpl;function callPendingCbs(t){const o=t.el;o[moveCbKey]&&o[moveCbKey](),o[enterCbKey]&&o[enterCbKey]()}function recordPosition(t){newPositionMap.set(t,t.el.getBoundingClientRect())}function applyTranslation(t){const o=positionMap.get(t),n=newPositionMap.get(t),r=o.left-n.left,s=o.top-n.top;if(r||s){const l=t.el.style;return l.transform=l.webkitTransform=`translate(${r}px,${s}px)`,l.transitionDuration="0s",t}}function hasCSSTransform(t,o,n){const r=t.cloneNode(),s=t[vtcKey];s&&s.forEach(m=>{m.split(/\s+/).forEach(_=>_&&r.classList.remove(_))}),n.split(/\s+/).forEach(m=>m&&r.classList.add(m)),r.style.display="none";const l=o.nodeType===1?o:o.parentNode;l.appendChild(r);const{hasTransform:d}=getTransitionInfo(r);return l.removeChild(r),d}const getModelAssigner=t=>{const o=t.props["onUpdate:modelValue"]||!1;return isArray$6(o)?n=>invokeArrayFns(o,n):o};function onCompositionStart(t){t.target.composing=!0}function onCompositionEnd(t){const o=t.target;o.composing&&(o.composing=!1,o.dispatchEvent(new Event("input")))}const assignKey=Symbol("_assign"),vModelText={created(t,{modifiers:{lazy:o,trim:n,number:r}},s){t[assignKey]=getModelAssigner(s);const l=r||s.props&&s.props.type==="number";addEventListener(t,o?"change":"input",d=>{if(d.target.composing)return;let m=t.value;n&&(m=m.trim()),l&&(m=looseToNumber(m)),t[assignKey](m)}),n&&addEventListener(t,"change",()=>{t.value=t.value.trim()}),o||(addEventListener(t,"compositionstart",onCompositionStart),addEventListener(t,"compositionend",onCompositionEnd),addEventListener(t,"change",onCompositionEnd))},mounted(t,{value:o}){t.value=o??""},beforeUpdate(t,{value:o,modifiers:{lazy:n,trim:r,number:s}},l){if(t[assignKey]=getModelAssigner(l),t.composing||document.activeElement===t&&t.type!=="range"&&(n||r&&t.value.trim()===o||(s||t.type==="number")&&looseToNumber(t.value)===o))return;const d=o??"";t.value!==d&&(t.value=d)}},vModelCheckbox={deep:!0,created(t,o,n){t[assignKey]=getModelAssigner(n),addEventListener(t,"change",()=>{const r=t._modelValue,s=getValue$3(t),l=t.checked,d=t[assignKey];if(isArray$6(r)){const m=looseIndexOf(r,s),_=m!==-1;if(l&&!_)d(r.concat(s));else if(!l&&_){const g=[...r];g.splice(m,1),d(g)}}else if(isSet(r)){const m=new Set(r);l?m.add(s):m.delete(s),d(m)}else d(getCheckboxValue(t,l))})},mounted:setChecked,beforeUpdate(t,o,n){t[assignKey]=getModelAssigner(n),setChecked(t,o,n)}};function setChecked(t,{value:o,oldValue:n},r){t._modelValue=o,isArray$6(o)?t.checked=looseIndexOf(o,r.props.value)>-1:isSet(o)?t.checked=o.has(r.props.value):o!==n&&(t.checked=looseEqual(o,getCheckboxValue(t,!0)))}const vModelRadio={created(t,{value:o},n){t.checked=looseEqual(o,n.props.value),t[assignKey]=getModelAssigner(n),addEventListener(t,"change",()=>{t[assignKey](getValue$3(t))})},beforeUpdate(t,{value:o,oldValue:n},r){t[assignKey]=getModelAssigner(r),o!==n&&(t.checked=looseEqual(o,r.props.value))}},vModelSelect={deep:!0,created(t,{value:o,modifiers:{number:n}},r){const s=isSet(o);addEventListener(t,"change",()=>{const l=Array.prototype.filter.call(t.options,d=>d.selected).map(d=>n?looseToNumber(getValue$3(d)):getValue$3(d));t[assignKey](t.multiple?s?new Set(l):l:l[0])}),t[assignKey]=getModelAssigner(r)},mounted(t,{value:o}){setSelected(t,o)},beforeUpdate(t,o,n){t[assignKey]=getModelAssigner(n)},updated(t,{value:o}){setSelected(t,o)}};function setSelected(t,o){const n=t.multiple;if(!(n&&!isArray$6(o)&&!isSet(o))){for(let r=0,s=t.options.length;r-1:l.selected=o.has(d);else if(looseEqual(getValue$3(l),o)){t.selectedIndex!==r&&(t.selectedIndex=r);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function getValue$3(t){return"_value"in t?t._value:t.value}function getCheckboxValue(t,o){const n=o?"_trueValue":"_falseValue";return n in t?t[n]:o}const vModelDynamic={created(t,o,n){callModelHook(t,o,n,null,"created")},mounted(t,o,n){callModelHook(t,o,n,null,"mounted")},beforeUpdate(t,o,n,r){callModelHook(t,o,n,r,"beforeUpdate")},updated(t,o,n,r){callModelHook(t,o,n,r,"updated")}};function resolveDynamicModel(t,o){switch(t){case"SELECT":return vModelSelect;case"TEXTAREA":return vModelText;default:switch(o){case"checkbox":return vModelCheckbox;case"radio":return vModelRadio;default:return vModelText}}}function callModelHook(t,o,n,r,s){const d=resolveDynamicModel(t.tagName,n.props&&n.props.type)[s];d&&d(t,o,n,r)}function initVModelForSSR(){vModelText.getSSRProps=({value:t})=>({value:t}),vModelRadio.getSSRProps=({value:t},o)=>{if(o.props&&looseEqual(o.props.value,t))return{checked:!0}},vModelCheckbox.getSSRProps=({value:t},o)=>{if(isArray$6(t)){if(o.props&&looseIndexOf(t,o.props.value)>-1)return{checked:!0}}else if(isSet(t)){if(o.props&&t.has(o.props.value))return{checked:!0}}else if(t)return{checked:!0}},vModelDynamic.getSSRProps=(t,o)=>{if(typeof o.type!="string")return;const n=resolveDynamicModel(o.type.toUpperCase(),o.props&&o.props.type);if(n.getSSRProps)return n.getSSRProps(t,o)}}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,o)=>systemModifiers.some(n=>t[`${n}Key`]&&!o.includes(n))},withModifiers=(t,o)=>(n,...r)=>{for(let s=0;sn=>{if(!("key"in n))return;const r=hyphenate$1(n.key);if(o.some(s=>s===r||keyNames[s]===r))return t(n)},rendererOptions=extend$3({patchProp},nodeOps);let renderer,enabledHydration=!1;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}function ensureHydrationRenderer(){return renderer=enabledHydration?renderer:createHydrationRenderer(rendererOptions),enabledHydration=!0,renderer}const render$9=(...t)=>{ensureRenderer().render(...t)},hydrate=(...t)=>{ensureHydrationRenderer().hydrate(...t)},createApp=(...t)=>{const o=ensureRenderer().createApp(...t),{mount:n}=o;return o.mount=r=>{const s=normalizeContainer(r);if(!s)return;const l=o._component;!isFunction$7(l)&&!l.render&&!l.template&&(l.template=s.innerHTML),s.innerHTML="";const d=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),d},o},createSSRApp=(...t)=>{const o=ensureHydrationRenderer().createApp(...t),{mount:n}=o;return o.mount=r=>{const s=normalizeContainer(r);if(s)return n(s,!0,s instanceof SVGElement)},o};function normalizeContainer(t){return isString$3(t)?document.querySelector(t):t}let ssrDirectiveInitialized=!1;const initDirectivesForSSR=()=>{ssrDirectiveInitialized||(ssrDirectiveInitialized=!0,initVModelForSSR(),initVShowForSSR())},compile$1=()=>{},vue_runtime_esmBundler=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition,BaseTransitionPropsValidators,Comment:Comment$2,EffectScope,Fragment,KeepAlive,ReactiveEffect,Static,Suspense,Teleport,Text:Text$2,Transition,TransitionGroup,VueElement,assertNumber,callWithAsyncErrorHandling,callWithErrorHandling,camelize,capitalize:capitalize$1,cloneVNode,compatUtils,compile:compile$1,computed,createApp,createBlock,createCommentVNode,createElementBlock,createElementVNode:createBaseVNode,createHydrationRenderer,createPropsRestProxy,createRenderer,createSSRApp,createSlots,createStaticVNode,createTextVNode,createVNode,customRef,defineAsyncComponent,defineComponent,defineCustomElement,defineEmits,defineExpose,defineModel,defineOptions,defineProps,defineSSRCustomElement,defineSlots,get devtools(){return devtools},effect,effectScope,getCurrentInstance,getCurrentScope,getTransitionRawChildren,guardReactiveProps,h,handleError,hasInjectionContext,hydrate,initCustomFormatter,initDirectivesForSSR,inject,isMemoSame,isProxy,isReactive,isReadonly,isRef,isRuntimeOnly,isShallow,isVNode,markRaw,mergeDefaults,mergeModels,mergeProps,nextTick,normalizeClass,normalizeProps,normalizeStyle,onActivated,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onDeactivated,onErrorCaptured,onMounted,onRenderTracked,onRenderTriggered,onScopeDispose,onServerPrefetch,onUnmounted,onUpdated,openBlock,popScopeId,provide,proxyRefs,pushScopeId,queuePostFlushCb,reactive,readonly,ref,registerRuntimeCompiler,render:render$9,renderList,renderSlot,resolveComponent,resolveDirective,resolveDynamicComponent,resolveFilter,resolveTransitionHooks,setBlockTracking,setDevtoolsHook,setTransitionHooks,shallowReactive,shallowReadonly,shallowRef,ssrContextKey:ssrContextKey$1,ssrUtils,stop,toDisplayString,toHandlerKey,toHandlers,toRaw,toRef,toRefs,toValue,transformVNodeArgs,triggerRef,unref,useAttrs,useCssModule,useCssVars,useModel,useSSRContext,useSlots,useTransitionState,vModelCheckbox,vModelDynamic,vModelRadio,vModelSelect,vModelText,vShow,version:version$2,warn:warn$4,watch,watchEffect,watchPostEffect,watchSyncEffect,withAsyncContext,withCtx,withDefaults,withDirectives,withKeys,withMemo,withModifiers,withScopeId},Symbol.toStringTag,{value:"Module"})),_imports_0$3=""+new URL("refresh-6a1edf00.svg",import.meta.url).href;function bind(t,o){return function(){return t.apply(o,arguments)}}const{toString:toString$4}=Object.prototype,{getPrototypeOf}=Object,kindOf=(t=>o=>{const n=toString$4.call(o);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=t=>(t=t.toLowerCase(),o=>kindOf(o)===t),typeOfTest=t=>o=>typeof o===t,{isArray:isArray$5}=Array,isUndefined$2=typeOfTest("undefined");function isBuffer$4(t){return t!==null&&!isUndefined$2(t)&&t.constructor!==null&&!isUndefined$2(t.constructor)&&isFunction$6(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(t){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(t):o=t&&t.buffer&&isArrayBuffer(t.buffer),o}const isString$2=typeOfTest("string"),isFunction$6=typeOfTest("function"),isNumber$4=typeOfTest("number"),isObject$c=t=>t!==null&&typeof t=="object",isBoolean=t=>t===!0||t===!1,isPlainObject$2=t=>{if(kindOf(t)!=="object")return!1;const o=getPrototypeOf(t);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},isDate$3=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=t=>isObject$c(t)&&isFunction$6(t.pipe),isFormData=t=>{let o;return t&&(typeof FormData=="function"&&t instanceof FormData||isFunction$6(t.append)&&((o=kindOf(t))==="formdata"||o==="object"&&isFunction$6(t.toString)&&t.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach$1(t,o,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),isArray$5(t))for(r=0,s=t.length;r0;)if(s=n[r],o===s.toLowerCase())return s;return null}const _global=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),isContextDefined=t=>!isUndefined$2(t)&&t!==_global;function merge$4(){const{caseless:t}=isContextDefined(this)&&this||{},o={},n=(r,s)=>{const l=t&&findKey$1(o,s)||s;isPlainObject$2(o[l])&&isPlainObject$2(r)?o[l]=merge$4(o[l],r):isPlainObject$2(r)?o[l]=merge$4({},r):isArray$5(r)?o[l]=r.slice():o[l]=r};for(let r=0,s=arguments.length;r(forEach$1(o,(s,l)=>{n&&isFunction$6(s)?t[l]=bind(s,n):t[l]=s},{allOwnKeys:r}),t),stripBOM=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),inherits=(t,o,n,r)=>{t.prototype=Object.create(o.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:o.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject=(t,o,n,r)=>{let s,l,d;const m={};if(o=o||{},t==null)return o;do{for(s=Object.getOwnPropertyNames(t),l=s.length;l-- >0;)d=s[l],(!r||r(d,t,o))&&!m[d]&&(o[d]=t[d],m[d]=!0);t=n!==!1&&getPrototypeOf(t)}while(t&&(!n||n(t,o))&&t!==Object.prototype);return o},endsWith=(t,o,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=o.length;const r=t.indexOf(o,n);return r!==-1&&r===n},toArray$3=t=>{if(!t)return null;if(isArray$5(t))return t;let o=t.length;if(!isNumber$4(o))return null;const n=new Array(o);for(;o-- >0;)n[o]=t[o];return n},isTypedArray$4=(t=>o=>t&&o instanceof t)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(t,o)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const l=s.value;o.call(t,l[0],l[1])}},matchAll=(t,o)=>{let n;const r=[];for(;(n=t.exec(o))!==null;)r.push(n);return r},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),hasOwnProperty$k=(({hasOwnProperty:t})=>(o,n)=>t.call(o,n))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(t,o)=>{const n=Object.getOwnPropertyDescriptors(t),r={};forEach$1(n,(s,l)=>{let d;(d=o(s,l,t))!==!1&&(r[l]=d||s)}),Object.defineProperties(t,r)},freezeMethods=t=>{reduceDescriptors(t,(o,n)=>{if(isFunction$6(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(isFunction$6(r)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet=(t,o)=>{const n={},r=s=>{s.forEach(l=>{n[l]=!0})};return isArray$5(t)?r(t):r(String(t).split(o)),n},noop=()=>{},toFiniteNumber=(t,o)=>t!=null&&Number.isFinite(t=+t)?t:o,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(t=16,o=ALPHABET.ALPHA_DIGIT)=>{let n="";const{length:r}=o;for(;t--;)n+=o[Math.random()*r|0];return n};function isSpecCompliantForm(t){return!!(t&&isFunction$6(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const toJSONObject=t=>{const o=new Array(10),n=(r,s)=>{if(isObject$c(r)){if(o.indexOf(r)>=0)return;if(!("toJSON"in r)){o[s]=r;const l=isArray$5(r)?[]:{};return forEach$1(r,(d,m)=>{const _=n(d,s+1);!isUndefined$2(_)&&(l[m]=_)}),o[s]=void 0,l}}return r};return n(t,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=t=>t&&(isObject$c(t)||isFunction$6(t))&&isFunction$6(t.then)&&isFunction$6(t.catch),_setImmediate=((t,o)=>t?setImmediate:o?((n,r)=>(_global.addEventListener("message",({source:s,data:l})=>{s===_global&&l===n&&r.length&&r.shift()()},!1),s=>{r.push(s),_global.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",isFunction$6(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,utils$2={isArray:isArray$5,isArrayBuffer,isBuffer:isBuffer$4,isFormData,isArrayBufferView,isString:isString$2,isNumber:isNumber$4,isBoolean,isObject:isObject$c,isPlainObject:isPlainObject$2,isReadableStream,isRequest,isResponse,isHeaders,isUndefined:isUndefined$2,isDate:isDate$3,isFile,isBlob,isRegExp,isFunction:isFunction$6,isStream,isURLSearchParams,isTypedArray:isTypedArray$4,isFileList,forEach:forEach$1,merge:merge$4,extend:extend$2,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$3,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$k,hasOwnProp:hasOwnProperty$k,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey:findKey$1,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError(t,o,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",o&&(this.code=o),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}utils$2.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$2.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{descriptors[t]={value:t}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(t,o,n,r,s,l)=>{const d=Object.create(prototype$1);return utils$2.toFlatObject(t,d,function(_){return _!==Error.prototype},m=>m!=="isAxiosError"),AxiosError.call(d,t.message,o,n,r,s),d.cause=t,d.name=t.name,l&&Object.assign(d,l),d};const httpAdapter=null;function isVisitable(t){return utils$2.isPlainObject(t)||utils$2.isArray(t)}function removeBrackets(t){return utils$2.endsWith(t,"[]")?t.slice(0,-2):t}function renderKey(t,o,n){return t?t.concat(o).map(function(s,l){return s=removeBrackets(s),!n&&l?"["+s+"]":s}).join(n?".":""):o}function isFlatArray(t){return utils$2.isArray(t)&&!t.some(isVisitable)}const predicates=utils$2.toFlatObject(utils$2,{},null,function(o){return/^is[A-Z]/.test(o)});function toFormData(t,o,n){if(!utils$2.isObject(t))throw new TypeError("target must be an object");o=o||new FormData,n=utils$2.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(N,S){return!utils$2.isUndefined(S[N])});const r=n.metaTokens,s=n.visitor||v,l=n.dots,d=n.indexes,_=(n.Blob||typeof Blob<"u"&&Blob)&&utils$2.isSpecCompliantForm(o);if(!utils$2.isFunction(s))throw new TypeError("visitor must be a function");function g(k){if(k===null)return"";if(utils$2.isDate(k))return k.toISOString();if(!_&&utils$2.isBlob(k))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$2.isArrayBuffer(k)||utils$2.isTypedArray(k)?_&&typeof Blob=="function"?new Blob([k]):Buffer.from(k):k}function v(k,N,S){let x=k;if(k&&!S&&typeof k=="object"){if(utils$2.endsWith(N,"{}"))N=r?N:N.slice(0,-2),k=JSON.stringify(k);else if(utils$2.isArray(k)&&isFlatArray(k)||(utils$2.isFileList(k)||utils$2.endsWith(N,"[]"))&&(x=utils$2.toArray(k)))return N=removeBrackets(N),x.forEach(function(I,D){!(utils$2.isUndefined(I)||I===null)&&o.append(d===!0?renderKey([N],D,l):d===null?N:N+"[]",g(I))}),!1}return isVisitable(k)?!0:(o.append(renderKey(S,N,l),g(k)),!1)}const y=[],w=Object.assign(predicates,{defaultVisitor:v,convertValue:g,isVisitable});function B(k,N){if(!utils$2.isUndefined(k)){if(y.indexOf(k)!==-1)throw Error("Circular reference detected in "+N.join("."));y.push(k),utils$2.forEach(k,function(x,C){(!(utils$2.isUndefined(x)||x===null)&&s.call(o,x,utils$2.isString(C)?C.trim():C,N,w))===!0&&B(x,N?N.concat(C):[C])}),y.pop()}}if(!utils$2.isObject(t))throw new TypeError("data must be an object");return B(t),o}function encode$1(t){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return o[r]})}function AxiosURLSearchParams(t,o){this._pairs=[],t&&toFormData(t,this,o)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(o,n){this._pairs.push([o,n])};prototype.toString=function(o){const n=o?function(r){return o.call(this,r,encode$1)}:encode$1;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function encode(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(t,o,n){if(!o)return t;const r=n&&n.encode||encode;utils$2.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let l;if(s?l=s(o,n):l=utils$2.isURLSearchParams(o)?o.toString():new AxiosURLSearchParams(o,n).toString(r),l){const d=t.indexOf("#");d!==-1&&(t=t.slice(0,d)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t}class InterceptorManager{constructor(){this.handlers=[]}use(o,n,r){return this.handlers.push({fulfilled:o,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){utils$2.forEach(this.handlers,function(r){r!==null&&o(r)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),origin=hasBrowserEnv&&window.location.href||"http://localhost",utils$1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils$1,...platform$1};function toURLEncodedForm(t,o){return toFormData(t,new platform.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,l){return platform.isNode&&utils$2.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},o))}function parsePropPath(t){return utils$2.matchAll(/\w+|\[(\w*)]/g,t).map(o=>o[0]==="[]"?"":o[1]||o[0])}function arrayToObject(t){const o={},n=Object.keys(t);let r;const s=n.length;let l;for(r=0;r=n.length;return d=!d&&utils$2.isArray(s)?s.length:d,_?(utils$2.hasOwnProp(s,d)?s[d]=[s[d],r]:s[d]=r,!m):((!s[d]||!utils$2.isObject(s[d]))&&(s[d]=[]),o(n,r,s[d],l)&&utils$2.isArray(s[d])&&(s[d]=arrayToObject(s[d])),!m)}if(utils$2.isFormData(t)&&utils$2.isFunction(t.entries)){const n={};return utils$2.forEachEntry(t,(r,s)=>{o(parsePropPath(r),s,n,0)}),n}return null}function stringifySafely(t,o,n){if(utils$2.isString(t))try{return(o||JSON.parse)(t),utils$2.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const defaults$3={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(o,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,l=utils$2.isObject(o);if(l&&utils$2.isHTMLForm(o)&&(o=new FormData(o)),utils$2.isFormData(o))return s?JSON.stringify(formDataToJSON(o)):o;if(utils$2.isArrayBuffer(o)||utils$2.isBuffer(o)||utils$2.isStream(o)||utils$2.isFile(o)||utils$2.isBlob(o)||utils$2.isReadableStream(o))return o;if(utils$2.isArrayBufferView(o))return o.buffer;if(utils$2.isURLSearchParams(o))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),o.toString();let m;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(o,this.formSerializer).toString();if((m=utils$2.isFileList(o))||r.indexOf("multipart/form-data")>-1){const _=this.env&&this.env.FormData;return toFormData(m?{"files[]":o}:o,_&&new _,this.formSerializer)}}return l||s?(n.setContentType("application/json",!1),stringifySafely(o)):o}],transformResponse:[function(o){const n=this.transitional||defaults$3.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(utils$2.isResponse(o)||utils$2.isReadableStream(o))return o;if(o&&utils$2.isString(o)&&(r&&!this.responseType||s)){const d=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(o)}catch(m){if(d)throw m.name==="SyntaxError"?AxiosError.from(m,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):m}}return o}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(o){return o>=200&&o<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$2.forEach(["delete","get","head","post","put","patch"],t=>{defaults$3.headers[t]={}});const defaults$4=defaults$3,ignoreDuplicateOf=utils$2.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=t=>{const o={};let n,r,s;return t&&t.split(`
+`).forEach(function(d){s=d.indexOf(":"),n=d.substring(0,s).trim().toLowerCase(),r=d.substring(s+1).trim(),!(!n||o[n]&&ignoreDuplicateOf[n])&&(n==="set-cookie"?o[n]?o[n].push(r):o[n]=[r]:o[n]=o[n]?o[n]+", "+r:r)}),o},$internals=Symbol("internals");function normalizeHeader(t){return t&&String(t).trim().toLowerCase()}function normalizeValue(t){return t===!1||t==null?t:utils$2.isArray(t)?t.map(normalizeValue):String(t)}function parseTokens(t){const o=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)o[r[1]]=r[2];return o}const isValidHeaderName=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function matchHeaderValue(t,o,n,r,s){if(utils$2.isFunction(r))return r.call(this,o,n);if(s&&(o=n),!!utils$2.isString(o)){if(utils$2.isString(r))return o.indexOf(r)!==-1;if(utils$2.isRegExp(r))return r.test(o)}}function formatHeader(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,n,r)=>n.toUpperCase()+r)}function buildAccessors(t,o){const n=utils$2.toCamelCase(" "+o);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,l,d){return this[r].call(this,o,s,l,d)},configurable:!0})})}class AxiosHeaders{constructor(o){o&&this.set(o)}set(o,n,r){const s=this;function l(m,_,g){const v=normalizeHeader(_);if(!v)throw new Error("header name must be a non-empty string");const y=utils$2.findKey(s,v);(!y||s[y]===void 0||g===!0||g===void 0&&s[y]!==!1)&&(s[y||_]=normalizeValue(m))}const d=(m,_)=>utils$2.forEach(m,(g,v)=>l(g,v,_));if(utils$2.isPlainObject(o)||o instanceof this.constructor)d(o,n);else if(utils$2.isString(o)&&(o=o.trim())&&!isValidHeaderName(o))d(parseHeaders(o),n);else if(utils$2.isHeaders(o))for(const[m,_]of o.entries())l(_,m,r);else o!=null&&l(n,o,r);return this}get(o,n){if(o=normalizeHeader(o),o){const r=utils$2.findKey(this,o);if(r){const s=this[r];if(!n)return s;if(n===!0)return parseTokens(s);if(utils$2.isFunction(n))return n.call(this,s,r);if(utils$2.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,n){if(o=normalizeHeader(o),o){const r=utils$2.findKey(this,o);return!!(r&&this[r]!==void 0&&(!n||matchHeaderValue(this,this[r],r,n)))}return!1}delete(o,n){const r=this;let s=!1;function l(d){if(d=normalizeHeader(d),d){const m=utils$2.findKey(r,d);m&&(!n||matchHeaderValue(r,r[m],m,n))&&(delete r[m],s=!0)}}return utils$2.isArray(o)?o.forEach(l):l(o),s}clear(o){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const l=n[r];(!o||matchHeaderValue(this,this[l],l,o,!0))&&(delete this[l],s=!0)}return s}normalize(o){const n=this,r={};return utils$2.forEach(this,(s,l)=>{const d=utils$2.findKey(r,l);if(d){n[d]=normalizeValue(s),delete n[l];return}const m=o?formatHeader(l):String(l).trim();m!==l&&delete n[l],n[m]=normalizeValue(s),r[m]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const n=Object.create(null);return utils$2.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=o&&utils$2.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,n])=>o+": "+n).join(`
+`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...n){const r=new this(o);return n.forEach(s=>r.set(s)),r}static accessor(o){const r=(this[$internals]=this[$internals]={accessors:{}}).accessors,s=this.prototype;function l(d){const m=normalizeHeader(d);r[m]||(buildAccessors(s,d),r[m]=!0)}return utils$2.isArray(o)?o.forEach(l):l(o),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$2.reduceDescriptors(AxiosHeaders.prototype,({value:t},o)=>{let n=o[0].toUpperCase()+o.slice(1);return{get:()=>t,set(r){this[n]=r}}});utils$2.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(t,o){const n=this||defaults$4,r=o||n,s=AxiosHeaders$1.from(r.headers);let l=r.data;return utils$2.forEach(t,function(m){l=m.call(n,l,s.normalize(),o?o.status:void 0)}),s.normalize(),l}function isCancel(t){return!!(t&&t.__CANCEL__)}function CanceledError(t,o,n){AxiosError.call(this,t??"canceled",AxiosError.ERR_CANCELED,o,n),this.name="CanceledError"}utils$2.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(t,o,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):o(new AxiosError("Request failed with status code "+n.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function parseProtocol(t){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return o&&o[1]||""}function speedometer(t,o){t=t||10;const n=new Array(t),r=new Array(t);let s=0,l=0,d;return o=o!==void 0?o:1e3,function(_){const g=Date.now(),v=r[l];d||(d=g),n[s]=_,r[s]=g;let y=l,w=0;for(;y!==s;)w+=n[y++],y=y%t;if(s=(s+1)%t,s===l&&(l=(l+1)%t),g-d{n=v,s=null,l&&(clearTimeout(l),l=null),t.apply(null,g)};return[(...g)=>{const v=Date.now(),y=v-n;y>=r?d(g,v):(s=g,l||(l=setTimeout(()=>{l=null,d(s)},r-y)))},()=>s&&d(s)]}const progressEventReducer=(t,o,n=3)=>{let r=0;const s=speedometer(50,250);return throttle$2(l=>{const d=l.loaded,m=l.lengthComputable?l.total:void 0,_=d-r,g=s(_),v=d<=m;r=d;const y={loaded:d,total:m,progress:m?d/m:void 0,bytes:_,rate:g||void 0,estimated:g&&m&&v?(m-d)/g:void 0,event:l,lengthComputable:m!=null,[o?"download":"upload"]:!0};t(y)},n)},progressEventDecorator=(t,o)=>{const n=t!=null;return[r=>o[0]({lengthComputable:n,total:t,loaded:r}),o[1]]},asyncDecorator=t=>(...o)=>utils$2.asap(()=>t(...o)),isURLSameOrigin=platform.hasStandardBrowserEnv?((t,o)=>n=>(n=new URL(n,platform.origin),t.protocol===n.protocol&&t.host===n.host&&(o||t.port===n.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(t,o,n,r,s,l){const d=[t+"="+encodeURIComponent(o)];utils$2.isNumber(n)&&d.push("expires="+new Date(n).toGMTString()),utils$2.isString(r)&&d.push("path="+r),utils$2.isString(s)&&d.push("domain="+s),l===!0&&d.push("secure"),document.cookie=d.join("; ")},read(t){const o=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function combineURLs(t,o){return o?t.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):t}function buildFullPath(t,o){return t&&!isAbsoluteURL(o)?combineURLs(t,o):o}const headersToObject=t=>t instanceof AxiosHeaders$1?{...t}:t;function mergeConfig(t,o){o=o||{};const n={};function r(g,v,y,w){return utils$2.isPlainObject(g)&&utils$2.isPlainObject(v)?utils$2.merge.call({caseless:w},g,v):utils$2.isPlainObject(v)?utils$2.merge({},v):utils$2.isArray(v)?v.slice():v}function s(g,v,y,w){if(utils$2.isUndefined(v)){if(!utils$2.isUndefined(g))return r(void 0,g,y,w)}else return r(g,v,y,w)}function l(g,v){if(!utils$2.isUndefined(v))return r(void 0,v)}function d(g,v){if(utils$2.isUndefined(v)){if(!utils$2.isUndefined(g))return r(void 0,g)}else return r(void 0,v)}function m(g,v,y){if(y in o)return r(g,v);if(y in t)return r(void 0,g)}const _={url:l,method:l,data:l,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:m,headers:(g,v,y)=>s(headersToObject(g),headersToObject(v),y,!0)};return utils$2.forEach(Object.keys(Object.assign({},t,o)),function(v){const y=_[v]||s,w=y(t[v],o[v],v);utils$2.isUndefined(w)&&y!==m||(n[v]=w)}),n}const resolveConfig=t=>{const o=mergeConfig({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:l,headers:d,auth:m}=o;o.headers=d=AxiosHeaders$1.from(d),o.url=buildURL(buildFullPath(o.baseURL,o.url),t.params,t.paramsSerializer),m&&d.set("Authorization","Basic "+btoa((m.username||"")+":"+(m.password?unescape(encodeURIComponent(m.password)):"")));let _;if(utils$2.isFormData(n)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if((_=d.getContentType())!==!1){const[g,...v]=_?_.split(";").map(y=>y.trim()).filter(Boolean):[];d.setContentType([g||"multipart/form-data",...v].join("; "))}}if(platform.hasStandardBrowserEnv&&(r&&utils$2.isFunction(r)&&(r=r(o)),r||r!==!1&&isURLSameOrigin(o.url))){const g=s&&l&&cookies.read(l);g&&d.set(s,g)}return o},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(t){return new Promise(function(n,r){const s=resolveConfig(t);let l=s.data;const d=AxiosHeaders$1.from(s.headers).normalize();let{responseType:m,onUploadProgress:_,onDownloadProgress:g}=s,v,y,w,B,k;function N(){B&&B(),k&&k(),s.cancelToken&&s.cancelToken.unsubscribe(v),s.signal&&s.signal.removeEventListener("abort",v)}let S=new XMLHttpRequest;S.open(s.method.toUpperCase(),s.url,!0),S.timeout=s.timeout;function x(){if(!S)return;const I=AxiosHeaders$1.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),R={data:!m||m==="text"||m==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:I,config:t,request:S};settle(function(Q){n(Q),N()},function(Q){r(Q),N()},R),S=null}"onloadend"in S?S.onloadend=x:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(x)},S.onabort=function(){S&&(r(new AxiosError("Request aborted",AxiosError.ECONNABORTED,t,S)),S=null)},S.onerror=function(){r(new AxiosError("Network Error",AxiosError.ERR_NETWORK,t,S)),S=null},S.ontimeout=function(){let D=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const R=s.transitional||transitionalDefaults;s.timeoutErrorMessage&&(D=s.timeoutErrorMessage),r(new AxiosError(D,R.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,t,S)),S=null},l===void 0&&d.setContentType(null),"setRequestHeader"in S&&utils$2.forEach(d.toJSON(),function(D,R){S.setRequestHeader(R,D)}),utils$2.isUndefined(s.withCredentials)||(S.withCredentials=!!s.withCredentials),m&&m!=="json"&&(S.responseType=s.responseType),g&&([w,k]=progressEventReducer(g,!0),S.addEventListener("progress",w)),_&&S.upload&&([y,B]=progressEventReducer(_),S.upload.addEventListener("progress",y),S.upload.addEventListener("loadend",B)),(s.cancelToken||s.signal)&&(v=I=>{S&&(r(!I||I.type?new CanceledError(null,t,S):I),S.abort(),S=null)},s.cancelToken&&s.cancelToken.subscribe(v),s.signal&&(s.signal.aborted?v():s.signal.addEventListener("abort",v)));const C=parseProtocol(s.url);if(C&&platform.protocols.indexOf(C)===-1){r(new AxiosError("Unsupported protocol "+C+":",AxiosError.ERR_BAD_REQUEST,t));return}S.send(l||null)})},composeSignals=(t,o)=>{const{length:n}=t=t?t.filter(Boolean):[];if(o||n){let r=new AbortController,s;const l=function(g){if(!s){s=!0,m();const v=g instanceof Error?g:this.reason;r.abort(v instanceof AxiosError?v:new CanceledError(v instanceof Error?v.message:v))}};let d=o&&setTimeout(()=>{d=null,l(new AxiosError(`timeout ${o} of ms exceeded`,AxiosError.ETIMEDOUT))},o);const m=()=>{t&&(d&&clearTimeout(d),d=null,t.forEach(g=>{g.unsubscribe?g.unsubscribe(l):g.removeEventListener("abort",l)}),t=null)};t.forEach(g=>g.addEventListener("abort",l));const{signal:_}=r;return _.unsubscribe=()=>utils$2.asap(m),_}},composeSignals$1=composeSignals,streamChunk=function*(t,o){let n=t.byteLength;if(!o||n{const s=readBytes(t,o);let l=0,d,m=_=>{d||(d=!0,r&&r(_))};return new ReadableStream({async pull(_){try{const{done:g,value:v}=await s.next();if(g){m(),_.close();return}let y=v.byteLength;if(n){let w=l+=y;n(w)}_.enqueue(new Uint8Array(v))}catch(g){throw m(g),g}},cancel(_){return m(_),s.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(t=>o=>t.encode(o))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),test=(t,...o)=>{try{return!!t(...o)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let t=!1;const o=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!o}),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$2.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(t=>t.body)};isFetchSupported&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(o=>{!resolvers[o]&&(resolvers[o]=utils$2.isFunction(t[o])?n=>n[o]():(n,r)=>{throw new AxiosError(`Response type '${o}' is not supported`,AxiosError.ERR_NOT_SUPPORT,r)})})})(new Response);const getBodyLength=async t=>{if(t==null)return 0;if(utils$2.isBlob(t))return t.size;if(utils$2.isSpecCompliantForm(t))return(await new Request(platform.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(utils$2.isArrayBufferView(t)||utils$2.isArrayBuffer(t))return t.byteLength;if(utils$2.isURLSearchParams(t)&&(t=t+""),utils$2.isString(t))return(await encodeText(t)).byteLength},resolveBodyLength=async(t,o)=>{const n=utils$2.toFiniteNumber(t.getContentLength());return n??getBodyLength(o)},fetchAdapter=isFetchSupported&&(async t=>{let{url:o,method:n,data:r,signal:s,cancelToken:l,timeout:d,onDownloadProgress:m,onUploadProgress:_,responseType:g,headers:v,withCredentials:y="same-origin",fetchOptions:w}=resolveConfig(t);g=g?(g+"").toLowerCase():"text";let B=composeSignals$1([s,l&&l.toAbortSignal()],d),k;const N=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let S;try{if(_&&supportsRequestStream&&n!=="get"&&n!=="head"&&(S=await resolveBodyLength(v,r))!==0){let R=new Request(o,{method:"POST",body:r,duplex:"half"}),O;if(utils$2.isFormData(r)&&(O=R.headers.get("content-type"))&&v.setContentType(O),R.body){const[Q,Y]=progressEventDecorator(S,progressEventReducer(asyncDecorator(_)));r=trackStream(R.body,DEFAULT_CHUNK_SIZE,Q,Y)}}utils$2.isString(y)||(y=y?"include":"omit");const x="credentials"in Request.prototype;k=new Request(o,{...w,signal:B,method:n.toUpperCase(),headers:v.normalize().toJSON(),body:r,duplex:"half",credentials:x?y:void 0});let C=await fetch(k);const I=supportsResponseStream&&(g==="stream"||g==="response");if(supportsResponseStream&&(m||I&&N)){const R={};["status","statusText","headers"].forEach(W=>{R[W]=C[W]});const O=utils$2.toFiniteNumber(C.headers.get("content-length")),[Q,Y]=m&&progressEventDecorator(O,progressEventReducer(asyncDecorator(m),!0))||[];C=new Response(trackStream(C.body,DEFAULT_CHUNK_SIZE,Q,()=>{Y&&Y(),N&&N()}),R)}g=g||"text";let D=await resolvers[utils$2.findKey(resolvers,g)||"text"](C,t);return!I&&N&&N(),await new Promise((R,O)=>{settle(R,O,{data:D,headers:AxiosHeaders$1.from(C.headers),status:C.status,statusText:C.statusText,config:t,request:k})})}catch(x){throw N&&N(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,t,k),{cause:x.cause||x}):AxiosError.from(x,x&&x.code,t,k)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$2.forEach(knownAdapters,(t,o)=>{if(t){try{Object.defineProperty(t,"name",{value:o})}catch{}Object.defineProperty(t,"adapterName",{value:o})}});const renderReason=t=>`- ${t}`,isResolvedHandle=t=>utils$2.isFunction(t)||t===null||t===!1,adapters={getAdapter:t=>{t=utils$2.isArray(t)?t:[t];const{length:o}=t;let n,r;const s={};for(let l=0;l`adapter ${m} `+(_===!1?"is not supported by the environment":"is not available in the build"));let d=o?l.length>1?`since :
+`+l.map(renderReason).join(`
+`):" "+renderReason(l[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return r},adapters:knownAdapters};function throwIfCancellationRequested(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new CanceledError(null,t)}function dispatchRequest(t){return throwIfCancellationRequested(t),t.headers=AxiosHeaders$1.from(t.headers),t.data=transformData.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(t.adapter||defaults$4.adapter)(t).then(function(r){return throwIfCancellationRequested(t),r.data=transformData.call(t,t.transformResponse,r),r.headers=AxiosHeaders$1.from(r.headers),r},function(r){return isCancel(r)||(throwIfCancellationRequested(t),r&&r.response&&(r.response.data=transformData.call(t,t.transformResponse,r.response),r.response.headers=AxiosHeaders$1.from(r.response.headers))),Promise.reject(r)})}const VERSION="1.7.9",validators$1={};["object","boolean","number","function","string","symbol"].forEach((t,o)=>{validators$1[t]=function(r){return typeof r===t||"a"+(o<1?"n ":" ")+t}});const deprecatedWarnings={};validators$1.transitional=function(o,n,r){function s(l,d){return"[Axios v"+VERSION+"] Transitional option '"+l+"'"+d+(r?". "+r:"")}return(l,d,m)=>{if(o===!1)throw new AxiosError(s(d," has been removed"+(n?" in "+n:"")),AxiosError.ERR_DEPRECATED);return n&&!deprecatedWarnings[d]&&(deprecatedWarnings[d]=!0,console.warn(s(d," has been deprecated since v"+n+" and will be removed in the near future"))),o?o(l,d,m):!0}};validators$1.spelling=function(o){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${o}`),!0)};function assertOptions(t,o,n){if(typeof t!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const l=r[s],d=o[l];if(d){const m=t[l],_=m===void 0||d(m,l,t);if(_!==!0)throw new AxiosError("option "+l+" must be "+_,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new AxiosError("Unknown option "+l,AxiosError.ERR_BAD_OPTION)}}const validator$1={assertOptions,validators:validators$1},validators=validator$1.validators;class Axios{constructor(o){this.defaults=o,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}async request(o,n){try{return await this._request(o,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const l=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=`
+`+l):r.stack=l}catch{}}throw r}}_request(o,n){typeof o=="string"?(n=n||{},n.url=o):n=o||{},n=mergeConfig(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:l}=n;r!==void 0&&validator$1.assertOptions(r,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),s!=null&&(utils$2.isFunction(s)?n.paramsSerializer={serialize:s}:validator$1.assertOptions(s,{encode:validators.function,serialize:validators.function},!0)),validator$1.assertOptions(n,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let d=l&&utils$2.merge(l.common,l[n.method]);l&&utils$2.forEach(["delete","get","head","post","put","patch","common"],k=>{delete l[k]}),n.headers=AxiosHeaders$1.concat(d,l);const m=[];let _=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(n)===!1||(_=_&&N.synchronous,m.unshift(N.fulfilled,N.rejected))});const g=[];this.interceptors.response.forEach(function(N){g.push(N.fulfilled,N.rejected)});let v,y=0,w;if(!_){const k=[dispatchRequest.bind(this),void 0];for(k.unshift.apply(k,m),k.push.apply(k,g),w=k.length,v=Promise.resolve(n);y{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](s);r._listeners=null}),this.promise.then=s=>{let l;const d=new Promise(m=>{r.subscribe(m),l=m}).then(s);return d.cancel=function(){r.unsubscribe(l)},d},o(function(l,d,m){r.reason||(r.reason=new CanceledError(l,d,m),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const n=this._listeners.indexOf(o);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const o=new AbortController,n=r=>{o.abort(r)};return this.subscribe(n),o.signal.unsubscribe=()=>this.unsubscribe(n),o.signal}static source(){let o;return{token:new CancelToken(function(s){o=s}),cancel:o}}}const CancelToken$1=CancelToken;function spread(t){return function(n){return t.apply(null,n)}}function isAxiosError(t){return utils$2.isObject(t)&&t.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([t,o])=>{HttpStatusCode[o]=t});const HttpStatusCode$1=HttpStatusCode;function createInstance(t){const o=new Axios$1(t),n=bind(Axios$1.prototype.request,o);return utils$2.extend(n,Axios$1.prototype,o,{allOwnKeys:!0}),utils$2.extend(n,o,null,{allOwnKeys:!0}),n.create=function(s){return createInstance(mergeConfig(t,s))},n}const axios=createInstance(defaults$4);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(o){return Promise.all(o)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=t=>formDataToJSON(utils$2.isHTMLForm(t)?new FormData(t):t);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios,defaultOpts$2={xml:!1,decodeEntities:!0},xmlModeDefault={_useHtmlParser2:!0,xmlMode:!0};function flatten$4(t){return t!=null&&t.xml?typeof t.xml=="boolean"?xmlModeDefault:{...xmlModeDefault,...t.xml}:t??void 0}var ElementType;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(ElementType||(ElementType={}));function isTag$1(t){return t.type===ElementType.Tag||t.type===ElementType.Script||t.type===ElementType.Style}const Root=ElementType.Root,Text$1=ElementType.Text,Directive=ElementType.Directive,Comment$1=ElementType.Comment,Script=ElementType.Script,Style=ElementType.Style,Tag=ElementType.Tag,CDATA$1=ElementType.CDATA,Doctype=ElementType.Doctype;let Node$1=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(o){this.parent=o}get previousSibling(){return this.prev}set previousSibling(o){this.prev=o}get nextSibling(){return this.next}set nextSibling(o){this.next=o}cloneNode(o=!1){return cloneNode(this,o)}};class DataNode extends Node$1{constructor(o){super(),this.data=o}get nodeValue(){return this.data}set nodeValue(o){this.data=o}}class Text extends DataNode{constructor(){super(...arguments),this.type=ElementType.Text}get nodeType(){return 3}}class Comment extends DataNode{constructor(){super(...arguments),this.type=ElementType.Comment}get nodeType(){return 8}}class ProcessingInstruction extends DataNode{constructor(o,n){super(n),this.name=o,this.type=ElementType.Directive}get nodeType(){return 1}}class NodeWithChildren extends Node$1{constructor(o){super(),this.children=o}get firstChild(){var o;return(o=this.children[0])!==null&&o!==void 0?o:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(o){this.children=o}}class CDATA extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.CDATA}get nodeType(){return 4}}class Document extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.Root}get nodeType(){return 9}}let Element$1=class extends NodeWithChildren{constructor(o,n,r=[],s=o==="script"?ElementType.Script:o==="style"?ElementType.Style:ElementType.Tag){super(r),this.name=o,this.attribs=n,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(o){this.name=o}get attributes(){return Object.keys(this.attribs).map(o=>{var n,r;return{name:o,value:this.attribs[o],namespace:(n=this["x-attribsNamespace"])===null||n===void 0?void 0:n[o],prefix:(r=this["x-attribsPrefix"])===null||r===void 0?void 0:r[o]}})}};function isTag(t){return isTag$1(t)}function isCDATA(t){return t.type===ElementType.CDATA}function isText(t){return t.type===ElementType.Text}function isComment(t){return t.type===ElementType.Comment}function isDirective(t){return t.type===ElementType.Directive}function isDocument(t){return t.type===ElementType.Root}function hasChildren(t){return Object.prototype.hasOwnProperty.call(t,"children")}function cloneNode(t,o=!1){let n;if(isText(t))n=new Text(t.data);else if(isComment(t))n=new Comment(t.data);else if(isTag(t)){const r=o?cloneChildren(t.children):[],s=new Element$1(t.name,{...t.attribs},r);r.forEach(l=>l.parent=s),t.namespace!=null&&(s.namespace=t.namespace),t["x-attribsNamespace"]&&(s["x-attribsNamespace"]={...t["x-attribsNamespace"]}),t["x-attribsPrefix"]&&(s["x-attribsPrefix"]={...t["x-attribsPrefix"]}),n=s}else if(isCDATA(t)){const r=o?cloneChildren(t.children):[],s=new CDATA(r);r.forEach(l=>l.parent=s),n=s}else if(isDocument(t)){const r=o?cloneChildren(t.children):[],s=new Document(r);r.forEach(l=>l.parent=s),t["x-mode"]&&(s["x-mode"]=t["x-mode"]),n=s}else if(isDirective(t)){const r=new ProcessingInstruction(t.name,t.data);t["x-name"]!=null&&(r["x-name"]=t["x-name"],r["x-publicId"]=t["x-publicId"],r["x-systemId"]=t["x-systemId"]),n=r}else throw new Error(`Not implemented yet: ${t.type}`);return n.startIndex=t.startIndex,n.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(n.sourceCodeLocation=t.sourceCodeLocation),n}function cloneChildren(t){const o=t.map(n=>cloneNode(n,!0));for(let n=1;n䀾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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ǣጓ\0y;䐎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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀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ↄⅪ←ٖ↛ǰ↉\0proø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肻 ଷ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;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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(t=>t.charCodeAt(0))),xmlDecodeTree=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(t=>t.charCodeAt(0)));var _a;const decodeMap=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]]),fromCodePoint$2=(_a=String.fromCodePoint)!==null&&_a!==void 0?_a:function(t){let o="";return t>65535&&(t-=65536,o+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),o+=String.fromCharCode(t),o};function replaceCodePoint(t){var o;return t>=55296&&t<=57343||t>1114111?65533:(o=decodeMap.get(t))!==null&&o!==void 0?o:t}var CharCodes$1;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(CharCodes$1||(CharCodes$1={}));const TO_LOWER_BIT=32;var BinTrieFlags;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(BinTrieFlags||(BinTrieFlags={}));function isNumber$3(t){return t>=CharCodes$1.ZERO&&t<=CharCodes$1.NINE}function isHexadecimalCharacter(t){return t>=CharCodes$1.UPPER_A&&t<=CharCodes$1.UPPER_F||t>=CharCodes$1.LOWER_A&&t<=CharCodes$1.LOWER_F}function isAsciiAlphaNumeric$1(t){return t>=CharCodes$1.UPPER_A&&t<=CharCodes$1.UPPER_Z||t>=CharCodes$1.LOWER_A&&t<=CharCodes$1.LOWER_Z||isNumber$3(t)}function isEntityInAttributeInvalidEnd$1(t){return t===CharCodes$1.EQUALS||isAsciiAlphaNumeric$1(t)}var EntityDecoderState;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(EntityDecoderState||(EntityDecoderState={}));var DecodingMode;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(o,n,r){this.decodeTree=o,this.emitCodePoint=n,this.errors=r,this.state=EntityDecoderState.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=DecodingMode.Strict}startEntity(o){this.decodeMode=o,this.state=EntityDecoderState.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(o,n){switch(this.state){case EntityDecoderState.EntityStart:return o.charCodeAt(n)===CharCodes$1.NUM?(this.state=EntityDecoderState.NumericStart,this.consumed+=1,this.stateNumericStart(o,n+1)):(this.state=EntityDecoderState.NamedEntity,this.stateNamedEntity(o,n));case EntityDecoderState.NumericStart:return this.stateNumericStart(o,n);case EntityDecoderState.NumericDecimal:return this.stateNumericDecimal(o,n);case EntityDecoderState.NumericHex:return this.stateNumericHex(o,n);case EntityDecoderState.NamedEntity:return this.stateNamedEntity(o,n)}}stateNumericStart(o,n){return n>=o.length?-1:(o.charCodeAt(n)|TO_LOWER_BIT)===CharCodes$1.LOWER_X?(this.state=EntityDecoderState.NumericHex,this.consumed+=1,this.stateNumericHex(o,n+1)):(this.state=EntityDecoderState.NumericDecimal,this.stateNumericDecimal(o,n))}addToNumericResult(o,n,r,s){if(n!==r){const l=r-n;this.result=this.result*Math.pow(s,l)+parseInt(o.substr(n,l),s),this.consumed+=l}}stateNumericHex(o,n){const r=n;for(;n>14;for(;n>14,l!==0){if(d===CharCodes$1.SEMI)return this.emitNamedEntityData(this.treeIndex,l,this.consumed+this.excess);this.decodeMode!==DecodingMode.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var o;const{result:n,decodeTree:r}=this,s=(r[n]&BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),(o=this.errors)===null||o===void 0||o.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(o,n,r){const{decodeTree:s}=this;return this.emitCodePoint(n===1?s[o]&~BinTrieFlags.VALUE_LENGTH:s[o+1],r),n===3&&this.emitCodePoint(s[o+2],r),r}end(){var o;switch(this.state){case EntityDecoderState.NamedEntity:return this.result!==0&&(this.decodeMode!==DecodingMode.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case EntityDecoderState.NumericDecimal:return this.emitNumericEntity(0,2);case EntityDecoderState.NumericHex:return this.emitNumericEntity(0,3);case EntityDecoderState.NumericStart:return(o=this.errors)===null||o===void 0||o.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case EntityDecoderState.EntityStart:return 0}}}function getDecoder(t){let o="";const n=new EntityDecoder(t,r=>o+=fromCodePoint$2(r));return function(s,l){let d=0,m=0;for(;(m=s.indexOf("&",m))>=0;){o+=s.slice(d,m),n.startEntity(l);const g=n.write(s,m+1);if(g<0){d=m+n.end();break}d=m+g,m=g===0?d+1:d}const _=o+s.slice(d);return o="",_}}function determineBranch(t,o,n,r){const s=(o&BinTrieFlags.BRANCH_LENGTH)>>7,l=o&BinTrieFlags.JUMP_TABLE;if(s===0)return l!==0&&r===l?n:-1;if(l){const _=r-l;return _<0||_>=s?-1:t[n+_]-1}let d=n,m=d+s-1;for(;d<=m;){const _=d+m>>>1,g=t[_];if(gr)m=_-1;else return t[_+s]}return-1}getDecoder(htmlDecodeTree);getDecoder(xmlDecodeTree);const xmlReplacer=/["&'<>$\x80-\uFFFF]/g,xmlCodeMap=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),getCodePoint=String.prototype.codePointAt!=null?(t,o)=>t.codePointAt(o):(t,o)=>(t.charCodeAt(o)&64512)===55296?(t.charCodeAt(o)-55296)*1024+t.charCodeAt(o+1)-56320+65536:t.charCodeAt(o);function encodeXML(t){let o="",n=0,r;for(;(r=xmlReplacer.exec(t))!==null;){const s=r.index,l=t.charCodeAt(s),d=xmlCodeMap.get(l);d!==void 0?(o+=t.substring(n,s)+d,n=s+1):(o+=`${t.substring(n,s)}${getCodePoint(t,s).toString(16)};`,n=xmlReplacer.lastIndex+=+((l&64512)===55296))}return o+t.substr(n)}function getEscaper(t,o){return function(r){let s,l=0,d="";for(;s=t.exec(r);)l!==s.index&&(d+=r.substring(l,s.index)),d+=o.get(s[0].charCodeAt(0)),l=s.index+1;return d+r.substring(l)}}const escapeAttribute=getEscaper(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),escapeText=getEscaper(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),elementNames=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"].map(t=>[t.toLowerCase(),t])),attributeNames=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"].map(t=>[t.toLowerCase(),t])),unencodedElements=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function replaceQuotes(t){return t.replace(/"/g,""")}function formatAttributes(t,o){var n;if(!t)return;const r=((n=o.encodeEntities)!==null&&n!==void 0?n:o.decodeEntities)===!1?replaceQuotes:o.xmlMode||o.encodeEntities!=="utf8"?encodeXML:escapeAttribute;return Object.keys(t).map(s=>{var l,d;const m=(l=t[s])!==null&&l!==void 0?l:"";return o.xmlMode==="foreign"&&(s=(d=attributeNames.get(s))!==null&&d!==void 0?d:s),!o.emptyAttrs&&!o.xmlMode&&m===""?s:`${s}="${r(m)}"`}).join(" ")}const singleTag=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function render$8(t,o={}){const n="length"in t?t:[t];let r="";for(let s=0;s"):(r+=">",t.children.length>0&&(r+=render$8(t.children,o)),(o.xmlMode||!singleTag.has(t.name))&&(r+=`${t.name}>`)),r}function renderDirective(t){return`<${t.data}>`}function renderText(t,o){var n;let r=t.data||"";return((n=o.encodeEntities)!==null&&n!==void 0?n:o.decodeEntities)!==!1&&!(!o.xmlMode&&t.parent&&unencodedElements.has(t.parent.name))&&(r=o.xmlMode||o.encodeEntities!=="utf8"?encodeXML(r):escapeText(r)),r}function renderCdata(t){return``}function renderComment(t){return``}function getOuterHTML(t,o){return render$8(t,o)}function getInnerHTML(t,o){return hasChildren(t)?t.children.map(n=>getOuterHTML(n,o)).join(""):""}function getText(t){return Array.isArray(t)?t.map(getText).join(""):isTag(t)?t.name==="br"?`
+`:getText(t.children):isCDATA(t)?getText(t.children):isText(t)?t.data:""}function textContent(t){return Array.isArray(t)?t.map(textContent).join(""):hasChildren(t)&&!isComment(t)?textContent(t.children):isText(t)?t.data:""}function innerText(t){return Array.isArray(t)?t.map(innerText).join(""):hasChildren(t)&&(t.type===ElementType.Tag||isCDATA(t))?innerText(t.children):isText(t)?t.data:""}function getChildren(t){return hasChildren(t)?t.children:[]}function getParent(t){return t.parent||null}function getSiblings(t){const o=getParent(t);if(o!=null)return getChildren(o);const n=[t];let{prev:r,next:s}=t;for(;r!=null;)n.unshift(r),{prev:r}=r;for(;s!=null;)n.push(s),{next:s}=s;return n}function getAttributeValue(t,o){var n;return(n=t.attribs)===null||n===void 0?void 0:n[o]}function hasAttrib(t,o){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,o)&&t.attribs[o]!=null}function getName(t){return t.name}function nextElementSibling(t){let{next:o}=t;for(;o!==null&&!isTag(o);)({next:o}=o);return o}function prevElementSibling(t){let{prev:o}=t;for(;o!==null&&!isTag(o);)({prev:o}=o);return o}function removeElement$1(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){const o=t.parent.children,n=o.lastIndexOf(t);n>=0&&o.splice(n,1)}t.next=null,t.prev=null,t.parent=null}function replaceElement(t,o){const n=o.prev=t.prev;n&&(n.next=o);const r=o.next=t.next;r&&(r.prev=o);const s=o.parent=t.parent;if(s){const l=s.children;l[l.lastIndexOf(t)]=o,t.parent=null}}function appendChild(t,o){if(removeElement$1(o),o.next=null,o.parent=t,t.children.push(o)>1){const n=t.children[t.children.length-2];n.next=o,o.prev=n}else o.prev=null}function append$1(t,o){removeElement$1(o);const{parent:n}=t,r=t.next;if(o.next=r,o.prev=t,t.next=o,o.parent=n,r){if(r.prev=o,n){const s=n.children;s.splice(s.lastIndexOf(r),0,o)}}else n&&n.children.push(o)}function prependChild(t,o){if(removeElement$1(o),o.parent=t,o.prev=null,t.children.unshift(o)!==1){const n=t.children[1];n.prev=o,o.next=n}else o.next=null}function prepend$1(t,o){removeElement$1(o);const{parent:n}=t;if(n){const r=n.children;r.splice(r.indexOf(t),0,o)}t.prev&&(t.prev.next=o),o.parent=n,o.prev=t.prev,o.next=t,t.prev=o}function filter$2(t,o,n=!0,r=1/0){return find$4(t,Array.isArray(o)?o:[o],n,r)}function find$4(t,o,n,r){const s=[],l=[o],d=[0];for(;;){if(d[0]>=l[0].length){if(d.length===1)return s;l.shift(),d.shift();continue}const m=l[0][d[0]++];if(t(m)&&(s.push(m),--r<=0))return s;n&&hasChildren(m)&&m.children.length>0&&(d.unshift(0),l.unshift(m.children))}}function findOneChild(t,o){return o.find(t)}function findOne(t,o,n=!0){let r=null;for(let s=0;s0&&(r=findOne(t,l.children,!0));else continue}return r}function existsOne(t,o){return o.some(n=>isTag(n)&&(t(n)||existsOne(t,n.children)))}function findAll(t,o){const n=[],r=[o],s=[0];for(;;){if(s[0]>=r[0].length){if(r.length===1)return n;r.shift(),s.shift();continue}const l=r[0][s[0]++];isTag(l)&&(t(l)&&n.push(l),l.children.length>0&&(s.unshift(0),r.unshift(l.children)))}}const Checks={tag_name(t){return typeof t=="function"?o=>isTag(o)&&t(o.name):t==="*"?isTag:o=>isTag(o)&&o.name===t},tag_type(t){return typeof t=="function"?o=>t(o.type):o=>o.type===t},tag_contains(t){return typeof t=="function"?o=>isText(o)&&t(o.data):o=>isText(o)&&o.data===t}};function getAttribCheck(t,o){return typeof o=="function"?n=>isTag(n)&&o(n.attribs[t]):n=>isTag(n)&&n.attribs[t]===o}function combineFuncs(t,o){return n=>t(n)||o(n)}function compileTest(t){const o=Object.keys(t).map(n=>{const r=t[n];return Object.prototype.hasOwnProperty.call(Checks,n)?Checks[n](r):getAttribCheck(n,r)});return o.length===0?null:o.reduce(combineFuncs)}function testElement(t,o){const n=compileTest(t);return n?n(o):!0}function getElements(t,o,n,r=1/0){const s=compileTest(t);return s?filter$2(s,o,n,r):[]}function getElementById(t,o,n=!0){return Array.isArray(o)||(o=[o]),findOne(getAttribCheck("id",t),o,n)}function getElementsByTagName(t,o,n=!0,r=1/0){return filter$2(Checks.tag_name(t),o,n,r)}function getElementsByTagType(t,o,n=!0,r=1/0){return filter$2(Checks.tag_type(t),o,n,r)}function removeSubsets(t){let o=t.length;for(;--o>=0;){const n=t[o];if(o>0&&t.lastIndexOf(n,o-1)>=0){t.splice(o,1);continue}for(let r=n.parent;r;r=r.parent)if(t.includes(r)){t.splice(o,1);break}}return t}var DocumentPosition;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(DocumentPosition||(DocumentPosition={}));function compareDocumentPosition(t,o){const n=[],r=[];if(t===o)return 0;let s=hasChildren(t)?t:t.parent;for(;s;)n.unshift(s),s=s.parent;for(s=hasChildren(o)?o:o.parent;s;)r.unshift(s),s=s.parent;const l=Math.min(n.length,r.length);let d=0;for(;d_.indexOf(v)?m===o?DocumentPosition.FOLLOWING|DocumentPosition.CONTAINED_BY:DocumentPosition.FOLLOWING:m===t?DocumentPosition.PRECEDING|DocumentPosition.CONTAINS:DocumentPosition.PRECEDING}function uniqueSort(t){return t=t.filter((o,n,r)=>!r.includes(o,n+1)),t.sort((o,n)=>{const r=compareDocumentPosition(o,n);return r&DocumentPosition.PRECEDING?-1:r&DocumentPosition.FOLLOWING?1:0}),t}function getFeed(t){const o=getOneElement(isValidFeed,t);return o?o.name==="feed"?getAtomFeed(o):getRssFeed(o):null}function getAtomFeed(t){var o;const n=t.children,r={type:"atom",items:getElementsByTagName("entry",n).map(d=>{var m;const{children:_}=d,g={media:getMediaElements(_)};addConditionally(g,"id","id",_),addConditionally(g,"title","title",_);const v=(m=getOneElement("link",_))===null||m===void 0?void 0:m.attribs.href;v&&(g.link=v);const y=fetch$1("summary",_)||fetch$1("content",_);y&&(g.description=y);const w=fetch$1("updated",_);return w&&(g.pubDate=new Date(w)),g})};addConditionally(r,"id","id",n),addConditionally(r,"title","title",n);const s=(o=getOneElement("link",n))===null||o===void 0?void 0:o.attribs.href;s&&(r.link=s),addConditionally(r,"description","subtitle",n);const l=fetch$1("updated",n);return l&&(r.updated=new Date(l)),addConditionally(r,"author","email",n,!0),r}function getRssFeed(t){var o,n;const r=(n=(o=getOneElement("channel",t.children))===null||o===void 0?void 0:o.children)!==null&&n!==void 0?n:[],s={type:t.name.substr(0,3),id:"",items:getElementsByTagName("item",t.children).map(d=>{const{children:m}=d,_={media:getMediaElements(m)};addConditionally(_,"id","guid",m),addConditionally(_,"title","title",m),addConditionally(_,"link","link",m),addConditionally(_,"description","description",m);const g=fetch$1("pubDate",m)||fetch$1("dc:date",m);return g&&(_.pubDate=new Date(g)),_})};addConditionally(s,"title","title",r),addConditionally(s,"link","link",r),addConditionally(s,"description","description",r);const l=fetch$1("lastBuildDate",r);return l&&(s.updated=new Date(l)),addConditionally(s,"author","managingEditor",r,!0),s}const MEDIA_KEYS_STRING=["url","type","lang"],MEDIA_KEYS_INT=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function getMediaElements(t){return getElementsByTagName("media:content",t).map(o=>{const{attribs:n}=o,r={medium:n.medium,isDefault:!!n.isDefault};for(const s of MEDIA_KEYS_STRING)n[s]&&(r[s]=n[s]);for(const s of MEDIA_KEYS_INT)n[s]&&(r[s]=parseInt(n[s],10));return n.expression&&(r.expression=n.expression),r})}function getOneElement(t,o){return getElementsByTagName(t,o,!0,1)[0]}function fetch$1(t,o,n=!1){return textContent(getElementsByTagName(t,o,n,1)).trim()}function addConditionally(t,o,n,r,s=!1){const l=fetch$1(n,r,s);l&&(t[o]=l)}function isValidFeed(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}const DomUtils=Object.freeze(Object.defineProperty({__proto__:null,get DocumentPosition(){return DocumentPosition},append:append$1,appendChild,compareDocumentPosition,existsOne,filter:filter$2,find:find$4,findAll,findOne,findOneChild,getAttributeValue,getChildren,getElementById,getElements,getElementsByTagName,getElementsByTagType,getFeed,getInnerHTML,getName,getOuterHTML,getParent,getSiblings,getText,hasAttrib,hasChildren,innerText,isCDATA,isComment,isDocument,isTag,isText,nextElementSibling,prepend:prepend$1,prependChild,prevElementSibling,removeElement:removeElement$1,removeSubsets,replaceElement,testElement,textContent,uniqueSort},Symbol.toStringTag,{value:"Module"}));function render$7(t,o,n){return t?t(o??t._root.children,null,void 0,n).toString():""}function isOptions(t,o){return!o&&typeof t=="object"&&t!=null&&!("length"in t)&&!("type"in t)}function html$1(t,o){const n=isOptions(t)?(o=t,void 0):t,r={...defaultOpts$2,...this===null||this===void 0?void 0:this._options,...flatten$4(o??{})};return render$7(this,n,r)}function xml(t){const o={...this._options,xmlMode:!0};return render$7(this,t,o)}function text$1(t){const o=t||(this?this.root():[]);let n="";for(let r=0;rn.toUpperCase())}function cssCase(t){return t.replace(/[A-Z]/g,"-$&").toLowerCase()}function domEach(t,o){const n=t.length;for(let r=0;rcloneNode(r,!0)):[cloneNode(t,!0)],n=new Document(o);return o.forEach(r=>{r.parent=n}),o}var CharacterCodes;(function(t){t[t.LowerA=97]="LowerA",t[t.LowerZ=122]="LowerZ",t[t.UpperA=65]="UpperA",t[t.UpperZ=90]="UpperZ",t[t.Exclamation=33]="Exclamation"})(CharacterCodes||(CharacterCodes={}));function isHtml(t){const o=t.indexOf("<");if(o<0||o>t.length-3)return!1;const n=t.charCodeAt(o+1);return(n>=CharacterCodes.LowerA&&n<=CharacterCodes.LowerZ||n>=CharacterCodes.UpperA&&n<=CharacterCodes.UpperZ||n===CharacterCodes.Exclamation)&&t.includes(">",o+2)}const hasOwn=Object.prototype.hasOwnProperty,rspace=/\s+/,dataAttrPrefix="data-",primitives={null:null,true:!0,false:!1},rboolean=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,rbrace=/^{[^]*}$|^\[[^]*]$/;function getAttr(t,o,n){var r;if(!(!t||!isTag(t))){if((r=t.attribs)!==null&&r!==void 0||(t.attribs={}),!o)return t.attribs;if(hasOwn.call(t.attribs,o))return!n&&rboolean.test(o)?o:t.attribs[o];if(t.name==="option"&&o==="value")return text$1(t.children);if(t.name==="input"&&(t.attribs.type==="radio"||t.attribs.type==="checkbox")&&o==="value")return"on"}}function setAttr(t,o,n){n===null?removeAttribute(t,o):t.attribs[o]=`${n}`}function attr(t,o){if(typeof t=="object"||o!==void 0){if(typeof o=="function"){if(typeof t!="string")throw new Error("Bad combination of arguments.");return domEach(this,(n,r)=>{isTag(n)&&setAttr(n,t,o.call(n,r,n.attribs[t]))})}return domEach(this,n=>{isTag(n)&&(typeof t=="object"?Object.keys(t).forEach(r=>{const s=t[r];setAttr(n,r,s)}):setAttr(n,t,o))})}return arguments.length>1?this:getAttr(this[0],t,this.options.xmlMode)}function getProp(t,o,n){return o in t?t[o]:!n&&rboolean.test(o)?getAttr(t,o,!1)!==void 0:getAttr(t,o,n)}function setProp(t,o,n,r){o in t?t[o]=n:setAttr(t,o,!r&&rboolean.test(o)?n?"":null:`${n}`)}function prop(t,o){var n;if(typeof t=="string"&&o===void 0){const r=this[0];if(!r||!isTag(r))return;switch(t){case"style":{const s=this.css(),l=Object.keys(s);return l.forEach((d,m)=>{s[m]=d}),s.length=l.length,s}case"tagName":case"nodeName":return r.name.toUpperCase();case"href":case"src":{const s=(n=r.attribs)===null||n===void 0?void 0:n[t];return typeof URL<"u"&&(t==="href"&&(r.tagName==="a"||r.name==="link")||t==="src"&&(r.tagName==="img"||r.tagName==="iframe"||r.tagName==="audio"||r.tagName==="video"||r.tagName==="source"))&&s!==void 0&&this.options.baseURI?new URL(s,this.options.baseURI).href:s}case"innerText":return innerText(r);case"textContent":return textContent(r);case"outerHTML":return this.clone().wrap("").parent().html();case"innerHTML":return this.html();default:return getProp(r,t,this.options.xmlMode)}}if(typeof t=="object"||o!==void 0){if(typeof o=="function"){if(typeof t=="object")throw new Error("Bad combination of arguments.");return domEach(this,(r,s)=>{isTag(r)&&setProp(r,t,o.call(r,s,getProp(r,t,this.options.xmlMode)),this.options.xmlMode)})}return domEach(this,r=>{isTag(r)&&(typeof t=="object"?Object.keys(t).forEach(s=>{const l=t[s];setProp(r,s,l,this.options.xmlMode)}):setProp(r,t,o,this.options.xmlMode))})}}function setData$1(t,o,n){var r;const s=t;(r=s.data)!==null&&r!==void 0||(s.data={}),typeof o=="object"?Object.assign(s.data,o):typeof o=="string"&&n!==void 0&&(s.data[o]=n)}function readData(t,o){let n,r,s;o==null?(n=Object.keys(t.attribs).filter(l=>l.startsWith(dataAttrPrefix)),r=n.map(l=>camelCase(l.slice(dataAttrPrefix.length)))):(n=[dataAttrPrefix+cssCase(o)],r=[o]);for(let l=0;l{isTag(l)&&(typeof t=="object"?setData$1(l,t):setData$1(l,t,o))}),this):hasOwn.call(s.data,t)?s.data[t]:readData(s,t):readData(s)}function val(t){const o=arguments.length===0,n=this[0];if(!n||!isTag(n))return o?void 0:this;switch(n.name){case"textarea":return this.text(t);case"select":{const r=this.find("option:selected");if(!o){if(this.attr("multiple")==null&&typeof t=="object")return this;this.find("option").removeAttr("selected");const s=typeof t!="object"?[t]:t;for(let l=0;ltext$1(s.children)):r.attr("value")}case"input":case"option":return o?this.attr("value"):this.attr("value",t)}}function removeAttribute(t,o){!t.attribs||!hasOwn.call(t.attribs,o)||delete t.attribs[o]}function splitNames(t){return t?t.trim().split(rspace):[]}function removeAttr(t){const o=splitNames(t);for(let n=0;n{isTag(r)&&removeAttribute(r,o[n])});return this}function hasClass$1(t){return this.toArray().some(o=>{const n=isTag(o)&&o.attribs.class;let r=-1;if(n&&t.length)for(;(r=n.indexOf(t,r+1))>-1;){const s=r+t.length;if((r===0||rspace.test(n[r-1]))&&(s===n.length||rspace.test(n[s])))return!0}return!1})}function addClass$1(t){if(typeof t=="function")return domEach(this,(r,s)=>{if(isTag(r)){const l=r.attribs.class||"";addClass$1.call([r],t.call(r,s,l))}});if(!t||typeof t!="string")return this;const o=t.split(rspace),n=this.length;for(let r=0;r{isTag(s)&&removeClass$1.call([s],t.call(s,l,s.attribs.class||""))});const o=splitNames(t),n=o.length,r=arguments.length===0;return domEach(this,s=>{if(isTag(s))if(r)s.attribs.class="";else{const l=splitNames(s.attribs.class);let d=!1;for(let m=0;m=0&&(l.splice(_,1),d=!0,m--)}d&&(s.attribs.class=l.join(" "))}})}function toggleClass$2(t,o){if(typeof t=="function")return domEach(this,(d,m)=>{isTag(d)&&toggleClass$2.call([d],t.call(d,m,d.attribs.class||"",o),o)});if(!t||typeof t!="string")return this;const n=t.split(rspace),r=n.length,s=typeof o=="boolean"?o?1:-1:0,l=this.length;for(let d=0;d=0&&v<0?_.push(n[g]):s<=0&&v>=0&&_.splice(v,1)}m.attribs.class=_.join(" ")}return this}const Attributes=Object.freeze(Object.defineProperty({__proto__:null,addClass:addClass$1,attr,data,hasClass:hasClass$1,prop,removeAttr,removeClass:removeClass$1,toggleClass:toggleClass$2,val},Symbol.toStringTag,{value:"Module"}));var SelectorType;(function(t){t.Attribute="attribute",t.Pseudo="pseudo",t.PseudoElement="pseudo-element",t.Tag="tag",t.Universal="universal",t.Adjacent="adjacent",t.Child="child",t.Descendant="descendant",t.Parent="parent",t.Sibling="sibling",t.ColumnCombinator="column-combinator"})(SelectorType||(SelectorType={}));var AttributeAction;(function(t){t.Any="any",t.Element="element",t.End="end",t.Equals="equals",t.Exists="exists",t.Hyphen="hyphen",t.Not="not",t.Start="start"})(AttributeAction||(AttributeAction={}));const reName=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,reEscape=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,actionTypes=new Map([[126,AttributeAction.Element],[94,AttributeAction.Start],[36,AttributeAction.End],[42,AttributeAction.Any],[33,AttributeAction.Not],[124,AttributeAction.Hyphen]]),unpackPseudos=new Set(["has","not","matches","is","where","host","host-context"]);function isTraversal$1(t){switch(t.type){case SelectorType.Adjacent:case SelectorType.Child:case SelectorType.Descendant:case SelectorType.Parent:case SelectorType.Sibling:case SelectorType.ColumnCombinator:return!0;default:return!1}}const stripQuotesFromPseudos=new Set(["contains","icontains"]);function funescape(t,o,n){const r=parseInt(o,16)-65536;return r!==r||n?o:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function unescapeCSS(t){return t.replace(reEscape,funescape)}function isQuote(t){return t===39||t===34}function isWhitespace$2(t){return t===32||t===9||t===10||t===12||t===13}function parse$7(t){const o=[],n=parseSelector(o,`${t}`,0);if(n0&&n0&&isTraversal$1(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function g(w){if(r.length>0&&r[r.length-1].type===SelectorType.Descendant){r[r.length-1].type=w;return}_(),r.push({type:w})}function v(w,B){r.push({type:SelectorType.Attribute,name:w,action:B,value:s(1),namespace:null,ignoreCase:"quirks"})}function y(){if(r.length&&r[r.length-1].type===SelectorType.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");t.push(r)}if(l(0),o.length===n)return n;e:for(;n=0&&r>=1)):t.type===SelectorType.Pseudo&&(t.data?t.name==="has"||t.name==="contains"?r=0:Array.isArray(t.data)?(r=Math.min(...t.data.map(s=>Math.min(...s.map(getProcedure)))),r<0&&(r=0)):r=2:r=3),r}const reChars=/[-[\]{}()*+?.,\\^$|#\s]/g;function escapeRegex$1(t){return t.replace(reChars,"\\$&")}const caseInsensitiveAttributes=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function shouldIgnoreCase(t,o){return typeof t.ignoreCase=="boolean"?t.ignoreCase:t.ignoreCase==="quirks"?!!o.quirksMode:!o.xmlMode&&caseInsensitiveAttributes.has(t.name)}const attributeRules={equals(t,o,n){const{adapter:r}=n,{name:s}=o;let{value:l}=o;return shouldIgnoreCase(o,n)?(l=l.toLowerCase(),d=>{const m=r.getAttributeValue(d,s);return m!=null&&m.length===l.length&&m.toLowerCase()===l&&t(d)}):d=>r.getAttributeValue(d,s)===l&&t(d)},hyphen(t,o,n){const{adapter:r}=n,{name:s}=o;let{value:l}=o;const d=l.length;return shouldIgnoreCase(o,n)?(l=l.toLowerCase(),function(_){const g=r.getAttributeValue(_,s);return g!=null&&(g.length===d||g.charAt(d)==="-")&&g.substr(0,d).toLowerCase()===l&&t(_)}):function(_){const g=r.getAttributeValue(_,s);return g!=null&&(g.length===d||g.charAt(d)==="-")&&g.substr(0,d)===l&&t(_)}},element(t,o,n){const{adapter:r}=n,{name:s,value:l}=o;if(/\s/.test(l))return boolbase$1.falseFunc;const d=new RegExp(`(?:^|\\s)${escapeRegex$1(l)}(?:$|\\s)`,shouldIgnoreCase(o,n)?"i":"");return function(_){const g=r.getAttributeValue(_,s);return g!=null&&g.length>=l.length&&d.test(g)&&t(_)}},exists(t,{name:o},{adapter:n}){return r=>n.hasAttrib(r,o)&&t(r)},start(t,o,n){const{adapter:r}=n,{name:s}=o;let{value:l}=o;const d=l.length;return d===0?boolbase$1.falseFunc:shouldIgnoreCase(o,n)?(l=l.toLowerCase(),m=>{const _=r.getAttributeValue(m,s);return _!=null&&_.length>=d&&_.substr(0,d).toLowerCase()===l&&t(m)}):m=>{var _;return!!(!((_=r.getAttributeValue(m,s))===null||_===void 0)&&_.startsWith(l))&&t(m)}},end(t,o,n){const{adapter:r}=n,{name:s}=o;let{value:l}=o;const d=-l.length;return d===0?boolbase$1.falseFunc:shouldIgnoreCase(o,n)?(l=l.toLowerCase(),m=>{var _;return((_=r.getAttributeValue(m,s))===null||_===void 0?void 0:_.substr(d).toLowerCase())===l&&t(m)}):m=>{var _;return!!(!((_=r.getAttributeValue(m,s))===null||_===void 0)&&_.endsWith(l))&&t(m)}},any(t,o,n){const{adapter:r}=n,{name:s,value:l}=o;if(l==="")return boolbase$1.falseFunc;if(shouldIgnoreCase(o,n)){const d=new RegExp(escapeRegex$1(l),"i");return function(_){const g=r.getAttributeValue(_,s);return g!=null&&g.length>=l.length&&d.test(g)&&t(_)}}return d=>{var m;return!!(!((m=r.getAttributeValue(d,s))===null||m===void 0)&&m.includes(l))&&t(d)}},not(t,o,n){const{adapter:r}=n,{name:s}=o;let{value:l}=o;return l===""?d=>!!r.getAttributeValue(d,s)&&t(d):shouldIgnoreCase(o,n)?(l=l.toLowerCase(),d=>{const m=r.getAttributeValue(d,s);return(m==null||m.length!==l.length||m.toLowerCase()!==l)&&t(d)}):d=>r.getAttributeValue(d,s)!==l&&t(d)}},whitespace=new Set([9,10,12,13,32]),ZERO$1="0".charCodeAt(0),NINE="9".charCodeAt(0);function parse$6(t){if(t=t.trim().toLowerCase(),t==="even")return[2,0];if(t==="odd")return[2,1];let o=0,n=0,r=l(),s=d();if(o=ZERO$1&&t.charCodeAt(o)<=NINE;)g=g*10+(t.charCodeAt(o)-ZERO$1),o++;return o===_?null:g}function m(){for(;ol<=n;if(o===0)return l=>l===n;if(o===1)return n<0?boolbase$1.trueFunc:l=>l>=n;const r=Math.abs(o),s=(n%r+r)%r;return o>1?l=>l>=n&&l%r===s:l=>l<=n&&l%r===s}function nthCheck(t){return compile(parse$6(t))}function getChildFunc(t,o){return n=>{const r=o.getParent(n);return r!=null&&o.isTag(r)&&t(n)}}const filters={contains(t,o,{adapter:n}){return function(s){return t(s)&&n.getText(s).includes(o)}},icontains(t,o,{adapter:n}){const r=o.toLowerCase();return function(l){return t(l)&&n.getText(l).toLowerCase().includes(r)}},"nth-child"(t,o,{adapter:n,equals:r}){const s=nthCheck(o);return s===boolbase$1.falseFunc?boolbase$1.falseFunc:s===boolbase$1.trueFunc?getChildFunc(t,n):function(d){const m=n.getSiblings(d);let _=0;for(let g=0;g=0&&!r(d,m[g]);g--)n.isTag(m[g])&&_++;return s(_)&&t(d)}},"nth-of-type"(t,o,{adapter:n,equals:r}){const s=nthCheck(o);return s===boolbase$1.falseFunc?boolbase$1.falseFunc:s===boolbase$1.trueFunc?getChildFunc(t,n):function(d){const m=n.getSiblings(d);let _=0;for(let g=0;g=0;g--){const v=m[g];if(r(d,v))break;n.isTag(v)&&n.getName(v)===n.getName(d)&&_++}return s(_)&&t(d)}},root(t,o,{adapter:n}){return r=>{const s=n.getParent(r);return(s==null||!n.isTag(s))&&t(r)}},scope(t,o,n,r){const{equals:s}=n;return!r||r.length===0?filters.root(t,o,n):r.length===1?l=>s(r[0],l)&&t(l):l=>r.includes(l)&&t(l)},hover:dynamicStatePseudo("isHovered"),visited:dynamicStatePseudo("isVisited"),active:dynamicStatePseudo("isActive")};function dynamicStatePseudo(t){return function(n,r,{adapter:s}){const l=s[t];return typeof l!="function"?boolbase$1.falseFunc:function(m){return l(m)&&n(m)}}}const pseudos={empty(t,{adapter:o}){return!o.getChildren(t).some(n=>o.isTag(n)||o.getText(n)!=="")},"first-child"(t,{adapter:o,equals:n}){if(o.prevElementSibling)return o.prevElementSibling(t)==null;const r=o.getSiblings(t).find(s=>o.isTag(s));return r!=null&&n(t,r)},"last-child"(t,{adapter:o,equals:n}){const r=o.getSiblings(t);for(let s=r.length-1;s>=0;s--){if(n(t,r[s]))return!0;if(o.isTag(r[s]))break}return!1},"first-of-type"(t,{adapter:o,equals:n}){const r=o.getSiblings(t),s=o.getName(t);for(let l=0;l=0;l--){const d=r[l];if(n(t,d))return!0;if(o.isTag(d)&&o.getName(d)===s)break}return!1},"only-of-type"(t,{adapter:o,equals:n}){const r=o.getName(t);return o.getSiblings(t).every(s=>n(t,s)||!o.isTag(s)||o.getName(s)!==r)},"only-child"(t,{adapter:o,equals:n}){return o.getSiblings(t).every(r=>n(t,r)||!o.isTag(r))}};function verifyPseudoArgs(t,o,n,r){if(n===null){if(t.length>r)throw new Error(`Pseudo-class :${o} requires an argument`)}else if(t.length===r)throw new Error(`Pseudo-class :${o} doesn't have any arguments`)}const aliases$1={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
+ :is(button, input, select, textarea, optgroup, option)[disabled],
+ optgroup[disabled] > option,
+ fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
+ )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},PLACEHOLDER_ELEMENT={};function ensureIsTag(t,o){return t===boolbase$1.falseFunc?boolbase$1.falseFunc:n=>o.isTag(n)&&t(n)}function getNextSiblings(t,o){const n=o.getSiblings(t);if(n.length<=1)return[];const r=n.indexOf(t);return r<0||r===n.length-1?[]:n.slice(r+1).filter(o.isTag)}function copyOptions(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}const is$2=(t,o,n,r,s)=>{const l=s(o,copyOptions(n),r);return l===boolbase$1.trueFunc?t:l===boolbase$1.falseFunc?boolbase$1.falseFunc:d=>l(d)&&t(d)},subselects={is:is$2,matches:is$2,where:is$2,not(t,o,n,r,s){const l=s(o,copyOptions(n),r);return l===boolbase$1.falseFunc?t:l===boolbase$1.trueFunc?boolbase$1.falseFunc:d=>!l(d)&&t(d)},has(t,o,n,r,s){const{adapter:l}=n,d=copyOptions(n);d.relativeSelector=!0;const m=o.some(v=>v.some(isTraversal))?[PLACEHOLDER_ELEMENT]:void 0,_=s(o,d,m);if(_===boolbase$1.falseFunc)return boolbase$1.falseFunc;const g=ensureIsTag(_,l);if(m&&_!==boolbase$1.trueFunc){const{shouldTestNextSiblings:v=!1}=_;return y=>{if(!t(y))return!1;m[0]=y;const w=l.getChildren(y),B=v?[...w,...getNextSiblings(y,l)]:w;return l.existsOne(g,B)}}return v=>t(v)&&l.existsOne(g,l.getChildren(v))}};function compilePseudoSelector(t,o,n,r,s){var l;const{name:d,data:m}=o;if(Array.isArray(m)){if(!(d in subselects))throw new Error(`Unknown pseudo-class :${d}(${m})`);return subselects[d](t,m,n,r,s)}const _=(l=n.pseudos)===null||l===void 0?void 0:l[d],g=typeof _=="string"?_:aliases$1[d];if(typeof g=="string"){if(m!=null)throw new Error(`Pseudo ${d} doesn't have any arguments`);const v=parse$7(g);return subselects.is(t,v,n,r,s)}if(typeof _=="function")return verifyPseudoArgs(_,d,m,1),v=>_(v,m)&&t(v);if(d in filters)return filters[d](t,m,n,r);if(d in pseudos){const v=pseudos[d];return verifyPseudoArgs(v,d,m,2),y=>v(y,n,m)&&t(y)}throw new Error(`Unknown pseudo-class :${d}`)}function getElementParent(t,o){const n=o.getParent(t);return n&&o.isTag(n)?n:null}function compileGeneralSelector(t,o,n,r,s){const{adapter:l,equals:d}=n;switch(o.type){case SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case SelectorType.Attribute:{if(o.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!n.xmlMode||n.lowerCaseAttributeNames)&&(o.name=o.name.toLowerCase()),attributeRules[o.action](t,o,n)}case SelectorType.Pseudo:return compilePseudoSelector(t,o,n,r,s);case SelectorType.Tag:{if(o.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:m}=o;return(!n.xmlMode||n.lowerCaseTags)&&(m=m.toLowerCase()),function(g){return l.getName(g)===m&&t(g)}}case SelectorType.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(g){let v=g;for(;v=getElementParent(v,l);)if(t(v))return!0;return!1};const m=new WeakSet;return function(g){let v=g;for(;v=getElementParent(v,l);)if(!m.has(v)){if(l.isTag(v)&&t(v))return!0;m.add(v)}return!1}}case"_flexibleDescendant":return function(_){let g=_;do if(t(g))return!0;while(g=getElementParent(g,l));return!1};case SelectorType.Parent:return function(_){return l.getChildren(_).some(g=>l.isTag(g)&&t(g))};case SelectorType.Child:return function(_){const g=l.getParent(_);return g!=null&&l.isTag(g)&&t(g)};case SelectorType.Sibling:return function(_){const g=l.getSiblings(_);for(let v=0;vo.some(includesScopePseudo)))}const DESCENDANT_TOKEN={type:SelectorType.Descendant},FLEXIBLE_DESCENDANT_TOKEN={type:"_flexibleDescendant"},SCOPE_TOKEN={type:SelectorType.Pseudo,name:"scope",data:null};function absolutize(t,{adapter:o},n){const r=!!(n!=null&&n.every(s=>{const l=o.isTag(s)&&o.getParent(s);return s===PLACEHOLDER_ELEMENT||l&&o.isTag(l)}));for(const s of t){if(!(s.length>0&&isTraversal(s[0])&&s[0].type!==SelectorType.Descendant))if(r&&!s.some(includesScopePseudo))s.unshift(DESCENDANT_TOKEN);else continue;s.unshift(SCOPE_TOKEN)}}function compileToken(t,o,n){var r;t.forEach(sortByProcedure),n=(r=o.context)!==null&&r!==void 0?r:n;const s=Array.isArray(n),l=n&&(Array.isArray(n)?n:[n]);if(o.relativeSelector!==!1)absolutize(t,o,l);else if(t.some(_=>_.length>0&&isTraversal(_[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let d=!1;const m=t.map(_=>{if(_.length>=2){const[g,v]=_;g.type!==SelectorType.Pseudo||g.name!=="scope"||(s&&v.type===SelectorType.Descendant?_[1]=FLEXIBLE_DESCENDANT_TOKEN:(v.type===SelectorType.Adjacent||v.type===SelectorType.Sibling)&&(d=!0))}return compileRules(_,o,l)}).reduce(reduceRules,boolbase$1.falseFunc);return m.shouldTestNextSiblings=d,m}function compileRules(t,o,n){var r;return t.reduce((s,l)=>s===boolbase$1.falseFunc?boolbase$1.falseFunc:compileGeneralSelector(s,l,o,n,compileToken),(r=o.rootFunc)!==null&&r!==void 0?r:boolbase$1.trueFunc)}function reduceRules(t,o){return o===boolbase$1.falseFunc||t===boolbase$1.trueFunc?t:t===boolbase$1.falseFunc||o===boolbase$1.trueFunc?o:function(r){return t(r)||o(r)}}const defaultEquals=(t,o)=>t===o,defaultOptions$3={adapter:DomUtils,equals:defaultEquals};function convertOptionFormats(t){var o,n,r,s;const l=t??defaultOptions$3;return(o=l.adapter)!==null&&o!==void 0||(l.adapter=DomUtils),(n=l.equals)!==null&&n!==void 0||(l.equals=(s=(r=l.adapter)===null||r===void 0?void 0:r.equals)!==null&&s!==void 0?s:defaultEquals),l}function wrapCompile(t){return function(n,r,s){const l=convertOptionFormats(r);return t(n,l,s)}}const _compileToken=wrapCompile(compileToken);function prepareContext(t,o,n=!1){return n&&(t=appendNextSiblings(t,o)),Array.isArray(t)?o.removeSubsets(t):o.getChildren(t)}function appendNextSiblings(t,o){const n=Array.isArray(t)?t.slice(0):[t],r=n.length;for(let s=0;so.some(isFilter)):!1}function getLimit(t,o,n){const r=o!=null?parseInt(o,10):NaN;switch(t){case"first":return 1;case"nth":case"eq":return isFinite(r)?r>=0?r+1:1/0:0;case"lt":return isFinite(r)?r>=0?Math.min(r,n):1/0:0;case"gt":return isFinite(r)?1/0:0;case"odd":return 2*n;case"even":return 2*n-1;case"last":case"not":return 1/0}}function getDocumentRoot(t){for(;t.parent;)t=t.parent;return t}function groupSelectors(t){const o=[],n=[];for(const r of t)r.some(isFilter)?o.push(r):n.push(r);return[n,o]}const UNIVERSAL_SELECTOR={type:SelectorType.Universal,namespace:null},SCOPE_PSEUDO={type:SelectorType.Pseudo,name:"scope",data:null};function is$1(t,o,n={}){return some$1([t],o,n)}function some$1(t,o,n={}){if(typeof o=="function")return t.some(o);const[r,s]=groupSelectors(parse$7(o));return r.length>0&&t.some(_compileToken(r,n))||s.some(l=>filterBySelector(l,t,n).length>0)}function filterByPosition(t,o,n,r){const s=typeof n=="string"?parseInt(n,10):NaN;switch(t){case"first":case"lt":return o;case"last":return o.length>0?[o[o.length-1]]:o;case"nth":case"eq":return isFinite(s)&&Math.abs(s)d%2===0);case"odd":return o.filter((l,d)=>d%2===1);case"not":{const l=new Set(filterParsed(n,o,r));return o.filter(d=>!l.has(d))}}}function filter$1(t,o,n={}){return filterParsed(parse$7(t),o,n)}function filterParsed(t,o,n){if(o.length===0)return[];const[r,s]=groupSelectors(t);let l;if(r.length){const d=filterElements(o,r,n);if(s.length===0)return d;d.length&&(l=new Set(d))}for(let d=0;disTag(v)&&!l.has(v)):o).length===0)break;const g=filterBySelector(m,o,n);if(g.length)if(l)g.forEach(v=>l.add(v));else{if(d===s.length-1)return g;l=new Set(g)}}return typeof l<"u"?l.size===o.length?o:o.filter(d=>l.has(d)):[]}function filterBySelector(t,o,n){var r;if(t.some(isTraversal$1)){const s=(r=n.root)!==null&&r!==void 0?r:getDocumentRoot(o[0]),l={...n,context:o,relativeSelector:!1};return t.push(SCOPE_PSEUDO),findFilterElements(s,t,l,!0,o.length)}return findFilterElements(o,t,n,!1,o.length)}function select(t,o,n={},r=1/0){if(typeof t=="function")return find$3(o,t);const[s,l]=groupSelectors(parse$7(t)),d=l.map(m=>findFilterElements(o,m,n,!0,r));return s.length&&d.push(findElements(o,s,n,r)),d.length===0?[]:d.length===1?d[0]:uniqueSort(d.reduce((m,_)=>[...m,..._]))}function findFilterElements(t,o,n,r,s){const l=o.findIndex(isFilter),d=o.slice(0,l),m=o[l],_=o.length-1===l?s:1/0,g=getLimit(m.name,m.data,_);if(g===0)return[];const y=(d.length===0&&!Array.isArray(t)?getChildren(t).filter(isTag):d.length===0?(Array.isArray(t)?t:[t]).filter(isTag):r||d.some(isTraversal$1)?findElements(t,[d],n,g):filterElements(t,[d],n)).slice(0,g);let w=filterByPosition(m.name,y,m.data,n);if(w.length===0||o.length===l+1)return w;const B=o.slice(l+1),k=B.some(isTraversal$1);if(k){if(isTraversal$1(B[0])){const{type:N}=B[0];(N===SelectorType.Sibling||N===SelectorType.Adjacent)&&(w=prepareContext(w,DomUtils,!0)),B.unshift(UNIVERSAL_SELECTOR)}n={...n,relativeSelector:!1,rootFunc:N=>w.includes(N)}}else n.rootFunc&&n.rootFunc!==boolbase.trueFunc&&(n={...n,rootFunc:boolbase.trueFunc});return B.some(isFilter)?findFilterElements(w,B,n,!1,s):k?findElements(w,[B],n,s):filterElements(w,[B],n)}function findElements(t,o,n,r){const s=_compileToken(o,n,t);return find$3(t,s,r)}function find$3(t,o,n=1/0){const r=prepareContext(t,DomUtils,o.shouldTestNextSiblings);return find$4(s=>isTag(s)&&o(s),r,!0,n)}function filterElements(t,o,n){const r=(Array.isArray(t)?t:[t]).filter(isTag);if(r.length===0)return r;const s=_compileToken(o,n);return s===boolbase.trueFunc?r:r.filter(s)}const reSiblingSelector=/^\s*[~+]/;function find$2(t){var o;if(!t)return this._make([]);const n=this.toArray();if(typeof t!="string"){const l=isCheerio(t)?t.toArray():[t];return this._make(l.filter(d=>n.some(m=>contains$2(m,d))))}const r=reSiblingSelector.test(t)?n:this.children().toArray(),s={context:n,root:(o=this._root)===null||o===void 0?void 0:o[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(select(t,r,s))}function _getMatcher(t){return function(o,...n){return function(r){var s;let l=t(o,this);return r&&(l=filterArray(l,r,this.options.xmlMode,(s=this._root)===null||s===void 0?void 0:s[0])),this._make(this.length>1&&l.length>1?n.reduce((d,m)=>m(d),l):l)}}}const _matcher=_getMatcher((t,o)=>{const n=[];for(let r=0;r{const n=[];for(let r=0;r{const d=[];return domEach(l,m=>{for(let _;(_=s(m))&&!(n!=null&&n(_,d.length));m=_)d.push(_)}),d})(t,...o);return function(s,l){n=typeof s=="string"?m=>is$1(m,s,this.options):s?getFilterFn(s):null;const d=r.call(this,l);return n=null,d}}function _removeDuplicates(t){return Array.from(new Set(t))}const parent=_singleMatcher(({parent:t})=>t&&!isDocument(t)?t:null,_removeDuplicates),parents=_matcher(t=>{const o=[];for(;t.parent&&!isDocument(t.parent);)o.push(t.parent),t=t.parent;return o},uniqueSort,t=>t.reverse()),parentsUntil=_matchUntil(({parent:t})=>t&&!isDocument(t)?t:null,uniqueSort,t=>t.reverse());function closest$1(t){var o;const n=[];if(!t)return this._make(n);const r={xmlMode:this.options.xmlMode,root:(o=this._root)===null||o===void 0?void 0:o[0]},s=typeof t=="string"?l=>is$1(l,t,r):getFilterFn(t);return domEach(this,l=>{for(;l&&isTag(l);){if(s(l,0)){n.includes(l)||n.push(l);break}l=l.parent}}),this._make(n)}const next=_singleMatcher(t=>nextElementSibling(t)),nextAll=_matcher(t=>{const o=[];for(;t.next;)t=t.next,isTag(t)&&o.push(t);return o},_removeDuplicates),nextUntil=_matchUntil(t=>nextElementSibling(t),_removeDuplicates),prev=_singleMatcher(t=>prevElementSibling(t)),prevAll=_matcher(t=>{const o=[];for(;t.prev;)t=t.prev,isTag(t)&&o.push(t);return o},_removeDuplicates),prevUntil=_matchUntil(t=>prevElementSibling(t),_removeDuplicates),siblings=_matcher(t=>getSiblings(t).filter(o=>isTag(o)&&o!==t),uniqueSort),children=_matcher(t=>getChildren(t).filter(isTag),_removeDuplicates);function contents(){const t=this.toArray().reduce((o,n)=>hasChildren(n)?o.concat(n.children):o,[]);return this._make(t)}function each(t){let o=0;const n=this.length;for(;ot.call(o,n,o):isCheerio(t)?o=>Array.prototype.includes.call(t,o):function(o){return t===o}}function filter(t){var o;return this._make(filterArray(this.toArray(),t,this.options.xmlMode,(o=this._root)===null||o===void 0?void 0:o[0]))}function filterArray(t,o,n,r){return typeof o=="string"?filter$1(o,t,{xmlMode:n,root:r}):t.filter(getFilterFn(o))}function is(t){const o=this.toArray();return typeof t=="string"?some$1(o.filter(isTag),t,this.options):t?o.some(getFilterFn(t)):!1}function not(t){let o=this.toArray();if(typeof t=="string"){const n=new Set(filter$1(t,o,this.options));o=o.filter(r=>!n.has(r))}else{const n=getFilterFn(t);o=o.filter((r,s)=>!n(r,s))}return this._make(o)}function has(t){return this.filter(typeof t=="string"?`:has(${t})`:(o,n)=>this._make(n).find(t).length>0)}function first(){return this.length>1?this._make(this[0]):this}function last(){return this.length>0?this._make(this[this.length-1]):this}function eq$4(t){var o;return t=+t,t===0&&this.length<=1?this:(t<0&&(t=this.length+t),this._make((o=this[t])!==null&&o!==void 0?o:[]))}function get$3(t){return t==null?this.toArray():this[t<0?this.length+t:t]}function toArray$2(){return Array.prototype.slice.call(this)}function index$3(t){let o,n;return t==null?(o=this.parent().children(),n=this[0]):typeof t=="string"?(o=this._make(t),n=this[0]):(o=this,n=isCheerio(t)?t[0]:t),Array.prototype.indexOf.call(o,n)}function slice(t,o){return this._make(Array.prototype.slice.call(this,t,o))}function end(){var t;return(t=this.prevObject)!==null&&t!==void 0?t:this._make([])}function add$2(t,o){const n=this._make(t,o),r=uniqueSort([...this.get(),...n.get()]);return this._make(r)}function addBack(t){return this.prevObject?this.add(t?this.prevObject.filter(t):this.prevObject):this}const Traversing=Object.freeze(Object.defineProperty({__proto__:null,add:add$2,addBack,children,closest:closest$1,contents,each,end,eq:eq$4,filter,filterArray,find:find$2,first,get:get$3,has,index:index$3,is,last,map:map$2,next,nextAll,nextUntil,not,parent,parents,parentsUntil,prev,prevAll,prevUntil,siblings,slice,toArray:toArray$2},Symbol.toStringTag,{value:"Module"}));function getParse(t){return function(n,r,s,l){if(typeof Buffer<"u"&&Buffer.isBuffer(n)&&(n=n.toString()),typeof n=="string")return t(n,r,s,l);const d=n;if(!Array.isArray(d)&&isDocument(d))return d;const m=new Document([]);return update(d,m),m}}function update(t,o){const n=Array.isArray(t)?t:[t];o?o.children=n:o=null;for(let r=0;rn.concat(this._makeDomArray(r,o)),[]):typeof t=="string"?this._parse(t,this.options,!1,null).children:o?cloneDom([t]):[t]}function _insert(t){return function(...o){const n=this.length-1;return domEach(this,(r,s)=>{if(!hasChildren(r))return;const l=typeof o[0]=="function"?o[0].call(r,s,this._render(r.children)):o,d=this._makeDomArray(l,s=t.length?null:t[o+n];for(let v=0;v-1&&(w.children.splice(k,1),s===w&&o>k&&m[0]--)}y.parent=s,y.prev&&(y.prev.next=(l=y.next)!==null&&l!==void 0?l:null),y.next&&(y.next.prev=(d=y.prev)!==null&&d!==void 0?d:null),y.prev=v===0?_:r[v-1],y.next=v===r.length-1?g:r[v+1]}return _&&(_.next=r[0]),g&&(g.prev=r[r.length-1]),t.splice(...m)}function appendTo(t){return(isCheerio(t)?t:this._make(t)).append(this),this}function prependTo(t){return(isCheerio(t)?t:this._make(t)).prepend(this),this}const append=_insert((t,o,n)=>{uniqueSplice(o,o.length,0,t,n)}),prepend=_insert((t,o,n)=>{uniqueSplice(o,0,0,t,n)});function _wrap(t){return function(o){const n=this.length-1,r=this.parents().last();for(let s=0;s{const{parent:r}=t;if(!r)return;const s=r.children,l=s.indexOf(t);update([t],o),uniqueSplice(s,l,0,n,r)}),wrapInner=_wrap((t,o,n)=>{hasChildren(t)&&(update(t.children,o),update(n,t))});function unwrap(t){return this.parent(t).not("body").each((o,n)=>{this._make(n).replaceWith(n.children)}),this}function wrapAll(t){const o=this[0];if(o){const n=this._make(typeof t=="function"?t.call(o,0,o):t).insertBefore(o);let r;for(let l=0;l{const{parent:s}=n;if(!hasChildren(n)||!s)return;const l=s.children,d=l.indexOf(n);if(d<0)return;const m=typeof t[0]=="function"?t[0].call(n,r,this._render(n.children)):t,_=this._makeDomArray(m,r{const r=this.clone().toArray(),{parent:s}=n;if(!s)return;const l=s.children,d=l.indexOf(n);d<0||(uniqueSplice(l,d+1,0,r,s),o.push(...r))}),this._make(o)}function before(...t){const o=this.length-1;return domEach(this,(n,r)=>{const{parent:s}=n;if(!hasChildren(n)||!s)return;const l=s.children,d=l.indexOf(n);if(d<0)return;const m=typeof t[0]=="function"?t[0].call(n,r,this._render(n.children)):t,_=this._makeDomArray(m,r{const s=this.clone().toArray(),{parent:l}=r;if(!l)return;const d=l.children,m=d.indexOf(r);m<0||(uniqueSplice(d,m,0,s,l),n.push(...s))}),this._make(n)}function remove(t){const o=t?this.filter(t):this;return domEach(o,n=>{removeElement$1(n),n.prev=n.next=n.parent=null}),this}function replaceWith(t){return domEach(this,(o,n)=>{const{parent:r}=o;if(!r)return;const s=r.children,l=typeof t=="function"?t.call(o,n,o):t,d=this._makeDomArray(l);update(d,null);const m=s.indexOf(o);uniqueSplice(s,m,1,d,r),d.includes(o)||(o.parent=o.prev=o.next=null)})}function empty(){return domEach(this,t=>{hasChildren(t)&&(t.children.forEach(o=>{o.next=o.prev=o.parent=null}),t.children.length=0)})}function html(t){if(t===void 0){const o=this[0];return!o||!hasChildren(o)?null:this._render(o.children)}return domEach(this,o=>{if(!hasChildren(o))return;o.children.forEach(r=>{r.next=r.prev=r.parent=null});const n=isCheerio(t)?t.toArray():this._parse(`${t}`,this.options,!1,o).children;update(n,o)})}function toString$3(){return this._render(this)}function text(t){return t===void 0?text$1(this):typeof t=="function"?domEach(this,(o,n)=>this._make(o).text(t.call(o,n,text$1([o])))):domEach(this,o=>{if(!hasChildren(o))return;o.children.forEach(r=>{r.next=r.prev=r.parent=null});const n=new Text(`${t}`);update(n,o)})}function clone$2(){return this._make(cloneDom(this.get()))}const Manipulation=Object.freeze(Object.defineProperty({__proto__:null,_makeDomArray,after,append,appendTo,before,clone:clone$2,empty,html,insertAfter,insertBefore,prepend,prependTo,remove,replaceWith,text,toString:toString$3,unwrap,wrap,wrapAll,wrapInner},Symbol.toStringTag,{value:"Module"}));function css$1(t,o){if(t!=null&&o!=null||typeof t=="object"&&!Array.isArray(t))return domEach(this,(n,r)=>{isTag(n)&&setCss(n,t,o,r)});if(this.length!==0)return getCss(this[0],t)}function setCss(t,o,n,r){if(typeof o=="string"){const s=getCss(t),l=typeof n=="function"?n.call(t,r,s[o]):n;l===""?delete s[o]:l!=null&&(s[o]=l),t.attribs.style=stringify(s)}else typeof o=="object"&&Object.keys(o).forEach((s,l)=>{setCss(t,s,o[s],l)})}function getCss(t,o){if(!t||!isTag(t))return;const n=parse$5(t.attribs.style);if(typeof o=="string")return n[o];if(Array.isArray(o)){const r={};return o.forEach(s=>{n[s]!=null&&(r[s]=n[s])}),r}return n}function stringify(t){return Object.keys(t).reduce((o,n)=>`${o}${o?" ":""}${n}: ${t[n]};`,"")}function parse$5(t){if(t=(t||"").trim(),!t)return{};const o={};let n;for(const r of t.split(";")){const s=r.indexOf(":");if(s<1||s===r.length-1){const l=r.trimEnd();l.length>0&&n!==void 0&&(o[n]+=`;${l}`)}else n=r.slice(0,s).trim(),o[n]=r.slice(s+1).trim()}return o}const Css=Object.freeze(Object.defineProperty({__proto__:null,css:css$1},Symbol.toStringTag,{value:"Module"})),submittableSelector="input,select,textarea,keygen",r20=/%20/g,rCRLF=/\r?\n/g;function serialize(){return this.serializeArray().map(n=>`${encodeURIComponent(n.name)}=${encodeURIComponent(n.value)}`).join("&").replace(r20,"+")}function serializeArray(){return this.map((t,o)=>{const n=this._make(o);return isTag(o)&&o.name==="form"?n.find(submittableSelector).toArray():n.filter(submittableSelector).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((t,o)=>{var n;const r=this._make(o),s=r.attr("name"),l=(n=r.val())!==null&&n!==void 0?n:"";return Array.isArray(l)?l.map(d=>({name:s,value:d.replace(rCRLF,`\r
+`)})):{name:s,value:l.replace(rCRLF,`\r
+`)}}).toArray()}const Forms=Object.freeze(Object.defineProperty({__proto__:null,serialize,serializeArray},Symbol.toStringTag,{value:"Module"}));class Cheerio{constructor(o,n,r){if(this.length=0,this.options=r,this._root=n,o){for(let s=0;s=55296&&t<=57343}function isSurrogatePair(t){return t>=56320&&t<=57343}function getSurrogatePairCodePoint(t,o){return(t-55296)*1024+9216+o}function isControlCodePoint(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function isUndefinedCodePoint(t){return t>=64976&&t<=65007||UNDEFINED_CODE_POINTS.has(t)}var ERR;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",t.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",t.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",t.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",t.missingDoctypePublicIdentifier="missing-doctype-public-identifier",t.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",t.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",t.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",t.cdataInHtmlContent="cdata-in-html-content",t.incorrectlyOpenedComment="incorrectly-opened-comment",t.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",t.eofInDoctype="eof-in-doctype",t.nestedComment="nested-comment",t.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",t.eofInComment="eof-in-comment",t.incorrectlyClosedComment="incorrectly-closed-comment",t.eofInCdata="eof-in-cdata",t.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",t.nullCharacterReference="null-character-reference",t.surrogateCharacterReference="surrogate-character-reference",t.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",t.controlCharacterReference="control-character-reference",t.noncharacterCharacterReference="noncharacter-character-reference",t.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",t.missingDoctypeName="missing-doctype-name",t.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",t.duplicateAttribute="duplicate-attribute",t.nonConformingDoctype="non-conforming-doctype",t.missingDoctype="missing-doctype",t.misplacedDoctype="misplaced-doctype",t.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",t.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",t.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",t.openElementsLeftAfterEof="open-elements-left-after-eof",t.abandonedHeadElementChild="abandoned-head-element-child",t.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",t.nestedNoscriptInHead="nested-noscript-in-head",t.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ERR=ERR||(ERR={}));const DEFAULT_BUFFER_WATERLINE=65536;class Preprocessor{constructor(o){this.handler=o,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=DEFAULT_BUFFER_WATERLINE,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(o){const{line:n,col:r,offset:s}=this;return{code:o,startLine:n,endLine:n,startCol:r,endCol:r,startOffset:s,endOffset:s}}_err(o){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(o)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(o){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(isSurrogatePair(n))return this.pos++,this._addGap(),getSurrogatePairCodePoint(o,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,CODE_POINTS.EOF;return this._err(ERR.surrogateInInputStream),o}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(o,n){this.html.length>0?this.html+=o:this.html=o,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(o){this.html=this.html.substring(0,this.pos+1)+o+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(o,n){if(this.pos+o.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(o,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,CODE_POINTS.EOF;const r=this.html.charCodeAt(n);return r===CODE_POINTS.CARRIAGE_RETURN?CODE_POINTS.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,CODE_POINTS.EOF;let o=this.html.charCodeAt(this.pos);return o===CODE_POINTS.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,CODE_POINTS.LINE_FEED):o===CODE_POINTS.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,isSurrogate(o)&&(o=this._processSurrogate(o)),this.handler.onParseError===null||o>31&&o<127||o===CODE_POINTS.LINE_FEED||o===CODE_POINTS.CARRIAGE_RETURN||o>159&&o<64976||this._checkForProblematicCharacters(o),o)}_checkForProblematicCharacters(o){isControlCodePoint(o)?this._err(ERR.controlCharacterInInputStream):isUndefinedCodePoint(o)&&this._err(ERR.noncharacterInInputStream)}retreat(o){for(this.pos-=o;this.pos=0;n--)if(t.attrs[n].name===o)return t.attrs[n].value;return null}var NS$1;(function(t){t.HTML="http://www.w3.org/1999/xhtml",t.MATHML="http://www.w3.org/1998/Math/MathML",t.SVG="http://www.w3.org/2000/svg",t.XLINK="http://www.w3.org/1999/xlink",t.XML="http://www.w3.org/XML/1998/namespace",t.XMLNS="http://www.w3.org/2000/xmlns/"})(NS$1=NS$1||(NS$1={}));var ATTRS;(function(t){t.TYPE="type",t.ACTION="action",t.ENCODING="encoding",t.PROMPT="prompt",t.NAME="name",t.COLOR="color",t.FACE="face",t.SIZE="size"})(ATTRS=ATTRS||(ATTRS={}));var DOCUMENT_MODE;(function(t){t.NO_QUIRKS="no-quirks",t.QUIRKS="quirks",t.LIMITED_QUIRKS="limited-quirks"})(DOCUMENT_MODE=DOCUMENT_MODE||(DOCUMENT_MODE={}));var TAG_NAMES;(function(t){t.A="a",t.ADDRESS="address",t.ANNOTATION_XML="annotation-xml",t.APPLET="applet",t.AREA="area",t.ARTICLE="article",t.ASIDE="aside",t.B="b",t.BASE="base",t.BASEFONT="basefont",t.BGSOUND="bgsound",t.BIG="big",t.BLOCKQUOTE="blockquote",t.BODY="body",t.BR="br",t.BUTTON="button",t.CAPTION="caption",t.CENTER="center",t.CODE="code",t.COL="col",t.COLGROUP="colgroup",t.DD="dd",t.DESC="desc",t.DETAILS="details",t.DIALOG="dialog",t.DIR="dir",t.DIV="div",t.DL="dl",t.DT="dt",t.EM="em",t.EMBED="embed",t.FIELDSET="fieldset",t.FIGCAPTION="figcaption",t.FIGURE="figure",t.FONT="font",t.FOOTER="footer",t.FOREIGN_OBJECT="foreignObject",t.FORM="form",t.FRAME="frame",t.FRAMESET="frameset",t.H1="h1",t.H2="h2",t.H3="h3",t.H4="h4",t.H5="h5",t.H6="h6",t.HEAD="head",t.HEADER="header",t.HGROUP="hgroup",t.HR="hr",t.HTML="html",t.I="i",t.IMG="img",t.IMAGE="image",t.INPUT="input",t.IFRAME="iframe",t.KEYGEN="keygen",t.LABEL="label",t.LI="li",t.LINK="link",t.LISTING="listing",t.MAIN="main",t.MALIGNMARK="malignmark",t.MARQUEE="marquee",t.MATH="math",t.MENU="menu",t.META="meta",t.MGLYPH="mglyph",t.MI="mi",t.MO="mo",t.MN="mn",t.MS="ms",t.MTEXT="mtext",t.NAV="nav",t.NOBR="nobr",t.NOFRAMES="noframes",t.NOEMBED="noembed",t.NOSCRIPT="noscript",t.OBJECT="object",t.OL="ol",t.OPTGROUP="optgroup",t.OPTION="option",t.P="p",t.PARAM="param",t.PLAINTEXT="plaintext",t.PRE="pre",t.RB="rb",t.RP="rp",t.RT="rt",t.RTC="rtc",t.RUBY="ruby",t.S="s",t.SCRIPT="script",t.SECTION="section",t.SELECT="select",t.SOURCE="source",t.SMALL="small",t.SPAN="span",t.STRIKE="strike",t.STRONG="strong",t.STYLE="style",t.SUB="sub",t.SUMMARY="summary",t.SUP="sup",t.TABLE="table",t.TBODY="tbody",t.TEMPLATE="template",t.TEXTAREA="textarea",t.TFOOT="tfoot",t.TD="td",t.TH="th",t.THEAD="thead",t.TITLE="title",t.TR="tr",t.TRACK="track",t.TT="tt",t.U="u",t.UL="ul",t.SVG="svg",t.VAR="var",t.WBR="wbr",t.XMP="xmp"})(TAG_NAMES=TAG_NAMES||(TAG_NAMES={}));var TAG_ID;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.A=1]="A",t[t.ADDRESS=2]="ADDRESS",t[t.ANNOTATION_XML=3]="ANNOTATION_XML",t[t.APPLET=4]="APPLET",t[t.AREA=5]="AREA",t[t.ARTICLE=6]="ARTICLE",t[t.ASIDE=7]="ASIDE",t[t.B=8]="B",t[t.BASE=9]="BASE",t[t.BASEFONT=10]="BASEFONT",t[t.BGSOUND=11]="BGSOUND",t[t.BIG=12]="BIG",t[t.BLOCKQUOTE=13]="BLOCKQUOTE",t[t.BODY=14]="BODY",t[t.BR=15]="BR",t[t.BUTTON=16]="BUTTON",t[t.CAPTION=17]="CAPTION",t[t.CENTER=18]="CENTER",t[t.CODE=19]="CODE",t[t.COL=20]="COL",t[t.COLGROUP=21]="COLGROUP",t[t.DD=22]="DD",t[t.DESC=23]="DESC",t[t.DETAILS=24]="DETAILS",t[t.DIALOG=25]="DIALOG",t[t.DIR=26]="DIR",t[t.DIV=27]="DIV",t[t.DL=28]="DL",t[t.DT=29]="DT",t[t.EM=30]="EM",t[t.EMBED=31]="EMBED",t[t.FIELDSET=32]="FIELDSET",t[t.FIGCAPTION=33]="FIGCAPTION",t[t.FIGURE=34]="FIGURE",t[t.FONT=35]="FONT",t[t.FOOTER=36]="FOOTER",t[t.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",t[t.FORM=38]="FORM",t[t.FRAME=39]="FRAME",t[t.FRAMESET=40]="FRAMESET",t[t.H1=41]="H1",t[t.H2=42]="H2",t[t.H3=43]="H3",t[t.H4=44]="H4",t[t.H5=45]="H5",t[t.H6=46]="H6",t[t.HEAD=47]="HEAD",t[t.HEADER=48]="HEADER",t[t.HGROUP=49]="HGROUP",t[t.HR=50]="HR",t[t.HTML=51]="HTML",t[t.I=52]="I",t[t.IMG=53]="IMG",t[t.IMAGE=54]="IMAGE",t[t.INPUT=55]="INPUT",t[t.IFRAME=56]="IFRAME",t[t.KEYGEN=57]="KEYGEN",t[t.LABEL=58]="LABEL",t[t.LI=59]="LI",t[t.LINK=60]="LINK",t[t.LISTING=61]="LISTING",t[t.MAIN=62]="MAIN",t[t.MALIGNMARK=63]="MALIGNMARK",t[t.MARQUEE=64]="MARQUEE",t[t.MATH=65]="MATH",t[t.MENU=66]="MENU",t[t.META=67]="META",t[t.MGLYPH=68]="MGLYPH",t[t.MI=69]="MI",t[t.MO=70]="MO",t[t.MN=71]="MN",t[t.MS=72]="MS",t[t.MTEXT=73]="MTEXT",t[t.NAV=74]="NAV",t[t.NOBR=75]="NOBR",t[t.NOFRAMES=76]="NOFRAMES",t[t.NOEMBED=77]="NOEMBED",t[t.NOSCRIPT=78]="NOSCRIPT",t[t.OBJECT=79]="OBJECT",t[t.OL=80]="OL",t[t.OPTGROUP=81]="OPTGROUP",t[t.OPTION=82]="OPTION",t[t.P=83]="P",t[t.PARAM=84]="PARAM",t[t.PLAINTEXT=85]="PLAINTEXT",t[t.PRE=86]="PRE",t[t.RB=87]="RB",t[t.RP=88]="RP",t[t.RT=89]="RT",t[t.RTC=90]="RTC",t[t.RUBY=91]="RUBY",t[t.S=92]="S",t[t.SCRIPT=93]="SCRIPT",t[t.SECTION=94]="SECTION",t[t.SELECT=95]="SELECT",t[t.SOURCE=96]="SOURCE",t[t.SMALL=97]="SMALL",t[t.SPAN=98]="SPAN",t[t.STRIKE=99]="STRIKE",t[t.STRONG=100]="STRONG",t[t.STYLE=101]="STYLE",t[t.SUB=102]="SUB",t[t.SUMMARY=103]="SUMMARY",t[t.SUP=104]="SUP",t[t.TABLE=105]="TABLE",t[t.TBODY=106]="TBODY",t[t.TEMPLATE=107]="TEMPLATE",t[t.TEXTAREA=108]="TEXTAREA",t[t.TFOOT=109]="TFOOT",t[t.TD=110]="TD",t[t.TH=111]="TH",t[t.THEAD=112]="THEAD",t[t.TITLE=113]="TITLE",t[t.TR=114]="TR",t[t.TRACK=115]="TRACK",t[t.TT=116]="TT",t[t.U=117]="U",t[t.UL=118]="UL",t[t.SVG=119]="SVG",t[t.VAR=120]="VAR",t[t.WBR=121]="WBR",t[t.XMP=122]="XMP"})(TAG_ID=TAG_ID||(TAG_ID={}));const TAG_NAME_TO_ID=new Map([[TAG_NAMES.A,TAG_ID.A],[TAG_NAMES.ADDRESS,TAG_ID.ADDRESS],[TAG_NAMES.ANNOTATION_XML,TAG_ID.ANNOTATION_XML],[TAG_NAMES.APPLET,TAG_ID.APPLET],[TAG_NAMES.AREA,TAG_ID.AREA],[TAG_NAMES.ARTICLE,TAG_ID.ARTICLE],[TAG_NAMES.ASIDE,TAG_ID.ASIDE],[TAG_NAMES.B,TAG_ID.B],[TAG_NAMES.BASE,TAG_ID.BASE],[TAG_NAMES.BASEFONT,TAG_ID.BASEFONT],[TAG_NAMES.BGSOUND,TAG_ID.BGSOUND],[TAG_NAMES.BIG,TAG_ID.BIG],[TAG_NAMES.BLOCKQUOTE,TAG_ID.BLOCKQUOTE],[TAG_NAMES.BODY,TAG_ID.BODY],[TAG_NAMES.BR,TAG_ID.BR],[TAG_NAMES.BUTTON,TAG_ID.BUTTON],[TAG_NAMES.CAPTION,TAG_ID.CAPTION],[TAG_NAMES.CENTER,TAG_ID.CENTER],[TAG_NAMES.CODE,TAG_ID.CODE],[TAG_NAMES.COL,TAG_ID.COL],[TAG_NAMES.COLGROUP,TAG_ID.COLGROUP],[TAG_NAMES.DD,TAG_ID.DD],[TAG_NAMES.DESC,TAG_ID.DESC],[TAG_NAMES.DETAILS,TAG_ID.DETAILS],[TAG_NAMES.DIALOG,TAG_ID.DIALOG],[TAG_NAMES.DIR,TAG_ID.DIR],[TAG_NAMES.DIV,TAG_ID.DIV],[TAG_NAMES.DL,TAG_ID.DL],[TAG_NAMES.DT,TAG_ID.DT],[TAG_NAMES.EM,TAG_ID.EM],[TAG_NAMES.EMBED,TAG_ID.EMBED],[TAG_NAMES.FIELDSET,TAG_ID.FIELDSET],[TAG_NAMES.FIGCAPTION,TAG_ID.FIGCAPTION],[TAG_NAMES.FIGURE,TAG_ID.FIGURE],[TAG_NAMES.FONT,TAG_ID.FONT],[TAG_NAMES.FOOTER,TAG_ID.FOOTER],[TAG_NAMES.FOREIGN_OBJECT,TAG_ID.FOREIGN_OBJECT],[TAG_NAMES.FORM,TAG_ID.FORM],[TAG_NAMES.FRAME,TAG_ID.FRAME],[TAG_NAMES.FRAMESET,TAG_ID.FRAMESET],[TAG_NAMES.H1,TAG_ID.H1],[TAG_NAMES.H2,TAG_ID.H2],[TAG_NAMES.H3,TAG_ID.H3],[TAG_NAMES.H4,TAG_ID.H4],[TAG_NAMES.H5,TAG_ID.H5],[TAG_NAMES.H6,TAG_ID.H6],[TAG_NAMES.HEAD,TAG_ID.HEAD],[TAG_NAMES.HEADER,TAG_ID.HEADER],[TAG_NAMES.HGROUP,TAG_ID.HGROUP],[TAG_NAMES.HR,TAG_ID.HR],[TAG_NAMES.HTML,TAG_ID.HTML],[TAG_NAMES.I,TAG_ID.I],[TAG_NAMES.IMG,TAG_ID.IMG],[TAG_NAMES.IMAGE,TAG_ID.IMAGE],[TAG_NAMES.INPUT,TAG_ID.INPUT],[TAG_NAMES.IFRAME,TAG_ID.IFRAME],[TAG_NAMES.KEYGEN,TAG_ID.KEYGEN],[TAG_NAMES.LABEL,TAG_ID.LABEL],[TAG_NAMES.LI,TAG_ID.LI],[TAG_NAMES.LINK,TAG_ID.LINK],[TAG_NAMES.LISTING,TAG_ID.LISTING],[TAG_NAMES.MAIN,TAG_ID.MAIN],[TAG_NAMES.MALIGNMARK,TAG_ID.MALIGNMARK],[TAG_NAMES.MARQUEE,TAG_ID.MARQUEE],[TAG_NAMES.MATH,TAG_ID.MATH],[TAG_NAMES.MENU,TAG_ID.MENU],[TAG_NAMES.META,TAG_ID.META],[TAG_NAMES.MGLYPH,TAG_ID.MGLYPH],[TAG_NAMES.MI,TAG_ID.MI],[TAG_NAMES.MO,TAG_ID.MO],[TAG_NAMES.MN,TAG_ID.MN],[TAG_NAMES.MS,TAG_ID.MS],[TAG_NAMES.MTEXT,TAG_ID.MTEXT],[TAG_NAMES.NAV,TAG_ID.NAV],[TAG_NAMES.NOBR,TAG_ID.NOBR],[TAG_NAMES.NOFRAMES,TAG_ID.NOFRAMES],[TAG_NAMES.NOEMBED,TAG_ID.NOEMBED],[TAG_NAMES.NOSCRIPT,TAG_ID.NOSCRIPT],[TAG_NAMES.OBJECT,TAG_ID.OBJECT],[TAG_NAMES.OL,TAG_ID.OL],[TAG_NAMES.OPTGROUP,TAG_ID.OPTGROUP],[TAG_NAMES.OPTION,TAG_ID.OPTION],[TAG_NAMES.P,TAG_ID.P],[TAG_NAMES.PARAM,TAG_ID.PARAM],[TAG_NAMES.PLAINTEXT,TAG_ID.PLAINTEXT],[TAG_NAMES.PRE,TAG_ID.PRE],[TAG_NAMES.RB,TAG_ID.RB],[TAG_NAMES.RP,TAG_ID.RP],[TAG_NAMES.RT,TAG_ID.RT],[TAG_NAMES.RTC,TAG_ID.RTC],[TAG_NAMES.RUBY,TAG_ID.RUBY],[TAG_NAMES.S,TAG_ID.S],[TAG_NAMES.SCRIPT,TAG_ID.SCRIPT],[TAG_NAMES.SECTION,TAG_ID.SECTION],[TAG_NAMES.SELECT,TAG_ID.SELECT],[TAG_NAMES.SOURCE,TAG_ID.SOURCE],[TAG_NAMES.SMALL,TAG_ID.SMALL],[TAG_NAMES.SPAN,TAG_ID.SPAN],[TAG_NAMES.STRIKE,TAG_ID.STRIKE],[TAG_NAMES.STRONG,TAG_ID.STRONG],[TAG_NAMES.STYLE,TAG_ID.STYLE],[TAG_NAMES.SUB,TAG_ID.SUB],[TAG_NAMES.SUMMARY,TAG_ID.SUMMARY],[TAG_NAMES.SUP,TAG_ID.SUP],[TAG_NAMES.TABLE,TAG_ID.TABLE],[TAG_NAMES.TBODY,TAG_ID.TBODY],[TAG_NAMES.TEMPLATE,TAG_ID.TEMPLATE],[TAG_NAMES.TEXTAREA,TAG_ID.TEXTAREA],[TAG_NAMES.TFOOT,TAG_ID.TFOOT],[TAG_NAMES.TD,TAG_ID.TD],[TAG_NAMES.TH,TAG_ID.TH],[TAG_NAMES.THEAD,TAG_ID.THEAD],[TAG_NAMES.TITLE,TAG_ID.TITLE],[TAG_NAMES.TR,TAG_ID.TR],[TAG_NAMES.TRACK,TAG_ID.TRACK],[TAG_NAMES.TT,TAG_ID.TT],[TAG_NAMES.U,TAG_ID.U],[TAG_NAMES.UL,TAG_ID.UL],[TAG_NAMES.SVG,TAG_ID.SVG],[TAG_NAMES.VAR,TAG_ID.VAR],[TAG_NAMES.WBR,TAG_ID.WBR],[TAG_NAMES.XMP,TAG_ID.XMP]]);function getTagID(t){var o;return(o=TAG_NAME_TO_ID.get(t))!==null&&o!==void 0?o:TAG_ID.UNKNOWN}const $=TAG_ID,SPECIAL_ELEMENTS={[NS$1.HTML]:new Set([$.ADDRESS,$.APPLET,$.AREA,$.ARTICLE,$.ASIDE,$.BASE,$.BASEFONT,$.BGSOUND,$.BLOCKQUOTE,$.BODY,$.BR,$.BUTTON,$.CAPTION,$.CENTER,$.COL,$.COLGROUP,$.DD,$.DETAILS,$.DIR,$.DIV,$.DL,$.DT,$.EMBED,$.FIELDSET,$.FIGCAPTION,$.FIGURE,$.FOOTER,$.FORM,$.FRAME,$.FRAMESET,$.H1,$.H2,$.H3,$.H4,$.H5,$.H6,$.HEAD,$.HEADER,$.HGROUP,$.HR,$.HTML,$.IFRAME,$.IMG,$.INPUT,$.LI,$.LINK,$.LISTING,$.MAIN,$.MARQUEE,$.MENU,$.META,$.NAV,$.NOEMBED,$.NOFRAMES,$.NOSCRIPT,$.OBJECT,$.OL,$.P,$.PARAM,$.PLAINTEXT,$.PRE,$.SCRIPT,$.SECTION,$.SELECT,$.SOURCE,$.STYLE,$.SUMMARY,$.TABLE,$.TBODY,$.TD,$.TEMPLATE,$.TEXTAREA,$.TFOOT,$.TH,$.THEAD,$.TITLE,$.TR,$.TRACK,$.UL,$.WBR,$.XMP]),[NS$1.MATHML]:new Set([$.MI,$.MO,$.MN,$.MS,$.MTEXT,$.ANNOTATION_XML]),[NS$1.SVG]:new Set([$.TITLE,$.FOREIGN_OBJECT,$.DESC]),[NS$1.XLINK]:new Set,[NS$1.XML]:new Set,[NS$1.XMLNS]:new Set};function isNumberedHeader(t){return t===$.H1||t===$.H2||t===$.H3||t===$.H4||t===$.H5||t===$.H6}const UNESCAPED_TEXT=new Set([TAG_NAMES.STYLE,TAG_NAMES.SCRIPT,TAG_NAMES.XMP,TAG_NAMES.IFRAME,TAG_NAMES.NOEMBED,TAG_NAMES.NOFRAMES,TAG_NAMES.PLAINTEXT]);function hasUnescapedText(t,o){return UNESCAPED_TEXT.has(t)||o&&t===TAG_NAMES.NOSCRIPT}const C1_CONTROLS_REFERENCE_REPLACEMENTS=new Map([[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]]);var State$1;(function(t){t[t.DATA=0]="DATA",t[t.RCDATA=1]="RCDATA",t[t.RAWTEXT=2]="RAWTEXT",t[t.SCRIPT_DATA=3]="SCRIPT_DATA",t[t.PLAINTEXT=4]="PLAINTEXT",t[t.TAG_OPEN=5]="TAG_OPEN",t[t.END_TAG_OPEN=6]="END_TAG_OPEN",t[t.TAG_NAME=7]="TAG_NAME",t[t.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",t[t.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",t[t.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",t[t.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",t[t.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",t[t.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",t[t.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",t[t.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",t[t.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",t[t.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",t[t.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",t[t.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",t[t.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",t[t.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",t[t.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",t[t.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",t[t.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",t[t.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",t[t.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",t[t.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",t[t.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",t[t.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",t[t.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",t[t.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",t[t.BOGUS_COMMENT=40]="BOGUS_COMMENT",t[t.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",t[t.COMMENT_START=42]="COMMENT_START",t[t.COMMENT_START_DASH=43]="COMMENT_START_DASH",t[t.COMMENT=44]="COMMENT",t[t.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",t[t.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",t[t.COMMENT_END_DASH=49]="COMMENT_END_DASH",t[t.COMMENT_END=50]="COMMENT_END",t[t.COMMENT_END_BANG=51]="COMMENT_END_BANG",t[t.DOCTYPE=52]="DOCTYPE",t[t.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",t[t.DOCTYPE_NAME=54]="DOCTYPE_NAME",t[t.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",t[t.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",t[t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",t[t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",t[t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",t[t.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",t[t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",t[t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",t[t.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",t[t.CDATA_SECTION=68]="CDATA_SECTION",t[t.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",t[t.CDATA_SECTION_END=70]="CDATA_SECTION_END",t[t.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",t[t.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",t[t.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",t[t.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",t[t.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",t[t.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",t[t.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",t[t.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(State$1||(State$1={}));const TokenizerMode={DATA:State$1.DATA,RCDATA:State$1.RCDATA,RAWTEXT:State$1.RAWTEXT,SCRIPT_DATA:State$1.SCRIPT_DATA,PLAINTEXT:State$1.PLAINTEXT,CDATA_SECTION:State$1.CDATA_SECTION};function isAsciiDigit(t){return t>=CODE_POINTS.DIGIT_0&&t<=CODE_POINTS.DIGIT_9}function isAsciiUpper(t){return t>=CODE_POINTS.LATIN_CAPITAL_A&&t<=CODE_POINTS.LATIN_CAPITAL_Z}function isAsciiLower(t){return t>=CODE_POINTS.LATIN_SMALL_A&&t<=CODE_POINTS.LATIN_SMALL_Z}function isAsciiLetter(t){return isAsciiLower(t)||isAsciiUpper(t)}function isAsciiAlphaNumeric(t){return isAsciiLetter(t)||isAsciiDigit(t)}function isAsciiUpperHexDigit(t){return t>=CODE_POINTS.LATIN_CAPITAL_A&&t<=CODE_POINTS.LATIN_CAPITAL_F}function isAsciiLowerHexDigit(t){return t>=CODE_POINTS.LATIN_SMALL_A&&t<=CODE_POINTS.LATIN_SMALL_F}function isAsciiHexDigit(t){return isAsciiDigit(t)||isAsciiUpperHexDigit(t)||isAsciiLowerHexDigit(t)}function toAsciiLower(t){return t+32}function isWhitespace$1(t){return t===CODE_POINTS.SPACE||t===CODE_POINTS.LINE_FEED||t===CODE_POINTS.TABULATION||t===CODE_POINTS.FORM_FEED}function isEntityInAttributeInvalidEnd(t){return t===CODE_POINTS.EQUALS_SIGN||isAsciiAlphaNumeric(t)}function isScriptDataDoubleEscapeSequenceEnd(t){return isWhitespace$1(t)||t===CODE_POINTS.SOLIDUS||t===CODE_POINTS.GREATER_THAN_SIGN}let Tokenizer$2=class{constructor(o,n){this.options=o,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=State$1.DATA,this.returnState=State$1.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Preprocessor(n),this.currentLocation=this.getCurrentLocation(-1)}_err(o){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,this.preprocessor.getError(o))}getCurrentLocation(o){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-o,startOffset:this.preprocessor.offset-o,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const o=this._consume();this._ensureHibernation()||this._callState(o)}this.inLoop=!1}}pause(){this.paused=!0}resume(o){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||o==null||o())}write(o,n,r){this.active=!0,this.preprocessor.write(o,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(o){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(o),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(o){this.consumedAfterSnapshot-=o,this.preprocessor.retreat(o)}_reconsumeInState(o,n){this.state=o,this._callState(n)}_advanceBy(o){this.consumedAfterSnapshot+=o;for(let n=0;n0&&this._err(ERR.endTagWithAttributes),o.selfClosing&&this._err(ERR.endTagWithTrailingSolidus),this.handler.onEndTag(o)),this.preprocessor.dropParsedChunk()}emitCurrentComment(o){this.prepareToken(o),this.handler.onComment(o),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(o){this.prepareToken(o),this.handler.onDoctype(o),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(o){if(this.currentCharacterToken){switch(o&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=o.startLine,this.currentCharacterToken.location.endCol=o.startCol,this.currentCharacterToken.location.endOffset=o.startOffset),this.currentCharacterToken.type){case TokenType.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case TokenType.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case TokenType.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const o=this.getCurrentLocation(0);o&&(o.endLine=o.startLine,o.endCol=o.startCol,o.endOffset=o.startOffset),this._emitCurrentCharacterToken(o),this.handler.onEof({type:TokenType.EOF,location:o}),this.active=!1}_appendCharToCurrentCharacterToken(o,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==o)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=n;return}this._createCharacterToken(o,n)}_emitCodePoint(o){const n=isWhitespace$1(o)?TokenType.WHITESPACE_CHARACTER:o===CODE_POINTS.NULL?TokenType.NULL_CHARACTER:TokenType.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(o))}_emitChars(o){this._appendCharToCurrentCharacterToken(TokenType.CHARACTER,o)}_matchNamedCharacterReference(o){let n=null,r=0,s=!1;for(let l=0,d=htmlDecodeTree[0];l>=0&&(l=determineBranch(htmlDecodeTree,d,l+1,o),!(l<0));o=this._consume()){r+=1,d=htmlDecodeTree[l];const m=d&BinTrieFlags.VALUE_LENGTH;if(m){const _=(m>>14)-1;if(o!==CODE_POINTS.SEMICOLON&&this._isCharacterReferenceInAttribute()&&isEntityInAttributeInvalidEnd(this.preprocessor.peek(1))?(n=[CODE_POINTS.AMPERSAND],l+=_):(n=_===0?[htmlDecodeTree[l]&~BinTrieFlags.VALUE_LENGTH]:_===1?[htmlDecodeTree[++l]]:[htmlDecodeTree[++l],htmlDecodeTree[++l]],r=0,s=o!==CODE_POINTS.SEMICOLON),_===0){this._consume();break}}}return this._unconsume(r),s&&!this.preprocessor.endOfChunkHit&&this._err(ERR.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===State$1.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===State$1.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===State$1.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(o){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(o):this._emitCodePoint(o)}_callState(o){switch(this.state){case State$1.DATA:{this._stateData(o);break}case State$1.RCDATA:{this._stateRcdata(o);break}case State$1.RAWTEXT:{this._stateRawtext(o);break}case State$1.SCRIPT_DATA:{this._stateScriptData(o);break}case State$1.PLAINTEXT:{this._statePlaintext(o);break}case State$1.TAG_OPEN:{this._stateTagOpen(o);break}case State$1.END_TAG_OPEN:{this._stateEndTagOpen(o);break}case State$1.TAG_NAME:{this._stateTagName(o);break}case State$1.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(o);break}case State$1.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(o);break}case State$1.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(o);break}case State$1.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(o);break}case State$1.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(o);break}case State$1.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(o);break}case State$1.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(o);break}case State$1.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(o);break}case State$1.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(o);break}case State$1.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(o);break}case State$1.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(o);break}case State$1.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(o);break}case State$1.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(o);break}case State$1.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(o);break}case State$1.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(o);break}case State$1.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(o);break}case State$1.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(o);break}case State$1.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(o);break}case State$1.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(o);break}case State$1.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(o);break}case State$1.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(o);break}case State$1.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(o);break}case State$1.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(o);break}case State$1.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(o);break}case State$1.ATTRIBUTE_NAME:{this._stateAttributeName(o);break}case State$1.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(o);break}case State$1.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(o);break}case State$1.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(o);break}case State$1.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(o);break}case State$1.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(o);break}case State$1.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(o);break}case State$1.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(o);break}case State$1.BOGUS_COMMENT:{this._stateBogusComment(o);break}case State$1.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(o);break}case State$1.COMMENT_START:{this._stateCommentStart(o);break}case State$1.COMMENT_START_DASH:{this._stateCommentStartDash(o);break}case State$1.COMMENT:{this._stateComment(o);break}case State$1.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(o);break}case State$1.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(o);break}case State$1.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(o);break}case State$1.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(o);break}case State$1.COMMENT_END_DASH:{this._stateCommentEndDash(o);break}case State$1.COMMENT_END:{this._stateCommentEnd(o);break}case State$1.COMMENT_END_BANG:{this._stateCommentEndBang(o);break}case State$1.DOCTYPE:{this._stateDoctype(o);break}case State$1.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(o);break}case State$1.DOCTYPE_NAME:{this._stateDoctypeName(o);break}case State$1.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(o);break}case State$1.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(o);break}case State$1.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(o);break}case State$1.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(o);break}case State$1.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(o);break}case State$1.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(o);break}case State$1.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(o);break}case State$1.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(o);break}case State$1.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(o);break}case State$1.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(o);break}case State$1.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(o);break}case State$1.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(o);break}case State$1.BOGUS_DOCTYPE:{this._stateBogusDoctype(o);break}case State$1.CDATA_SECTION:{this._stateCdataSection(o);break}case State$1.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(o);break}case State$1.CDATA_SECTION_END:{this._stateCdataSectionEnd(o);break}case State$1.CHARACTER_REFERENCE:{this._stateCharacterReference(o);break}case State$1.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(o);break}case State$1.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(o);break}case State$1.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(o);break}case State$1.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(o);break}case State$1.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(o);break}case State$1.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(o);break}case State$1.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(o);break}default:throw new Error("Unknown state")}}_stateData(o){switch(o){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$1.TAG_OPEN;break}case CODE_POINTS.AMPERSAND:{this.returnState=State$1.DATA,this.state=State$1.CHARACTER_REFERENCE;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitCodePoint(o);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(o)}}_stateRcdata(o){switch(o){case CODE_POINTS.AMPERSAND:{this.returnState=State$1.RCDATA,this.state=State$1.CHARACTER_REFERENCE;break}case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$1.RCDATA_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER$1);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(o)}}_stateRawtext(o){switch(o){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$1.RAWTEXT_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER$1);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(o)}}_stateScriptData(o){switch(o){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$1.SCRIPT_DATA_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER$1);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(o)}}_statePlaintext(o){switch(o){case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER$1);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(o)}}_stateTagOpen(o){if(isAsciiLetter(o))this._createStartTagToken(),this.state=State$1.TAG_NAME,this._stateTagName(o);else switch(o){case CODE_POINTS.EXCLAMATION_MARK:{this.state=State$1.MARKUP_DECLARATION_OPEN;break}case CODE_POINTS.SOLIDUS:{this.state=State$1.END_TAG_OPEN;break}case CODE_POINTS.QUESTION_MARK:{this._err(ERR.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=State$1.BOGUS_COMMENT,this._stateBogusComment(o);break}case CODE_POINTS.EOF:{this._err(ERR.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ERR.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=State$1.DATA,this._stateData(o)}}_stateEndTagOpen(o){if(isAsciiLetter(o))this._createEndTagToken(),this.state=State$1.TAG_NAME,this._stateTagName(o);else switch(o){case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.missingEndTagName),this.state=State$1.DATA;break}case CODE_POINTS.EOF:{this._err(ERR.eofBeforeTagName),this._emitChars(""),this._emitEOFToken();break}default:this._err(ERR.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=State$1.BOGUS_COMMENT,this._stateBogusComment(o)}}_stateTagName(o){const n=this.currentToken;switch(o){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:{this.state=State$1.BEFORE_ATTRIBUTE_NAME;break}case CODE_POINTS.SOLIDUS:{this.state=State$1.SELF_CLOSING_START_TAG;break}case CODE_POINTS.GREATER_THAN_SIGN:{this.state=State$1.DATA,this.emitCurrentTagToken();break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),n.tagName+=REPLACEMENT_CHARACTER$1;break}case CODE_POINTS.EOF:{this._err(ERR.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(isAsciiUpper(o)?toAsciiLower(o):o)}}_stateRcdataLessThanSign(o){o===CODE_POINTS.SOLIDUS?this.state=State$1.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=State$1.RCDATA,this._stateRcdata(o))}_stateRcdataEndTagOpen(o){isAsciiLetter(o)?(this.state=State$1.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(o)):(this._emitChars(""),this.state=State$1.RCDATA,this._stateRcdata(o))}handleSpecialEndTag(o){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=State$1.BEFORE_ATTRIBUTE_NAME,!1;case CODE_POINTS.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=State$1.SELF_CLOSING_START_TAG,!1;case CODE_POINTS.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=State$1.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(o){this.handleSpecialEndTag(o)&&(this._emitChars(""),this.state=State$1.RCDATA,this._stateRcdata(o))}_stateRawtextLessThanSign(o){o===CODE_POINTS.SOLIDUS?this.state=State$1.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=State$1.RAWTEXT,this._stateRawtext(o))}_stateRawtextEndTagOpen(o){isAsciiLetter(o)?(this.state=State$1.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(o)):(this._emitChars(""),this.state=State$1.RAWTEXT,this._stateRawtext(o))}_stateRawtextEndTagName(o){this.handleSpecialEndTag(o)&&(this._emitChars(""),this.state=State$1.RAWTEXT,this._stateRawtext(o))}_stateScriptDataLessThanSign(o){switch(o){case CODE_POINTS.SOLIDUS:{this.state=State$1.SCRIPT_DATA_END_TAG_OPEN;break}case CODE_POINTS.EXCLAMATION_MARK:{this.state=State$1.SCRIPT_DATA_ESCAPE_START,this._emitChars("");break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.state=State$1.SCRIPT_DATA_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER$1);break}case CODE_POINTS.EOF:{this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=State$1.SCRIPT_DATA_ESCAPED,this._emitCodePoint(o)}}_stateScriptDataEscapedLessThanSign(o){o===CODE_POINTS.SOLIDUS?this.state=State$1.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:isAsciiLetter(o)?(this._emitChars("<"),this.state=State$1.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(o)):(this._emitChars("<"),this.state=State$1.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(o))}_stateScriptDataEscapedEndTagOpen(o){isAsciiLetter(o)?(this.state=State$1.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(o)):(this._emitChars(""),this.state=State$1.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(o))}_stateScriptDataEscapedEndTagName(o){this.handleSpecialEndTag(o)&&(this._emitChars(""),this.state=State$1.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(o))}_stateScriptDataDoubleEscapeStart(o){if(this.preprocessor.startsWith(SEQUENCES.SCRIPT,!1)&&isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek(SEQUENCES.SCRIPT.length))){this._emitCodePoint(o);for(let n=0;n");break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.state=State$1.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER$1);break}case CODE_POINTS.EOF:{this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=State$1.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(o)}}_stateScriptDataDoubleEscapedLessThanSign(o){o===CODE_POINTS.SOLIDUS?(this.state=State$1.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=State$1.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(o))}_stateScriptDataDoubleEscapeEnd(o){if(this.preprocessor.startsWith(SEQUENCES.SCRIPT,!1)&&isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek(SEQUENCES.SCRIPT.length))){this._emitCodePoint(o);for(let n=0;n1114111)this._err(ERR.characterReferenceOutsideUnicodeRange),this.charRefCode=CODE_POINTS.REPLACEMENT_CHARACTER;else if(isSurrogate(this.charRefCode))this._err(ERR.surrogateCharacterReference),this.charRefCode=CODE_POINTS.REPLACEMENT_CHARACTER;else if(isUndefinedCodePoint(this.charRefCode))this._err(ERR.noncharacterCharacterReference);else if(isControlCodePoint(this.charRefCode)||this.charRefCode===CODE_POINTS.CARRIAGE_RETURN){this._err(ERR.controlCharacterReference);const n=C1_CONTROLS_REFERENCE_REPLACEMENTS.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,o)}};const IMPLICIT_END_TAG_REQUIRED=new Set([TAG_ID.DD,TAG_ID.DT,TAG_ID.LI,TAG_ID.OPTGROUP,TAG_ID.OPTION,TAG_ID.P,TAG_ID.RB,TAG_ID.RP,TAG_ID.RT,TAG_ID.RTC]),IMPLICIT_END_TAG_REQUIRED_THOROUGHLY=new Set([...IMPLICIT_END_TAG_REQUIRED,TAG_ID.CAPTION,TAG_ID.COLGROUP,TAG_ID.TBODY,TAG_ID.TD,TAG_ID.TFOOT,TAG_ID.TH,TAG_ID.THEAD,TAG_ID.TR]),SCOPING_ELEMENT_NS=new Map([[TAG_ID.APPLET,NS$1.HTML],[TAG_ID.CAPTION,NS$1.HTML],[TAG_ID.HTML,NS$1.HTML],[TAG_ID.MARQUEE,NS$1.HTML],[TAG_ID.OBJECT,NS$1.HTML],[TAG_ID.TABLE,NS$1.HTML],[TAG_ID.TD,NS$1.HTML],[TAG_ID.TEMPLATE,NS$1.HTML],[TAG_ID.TH,NS$1.HTML],[TAG_ID.ANNOTATION_XML,NS$1.MATHML],[TAG_ID.MI,NS$1.MATHML],[TAG_ID.MN,NS$1.MATHML],[TAG_ID.MO,NS$1.MATHML],[TAG_ID.MS,NS$1.MATHML],[TAG_ID.MTEXT,NS$1.MATHML],[TAG_ID.DESC,NS$1.SVG],[TAG_ID.FOREIGN_OBJECT,NS$1.SVG],[TAG_ID.TITLE,NS$1.SVG]]),NAMED_HEADERS=[TAG_ID.H1,TAG_ID.H2,TAG_ID.H3,TAG_ID.H4,TAG_ID.H5,TAG_ID.H6],TABLE_ROW_CONTEXT=[TAG_ID.TR,TAG_ID.TEMPLATE,TAG_ID.HTML],TABLE_BODY_CONTEXT=[TAG_ID.TBODY,TAG_ID.TFOOT,TAG_ID.THEAD,TAG_ID.TEMPLATE,TAG_ID.HTML],TABLE_CONTEXT=[TAG_ID.TABLE,TAG_ID.TEMPLATE,TAG_ID.HTML],TABLE_CELLS=[TAG_ID.TD,TAG_ID.TH];class OpenElementStack{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(o,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=TAG_ID.UNKNOWN,this.current=o}_indexOf(o){return this.items.lastIndexOf(o,this.stackTop)}_isInTemplate(){return this.currentTagId===TAG_ID.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===NS$1.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(o,n){this.stackTop++,this.items[this.stackTop]=o,this.current=o,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(o,n,!0)}pop(){const o=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(o,!0)}replace(o,n){const r=this._indexOf(o);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(o,n,r){const s=this._indexOf(o)+1;this.items.splice(s,0,n),this.tagIDs.splice(s,0,r),this.stackTop++,s===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,s===this.stackTop)}popUntilTagNamePopped(o){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(o,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==NS$1.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(o){for(;this.stackTop>=o;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;r--)if(o.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(o,n){const r=this._indexOfTagNames(o,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(TABLE_CONTEXT,NS$1.HTML)}clearBackToTableBodyContext(){this.clearBackTo(TABLE_BODY_CONTEXT,NS$1.HTML)}clearBackToTableRowContext(){this.clearBackTo(TABLE_ROW_CONTEXT,NS$1.HTML)}remove(o){const n=this._indexOf(o);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(o,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===TAG_ID.BODY?this.items[1]:null}contains(o){return this._indexOf(o)>-1}getCommonAncestor(o){const n=this._indexOf(o)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===TAG_ID.HTML}hasInScope(o){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],s=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===o&&s===NS$1.HTML)return!0;if(SCOPING_ELEMENT_NS.get(r)===s)return!1}return!0}hasNumberedHeaderInScope(){for(let o=this.stackTop;o>=0;o--){const n=this.tagIDs[o],r=this.treeAdapter.getNamespaceURI(this.items[o]);if(isNumberedHeader(n)&&r===NS$1.HTML)return!0;if(SCOPING_ELEMENT_NS.get(n)===r)return!1}return!0}hasInListItemScope(o){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],s=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===o&&s===NS$1.HTML)return!0;if((r===TAG_ID.UL||r===TAG_ID.OL)&&s===NS$1.HTML||SCOPING_ELEMENT_NS.get(r)===s)return!1}return!0}hasInButtonScope(o){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],s=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===o&&s===NS$1.HTML)return!0;if(r===TAG_ID.BUTTON&&s===NS$1.HTML||SCOPING_ELEMENT_NS.get(r)===s)return!1}return!0}hasInTableScope(o){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===NS$1.HTML){if(r===o)return!0;if(r===TAG_ID.TABLE||r===TAG_ID.TEMPLATE||r===TAG_ID.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let o=this.stackTop;o>=0;o--){const n=this.tagIDs[o];if(this.treeAdapter.getNamespaceURI(this.items[o])===NS$1.HTML){if(n===TAG_ID.TBODY||n===TAG_ID.THEAD||n===TAG_ID.TFOOT)return!0;if(n===TAG_ID.TABLE||n===TAG_ID.HTML)return!1}}return!0}hasInSelectScope(o){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===NS$1.HTML){if(r===o)return!0;if(r!==TAG_ID.OPTION&&r!==TAG_ID.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;IMPLICIT_END_TAG_REQUIRED.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(o){for(;this.currentTagId!==o&&IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId);)this.pop()}}const NOAH_ARK_CAPACITY=3;var EntryType;(function(t){t[t.Marker=0]="Marker",t[t.Element=1]="Element"})(EntryType=EntryType||(EntryType={}));const MARKER={type:EntryType.Marker};class FormattingElementList{constructor(o){this.treeAdapter=o,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(o,n){const r=[],s=n.length,l=this.treeAdapter.getTagName(o),d=this.treeAdapter.getNamespaceURI(o);for(let m=0;m[d.name,d.value]));let l=0;for(let d=0;ds.get(_.name)===_.value)&&(l+=1,l>=NOAH_ARK_CAPACITY&&this.entries.splice(m.idx,1))}}insertMarker(){this.entries.unshift(MARKER)}pushElement(o,n){this._ensureNoahArkCondition(o),this.entries.unshift({type:EntryType.Element,element:o,token:n})}insertElementAfterBookmark(o,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:EntryType.Element,element:o,token:n})}removeEntry(o){const n=this.entries.indexOf(o);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const o=this.entries.indexOf(MARKER);o>=0?this.entries.splice(0,o+1):this.entries.length=0}getElementEntryInScopeWithTagName(o){const n=this.entries.find(r=>r.type===EntryType.Marker||this.treeAdapter.getTagName(r.element)===o);return n&&n.type===EntryType.Element?n:null}getElementEntry(o){return this.entries.find(n=>n.type===EntryType.Element&&n.element===o)}}function createTextNode$1(t){return{nodeName:"#text",value:t,parentNode:null}}const defaultTreeAdapter={createDocument(){return{nodeName:"#document",mode:DOCUMENT_MODE.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(t,o,n){return{nodeName:t,tagName:t,attrs:n,namespaceURI:o,childNodes:[],parentNode:null}},createCommentNode(t){return{nodeName:"#comment",data:t,parentNode:null}},appendChild(t,o){t.childNodes.push(o),o.parentNode=t},insertBefore(t,o,n){const r=t.childNodes.indexOf(n);t.childNodes.splice(r,0,o),o.parentNode=t},setTemplateContent(t,o){t.content=o},getTemplateContent(t){return t.content},setDocumentType(t,o,n,r){const s=t.childNodes.find(l=>l.nodeName==="#documentType");if(s)s.name=o,s.publicId=n,s.systemId=r;else{const l={nodeName:"#documentType",name:o,publicId:n,systemId:r,parentNode:null};defaultTreeAdapter.appendChild(t,l)}},setDocumentMode(t,o){t.mode=o},getDocumentMode(t){return t.mode},detachNode(t){if(t.parentNode){const o=t.parentNode.childNodes.indexOf(t);t.parentNode.childNodes.splice(o,1),t.parentNode=null}},insertText(t,o){if(t.childNodes.length>0){const n=t.childNodes[t.childNodes.length-1];if(defaultTreeAdapter.isTextNode(n)){n.value+=o;return}}defaultTreeAdapter.appendChild(t,createTextNode$1(o))},insertTextBefore(t,o,n){const r=t.childNodes[t.childNodes.indexOf(n)-1];r&&defaultTreeAdapter.isTextNode(r)?r.value+=o:defaultTreeAdapter.insertBefore(t,createTextNode$1(o),n)},adoptAttributes(t,o){const n=new Set(t.attrs.map(r=>r.name));for(let r=0;rt.startsWith(n))}function isConforming(t){return t.name===VALID_DOCTYPE_NAME&&t.publicId===null&&(t.systemId===null||t.systemId===VALID_SYSTEM_ID)}function getDocumentMode(t){if(t.name!==VALID_DOCTYPE_NAME)return DOCUMENT_MODE.QUIRKS;const{systemId:o}=t;if(o&&o.toLowerCase()===QUIRKS_MODE_SYSTEM_ID)return DOCUMENT_MODE.QUIRKS;let{publicId:n}=t;if(n!==null){if(n=n.toLowerCase(),QUIRKS_MODE_PUBLIC_IDS.has(n))return DOCUMENT_MODE.QUIRKS;let r=o===null?QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES:QUIRKS_MODE_PUBLIC_ID_PREFIXES;if(hasPrefix(n,r))return DOCUMENT_MODE.QUIRKS;if(r=o===null?LIMITED_QUIRKS_PUBLIC_ID_PREFIXES:LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES,hasPrefix(n,r))return DOCUMENT_MODE.LIMITED_QUIRKS}return DOCUMENT_MODE.NO_QUIRKS}const MIME_TYPES={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},DEFINITION_URL_ATTR="definitionurl",ADJUSTED_DEFINITION_URL_ATTR="definitionURL",SVG_ATTRS_ADJUSTMENT_MAP=new Map(["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"].map(t=>[t.toLowerCase(),t])),XML_ATTRS_ADJUSTMENT_MAP=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:NS$1.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:NS$1.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:NS$1.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:NS$1.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:NS$1.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:NS$1.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:NS$1.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:NS$1.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:NS$1.XML}],["xml:space",{prefix:"xml",name:"space",namespace:NS$1.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:NS$1.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:NS$1.XMLNS}]]),SVG_TAG_NAMES_ADJUSTMENT_MAP=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(t=>[t.toLowerCase(),t])),EXITS_FOREIGN_CONTENT=new Set([TAG_ID.B,TAG_ID.BIG,TAG_ID.BLOCKQUOTE,TAG_ID.BODY,TAG_ID.BR,TAG_ID.CENTER,TAG_ID.CODE,TAG_ID.DD,TAG_ID.DIV,TAG_ID.DL,TAG_ID.DT,TAG_ID.EM,TAG_ID.EMBED,TAG_ID.H1,TAG_ID.H2,TAG_ID.H3,TAG_ID.H4,TAG_ID.H5,TAG_ID.H6,TAG_ID.HEAD,TAG_ID.HR,TAG_ID.I,TAG_ID.IMG,TAG_ID.LI,TAG_ID.LISTING,TAG_ID.MENU,TAG_ID.META,TAG_ID.NOBR,TAG_ID.OL,TAG_ID.P,TAG_ID.PRE,TAG_ID.RUBY,TAG_ID.S,TAG_ID.SMALL,TAG_ID.SPAN,TAG_ID.STRONG,TAG_ID.STRIKE,TAG_ID.SUB,TAG_ID.SUP,TAG_ID.TABLE,TAG_ID.TT,TAG_ID.U,TAG_ID.UL,TAG_ID.VAR]);function causesExit(t){const o=t.tagID;return o===TAG_ID.FONT&&t.attrs.some(({name:r})=>r===ATTRS.COLOR||r===ATTRS.SIZE||r===ATTRS.FACE)||EXITS_FOREIGN_CONTENT.has(o)}function adjustTokenMathMLAttrs(t){for(let o=0;o0&&this._setContextModes(o,n)}onItemPop(o,n){var r,s;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(o,this.currentToken),(s=(r=this.treeAdapter).onItemPop)===null||s===void 0||s.call(r,o,this.openElements.current),n){let l,d;this.openElements.stackTop===0&&this.fragmentContext?(l=this.fragmentContext,d=this.fragmentContextID):{current:l,currentTagId:d}=this.openElements,this._setContextModes(l,d)}}_setContextModes(o,n){const r=o===this.document||this.treeAdapter.getNamespaceURI(o)===NS$1.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,o)}_switchToTextParsing(o,n){this._insertElement(o,NS$1.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=InsertionMode.TEXT}switchToPlaintextParsing(){this.insertionMode=InsertionMode.TEXT,this.originalInsertionMode=InsertionMode.IN_BODY,this.tokenizer.state=TokenizerMode.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let o=this.fragmentContext;for(;o;){if(this.treeAdapter.getTagName(o)===TAG_NAMES.FORM){this.formElement=o;break}o=this.treeAdapter.getParentNode(o)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==NS$1.HTML))switch(this.fragmentContextID){case TAG_ID.TITLE:case TAG_ID.TEXTAREA:{this.tokenizer.state=TokenizerMode.RCDATA;break}case TAG_ID.STYLE:case TAG_ID.XMP:case TAG_ID.IFRAME:case TAG_ID.NOEMBED:case TAG_ID.NOFRAMES:case TAG_ID.NOSCRIPT:{this.tokenizer.state=TokenizerMode.RAWTEXT;break}case TAG_ID.SCRIPT:{this.tokenizer.state=TokenizerMode.SCRIPT_DATA;break}case TAG_ID.PLAINTEXT:{this.tokenizer.state=TokenizerMode.PLAINTEXT;break}}}_setDocumentType(o){const n=o.name||"",r=o.publicId||"",s=o.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,s),o.location){const d=this.treeAdapter.getChildNodes(this.document).find(m=>this.treeAdapter.isDocumentTypeNode(m));d&&this.treeAdapter.setNodeSourceCodeLocation(d,o.location)}}_attachElementToTree(o,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(o,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(o);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,o)}}_appendElement(o,n){const r=this.treeAdapter.createElement(o.tagName,n,o.attrs);this._attachElementToTree(r,o.location)}_insertElement(o,n){const r=this.treeAdapter.createElement(o.tagName,n,o.attrs);this._attachElementToTree(r,o.location),this.openElements.push(r,o.tagID)}_insertFakeElement(o,n){const r=this.treeAdapter.createElement(o,NS$1.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(o){const n=this.treeAdapter.createElement(o.tagName,NS$1.HTML,o.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,o.location),this.openElements.push(n,o.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const o=this.treeAdapter.createElement(TAG_NAMES.HTML,NS$1.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,null),this.treeAdapter.appendChild(this.openElements.current,o),this.openElements.push(o,TAG_ID.HTML)}_appendCommentNode(o,n){const r=this.treeAdapter.createCommentNode(o.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,o.location)}_insertCharacters(o){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,o.chars,r):this.treeAdapter.insertText(n,o.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,o.chars)),!o.location)return;const s=this.treeAdapter.getChildNodes(n),l=r?s.lastIndexOf(r):s.length,d=s[l-1];if(this.treeAdapter.getNodeSourceCodeLocation(d)){const{endLine:_,endCol:g,endOffset:v}=o.location;this.treeAdapter.updateNodeSourceCodeLocation(d,{endLine:_,endCol:g,endOffset:v})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(d,o.location)}_adoptNodes(o,n){for(let r=this.treeAdapter.getFirstChild(o);r;r=this.treeAdapter.getFirstChild(o))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(o,n){if(this.treeAdapter.getNodeSourceCodeLocation(o)&&n.location){const r=n.location,s=this.treeAdapter.getTagName(o),l=n.type===TokenType.END_TAG&&s===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(o,l)}}shouldProcessStartTagTokenInForeignContent(o){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,o.tagID===TAG_ID.SVG&&this.treeAdapter.getTagName(n)===TAG_NAMES.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===NS$1.MATHML?!1:this.tokenizer.inForeignNode||(o.tagID===TAG_ID.MGLYPH||o.tagID===TAG_ID.MALIGNMARK)&&!this._isIntegrationPoint(r,n,NS$1.HTML)}_processToken(o){switch(o.type){case TokenType.CHARACTER:{this.onCharacter(o);break}case TokenType.NULL_CHARACTER:{this.onNullCharacter(o);break}case TokenType.COMMENT:{this.onComment(o);break}case TokenType.DOCTYPE:{this.onDoctype(o);break}case TokenType.START_TAG:{this._processStartTag(o);break}case TokenType.END_TAG:{this.onEndTag(o);break}case TokenType.EOF:{this.onEof(o);break}case TokenType.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(o);break}}}_isIntegrationPoint(o,n,r){const s=this.treeAdapter.getNamespaceURI(n),l=this.treeAdapter.getAttrList(n);return isIntegrationPoint(o,s,l,r)}_reconstructActiveFormattingElements(){const o=this.activeFormattingElements.entries.length;if(o){const n=this.activeFormattingElements.entries.findIndex(s=>s.type===EntryType.Marker||this.openElements.contains(s.element)),r=n<0?o-1:n-1;for(let s=r;s>=0;s--){const l=this.activeFormattingElements.entries[s];this._insertElement(l.token,this.treeAdapter.getNamespaceURI(l.element)),l.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=InsertionMode.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.P),this.openElements.popUntilTagNamePopped(TAG_ID.P)}_resetInsertionMode(){for(let o=this.openElements.stackTop;o>=0;o--)switch(o===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[o]){case TAG_ID.TR:{this.insertionMode=InsertionMode.IN_ROW;return}case TAG_ID.TBODY:case TAG_ID.THEAD:case TAG_ID.TFOOT:{this.insertionMode=InsertionMode.IN_TABLE_BODY;return}case TAG_ID.CAPTION:{this.insertionMode=InsertionMode.IN_CAPTION;return}case TAG_ID.COLGROUP:{this.insertionMode=InsertionMode.IN_COLUMN_GROUP;return}case TAG_ID.TABLE:{this.insertionMode=InsertionMode.IN_TABLE;return}case TAG_ID.BODY:{this.insertionMode=InsertionMode.IN_BODY;return}case TAG_ID.FRAMESET:{this.insertionMode=InsertionMode.IN_FRAMESET;return}case TAG_ID.SELECT:{this._resetInsertionModeForSelect(o);return}case TAG_ID.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case TAG_ID.HTML:{this.insertionMode=this.headElement?InsertionMode.AFTER_HEAD:InsertionMode.BEFORE_HEAD;return}case TAG_ID.TD:case TAG_ID.TH:{if(o>0){this.insertionMode=InsertionMode.IN_CELL;return}break}case TAG_ID.HEAD:{if(o>0){this.insertionMode=InsertionMode.IN_HEAD;return}break}}this.insertionMode=InsertionMode.IN_BODY}_resetInsertionModeForSelect(o){if(o>0)for(let n=o-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===TAG_ID.TEMPLATE)break;if(r===TAG_ID.TABLE){this.insertionMode=InsertionMode.IN_SELECT_IN_TABLE;return}}this.insertionMode=InsertionMode.IN_SELECT}_isElementCausesFosterParenting(o){return TABLE_STRUCTURE_TAGS.has(o)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let o=this.openElements.stackTop;o>=0;o--){const n=this.openElements.items[o];switch(this.openElements.tagIDs[o]){case TAG_ID.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===NS$1.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case TAG_ID.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[o-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(o){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,o,n.beforeElement):this.treeAdapter.appendChild(n.parent,o)}_isSpecialElement(o,n){const r=this.treeAdapter.getNamespaceURI(o);return SPECIAL_ELEMENTS[r].has(n)}onCharacter(o){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){characterInForeignContent(this,o);return}switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,o);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,o);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,o);break}case InsertionMode.IN_HEAD:{tokenInHead(this,o);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,o);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,o);break}case InsertionMode.IN_BODY:case InsertionMode.IN_CAPTION:case InsertionMode.IN_CELL:case InsertionMode.IN_TEMPLATE:{characterInBody(this,o);break}case InsertionMode.TEXT:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:{this._insertCharacters(o);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,o);break}case InsertionMode.IN_TABLE_TEXT:{characterInTableText(this,o);break}case InsertionMode.IN_COLUMN_GROUP:{tokenInColumnGroup(this,o);break}case InsertionMode.AFTER_BODY:{tokenAfterBody(this,o);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,o);break}}}onNullCharacter(o){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){nullCharacterInForeignContent(this,o);return}switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,o);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,o);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,o);break}case InsertionMode.IN_HEAD:{tokenInHead(this,o);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,o);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,o);break}case InsertionMode.TEXT:{this._insertCharacters(o);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,o);break}case InsertionMode.IN_COLUMN_GROUP:{tokenInColumnGroup(this,o);break}case InsertionMode.AFTER_BODY:{tokenAfterBody(this,o);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,o);break}}}onComment(o){if(this.skipNextNewLine=!1,this.currentNotInHTML){appendComment(this,o);return}switch(this.insertionMode){case InsertionMode.INITIAL:case InsertionMode.BEFORE_HTML:case InsertionMode.BEFORE_HEAD:case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:case InsertionMode.IN_BODY:case InsertionMode.IN_TABLE:case InsertionMode.IN_CAPTION:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:case InsertionMode.IN_CELL:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:case InsertionMode.IN_TEMPLATE:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:{appendComment(this,o);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,o);break}case InsertionMode.AFTER_BODY:{appendCommentToRootHtmlElement(this,o);break}case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{appendCommentToDocument(this,o);break}}}onDoctype(o){switch(this.skipNextNewLine=!1,this.insertionMode){case InsertionMode.INITIAL:{doctypeInInitialMode(this,o);break}case InsertionMode.BEFORE_HEAD:case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:{this._err(o,ERR.misplacedDoctype);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,o);break}}}onStartTag(o){this.skipNextNewLine=!1,this.currentToken=o,this._processStartTag(o),o.selfClosing&&!o.ackSelfClosing&&this._err(o,ERR.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(o){this.shouldProcessStartTagTokenInForeignContent(o)?startTagInForeignContent(this,o):this._startTagOutsideForeignContent(o)}_startTagOutsideForeignContent(o){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,o);break}case InsertionMode.BEFORE_HTML:{startTagBeforeHtml(this,o);break}case InsertionMode.BEFORE_HEAD:{startTagBeforeHead(this,o);break}case InsertionMode.IN_HEAD:{startTagInHead(this,o);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{startTagInHeadNoScript(this,o);break}case InsertionMode.AFTER_HEAD:{startTagAfterHead(this,o);break}case InsertionMode.IN_BODY:{startTagInBody(this,o);break}case InsertionMode.IN_TABLE:{startTagInTable(this,o);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,o);break}case InsertionMode.IN_CAPTION:{startTagInCaption(this,o);break}case InsertionMode.IN_COLUMN_GROUP:{startTagInColumnGroup(this,o);break}case InsertionMode.IN_TABLE_BODY:{startTagInTableBody(this,o);break}case InsertionMode.IN_ROW:{startTagInRow(this,o);break}case InsertionMode.IN_CELL:{startTagInCell(this,o);break}case InsertionMode.IN_SELECT:{startTagInSelect(this,o);break}case InsertionMode.IN_SELECT_IN_TABLE:{startTagInSelectInTable(this,o);break}case InsertionMode.IN_TEMPLATE:{startTagInTemplate(this,o);break}case InsertionMode.AFTER_BODY:{startTagAfterBody(this,o);break}case InsertionMode.IN_FRAMESET:{startTagInFrameset(this,o);break}case InsertionMode.AFTER_FRAMESET:{startTagAfterFrameset(this,o);break}case InsertionMode.AFTER_AFTER_BODY:{startTagAfterAfterBody(this,o);break}case InsertionMode.AFTER_AFTER_FRAMESET:{startTagAfterAfterFrameset(this,o);break}}}onEndTag(o){this.skipNextNewLine=!1,this.currentToken=o,this.currentNotInHTML?endTagInForeignContent(this,o):this._endTagOutsideForeignContent(o)}_endTagOutsideForeignContent(o){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,o);break}case InsertionMode.BEFORE_HTML:{endTagBeforeHtml(this,o);break}case InsertionMode.BEFORE_HEAD:{endTagBeforeHead(this,o);break}case InsertionMode.IN_HEAD:{endTagInHead(this,o);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{endTagInHeadNoScript(this,o);break}case InsertionMode.AFTER_HEAD:{endTagAfterHead(this,o);break}case InsertionMode.IN_BODY:{endTagInBody(this,o);break}case InsertionMode.TEXT:{endTagInText(this,o);break}case InsertionMode.IN_TABLE:{endTagInTable(this,o);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,o);break}case InsertionMode.IN_CAPTION:{endTagInCaption(this,o);break}case InsertionMode.IN_COLUMN_GROUP:{endTagInColumnGroup(this,o);break}case InsertionMode.IN_TABLE_BODY:{endTagInTableBody(this,o);break}case InsertionMode.IN_ROW:{endTagInRow(this,o);break}case InsertionMode.IN_CELL:{endTagInCell(this,o);break}case InsertionMode.IN_SELECT:{endTagInSelect(this,o);break}case InsertionMode.IN_SELECT_IN_TABLE:{endTagInSelectInTable(this,o);break}case InsertionMode.IN_TEMPLATE:{endTagInTemplate(this,o);break}case InsertionMode.AFTER_BODY:{endTagAfterBody(this,o);break}case InsertionMode.IN_FRAMESET:{endTagInFrameset(this,o);break}case InsertionMode.AFTER_FRAMESET:{endTagAfterFrameset(this,o);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,o);break}}}onEof(o){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,o);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,o);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,o);break}case InsertionMode.IN_HEAD:{tokenInHead(this,o);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,o);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,o);break}case InsertionMode.IN_BODY:case InsertionMode.IN_TABLE:case InsertionMode.IN_CAPTION:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:case InsertionMode.IN_CELL:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:{eofInBody(this,o);break}case InsertionMode.TEXT:{eofInText(this,o);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,o);break}case InsertionMode.IN_TEMPLATE:{eofInTemplate(this,o);break}case InsertionMode.AFTER_BODY:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{stopParsing(this,o);break}}}onWhitespaceCharacter(o){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,o.chars.charCodeAt(0)===CODE_POINTS.LINE_FEED)){if(o.chars.length===1)return;o.chars=o.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(o);return}switch(this.insertionMode){case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:case InsertionMode.TEXT:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:{this._insertCharacters(o);break}case InsertionMode.IN_BODY:case InsertionMode.IN_CAPTION:case InsertionMode.IN_CELL:case InsertionMode.IN_TEMPLATE:case InsertionMode.AFTER_BODY:case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{whitespaceCharacterInBody(this,o);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,o);break}case InsertionMode.IN_TABLE_TEXT:{whitespaceCharacterInTableText(this,o);break}}}};function aaObtainFormattingElementEntry(t,o){let n=t.activeFormattingElements.getElementEntryInScopeWithTagName(o.tagName);return n?t.openElements.contains(n.element)?t.openElements.hasInScope(o.tagID)||(n=null):(t.activeFormattingElements.removeEntry(n),n=null):genericEndTagInBody(t,o),n}function aaObtainFurthestBlock(t,o){let n=null,r=t.openElements.stackTop;for(;r>=0;r--){const s=t.openElements.items[r];if(s===o.element)break;t._isSpecialElement(s,t.openElements.tagIDs[r])&&(n=s)}return n||(t.openElements.shortenToLength(r<0?0:r),t.activeFormattingElements.removeEntry(o)),n}function aaInnerLoop(t,o,n){let r=o,s=t.openElements.getCommonAncestor(o);for(let l=0,d=s;d!==n;l++,d=s){s=t.openElements.getCommonAncestor(d);const m=t.activeFormattingElements.getElementEntry(d),_=m&&l>=AA_INNER_LOOP_ITER;!m||_?(_&&t.activeFormattingElements.removeEntry(m),t.openElements.remove(d)):(d=aaRecreateElementFromEntry(t,m),r===o&&(t.activeFormattingElements.bookmark=m),t.treeAdapter.detachNode(r),t.treeAdapter.appendChild(d,r),r=d)}return r}function aaRecreateElementFromEntry(t,o){const n=t.treeAdapter.getNamespaceURI(o.element),r=t.treeAdapter.createElement(o.token.tagName,n,o.token.attrs);return t.openElements.replace(o.element,r),o.element=r,r}function aaInsertLastNodeInCommonAncestor(t,o,n){const r=t.treeAdapter.getTagName(o),s=getTagID(r);if(t._isElementCausesFosterParenting(s))t._fosterParentElement(n);else{const l=t.treeAdapter.getNamespaceURI(o);s===TAG_ID.TEMPLATE&&l===NS$1.HTML&&(o=t.treeAdapter.getTemplateContent(o)),t.treeAdapter.appendChild(o,n)}}function aaReplaceFormattingElement(t,o,n){const r=t.treeAdapter.getNamespaceURI(n.element),{token:s}=n,l=t.treeAdapter.createElement(s.tagName,r,s.attrs);t._adoptNodes(o,l),t.treeAdapter.appendChild(o,l),t.activeFormattingElements.insertElementAfterBookmark(l,s),t.activeFormattingElements.removeEntry(n),t.openElements.remove(n.element),t.openElements.insertAfter(o,l,s.tagID)}function callAdoptionAgency(t,o){for(let n=0;n=n;r--)t._setEndLocation(t.openElements.items[r],o);if(!t.fragmentContext&&t.openElements.stackTop>=0){const r=t.openElements.items[0],s=t.treeAdapter.getNodeSourceCodeLocation(r);if(s&&!s.endTag&&(t._setEndLocation(r,o),t.openElements.stackTop>=1)){const l=t.openElements.items[1],d=t.treeAdapter.getNodeSourceCodeLocation(l);d&&!d.endTag&&t._setEndLocation(l,o)}}}}function doctypeInInitialMode(t,o){t._setDocumentType(o);const n=o.forceQuirks?DOCUMENT_MODE.QUIRKS:getDocumentMode(o);isConforming(o)||t._err(o,ERR.nonConformingDoctype),t.treeAdapter.setDocumentMode(t.document,n),t.insertionMode=InsertionMode.BEFORE_HTML}function tokenInInitialMode(t,o){t._err(o,ERR.missingDoctype,!0),t.treeAdapter.setDocumentMode(t.document,DOCUMENT_MODE.QUIRKS),t.insertionMode=InsertionMode.BEFORE_HTML,t._processToken(o)}function startTagBeforeHtml(t,o){o.tagID===TAG_ID.HTML?(t._insertElement(o,NS$1.HTML),t.insertionMode=InsertionMode.BEFORE_HEAD):tokenBeforeHtml(t,o)}function endTagBeforeHtml(t,o){const n=o.tagID;(n===TAG_ID.HTML||n===TAG_ID.HEAD||n===TAG_ID.BODY||n===TAG_ID.BR)&&tokenBeforeHtml(t,o)}function tokenBeforeHtml(t,o){t._insertFakeRootElement(),t.insertionMode=InsertionMode.BEFORE_HEAD,t._processToken(o)}function startTagBeforeHead(t,o){switch(o.tagID){case TAG_ID.HTML:{startTagInBody(t,o);break}case TAG_ID.HEAD:{t._insertElement(o,NS$1.HTML),t.headElement=t.openElements.current,t.insertionMode=InsertionMode.IN_HEAD;break}default:tokenBeforeHead(t,o)}}function endTagBeforeHead(t,o){const n=o.tagID;n===TAG_ID.HEAD||n===TAG_ID.BODY||n===TAG_ID.HTML||n===TAG_ID.BR?tokenBeforeHead(t,o):t._err(o,ERR.endTagWithoutMatchingOpenElement)}function tokenBeforeHead(t,o){t._insertFakeElement(TAG_NAMES.HEAD,TAG_ID.HEAD),t.headElement=t.openElements.current,t.insertionMode=InsertionMode.IN_HEAD,t._processToken(o)}function startTagInHead(t,o){switch(o.tagID){case TAG_ID.HTML:{startTagInBody(t,o);break}case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:{t._appendElement(o,NS$1.HTML),o.ackSelfClosing=!0;break}case TAG_ID.TITLE:{t._switchToTextParsing(o,TokenizerMode.RCDATA);break}case TAG_ID.NOSCRIPT:{t.options.scriptingEnabled?t._switchToTextParsing(o,TokenizerMode.RAWTEXT):(t._insertElement(o,NS$1.HTML),t.insertionMode=InsertionMode.IN_HEAD_NO_SCRIPT);break}case TAG_ID.NOFRAMES:case TAG_ID.STYLE:{t._switchToTextParsing(o,TokenizerMode.RAWTEXT);break}case TAG_ID.SCRIPT:{t._switchToTextParsing(o,TokenizerMode.SCRIPT_DATA);break}case TAG_ID.TEMPLATE:{t._insertTemplate(o),t.activeFormattingElements.insertMarker(),t.framesetOk=!1,t.insertionMode=InsertionMode.IN_TEMPLATE,t.tmplInsertionModeStack.unshift(InsertionMode.IN_TEMPLATE);break}case TAG_ID.HEAD:{t._err(o,ERR.misplacedStartTagForHeadElement);break}default:tokenInHead(t,o)}}function endTagInHead(t,o){switch(o.tagID){case TAG_ID.HEAD:{t.openElements.pop(),t.insertionMode=InsertionMode.AFTER_HEAD;break}case TAG_ID.BODY:case TAG_ID.BR:case TAG_ID.HTML:{tokenInHead(t,o);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(t,o);break}default:t._err(o,ERR.endTagWithoutMatchingOpenElement)}}function templateEndTagInHead(t,o){t.openElements.tmplCount>0?(t.openElements.generateImpliedEndTagsThoroughly(),t.openElements.currentTagId!==TAG_ID.TEMPLATE&&t._err(o,ERR.closingOfElementWithOpenChildElements),t.openElements.popUntilTagNamePopped(TAG_ID.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode()):t._err(o,ERR.endTagWithoutMatchingOpenElement)}function tokenInHead(t,o){t.openElements.pop(),t.insertionMode=InsertionMode.AFTER_HEAD,t._processToken(o)}function startTagInHeadNoScript(t,o){switch(o.tagID){case TAG_ID.HTML:{startTagInBody(t,o);break}case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.HEAD:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.STYLE:{startTagInHead(t,o);break}case TAG_ID.NOSCRIPT:{t._err(o,ERR.nestedNoscriptInHead);break}default:tokenInHeadNoScript(t,o)}}function endTagInHeadNoScript(t,o){switch(o.tagID){case TAG_ID.NOSCRIPT:{t.openElements.pop(),t.insertionMode=InsertionMode.IN_HEAD;break}case TAG_ID.BR:{tokenInHeadNoScript(t,o);break}default:t._err(o,ERR.endTagWithoutMatchingOpenElement)}}function tokenInHeadNoScript(t,o){const n=o.type===TokenType.EOF?ERR.openElementsLeftAfterEof:ERR.disallowedContentInNoscriptInHead;t._err(o,n),t.openElements.pop(),t.insertionMode=InsertionMode.IN_HEAD,t._processToken(o)}function startTagAfterHead(t,o){switch(o.tagID){case TAG_ID.HTML:{startTagInBody(t,o);break}case TAG_ID.BODY:{t._insertElement(o,NS$1.HTML),t.framesetOk=!1,t.insertionMode=InsertionMode.IN_BODY;break}case TAG_ID.FRAMESET:{t._insertElement(o,NS$1.HTML),t.insertionMode=InsertionMode.IN_FRAMESET;break}case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.SCRIPT:case TAG_ID.STYLE:case TAG_ID.TEMPLATE:case TAG_ID.TITLE:{t._err(o,ERR.abandonedHeadElementChild),t.openElements.push(t.headElement,TAG_ID.HEAD),startTagInHead(t,o),t.openElements.remove(t.headElement);break}case TAG_ID.HEAD:{t._err(o,ERR.misplacedStartTagForHeadElement);break}default:tokenAfterHead(t,o)}}function endTagAfterHead(t,o){switch(o.tagID){case TAG_ID.BODY:case TAG_ID.HTML:case TAG_ID.BR:{tokenAfterHead(t,o);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(t,o);break}default:t._err(o,ERR.endTagWithoutMatchingOpenElement)}}function tokenAfterHead(t,o){t._insertFakeElement(TAG_NAMES.BODY,TAG_ID.BODY),t.insertionMode=InsertionMode.IN_BODY,modeInBody(t,o)}function modeInBody(t,o){switch(o.type){case TokenType.CHARACTER:{characterInBody(t,o);break}case TokenType.WHITESPACE_CHARACTER:{whitespaceCharacterInBody(t,o);break}case TokenType.COMMENT:{appendComment(t,o);break}case TokenType.START_TAG:{startTagInBody(t,o);break}case TokenType.END_TAG:{endTagInBody(t,o);break}case TokenType.EOF:{eofInBody(t,o);break}}}function whitespaceCharacterInBody(t,o){t._reconstructActiveFormattingElements(),t._insertCharacters(o)}function characterInBody(t,o){t._reconstructActiveFormattingElements(),t._insertCharacters(o),t.framesetOk=!1}function htmlStartTagInBody(t,o){t.openElements.tmplCount===0&&t.treeAdapter.adoptAttributes(t.openElements.items[0],o.attrs)}function bodyStartTagInBody(t,o){const n=t.openElements.tryPeekProperlyNestedBodyElement();n&&t.openElements.tmplCount===0&&(t.framesetOk=!1,t.treeAdapter.adoptAttributes(n,o.attrs))}function framesetStartTagInBody(t,o){const n=t.openElements.tryPeekProperlyNestedBodyElement();t.framesetOk&&n&&(t.treeAdapter.detachNode(n),t.openElements.popAllUpToHtmlElement(),t._insertElement(o,NS$1.HTML),t.insertionMode=InsertionMode.IN_FRAMESET)}function addressStartTagInBody(t,o){t.openElements.hasInButtonScope(TAG_ID.P)&&t._closePElement(),t._insertElement(o,NS$1.HTML)}function numberedHeaderStartTagInBody(t,o){t.openElements.hasInButtonScope(TAG_ID.P)&&t._closePElement(),isNumberedHeader(t.openElements.currentTagId)&&t.openElements.pop(),t._insertElement(o,NS$1.HTML)}function preStartTagInBody(t,o){t.openElements.hasInButtonScope(TAG_ID.P)&&t._closePElement(),t._insertElement(o,NS$1.HTML),t.skipNextNewLine=!0,t.framesetOk=!1}function formStartTagInBody(t,o){const n=t.openElements.tmplCount>0;(!t.formElement||n)&&(t.openElements.hasInButtonScope(TAG_ID.P)&&t._closePElement(),t._insertElement(o,NS$1.HTML),n||(t.formElement=t.openElements.current))}function listItemStartTagInBody(t,o){t.framesetOk=!1;const n=o.tagID;for(let r=t.openElements.stackTop;r>=0;r--){const s=t.openElements.tagIDs[r];if(n===TAG_ID.LI&&s===TAG_ID.LI||(n===TAG_ID.DD||n===TAG_ID.DT)&&(s===TAG_ID.DD||s===TAG_ID.DT)){t.openElements.generateImpliedEndTagsWithExclusion(s),t.openElements.popUntilTagNamePopped(s);break}if(s!==TAG_ID.ADDRESS&&s!==TAG_ID.DIV&&s!==TAG_ID.P&&t._isSpecialElement(t.openElements.items[r],s))break}t.openElements.hasInButtonScope(TAG_ID.P)&&t._closePElement(),t._insertElement(o,NS$1.HTML)}function plaintextStartTagInBody(t,o){t.openElements.hasInButtonScope(TAG_ID.P)&&t._closePElement(),t._insertElement(o,NS$1.HTML),t.tokenizer.state=TokenizerMode.PLAINTEXT}function buttonStartTagInBody(t,o){t.openElements.hasInScope(TAG_ID.BUTTON)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(TAG_ID.BUTTON)),t._reconstructActiveFormattingElements(),t._insertElement(o,NS$1.HTML),t.framesetOk=!1}function aStartTagInBody(t,o){const n=t.activeFormattingElements.getElementEntryInScopeWithTagName(TAG_NAMES.A);n&&(callAdoptionAgency(t,o),t.openElements.remove(n.element),t.activeFormattingElements.removeEntry(n)),t._reconstructActiveFormattingElements(),t._insertElement(o,NS$1.HTML),t.activeFormattingElements.pushElement(t.openElements.current,o)}function bStartTagInBody(t,o){t._reconstructActiveFormattingElements(),t._insertElement(o,NS$1.HTML),t.activeFormattingElements.pushElement(t.openElements.current,o)}function nobrStartTagInBody(t,o){t._reconstructActiveFormattingElements(),t.openElements.hasInScope(TAG_ID.NOBR)&&(callAdoptionAgency(t,o),t._reconstructActiveFormattingElements()),t._insertElement(o,NS$1.HTML),t.activeFormattingElements.pushElement(t.openElements.current,o)}function appletStartTagInBody(t,o){t._reconstructActiveFormattingElements(),t._insertElement(o,NS$1.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1}function tableStartTagInBody(t,o){t.treeAdapter.getDocumentMode(t.document)!==DOCUMENT_MODE.QUIRKS&&t.openElements.hasInButtonScope(TAG_ID.P)&&t._closePElement(),t._insertElement(o,NS$1.HTML),t.framesetOk=!1,t.insertionMode=InsertionMode.IN_TABLE}function areaStartTagInBody(t,o){t._reconstructActiveFormattingElements(),t._appendElement(o,NS$1.HTML),t.framesetOk=!1,o.ackSelfClosing=!0}function isHiddenInput(t){const o=getTokenAttr(t,ATTRS.TYPE);return o!=null&&o.toLowerCase()===HIDDEN_INPUT_TYPE}function inputStartTagInBody(t,o){t._reconstructActiveFormattingElements(),t._appendElement(o,NS$1.HTML),isHiddenInput(o)||(t.framesetOk=!1),o.ackSelfClosing=!0}function paramStartTagInBody(t,o){t._appendElement(o,NS$1.HTML),o.ackSelfClosing=!0}function hrStartTagInBody(t,o){t.openElements.hasInButtonScope(TAG_ID.P)&&t._closePElement(),t._appendElement(o,NS$1.HTML),t.framesetOk=!1,o.ackSelfClosing=!0}function imageStartTagInBody(t,o){o.tagName=TAG_NAMES.IMG,o.tagID=TAG_ID.IMG,areaStartTagInBody(t,o)}function textareaStartTagInBody(t,o){t._insertElement(o,NS$1.HTML),t.skipNextNewLine=!0,t.tokenizer.state=TokenizerMode.RCDATA,t.originalInsertionMode=t.insertionMode,t.framesetOk=!1,t.insertionMode=InsertionMode.TEXT}function xmpStartTagInBody(t,o){t.openElements.hasInButtonScope(TAG_ID.P)&&t._closePElement(),t._reconstructActiveFormattingElements(),t.framesetOk=!1,t._switchToTextParsing(o,TokenizerMode.RAWTEXT)}function iframeStartTagInBody(t,o){t.framesetOk=!1,t._switchToTextParsing(o,TokenizerMode.RAWTEXT)}function noembedStartTagInBody(t,o){t._switchToTextParsing(o,TokenizerMode.RAWTEXT)}function selectStartTagInBody(t,o){t._reconstructActiveFormattingElements(),t._insertElement(o,NS$1.HTML),t.framesetOk=!1,t.insertionMode=t.insertionMode===InsertionMode.IN_TABLE||t.insertionMode===InsertionMode.IN_CAPTION||t.insertionMode===InsertionMode.IN_TABLE_BODY||t.insertionMode===InsertionMode.IN_ROW||t.insertionMode===InsertionMode.IN_CELL?InsertionMode.IN_SELECT_IN_TABLE:InsertionMode.IN_SELECT}function optgroupStartTagInBody(t,o){t.openElements.currentTagId===TAG_ID.OPTION&&t.openElements.pop(),t._reconstructActiveFormattingElements(),t._insertElement(o,NS$1.HTML)}function rbStartTagInBody(t,o){t.openElements.hasInScope(TAG_ID.RUBY)&&t.openElements.generateImpliedEndTags(),t._insertElement(o,NS$1.HTML)}function rtStartTagInBody(t,o){t.openElements.hasInScope(TAG_ID.RUBY)&&t.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.RTC),t._insertElement(o,NS$1.HTML)}function mathStartTagInBody(t,o){t._reconstructActiveFormattingElements(),adjustTokenMathMLAttrs(o),adjustTokenXMLAttrs(o),o.selfClosing?t._appendElement(o,NS$1.MATHML):t._insertElement(o,NS$1.MATHML),o.ackSelfClosing=!0}function svgStartTagInBody(t,o){t._reconstructActiveFormattingElements(),adjustTokenSVGAttrs(o),adjustTokenXMLAttrs(o),o.selfClosing?t._appendElement(o,NS$1.SVG):t._insertElement(o,NS$1.SVG),o.ackSelfClosing=!0}function genericStartTagInBody(t,o){t._reconstructActiveFormattingElements(),t._insertElement(o,NS$1.HTML)}function startTagInBody(t,o){switch(o.tagID){case TAG_ID.I:case TAG_ID.S:case TAG_ID.B:case TAG_ID.U:case TAG_ID.EM:case TAG_ID.TT:case TAG_ID.BIG:case TAG_ID.CODE:case TAG_ID.FONT:case TAG_ID.SMALL:case TAG_ID.STRIKE:case TAG_ID.STRONG:{bStartTagInBody(t,o);break}case TAG_ID.A:{aStartTagInBody(t,o);break}case TAG_ID.H1:case TAG_ID.H2:case TAG_ID.H3:case TAG_ID.H4:case TAG_ID.H5:case TAG_ID.H6:{numberedHeaderStartTagInBody(t,o);break}case TAG_ID.P:case TAG_ID.DL:case TAG_ID.OL:case TAG_ID.UL:case TAG_ID.DIV:case TAG_ID.DIR:case TAG_ID.NAV:case TAG_ID.MAIN:case TAG_ID.MENU:case TAG_ID.ASIDE:case TAG_ID.CENTER:case TAG_ID.FIGURE:case TAG_ID.FOOTER:case TAG_ID.HEADER:case TAG_ID.HGROUP:case TAG_ID.DIALOG:case TAG_ID.DETAILS:case TAG_ID.ADDRESS:case TAG_ID.ARTICLE:case TAG_ID.SECTION:case TAG_ID.SUMMARY:case TAG_ID.FIELDSET:case TAG_ID.BLOCKQUOTE:case TAG_ID.FIGCAPTION:{addressStartTagInBody(t,o);break}case TAG_ID.LI:case TAG_ID.DD:case TAG_ID.DT:{listItemStartTagInBody(t,o);break}case TAG_ID.BR:case TAG_ID.IMG:case TAG_ID.WBR:case TAG_ID.AREA:case TAG_ID.EMBED:case TAG_ID.KEYGEN:{areaStartTagInBody(t,o);break}case TAG_ID.HR:{hrStartTagInBody(t,o);break}case TAG_ID.RB:case TAG_ID.RTC:{rbStartTagInBody(t,o);break}case TAG_ID.RT:case TAG_ID.RP:{rtStartTagInBody(t,o);break}case TAG_ID.PRE:case TAG_ID.LISTING:{preStartTagInBody(t,o);break}case TAG_ID.XMP:{xmpStartTagInBody(t,o);break}case TAG_ID.SVG:{svgStartTagInBody(t,o);break}case TAG_ID.HTML:{htmlStartTagInBody(t,o);break}case TAG_ID.BASE:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.STYLE:case TAG_ID.TITLE:case TAG_ID.SCRIPT:case TAG_ID.BGSOUND:case TAG_ID.BASEFONT:case TAG_ID.TEMPLATE:{startTagInHead(t,o);break}case TAG_ID.BODY:{bodyStartTagInBody(t,o);break}case TAG_ID.FORM:{formStartTagInBody(t,o);break}case TAG_ID.NOBR:{nobrStartTagInBody(t,o);break}case TAG_ID.MATH:{mathStartTagInBody(t,o);break}case TAG_ID.TABLE:{tableStartTagInBody(t,o);break}case TAG_ID.INPUT:{inputStartTagInBody(t,o);break}case TAG_ID.PARAM:case TAG_ID.TRACK:case TAG_ID.SOURCE:{paramStartTagInBody(t,o);break}case TAG_ID.IMAGE:{imageStartTagInBody(t,o);break}case TAG_ID.BUTTON:{buttonStartTagInBody(t,o);break}case TAG_ID.APPLET:case TAG_ID.OBJECT:case TAG_ID.MARQUEE:{appletStartTagInBody(t,o);break}case TAG_ID.IFRAME:{iframeStartTagInBody(t,o);break}case TAG_ID.SELECT:{selectStartTagInBody(t,o);break}case TAG_ID.OPTION:case TAG_ID.OPTGROUP:{optgroupStartTagInBody(t,o);break}case TAG_ID.NOEMBED:{noembedStartTagInBody(t,o);break}case TAG_ID.FRAMESET:{framesetStartTagInBody(t,o);break}case TAG_ID.TEXTAREA:{textareaStartTagInBody(t,o);break}case TAG_ID.NOSCRIPT:{t.options.scriptingEnabled?noembedStartTagInBody(t,o):genericStartTagInBody(t,o);break}case TAG_ID.PLAINTEXT:{plaintextStartTagInBody(t,o);break}case TAG_ID.COL:case TAG_ID.TH:case TAG_ID.TD:case TAG_ID.TR:case TAG_ID.HEAD:case TAG_ID.FRAME:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:case TAG_ID.CAPTION:case TAG_ID.COLGROUP:break;default:genericStartTagInBody(t,o)}}function bodyEndTagInBody(t,o){if(t.openElements.hasInScope(TAG_ID.BODY)&&(t.insertionMode=InsertionMode.AFTER_BODY,t.options.sourceCodeLocationInfo)){const n=t.openElements.tryPeekProperlyNestedBodyElement();n&&t._setEndLocation(n,o)}}function htmlEndTagInBody(t,o){t.openElements.hasInScope(TAG_ID.BODY)&&(t.insertionMode=InsertionMode.AFTER_BODY,endTagAfterBody(t,o))}function addressEndTagInBody(t,o){const n=o.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n))}function formEndTagInBody(t){const o=t.openElements.tmplCount>0,{formElement:n}=t;o||(t.formElement=null),(n||o)&&t.openElements.hasInScope(TAG_ID.FORM)&&(t.openElements.generateImpliedEndTags(),o?t.openElements.popUntilTagNamePopped(TAG_ID.FORM):n&&t.openElements.remove(n))}function pEndTagInBody(t){t.openElements.hasInButtonScope(TAG_ID.P)||t._insertFakeElement(TAG_NAMES.P,TAG_ID.P),t._closePElement()}function liEndTagInBody(t){t.openElements.hasInListItemScope(TAG_ID.LI)&&(t.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.LI),t.openElements.popUntilTagNamePopped(TAG_ID.LI))}function ddEndTagInBody(t,o){const n=o.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTagsWithExclusion(n),t.openElements.popUntilTagNamePopped(n))}function numberedHeaderEndTagInBody(t){t.openElements.hasNumberedHeaderInScope()&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilNumberedHeaderPopped())}function appletEndTagInBody(t,o){const n=o.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker())}function brEndTagInBody(t){t._reconstructActiveFormattingElements(),t._insertFakeElement(TAG_NAMES.BR,TAG_ID.BR),t.openElements.pop(),t.framesetOk=!1}function genericEndTagInBody(t,o){const n=o.tagName,r=o.tagID;for(let s=t.openElements.stackTop;s>0;s--){const l=t.openElements.items[s],d=t.openElements.tagIDs[s];if(r===d&&(r!==TAG_ID.UNKNOWN||t.treeAdapter.getTagName(l)===n)){t.openElements.generateImpliedEndTagsWithExclusion(r),t.openElements.stackTop>=s&&t.openElements.shortenToLength(s);break}if(t._isSpecialElement(l,d))break}}function endTagInBody(t,o){switch(o.tagID){case TAG_ID.A:case TAG_ID.B:case TAG_ID.I:case TAG_ID.S:case TAG_ID.U:case TAG_ID.EM:case TAG_ID.TT:case TAG_ID.BIG:case TAG_ID.CODE:case TAG_ID.FONT:case TAG_ID.NOBR:case TAG_ID.SMALL:case TAG_ID.STRIKE:case TAG_ID.STRONG:{callAdoptionAgency(t,o);break}case TAG_ID.P:{pEndTagInBody(t);break}case TAG_ID.DL:case TAG_ID.UL:case TAG_ID.OL:case TAG_ID.DIR:case TAG_ID.DIV:case TAG_ID.NAV:case TAG_ID.PRE:case TAG_ID.MAIN:case TAG_ID.MENU:case TAG_ID.ASIDE:case TAG_ID.BUTTON:case TAG_ID.CENTER:case TAG_ID.FIGURE:case TAG_ID.FOOTER:case TAG_ID.HEADER:case TAG_ID.HGROUP:case TAG_ID.DIALOG:case TAG_ID.ADDRESS:case TAG_ID.ARTICLE:case TAG_ID.DETAILS:case TAG_ID.SECTION:case TAG_ID.SUMMARY:case TAG_ID.LISTING:case TAG_ID.FIELDSET:case TAG_ID.BLOCKQUOTE:case TAG_ID.FIGCAPTION:{addressEndTagInBody(t,o);break}case TAG_ID.LI:{liEndTagInBody(t);break}case TAG_ID.DD:case TAG_ID.DT:{ddEndTagInBody(t,o);break}case TAG_ID.H1:case TAG_ID.H2:case TAG_ID.H3:case TAG_ID.H4:case TAG_ID.H5:case TAG_ID.H6:{numberedHeaderEndTagInBody(t);break}case TAG_ID.BR:{brEndTagInBody(t);break}case TAG_ID.BODY:{bodyEndTagInBody(t,o);break}case TAG_ID.HTML:{htmlEndTagInBody(t,o);break}case TAG_ID.FORM:{formEndTagInBody(t);break}case TAG_ID.APPLET:case TAG_ID.OBJECT:case TAG_ID.MARQUEE:{appletEndTagInBody(t,o);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(t,o);break}default:genericEndTagInBody(t,o)}}function eofInBody(t,o){t.tmplInsertionModeStack.length>0?eofInTemplate(t,o):stopParsing(t,o)}function endTagInText(t,o){var n;o.tagID===TAG_ID.SCRIPT&&((n=t.scriptHandler)===null||n===void 0||n.call(t,t.openElements.current)),t.openElements.pop(),t.insertionMode=t.originalInsertionMode}function eofInText(t,o){t._err(o,ERR.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(o)}function characterInTable(t,o){if(TABLE_STRUCTURE_TAGS.has(t.openElements.currentTagId))switch(t.pendingCharacterTokens.length=0,t.hasNonWhitespacePendingCharacterToken=!1,t.originalInsertionMode=t.insertionMode,t.insertionMode=InsertionMode.IN_TABLE_TEXT,o.type){case TokenType.CHARACTER:{characterInTableText(t,o);break}case TokenType.WHITESPACE_CHARACTER:{whitespaceCharacterInTableText(t,o);break}}else tokenInTable(t,o)}function captionStartTagInTable(t,o){t.openElements.clearBackToTableContext(),t.activeFormattingElements.insertMarker(),t._insertElement(o,NS$1.HTML),t.insertionMode=InsertionMode.IN_CAPTION}function colgroupStartTagInTable(t,o){t.openElements.clearBackToTableContext(),t._insertElement(o,NS$1.HTML),t.insertionMode=InsertionMode.IN_COLUMN_GROUP}function colStartTagInTable(t,o){t.openElements.clearBackToTableContext(),t._insertFakeElement(TAG_NAMES.COLGROUP,TAG_ID.COLGROUP),t.insertionMode=InsertionMode.IN_COLUMN_GROUP,startTagInColumnGroup(t,o)}function tbodyStartTagInTable(t,o){t.openElements.clearBackToTableContext(),t._insertElement(o,NS$1.HTML),t.insertionMode=InsertionMode.IN_TABLE_BODY}function tdStartTagInTable(t,o){t.openElements.clearBackToTableContext(),t._insertFakeElement(TAG_NAMES.TBODY,TAG_ID.TBODY),t.insertionMode=InsertionMode.IN_TABLE_BODY,startTagInTableBody(t,o)}function tableStartTagInTable(t,o){t.openElements.hasInTableScope(TAG_ID.TABLE)&&(t.openElements.popUntilTagNamePopped(TAG_ID.TABLE),t._resetInsertionMode(),t._processStartTag(o))}function inputStartTagInTable(t,o){isHiddenInput(o)?t._appendElement(o,NS$1.HTML):tokenInTable(t,o),o.ackSelfClosing=!0}function formStartTagInTable(t,o){!t.formElement&&t.openElements.tmplCount===0&&(t._insertElement(o,NS$1.HTML),t.formElement=t.openElements.current,t.openElements.pop())}function startTagInTable(t,o){switch(o.tagID){case TAG_ID.TD:case TAG_ID.TH:case TAG_ID.TR:{tdStartTagInTable(t,o);break}case TAG_ID.STYLE:case TAG_ID.SCRIPT:case TAG_ID.TEMPLATE:{startTagInHead(t,o);break}case TAG_ID.COL:{colStartTagInTable(t,o);break}case TAG_ID.FORM:{formStartTagInTable(t,o);break}case TAG_ID.TABLE:{tableStartTagInTable(t,o);break}case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:{tbodyStartTagInTable(t,o);break}case TAG_ID.INPUT:{inputStartTagInTable(t,o);break}case TAG_ID.CAPTION:{captionStartTagInTable(t,o);break}case TAG_ID.COLGROUP:{colgroupStartTagInTable(t,o);break}default:tokenInTable(t,o)}}function endTagInTable(t,o){switch(o.tagID){case TAG_ID.TABLE:{t.openElements.hasInTableScope(TAG_ID.TABLE)&&(t.openElements.popUntilTagNamePopped(TAG_ID.TABLE),t._resetInsertionMode());break}case TAG_ID.TEMPLATE:{templateEndTagInHead(t,o);break}case TAG_ID.BODY:case TAG_ID.CAPTION:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.HTML:case TAG_ID.TBODY:case TAG_ID.TD:case TAG_ID.TFOOT:case TAG_ID.TH:case TAG_ID.THEAD:case TAG_ID.TR:break;default:tokenInTable(t,o)}}function tokenInTable(t,o){const n=t.fosterParentingEnabled;t.fosterParentingEnabled=!0,modeInBody(t,o),t.fosterParentingEnabled=n}function whitespaceCharacterInTableText(t,o){t.pendingCharacterTokens.push(o)}function characterInTableText(t,o){t.pendingCharacterTokens.push(o),t.hasNonWhitespacePendingCharacterToken=!0}function tokenInTableText(t,o){let n=0;if(t.hasNonWhitespacePendingCharacterToken)for(;n0&&t.openElements.currentTagId===TAG_ID.OPTION&&t.openElements.tagIDs[t.openElements.stackTop-1]===TAG_ID.OPTGROUP&&t.openElements.pop(),t.openElements.currentTagId===TAG_ID.OPTGROUP&&t.openElements.pop();break}case TAG_ID.OPTION:{t.openElements.currentTagId===TAG_ID.OPTION&&t.openElements.pop();break}case TAG_ID.SELECT:{t.openElements.hasInSelectScope(TAG_ID.SELECT)&&(t.openElements.popUntilTagNamePopped(TAG_ID.SELECT),t._resetInsertionMode());break}case TAG_ID.TEMPLATE:{templateEndTagInHead(t,o);break}}}function startTagInSelectInTable(t,o){const n=o.tagID;n===TAG_ID.CAPTION||n===TAG_ID.TABLE||n===TAG_ID.TBODY||n===TAG_ID.TFOOT||n===TAG_ID.THEAD||n===TAG_ID.TR||n===TAG_ID.TD||n===TAG_ID.TH?(t.openElements.popUntilTagNamePopped(TAG_ID.SELECT),t._resetInsertionMode(),t._processStartTag(o)):startTagInSelect(t,o)}function endTagInSelectInTable(t,o){const n=o.tagID;n===TAG_ID.CAPTION||n===TAG_ID.TABLE||n===TAG_ID.TBODY||n===TAG_ID.TFOOT||n===TAG_ID.THEAD||n===TAG_ID.TR||n===TAG_ID.TD||n===TAG_ID.TH?t.openElements.hasInTableScope(n)&&(t.openElements.popUntilTagNamePopped(TAG_ID.SELECT),t._resetInsertionMode(),t.onEndTag(o)):endTagInSelect(t,o)}function startTagInTemplate(t,o){switch(o.tagID){case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.SCRIPT:case TAG_ID.STYLE:case TAG_ID.TEMPLATE:case TAG_ID.TITLE:{startTagInHead(t,o);break}case TAG_ID.CAPTION:case TAG_ID.COLGROUP:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:{t.tmplInsertionModeStack[0]=InsertionMode.IN_TABLE,t.insertionMode=InsertionMode.IN_TABLE,startTagInTable(t,o);break}case TAG_ID.COL:{t.tmplInsertionModeStack[0]=InsertionMode.IN_COLUMN_GROUP,t.insertionMode=InsertionMode.IN_COLUMN_GROUP,startTagInColumnGroup(t,o);break}case TAG_ID.TR:{t.tmplInsertionModeStack[0]=InsertionMode.IN_TABLE_BODY,t.insertionMode=InsertionMode.IN_TABLE_BODY,startTagInTableBody(t,o);break}case TAG_ID.TD:case TAG_ID.TH:{t.tmplInsertionModeStack[0]=InsertionMode.IN_ROW,t.insertionMode=InsertionMode.IN_ROW,startTagInRow(t,o);break}default:t.tmplInsertionModeStack[0]=InsertionMode.IN_BODY,t.insertionMode=InsertionMode.IN_BODY,startTagInBody(t,o)}}function endTagInTemplate(t,o){o.tagID===TAG_ID.TEMPLATE&&templateEndTagInHead(t,o)}function eofInTemplate(t,o){t.openElements.tmplCount>0?(t.openElements.popUntilTagNamePopped(TAG_ID.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode(),t.onEof(o)):stopParsing(t,o)}function startTagAfterBody(t,o){o.tagID===TAG_ID.HTML?startTagInBody(t,o):tokenAfterBody(t,o)}function endTagAfterBody(t,o){var n;if(o.tagID===TAG_ID.HTML){if(t.fragmentContext||(t.insertionMode=InsertionMode.AFTER_AFTER_BODY),t.options.sourceCodeLocationInfo&&t.openElements.tagIDs[0]===TAG_ID.HTML){t._setEndLocation(t.openElements.items[0],o);const r=t.openElements.items[1];r&&!(!((n=t.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&t._setEndLocation(r,o)}}else tokenAfterBody(t,o)}function tokenAfterBody(t,o){t.insertionMode=InsertionMode.IN_BODY,modeInBody(t,o)}function startTagInFrameset(t,o){switch(o.tagID){case TAG_ID.HTML:{startTagInBody(t,o);break}case TAG_ID.FRAMESET:{t._insertElement(o,NS$1.HTML);break}case TAG_ID.FRAME:{t._appendElement(o,NS$1.HTML),o.ackSelfClosing=!0;break}case TAG_ID.NOFRAMES:{startTagInHead(t,o);break}}}function endTagInFrameset(t,o){o.tagID===TAG_ID.FRAMESET&&!t.openElements.isRootHtmlElementCurrent()&&(t.openElements.pop(),!t.fragmentContext&&t.openElements.currentTagId!==TAG_ID.FRAMESET&&(t.insertionMode=InsertionMode.AFTER_FRAMESET))}function startTagAfterFrameset(t,o){switch(o.tagID){case TAG_ID.HTML:{startTagInBody(t,o);break}case TAG_ID.NOFRAMES:{startTagInHead(t,o);break}}}function endTagAfterFrameset(t,o){o.tagID===TAG_ID.HTML&&(t.insertionMode=InsertionMode.AFTER_AFTER_FRAMESET)}function startTagAfterAfterBody(t,o){o.tagID===TAG_ID.HTML?startTagInBody(t,o):tokenAfterAfterBody(t,o)}function tokenAfterAfterBody(t,o){t.insertionMode=InsertionMode.IN_BODY,modeInBody(t,o)}function startTagAfterAfterFrameset(t,o){switch(o.tagID){case TAG_ID.HTML:{startTagInBody(t,o);break}case TAG_ID.NOFRAMES:{startTagInHead(t,o);break}}}function nullCharacterInForeignContent(t,o){o.chars=REPLACEMENT_CHARACTER$1,t._insertCharacters(o)}function characterInForeignContent(t,o){t._insertCharacters(o),t.framesetOk=!1}function popUntilHtmlOrIntegrationPoint(t){for(;t.treeAdapter.getNamespaceURI(t.openElements.current)!==NS$1.HTML&&!t._isIntegrationPoint(t.openElements.currentTagId,t.openElements.current);)t.openElements.pop()}function startTagInForeignContent(t,o){if(causesExit(o))popUntilHtmlOrIntegrationPoint(t),t._startTagOutsideForeignContent(o);else{const n=t._getAdjustedCurrentElement(),r=t.treeAdapter.getNamespaceURI(n);r===NS$1.MATHML?adjustTokenMathMLAttrs(o):r===NS$1.SVG&&(adjustTokenSVGTagName(o),adjustTokenSVGAttrs(o)),adjustTokenXMLAttrs(o),o.selfClosing?t._appendElement(o,r):t._insertElement(o,r),o.ackSelfClosing=!0}}function endTagInForeignContent(t,o){if(o.tagID===TAG_ID.P||o.tagID===TAG_ID.BR){popUntilHtmlOrIntegrationPoint(t),t._endTagOutsideForeignContent(o);return}for(let n=t.openElements.stackTop;n>0;n--){const r=t.openElements.items[n];if(t.treeAdapter.getNamespaceURI(r)===NS$1.HTML){t._endTagOutsideForeignContent(o);break}const s=t.treeAdapter.getTagName(r);if(s.toLowerCase()===o.tagName){o.tagName=s,t.openElements.shortenToLength(n);break}}}const VOID_ELEMENTS=new Set([TAG_NAMES.AREA,TAG_NAMES.BASE,TAG_NAMES.BASEFONT,TAG_NAMES.BGSOUND,TAG_NAMES.BR,TAG_NAMES.COL,TAG_NAMES.EMBED,TAG_NAMES.FRAME,TAG_NAMES.HR,TAG_NAMES.IMG,TAG_NAMES.INPUT,TAG_NAMES.KEYGEN,TAG_NAMES.LINK,TAG_NAMES.META,TAG_NAMES.PARAM,TAG_NAMES.SOURCE,TAG_NAMES.TRACK,TAG_NAMES.WBR]);function isVoidElement(t,o){return o.treeAdapter.isElementNode(t)&&o.treeAdapter.getNamespaceURI(t)===NS$1.HTML&&VOID_ELEMENTS.has(o.treeAdapter.getTagName(t))}const defaultOpts={treeAdapter:defaultTreeAdapter,scriptingEnabled:!0};function serializeOuter(t,o){const n={...defaultOpts,...o};return serializeNode(t,n)}function serializeChildNodes(t,o){let n="";const r=o.treeAdapter.isElementNode(t)&&o.treeAdapter.getTagName(t)===TAG_NAMES.TEMPLATE&&o.treeAdapter.getNamespaceURI(t)===NS$1.HTML?o.treeAdapter.getTemplateContent(t):t,s=o.treeAdapter.getChildNodes(r);if(s)for(const l of s)n+=serializeNode(l,o);return n}function serializeNode(t,o){return o.treeAdapter.isElementNode(t)?serializeElement(t,o):o.treeAdapter.isTextNode(t)?serializeTextNode(t,o):o.treeAdapter.isCommentNode(t)?serializeCommentNode(t,o):o.treeAdapter.isDocumentTypeNode(t)?serializeDocumentTypeNode(t,o):""}function serializeElement(t,o){const n=o.treeAdapter.getTagName(t);return`<${n}${serializeAttributes(t,o)}>${isVoidElement(t,o)?"":`${serializeChildNodes(t,o)}${n}>`}`}function serializeAttributes(t,{treeAdapter:o}){let n="";for(const r of o.getAttrList(t)){if(n+=" ",!r.namespace)n+=r.name;else switch(r.namespace){case NS$1.XML:{n+=`xml:${r.name}`;break}case NS$1.XMLNS:{r.name!=="xmlns"&&(n+="xmlns:"),n+=r.name;break}case NS$1.XLINK:{n+=`xlink:${r.name}`;break}default:n+=`${r.prefix}:${r.name}`}n+=`="${escapeAttribute(r.value)}"`}return n}function serializeTextNode(t,o){const{treeAdapter:n}=o,r=n.getTextNodeContent(t),s=n.getParentNode(t),l=s&&n.isElementNode(s)&&n.getTagName(s);return l&&n.getNamespaceURI(s)===NS$1.HTML&&hasUnescapedText(l,o.scriptingEnabled)?r:escapeText(r)}function serializeCommentNode(t,{treeAdapter:o}){return``}function serializeDocumentTypeNode(t,{treeAdapter:o}){return``}function parse$4(t,o){return Parser$3.parse(t,o)}function parseFragment(t,o,n){typeof t=="string"&&(n=o,o=t,t=null);const r=Parser$3.getFragmentParser(t,n);return r.tokenizer.write(o,!0),r.getFragment()}function createTextNode(t){return new Text(t)}function enquoteDoctypeId(t){const o=t.includes('"')?"'":'"';return o+t+o}function serializeDoctypeContent(t,o,n){let r="!DOCTYPE ";return t&&(r+=t),o?r+=` PUBLIC ${enquoteDoctypeId(o)}`:n&&(r+=" SYSTEM"),n&&(r+=` ${enquoteDoctypeId(n)}`),r}const adapter={isCommentNode:isComment,isElementNode:isTag,isTextNode:isText,createDocument(){const t=new Document([]);return t["x-mode"]=DOCUMENT_MODE.NO_QUIRKS,t},createDocumentFragment(){return new Document([])},createElement(t,o,n){const r=Object.create(null),s=Object.create(null),l=Object.create(null);for(let m=0;misDirective(d)&&d.name==="!doctype");l?l.data=s??null:(l=new ProcessingInstruction("!doctype",s),adapter.appendChild(t,l)),l["x-name"]=o??void 0,l["x-publicId"]=n??void 0,l["x-systemId"]=r??void 0},setDocumentMode(t,o){t["x-mode"]=o},getDocumentMode(t){return t["x-mode"]},detachNode(t){if(t.parent){const o=t.parent.children.indexOf(t),{prev:n,next:r}=t;t.prev=null,t.next=null,n&&(n.next=r),r&&(r.prev=n),t.parent.children.splice(o,1),t.parent=null}},insertText(t,o){const n=t.children[t.children.length-1];n&&isText(n)?n.data+=o:adapter.appendChild(t,createTextNode(o))},insertTextBefore(t,o,n){const r=t.children[t.children.indexOf(n)-1];r&&isText(r)?r.data+=o:adapter.insertBefore(t,createTextNode(o),n)},adoptAttributes(t,o){for(let n=0;n"u"&&(t.attribs[r]=o[n].value,t["x-attribsNamespace"][r]=o[n].namespace,t["x-attribsPrefix"][r]=o[n].prefix)}},getFirstChild(t){return t.children[0]},getChildNodes(t){return t.children},getParentNode(t){return t.parent},getAttrList(t){return t.attributes},getTagName(t){return t.name},getNamespaceURI(t){return t.namespace},getTextNodeContent(t){return t.data},getCommentNodeContent(t){return t.data},getDocumentTypeNodeName(t){var o;return(o=t["x-name"])!==null&&o!==void 0?o:""},getDocumentTypeNodePublicId(t){var o;return(o=t["x-publicId"])!==null&&o!==void 0?o:""},getDocumentTypeNodeSystemId(t){var o;return(o=t["x-systemId"])!==null&&o!==void 0?o:""},isDocumentTypeNode(t){return isDirective(t)&&t.name==="!doctype"},setNodeSourceCodeLocation(t,o){o&&(t.startIndex=o.startOffset,t.endIndex=o.endOffset),t.sourceCodeLocation=o},getNodeSourceCodeLocation(t){return t.sourceCodeLocation},updateNodeSourceCodeLocation(t,o){o.endOffset!=null&&(t.endIndex=o.endOffset),t.sourceCodeLocation={...t.sourceCodeLocation,...o}}};function parseWithParse5(t,o,n,r){const s={scriptingEnabled:typeof o.scriptingEnabled=="boolean"?o.scriptingEnabled:!0,treeAdapter:adapter,sourceCodeLocationInfo:o.sourceCodeLocationInfo};return n?parse$4(t,s):parseFragment(r,t,s)}const renderOpts={treeAdapter:adapter};function renderWithParse5(t){const o="length"in t?t:[t];for(let r=0;r=CharCodes.Zero&&t<=CharCodes.Nine}function isASCIIAlpha(t){return t>=CharCodes.LowerA&&t<=CharCodes.LowerZ||t>=CharCodes.UpperA&&t<=CharCodes.UpperZ}function isHexDigit(t){return t>=CharCodes.UpperA&&t<=CharCodes.UpperF||t>=CharCodes.LowerA&&t<=CharCodes.LowerF}var QuoteType;(function(t){t[t.NoValue=0]="NoValue",t[t.Unquoted=1]="Unquoted",t[t.Single=2]="Single",t[t.Double=3]="Double"})(QuoteType||(QuoteType={}));const Sequences={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])};let Tokenizer$1=class{constructor({xmlMode:o=!1,decodeEntities:n=!0},r){this.cbs=r,this.state=State.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=State.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=o,this.decodeEntities=n,this.entityTrie=o?xmlDecodeTree:htmlDecodeTree}reset(){this.state=State.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=State.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(o){this.offset+=this.buffer.length,this.buffer=o,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=State.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&o===CharCodes.Amp&&(this.state=State.BeforeEntity)}stateSpecialStartSequence(o){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?isEndOfTagSection(o):(o|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=State.InTagName,this.stateInTagName(o)}stateInSpecialTag(o){if(this.sequenceIndex===this.currentSequence.length){if(o===CharCodes.Gt||isWhitespace(o)){const n=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&o!==CharCodes.Semi)this.trieIndex+=r;else{const s=this.index-this.entityExcess+1;s>this.sectionStart&&this.emitPartial(this.sectionStart,s),this.entityResult=this.trieIndex,this.trieIndex+=r,this.entityExcess=0,this.sectionStart=this.index+1,r===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult===0)return;switch((this.entityTrie[this.entityResult]&BinTrieFlags.VALUE_LENGTH)>>14){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~BinTrieFlags.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(o){(o|32)===CharCodes.LowerX?(this.entityExcess++,this.state=State.InHexEntity):(this.state=State.InNumericEntity,this.stateInNumericEntity(o))}emitNumericEntity(o){const n=this.index-this.entityExcess-1;n+2+ +(this.state===State.InHexEntity)!==this.index&&(n>this.sectionStart&&this.emitPartial(this.sectionStart,n),this.sectionStart=this.index+Number(o),this.emitCodePoint(replaceCodePoint(this.entityResult))),this.state=this.baseState}stateInNumericEntity(o){o===CharCodes.Semi?this.emitNumericEntity(!0):isNumber$2(o)?(this.entityResult=this.entityResult*10+(o-CharCodes.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(o){o===CharCodes.Semi?this.emitNumericEntity(!0):isNumber$2(o)?(this.entityResult=this.entityResult*16+(o-CharCodes.Zero),this.entityExcess++):isHexDigit(o)?(this.entityResult=this.entityResult*16+((o|32)-CharCodes.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===State.Text||this.baseState===State.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===State.Text||this.state===State.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===State.InAttributeValueDq||this.state===State.InAttributeValueSq||this.state===State.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index0&&d.has(this.stack[this.stack.length-1]);){const m=this.stack.pop();(r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,m,!0)}this.isVoidElement(o)||(this.stack.push(o),foreignContextElements.has(o)?this.foreignContext.push(!0):htmlIntegrationElements.has(o)&&this.foreignContext.push(!1)),(l=(s=this.cbs).onopentagname)===null||l===void 0||l.call(s,o),this.cbs.onopentag&&(this.attribs={})}endOpenTag(o){var n,r;this.startIndex=this.openTagStart,this.attribs&&((r=(n=this.cbs).onopentag)===null||r===void 0||r.call(n,this.tagname,this.attribs,o),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(o){this.endIndex=o,this.endOpenTag(!1),this.startIndex=o+1}onclosetag(o,n){var r,s,l,d,m,_;this.endIndex=n;let g=this.getSlice(o,n);if(this.lowerCaseTagNames&&(g=g.toLowerCase()),(foreignContextElements.has(g)||htmlIntegrationElements.has(g))&&this.foreignContext.pop(),this.isVoidElement(g))!this.options.xmlMode&&g==="br"&&((s=(r=this.cbs).onopentagname)===null||s===void 0||s.call(r,"br"),(d=(l=this.cbs).onopentag)===null||d===void 0||d.call(l,"br",{},!0),(_=(m=this.cbs).onclosetag)===null||_===void 0||_.call(m,"br",!1));else{const v=this.stack.lastIndexOf(g);if(v!==-1)if(this.cbs.onclosetag){let y=this.stack.length-v;for(;y--;)this.cbs.onclosetag(this.stack.pop(),y!==0)}else this.stack.length=v;else!this.options.xmlMode&&g==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=n+1}onselfclosingtag(o){this.endIndex=o,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=o+1):this.onopentagend(o)}closeCurrentTag(o){var n,r;const s=this.tagname;this.endOpenTag(o),this.stack[this.stack.length-1]===s&&((r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,s,!o),this.stack.pop())}onattribname(o,n){this.startIndex=o;const r=this.getSlice(o,n);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r}onattribdata(o,n){this.attribvalue+=this.getSlice(o,n)}onattribentity(o){this.attribvalue+=fromCodePoint$2(o)}onattribend(o,n){var r,s;this.endIndex=n,(s=(r=this.cbs).onattribute)===null||s===void 0||s.call(r,this.attribname,this.attribvalue,o===QuoteType.Double?'"':o===QuoteType.Single?"'":o===QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(o){const n=o.search(reNameEnd);let r=n<0?o:o.substr(0,n);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r}ondeclaration(o,n){this.endIndex=n;const r=this.getSlice(o,n);if(this.cbs.onprocessinginstruction){const s=this.getInstructionName(r);this.cbs.onprocessinginstruction(`!${s}`,`!${r}`)}this.startIndex=n+1}onprocessinginstruction(o,n){this.endIndex=n;const r=this.getSlice(o,n);if(this.cbs.onprocessinginstruction){const s=this.getInstructionName(r);this.cbs.onprocessinginstruction(`?${s}`,`?${r}`)}this.startIndex=n+1}oncomment(o,n,r){var s,l,d,m;this.endIndex=n,(l=(s=this.cbs).oncomment)===null||l===void 0||l.call(s,this.getSlice(o,n-r)),(m=(d=this.cbs).oncommentend)===null||m===void 0||m.call(d),this.startIndex=n+1}oncdata(o,n,r){var s,l,d,m,_,g,v,y,w,B;this.endIndex=n;const k=this.getSlice(o,n-r);this.options.xmlMode||this.options.recognizeCDATA?((l=(s=this.cbs).oncdatastart)===null||l===void 0||l.call(s),(m=(d=this.cbs).ontext)===null||m===void 0||m.call(d,k),(g=(_=this.cbs).oncdataend)===null||g===void 0||g.call(_)):((y=(v=this.cbs).oncomment)===null||y===void 0||y.call(v,`[CDATA[${k}]]`),(B=(w=this.cbs).oncommentend)===null||B===void 0||B.call(w)),this.startIndex=n+1}onend(){var o,n;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],!0));}(n=(o=this.cbs).onend)===null||n===void 0||n.call(o)}reset(){var o,n,r,s;(n=(o=this.cbs).onreset)===null||n===void 0||n.call(o),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(s=(r=this.cbs).onparserinit)===null||s===void 0||s.call(r,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(o){this.reset(),this.end(o)}getSlice(o,n){for(;o-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let r=this.buffers[0].slice(o-this.bufferOffset,n-this.bufferOffset);for(;n-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,n-this.bufferOffset);return r}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(o){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".write() after done!"));return}this.buffers.push(o),this.tokenizer.running&&(this.tokenizer.write(o),this.writeIndex++)}end(o){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".end() after done!"));return}o&&this.write(o),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndexo.xmlMode||o._useHtmlParser2?parseDocument(t,o):parseWithParse5(t,o,n,r)),load=getLoad(parse$3,(t,o)=>o.xmlMode||o._useHtmlParser2?render$8(t,o):renderWithParse5(t)),cheerio=load([]),MAX_ITEMS_PER_SOURCE=5,FETCH_TIMEOUT=5e3,fmtHot=t=>{if(!t)return 0;let o=Number(String(t).replace(/[^0-9.]/g,""));return isNaN(o)?0:String(t).includes("亿")?o*1e8:String(t).includes("万")?o*1e4:o},fetchBaidu=async()=>{const t=await axios$1.get("https://top.baidu.com/board?tab=realtime",{timeout:FETCH_TIMEOUT}),o=cheerio.load(t.data),n=o("div#sanRoot>main>div.container>div>div>div"),r=[];return n.each(function(s,l){const d=o(l);r.push({id:`baidu-${s}`,title:d.find("a>div.c-single-text-ellipsis").first().text(),hot:fmtHot(d.find("div[class*=hot-index]").text()),source:"baidu",sourceName:"百度",sourceIcon:"🔥",category:"hot",url:d.find("div[class*=content]>a").attr("href")||"",rank:s+1,fetchedAt:Date.now()})}),r.slice(0,MAX_ITEMS_PER_SOURCE)},fetchWeibo=async()=>{const t=await axios$1.get("https://tophub.today/n/KqndgxeLl9",{timeout:FETCH_TIMEOUT});console.log("weibo",t.data);const o=cheerio.load(t.data),r=o("div.rank-all-item>div.jc-c>table.table").first().find("tbody>tr"),s=[];return r.each((l,d)=>{const m=o(d);s.push({id:`weibo-${l}`,title:m.find("td:eq(1)").text(),hot:0,source:"weibo",sourceName:"微博",sourceIcon:"🔥",category:"hot",url:m.find("td>a").attr("href")||"",rank:l+1,fetchedAt:Date.now()})}),s.slice(0,MAX_ITEMS_PER_SOURCE)},fetchDouyin=async()=>((await axios$1.get("https://aweme-hl.snssdk.com/aweme/v1/hot/search/list/?&source=3&os_api=23",{timeout:FETCH_TIMEOUT})).data.word_list||[]).map((n,r)=>({id:`douyin-${r}`,title:n.word,hot:Number(n.hot_value)||0,source:"douyin",sourceName:"抖音",sourceIcon:"🔥",category:"hot",url:`https://www.douyin.com/search/${n.word}`,rank:r+1,fetchedAt:Date.now()})).slice(0,MAX_ITEMS_PER_SOURCE),fetchKuaishou=async()=>((await axios$1.post("https://www.kuaishou.com/graphql",{operationName:"visionHotRank",query:`query visionHotRank($page: String) {
+ visionHotRank(page: $page) {
+ items {
+ id
+ name
+ hotValue
+ poster
+ photoIds
+ }
+ }
+ }`,variables:{page:"home"}},{headers:{"Content-Type":"application/json",Origin:"https://www.kuaishou.com",Referer:"https://www.kuaishou.com/"},timeout:FETCH_TIMEOUT})).data.data.visionHotRank.items||[]).map((n,r)=>({id:`kuaishou-${r}`,title:n.name,hot:Number(n.hotValue)||0,source:"kuaishou",sourceName:"快手",sourceIcon:"🔥",category:"hot",url:"https://www.kuaishou.com/hot",rank:r+1,fetchedAt:Date.now()})).slice(0,MAX_ITEMS_PER_SOURCE),fetchTieba=async()=>((await axios$1.get("https://tieba.baidu.com/hottopic/browse/topicList",{timeout:FETCH_TIMEOUT})).data.data.bang_topic.topic_list||[]).map((n,r)=>({id:`tieba-${r}`,title:n.topic_name,hot:Number(n.discuss_num)||0,source:"tieba",sourceName:"贴吧",sourceIcon:"🔥",category:"hot",url:n.topic_url||"",rank:r+1,fetchedAt:Date.now()})).slice(0,MAX_ITEMS_PER_SOURCE),fetch36kr$1=async()=>new Promise(t=>{ztools.ubrowser.hide().goto("https://36kr.com/hot-list/catalog").wait("div.information-flow-item",FETCH_TIMEOUT).evaluate(()=>document.querySelector("body").innerHTML).run().then(n=>{try{const r=cheerio.load(n[0]),s=r("div.information-flow-item"),l=[],d=new Set;s.each((m,_)=>{try{const g=r(_);let v=g.find("a.article-item-title");v.length===0&&(v=g.find('a[class*="title"]'));const y=v.text().trim();if(y.length<2||d.has(y))return;d.add(y);const w=v.attr("href")||"";l.push({id:`36kr-${m}`,title:y,hot:0,source:"36kr",sourceName:"36氪",sourceIcon:"💻",category:"tech",url:w.startsWith("http")?w:`https://36kr.com${w}`,rank:m+1,fetchedAt:Date.now()})}catch{}}),t(l.slice(0,MAX_ITEMS_PER_SOURCE))}catch{t([])}}).catch(()=>t([]))}),fetchHuxiu=async()=>{const t=await axios$1.get("https://www.huxiu.com/channel/106.html",{timeout:FETCH_TIMEOUT}),o=cheerio.load(t.data),n=o("div.card"),r=[];return n.each((s,l)=>{const d=o(l),m=d.find("h3.channel-title").text().trim();if(!m)return;let _=d.find("a").attr("href")||"";_&&!_.startsWith("http")&&(_=`https://www.huxiu.com${_}`),r.push({id:`huxiu-${s}`,title:m,hot:0,source:"huxiu",sourceName:"虎嗅",sourceIcon:"💻",category:"tech",url:_,rank:s+1,fetchedAt:Date.now()})}),r.slice(0,MAX_ITEMS_PER_SOURCE)},fetchBilibili=async()=>{const t=await axios$1.get("https://api.bilibili.com/x/web-interface/ranking/v2?rid=0&type=all",{timeout:FETCH_TIMEOUT});return console.log("bili",t.data),(t.data.data.list||[]).map((n,r)=>{var s;return{id:`bilibili-${r}`,title:n.title,hot:Number((s=n.stat)==null?void 0:s.view)||0,source:"bilibili",sourceName:"B站",sourceIcon:"🎮",category:"fun",url:n.short_link_v2||`https://www.bilibili.com/video/${n.bvid}`,rank:r+1,fetchedAt:Date.now()}}).slice(0,MAX_ITEMS_PER_SOURCE)},fetchMaoyan=async()=>new Promise(t=>{ztools.ubrowser.hide().goto("https://piaofang.maoyan.com/dashboard/movie").wait("p.moviename-name",FETCH_TIMEOUT).evaluate(()=>document.querySelector("body").innerHTML).run().then(n=>{try{const r=cheerio.load(n[0]),s=r("table.dashboard-table>tbody>tr"),l=[];s.each((d,m)=>{const _=r(m),g=_.find("p.moviename-name").text();g&&l.push({id:`maoyan-${d}`,title:`${g} ${_.find("p.moviename-info").text()}`,hot:0,source:"maoyan",sourceName:"猫眼",sourceIcon:"🎮",category:"fun",url:"https://piaofang.maoyan.com/dashboard/movie",rank:d+1,fetchedAt:Date.now()})}),t(l.slice(0,MAX_ITEMS_PER_SOURCE))}catch{t([])}}).catch(()=>t([]))}),fetchJandan=async()=>{const t=await axios$1.get("https://jandan.net/",{timeout:FETCH_TIMEOUT}),o=cheerio.load(t.data),n=o("div.post-item"),r=[];return n.each((s,l)=>{const d=o(l),m=d.find("h2.post-title").text();if(!m)return;let _=d.find("h2.post-title>a").attr("href")||"";_&&!_.startsWith("http")&&(_=`https://jandan.net${_}`),r.push({id:`jandan-${s}`,title:m,hot:0,source:"jandan",sourceName:"煎蛋",sourceIcon:"🤪",category:"fresh",url:_,rank:s+1,fetchedAt:Date.now()})}),r.slice(0,MAX_ITEMS_PER_SOURCE)},fetchITHome=async()=>{const t=await axios$1.get("https://m.ithome.com/rankm/",{timeout:FETCH_TIMEOUT}),o=cheerio.load(t.data),n=o("div.placeholder.one-img-plc"),r=[];return n.each((s,l)=>{const d=o(l),m=d.find("p.plc-title").text().trim();if(!m)return;let _=d.find("a").attr("href")||"";_&&!_.startsWith("http")&&(_=`https://m.ithome.com${_}`);const g=d.find("span.review-num").text(),v=parseInt(g)||0;r.push({id:`ithome-${s}`,title:m,hot:v,source:"ithome",sourceName:"IT之家",sourceIcon:"💻",category:"tech",url:_,rank:s+1,fetchedAt:Date.now()})}),r.slice(0,MAX_ITEMS_PER_SOURCE)},fetchJuejin=async()=>((await axios$1.post("https://api.juejin.cn/recommend_api/v1/article/recommend_all_feed",{id_type:2,sort_type:200,cursor:"0"},{timeout:FETCH_TIMEOUT})).data.data||[]).map((n,r)=>{var s,l;return{id:`juejin-${r}`,title:((s=n.article_info)==null?void 0:s.title)||n.title||"",hot:Number((l=n.article_info)==null?void 0:l.view_count)||0,source:"juejin",sourceName:"掘金",sourceIcon:"👨💻",category:"dev",url:`https://juejin.cn/post/${n.article_id||n.id}`,rank:r+1,fetchedAt:Date.now()}}).filter(n=>n.title).slice(0,MAX_ITEMS_PER_SOURCE),fetchV2EX=async()=>((await axios$1.get("https://www.v2ex.com/api/topics/hot.json",{timeout:FETCH_TIMEOUT})).data||[]).map((n,r)=>({id:`v2ex-${r}`,title:n.title,hot:Number(n.replies)||0,source:"v2ex",sourceName:"V2EX",sourceIcon:"🏘️",category:"community",url:n.url||`https://www.v2ex.com/t/${n.id}`,rank:r+1,fetchedAt:Date.now()})).slice(0,MAX_ITEMS_PER_SOURCE),fetchEastmoney=async()=>{var r,s,l;const t=await axios$1.get("https://guba.eastmoney.com/interface/GetData.aspx",{params:{path:"guba/newhotlist",param:"psize=10"},headers:{Referer:"https://guba.eastmoney.com/"},timeout:FETCH_TIMEOUT}),o=((s=(r=t.data)==null?void 0:r.Data)==null?void 0:s.list)||((l=t.data)==null?void 0:l.Data)||[];return(Array.isArray(o)?o:[]).map((d,m)=>({id:`eastmoney-${m}`,title:d.title||d.post_title||"",hot:Number(d.comment_count||d.click_count||0),source:"eastmoney",sourceName:"东方财富",sourceIcon:"💰",category:"finance",url:d.post_url||d.url||"https://guba.eastmoney.com/",rank:m+1,fetchedAt:Date.now()})).filter(d=>d.title).slice(0,MAX_ITEMS_PER_SOURCE)},fetchTonghuashun=async()=>new Promise(t=>{ztools.ubrowser.hide().goto("https://t.10jqka.com.cn/newindex/headnews/").wait("div.list-con",FETCH_TIMEOUT).evaluate(()=>document.querySelector("body").innerHTML).run().then(n=>{try{const r=cheerio.load(n[0]),s=r("div.list-con>ul>li"),l=[];s.each((d,m)=>{const _=r(m),g=_.find("a").text().trim();if(!g)return;let v=_.find("a").attr("href")||"";v&&!v.startsWith("http")&&(v=`https://t.10jqka.com.cn${v}`),l.push({id:`tonghuashun-${d}`,title:g,hot:0,source:"tonghuashun",sourceName:"同花顺",sourceIcon:"💰",category:"finance",url:v,rank:d+1,fetchedAt:Date.now()})}),t(l.slice(0,MAX_ITEMS_PER_SOURCE))}catch{t([])}}).catch(()=>t([]))}),fetchXueqiu=async()=>{var n;return(((n=(await axios$1.get("https://xueqiu.com/statuses/hot/listV2.json",{params:{since_id:-1,max_id:0,size:10},headers:{Referer:"https://xueqiu.com/","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36"},timeout:FETCH_TIMEOUT})).data)==null?void 0:n.items)||[]).map((r,s)=>{var d,m;const l=r.target||r;return{id:`xueqiu-${s}`,title:l.title||((d=l.text)==null?void 0:d.substring(0,60))||"",hot:Number(l.view_count||l.reply_count||0),source:"xueqiu",sourceName:"雪球",sourceIcon:"💰",category:"finance",url:l.target_url||`https://xueqiu.com/${((m=l.user)==null?void 0:m.screen_name)||""}`,rank:s+1,fetchedAt:Date.now()}}).filter(r=>r.title).slice(0,MAX_ITEMS_PER_SOURCE)},fetchWallstreetcn$1=async()=>{var n,r,s;const t=await axios$1.get("https://wallstreetcn.com/api/finfo/v2/live-list",{params:{channel:"global-channel",cursor:"",limit:10},headers:{Referer:"https://wallstreetcn.com/"},timeout:FETCH_TIMEOUT});return(((r=(n=t.data)==null?void 0:n.data)==null?void 0:r.items)||((s=t.data)==null?void 0:s.items)||[]).map((l,d)=>{var m;return{id:`wallstreetcn-${d}`,title:l.title||((m=l.content_text)==null?void 0:m.substring(0,60))||"",hot:Number(l.like_count||l.view_count||0),source:"wallstreetcn",sourceName:"华尔街见闻",sourceIcon:"💰",category:"finance",url:l.uri?`https://wallstreetcn.com/news/${l.uri}`:"https://wallstreetcn.com/",rank:d+1,fetchedAt:Date.now()}}).filter(l=>l.title).slice(0,MAX_ITEMS_PER_SOURCE)},fetchDouban=async()=>new Promise(t=>{ztools.ubrowser.hide().goto("https://www.douban.com/group/explore").wait("div.channel-item",FETCH_TIMEOUT).evaluate(()=>document.querySelector("body").innerHTML).run().then(n=>{try{const r=cheerio.load(n[0]),s=r("div.channel-item"),l=[];s.each((d,m)=>{const _=r(m),g=_.find("h3 a").text().trim();if(!g)return;let v=_.find("h3 a").attr("href")||"";v&&!v.startsWith("http")&&(v=`https://www.douban.com${v}`),l.push({id:`douban-${d}`,title:g,hot:0,source:"douban",sourceName:"豆瓣",sourceIcon:"🎮",category:"fun",url:v,rank:d+1,fetchedAt:Date.now()})}),t(l.slice(0,MAX_ITEMS_PER_SOURCE))}catch{t([])}}).catch(()=>t([]))}),fetchShuimu=async()=>{var n,r;return(((r=(n=(await axios$1.get("https://wap.mysmth.net/wap/api/hot/ten?page=1",{timeout:FETCH_TIMEOUT})).data)==null?void 0:n.data)==null?void 0:r.topics)||[]).map((s,l)=>{var d;return{id:`shuimu-${l}`,title:s.subject||"",hot:Number(s.availables||s.count||0),source:"shuimu",sourceName:"水木",sourceIcon:"🏘️",category:"community",url:`https://www.mysmth.net/nForum/#!article/${(d=s.board)==null?void 0:d.id}/${s.topicId}`,rank:l+1,fetchedAt:Date.now()}}).filter(s=>s.title).slice(0,MAX_ITEMS_PER_SOURCE)},fetchHupu=async()=>{const t=await axios$1.get("https://bbs.hupu.com/all-gambia",{headers:{Referer:"https://bbs.hupu.com/","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36"},timeout:FETCH_TIMEOUT}),o=cheerio.load(t.data),n=o("div.list-item, li.bbs-sl-hl-item, div.thread-list-item"),r=[],s=new Set;return n.each((l,d)=>{const _=o(d).find('a.title, a.p-title, a[href*="/"]').first(),g=_.text().trim();if(!g||g.length<2||s.has(g))return;s.add(g);let v=_.attr("href")||"";v&&!v.startsWith("http")&&(v=`https://bbs.hupu.com${v}`),r.push({id:`hupu-${l}`,title:g,hot:0,source:"hupu",sourceName:"虎扑",sourceIcon:"🏘️",category:"community",url:v,rank:l+1,fetchedAt:Date.now()})}),r.slice(0,MAX_ITEMS_PER_SOURCE)},SOURCES=[{key:"baidu",name:"百度",icon:"🔥",category:"hot",fetch:fetchBaidu},{key:"weibo",name:"微博",icon:"🔥",category:"hot",fetch:fetchWeibo},{key:"douyin",name:"抖音",icon:"🔥",category:"hot",fetch:fetchDouyin},{key:"kuaishou",name:"快手",icon:"🔥",category:"hot",fetch:fetchKuaishou},{key:"tieba",name:"贴吧",icon:"🔥",category:"hot",fetch:fetchTieba},{key:"36kr",name:"36氪",icon:"💻",category:"tech",fetch:fetch36kr$1},{key:"huxiu",name:"虎嗅",icon:"💻",category:"tech",fetch:fetchHuxiu},{key:"ithome",name:"IT之家",icon:"💻",category:"tech",fetch:fetchITHome},{key:"juejin",name:"掘金",icon:"👨💻",category:"dev",fetch:fetchJuejin},{key:"shuimu",name:"水木",icon:"🏘️",category:"community",fetch:fetchShuimu},{key:"v2ex",name:"V2EX",icon:"🏘️",category:"community",fetch:fetchV2EX},{key:"hupu",name:"虎扑",icon:"🏘️",category:"community",fetch:fetchHupu},{key:"eastmoney",name:"东方财富",icon:"💰",category:"finance",fetch:fetchEastmoney},{key:"tonghuashun",name:"同花顺",icon:"💰",category:"finance",fetch:fetchTonghuashun},{key:"xueqiu",name:"雪球",icon:"💰",category:"finance",fetch:fetchXueqiu},{key:"wallstreetcn",name:"华尔街见闻",icon:"💰",category:"finance",fetch:fetchWallstreetcn$1},{key:"bilibili",name:"B站",icon:"🎮",category:"fun",fetch:fetchBilibili},{key:"maoyan",name:"猫眼",icon:"🎮",category:"fun",fetch:fetchMaoyan},{key:"douban",name:"豆瓣",icon:"🎮",category:"fun",fetch:fetchDouban},{key:"jandan",name:"煎蛋",icon:"🤪",category:"fresh",fetch:fetchJandan}],QuickViewStore=reactive({items:[],loading:!1,category:"all",failedSources:[],cachedItems:{},filteredItems:computed(()=>QuickViewStore.category==="all"?QuickViewStore.items:QuickViewStore.items.filter(t=>t.category===QuickViewStore.category)),async fetchAll(){QuickViewStore.loading=!0,QuickViewStore.failedSources=[];const t=SOURCES.map(r=>r.fetch().then(s=>(QuickViewStore.cachedItems[r.key]=s,{key:r.key,list:s,status:"fulfilled"})).catch(s=>{console.log(`QuickView fetch ${r.key} failed:`,s),QuickViewStore.failedSources.push(r.key);const l=QuickViewStore.cachedItems[r.key];if(l){const d=l.map(m=>({...m,isCached:!0}));return{key:r.key,list:d,status:"cached"}}return{key:r.key,list:[],status:"rejected"}})),o=await Promise.allSettled(t);let n=[];o.forEach(r=>{r.status==="fulfilled"&&r.value&&n.push(...r.value.list)}),n.sort((r,s)=>s.hot!==r.hot?s.hot-r.hot:r.rank-s.rank),QuickViewStore.items=n,QuickViewStore.loading=!1},async retrySource(t){const o=SOURCES.find(n=>n.key===t);if(o)try{const n=await o.fetch();QuickViewStore.cachedItems[t]=n,QuickViewStore.failedSources=QuickViewStore.failedSources.filter(l=>l!==t);const r=new Set(QuickViewStore.items.map(l=>l.id)),s=n.filter(l=>!r.has(l.id));QuickViewStore.items.push(...s),QuickViewStore.items.sort((l,d)=>d.hot!==l.hot?d.hot-l.hot:l.rank-d.rank)}catch(n){console.log(`QuickView retry ${t} failed:`,n)}},refresh(){QuickViewStore.items=[],QuickViewStore.failedSources=[],QuickViewStore.fetchAll()},setCategory(t){QuickViewStore.category=t}}),HotCard_vue_vue_type_style_index_0_scoped_8310ff39_lang="",_export_sfc$1=(t,o)=>{const n=t.__vccOpts||t;for(const[r,s]of o)n[r]=s;return n},CategoryFilter_vue_vue_type_style_index_0_scoped_48bd214a_lang="",QuickViewHome_vue_vue_type_style_index_0_scoped_19b9a9df_lang="",UnifiedTab_vue_vue_type_style_index_0_scoped_bc2b8647_lang="",_hoisted_1$4x={key:0,class:"tab-chip-inner"},_hoisted_2$4h=["onClick"],_hoisted_3$46=["onClick"],_hoisted_4$40={key:0,class:"flex1-row h100_"},_hoisted_5$3P=["onClick"],_hoisted_6$3B={key:1,class:"flex1-row h100_"},_hoisted_7$3n={key:0,class:"flex1 y1 tab-main-page"},_sfc_main$63={__name:"UnifiedTab",props:{items:{type:Array,required:!0},modelValue:{default:0},type:{type:String,default:"main",validator:t=>["main","sub","chip"].includes(t)},size:{type:String,default:""},lineWidth:{type:Number,default:20},tabHeight:{type:Number,default:32},hotKey:{type:Boolean,default:!0},scrollable:{type:Boolean,default:!0},keepAlive:{type:Boolean,default:!1},onChange:Function},emits:["update:modelValue","change"],setup(t,{emit:o}){const n=t,r=o,s=ref(0),l=ref(null),d=ref(null),m=ref(0),_=ref(0),g=computed(()=>n.type==="sub"?"flex1-column":n.type==="chip"?"tab-chip-nav":"flex1-column bg-content"),v=D=>typeof D=="string"?D:D.name,y=(D,R)=>typeof D=="string"?R:D.key??R,w=(D,R)=>typeof n.modelValue=="number"?n.modelValue===D:n.modelValue===y(R,D),B=()=>{if(typeof n.modelValue=="number")s.value=n.modelValue;else{const D=n.items.findIndex((R,O)=>y(R,O)===n.modelValue);D>=0&&(s.value=D)}},k=(D,R)=>{const O=y(R,D);typeof n.modelValue=="number"?r("update:modelValue",D):r("update:modelValue",O),s.value=D,r("change",O,R,D),n.onChange&&n.onChange(O,R,D),n.type==="main"&&(N(),S())},N=()=>{if(n.type!=="main"||!d.value)return;const D=d.value.children;if(!D||!D[s.value])return;const R=D[s.value].getBoundingClientRect();m.value=R.left-d.value.offsetLeft+R.width/2-n.lineWidth/2+d.value.scrollLeft,l.value&&(m.value-=l.value.getBoundingClientRect().left)},S=()=>{if(n.type!=="main"||!d.value||!n.scrollable)return;const D=d.value.children;if(!D[s.value])return;const R=d.value.getBoundingClientRect(),O=m.value-d.value.scrollLeft;if(O>=R.width*.7&&s.value0){const Q=Math.max(0,s.value-2);D[Q].scrollIntoView({behavior:"smooth"})}else D[s.value].scrollIntoView({behavior:"smooth"})},x=()=>{n.hotKey&&n.type==="main"&&I(-1)},C=()=>{n.hotKey&&n.type==="main"&&I(1)},I=D=>{const R=(s.value+D+n.items.length)%n.items.length;k(R,n.items[R])};return watch(()=>n.modelValue,()=>{B(),n.type==="main"&&nextTick(()=>N())}),watch(()=>n.items,()=>{s.value=0,r("update:modelValue",0),n.type==="main"&&nextTick(()=>N())}),onMounted(()=>{B(),n.type==="main"&&(nextTick(()=>N()),window.addEventListener("resize",N))}),onUnmounted(()=>{n.type==="main"&&window.removeEventListener("resize",N)}),(D,R)=>{const O=resolveDirective("left"),Q=resolveDirective("right");return openBlock(),createElementBlock("div",{class:normalizeClass(g.value)},[t.type==="chip"?(openBlock(),createElementBlock("div",_hoisted_1$4x,[renderSlot(D.$slots,"chip-prefix",{},void 0,!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(t.items,(Y,W)=>(openBlock(),createElementBlock("div",{key:y(Y,W),class:normalizeClass(["tab-chip",{"tab-chip-active":w(W,Y)}]),onClick:K=>k(W,Y)},[renderSlot(D.$slots,"tab",{item:Y,index:W,active:w(W,Y)},()=>[createTextVNode(toDisplayString(v(Y)),1)],!0)],10,_hoisted_2$4h))),128)),renderSlot(D.$slots,"chip-suffix",{},void 0,!0)])):t.type==="sub"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["tab-sub",{"tab-sub-small":t.size==="small"}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.items,(Y,W)=>(openBlock(),createElementBlock("div",{key:y(Y,W),class:normalizeClass(["tab-sub-item",{"tab-sub-active":w(W,Y)}]),onClick:K=>k(W,Y)},[renderSlot(D.$slots,"tab",{item:Y,index:W,active:w(W,Y)},()=>[createTextVNode(toDisplayString(v(Y)),1)],!0)],10,_hoisted_3$46))),128))],2)):(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",{class:"w100_ row-center tab-main-parent",ref_key:"refParent",ref:l},[D.$slots.left||D.$slots.right?(openBlock(),createElementBlock("div",_hoisted_4$40,[renderSlot(D.$slots,"left",{},void 0,!0)])):createCommentVNode("",!0),withDirectives((openBlock(),createElementBlock("div",{ref_key:"refWrap",ref:d,class:"tab-main-wrap",style:normalizeStyle({"--dx":m.value,"--height":t.tabHeight,"--dtime":_.value,"--line-width":t.lineWidth+"px"})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.items,(Y,W)=>(openBlock(),createElementBlock("div",{class:"tab-main-item pt",onClick:K=>k(W,Y)},[createBaseVNode("div",{class:normalizeClass(["tab-main-label",{"tab-main-active":W===s.value}])},[renderSlot(D.$slots,"tab",{item:Y,index:W,active:W===s.value},()=>[createTextVNode(toDisplayString(v(Y)),1)],!0)],2)],8,_hoisted_5$3P))),256))],4)),[[O,x],[Q,C]]),D.$slots.left||D.$slots.right?(openBlock(),createElementBlock("div",_hoisted_6$3B,[renderSlot(D.$slots,"right",{},void 0,!0)])):createCommentVNode("",!0)],512),D.$slots.page?(openBlock(),createElementBlock("div",_hoisted_7$3n,[t.keepAlive?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(t.items,(Y,W)=>withDirectives((openBlock(),createElementBlock("div",{key:W,class:"h100_"},[renderSlot(D.$slots,"page",{item:Y,index:W},void 0,!0)],512)),[[vShow,W===s.value]])),128)):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(t.items,(Y,W)=>(openBlock(),createElementBlock(Fragment,null,[W===s.value?renderSlot(D.$slots,"page",{key:0,item:Y,index:W},void 0,!0):createCommentVNode("",!0)],64))),256))])):createCommentVNode("",!0)],64))],2)}}},UnifiedTab=_export_sfc$1(_sfc_main$63,[["__scopeId","data-v-bc2b8647"]]),_sfc_main$62={__name:"Tab",props:{names:Array,active:{type:Number,default:0},lineWidth:{type:Number,default:20},tabHeight:{type:Number,default:32},updateTab:Function,hotKey:{type:Boolean,default:!0},keepAlive:{type:Boolean,default:!1}},emits:["update:active"],setup(t,{emit:o}){const n=t,r=o,s=computed({get(){return n.active},set(d){r("update:active",d)}}),l=d=>{n.updateTab&&n.updateTab(d)};return(d,m)=>(openBlock(),createBlock(UnifiedTab,{items:t.names,modelValue:s.value,"onUpdate:modelValue":m[0]||(m[0]=_=>s.value=_),type:"main","line-width":t.lineWidth,"tab-height":t.tabHeight,"hot-key":t.hotKey,"keep-alive":t.keepAlive,"on-change":l},{left:withCtx(()=>[renderSlot(d.$slots,"left")]),right:withCtx(()=>[renderSlot(d.$slots,"right")]),tab:withCtx(_=>[renderSlot(d.$slots,"tab",normalizeProps(guardReactiveProps(_)))]),page:withCtx(_=>[renderSlot(d.$slots,"page",normalizeProps(guardReactiveProps(_)))]),_:3},8,["items","modelValue","line-width","tab-height","hot-key","keep-alive"]))}};//! moment.js
+//! version : 2.30.1
+//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
+//! license : MIT
+//! momentjs.com
+var hookCallback;function hooks(){return hookCallback.apply(null,arguments)}function setHookCallback(t){hookCallback=t}function isArray$4(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function isObject$b(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function hasOwnProp(t,o){return Object.prototype.hasOwnProperty.call(t,o)}function isObjectEmpty(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var o;for(o in t)if(hasOwnProp(t,o))return!1;return!0}function isUndefined$1(t){return t===void 0}function isNumber$1(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function isDate$2(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function map$1(t,o){var n=[],r,s=t.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n=0;return(l?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}var formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(t,o,n,r){var s=r;typeof r=="string"&&(s=function(){return this[r]()}),t&&(formatTokenFunctions[t]=s),o&&(formatTokenFunctions[o[0]]=function(){return zeroFill(s.apply(this,arguments),o[1],o[2])}),n&&(formatTokenFunctions[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function removeFormattingTokens(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function makeFormatFunction(t){var o=t.match(formattingTokens),n,r;for(n=0,r=o.length;n=0&&localFormattingTokens.test(t);)t=t.replace(localFormattingTokens,r),localFormattingTokens.lastIndex=0,n-=1;return t}var defaultLongDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function longDateFormat(t){var o=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return o||!n?o:(this._longDateFormat[t]=n.match(formattingTokens).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[t])}var defaultInvalidDate="Invalid date";function invalidDate(){return this._invalidDate}var defaultOrdinal="%d",defaultDayOfMonthOrdinalParse=/\d{1,2}/;function ordinal(t){return this._ordinal.replace("%d",t)}var defaultRelativeTime={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(t,o,n,r){var s=this._relativeTime[n];return isFunction$5(s)?s(t,o,n,r):s.replace(/%d/i,t)}function pastFuture(t,o){var n=this._relativeTime[t>0?"future":"past"];return isFunction$5(n)?n(o):n.replace(/%s/i,o)}var aliases={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function normalizeUnits(t){return typeof t=="string"?aliases[t]||aliases[t.toLowerCase()]:void 0}function normalizeObjectUnits(t){var o={},n,r;for(r in t)hasOwnProp(t,r)&&(n=normalizeUnits(r),n&&(o[n]=t[r]));return o}var priorities={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function getPrioritizedUnits(t){var o=[],n;for(n in t)hasOwnProp(t,n)&&o.push({unit:n,priority:priorities[n]});return o.sort(function(r,s){return r.priority-s.priority}),o}var match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchTimestamp=/[+-]?\d+(\.\d{1,3})?/,matchWord=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,match1to2NoLeadingZero=/^[1-9]\d?/,match1to2HasZero=/^([1-9]\d|\d)/,regexes;regexes={};function addRegexToken(t,o,n){regexes[t]=isFunction$5(o)?o:function(r,s){return r&&n?n:o}}function getParseRegexForToken(t,o){return hasOwnProp(regexes,t)?regexes[t](o._strict,o._locale):new RegExp(unescapeFormat(t))}function unescapeFormat(t){return regexEscape(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(o,n,r,s,l){return n||r||s||l}))}function regexEscape(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function absFloor(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function toInt(t){var o=+t,n=0;return o!==0&&isFinite(o)&&(n=absFloor(o)),n}var tokens={};function addParseToken(t,o){var n,r=o,s;for(typeof t=="string"&&(t=[t]),isNumber$1(o)&&(r=function(l,d){d[o]=toInt(l)}),s=t.length,n=0;n68?1900:2e3)};var getSetYear=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function makeGetSet(t,o){return function(n){return n!=null?(set$1$1(this,t,n),hooks.updateOffset(this,o),this):get$1(this,t)}}function get$1(t,o){if(!t.isValid())return NaN;var n=t._d,r=t._isUTC;switch(o){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function set$1$1(t,o,n){var r,s,l,d,m;if(!(!t.isValid()||isNaN(n))){switch(r=t._d,s=t._isUTC,o){case"Milliseconds":return void(s?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(s?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(s?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(s?r.setUTCHours(n):r.setHours(n));case"Date":return void(s?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}l=n,d=t.month(),m=t.date(),m=m===29&&d===1&&!isLeapYear(l)?28:m,s?r.setUTCFullYear(l,d,m):r.setFullYear(l,d,m)}}function stringGet(t){return t=normalizeUnits(t),isFunction$5(this[t])?this[t]():this}function stringSet(t,o){if(typeof t=="object"){t=normalizeObjectUnits(t);var n=getPrioritizedUnits(t),r,s=n.length;for(r=0;r=0?(m=new Date(t+400,o,n,r,s,l,d),isFinite(m.getFullYear())&&m.setFullYear(t)):m=new Date(t,o,n,r,s,l,d),m}function createUTCDate(t){var o,n;return t<100&&t>=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,o=new Date(Date.UTC.apply(null,n)),isFinite(o.getUTCFullYear())&&o.setUTCFullYear(t)):o=new Date(Date.UTC.apply(null,arguments)),o}function firstWeekOffset(t,o,n){var r=7+o-n,s=(7+createUTCDate(t,0,r).getUTCDay()-o)%7;return-s+r-1}function dayOfYearFromWeeks(t,o,n,r,s){var l=(7+n-r)%7,d=firstWeekOffset(t,r,s),m=1+7*(o-1)+l+d,_,g;return m<=0?(_=t-1,g=daysInYear(_)+m):m>daysInYear(t)?(_=t+1,g=m-daysInYear(t)):(_=t,g=m),{year:_,dayOfYear:g}}function weekOfYear(t,o,n){var r=firstWeekOffset(t.year(),o,n),s=Math.floor((t.dayOfYear()-r-1)/7)+1,l,d;return s<1?(d=t.year()-1,l=s+weeksInYear(d,o,n)):s>weeksInYear(t.year(),o,n)?(l=s-weeksInYear(t.year(),o,n),d=t.year()+1):(d=t.year(),l=s),{week:l,year:d}}function weeksInYear(t,o,n){var r=firstWeekOffset(t,o,n),s=firstWeekOffset(t+1,o,n);return(daysInYear(t)-r+s)/7}addFormatToken("w",["ww",2],"wo","week");addFormatToken("W",["WW",2],"Wo","isoWeek");addRegexToken("w",match1to2,match1to2NoLeadingZero);addRegexToken("ww",match1to2,match2);addRegexToken("W",match1to2,match1to2NoLeadingZero);addRegexToken("WW",match1to2,match2);addWeekParseToken(["w","ww","W","WW"],function(t,o,n,r){o[r.substr(0,1)]=toInt(t)});function localeWeek(t){return weekOfYear(t,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(t){var o=this.localeData().week(this);return t==null?o:this.add((t-o)*7,"d")}function getSetISOWeek(t){var o=weekOfYear(this,1,4).week;return t==null?o:this.add((t-o)*7,"d")}addFormatToken("d",0,"do","day");addFormatToken("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)});addFormatToken("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)});addFormatToken("dddd",0,0,function(t){return this.localeData().weekdays(this,t)});addFormatToken("e",0,0,"weekday");addFormatToken("E",0,0,"isoWeekday");addRegexToken("d",match1to2);addRegexToken("e",match1to2);addRegexToken("E",match1to2);addRegexToken("dd",function(t,o){return o.weekdaysMinRegex(t)});addRegexToken("ddd",function(t,o){return o.weekdaysShortRegex(t)});addRegexToken("dddd",function(t,o){return o.weekdaysRegex(t)});addWeekParseToken(["dd","ddd","dddd"],function(t,o,n,r){var s=n._locale.weekdaysParse(t,r,n._strict);s!=null?o.d=s:getParsingFlags(n).invalidWeekday=t});addWeekParseToken(["d","e","E"],function(t,o,n,r){o[r]=toInt(t)});function parseWeekday(t,o){return typeof t!="string"?t:isNaN(t)?(t=o.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function parseIsoWeekday(t,o){return typeof t=="string"?o.weekdaysParse(t)%7||7:isNaN(t)?null:t}function shiftWeekdays(t,o){return t.slice(o,7).concat(t.slice(0,o))}var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function localeWeekdays(t,o){var n=isArray$4(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(o)?"format":"standalone"];return t===!0?shiftWeekdays(n,this._week.dow):t?n[t.day()]:n}function localeWeekdaysShort(t){return t===!0?shiftWeekdays(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function localeWeekdaysMin(t){return t===!0?shiftWeekdays(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function handleStrictParse$1(t,o,n){var r,s,l,d=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)l=createUTC([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(l,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(l,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(l,"").toLocaleLowerCase();return n?o==="dddd"?(s=indexOf.call(this._weekdaysParse,d),s!==-1?s:null):o==="ddd"?(s=indexOf.call(this._shortWeekdaysParse,d),s!==-1?s:null):(s=indexOf.call(this._minWeekdaysParse,d),s!==-1?s:null):o==="dddd"?(s=indexOf.call(this._weekdaysParse,d),s!==-1||(s=indexOf.call(this._shortWeekdaysParse,d),s!==-1)?s:(s=indexOf.call(this._minWeekdaysParse,d),s!==-1?s:null)):o==="ddd"?(s=indexOf.call(this._shortWeekdaysParse,d),s!==-1||(s=indexOf.call(this._weekdaysParse,d),s!==-1)?s:(s=indexOf.call(this._minWeekdaysParse,d),s!==-1?s:null)):(s=indexOf.call(this._minWeekdaysParse,d),s!==-1||(s=indexOf.call(this._weekdaysParse,d),s!==-1)?s:(s=indexOf.call(this._shortWeekdaysParse,d),s!==-1?s:null))}function localeWeekdaysParse(t,o,n){var r,s,l;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,t,o,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(s=createUTC([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(l="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[r]=new RegExp(l.replace(".",""),"i")),n&&o==="dddd"&&this._fullWeekdaysParse[r].test(t))return r;if(n&&o==="ddd"&&this._shortWeekdaysParse[r].test(t))return r;if(n&&o==="dd"&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function getSetDayOfWeek(t){if(!this.isValid())return t!=null?this:NaN;var o=get$1(this,"Day");return t!=null?(t=parseWeekday(t,this.localeData()),this.add(t-o,"d")):o}function getSetLocaleDayOfWeek(t){if(!this.isValid())return t!=null?this:NaN;var o=(this.day()+7-this.localeData()._week.dow)%7;return t==null?o:this.add(t-o,"d")}function getSetISODayOfWeek(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var o=parseIsoWeekday(t,this.localeData());return this.day(this.day()%7?o:o-7)}else return this.day()||7}function weekdaysRegex(t){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(t){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(t){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function t(v,y){return y.length-v.length}var o=[],n=[],r=[],s=[],l,d,m,_,g;for(l=0;l<7;l++)d=createUTC([2e3,1]).day(l),m=regexEscape(this.weekdaysMin(d,"")),_=regexEscape(this.weekdaysShort(d,"")),g=regexEscape(this.weekdays(d,"")),o.push(m),n.push(_),r.push(g),s.push(m),s.push(_),s.push(g);o.sort(t),n.sort(t),r.sort(t),s.sort(t),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour");addFormatToken("h",["hh",2],0,hFormat);addFormatToken("k",["kk",2],0,kFormat);addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)});addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)});addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(t,o){addFormatToken(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),o)})}meridiem("a",!0);meridiem("A",!1);function matchMeridiem(t,o){return o._meridiemParse}addRegexToken("a",matchMeridiem);addRegexToken("A",matchMeridiem);addRegexToken("H",match1to2,match1to2HasZero);addRegexToken("h",match1to2,match1to2NoLeadingZero);addRegexToken("k",match1to2,match1to2NoLeadingZero);addRegexToken("HH",match1to2,match2);addRegexToken("hh",match1to2,match2);addRegexToken("kk",match1to2,match2);addRegexToken("hmm",match3to4);addRegexToken("hmmss",match5to6);addRegexToken("Hmm",match3to4);addRegexToken("Hmmss",match5to6);addParseToken(["H","HH"],HOUR);addParseToken(["k","kk"],function(t,o,n){var r=toInt(t);o[HOUR]=r===24?0:r});addParseToken(["a","A"],function(t,o,n){n._isPm=n._locale.isPM(t),n._meridiem=t});addParseToken(["h","hh"],function(t,o,n){o[HOUR]=toInt(t),getParsingFlags(n).bigHour=!0});addParseToken("hmm",function(t,o,n){var r=t.length-2;o[HOUR]=toInt(t.substr(0,r)),o[MINUTE]=toInt(t.substr(r)),getParsingFlags(n).bigHour=!0});addParseToken("hmmss",function(t,o,n){var r=t.length-4,s=t.length-2;o[HOUR]=toInt(t.substr(0,r)),o[MINUTE]=toInt(t.substr(r,2)),o[SECOND]=toInt(t.substr(s)),getParsingFlags(n).bigHour=!0});addParseToken("Hmm",function(t,o,n){var r=t.length-2;o[HOUR]=toInt(t.substr(0,r)),o[MINUTE]=toInt(t.substr(r))});addParseToken("Hmmss",function(t,o,n){var r=t.length-4,s=t.length-2;o[HOUR]=toInt(t.substr(0,r)),o[MINUTE]=toInt(t.substr(r,2)),o[SECOND]=toInt(t.substr(s))});function localeIsPM(t){return(t+"").toLowerCase().charAt(0)==="p"}var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i,getSetHour=makeGetSet("Hours",!0);function localeMeridiem(t,o,n){return t>11?n?"pm":"PM":n?"am":"AM"}var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse},locales={},localeFamilies={},globalLocale;function commonPrefix(t,o){var n,r=Math.min(t.length,o.length);for(n=0;n0;){if(s=loadLocale(l.slice(0,n).join("-")),s)return s;if(r&&r.length>=n&&commonPrefix(l,r)>=n-1)break;n--}o++}return globalLocale}function isLocaleNameSane(t){return!!(t&&t.match("^[^/\\\\]*$"))}function loadLocale(t){var o=null,n;if(locales[t]===void 0&&typeof module<"u"&&module&&module.exports&&isLocaleNameSane(t))try{o=globalLocale._abbr,n=require,n("./locale/"+t),getSetGlobalLocale(o)}catch{locales[t]=null}return locales[t]}function getSetGlobalLocale(t,o){var n;return t&&(isUndefined$1(o)?n=getLocale(t):n=defineLocale(t,o),n?globalLocale=n:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(t,o){if(o!==null){var n,r=baseConfig;if(o.abbr=t,locales[t]!=null)deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=locales[t]._config;else if(o.parentLocale!=null)if(locales[o.parentLocale]!=null)r=locales[o.parentLocale]._config;else if(n=loadLocale(o.parentLocale),n!=null)r=n._config;else return localeFamilies[o.parentLocale]||(localeFamilies[o.parentLocale]=[]),localeFamilies[o.parentLocale].push({name:t,config:o}),null;return locales[t]=new Locale(mergeConfigs(r,o)),localeFamilies[t]&&localeFamilies[t].forEach(function(s){defineLocale(s.name,s.config)}),getSetGlobalLocale(t),locales[t]}else return delete locales[t],null}function updateLocale(t,o){if(o!=null){var n,r,s=baseConfig;locales[t]!=null&&locales[t].parentLocale!=null?locales[t].set(mergeConfigs(locales[t]._config,o)):(r=loadLocale(t),r!=null&&(s=r._config),o=mergeConfigs(s,o),r==null&&(o.abbr=t),n=new Locale(o),n.parentLocale=locales[t],locales[t]=n),getSetGlobalLocale(t)}else locales[t]!=null&&(locales[t].parentLocale!=null?(locales[t]=locales[t].parentLocale,t===getSetGlobalLocale()&&getSetGlobalLocale(t)):locales[t]!=null&&delete locales[t]);return locales[t]}function getLocale(t){var o;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return globalLocale;if(!isArray$4(t)){if(o=loadLocale(t),o)return o;t=[t]}return chooseLocale(t)}function listLocales(){return keys$1(locales)}function checkOverflow(t){var o,n=t._a;return n&&getParsingFlags(t).overflow===-2&&(o=n[MONTH]<0||n[MONTH]>11?MONTH:n[DATE]<1||n[DATE]>daysInMonth(n[YEAR],n[MONTH])?DATE:n[HOUR]<0||n[HOUR]>24||n[HOUR]===24&&(n[MINUTE]!==0||n[SECOND]!==0||n[MILLISECOND]!==0)?HOUR:n[MINUTE]<0||n[MINUTE]>59?MINUTE:n[SECOND]<0||n[SECOND]>59?SECOND:n[MILLISECOND]<0||n[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(t)._overflowDayOfYear&&(oDATE)&&(o=DATE),getParsingFlags(t)._overflowWeeks&&o===-1&&(o=WEEK),getParsingFlags(t)._overflowWeekday&&o===-1&&(o=WEEKDAY),getParsingFlags(t).overflow=o),t}var extendedIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,basicIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],isoTimes=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],aspNetJsonRegex=/^\/?Date\((-?\d+)/i,rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,obsOffsets={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function configFromISO(t){var o,n,r=t._i,s=extendedIsoRegex.exec(r)||basicIsoRegex.exec(r),l,d,m,_,g=isoDates.length,v=isoTimes.length;if(s){for(getParsingFlags(t).iso=!0,o=0,n=g;odaysInYear(d)||t._dayOfYear===0)&&(getParsingFlags(t)._overflowDayOfYear=!0),n=createUTCDate(d,0,t._dayOfYear),t._a[MONTH]=n.getUTCMonth(),t._a[DATE]=n.getUTCDate()),o=0;o<3&&t._a[o]==null;++o)t._a[o]=r[o]=s[o];for(;o<7;o++)t._a[o]=r[o]=t._a[o]==null?o===2?1:0:t._a[o];t._a[HOUR]===24&&t._a[MINUTE]===0&&t._a[SECOND]===0&&t._a[MILLISECOND]===0&&(t._nextDay=!0,t._a[HOUR]=0),t._d=(t._useUTC?createUTCDate:createDate).apply(null,r),l=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[HOUR]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==l&&(getParsingFlags(t).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(t){var o,n,r,s,l,d,m,_,g;o=t._w,o.GG!=null||o.W!=null||o.E!=null?(l=1,d=4,n=defaults$2(o.GG,t._a[YEAR],weekOfYear(createLocal(),1,4).year),r=defaults$2(o.W,1),s=defaults$2(o.E,1),(s<1||s>7)&&(_=!0)):(l=t._locale._week.dow,d=t._locale._week.doy,g=weekOfYear(createLocal(),l,d),n=defaults$2(o.gg,t._a[YEAR],g.year),r=defaults$2(o.w,g.week),o.d!=null?(s=o.d,(s<0||s>6)&&(_=!0)):o.e!=null?(s=o.e+l,(o.e<0||o.e>6)&&(_=!0)):s=l),r<1||r>weeksInYear(n,l,d)?getParsingFlags(t)._overflowWeeks=!0:_!=null?getParsingFlags(t)._overflowWeekday=!0:(m=dayOfYearFromWeeks(n,r,s,l,d),t._a[YEAR]=m.year,t._dayOfYear=m.dayOfYear)}hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(t){if(t._f===hooks.ISO_8601){configFromISO(t);return}if(t._f===hooks.RFC_2822){configFromRFC2822(t);return}t._a=[],getParsingFlags(t).empty=!0;var o=""+t._i,n,r,s,l,d,m=o.length,_=0,g,v;for(s=expandFormat(t._f,t._locale).match(formattingTokens)||[],v=s.length,n=0;n0&&getParsingFlags(t).unusedInput.push(d),o=o.slice(o.indexOf(r)+r.length),_+=r.length),formatTokenFunctions[l]?(r?getParsingFlags(t).empty=!1:getParsingFlags(t).unusedTokens.push(l),addTimeToArrayFromToken(l,r,t)):t._strict&&!r&&getParsingFlags(t).unusedTokens.push(l);getParsingFlags(t).charsLeftOver=m-_,o.length>0&&getParsingFlags(t).unusedInput.push(o),t._a[HOUR]<=12&&getParsingFlags(t).bigHour===!0&&t._a[HOUR]>0&&(getParsingFlags(t).bigHour=void 0),getParsingFlags(t).parsedDateParts=t._a.slice(0),getParsingFlags(t).meridiem=t._meridiem,t._a[HOUR]=meridiemFixWrap(t._locale,t._a[HOUR],t._meridiem),g=getParsingFlags(t).era,g!==null&&(t._a[YEAR]=t._locale.erasConvertYear(g,t._a[YEAR])),configFromArray(t),checkOverflow(t)}function meridiemFixWrap(t,o,n){var r;return n==null?o:t.meridiemHour!=null?t.meridiemHour(o,n):(t.isPM!=null&&(r=t.isPM(n),r&&o<12&&(o+=12),!r&&o===12&&(o=0)),o)}function configFromStringAndArray(t){var o,n,r,s,l,d,m=!1,_=t._f.length;if(_===0){getParsingFlags(t).invalidFormat=!0,t._d=new Date(NaN);return}for(s=0;s<_;s++)l=0,d=!1,o=copyConfig({},t),t._useUTC!=null&&(o._useUTC=t._useUTC),o._f=t._f[s],configFromStringAndFormat(o),isValid$2(o)&&(d=!0),l+=getParsingFlags(o).charsLeftOver,l+=getParsingFlags(o).unusedTokens.length*10,getParsingFlags(o).score=l,m?lthis?this:t:createInvalid()});function pickBy(t,o){var n,r;if(o.length===1&&isArray$4(o[0])&&(o=o[0]),!o.length)return createLocal();for(n=o[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined$1(this._isDSTShifted))return this._isDSTShifted;var t={},o;return copyConfig(t,this),t=prepareConfig(t),t._a?(o=t._isUTC?createUTC(t._a):createLocal(t._a),this._isDSTShifted=this.isValid()&&compareArrays(t._a,o.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:!1}function isUtcOffset(){return this.isValid()?this._isUTC:!1}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aspNetRegex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(t,o){var n=t,r=null,s,l,d;return isDuration(t)?n={ms:t._milliseconds,d:t._days,M:t._months}:isNumber$1(t)||!isNaN(+t)?(n={},o?n[o]=+t:n.milliseconds=+t):(r=aspNetRegex.exec(t))?(s=r[1]==="-"?-1:1,n={y:0,d:toInt(r[DATE])*s,h:toInt(r[HOUR])*s,m:toInt(r[MINUTE])*s,s:toInt(r[SECOND])*s,ms:toInt(absRound(r[MILLISECOND]*1e3))*s}):(r=isoRegex.exec(t))?(s=r[1]==="-"?-1:1,n={y:parseIso(r[2],s),M:parseIso(r[3],s),w:parseIso(r[4],s),d:parseIso(r[5],s),h:parseIso(r[6],s),m:parseIso(r[7],s),s:parseIso(r[8],s)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(d=momentsDifference(createLocal(n.from),createLocal(n.to)),n={},n.ms=d.milliseconds,n.M=d.months),l=new Duration(n),isDuration(t)&&hasOwnProp(t,"_locale")&&(l._locale=t._locale),isDuration(t)&&hasOwnProp(t,"_isValid")&&(l._isValid=t._isValid),l}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(t,o){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*o}function positiveMomentsDifference(t,o){var n={};return n.months=o.month()-t.month()+(o.year()-t.year())*12,t.clone().add(n.months,"M").isAfter(o)&&--n.months,n.milliseconds=+o-+t.clone().add(n.months,"M"),n}function momentsDifference(t,o){var n;return t.isValid()&&o.isValid()?(o=cloneWithOffset(o,t),t.isBefore(o)?n=positiveMomentsDifference(t,o):(n=positiveMomentsDifference(o,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function createAdder(t,o){return function(n,r){var s,l;return r!==null&&!isNaN(+r)&&(deprecateSimple(o,"moment()."+o+"(period, number) is deprecated. Please use moment()."+o+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),l=n,n=r,r=l),s=createDuration(n,r),addSubtract(this,s,t),this}}function addSubtract(t,o,n,r){var s=o._milliseconds,l=absRound(o._days),d=absRound(o._months);t.isValid()&&(r=r??!0,d&&setMonth$1(t,get$1(t,"Month")+d*n),l&&set$1$1(t,"Date",get$1(t,"Date")+l*n),s&&t._d.setTime(t._d.valueOf()+s*n),r&&hooks.updateOffset(t,l||d))}var add=createAdder(1,"add"),subtract=createAdder(-1,"subtract");function isString$1(t){return typeof t=="string"||t instanceof String}function isMomentInput(t){return isMoment(t)||isDate$2(t)||isString$1(t)||isNumber$1(t)||isNumberOrStringArray(t)||isMomentInputObject(t)||t===null||t===void 0}function isMomentInputObject(t){var o=isObject$b(t)&&!isObjectEmpty(t),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,l,d=r.length;for(s=0;sn.valueOf():n.valueOf()9999?formatMoment(n,o?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction$5(Date.prototype.toISOString)?o?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment(n,"Z")):formatMoment(n,o?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",o="",n,r,s,l;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",o="Z"),n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",l=o+'[")]',this.format(n+r+s+l)}function format$4(t){t||(t=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var o=formatMoment(this,t);return this.localeData().postformat(o)}function from(t,o){return this.isValid()&&(isMoment(t)&&t.isValid()||createLocal(t).isValid())?createDuration({to:this,from:t}).locale(this.locale()).humanize(!o):this.localeData().invalidDate()}function fromNow(t){return this.from(createLocal(),t)}function to(t,o){return this.isValid()&&(isMoment(t)&&t.isValid()||createLocal(t).isValid())?createDuration({from:this,to:t}).locale(this.locale()).humanize(!o):this.localeData().invalidDate()}function toNow(t){return this.to(createLocal(),t)}function locale$1(t){var o;return t===void 0?this._locale._abbr:(o=getLocale(t),o!=null&&(this._locale=o),this)}var lang=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function localeData(){return this._locale}var MS_PER_SECOND=1e3,MS_PER_MINUTE=60*MS_PER_SECOND,MS_PER_HOUR=60*MS_PER_MINUTE,MS_PER_400_YEARS=(365*400+97)*24*MS_PER_HOUR;function mod$1(t,o){return(t%o+o)%o}function localStartOfDate(t,o,n){return t<100&&t>=0?new Date(t+400,o,n)-MS_PER_400_YEARS:new Date(t,o,n).valueOf()}function utcStartOfDate(t,o,n){return t<100&&t>=0?Date.UTC(t+400,o,n)-MS_PER_400_YEARS:Date.UTC(t,o,n)}function startOf(t){var o,n;if(t=normalizeUnits(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?utcStartOfDate:localStartOfDate,t){case"year":o=n(this.year(),0,1);break;case"quarter":o=n(this.year(),this.month()-this.month()%3,1);break;case"month":o=n(this.year(),this.month(),1);break;case"week":o=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":o=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":o=n(this.year(),this.month(),this.date());break;case"hour":o=this._d.valueOf(),o-=mod$1(o+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case"minute":o=this._d.valueOf(),o-=mod$1(o,MS_PER_MINUTE);break;case"second":o=this._d.valueOf(),o-=mod$1(o,MS_PER_SECOND);break}return this._d.setTime(o),hooks.updateOffset(this,!0),this}function endOf(t){var o,n;if(t=normalizeUnits(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?utcStartOfDate:localStartOfDate,t){case"year":o=n(this.year()+1,0,1)-1;break;case"quarter":o=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":o=n(this.year(),this.month()+1,1)-1;break;case"week":o=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":o=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":o=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":o=this._d.valueOf(),o+=MS_PER_HOUR-mod$1(o+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case"minute":o=this._d.valueOf(),o+=MS_PER_MINUTE-mod$1(o,MS_PER_MINUTE)-1;break;case"second":o=this._d.valueOf(),o+=MS_PER_SECOND-mod$1(o,MS_PER_SECOND)-1;break}return this._d.setTime(o),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate$3(){return new Date(this.valueOf())}function toArray$1(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function toObject(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2$1(){return isValid$2(this)}function parsingFlags(){return extend$1({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr");addFormatToken("NN",0,0,"eraAbbr");addFormatToken("NNN",0,0,"eraAbbr");addFormatToken("NNNN",0,0,"eraName");addFormatToken("NNNNN",0,0,"eraNarrow");addFormatToken("y",["y",1],"yo","eraYear");addFormatToken("y",["yy",2],0,"eraYear");addFormatToken("y",["yyy",3],0,"eraYear");addFormatToken("y",["yyyy",4],0,"eraYear");addRegexToken("N",matchEraAbbr);addRegexToken("NN",matchEraAbbr);addRegexToken("NNN",matchEraAbbr);addRegexToken("NNNN",matchEraName);addRegexToken("NNNNN",matchEraNarrow);addParseToken(["N","NN","NNN","NNNN","NNNNN"],function(t,o,n,r){var s=n._locale.erasParse(t,r,n._strict);s?getParsingFlags(n).era=s:getParsingFlags(n).invalidEra=t});addRegexToken("y",matchUnsigned);addRegexToken("yy",matchUnsigned);addRegexToken("yyy",matchUnsigned);addRegexToken("yyyy",matchUnsigned);addRegexToken("yo",matchEraYearOrdinal);addParseToken(["y","yy","yyy","yyyy"],YEAR);addParseToken(["yo"],function(t,o,n,r){var s;n._locale._eraYearOrdinalRegex&&(s=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?o[YEAR]=n._locale.eraYearOrdinalParse(t,s):o[YEAR]=parseInt(t,10)});function localeEras(t,o){var n,r,s,l=this._eras||getLocale("en")._eras;for(n=0,r=l.length;n=0)return l[r]}function localeErasConvertYear(t,o){var n=t.since<=t.until?1:-1;return o===void 0?hooks(t.since).year():hooks(t.since).year()+(o-t.offset)*n}function getEraName(){var t,o,n,r=this.localeData().eras();for(t=0,o=r.length;tl&&(o=l),setWeekAll.call(this,t,o,n,r,s))}function setWeekAll(t,o,n,r,s){var l=dayOfYearFromWeeks(t,o,n,r,s),d=createUTCDate(l.year,0,l.dayOfYear);return this.year(d.getUTCFullYear()),this.month(d.getUTCMonth()),this.date(d.getUTCDate()),this}addFormatToken("Q",0,"Qo","quarter");addRegexToken("Q",match1);addParseToken("Q",function(t,o){o[MONTH]=(toInt(t)-1)*3});function getSetQuarter(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date");addRegexToken("D",match1to2,match1to2NoLeadingZero);addRegexToken("DD",match1to2,match2);addRegexToken("Do",function(t,o){return t?o._dayOfMonthOrdinalParse||o._ordinalParse:o._dayOfMonthOrdinalParseLenient});addParseToken(["D","DD"],DATE);addParseToken("Do",function(t,o){o[DATE]=toInt(t.match(match1to2)[0])});var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear");addRegexToken("DDD",match1to3);addRegexToken("DDDD",match3);addParseToken(["DDD","DDDD"],function(t,o,n){n._dayOfYear=toInt(t)});function getSetDayOfYear(t){var o=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?o:this.add(t-o,"d")}addFormatToken("m",["mm",2],0,"minute");addRegexToken("m",match1to2,match1to2HasZero);addRegexToken("mm",match1to2,match2);addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second");addRegexToken("s",match1to2,match1to2HasZero);addRegexToken("ss",match1to2,match2);addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",!1);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)});addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)});addFormatToken(0,["SSS",3],0,"millisecond");addFormatToken(0,["SSSS",4],0,function(){return this.millisecond()*10});addFormatToken(0,["SSSSS",5],0,function(){return this.millisecond()*100});addFormatToken(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});addFormatToken(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});addFormatToken(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});addFormatToken(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});addRegexToken("S",match1to3,match1);addRegexToken("SS",match1to3,match2);addRegexToken("SSS",match1to3,match3);var token,getSetMillisecond;for(token="SSSS";token.length<=9;token+="S")addRegexToken(token,matchUnsigned);function parseMs(t,o){o[MILLISECOND]=toInt(("0."+t)*1e3)}for(token="S";token.length<=9;token+="S")addParseToken(token,parseMs);getSetMillisecond=makeGetSet("Milliseconds",!1);addFormatToken("z",0,0,"zoneAbbr");addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var proto=Moment.prototype;proto.add=add;proto.calendar=calendar$1;proto.clone=clone$1;proto.diff=diff;proto.endOf=endOf;proto.format=format$4;proto.from=from;proto.fromNow=fromNow;proto.to=to;proto.toNow=toNow;proto.get=stringGet;proto.invalidAt=invalidAt;proto.isAfter=isAfter;proto.isBefore=isBefore;proto.isBetween=isBetween;proto.isSame=isSame;proto.isSameOrAfter=isSameOrAfter;proto.isSameOrBefore=isSameOrBefore;proto.isValid=isValid$2$1;proto.lang=lang;proto.locale=locale$1;proto.localeData=localeData;proto.max=prototypeMax;proto.min=prototypeMin;proto.parsingFlags=parsingFlags;proto.set=stringSet;proto.startOf=startOf;proto.subtract=subtract;proto.toArray=toArray$1;proto.toObject=toObject;proto.toDate=toDate$3;proto.toISOString=toISOString;proto.inspect=inspect;typeof Symbol<"u"&&Symbol.for!=null&&(proto[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});proto.toJSON=toJSON;proto.toString=toString$2;proto.unix=unix;proto.valueOf=valueOf;proto.creationData=creationData;proto.eraName=getEraName;proto.eraNarrow=getEraNarrow;proto.eraAbbr=getEraAbbr;proto.eraYear=getEraYear;proto.year=getSetYear;proto.isLeapYear=getIsLeapYear;proto.weekYear=getSetWeekYear;proto.isoWeekYear=getSetISOWeekYear;proto.quarter=proto.quarters=getSetQuarter;proto.month=getSetMonth;proto.daysInMonth=getDaysInMonth$1;proto.week=proto.weeks=getSetWeek;proto.isoWeek=proto.isoWeeks=getSetISOWeek;proto.weeksInYear=getWeeksInYear;proto.weeksInWeekYear=getWeeksInWeekYear;proto.isoWeeksInYear=getISOWeeksInYear;proto.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear;proto.date=getSetDayOfMonth;proto.day=proto.days=getSetDayOfWeek;proto.weekday=getSetLocaleDayOfWeek;proto.isoWeekday=getSetISODayOfWeek;proto.dayOfYear=getSetDayOfYear;proto.hour=proto.hours=getSetHour;proto.minute=proto.minutes=getSetMinute;proto.second=proto.seconds=getSetSecond;proto.millisecond=proto.milliseconds=getSetMillisecond;proto.utcOffset=getSetOffset;proto.utc=setOffsetToUTC;proto.local=setOffsetToLocal;proto.parseZone=setOffsetToParsedOffset;proto.hasAlignedHourOffset=hasAlignedHourOffset;proto.isDST=isDaylightSavingTime;proto.isLocal=isLocal;proto.isUtcOffset=isUtcOffset;proto.isUtc=isUtc;proto.isUTC=isUtc;proto.zoneAbbr=getZoneAbbr;proto.zoneName=getZoneName;proto.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth);proto.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth);proto.years=deprecate("years accessor is deprecated. Use year instead",getSetYear);proto.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone);proto.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(t){return createLocal(t*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(t){return t}var proto$1=Locale.prototype;proto$1.calendar=calendar;proto$1.longDateFormat=longDateFormat;proto$1.invalidDate=invalidDate;proto$1.ordinal=ordinal;proto$1.preparse=preParsePostFormat;proto$1.postformat=preParsePostFormat;proto$1.relativeTime=relativeTime;proto$1.pastFuture=pastFuture;proto$1.set=set$1;proto$1.eras=localeEras;proto$1.erasParse=localeErasParse;proto$1.erasConvertYear=localeErasConvertYear;proto$1.erasAbbrRegex=erasAbbrRegex;proto$1.erasNameRegex=erasNameRegex;proto$1.erasNarrowRegex=erasNarrowRegex;proto$1.months=localeMonths;proto$1.monthsShort=localeMonthsShort;proto$1.monthsParse=localeMonthsParse;proto$1.monthsRegex=monthsRegex;proto$1.monthsShortRegex=monthsShortRegex;proto$1.week=localeWeek;proto$1.firstDayOfYear=localeFirstDayOfYear;proto$1.firstDayOfWeek=localeFirstDayOfWeek;proto$1.weekdays=localeWeekdays;proto$1.weekdaysMin=localeWeekdaysMin;proto$1.weekdaysShort=localeWeekdaysShort;proto$1.weekdaysParse=localeWeekdaysParse;proto$1.weekdaysRegex=weekdaysRegex;proto$1.weekdaysShortRegex=weekdaysShortRegex;proto$1.weekdaysMinRegex=weekdaysMinRegex;proto$1.isPM=localeIsPM;proto$1.meridiem=localeMeridiem;function get$1$1(t,o,n,r){var s=getLocale(),l=createUTC().set(r,o);return s[n](l,t)}function listMonthsImpl(t,o,n){if(isNumber$1(t)&&(o=t,t=void 0),t=t||"",o!=null)return get$1$1(t,o,n,"month");var r,s=[];for(r=0;r<12;r++)s[r]=get$1$1(t,r,n,"month");return s}function listWeekdaysImpl(t,o,n,r){typeof t=="boolean"?(isNumber$1(o)&&(n=o,o=void 0),o=o||""):(o=t,n=o,t=!1,isNumber$1(o)&&(n=o,o=void 0),o=o||"");var s=getLocale(),l=t?s._week.dow:0,d,m=[];if(n!=null)return get$1$1(o,(n+l)%7,r,"day");for(d=0;d<7;d++)m[d]=get$1$1(o,(d+l)%7,r,"day");return m}function listMonths(t,o){return listMonthsImpl(t,o,"months")}function listMonthsShort(t,o){return listMonthsImpl(t,o,"monthsShort")}function listWeekdays(t,o,n){return listWeekdaysImpl(t,o,n,"weekdays")}function listWeekdaysShort(t,o,n){return listWeekdaysImpl(t,o,n,"weekdaysShort")}function listWeekdaysMin(t,o,n){return listWeekdaysImpl(t,o,n,"weekdaysMin")}getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var o=t%10,n=toInt(t%100/10)===1?"th":o===1?"st":o===2?"nd":o===3?"rd":"th";return t+n}});hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale);hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function abs(){var t=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),t.milliseconds=mathAbs(t.milliseconds),t.seconds=mathAbs(t.seconds),t.minutes=mathAbs(t.minutes),t.hours=mathAbs(t.hours),t.months=mathAbs(t.months),t.years=mathAbs(t.years),this}function addSubtract$1(t,o,n,r){var s=createDuration(o,n);return t._milliseconds+=r*s._milliseconds,t._days+=r*s._days,t._months+=r*s._months,t._bubble()}function add$1(t,o){return addSubtract$1(this,t,o,1)}function subtract$1(t,o){return addSubtract$1(this,t,o,-1)}function absCeil(t){return t<0?Math.floor(t):Math.ceil(t)}function bubble(){var t=this._milliseconds,o=this._days,n=this._months,r=this._data,s,l,d,m,_;return t>=0&&o>=0&&n>=0||t<=0&&o<=0&&n<=0||(t+=absCeil(monthsToDays(n)+o)*864e5,o=0,n=0),r.milliseconds=t%1e3,s=absFloor(t/1e3),r.seconds=s%60,l=absFloor(s/60),r.minutes=l%60,d=absFloor(l/60),r.hours=d%24,o+=absFloor(d/24),_=absFloor(daysToMonths(o)),n+=_,o-=absCeil(monthsToDays(_)),m=absFloor(n/12),n%=12,r.days=o,r.months=n,r.years=m,this}function daysToMonths(t){return t*4800/146097}function monthsToDays(t){return t*146097/4800}function as(t){if(!this.isValid())return NaN;var o,n,r=this._milliseconds;if(t=normalizeUnits(t),t==="month"||t==="quarter"||t==="year")switch(o=this._days+r/864e5,n=this._months+daysToMonths(o),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(o=this._days+Math.round(monthsToDays(this._months)),t){case"week":return o/7+r/6048e5;case"day":return o+r/864e5;case"hour":return o*24+r/36e5;case"minute":return o*1440+r/6e4;case"second":return o*86400+r/1e3;case"millisecond":return Math.floor(o*864e5)+r;default:throw new Error("Unknown unit "+t)}}function makeAs(t){return function(){return this.as(t)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y"),valueOf$1=asMilliseconds;function clone$1$1(){return createDuration(this)}function get$2(t){return t=normalizeUnits(t),this.isValid()?this[t+"s"]():NaN}function makeGetter(t){return function(){return this.isValid()?this._data[t]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var round=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(t,o,n,r,s){return s.relativeTime(o||1,!!n,t,r)}function relativeTime$1(t,o,n,r){var s=createDuration(t).abs(),l=round(s.as("s")),d=round(s.as("m")),m=round(s.as("h")),_=round(s.as("d")),g=round(s.as("M")),v=round(s.as("w")),y=round(s.as("y")),w=l<=n.ss&&["s",l]||l0,w[4]=r,substituteTimeAgo.apply(null,w)}function getSetRelativeTimeRounding(t){return t===void 0?round:typeof t=="function"?(round=t,!0):!1}function getSetRelativeTimeThreshold(t,o){return thresholds[t]===void 0?!1:o===void 0?thresholds[t]:(thresholds[t]=o,t==="s"&&(thresholds.ss=o-1),!0)}function humanize(t,o){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=thresholds,s,l;return typeof t=="object"&&(o=t,t=!1),typeof t=="boolean"&&(n=t),typeof o=="object"&&(r=Object.assign({},thresholds,o),o.s!=null&&o.ss==null&&(r.ss=o.s-1)),s=this.localeData(),l=relativeTime$1(this,!n,r,s),n&&(l=s.pastFuture(+this,l)),s.postformat(l)}var abs$1=Math.abs;function sign(t){return(t>0)-(t<0)||+t}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var t=abs$1(this._milliseconds)/1e3,o=abs$1(this._days),n=abs$1(this._months),r,s,l,d,m=this.asSeconds(),_,g,v,y;return m?(r=absFloor(t/60),s=absFloor(r/60),t%=60,r%=60,l=absFloor(n/12),n%=12,d=t?t.toFixed(3).replace(/\.?0+$/,""):"",_=m<0?"-":"",g=sign(this._months)!==sign(m)?"-":"",v=sign(this._days)!==sign(m)?"-":"",y=sign(this._milliseconds)!==sign(m)?"-":"",_+"P"+(l?g+l+"Y":"")+(n?g+n+"M":"")+(o?v+o+"D":"")+(s||r||t?"T":"")+(s?y+s+"H":"")+(r?y+r+"M":"")+(t?y+d+"S":"")):"P0D"}var proto$2=Duration.prototype;proto$2.isValid=isValid$1$1;proto$2.abs=abs;proto$2.add=add$1;proto$2.subtract=subtract$1;proto$2.as=as;proto$2.asMilliseconds=asMilliseconds;proto$2.asSeconds=asSeconds;proto$2.asMinutes=asMinutes;proto$2.asHours=asHours;proto$2.asDays=asDays;proto$2.asWeeks=asWeeks;proto$2.asMonths=asMonths;proto$2.asQuarters=asQuarters;proto$2.asYears=asYears;proto$2.valueOf=valueOf$1;proto$2._bubble=bubble;proto$2.clone=clone$1$1;proto$2.get=get$2;proto$2.milliseconds=milliseconds;proto$2.seconds=seconds;proto$2.minutes=minutes;proto$2.hours=hours;proto$2.days=days;proto$2.weeks=weeks;proto$2.months=months;proto$2.years=years;proto$2.humanize=humanize;proto$2.toISOString=toISOString$1;proto$2.toString=toISOString$1;proto$2.toJSON=toISOString$1;proto$2.locale=locale$1;proto$2.localeData=localeData;proto$2.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1);proto$2.lang=lang;addFormatToken("X",0,0,"unix");addFormatToken("x",0,0,"valueOf");addRegexToken("x",matchSigned);addRegexToken("X",matchTimestamp);addParseToken("X",function(t,o,n){n._d=new Date(parseFloat(t)*1e3)});addParseToken("x",function(t,o,n){n._d=new Date(toInt(t))});//! moment.js
+hooks.version="2.30.1";setHookCallback(createLocal);hooks.fn=proto;hooks.min=min;hooks.max=max;hooks.now=now$5;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate$2;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function tipBuyVip$1(){putLogs("提醒购买vip"),AppStore.cbBuyVip()}let mapUrls=null;function isFreeSkip(){if(AppStore.isBlack)return!1;const t=hooks().format("YYYYMMDD");let o=JSON.parse(window.dbGet("vip_free_skip"))||{};return o[t]||(o={},o[t]=0),o[t]+=1,window.dbPut("vip_free_skip",JSON.stringify(o)),o[t]<3}function goToUrl(t,o){try{console.log("goToUrl",t),goToUrl_(t,o)}catch(n){alert("error: "+n)}}async function putLogs(t){mapUrls||(mapUrls=JSON.parse(window.dbGet("open_urls"))||{}),mapUrls[t]=(mapUrls[t]||0)+1,window.dbPut("open_urls",JSON.stringify(mapUrls))}function goToUrl_(t,o){if(!AppStore.isVip()&&!o&&!isFreeSkip()){tipBuyVip$1();return}let n=new URL(t).hostname;putLogs(n);let r=window.dbGet("filter_url")||"";console.log("filterUrl",r);let l=r.split(";").find(_=>t.indexOf(_)>=0);if(AppStore.bUseSystemBrowser||l){ztools.shellOpenExternal(t);return}let d=ztools.getIdleUBrowsers(),m=null;d.length>0?(m=d[d.length-1].id,getBrowser(t).run(m).catch(_=>{getBrowser(t).run({width:1100,height:720})})):getBrowser(t).run({width:1100,height:720})}function getBrowser(t){if(t.indexOf("tieba.baidu.com")>0)return ztools.ubrowser.goto(t).click("span.close-btn");if(t.indexOf("zhihu.com")>0){let o="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15";return ztools.ubrowser.useragent(o).goto(t).click("button.Modal-closeButton").evaluate(()=>{document.querySelectorAll(".Pc-card").forEach(r=>{r.remove()}),document.querySelector(".css-1wq6v87").style.maxWidth="10px"})}else return t.indexOf("www.xiaohongshu.com")>0?ztools.ubrowser.goto(t).evaluate(()=>{document.querySelectorAll(".side-bar").forEach(n=>{n.remove()}),document.querySelector(".with-side-bar").style.paddingLeft="0",document.querySelector(".outer-link-container").style.width="100%"}):ztools.ubrowser.goto(t)}function playVoice(t,o){if(!AppStore.isVip()&&!o){tipBuyVip$1();return}putLogs("语音朗读");let n=new SpeechSynthesisUtterance(t),r=window.speechSynthesis;r.cancel(),n.rate=AppStore.voiceInfo.rate,n.pitch=AppStore.voiceInfo.pitch,n.volume=AppStore.voiceInfo.volume,r.speak(n)}function makeUUID(){let t=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(t+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(o){let n=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(o==="x"?n:n&3|8).toString(16)})}function clickHtml(t,o){let n=t.target;if(console.log("tag----",n.tagName),n&&n.tagName==="IMG"){t.stopPropagation();let r=n.getAttribute("src");if(console.log("src--",r),r!="https://wwwapprcn.macapp8.com/badge_appstore-lrg.svg"&&r!="https://wwwapprcn.macapp8.com/google_pley_badges.png")return}for(;n&&n.tagName!=="A";)n=n.parentElement;if(n&&n.tagName==="A"){let r=n.href;console.log("href",r),r||(r=n.getAttribute("attr-href"),console.log("href--",r)),r!=null&&(o!=null&&r.startsWith("file:///")&&(r=r.replace("file:///",o)),o!=null&&r.startsWith("http://localhost:5174")&&(r=r.replace("http://localhost:5174",o)),(r.startsWith("http")||r.startsWith("//"))&&(t.stopPropagation(),goToUrl(r,!0)))}}function getTagColor(t){const o=[{"background-color":"rgba(76, 175, 80, 0.9)",color:"white"},{"background-color":"rgba(33, 150, 243, 0.85)",color:"white"},{"background-color":"rgba(255, 193, 7, 0.8)",color:"white"},{"background-color":"rgba(233, 30, 99, 0.75)",color:"white"},{"background-color":"rgba(156, 39, 176, 0.7)",color:"white"},{"background-color":"rgba(244, 67, 54, 0.65)",color:"white"},{"background-color":"rgba(0, 188, 212, 0.6)",color:"white"},{"background-color":"rgba(255, 152, 0, 0.55)",color:"white"},{"background-color":"rgba(121, 85, 72, 0.5)",color:"white"},{"background-color":"rgba(96, 125, 139, 0.45)",color:"white"}];return o[t]||o[o.length-1]}const proxyImg=t=>t&&`http://localhost:51984/${t}`,AppStore=reactive({backCbs:[],leftCbs:[],rightCbs:[],downCbs:[],upCbs:[],enterCbs:[],keydownCbs:[],keyupCbs:[],addKeydownCb(t){this.keydownCbs.push(t)},removeKeydownCb(t){this.keydownCbs=this.keydownCbs.filter(o=>o!=t)},addKeyupCb(t){this.keyupCbs.push(t)},removeKeyupCb(t){this.keyupCbs=this.keyupCbs.filter(o=>o!=t)},user:null,purchasedUser:null,useTime:0,lastActiveTime:0,curUseInfo:null,useDays:[],isRealVip:!1,tjDayCount:0,tjCurDay:"",bShowImage:!0,bOldMode:!1,bListCrossing:!1,bInnerOpen:!1,bUseSystemBrowser:!1,bSearchBarStock:!1,bShowClassification:!0,cbBuyVip:null,bIsFront:!1,searchStocks:[],bIsKill:!1,currentSkin:"default",themeMode:"light",_systemDark:!1,previewTimer:null,previewCountdown:0,previewSkinId:null,get isDark(){return this.themeMode==="dark"?!0:this.themeMode==="light"?!1:this._systemDark},get effectiveTheme(){return this.isDark?"dark":"light"},uid:null,isBlack:!1,server:null,voiceInfo:{rate:.95,pitch:1,volume:1},isOldMode(){return this.bOldMode},showImage(){return this.bShowImage},isVip(){if(this.purchasedUser,this.purchasedUser===1)return !0;if(!this.purchasedUser)return !0;if(this.purchasedUser==!0)return !0;let t=Date.parse(this.purchasedUser)-new Date().getTime();return !0},isVipSkin(t){return t&&t.startsWith("vip-")},setThemeMode(t){if(!(t!=="light"&&t!=="dark"&&t!=="system")){this.themeMode=t;try{window.dbPut("zkit_theme_mode",t)}catch(o){console.error("dbPut themeMode failed",o)}}},setSkin(t){if(this.isVipSkin(t)&&!this.isVip()){this.startSkinPreview(t);return}this.currentSkin=t,this.clearPreviewTimer();try{window.dbPut("zkit_skin",t)}catch(n){console.error("dbPut skin failed",n)}const o=document.getElementById("app-skin-wrapper");o&&(o.dataset.skin=t==="default"?"":t)},startSkinPreview(t="vip-aurora"){this.clearPreviewTimer(),this.previewSkinId=t,this.currentSkin=t;const o=document.getElementById("app-skin-wrapper");o&&(o.dataset.skin=t),this.previewCountdown=10,this.previewTimer=setInterval(()=>{if(this.previewCountdown-=1,this.previewCountdown<=0){const n=this.previewSkinId;this.clearPreviewTimer(),this.previewSkinId=null,this.currentSkin="default",o&&(o.dataset.skin=""),this.cbBuyVip&&this.cbBuyVip(n?{reason:"skin-preview",skinId:n}:void 0)}},1e3)},clearPreviewTimer(){this.previewTimer&&(clearInterval(this.previewTimer),this.previewTimer=null),this.previewCountdown=0},timer:0,refreshSearchStock(){if(this.searchStocks.length>0&&this.bIsFront&&this.bSearchBarStock){let t=this.searchStocks.map(n=>n.QuoteID).join(",");this.isVip()||(t=this.searchStocks[0].QuoteID);let o=`https://push2.eastmoney.com/api/qt/ulist.np/get?fltt=2&invt=2&fields=f1,f2,f3,f4,f12,f13,f14,f15,f16,f18&secids=${t}`;axios$1.get(o).then(n=>{let s=n.data.data.diff.map(l=>l.f14+" "+l.f3+"%").join(" | ");ztools.setSubInput(({text:l})=>{console.log(l)},s,!1)}).catch(n=>{console.log(n)})}},getTodayUseTime(){if(!AppStore.curUseInfo)return"-";let t=AppStore.curUseInfo.useTime+new Date().getTime()-AppStore.lastActiveTime;return Math.floor(t/1e3/60)+"分"},async track(t,o){o==null&&(o={});let n="游客";AppStore.user&&(n=AppStore.user.nickname),o.u1=hooks().format("HH:mm")+"||"+n+"|"+this.getTodayUseTime(),AppStore.isBlack&&(o.uid=n+"|"+AppStore.uid,o.loc=window.location.href.substring(15,30));let r;if(r.length>14&&(r=r.substring(2,16).replaceAll("-","").replaceAll(" ","/").replaceAll(":","/")),r=="true"&&(o.vip_all=hooks().format("HH:mm")+"|"+n,AppStore.useDays&&(o.vip_all+="|"+AppStore.tjDayCount)),o.u2=n+"|"+r,AppStore.useDays)if(AppStore.tjDayCount>1)if(o.u2+="|"+AppStore.tjDayCount,AppStore.useDays.length>1){let m=AppStore.useDays[1].useTime,_=Math.floor(m/1e3/60);o.u2+="|昨"+_+"分"}else o.u2+="|昨0分";else o.u3=hooks().format("HH:mm")+"|"+n;let l=((AppStore.useTime+new Date().getTime()-AppStore.lastActiveTime)/1e3/60/60).toFixed(1);o.u2+="|总"+l+"时",AppStore.searchStocks&&AppStore.searchStocks.length>0&&(console.log("stock",AppStore.searchStocks),o.搜索栏=n+"||"+AppStore.searchStocks.map(m=>m.Name));let d=window.dbGet("filter_url");d&&(o.过滤地址=d),console.log("track",t,o),ztools.isDev()||LA.track(t,o)},async firstReport(){const t=new Date,o=t.getFullYear(),n=t.getMonth()+1,r=t.getDate();let s=`${o}-${n.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}`;this.tjCurDay=window.dbGet("tj_cur_day")||"",this.tjDayCount=window.dbGet("tj_day_count")||0,this.tjCurDay!=s&&(window.dbPut("tj_cur_day",s),this.tjDayCount+=1,window.dbPut("tj_day_count",this.tjDayCount)),this.tjCurDay=s;let l=null;this.useDays.length>0&&this.useDays[0].date==s?l=this.useDays:l=JSON.parse(window.dbGet("use_days"))||[],l=l.filter(_=>_!=null),l.length>0&&l[0].date==s?(this.curUseInfo=l[0],console.log("this.curUseInfo = useDays[0]")):(console.log("new curUseInfo"),this.curUseInfo={date:s,startTime:new Date().getTime(),useTime:0,openCount:0},l.unshift(this.curUseInfo)),console.log("--------2"),this.curUseInfo.openCount+=1,console.log("get",this.curUseInfo),console.log("useDays",l),window.dbPut("use_days",JSON.stringify(l)),l.length>200&&(l.length=200),AppStore.useDays=l;let d=hooks().format("YYYYMMDD"),m=JSON.parse(window.dbGet("first_report"))||{};if(!m[d]){console.log("track----"),m={},m[d]=1,window.dbPut("first_report",JSON.stringify(m));let _=JSON.parse(window.dbGet("open_urls"))||{};window.dbRemove("open_urls");for(let w in _)_.hasOwnProperty(w)&&(_[w]=Math.floor(_[w]/5)*5);let g="游客";AppStore.user&&(g=AppStore.user.nickname);let v=JSON.parse(window.dbGet("module_favList"))||[];v.length>0&&(_.收藏1=g+"|"+v.length+"|"+v.slice(0,5).join("|")),v.length>5&&(_.收藏2=g+"|"+v.length+"|"+v.slice(5,10).join("|")),v.length>10&&(_.收藏3=g+"|"+v.length+"|"+v.slice(10,15).join("|"));let y=window.getAllStock();y.length>0&&(_.股票收藏=g+"|"+y.length+"|"+y.slice(0,4)),AppStore.track("info",_)}},async begin(){window.startImgProxy&&window.startImgProxy(),AppStore.uid=window.dbGet("uid"),AppStore.uid||(AppStore.uid=makeUUID(),window.dbPut("uid",AppStore.uid)),setInterval(()=>{this.refreshSearchStock()},3e3),AppStore.user=ztools.getUser(),!AppStore.isVip()&&AppStore.user&&AppStore.user.nickname=="李振超"&&(AppStore.isBlack=!0),!AppStore.isVip()&&AppStore.user&&AppStore.user.avatar=="https://res.u-tools.cn/assets/avatars/e1PDuFypXan15hrr.png"&&(AppStore.isBlack=!0),this.bListCrossing=window.dbGet("setting_list_crossing")??!1,this.bShowImage=window.dbGet("setting_simple")??!0,this.bInnerOpen=window.dbGet("setting_inner_open")??!0,this.bUseSystemBrowser=window.dbGet("setting_use_system_browser")??!1,this.bSearchBarStock=window.dbGet("setting_searchbar_stock")??!1,this.bShowClassification=window.dbGet("setting_show_classification")??!0;let t="default";try{t=window.dbGet("zkit_skin")||"default"}catch(n){console.error("dbGet skin failed",n)}if(t==="vip"){t="vip-aurora";try{window.dbPut("zkit_skin","vip-aurora")}catch{}}this.isVipSkin(t)&&!this.isVip()&&(t="default"),this.currentSkin=t;let o="light";try{const n=window.dbGet("zkit_theme_mode");(n==="dark"||n==="light"||n==="system")&&(o=n)}catch(n){console.error("dbGet themeMode failed",n)}this.themeMode=o;try{if(window.matchMedia){const n=window.matchMedia("(prefers-color-scheme: dark)");this._systemDark=n.matches;const r=s=>{this._systemDark=s.matches};n.addEventListener?n.addEventListener("change",r):n.addListener&&n.addListener(r)}}catch(n){console.error("matchMedia init failed",n)}nextTick(()=>{const n=document.getElementById("app-skin-wrapper");n&&(n.dataset.skin=t==="default"?"":t)}),AppStore.searchStocks=JSON.parse(window.dbGet("searchbar_stocks"))||[],this.voiceInfo=JSON.parse(window.dbGet("voice"))||{rate:.95,pitch:1,volume:1},ztools.onPluginEnter(({code:n,type:r,payload:s})=>{if(this.bIsFront=!0,this.refreshSearchStock(),console.log("用户进入插件应用",n,r,s),AppStore.user=ztools.getUser(),AppStore.purchasedUser,AppStore.isVip(),AppStore.useTime=window.dbGet("use_time")||0,AppStore.lastActiveTime==0&&(AppStore.lastActiveTime=new Date().getTime()),AppStore.firstReport(),AppStore.isBlack&&AppStore.track("black",{time:hooks().format("HH:mm:ss")}),n==="sticky-quick"){const l=(r==="regex"||r==="text")&&s?String(s):"";window.dispatchEvent(new CustomEvent("zkit:sticky-quick",{detail:{text:l}}))}}),ztools.onPluginOut(n=>{this.bIsFront=!1,console.log(n?"插件应用完全退出":"插件应用隐藏后台"),AppStore.fixUseTime(),window.dbPut("use_time",AppStore.useTime),console.log("save",AppStore.curUseInfo),AppStore.useDays.length>0&&AppStore.useDays[0].date==AppStore.curUseInfo.date?AppStore.useDays[0]=AppStore.curUseInfo:AppStore.useDays.unshift(AppStore.curUseInfo),console.log("save2",AppStore.useDays),window.dbPut("use_days",JSON.stringify(AppStore.useDays)),clearInterval(this.timer)})},timerTaskFixChangeDay(){const t=new Date;this.testTime=t.getTime();const o=t.getFullYear(),n=t.getMonth()+1,r=t.getDate();let s=`${o}-${n.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}`;s!=AppStore.curUseInfo.date&&(AppStore.useDays.length>0&&AppStore.useDays[0].date==AppStore.curUseInfo.date?AppStore.useDays[0]=AppStore.curUseInfo:AppStore.useDays.unshift(AppStore.curUseInfo),console.log("创建新的一天"),AppStore.curUseInfo={date:s,startTime:new Date().getTime(),useTime:0,openCount:1},AppStore.useDays.unshift(AppStore.curUseInfo),window.dbPut("use_days",JSON.stringify(AppStore.useDays)),this.tjCurDay=window.dbGet("tj_cur_day")||"",this.tjDayCount=window.dbGet("tj_day_count")||0,this.tjCurDay!=s&&(window.dbPut("tj_cur_day",s),this.tjDayCount+=1,window.dbPut("tj_day_count",this.tjDayCount)),this.tjCurDay=s)},fixUseTime(){if(!this.curUseInfo)return;let t=new Date().getTime()-this.lastActiveTime;this.lastActiveTime!=0&&t>1e3*50?(console.log("fix use time",Math.floor(t/1e3)),this.useTime+=1e3*45,this.curUseInfo.useTime+=1e3*45):t>0&&(this.useTime+=t,this.curUseInfo.useTime+=t),this.lastActiveTime=new Date().getTime(),this.timerTaskFixChangeDay()}}),searchIcon=""+new URL("search-035683d4.svg",import.meta.url).href,_sfc_main$61={__name:"SvgIcon",props:{src:{type:String,default:searchIcon},color:{type:String,default:"black"},size:{type:String,size:"20px"}},setup(t){return(o,n)=>(openBlock(),createElementBlock("div",{class:"svg-icon",style:normalizeStyle({"--svg-src":"url("+t.src+")","--svg-color":t.color,width:t.size,height:t.size})},null,4))}},StateLayout_vue_vue_type_style_index_0_scoped_2f81db72_lang="",_withScopeId$1Z=t=>(pushScopeId("data-v-2f81db72"),t=t(),popScopeId(),t),_hoisted_1$4w={class:"flex1-column h100_ pos-rel layout",style:{"min-height":"1px"}},_hoisted_2$4g={key:0,class:"content-center column1-center main-text"},_hoisted_3$45=_withScopeId$1Z(()=>createBaseVNode("div",{class:"loader"},null,-1)),_hoisted_4$3$=[_hoisted_3$45],_hoisted_5$3O={key:1,class:"content-center column1-center vh-center"},_hoisted_6$3A=_withScopeId$1Z(()=>createBaseVNode("div",{class:"row-center"},[createBaseVNode("div",{class:"main-text"},"加载失败")],-1)),_hoisted_7$3m={key:2,class:"content-center column1-center main-text"},_hoisted_8$36=_withScopeId$1Z(()=>createBaseVNode("span",{class:"new-content-bar__icon"},"↓",-1)),_hoisted_9$2U={key:5,class:"row1-center vh-center py10"},_hoisted_10$2C={key:0,class:"row-center"},_hoisted_11$2n=_withScopeId$1Z(()=>createBaseVNode("div",{class:"row-center"},[createBaseVNode("div",{class:"sub-text"},"加载失败")],-1)),_hoisted_12$2g={key:1,class:"row-center sub-text"},_hoisted_13$20=_withScopeId$1Z(()=>createBaseVNode("div",{class:"ml10"},null,-1)),_hoisted_14$1Q={key:2,class:"sub-text"},_sfc_main$60={__name:"StateLayout",props:{urlCallback:Function,convertCallback:Function,convertCallback2:Function,paging:Boolean,lazyLoad:Boolean,sname:String,extStyle:String,extClass:String,both:Boolean,method:{type:String,default:"get"},mode:{type:String,default:"list"},pagingHeight:{type:Number,default:80},pollInterval:{type:Number,default:0}},setup(t,{expose:o}){const n=t,r=ref([]),s=ref("loading"),l=ref(!0),d=ref(!1);let m=1;const _=ref(!1);let g=!1;const v=ref(!1),y=ref();let w=1;const B=ref([]);ref(0);const k=ref(0);let N=null,S=!1;const x=()=>{S||_.value||s.value!=="content"||!n.convertCallback||!n.urlCallback||(S=!0,axios$1({url:n.urlCallback(1),method:n.method,validateStatus:q=>q>=200&&q<300||q===403}).then(q=>{const ae=n.convertCallback(q.data);if(ae.length>r.value.length)k.value=ae.length-r.value.length;else{const ie=new Set(r.value.map(J=>JSON.stringify(J))),oe=ae.filter(J=>!ie.has(JSON.stringify(J)));oe.length>0&&(k.value=oe.length)}S=!1}).catch(()=>{S=!1}))},C=()=>{k.value=0,Q()};onMounted(()=>{n.lazyLoad||O(),putLogs("StateLayout"),n.pollInterval>0&&(N=setInterval(x,n.pollInterval))}),onUnmounted(()=>{N&&(clearInterval(N),N=null)});const I=q=>{if(!AppStore.bListCrossing)return{"background-color":"var(--bg-content)"};if(q%2==0)return{"background-color":"var(--bg-content)"};if(q%2==1)return{"background-color":"var(--bg-content2)"}},D=q=>{if(!n.paging)return;let ae=q.target.scrollTop,ie=q.target.clientHeight,oe=q.target.scrollHeight;ae+ie>=oe-n.pagingHeight&&(v.value=!0,K())};let R=!0;const O=()=>{s.value="loading",l.value=!0,g=!1,v.value=!1,R=!0,m=1,K()},Q=q=>{l.value=!0,v.value=!1,console.log("options",q),q&&!q.toTop?R=!1:R=!0,m=1,K()},Y=q=>{(n.mode=="list"||n.mode=="self_list")&&(m==1?(r.value=q,y.value&&R&&(y.value.scrollTop=0)):r.value.push(...q),q.length==0&&(l.value=!1),m+=1),g=!0,_.value=!1,d.value=!1,s.value="content",AppStore.isBlack&&Math.random()<.5&&(s.value="error")},W=()=>{console.log("showError...."),d.value=!0,_.value=!1,g||(s.value="error")},K=()=>{if(!(_.value||!l.value)){if(d.value=!1,_.value=!0,!n.both&&n.convertCallback2){n.convertCallback2(null,m,q=>{try{Y(q)}catch(ae){console.log("catch",ae),_.value=!1,d.value=!0,g||(s.value="error")}});return}axios$1({url:n.urlCallback(m),method:n.method,validateStatus:function(q){return q>=200&&q<300||q===403}}).then(q=>{if(n.convertCallback){let ae=n.convertCallback(q.data);Y(ae)}else n.convertCallback2(q.data,m,ae=>{try{Y(ae)}catch(ie){console.log("catch",ie),_.value=!1,d.value=!0,g||(s.value="error")}})}).catch(q=>{console.log("catch",q),_.value=!1,d.value=!0,g||(s.value="error")})}};return o({reload:O,loadTop:Q,setMaxPage:q=>{w=q,w<=m?l.value=!1:l.value=!0},loadData:K,showError:W}),(q,ae)=>{const ie=resolveComponent("n-button"),oe=resolveComponent("n-spin");return openBlock(),createElementBlock("div",_hoisted_1$4w,[s.value==="loading"?(openBlock(),createElementBlock("div",_hoisted_2$4g,_hoisted_4$3$)):createCommentVNode("",!0),s.value==="error"?(openBlock(),createElementBlock("div",_hoisted_5$3O,[_hoisted_6$3A,createVNode(ie,{class:"mt10",onClick:O},{default:withCtx(()=>[createTextVNode("重试")]),_:1}),renderSlot(q.$slots,"error",{},void 0,!0)])):createCommentVNode("",!0),s.value==="empty"?(openBlock(),createElementBlock("div",_hoisted_7$3m," 暂无数据内容 ")):createCommentVNode("",!0),s.value==="content"?(openBlock(),createElementBlock("div",{key:3,ref_key:"refList",ref:y,onScroll:D,style:normalizeStyle(["overflow: auto;height:100%;"])},[k.value>0?(openBlock(),createElementBlock("div",{key:0,class:"new-content-bar",onClick:C},[_hoisted_8$36,createBaseVNode("span",null,"有 "+toDisplayString(k.value)+" 条新内容",1)])):createCommentVNode("",!0),renderSlot(q.$slots,"top",{},void 0,!0),r.value.length==0?renderSlot(q.$slots,"empty",{key:1},void 0,!0):createCommentVNode("",!0),t.mode=="self_list"?renderSlot(q.$slots,"list",{key:2,list:r.value},void 0,!0):createCommentVNode("",!0),t.mode=="list"&&r.value.length>0?(openBlock(),createElementBlock("div",{key:3,style:normalizeStyle(t.extStyle),class:normalizeClass(t.extClass)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.value,(J,j)=>(openBlock(),createElementBlock("div",{key:j,ref_for:!0,ref:re=>B.value[j]=re,style:normalizeStyle(I(j))},[renderSlot(q.$slots,"item",{item:J,index:j},void 0,!0)],4))),128))],6)):createCommentVNode("",!0),t.mode=="detail"?(openBlock(),createElementBlock("div",{key:4,style:normalizeStyle(t.extStyle),class:normalizeClass(t.extClass)},[renderSlot(q.$slots,"default",{},void 0,!0)],6)):createCommentVNode("",!0),renderSlot(q.$slots,"bottom",{},void 0,!0),t.paging&&v.value&&(s.value==="content"||s.value==="loading")?(openBlock(),createElementBlock("div",_hoisted_9$2U,[d.value?(openBlock(),createElementBlock("div",_hoisted_10$2C,[_hoisted_11$2n,createVNode(ie,{size:"small",class:"ml5",onClick:K},{default:withCtx(()=>[createTextVNode("重试")]),_:1})])):createCommentVNode("",!0),!d.value&&l.value?(openBlock(),createElementBlock("div",_hoisted_12$2g,[createVNode(oe,{size:"small"}),_hoisted_13$20,createTextVNode(" 加载中... ")])):createCommentVNode("",!0),!d.value&&!l.value?(openBlock(),createElementBlock("div",_hoisted_14$1Q," ----- 更多内容请访问原站点, ZKit只起推荐引流作用 ----- ")):createCommentVNode("",!0)])):createCommentVNode("",!0)],544)):createCommentVNode("",!0),createVNode(_sfc_main$61,{class:normalizeClass(["pos-abs refresh-btn",{"refresh-btn-spinning":_.value}]),src:unref(_imports_0$3),color:"var(--color-t2)",size:"22px",onClick:ae[0]||(ae[0]=J=>Q())},null,8,["class","src"])])}}},StateLayout=_export_sfc$1(_sfc_main$60,[["__scopeId","data-v-2f81db72"]]),IdxTag_vue_vue_type_style_index_0_scoped_7f5fec50_lang="",_sfc_main$5$={__name:"IdxTag",props:{index:Number,type:{type:String,default:"tag"}},setup(t){const o=t,n={hot:"hot-rank",masonry:"masonry-rank",masonry2:"masonry-rank2",list:"list-rank",bb:"bb-rank"},r={hot:"hot-rank",masonry:"masonry-rank",masonry2:"masonry-rank",list:"list-rank",bb:"bb-rank"},s=computed(()=>n[o.type]||""),l=computed(()=>{const d=r[o.type];return d?o.index<3?d+"-top":o.index<10?d+"-mid":"":""});return(d,m)=>t.type==="tag"?(openBlock(),createElementBlock("span",{key:0,class:"text-center right-tag",style:normalizeStyle(unref(getTagColor)(t.index))},toDisplayString(t.index+1),5)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([s.value,l.value])},toDisplayString(t.index+1),3))}},IdxTag=_export_sfc$1(_sfc_main$5$,[["__scopeId","data-v-7f5fec50"]]),SimpleHotItem_vue_vue_type_style_index_0_scoped_e5422d0a_lang="",_hoisted_1$4v={class:"rank-num"},_hoisted_2$4f={key:0,class:"hot-item-content flex1"},_hoisted_3$44={class:"hot-title"},_hoisted_4$3_={key:0,class:"hot-meta"},_hoisted_5$3N={key:1,class:"hot-item-content flex1"},_hoisted_6$3z={key:2,class:"hot-value-wrap"},_hoisted_7$3l={class:"hot-bar-bg"},_hoisted_8$35={class:"hot-value"},_hoisted_9$2T={key:0,class:"hot-suffix"},_sfc_main$5_={__name:"SimpleHotItem",props:{index:Number,content:String,suffix:{type:String,default:"🔥"},hot:String,tag:String},setup(t){const o=t,n=computed(()=>o.index<3?"rank-top":o.index<10?"rank-mid":""),r=computed(()=>{if(!o.hot)return{width:"0%"};const d=Number(o.hot);if(isNaN(d)||d<=0)return{width:"0%"};const _=Math.min(d/5e4*100,100),g=o.index<3?"var(--color-primary)":"var(--color-primary2)";return{width:_+"%",background:`linear-gradient(90deg, ${g}, transparent)`}}),s=()=>o.hot>=1e4?(o.hot/1e4).toFixed(1)+"万":o.hot,l=d=>{if(d%2==0)return{"background-color":"var(--bg-content)"};if(d%2==1)return AppStore.bListCrossing?{"background-color":"var(--bg-content2)"}:{"background-color":"var(--bg-content)"}};return(d,m)=>(openBlock(),createElementBlock("div",{class:"hot-item",style:normalizeStyle(l(t.index))},[createBaseVNode("div",{class:normalizeClass(["rank-wrap",n.value])},[createBaseVNode("span",_hoisted_1$4v,toDisplayString(t.index+1),1)],2),t.content?(openBlock(),createElementBlock("div",_hoisted_2$4f,[createBaseVNode("div",_hoisted_3$44,toDisplayString(t.content),1),t.tag?(openBlock(),createElementBlock("div",_hoisted_4$3_,toDisplayString(t.tag),1)):createCommentVNode("",!0)])):createCommentVNode("",!0),t.content?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_5$3N,[renderSlot(d.$slots,"default",{},void 0,!0)])),t.hot?(openBlock(),createElementBlock("div",_hoisted_6$3z,[createBaseVNode("div",_hoisted_7$3l,[createBaseVNode("div",{class:"hot-bar-fill",style:normalizeStyle(r.value)},null,4)]),createBaseVNode("span",_hoisted_8$35,toDisplayString(s()),1),t.suffix?(openBlock(),createElementBlock("span",_hoisted_9$2T,toDisplayString(t.suffix),1)):createCommentVNode("",!0)])):createCommentVNode("",!0)],4))}},SimpleHotItem=_export_sfc$1(_sfc_main$5_,[["__scopeId","data-v-e5422d0a"]]),_hoisted_1$4u={key:0,"transition-duration":"0s",class:"pb-grid"},_hoisted_2$4e=["onClick"],_hoisted_3$43={class:"hot-cover"},_hoisted_4$3Z=["src"],_hoisted_5$3M={class:"flex1-column ml10"},_hoisted_6$3y={class:"row-center"},_hoisted_7$3k=createBaseVNode("div",{class:"flex1"},null,-1),_hoisted_8$34={class:"hot-value"},_hoisted_9$2S={class:"hot-title"},_hoisted_10$2B={class:"hot-desc"},_sfc_main$5Z={__name:"MainList",props:{type:String},setup(t){const o=d=>"https://top.baidu.com/board?tab=realtime",n=d=>l(d),r=d=>{goToUrl(d.link)},s=d=>d>=1e4?(d/1e4).toFixed(1)+"万":d,l=d=>{let m=cheerio.load(d),_=m("div#sanRoot>main>div.container>div>div>div"),g=[];return _.each(function(v,y){let w=m(y);g.push({image:w.find("a[class*=img-wrapper]>img").attr("src"),title:w.find("a>div.c-single-text-ellipsis").first().text(),link:w.find("div[class*=content]>a").attr("href"),content:w.find("div[class*=hot-desc]").contents()[0].data,count:w.find("div[class*=hot-index]").text()})}),g};return(d,m)=>{const _=resolveDirective("masonry-tile"),g=resolveDirective("masonry");return openBlock(),createBlock(StateLayout,{ref:"stateLayout",mode:"self_list","url-callback":o,"convert-callback":n,style:{"background-color":"var(--bg-main)"}},{list:withCtx(({list:v})=>[unref(AppStore).showImage()?withDirectives((openBlock(),createElementBlock("div",_hoisted_1$4u,[(openBlock(!0),createElementBlock(Fragment,null,renderList(v,(y,w)=>withDirectives((openBlock(),createElementBlock("div",{class:"flex-row hot-card",key:y,onClick:B=>r(y)},[createBaseVNode("div",_hoisted_3$43,[createBaseVNode("img",{src:y.image},null,8,_hoisted_4$3Z)]),createBaseVNode("div",_hoisted_5$3M,[createBaseVNode("div",_hoisted_6$3y,[createVNode(IdxTag,{index:w},null,8,["index"]),_hoisted_7$3k,createBaseVNode("div",_hoisted_8$34,toDisplayString(s(y.count))+"🔥",1)]),createBaseVNode("div",_hoisted_9$2S,toDisplayString(y.title),1),createBaseVNode("div",_hoisted_10$2B,toDisplayString(y.content),1)])],8,_hoisted_2$4e)),[[_]])),128))])),[[g]]):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(v,(y,w)=>(openBlock(),createElementBlock("div",null,[createVNode(SimpleHotItem,{index:w,content:y.title,hot:y.count,onClick:B=>r(y)},null,8,["index","content","hot","onClick"])]))),256))]),_:1},512)}}},ItemLine_vue_vue_type_style_index_0_scoped_182df82e_lang="",_withScopeId$1Y=t=>(pushScopeId("data-v-182df82e"),t=t(),popScopeId(),t),_hoisted_1$4t=_withScopeId$1Y(()=>createBaseVNode("div",{class:"item-divider"},null,-1)),_sfc_main$5Y={__name:"ItemLine",props:{hover:{type:Boolean,default:!1}},setup(t){return(o,n)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["item-line",{"item-line-hover":t.hover}])},[renderSlot(o.$slots,"default",{},void 0,!0),_hoisted_1$4t],2))}},ItemLine=_export_sfc$1(_sfc_main$5Y,[["__scopeId","data-v-182df82e"]]);function ttsToHm(t){let o=new Date(t);return o.getHours().toString().padStart(2,"0")+":"+o.getMinutes().toString().padStart(2,"0")}function ttsToString(t){let o=new Date(t),r=new Date().getTime()-o.getTime();if(r<3*60*1e3)return"刚刚";if(r<60*60*1e3)return Math.floor(r/1e3/60)+"分钟前";if(r<24*60*60*1e3)return Math.floor(r/1e3/60/60)+"小时前";if(r<24*60*60*1e3){let l=o.getHours();l<10&&(l="0"+l);var s=o.getMinutes();return s<10&&(s="0"+s),l+":"+s}else return new Date().getFullYear()!=o.getFullYear()?o.getFullYear()+"年"+(o.getMonth()+1)+"月"+o.getDate()+"日":o.getMonth()+1+"月"+o.getDate()+"日"}function getFormatDate(t){let o=new Date(t),n=o.getFullYear(),r=o.getMonth()+1,s=o.getDate(),l=o.getHours(),d=o.getMinutes(),m=o.getSeconds();return r=r<10?"0"+r:r,s=s<10?"0"+s:s,l=l<10?"0"+l:l,d=d<10?"0"+d:d,m=m<10?"0"+m:m,n+"-"+r+"-"+s+" "+l+":"+d+":"+m}let onceCbs=[];const paramsMap=new WeakMap;function flushOnceCallbacks(){onceCbs.forEach(t=>t(...paramsMap.get(t))),onceCbs=[]}function beforeNextFrameOnce(t,...o){paramsMap.set(t,o),!onceCbs.includes(t)&&onceCbs.push(t)===1&&requestAnimationFrame(flushOnceCallbacks)}function happensIn(t,o){let{target:n}=t;for(;n;){if(n.dataset&&n.dataset[o]!==void 0)return!0;n=n.parentElement}return!1}function getPreciseEventTarget(t){return t.composedPath()[0]||null}function depx(t){return typeof t=="string"?t.endsWith("px")?Number(t.slice(0,t.length-2)):Number(t):t}function pxfy(t){if(t!=null)return typeof t=="number"?`${t}px`:t.endsWith("px")?t:`${t}px`}function getMargin(t,o){const n=t.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 new Error("[seemly/getMargin]:"+t+" is not a valid value.")}return o===void 0?r:r[o]}const colors={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},prefix$1="^\\s*",suffix="\\s*$",float$1="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",hex="([0-9A-Fa-f])",dhex="([0-9A-Fa-f]{2})",rgbRegex=new RegExp(`${prefix$1}rgb\\s*\\(${float$1},${float$1},${float$1}\\)${suffix}`),rgbaRegex=new RegExp(`${prefix$1}rgba\\s*\\(${float$1},${float$1},${float$1},${float$1}\\)${suffix}`),sHexRegex=new RegExp(`${prefix$1}#${hex}${hex}${hex}${suffix}`),hexRegex=new RegExp(`${prefix$1}#${dhex}${dhex}${dhex}${suffix}`),sHexaRegex=new RegExp(`${prefix$1}#${hex}${hex}${hex}${hex}${suffix}`),hexaRegex=new RegExp(`${prefix$1}#${dhex}${dhex}${dhex}${dhex}${suffix}`);function parseHex(t){return parseInt(t,16)}function rgba(t){try{let o;if(o=hexRegex.exec(t))return[parseHex(o[1]),parseHex(o[2]),parseHex(o[3]),1];if(o=rgbRegex.exec(t))return[roundChannel(o[1]),roundChannel(o[5]),roundChannel(o[9]),1];if(o=rgbaRegex.exec(t))return[roundChannel(o[1]),roundChannel(o[5]),roundChannel(o[9]),roundAlpha(o[13])];if(o=sHexRegex.exec(t))return[parseHex(o[1]+o[1]),parseHex(o[2]+o[2]),parseHex(o[3]+o[3]),1];if(o=hexaRegex.exec(t))return[parseHex(o[1]),parseHex(o[2]),parseHex(o[3]),roundAlpha(parseHex(o[4])/255)];if(o=sHexaRegex.exec(t))return[parseHex(o[1]+o[1]),parseHex(o[2]+o[2]),parseHex(o[3]+o[3]),roundAlpha(parseHex(o[4]+o[4])/255)];if(t in colors)return rgba(colors[t]);throw new Error(`[seemly/rgba]: Invalid color value ${t}.`)}catch(o){throw o}}function normalizeAlpha(t){return t>1?1:t<0?0:t}function stringifyRgba(t,o,n,r){return`rgba(${roundChannel(t)}, ${roundChannel(o)}, ${roundChannel(n)}, ${normalizeAlpha(r)})`}function compositeChannel(t,o,n,r,s){return roundChannel((t*o*(1-r)+n*r)/s)}function composite(t,o){Array.isArray(t)||(t=rgba(t)),Array.isArray(o)||(o=rgba(o));const n=t[3],r=o[3],s=roundAlpha(n+r-n*r);return stringifyRgba(compositeChannel(t[0],n,o[0],r,s),compositeChannel(t[1],n,o[1],r,s),compositeChannel(t[2],n,o[2],r,s),s)}function changeColor(t,o){const[n,r,s,l=1]=Array.isArray(t)?t:rgba(t);return o.alpha?stringifyRgba(n,r,s,o.alpha):stringifyRgba(n,r,s,l)}function scaleColor(t,o){const[n,r,s,l=1]=Array.isArray(t)?t:rgba(t),{lightness:d=1,alpha:m=1}=o;return toRgbaString([n*d,r*d,s*d,l*m])}function roundAlpha(t){const o=Math.round(Number(t)*100)/100;return o>1?1:o<0?0:o}function roundChannel(t){const o=Math.round(Number(t));return o>255?255:o<0?0:o}function toRgbaString(t){const[o,n,r]=t;return 3 in t?`rgba(${roundChannel(o)}, ${roundChannel(n)}, ${roundChannel(r)}, ${roundAlpha(t[3])})`:`rgba(${roundChannel(o)}, ${roundChannel(n)}, ${roundChannel(r)}, 1)`}function createId(t=8){return Math.random().toString(16).slice(2,2+t)}function repeat(t,o){const n=[];for(let r=0;r{r[s]=t[s]}),Object.assign(r,n)}function omit(t,o=[],n){const r={};return Object.getOwnPropertyNames(t).forEach(l=>{o.includes(l)||(r[l]=t[l])}),Object.assign(r,n)}function flatten$3(t,o=!0,n=[]){return t.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(createTextVNode(String(r)));return}if(Array.isArray(r)){flatten$3(r,o,n);return}if(r.type===Fragment){if(r.children===null)return;Array.isArray(r.children)&&flatten$3(r.children,o,n)}else r.type!==Comment$2&&n.push(r)}}),n}function call(t,...o){if(Array.isArray(t))t.forEach(n=>call(n,...o));else return t(...o)}function keysOf(t){return Object.keys(t)}const render$6=(t,...o)=>typeof t=="function"?t(...o):typeof t=="string"?createTextVNode(t):typeof t=="number"?createTextVNode(String(t)):null;function warn$2(t,o){console.error(`[naive/${t}]: ${o}`)}function throwError(t,o){throw new Error(`[naive/${t}]: ${o}`)}function smallerSize(t){switch(t){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw Error(`${t} has no smaller size.`)}function getTitleAttribute(t){switch(typeof t){case"string":return t||void 0;case"number":return String(t);default:return}}function getFirstSlotVNode(t,o="default",n=void 0){const r=t[o];if(!r)return warn$2("getFirstSlotVNode",`slot[${o}] is empty`),null;const s=flatten$3(r(n));return s.length===1?s[0]:(warn$2("getFirstSlotVNode",`slot[${o}] should have exactly one child`),null)}function createRefSetter(t){return o=>{o?t.value=o.$el:t.value=null}}function createInjectionKey(t){return t}function ensureValidVNode(t){return t.some(o=>isVNode(o)?!(o.type===Comment$2||o.type===Fragment&&!ensureValidVNode(o.children)):!0)?t:null}function resolveSlot(t,o){return t&&ensureValidVNode(t())||o()}function resolveSlotWithProps(t,o,n){return t&&ensureValidVNode(t(o))||n(o)}function resolveWrappedSlot(t,o){const n=t&&ensureValidVNode(t());return o(n||null)}function isSlotEmpty(t){return!(t&&ensureValidVNode(t()))}function mergeEventHandlers(t){const o=t.filter(n=>n!==void 0);if(o.length!==0)return o.length===1?o[0]:n=>{t.forEach(r=>{r&&r(n)})}}const Wrapper=defineComponent({render(){var t,o;return(o=(t=this.$slots).default)===null||o===void 0?void 0:o.call(t)}}),pureNumberRegex=/^(\d|\.)+$/,numberRegex=/(\d|\.)+/;function formatLength(t,{c:o=1,offset:n=0,attachPx:r=!0}={}){if(typeof t=="number"){const s=(t+n)*o;return s===0?"0":`${s}px`}else if(typeof t=="string")if(pureNumberRegex.test(t)){const s=(Number(t)+n)*o;return r?s===0?"0":`${s}px`:`${s}`}else{const s=numberRegex.exec(t);return s?t.replace(numberRegex,String((Number(s[0])+n)*o)):t}return t}function color2Class(t){return t.replace(/#|\(|\)|,|\s/g,"_")}function ampCount(t){let o=0;for(let n=0;n{let s=ampCount(r);if(s){if(s===1){t.forEach(d=>{n.push(r.replace("&",d))});return}}else{t.forEach(d=>{n.push((d&&d+" ")+r)});return}let l=[r];for(;s--;){const d=[];l.forEach(m=>{t.forEach(_=>{d.push(m.replace("&",_))})}),l=d}l.forEach(d=>n.push(d))}),n}function resolveSelector(t,o){const n=[];return o.split(separatorRegex).forEach(r=>{t.forEach(s=>{n.push((s&&s+" ")+r)})}),n}function parseSelectorPath(t){let o=[""];return t.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?o=resolveSelectorWithAmp(o,n):o=resolveSelector(o,n))}),o.join(", ").replace(extraSpaceRegex," ")}function removeElement(t){if(!t)return;const o=t.parentElement;o&&o.removeChild(t)}function queryElement(t){return document.querySelector(`style[cssr-id="${t}"]`)}function createElement(t){const o=document.createElement("style");return o.setAttribute("cssr-id",t),o}function isMediaOrSupports(t){return t?/^\s*@(s|m)/.test(t):!1}const kebabRegex=/[A-Z]/g;function kebabCase(t){return t.replace(kebabRegex,o=>"-"+o.toLowerCase())}function unwrapProperty(t,o=" "){return typeof t=="object"&&t!==null?` {
+`+Object.entries(t).map(n=>o+` ${kebabCase(n[0])}: ${n[1]};`).join(`
+`)+`
+`+o+"}":`: ${t};`}function unwrapProperties(t,o,n){return typeof t=="function"?t({context:o.context,props:n}):t}function createStyle(t,o,n,r){if(!o)return"";const s=unwrapProperties(o,n,r);if(!s)return"";if(typeof s=="string")return`${t} {
+${s}
+}`;const l=Object.keys(s);if(l.length===0)return n.config.keepEmptyBlock?t+` {
+}`:"";const d=t?[t+" {"]:[];return l.forEach(m=>{const _=s[m];if(m==="raw"){d.push(`
+`+_+`
+`);return}m=kebabCase(m),_!=null&&d.push(` ${m}${unwrapProperty(_)}`)}),t&&d.push("}"),d.join(`
+`)}function loopCNodeListWithCallback(t,o,n){t&&t.forEach(r=>{if(Array.isArray(r))loopCNodeListWithCallback(r,o,n);else if(typeof r=="function"){const s=r(o);Array.isArray(s)?loopCNodeListWithCallback(s,o,n):s&&n(s)}else r&&n(r)})}function traverseCNode(t,o,n,r,s,l){const d=t.$;let m="";if(!d||typeof d=="string")isMediaOrSupports(d)?m=d:o.push(d);else if(typeof d=="function"){const v=d({context:r.context,props:s});isMediaOrSupports(v)?m=v:o.push(v)}else if(d.before&&d.before(r.context),!d.$||typeof d.$=="string")isMediaOrSupports(d.$)?m=d.$:o.push(d.$);else if(d.$){const v=d.$({context:r.context,props:s});isMediaOrSupports(v)?m=v:o.push(v)}const _=parseSelectorPath(o),g=createStyle(_,t.props,r,s);m?(n.push(`${m} {`),l&&g&&l.insertRule(`${m} {
+${g}
+}
+`)):(l&&g&&l.insertRule(g),!l&&g.length&&n.push(g)),t.children&&loopCNodeListWithCallback(t.children,{context:r.context,props:s},v=>{if(typeof v=="string"){const y=createStyle(_,{raw:v},r,s);l?l.insertRule(y):n.push(y)}else traverseCNode(v,o,n,r,s,l)}),o.pop(),m&&n.push("}"),d&&d.after&&d.after(r.context)}function render$5(t,o,n,r=!1){const s=[];return traverseCNode(t,[],s,o,n,r?t.instance.__styleSheet:void 0),r?"":s.join(`
+
+`)}function murmur2(t){for(var o=0,n,r=0,s=t.length;s>=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,o=(n&65535)*1540483477+((n>>>16)*59797<<16)^(o&65535)*1540483477+((o>>>16)*59797<<16);switch(s){case 3:o^=(t.charCodeAt(r+2)&255)<<16;case 2:o^=(t.charCodeAt(r+1)&255)<<8;case 1:o^=t.charCodeAt(r)&255,o=(o&65535)*1540483477+((o>>>16)*59797<<16)}return o^=o>>>13,o=(o&65535)*1540483477+((o>>>16)*59797<<16),((o^o>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function unmount(t,o,n){const{els:r}=o;if(n===void 0)r.forEach(removeElement),o.els=[];else{const s=queryElement(n);s&&r.includes(s)&&(removeElement(s),o.els=r.filter(l=>l!==s))}}function addElementToList(t,o){t.push(o)}function mount(t,o,n,r,s,l,d,m,_){if(l&&!_){if(n===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const w=window.__cssrContext;w[n]||(w[n]=!0,render$5(o,t,r,l));return}let g;if(n===void 0&&(g=o.render(r),n=murmur2(g)),_){_.adapter(n,g??o.render(r));return}const v=queryElement(n);if(v!==null&&!d)return v;const y=v??createElement(n);if(g===void 0&&(g=o.render(r)),y.textContent=g,v!==null)return v;if(m){const w=document.head.querySelector(`meta[name="${m}"]`);if(w)return document.head.insertBefore(y,w),addElementToList(o.els,y),y}return s?document.head.insertBefore(y,document.head.querySelector("style, link")):document.head.appendChild(y),addElementToList(o.els,y),y}function wrappedRender(t){return render$5(this,this.instance,t)}function wrappedMount(t={}){const{id:o,ssr:n,props:r,head:s=!1,silent:l=!1,force:d=!1,anchorMetaName:m}=t;return mount(this.instance,this,o,r,s,l,d,m,n)}function wrappedUnmount(t={}){const{id:o}=t;unmount(this.instance,this,o)}const createCNode=function(t,o,n,r){return{instance:t,$:o,props:n,children:r,els:[],render:wrappedRender,mount:wrappedMount,unmount:wrappedUnmount}},c$2=function(t,o,n,r){return Array.isArray(o)?createCNode(t,{$:null},null,o):Array.isArray(n)?createCNode(t,o,null,n):Array.isArray(r)?createCNode(t,o,n,r):createCNode(t,o,n,null)};function CssRender(t={}){let o=null;const n={c:(...r)=>c$2(n,...r),use:(r,...s)=>r.install(n,...s),find:queryElement,context:{},config:t,get __styleSheet(){if(!o){const r=document.createElement("style");return document.head.appendChild(r),o=document.styleSheets[document.styleSheets.length-1],o}return o}};return n}function exists(t,o){if(t===void 0)return!1;if(o){const{context:{ids:n}}=o;return n.has(t)}return queryElement(t)!==null}function plugin$1(t){let o=".",n="__",r="--",s;if(t){let k=t.blockPrefix;k&&(o=k),k=t.elementPrefix,k&&(n=k),k=t.modifierPrefix,k&&(r=k)}const l={install(k){s=k.c;const N=k.context;N.bem={},N.bem.b=null,N.bem.els=null}};function d(k){let N,S;return{before(x){N=x.bem.b,S=x.bem.els,x.bem.els=null},after(x){x.bem.b=N,x.bem.els=S},$({context:x,props:C}){return k=typeof k=="string"?k:k({context:x,props:C}),x.bem.b=k,`${(C==null?void 0:C.bPrefix)||o}${x.bem.b}`}}}function m(k){let N;return{before(S){N=S.bem.els},after(S){S.bem.els=N},$({context:S,props:x}){return k=typeof k=="string"?k:k({context:S,props:x}),S.bem.els=k.split(",").map(C=>C.trim()),S.bem.els.map(C=>`${(x==null?void 0:x.bPrefix)||o}${S.bem.b}${n}${C}`).join(", ")}}}function _(k){return{$({context:N,props:S}){k=typeof k=="string"?k:k({context:N,props:S});const x=k.split(",").map(D=>D.trim());function C(D){return x.map(R=>`&${(S==null?void 0:S.bPrefix)||o}${N.bem.b}${D!==void 0?`${n}${D}`:""}${r}${R}`).join(", ")}const I=N.bem.els;return I!==null?C(I[0]):C()}}}function g(k){return{$({context:N,props:S}){k=typeof k=="string"?k:k({context:N,props:S});const x=N.bem.els;return`&:not(${(S==null?void 0:S.bPrefix)||o}${N.bem.b}${x!==null&&x.length>0?`${n}${x[0]}`:""}${r}${k})`}}}return Object.assign(l,{cB:(...k)=>s(d(k[0]),k[1],k[2]),cE:(...k)=>s(m(k[0]),k[1],k[2]),cM:(...k)=>s(_(k[0]),k[1],k[2]),cNotM:(...k)=>s(g(k[0]),k[1],k[2])}),l}function createKey(t,o){return t+(o==="default"?"":o.replace(/^[a-z]/,n=>n.toUpperCase()))}createKey("abc","def");const namespace="n",prefix=`.${namespace}-`,elementPrefix="__",modifierPrefix="--",cssr=CssRender(),plugin=plugin$1({blockPrefix:prefix,elementPrefix,modifierPrefix});cssr.use(plugin);const{c:c$1,find:find$1}=cssr,{cB,cE,cM,cNotM}=plugin;function insideModal(t){return c$1(({props:{bPrefix:o}})=>`${o||prefix}modal, ${o||prefix}drawer`,[t])}function insidePopover(t){return c$1(({props:{bPrefix:o}})=>`${o||prefix}popover`,[t])}function asModal(t){return c$1(({props:{bPrefix:o}})=>`&${o||prefix}modal`,t)}const cCB=(...t)=>c$1(">",[cB(...t)]);let _isJsdom;function isJsdom(){return _isJsdom===void 0&&(_isJsdom=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_isJsdom}const isBrowser$2=typeof document<"u"&&typeof window<"u",eventSet=new WeakSet;function markEventEffectPerformed(t){eventSet.add(t)}function eventEffectNotPerformed(t){return!eventSet.has(t)}function useDeferredTrue(t,o,n){if(!o)return t;const r=ref(t.value);let s=null;return watch(t,l=>{s!==null&&window.clearTimeout(s),l===!0?n&&!n.value?r.value=!0:s=window.setTimeout(()=>{r.value=!0},o):r.value=!1}),r}function useFalseUntilTruthy(t){const o=ref(!!t.value);if(o.value)return readonly(o);const n=watch(t,r=>{r&&(o.value=!0,n())});return readonly(o)}function useMemo(t){const o=computed(t),n=ref(o.value);return watch(o,r=>{n.value=r}),typeof t=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){t.set(r)}}}function hasInstance(){return getCurrentInstance()!==null}const isBrowser$1=typeof window<"u";let fontsReady,isFontReady;const init=()=>{var t,o;fontsReady=isBrowser$1?(o=(t=document)===null||t===void 0?void 0:t.fonts)===null||o===void 0?void 0:o.ready:void 0,isFontReady=!1,fontsReady!==void 0?fontsReady.then(()=>{isFontReady=!0}):isFontReady=!0};init();function onFontsReady(t){if(isFontReady)return;let o=!1;onMounted(()=>{isFontReady||fontsReady==null||fontsReady.then(()=>{o||t()})}),onBeforeUnmount(()=>{o=!0})}function getEventTarget(t){return t.composedPath()[0]}const traps={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function createTrapHandler(t,o,n){if(t==="mousemoveoutside"){const r=s=>{o.contains(getEventTarget(s))||n(s)};return{mousemove:r,touchstart:r}}else if(t==="clickoutside"){let r=!1;const s=d=>{r=!o.contains(getEventTarget(d))},l=d=>{r&&(o.contains(getEventTarget(d))||n(d))};return{mousedown:s,mouseup:l,touchstart:s,touchend:l}}return console.error(`[evtd/create-trap-handler]: name \`${t}\` is invalid. This could be a bug of evtd.`),{}}function ensureTrapHandlers(t,o,n){const r=traps[t];let s=r.get(o);s===void 0&&r.set(o,s=new WeakMap);let l=s.get(n);return l===void 0&&s.set(n,l=createTrapHandler(t,o,n)),l}function trapOn(t,o,n,r){if(t==="mousemoveoutside"||t==="clickoutside"){const s=ensureTrapHandlers(t,o,n);return Object.keys(s).forEach(l=>{on$1(l,document,s[l],r)}),!0}return!1}function trapOff(t,o,n,r){if(t==="mousemoveoutside"||t==="clickoutside"){const s=ensureTrapHandlers(t,o,n);return Object.keys(s).forEach(l=>{off$1(l,document,s[l],r)}),!0}return!1}function createDelegate(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const t=new WeakMap,o=new WeakMap;function n(){t.set(this,!0)}function r(){t.set(this,!0),o.set(this,!0)}function s(Q,Y,W){const K=Q[Y];return Q[Y]=function(){return W.apply(Q,arguments),K.apply(Q,arguments)},Q}function l(Q,Y){Q[Y]=Event.prototype[Y]}const d=new WeakMap,m=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function _(){var Q;return(Q=d.get(this))!==null&&Q!==void 0?Q:null}function g(Q,Y){m!==void 0&&Object.defineProperty(Q,"currentTarget",{configurable:!0,enumerable:!0,get:Y??m.get})}const v={bubble:{},capture:{}},y={};function w(){const Q=function(Y){const{type:W,eventPhase:K,bubbles:ee}=Y,q=getEventTarget(Y);if(K===2)return;const ae=K===1?"capture":"bubble";let ie=q;const oe=[];for(;ie===null&&(ie=window),oe.push(ie),ie!==window;)ie=ie.parentNode||null;const J=v.capture[W],j=v.bubble[W];if(s(Y,"stopPropagation",n),s(Y,"stopImmediatePropagation",r),g(Y,_),ae==="capture"){if(J===void 0)return;for(let re=oe.length-1;re>=0&&!t.has(Y);--re){const ce=oe[re],le=J.get(ce);if(le!==void 0){d.set(Y,ce);for(const se of le){if(o.has(Y))break;se(Y)}}if(re===0&&!ee&&j!==void 0){const se=j.get(ce);if(se!==void 0)for(const te of se){if(o.has(Y))break;te(Y)}}}}else if(ae==="bubble"){if(j===void 0)return;for(let re=0;req(Y))};return Q.displayName="evtdUnifiedWindowEventHandler",Q}const k=w(),N=B();function S(Q,Y){const W=v[Q];return W[Y]===void 0&&(W[Y]=new Map,window.addEventListener(Y,k,Q==="capture")),W[Y]}function x(Q){return y[Q]===void 0&&(y[Q]=new Set,window.addEventListener(Q,N)),y[Q]}function C(Q,Y){let W=Q.get(Y);return W===void 0&&Q.set(Y,W=new Set),W}function I(Q,Y,W,K){const ee=v[Y][W];if(ee!==void 0){const q=ee.get(Q);if(q!==void 0&&q.has(K))return!0}return!1}function D(Q,Y){const W=y[Q];return!!(W!==void 0&&W.has(Y))}function R(Q,Y,W,K){let ee;if(typeof K=="object"&&K.once===!0?ee=J=>{O(Q,Y,ee,K),W(J)}:ee=W,trapOn(Q,Y,ee,K))return;const ae=K===!0||typeof K=="object"&&K.capture===!0?"capture":"bubble",ie=S(ae,Q),oe=C(ie,Y);if(oe.has(ee)||oe.add(ee),Y===window){const J=x(Q);J.has(ee)||J.add(ee)}}function O(Q,Y,W,K){if(trapOff(Q,Y,W,K))return;const q=K===!0||typeof K=="object"&&K.capture===!0,ae=q?"capture":"bubble",ie=S(ae,Q),oe=C(ie,Y);if(Y===window&&!I(Y,q?"bubble":"capture",Q,W)&&D(Q,W)){const j=y[Q];j.delete(W),j.size===0&&(window.removeEventListener(Q,N),y[Q]=void 0)}oe.has(W)&&oe.delete(W),oe.size===0&&ie.delete(Y),ie.size===0&&(window.removeEventListener(Q,k,ae==="capture"),v[ae][Q]=void 0)}return{on:R,off:O}}const{on:on$1,off:off$1}=createDelegate(),mousePositionRef=ref(null);function clickHandler(t){if(t.clientX>0||t.clientY>0)mousePositionRef.value={x:t.clientX,y:t.clientY};else{const{target:o}=t;if(o instanceof Element){const{left:n,top:r,width:s,height:l}=o.getBoundingClientRect();n>0||r>0?mousePositionRef.value={x:n+s/2,y:r+l/2}:mousePositionRef.value={x:0,y:0}}else mousePositionRef.value=null}}let usedCount$1=0,managable$1=!0;function useClickPosition(){if(!isBrowser$1)return readonly(ref(null));usedCount$1===0&&on$1("click",document,clickHandler,!0);const t=()=>{usedCount$1+=1};return managable$1&&(managable$1=hasInstance())?(onBeforeMount(t),onBeforeUnmount(()=>{usedCount$1-=1,usedCount$1===0&&off$1("click",document,clickHandler,!0)})):t(),readonly(mousePositionRef)}const clickedTimeRef=ref(void 0);let usedCount=0;function handleClick(){clickedTimeRef.value=Date.now()}let managable=!0;function useClicked(t){if(!isBrowser$1)return readonly(ref(!1));const o=ref(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function s(){r(),o.value=!0,n=window.setTimeout(()=>{o.value=!1},t)}usedCount===0&&on$1("click",window,handleClick,!0);const l=()=>{usedCount+=1,on$1("click",window,s,!0)};return managable&&(managable=hasInstance())?(onBeforeMount(l),onBeforeUnmount(()=>{usedCount-=1,usedCount===0&&off$1("click",window,handleClick,!0),off$1("click",window,s,!0),r()})):l(),readonly(o)}function useMergedState(t,o){return watch(t,n=>{n!==void 0&&(o.value=n)}),computed(()=>t.value===void 0?o.value:t.value)}function isMounted(){const t=ref(!1);return onMounted(()=>{t.value=!0}),readonly(t)}function useCompitable(t,o){return computed(()=>{for(const n of o)if(t[n]!==void 0)return t[n];return t[o[o.length-1]]})}const isIos=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function useIsIos(){return isIos}function useKeyboard(t={},o){const n=reactive({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:s}=t,l=_=>{switch(_.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(g=>{if(g!==_.key)return;const v=r[g];if(typeof v=="function")v(_);else{const{stop:y=!1,prevent:w=!1}=v;y&&_.stopPropagation(),w&&_.preventDefault(),v.handler(_)}})},d=_=>{switch(_.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}s!==void 0&&Object.keys(s).forEach(g=>{if(g!==_.key)return;const v=s[g];if(typeof v=="function")v(_);else{const{stop:y=!1,prevent:w=!1}=v;y&&_.stopPropagation(),w&&_.preventDefault(),v.handler(_)}})},m=()=>{(o===void 0||o.value)&&(on$1("keydown",document,l),on$1("keyup",document,d)),o!==void 0&&watch(o,_=>{_?(on$1("keydown",document,l),on$1("keyup",document,d)):(off$1("keydown",document,l),off$1("keyup",document,d))})};return hasInstance()?(onBeforeMount(m),onBeforeUnmount(()=>{(o===void 0||o.value)&&(off$1("keydown",document,l),off$1("keyup",document,d))})):m(),readonly(n)}const internalSelectionMenuInjectionKey="n-internal-select-menu",internalSelectionMenuBodyInjectionKey="n-internal-select-menu-body",modalBodyInjectionKey="n-modal-body",modalInjectionKey="n-modal",drawerBodyInjectionKey="n-drawer-body",drawerInjectionKey="n-drawer",popoverBodyInjectionKey="n-popover-body",teleportDisabled="__disabled__";function useAdjustedTo(t){const o=inject(modalBodyInjectionKey,null),n=inject(drawerBodyInjectionKey,null),r=inject(popoverBodyInjectionKey,null),s=inject(internalSelectionMenuBodyInjectionKey,null),l=ref();if(typeof document<"u"){l.value=document.fullscreenElement;const d=()=>{l.value=document.fullscreenElement};onMounted(()=>{on$1("fullscreenchange",document,d)}),onBeforeUnmount(()=>{off$1("fullscreenchange",document,d)})}return useMemo(()=>{var d;const{to:m}=t;return m!==void 0?m===!1?teleportDisabled:m===!0?l.value||"body":m:o!=null&&o.value?(d=o.value.$el)!==null&&d!==void 0?d:o.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:s!=null&&s.value?s.value:m??(l.value||"body")})}useAdjustedTo.tdkey=teleportDisabled;useAdjustedTo.propTo={type:[String,Object,Boolean],default:void 0};function getSlot(t,o,n="default"){const r=o[n];if(r===void 0)throw new Error(`[vueuc/${t}]: slot[${n}] is empty.`);return r()}function flatten$2(t,o=!0,n=[]){return t.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(createTextVNode(String(r)));return}if(Array.isArray(r)){flatten$2(r,o,n);return}if(r.type===Fragment){if(r.children===null)return;Array.isArray(r.children)&&flatten$2(r.children,o,n)}else r.type!==Comment$2&&n.push(r)}}),n}function getFirstVNode(t,o,n="default"){const r=o[n];if(r===void 0)throw new Error(`[vueuc/${t}]: slot[${n}] is empty.`);const s=flatten$2(r());if(s.length===1)return s[0];throw new Error(`[vueuc/${t}]: slot[${n}] should have exactly one child.`)}let viewMeasurer=null;function ensureViewBoundingRect(){if(viewMeasurer===null&&(viewMeasurer=document.getElementById("v-binder-view-measurer"),viewMeasurer===null)){viewMeasurer=document.createElement("div"),viewMeasurer.id="v-binder-view-measurer";const{style:t}=viewMeasurer;t.position="fixed",t.left="0",t.right="0",t.top="0",t.bottom="0",t.pointerEvents="none",t.visibility="hidden",document.body.appendChild(viewMeasurer)}return viewMeasurer.getBoundingClientRect()}function getPointRect(t,o){const n=ensureViewBoundingRect();return{top:o,left:t,height:0,width:0,right:n.width-t,bottom:n.height-o}}function getRect$1(t){const o=t.getBoundingClientRect(),n=ensureViewBoundingRect();return{left:o.left-n.left,top:o.top-n.top,bottom:n.height+n.top-o.bottom,right:n.width+n.left-o.right,width:o.width,height:o.height}}function getParentNode(t){return t.nodeType===9?null:t.parentNode}function getScrollParent(t){if(t===null)return null;const o=getParentNode(t);if(o===null)return null;if(o.nodeType===9)return document;if(o.nodeType===1){const{overflow:n,overflowX:r,overflowY:s}=getComputedStyle(o);if(/(auto|scroll|overlay)/.test(n+s+r))return o}return getScrollParent(o)}const Binder=defineComponent({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(t){var o;provide("VBinder",(o=getCurrentInstance())===null||o===void 0?void 0:o.proxy);const n=inject("VBinder",null),r=ref(null),s=x=>{r.value=x,n&&t.syncTargetWithParent&&n.setTargetRef(x)};let l=[];const d=()=>{let x=r.value;for(;x=getScrollParent(x),x!==null;)l.push(x);for(const C of l)on$1("scroll",C,y,!0)},m=()=>{for(const x of l)off$1("scroll",x,y,!0);l=[]},_=new Set,g=x=>{_.size===0&&d(),_.has(x)||_.add(x)},v=x=>{_.has(x)&&_.delete(x),_.size===0&&m()},y=()=>{beforeNextFrameOnce(w)},w=()=>{_.forEach(x=>x())},B=new Set,k=x=>{B.size===0&&on$1("resize",window,S),B.has(x)||B.add(x)},N=x=>{B.has(x)&&B.delete(x),B.size===0&&off$1("resize",window,S)},S=()=>{B.forEach(x=>x())};return onBeforeUnmount(()=>{off$1("resize",window,S),m()}),{targetRef:r,setTargetRef:s,addScrollListener:g,removeScrollListener:v,addResizeListener:k,removeResizeListener:N}},render(){return getSlot("binder",this.$slots)}}),VBinder=Binder,VTarget=defineComponent({name:"Target",setup(){const{setTargetRef:t,syncTarget:o}=inject("VBinder");return{syncTarget:o,setTargetDirective:{mounted:t,updated:t}}},render(){const{syncTarget:t,setTargetDirective:o}=this;return t?withDirectives(getFirstVNode("follower",this.$slots),[[o]]):getFirstVNode("follower",this.$slots)}}),ctxKey$1="@@mmoContext",mousemoveoutside={mounted(t,{value:o}){t[ctxKey$1]={handler:void 0},typeof o=="function"&&(t[ctxKey$1].handler=o,on$1("mousemoveoutside",t,o))},updated(t,{value:o}){const n=t[ctxKey$1];typeof o=="function"?n.handler?n.handler!==o&&(off$1("mousemoveoutside",t,n.handler),n.handler=o,on$1("mousemoveoutside",t,o)):(t[ctxKey$1].handler=o,on$1("mousemoveoutside",t,o)):n.handler&&(off$1("mousemoveoutside",t,n.handler),n.handler=void 0)},unmounted(t){const{handler:o}=t[ctxKey$1];o&&off$1("mousemoveoutside",t,o),t[ctxKey$1].handler=void 0}},mousemoveoutside$1=mousemoveoutside,ctxKey="@@coContext",clickoutside={mounted(t,{value:o,modifiers:n}){t[ctxKey]={handler:void 0},typeof o=="function"&&(t[ctxKey].handler=o,on$1("clickoutside",t,o,{capture:n.capture}))},updated(t,{value:o,modifiers:n}){const r=t[ctxKey];typeof o=="function"?r.handler?r.handler!==o&&(off$1("clickoutside",t,r.handler,{capture:n.capture}),r.handler=o,on$1("clickoutside",t,o,{capture:n.capture})):(t[ctxKey].handler=o,on$1("clickoutside",t,o,{capture:n.capture})):r.handler&&(off$1("clickoutside",t,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(t,{modifiers:o}){const{handler:n}=t[ctxKey];n&&off$1("clickoutside",t,n,{capture:o.capture}),t[ctxKey].handler=void 0}},clickoutside$1=clickoutside;function warn$1(t,o){console.error(`[vdirs/${t}]: ${o}`)}class ZIndexManager{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(o,n){const{elementZIndex:r}=this;if(n!==void 0){o.style.zIndex=`${n}`,r.delete(o);return}const{nextZIndex:s}=this;r.has(o)&&r.get(o)+1===this.nextZIndex||(o.style.zIndex=`${s}`,r.set(o,s),this.nextZIndex=s+1,this.squashState())}unregister(o,n){const{elementZIndex:r}=this;r.has(o)?r.delete(o):n===void 0&&warn$1("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:o}=this;o||(this.nextZIndex=2e3),this.nextZIndex-o>2500&&this.rearrange()}rearrange(){const o=Array.from(this.elementZIndex.entries());o.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,o.forEach(n=>{const r=n[0],s=this.nextZIndex++;`${s}`!==r.style.zIndex&&(r.style.zIndex=`${s}`)})}}const zIndexManager=new ZIndexManager,ctx$4="@@ziContext",zindexable={mounted(t,o){const{value:n={}}=o,{zIndex:r,enabled:s}=n;t[ctx$4]={enabled:!!s,initialized:!1},s&&(zIndexManager.ensureZIndex(t,r),t[ctx$4].initialized=!0)},updated(t,o){const{value:n={}}=o,{zIndex:r,enabled:s}=n,l=t[ctx$4].enabled;s&&!l&&(zIndexManager.ensureZIndex(t,r),t[ctx$4].initialized=!0),t[ctx$4].enabled=!!s},unmounted(t,o){if(!t[ctx$4].initialized)return;const{value:n={}}=o,{zIndex:r}=n;zIndexManager.unregister(t,r)}},zindexable$1=zindexable,ssrContextKey=Symbol("@css-render/vue3-ssr");function createStyleString(t,o){return``}function ssrAdapter(t,o){const n=inject(ssrContextKey,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:r,ids:s}=n;s.has(t)||r!==null&&(s.add(t),r.push(createStyleString(t,o)))}const isBrowser=typeof document<"u";function useSsrAdapter(){if(isBrowser)return;const t=inject(ssrContextKey,null);if(t!==null)return{adapter:ssrAdapter,context:t}}function warn(t,o){console.error(`[vueuc/${t}]: ${o}`)}const{c}=CssRender(),cssrAnchorMetaName$1="vueuc-style";function lowBit(t){return t&-t}class FinweckTree{constructor(o,n){this.l=o,this.min=n;const r=new Array(o+1);for(let s=0;ss)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let l=o*r;for(;o>0;)l+=n[o],o-=lowBit(o);return l}getBound(o){let n=0,r=this.l;for(;r>n;){const s=Math.floor((n+r)/2),l=this.sum(s);if(l>o){r=s;continue}else if(l{const{to:o}=t;return o??"body"})}},render(){return this.showTeleport?this.disabled?getSlot("lazy-teleport",this.$slots):h(Teleport,{disabled:this.disabled,to:this.mergedTo},getSlot("lazy-teleport",this.$slots)):null}}),oppositionPositions={top:"bottom",bottom:"top",left:"right",right:"left"},oppositeAligns={start:"end",center:"center",end:"start"},propToCompare={top:"height",bottom:"height",left:"width",right:"width"},transformOrigins={"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"},overlapTransformOrigin={"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"},oppositeAlignCssPositionProps={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},keepOffsetDirection={top:!0,bottom:!1,left:!0,right:!1},cssPositionToOppositeAlign={top:"end",bottom:"start",left:"end",right:"start"};function getPlacementAndOffsetOfFollower(t,o,n,r,s,l){if(!s||l)return{placement:t,top:0,left:0};const[d,m]=t.split("-");let _=m??"center",g={top:0,left:0};const v=(B,k,N)=>{let S=0,x=0;const C=n[B]-o[k]-o[B];return C>0&&r&&(N?x=keepOffsetDirection[k]?C:-C:S=keepOffsetDirection[k]?C:-C),{left:S,top:x}},y=d==="left"||d==="right";if(_!=="center"){const B=oppositeAlignCssPositionProps[t],k=oppositionPositions[B],N=propToCompare[B];if(n[N]>o[N]){if(o[B]+o[N]o[k]&&(_=oppositeAligns[m])}else{const B=d==="bottom"||d==="top"?"left":"top",k=oppositionPositions[B],N=propToCompare[B],S=(n[N]-o[N])/2;(o[B]o[k]?(_=cssPositionToOppositeAlign[B],g=v(N,B,y)):(_=cssPositionToOppositeAlign[k],g=v(N,k,y)))}let w=d;return o[d] *",{pointerEvents:"all"})])]),VFollower=defineComponent({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(t){const o=inject("VBinder"),n=useMemo(()=>t.enabled!==void 0?t.enabled:t.show),r=ref(null),s=ref(null),l=()=>{const{syncTrigger:w}=t;w.includes("scroll")&&o.addScrollListener(_),w.includes("resize")&&o.addResizeListener(_)},d=()=>{o.removeScrollListener(_),o.removeResizeListener(_)};onMounted(()=>{n.value&&(_(),l())});const m=useSsrAdapter();style$F.mount({id:"vueuc/binder",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:m}),onBeforeUnmount(()=>{d()}),onFontsReady(()=>{n.value&&_()});const _=()=>{if(!n.value)return;const w=r.value;if(w===null)return;const B=o.targetRef,{x:k,y:N,overlap:S}=t,x=k!==void 0&&N!==void 0?getPointRect(k,N):getRect$1(B);w.style.setProperty("--v-target-width",`${Math.round(x.width)}px`),w.style.setProperty("--v-target-height",`${Math.round(x.height)}px`);const{width:C,minWidth:I,placement:D,internalShift:R,flip:O}=t;w.setAttribute("v-placement",D),S?w.setAttribute("v-overlap",""):w.removeAttribute("v-overlap");const{style:Q}=w;C==="target"?Q.width=`${x.width}px`:C!==void 0?Q.width=C:Q.width="",I==="target"?Q.minWidth=`${x.width}px`:I!==void 0?Q.minWidth=I:Q.minWidth="";const Y=getRect$1(w),W=getRect$1(s.value),{left:K,top:ee,placement:q}=getPlacementAndOffsetOfFollower(D,x,Y,R,O,S),ae=getProperTransformOrigin(q,S),{left:ie,top:oe,transform:J}=getOffset$1(q,W,x,ee,K,S);w.setAttribute("v-placement",q),w.style.setProperty("--v-offset-left",`${Math.round(K)}px`),w.style.setProperty("--v-offset-top",`${Math.round(ee)}px`),w.style.transform=`translateX(${ie}) translateY(${oe}) ${J}`,w.style.setProperty("--v-transform-origin",ae),w.style.transformOrigin=ae};watch(n,w=>{w?(l(),g()):d()});const g=()=>{nextTick().then(_).catch(w=>console.error(w))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(w=>{watch(toRef(t,w),_)}),["teleportDisabled"].forEach(w=>{watch(toRef(t,w),g)}),watch(toRef(t,"syncTrigger"),w=>{w.includes("resize")?o.addResizeListener(_):o.removeResizeListener(_),w.includes("scroll")?o.addScrollListener(_):o.removeScrollListener(_)});const v=isMounted(),y=useMemo(()=>{const{to:w}=t;if(w!==void 0)return w;v.value});return{VBinder:o,mergedEnabled:n,offsetContainerRef:s,followerRef:r,mergedTo:y,syncPosition:_}},render(){return h(LazyTeleport,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var t,o;const n=h("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[h("div",{class:"v-binder-follower-content",ref:"followerRef"},(o=(t=this.$slots).default)===null||o===void 0?void 0:o.call(t))]);return this.zindexable?withDirectives(n,[[zindexable$1,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var resizeObservers=[],hasActiveObservations=function(){return resizeObservers.some(function(t){return t.activeTargets.length>0})},hasSkippedObservations=function(){return resizeObservers.some(function(t){return t.skippedTargets.length>0})},msg="ResizeObserver loop completed with undelivered notifications.",deliverResizeLoopError=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:msg}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=msg),window.dispatchEvent(t)},ResizeObserverBoxOptions;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ResizeObserverBoxOptions||(ResizeObserverBoxOptions={}));var freeze=function(t){return Object.freeze(t)},ResizeObserverSize=function(){function t(o,n){this.inlineSize=o,this.blockSize=n,freeze(this)}return t}(),DOMRectReadOnly=function(){function t(o,n,r,s){return this.x=o,this.y=n,this.width=r,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,freeze(this)}return t.prototype.toJSON=function(){var o=this,n=o.x,r=o.y,s=o.top,l=o.right,d=o.bottom,m=o.left,_=o.width,g=o.height;return{x:n,y:r,top:s,right:l,bottom:d,left:m,width:_,height:g}},t.fromRect=function(o){return new t(o.x,o.y,o.width,o.height)},t}(),isSVG$1=function(t){return t instanceof SVGElement&&"getBBox"in t},isHidden=function(t){if(isSVG$1(t)){var o=t.getBBox(),n=o.width,r=o.height;return!n&&!r}var s=t,l=s.offsetWidth,d=s.offsetHeight;return!(l||d||t.getClientRects().length)},isElement=function(t){var o;if(t instanceof Element)return!0;var n=(o=t==null?void 0:t.ownerDocument)===null||o===void 0?void 0:o.defaultView;return!!(n&&t instanceof n.Element)},isReplacedElement=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},global$1=typeof window<"u"?window:{},cache=new WeakMap,scrollRegexp=/auto|scroll/,verticalRegexp=/^tb|vertical/,IE=/msie|trident/i.test(global$1.navigator&&global$1.navigator.userAgent),parseDimension=function(t){return parseFloat(t||"0")},size$1=function(t,o,n){return t===void 0&&(t=0),o===void 0&&(o=0),n===void 0&&(n=!1),new ResizeObserverSize((n?o:t)||0,(n?t:o)||0)},zeroBoxes=freeze({devicePixelContentBoxSize:size$1(),borderBoxSize:size$1(),contentBoxSize:size$1(),contentRect:new DOMRectReadOnly(0,0,0,0)}),calculateBoxSizes=function(t,o){if(o===void 0&&(o=!1),cache.has(t)&&!o)return cache.get(t);if(isHidden(t))return cache.set(t,zeroBoxes),zeroBoxes;var n=getComputedStyle(t),r=isSVG$1(t)&&t.ownerSVGElement&&t.getBBox(),s=!IE&&n.boxSizing==="border-box",l=verticalRegexp.test(n.writingMode||""),d=!r&&scrollRegexp.test(n.overflowY||""),m=!r&&scrollRegexp.test(n.overflowX||""),_=r?0:parseDimension(n.paddingTop),g=r?0:parseDimension(n.paddingRight),v=r?0:parseDimension(n.paddingBottom),y=r?0:parseDimension(n.paddingLeft),w=r?0:parseDimension(n.borderTopWidth),B=r?0:parseDimension(n.borderRightWidth),k=r?0:parseDimension(n.borderBottomWidth),N=r?0:parseDimension(n.borderLeftWidth),S=y+g,x=_+v,C=N+B,I=w+k,D=m?t.offsetHeight-I-t.clientHeight:0,R=d?t.offsetWidth-C-t.clientWidth:0,O=s?S+C:0,Q=s?x+I:0,Y=r?r.width:parseDimension(n.width)-O-R,W=r?r.height:parseDimension(n.height)-Q-D,K=Y+S+R+C,ee=W+x+D+I,q=freeze({devicePixelContentBoxSize:size$1(Math.round(Y*devicePixelRatio),Math.round(W*devicePixelRatio),l),borderBoxSize:size$1(K,ee,l),contentBoxSize:size$1(Y,W,l),contentRect:new DOMRectReadOnly(y,_,Y,W)});return cache.set(t,q),q},calculateBoxSize=function(t,o,n){var r=calculateBoxSizes(t,n),s=r.borderBoxSize,l=r.contentBoxSize,d=r.devicePixelContentBoxSize;switch(o){case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:return d;case ResizeObserverBoxOptions.BORDER_BOX:return s;default:return l}},ResizeObserverEntry=function(){function t(o){var n=calculateBoxSizes(o);this.target=o,this.contentRect=n.contentRect,this.borderBoxSize=freeze([n.borderBoxSize]),this.contentBoxSize=freeze([n.contentBoxSize]),this.devicePixelContentBoxSize=freeze([n.devicePixelContentBoxSize])}return t}(),calculateDepthForNode=function(t){if(isHidden(t))return 1/0;for(var o=0,n=t.parentNode;n;)o+=1,n=n.parentNode;return o},broadcastActiveObservations=function(){var t=1/0,o=[];resizeObservers.forEach(function(d){if(d.activeTargets.length!==0){var m=[];d.activeTargets.forEach(function(g){var v=new ResizeObserverEntry(g.target),y=calculateDepthForNode(g.target);m.push(v),g.lastReportedSize=calculateBoxSize(g.target,g.observedBox),yt?n.activeTargets.push(s):n.skippedTargets.push(s))})})},process$1=function(){var t=0;for(gatherActiveObservationsAtDepth(t);hasActiveObservations();)t=broadcastActiveObservations(),gatherActiveObservationsAtDepth(t);return hasSkippedObservations()&&deliverResizeLoopError(),t>0},trigger,callbacks=[],notify=function(){return callbacks.splice(0).forEach(function(t){return t()})},queueMicroTask=function(t){if(!trigger){var o=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return notify()}).observe(n,r),trigger=function(){n.textContent="".concat(o?o--:o++)}}callbacks.push(t),trigger()},queueResizeObserver=function(t){queueMicroTask(function(){requestAnimationFrame(t)})},watching=0,isWatching=function(){return!!watching},CATCH_PERIOD=250,observerConfig={attributes:!0,characterData:!0,childList:!0,subtree:!0},events$1=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],time$2=function(t){return t===void 0&&(t=0),Date.now()+t},scheduled=!1,Scheduler=function(){function t(){var o=this;this.stopped=!0,this.listener=function(){return o.schedule()}}return t.prototype.run=function(o){var n=this;if(o===void 0&&(o=CATCH_PERIOD),!scheduled){scheduled=!0;var r=time$2(o);queueResizeObserver(function(){var s=!1;try{s=process$1()}finally{if(scheduled=!1,o=r-time$2(),!isWatching())return;s?n.run(1e3):o>0?n.run(o):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var o=this,n=function(){return o.observer&&o.observer.observe(document.body,observerConfig)};document.body?n():global$1.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var o=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),events$1.forEach(function(n){return global$1.addEventListener(n,o.listener,!0)}))},t.prototype.stop=function(){var o=this;this.stopped||(this.observer&&this.observer.disconnect(),events$1.forEach(function(n){return global$1.removeEventListener(n,o.listener,!0)}),this.stopped=!0)},t}(),scheduler=new Scheduler,updateCount=function(t){!watching&&t>0&&scheduler.start(),watching+=t,!watching&&scheduler.stop()},skipNotifyOnElement=function(t){return!isSVG$1(t)&&!isReplacedElement(t)&&getComputedStyle(t).display==="inline"},ResizeObservation=function(){function t(o,n){this.target=o,this.observedBox=n||ResizeObserverBoxOptions.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var o=calculateBoxSize(this.target,this.observedBox,!0);return skipNotifyOnElement(this.target)&&(this.lastReportedSize=o),this.lastReportedSize.inlineSize!==o.inlineSize||this.lastReportedSize.blockSize!==o.blockSize},t}(),ResizeObserverDetail=function(){function t(o,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=o,this.callback=n}return t}(),observerMap=new WeakMap,getObservationIndex=function(t,o){for(var n=0;n=0&&(l&&resizeObservers.splice(resizeObservers.indexOf(r),1),r.observationTargets.splice(s,1),updateCount(-1))},t.disconnect=function(o){var n=this,r=observerMap.get(o);r.observationTargets.slice().forEach(function(s){return n.unobserve(o,s.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),ResizeObserver$1=function(){function t(o){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof o!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ResizeObserverController.connect(this,o)}return t.prototype.observe=function(o,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!isElement(o))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ResizeObserverController.observe(this,o,n)},t.prototype.unobserve=function(o){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!isElement(o))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ResizeObserverController.unobserve(this,o)},t.prototype.disconnect=function(){ResizeObserverController.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();class ResizeObserverDelegate{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||ResizeObserver$1)(this.handleResize),this.elHandlersMap=new Map}handleResize(o){for(const n of o){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(o,n){this.elHandlersMap.set(o,n),this.observer.observe(o)}unregisterHandler(o){this.elHandlersMap.has(o)&&(this.elHandlersMap.delete(o),this.observer.unobserve(o))}}const resizeObserverManager=new ResizeObserverDelegate,VResizeObserver=defineComponent({name:"ResizeObserver",props:{onResize:Function},setup(t){let o=!1;const n=getCurrentInstance().proxy;function r(s){const{onResize:l}=t;l!==void 0&&l(s)}onMounted(()=>{const s=n.$el;if(s===void 0){warn("resize-observer","$el does not exist.");return}if(s.nextElementSibling!==s.nextSibling&&s.nodeType===3&&s.nodeValue!==""){warn("resize-observer","$el can not be observed (it may be a text node).");return}s.nextElementSibling!==null&&(resizeObserverManager.registerHandler(s.nextElementSibling,r),o=!0)}),onBeforeUnmount(()=>{o&&resizeObserverManager.unregisterHandler(n.$el.nextElementSibling)})},render(){return renderSlot(this.$slots,"default")}});let maybeTouch;function ensureMaybeTouch(){return maybeTouch===void 0&&("matchMedia"in window?maybeTouch=window.matchMedia("(pointer:coarse)").matches:maybeTouch=!1),maybeTouch}let wheelScale;function ensureWheelScale(){return wheelScale===void 0&&(wheelScale="chrome"in window?window.devicePixelRatio:1),wheelScale}const styles$1=c(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[c("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[c("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),VVirtualList=defineComponent({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},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(t){const o=useSsrAdapter();styles$1.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:o}),onMounted(()=>{const{defaultScrollIndex:ee,defaultScrollKey:q}=t;ee!=null?k({index:ee}):q!=null&&k({key:q})});let n=!1,r=!1;onActivated(()=>{if(n=!1,!r){r=!0;return}k({top:y.value,left:v})}),onDeactivated(()=>{n=!0,r||(r=!0)});const s=computed(()=>{const ee=new Map,{keyField:q}=t;return t.items.forEach((ae,ie)=>{ee.set(ae[q],ie)}),ee}),l=ref(null),d=ref(void 0),m=new Map,_=computed(()=>{const{items:ee,itemSize:q,keyField:ae}=t,ie=new FinweckTree(ee.length,q);return ee.forEach((oe,J)=>{const j=oe[ae],re=m.get(j);re!==void 0&&ie.add(J,re)}),ie}),g=ref(0);let v=0;const y=ref(0),w=useMemo(()=>Math.max(_.value.getBound(y.value-depx(t.paddingTop))-1,0)),B=computed(()=>{const{value:ee}=d;if(ee===void 0)return[];const{items:q,itemSize:ae}=t,ie=w.value,oe=Math.min(ie+Math.ceil(ee/ae+1),q.length-1),J=[];for(let j=ie;j<=oe;++j)J.push(q[j]);return J}),k=(ee,q)=>{if(typeof ee=="number"){C(ee,q,"auto");return}const{left:ae,top:ie,index:oe,key:J,position:j,behavior:re,debounce:ce=!0}=ee;if(ae!==void 0||ie!==void 0)C(ae,ie,re);else if(oe!==void 0)x(oe,re,ce);else if(J!==void 0){const le=s.value.get(J);le!==void 0&&x(le,re,ce)}else j==="bottom"?C(0,Number.MAX_SAFE_INTEGER,re):j==="top"&&C(0,0,re)};let N,S=null;function x(ee,q,ae){const{value:ie}=_,oe=ie.sum(ee)+depx(t.paddingTop);if(!ae)l.value.scrollTo({left:0,top:oe,behavior:q});else{N=ee,S!==null&&window.clearTimeout(S),S=window.setTimeout(()=>{N=void 0,S=null},16);const{scrollTop:J,offsetHeight:j}=l.value;if(oe>J){const re=ie.get(ee);oe+re<=J+j||l.value.scrollTo({left:0,top:oe+re-j,behavior:q})}else l.value.scrollTo({left:0,top:oe,behavior:q})}}function C(ee,q,ae){l.value.scrollTo({left:ee,top:q,behavior:ae})}function I(ee,q){var ae,ie,oe;if(n||t.ignoreItemResize||K(q.target))return;const{value:J}=_,j=s.value.get(ee),re=J.get(j),ce=(oe=(ie=(ae=q.borderBoxSize)===null||ae===void 0?void 0:ae[0])===null||ie===void 0?void 0:ie.blockSize)!==null&&oe!==void 0?oe:q.contentRect.height;if(ce===re)return;ce-t.itemSize===0?m.delete(ee):m.set(ee,ce-t.itemSize);const se=ce-re;if(se===0)return;J.add(j,se);const te=l.value;if(te!=null){if(N===void 0){const ne=J.sum(j);te.scrollTop>ne&&te.scrollBy(0,se)}else if(jte.scrollTop+te.offsetHeight&&te.scrollBy(0,se)}W()}g.value++}const D=!ensureMaybeTouch();let R=!1;function O(ee){var q;(q=t.onScroll)===null||q===void 0||q.call(t,ee),(!D||!R)&&W()}function Q(ee){var q;if((q=t.onWheel)===null||q===void 0||q.call(t,ee),D){const ae=l.value;if(ae!=null){if(ee.deltaX===0&&(ae.scrollTop===0&&ee.deltaY<=0||ae.scrollTop+ae.offsetHeight>=ae.scrollHeight&&ee.deltaY>=0))return;ee.preventDefault(),ae.scrollTop+=ee.deltaY/ensureWheelScale(),ae.scrollLeft+=ee.deltaX/ensureWheelScale(),W(),R=!0,beforeNextFrameOnce(()=>{R=!1})}}}function Y(ee){if(n||K(ee.target)||ee.contentRect.height===d.value)return;d.value=ee.contentRect.height;const{onResize:q}=t;q!==void 0&&q(ee)}function W(){const{value:ee}=l;ee!=null&&(y.value=ee.scrollTop,v=ee.scrollLeft)}function K(ee){let q=ee;for(;q!==null;){if(q.style.display==="none")return!0;q=q.parentElement}return!1}return{listHeight:d,listStyle:{overflow:"auto"},keyToIndex:s,itemsStyle:computed(()=>{const{itemResizable:ee}=t,q=pxfy(_.value.sum());return g.value,[t.itemsStyle,{boxSizing:"content-box",height:ee?"":q,minHeight:ee?q:"",paddingTop:pxfy(t.paddingTop),paddingBottom:pxfy(t.paddingBottom)}]}),visibleItemsStyle:computed(()=>(g.value,{transform:`translateY(${pxfy(_.value.sum(w.value))})`})),viewportItems:B,listElRef:l,itemsElRef:ref(null),scrollTo:k,handleListResize:Y,handleListScroll:O,handleListWheel:Q,handleItemResize:I}},render(){const{itemResizable:t,keyField:o,keyToIndex:n,visibleItemsTag:r}=this;return h(VResizeObserver,{onResize:this.handleListResize},{default:()=>{var s,l;return h("div",mergeProps(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?h("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[h(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(d=>{const m=d[o],_=n.get(m),g=this.$slots.default({item:d,index:_})[0];return t?h(VResizeObserver,{key:m,onResize:v=>this.handleItemResize(m,v)},{default:()=>g}):(g.key=m,g)})})]):(l=(s=this.$slots).empty)===null||l===void 0?void 0:l.call(s)])}})}}),styles=c(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[c("&::-webkit-scrollbar",{width:0,height:0})]),VXScroll=defineComponent({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const t=ref(null);function o(s){!(s.currentTarget.offsetWidthy){const{updateCounter:R}=t;for(let O=C;O>=0;--O){const Q=S-1-O;R!==void 0?R(Q):g.textContent=`${Q}`;const Y=g.offsetWidth;if(k-=w[O],k+Y<=y||O===0){N=!0,C=O-1,B&&(C===-1?(B.style.maxWidth=`${y-Y}px`,B.style.boxSizing="border-box"):B.style.maxWidth="");break}}}}const{onUpdateOverflow:x}=t;N?x!==void 0&&x(!0):(x!==void 0&&x(!1),g.setAttribute(hiddenAttr,""))}const l=useSsrAdapter();return style$E.mount({id:"vueuc/overflow",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:l}),onMounted(s),{selfRef:n,counterRef:r,sync:s}},render(){const{$slots:t}=this;return nextTick(this.sync),h("div",{class:"v-overflow",ref:"selfRef"},[renderSlot(t,"default"),t.counter?t.counter():h("span",{style:{display:"inline-block"},ref:"counterRef"}),t.tail?t.tail():null])}});function isHTMLElement$1(t){return t instanceof HTMLElement}function focusFirstDescendant(t){for(let o=0;o=0;o--){const n=t.childNodes[o];if(isHTMLElement$1(n)&&(attemptFocus(n)||focusLastDescendant(n)))return!0}return!1}function attemptFocus(t){if(!isFocusable(t))return!1;try{t.focus({preventScroll:!0})}catch{}return document.activeElement===t}function isFocusable(t){if(t.tabIndex>0||t.tabIndex===0&&t.getAttribute("tabIndex")!==null)return!0;if(t.getAttribute("disabled"))return!1;switch(t.nodeName){case"A":return!!t.href&&t.rel!=="ignore";case"INPUT":return t.type!=="hidden"&&t.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let stack=[];const FocusTrap=defineComponent({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(t){const o=createId(),n=ref(null),r=ref(null);let s=!1,l=!1;const d=typeof document>"u"?null:document.activeElement;function m(){return stack[stack.length-1]===o}function _(S){var x;S.code==="Escape"&&m()&&((x=t.onEsc)===null||x===void 0||x.call(t,S))}onMounted(()=>{watch(()=>t.active,S=>{S?(y(),on$1("keydown",document,_)):(off$1("keydown",document,_),s&&w())},{immediate:!0})}),onBeforeUnmount(()=>{off$1("keydown",document,_),s&&w()});function g(S){if(!l&&m()){const x=v();if(x===null||x.contains(getPreciseEventTarget(S)))return;B("first")}}function v(){const S=n.value;if(S===null)return null;let x=S;for(;x=x.nextSibling,!(x===null||x instanceof Element&&x.tagName==="DIV"););return x}function y(){var S;if(!t.disabled){if(stack.push(o),t.autoFocus){const{initialFocusTo:x}=t;x===void 0?B("first"):(S=resolveTo(x))===null||S===void 0||S.focus({preventScroll:!0})}s=!0,document.addEventListener("focus",g,!0)}}function w(){var S;if(t.disabled||(document.removeEventListener("focus",g,!0),stack=stack.filter(C=>C!==o),m()))return;const{finalFocusTo:x}=t;x!==void 0?(S=resolveTo(x))===null||S===void 0||S.focus({preventScroll:!0}):t.returnFocusOnDeactivated&&d instanceof HTMLElement&&(l=!0,d.focus({preventScroll:!0}),l=!1)}function B(S){if(m()&&t.active){const x=n.value,C=r.value;if(x!==null&&C!==null){const I=v();if(I==null||I===C){l=!0,x.focus({preventScroll:!0}),l=!1;return}l=!0;const D=S==="first"?focusFirstDescendant(I):focusLastDescendant(I);l=!1,D||(l=!0,x.focus({preventScroll:!0}),l=!1)}}}function k(S){if(l)return;const x=v();x!==null&&(S.relatedTarget!==null&&x.contains(S.relatedTarget)?B("last"):B("first"))}function N(S){l||(S.relatedTarget!==null&&S.relatedTarget===n.value?B("last"):B("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:k,handleEndFocus:N}},render(){const{default:t}=this.$slots;if(t===void 0)return null;if(this.disabled)return t();const{active:o,focusableStyle:n}=this;return h(Fragment,null,[h("div",{"aria-hidden":"true",tabindex:o?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),t(),h("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:o?"0":"-1",onFocus:this.handleEndFocus})])}});function useOnResize(t,o){o&&(onMounted(()=>{const{value:n}=t;n&&resizeObserverManager.registerHandler(n,o)}),onBeforeUnmount(()=>{const{value:n}=t;n&&resizeObserverManager.unregisterHandler(n)}))}let lockCount=0,originalMarginRight="",originalOverflow="",originalOverflowX="",originalOverflowY="";const lockHtmlScrollRightCompensationRef=ref("0px");function useLockHtmlScroll(t){if(typeof document>"u")return;const o=document.documentElement;let n,r=!1;const s=()=>{o.style.marginRight=originalMarginRight,o.style.overflow=originalOverflow,o.style.overflowX=originalOverflowX,o.style.overflowY=originalOverflowY,lockHtmlScrollRightCompensationRef.value="0px"};onMounted(()=>{n=watch(t,l=>{if(l){if(!lockCount){const d=window.innerWidth-o.offsetWidth;d>0&&(originalMarginRight=o.style.marginRight,o.style.marginRight=`${d}px`,lockHtmlScrollRightCompensationRef.value=`${d}px`),originalOverflow=o.style.overflow,originalOverflowX=o.style.overflowX,originalOverflowY=o.style.overflowY,o.style.overflow="hidden",o.style.overflowX="hidden",o.style.overflowY="hidden"}r=!0,lockCount++}else lockCount--,lockCount||s(),r=!1},{immediate:!0})}),onBeforeUnmount(()=>{n==null||n(),r&&(lockCount--,lockCount||s(),r=!1)})}const isComposingRef=ref(!1),compositionStartHandler=()=>{isComposingRef.value=!0},compositionEndHandler=()=>{isComposingRef.value=!1};let mountedCount=0;const useIsComposing=()=>(isBrowser$2&&(onBeforeMount(()=>{mountedCount||(window.addEventListener("compositionstart",compositionStartHandler),window.addEventListener("compositionend",compositionEndHandler)),mountedCount++}),onBeforeUnmount(()=>{mountedCount<=1?(window.removeEventListener("compositionstart",compositionStartHandler),window.removeEventListener("compositionend",compositionEndHandler),mountedCount=0):mountedCount--})),isComposingRef);function useReactivated(t){const o={isDeactivated:!1};let n=!1;return onActivated(()=>{if(o.isDeactivated=!1,!n){n=!0;return}t()}),onDeactivated(()=>{o.isDeactivated=!0,n||(n=!0)}),o}const formItemInjectionKey="n-form-item";function useFormItem(t,{defaultSize:o="medium",mergedSize:n,mergedDisabled:r}={}){const s=inject(formItemInjectionKey,null);provide(formItemInjectionKey,null);const l=computed(n?()=>n(s):()=>{const{size:_}=t;if(_)return _;if(s){const{mergedSize:g}=s;if(g.value!==void 0)return g.value}return o}),d=computed(r?()=>r(s):()=>{const{disabled:_}=t;return _!==void 0?_:s?s.disabled.value:!1}),m=computed(()=>{const{status:_}=t;return _||(s==null?void 0:s.mergedValidationStatus.value)});return onBeforeUnmount(()=>{s&&s.restoreValidation()}),{mergedSizeRef:l,mergedDisabledRef:d,mergedStatusRef:m,nTriggerFormBlur(){s&&s.handleContentBlur()},nTriggerFormChange(){s&&s.handleContentChange()},nTriggerFormFocus(){s&&s.handleContentFocus()},nTriggerFormInput(){s&&s.handleContentInput()}}}var freeGlobal$3=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$4=freeGlobal$3;var freeSelf$2=typeof self=="object"&&self&&self.Object===Object&&self,root$5=freeGlobal$4||freeSelf$2||Function("return this")();const root$6=root$5;var Symbol$4=root$6.Symbol;const Symbol$5=Symbol$4;var objectProto$n=Object.prototype,hasOwnProperty$j=objectProto$n.hasOwnProperty,nativeObjectToString$4=objectProto$n.toString,symToStringTag$4=Symbol$5?Symbol$5.toStringTag:void 0;function getRawTag$3(t){var o=hasOwnProperty$j.call(t,symToStringTag$4),n=t[symToStringTag$4];try{t[symToStringTag$4]=void 0;var r=!0}catch{}var s=nativeObjectToString$4.call(t);return r&&(o?t[symToStringTag$4]=n:delete t[symToStringTag$4]),s}var objectProto$m=Object.prototype,nativeObjectToString$3=objectProto$m.toString;function objectToString$3(t){return nativeObjectToString$3.call(t)}var nullTag$2="[object Null]",undefinedTag$2="[object Undefined]",symToStringTag$3=Symbol$5?Symbol$5.toStringTag:void 0;function baseGetTag$6(t){return t==null?t===void 0?undefinedTag$2:nullTag$2:symToStringTag$3&&symToStringTag$3 in Object(t)?getRawTag$3(t):objectToString$3(t)}function isObjectLike$6(t){return t!=null&&typeof t=="object"}var symbolTag$3="[object Symbol]";function isSymbol$3(t){return typeof t=="symbol"||isObjectLike$6(t)&&baseGetTag$6(t)==symbolTag$3}function arrayMap(t,o){for(var n=-1,r=t==null?0:t.length,s=Array(r);++n0){if(++o>=HOT_COUNT$1)return arguments[0]}else o=0;return t.apply(void 0,arguments)}}function constant$2(t){return function(){return t}}var defineProperty$2=function(){try{var t=getNative$2(Object,"defineProperty");return t({},"",{}),t}catch{}}();const defineProperty$3=defineProperty$2;var baseSetToString$2=defineProperty$3?function(t,o){return defineProperty$3(t,"toString",{configurable:!0,enumerable:!1,value:constant$2(o),writable:!0})}:identity$3;const baseSetToString$3=baseSetToString$2;var setToString$2=shortOut$2(baseSetToString$3);const setToString$3=setToString$2;var MAX_SAFE_INTEGER$3=9007199254740991,reIsUint$1=/^(?:0|[1-9]\d*)$/;function isIndex$3(t,o){var n=typeof t;return o=o??MAX_SAFE_INTEGER$3,!!o&&(n=="number"||n!="symbol"&&reIsUint$1.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=MAX_SAFE_INTEGER$2}function isArrayLike$3(t){return t!=null&&isLength$4(t.length)&&!isFunction$4(t)}function isIterateeCall$2(t,o,n){if(!isObject$a(n))return!1;var r=typeof o;return(r=="number"?isArrayLike$3(n)&&isIndex$3(o,n.length):r=="string"&&o in n)?eq$3(n[o],t):!1}function createAssigner(t){return baseRest$2(function(o,n){var r=-1,s=n.length,l=s>1?n[s-1]:void 0,d=s>2?n[2]:void 0;for(l=t.length>3&&typeof l=="function"?(s--,l):void 0,d&&isIterateeCall$2(n[0],n[1],d)&&(l=s<3?void 0:l,s=1),o=Object(o);++r-1}function listCacheSet(t,o){var n=this.__data__,r=assocIndexOf(n,t);return r<0?(++this.size,n.push([t,o])):n[r][1]=o,this}function ListCache(t){var o=-1,n=t==null?0:t.length;for(this.clear();++os?0:s+o),n=n>s?s:n,n<0&&(n+=s),s=o>n?0:n-o>>>0,o>>>=0;for(var l=Array(s);++r=r?t:baseSlice(t,o,n)}var rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsVarRange$1="\\ufe0e\\ufe0f",rsZWJ$1="\\u200d",reHasUnicode=RegExp("["+rsZWJ$1+rsAstralRange$1+rsComboRange$1+rsVarRange$1+"]");function hasUnicode(t){return reHasUnicode.test(t)}function asciiToArray(t){return t.split("")}var rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsVarRange="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange+"]",rsCombo="["+rsComboRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ="\\u200d",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g");function unicodeToArray(t){return t.match(reUnicode)||[]}function stringToArray(t){return hasUnicode(t)?unicodeToArray(t):asciiToArray(t)}function createCaseFirst(t){return function(o){o=toString$1(o);var n=hasUnicode(o)?stringToArray(o):void 0,r=n?n[0]:o.charAt(0),s=n?castSlice(n,1).join(""):o.slice(1);return r[t]()+s}}var upperFirst=createCaseFirst("toUpperCase");const upperFirst$1=upperFirst;function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(t){var o=this.__data__,n=o.delete(t);return this.size=o.size,n}function stackGet(t){return this.__data__.get(t)}function stackHas(t){return this.__data__.has(t)}var LARGE_ARRAY_SIZE=200;function stackSet(t,o){var n=this.__data__;if(n instanceof ListCache){var r=n.__data__;if(!Map$2||r.lengthm))return!1;var g=l.get(t),v=l.get(o);if(g&&v)return g==o&&v==t;var y=-1,w=!0,B=n&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(l.set(t,o),l.set(o,t);++y=o||Q<0||y&&Y>=l}function x(){var O=now$4();if(S(O))return C(O);m=setTimeout(x,N(O))}function C(O){return m=void 0,w&&r?B(O):(r=s=void 0,d)}function I(){m!==void 0&&clearTimeout(m),g=0,r=_=s=m=void 0}function D(){return m===void 0?d:C(now$4())}function R(){var O=now$4(),Q=S(O);if(r=arguments,s=this,_=O,Q){if(m===void 0)return k(_);if(y)return clearTimeout(m),m=setTimeout(x,o),B(_)}return m===void 0&&(m=setTimeout(x,o)),d}return R.cancel=I,R.flush=D,R}function assignMergeValue(t,o,n){(n!==void 0&&!eq$3(t[o],n)||n===void 0&&!(o in t))&&baseAssignValue(t,o,n)}function isArrayLikeObject(t){return isObjectLike$6(t)&&isArrayLike$3(t)}function safeGet(t,o){if(!(o==="constructor"&&typeof t[o]=="function")&&o!="__proto__")return t[o]}function toPlainObject(t){return copyObject(t,keysIn$2(t))}function baseMergeDeep(t,o,n,r,s,l,d){var m=safeGet(t,n),_=safeGet(o,n),g=d.get(_);if(g){assignMergeValue(t,n,g);return}var v=l?l(m,_,n+"",t,o,d):void 0,y=v===void 0;if(y){var w=isArray$3(_),B=!w&&isBuffer$3(_),k=!w&&!B&&isTypedArray$3(_);v=_,w||B||k?isArray$3(m)?v=m:isArrayLikeObject(m)?v=copyArray(m):B?(y=!1,v=cloneBuffer(_,!0)):k?(y=!1,v=cloneTypedArray(_,!0)):v=[]:isPlainObject$1(_)||isArguments$3(_)?(v=m,isArguments$3(m)?v=toPlainObject(m):(!isObject$a(m)||isFunction$4(m))&&(v=initCloneObject(_))):y=!1}y&&(d.set(_,v),s(v,_,r,l,d),d.delete(_)),assignMergeValue(t,n,v)}function baseMerge(t,o,n,r,s){t!==o&&baseFor$1(o,function(l,d){if(s||(s=new Stack),isObject$a(l))baseMergeDeep(t,o,d,n,baseMerge,r,s);else{var m=r?r(safeGet(t,d),l,d+"",t,o,s):void 0;m===void 0&&(m=l),assignMergeValue(t,d,m)}},keysIn$2)}function baseMap(t,o){var n=-1,r=isArrayLike$3(t)?Array(t.length):[];return baseEach$1(t,function(s,l,d){r[++n]=o(s,l,d)}),r}function map(t,o){var n=isArray$3(t)?arrayMap:baseMap;return n(t,baseIteratee(o))}var merge$1=createAssigner(function(t,o,n){baseMerge(t,o,n)});const merge$2=merge$1;var FUNC_ERROR_TEXT$2="Expected a function";function throttle$1(t,o,n){var r=!0,s=!0;if(typeof t!="function")throw new TypeError(FUNC_ERROR_TEXT$2);return isObject$a(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),debounce$3(t,o,{leading:r,maxWait:o,trailing:s})}const commonVariables$c={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:fontSize$1,fontFamily:fontFamily$1,lineHeight:lineHeight$1}=commonVariables$c,globalStyle=c$1("body",`
+ margin: 0;
+ font-size: ${fontSize$1};
+ font-family: ${fontFamily$1};
+ line-height: ${lineHeight$1};
+ -webkit-text-size-adjust: 100%;
+ -webkit-tap-highlight-color: transparent;
+`,[c$1("input",`
+ font-family: inherit;
+ font-size: inherit;
+ `)]),configProviderInjectionKey="n-config-provider",cssrAnchorMetaName="naive-ui-style";function createTheme(t){return t}function useTheme(t,o,n,r,s,l){const d=useSsrAdapter(),m=inject(configProviderInjectionKey,null);if(n){const g=()=>{const v=l==null?void 0:l.value;n.mount({id:v===void 0?o:v+o,head:!0,props:{bPrefix:v?`.${v}-`:void 0},anchorMetaName:cssrAnchorMetaName,ssr:d}),m!=null&&m.preflightStyleDisabled||globalStyle.mount({id:"n-global",head:!0,anchorMetaName:cssrAnchorMetaName,ssr:d})};d?g():onBeforeMount(g)}return computed(()=>{var g;const{theme:{common:v,self:y,peers:w={}}={},themeOverrides:B={},builtinThemeOverrides:k={}}=s,{common:N,peers:S}=B,{common:x=void 0,[t]:{common:C=void 0,self:I=void 0,peers:D={}}={}}=(m==null?void 0:m.mergedThemeRef.value)||{},{common:R=void 0,[t]:O={}}=(m==null?void 0:m.mergedThemeOverridesRef.value)||{},{common:Q,peers:Y={}}=O,W=merge$2({},v||C||x||r.common,R,Q,N),K=merge$2((g=y||I||r.self)===null||g===void 0?void 0:g(W),k,O,B);return{common:W,self:K,peers:merge$2({},r.peers,D,w),peerOverrides:merge$2({},k.peers,Y,S)}})}useTheme.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const defaultClsPrefix="n";function useConfig(t={},o={defaultBordered:!0}){const n=inject(configProviderInjectionKey,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:computed(()=>{var r,s;const{bordered:l}=t;return l!==void 0?l:(s=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:o.defaultBordered)!==null&&s!==void 0?s:!0}),mergedClsPrefixRef:n?n.mergedClsPrefixRef:shallowRef(defaultClsPrefix),namespaceRef:computed(()=>n==null?void 0:n.mergedNamespaceRef.value)}}function useMergedClsPrefix(){const t=inject(configProviderInjectionKey,null);return t?t.mergedClsPrefixRef:shallowRef(defaultClsPrefix)}const enUS$1={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:t=>`Please load all ${t}'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",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",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:t=>`Total ${t} items`,selected:t=>`${t} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},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"}},enUS$2=enUS$1;function buildFormatLongFn$1(t){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=o.width?String(o.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}function requiredArgs$1(t,o){if(o.length1?"s":"")+" required, but only "+o.length+" present")}function _typeof$3(t){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$3(t)}function toDate$2(t){requiredArgs$1(1,arguments);var o=Object.prototype.toString.call(t);return t instanceof Date||_typeof$3(t)==="object"&&o==="[object Date]"?new Date(t.getTime()):typeof t=="number"||o==="[object Number]"?new Date(t):((typeof t=="string"||o==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function toInteger$2(t){if(t===null||t===!0||t===!1)return NaN;var o=Number(t);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}var defaultOptions$2={};function getDefaultOptions$1(){return defaultOptions$2}function startOfUTCWeek$1(t,o){var n,r,s,l,d,m,_,g;requiredArgs$1(1,arguments);var v=getDefaultOptions$1(),y=toInteger$2((n=(r=(s=(l=o==null?void 0:o.weekStartsOn)!==null&&l!==void 0?l:o==null||(d=o.locale)===null||d===void 0||(m=d.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&s!==void 0?s:v.weekStartsOn)!==null&&r!==void 0?r:(_=v.locale)===null||_===void 0||(g=_.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&n!==void 0?n:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=toDate$2(t),B=w.getUTCDay(),k=(B1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],l=o.match(s);if(!l)return null;var d=l[0],m=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],_=Array.isArray(m)?findIndex(m,function(y){return y.test(d)}):findKey(m,function(y){return y.test(d)}),g;g=t.valueCallback?t.valueCallback(_):_,g=n.valueCallback?n.valueCallback(g):g;var v=o.slice(d.length);return{value:g,rest:v}}}function findKey(t,o){for(var n in t)if(t.hasOwnProperty(n)&&o(t[n]))return n}function findIndex(t,o){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=o.match(t.matchPattern);if(!r)return null;var s=r[0],l=o.match(t.parsePattern);if(!l)return null;var d=t.valueCallback?t.valueCallback(l[0]):l[0];d=n.valueCallback?n.valueCallback(d):d;var m=o.slice(s.length);return{value:d,rest:m}}}var formatDistanceLocale={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"}},formatDistance$1=function(o,n,r){var s,l=formatDistanceLocale[o];return typeof l=="string"?s=l:n===1?s=l.one:s=l.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+s:s+" ago":s};const formatDistance$2=formatDistance$1;var dateFormats={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$1={date:buildFormatLongFn$1({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn$1({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn$1({formats:dateTimeFormats,defaultWidth:"full"})};const formatLong$2=formatLong$1;var formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative$1=function(o,n,r,s){return formatRelativeLocale[o]};const formatRelative$2=formatRelative$1;var eraValues={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues={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"]},dayValues={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"]},dayPeriodValues={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"}},formattingDayPeriodValues={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"}},ordinalNumber=function(o,n){var r=Number(o),s=r%100;if(s>20||s<10)switch(s%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},localize$1={ordinalNumber,era:buildLocalizeFn$1({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn$1({values:quarterValues,defaultWidth:"wide",argumentCallback:function(o){return o-1}}),month:buildLocalizeFn$1({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn$1({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn$1({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})};const localize$2=localize$1;var matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={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},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={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},parseMonthPatterns={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]},matchDayPatterns={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},parseDayPatterns={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]},matchDayPeriodPatterns={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},parseDayPeriodPatterns={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}},match$1={ordinalNumber:buildMatchPatternFn$1({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function(o){return parseInt(o,10)}}),era:buildMatchFn$1({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn$1({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function(o){return o+1}}),month:buildMatchFn$1({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn$1({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn$1({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})};const match$2=match$1;var locale={code:"en-US",formatDistance:formatDistance$2,formatLong:formatLong$2,formatRelative:formatRelative$2,localize:localize$2,match:match$2,options:{weekStartsOn:0,firstWeekContainsDate:1}};const defaultLocale$1=locale,dateEnUs={name:"en-US",locale:defaultLocale$1},dateEnUS=dateEnUs;function addDays(t,o){requiredArgs$1(2,arguments);var n=toDate$2(t),r=toInteger$2(o);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function addMonths(t,o){requiredArgs$1(2,arguments);var n=toDate$2(t),r=toInteger$2(o);if(isNaN(r))return new Date(NaN);if(!r)return n;var s=n.getDate(),l=new Date(n.getTime());l.setMonth(n.getMonth()+r+1,0);var d=l.getDate();return s>=d?l:(n.setFullYear(l.getFullYear(),l.getMonth(),s),n)}function addMilliseconds$1(t,o){requiredArgs$1(2,arguments);var n=toDate$2(t).getTime(),r=toInteger$2(o);return new Date(n+r)}function getTimezoneOffsetInMilliseconds$2(t){var o=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return o.setUTCFullYear(t.getFullYear()),t.getTime()-o.getTime()}function startOfDay(t){requiredArgs$1(1,arguments);var o=toDate$2(t);return o.setHours(0,0,0,0),o}function addQuarters(t,o){requiredArgs$1(2,arguments);var n=toInteger$2(o),r=n*3;return addMonths(t,r)}function addYears(t,o){requiredArgs$1(2,arguments);var n=toInteger$2(o);return addMonths(t,n*12)}var millisecondsInMinute=6e4,millisecondsInHour=36e5,millisecondsInSecond=1e3;function isSameDay(t,o){requiredArgs$1(2,arguments);var n=startOfDay(t),r=startOfDay(o);return n.getTime()===r.getTime()}function isDate$1(t){return requiredArgs$1(1,arguments),t instanceof Date||_typeof$3(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function isValid$1(t){if(requiredArgs$1(1,arguments),!isDate$1(t)&&typeof t!="number")return!1;var o=toDate$2(t);return!isNaN(Number(o))}function getQuarter(t){requiredArgs$1(1,arguments);var o=toDate$2(t),n=Math.floor(o.getMonth()/3)+1;return n}function startOfMinute(t){requiredArgs$1(1,arguments);var o=toDate$2(t);return o.setSeconds(0,0),o}function startOfQuarter(t){requiredArgs$1(1,arguments);var o=toDate$2(t),n=o.getMonth(),r=n-n%3;return o.setMonth(r,1),o.setHours(0,0,0,0),o}function startOfMonth(t){requiredArgs$1(1,arguments);var o=toDate$2(t);return o.setDate(1),o.setHours(0,0,0,0),o}function startOfYear(t){requiredArgs$1(1,arguments);var o=toDate$2(t),n=new Date(0);return n.setFullYear(o.getFullYear(),0,1),n.setHours(0,0,0,0),n}function subMilliseconds$1(t,o){requiredArgs$1(2,arguments);var n=toInteger$2(o);return addMilliseconds$1(t,-n)}var MILLISECONDS_IN_DAY=864e5;function getUTCDayOfYear$1(t){requiredArgs$1(1,arguments);var o=toDate$2(t),n=o.getTime();o.setUTCMonth(0,1),o.setUTCHours(0,0,0,0);var r=o.getTime(),s=n-r;return Math.floor(s/MILLISECONDS_IN_DAY)+1}function startOfUTCISOWeek$1(t){requiredArgs$1(1,arguments);var o=1,n=toDate$2(t),r=n.getUTCDay(),s=(r=s.getTime()?n+1:o.getTime()>=d.getTime()?n:n-1}function startOfUTCISOWeekYear$1(t){requiredArgs$1(1,arguments);var o=getUTCISOWeekYear$1(t),n=new Date(0);n.setUTCFullYear(o,0,4),n.setUTCHours(0,0,0,0);var r=startOfUTCISOWeek$1(n);return r}var MILLISECONDS_IN_WEEK$1=6048e5;function getUTCISOWeek$1(t){requiredArgs$1(1,arguments);var o=toDate$2(t),n=startOfUTCISOWeek$1(o).getTime()-startOfUTCISOWeekYear$1(o).getTime();return Math.round(n/MILLISECONDS_IN_WEEK$1)+1}function getUTCWeekYear$1(t,o){var n,r,s,l,d,m,_,g;requiredArgs$1(1,arguments);var v=toDate$2(t),y=v.getUTCFullYear(),w=getDefaultOptions$1(),B=toInteger$2((n=(r=(s=(l=o==null?void 0:o.firstWeekContainsDate)!==null&&l!==void 0?l:o==null||(d=o.locale)===null||d===void 0||(m=d.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&s!==void 0?s:w.firstWeekContainsDate)!==null&&r!==void 0?r:(_=w.locale)===null||_===void 0||(g=_.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(B>=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=new Date(0);k.setUTCFullYear(y+1,0,B),k.setUTCHours(0,0,0,0);var N=startOfUTCWeek$1(k,o),S=new Date(0);S.setUTCFullYear(y,0,B),S.setUTCHours(0,0,0,0);var x=startOfUTCWeek$1(S,o);return v.getTime()>=N.getTime()?y+1:v.getTime()>=x.getTime()?y:y-1}function startOfUTCWeekYear$1(t,o){var n,r,s,l,d,m,_,g;requiredArgs$1(1,arguments);var v=getDefaultOptions$1(),y=toInteger$2((n=(r=(s=(l=o==null?void 0:o.firstWeekContainsDate)!==null&&l!==void 0?l:o==null||(d=o.locale)===null||d===void 0||(m=d.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&s!==void 0?s:v.firstWeekContainsDate)!==null&&r!==void 0?r:(_=v.locale)===null||_===void 0||(g=_.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&n!==void 0?n:1),w=getUTCWeekYear$1(t,o),B=new Date(0);B.setUTCFullYear(w,0,y),B.setUTCHours(0,0,0,0);var k=startOfUTCWeek$1(B,o);return k}var MILLISECONDS_IN_WEEK=6048e5;function getUTCWeek$1(t,o){requiredArgs$1(1,arguments);var n=toDate$2(t),r=startOfUTCWeek$1(n,o).getTime()-startOfUTCWeekYear$1(n,o).getTime();return Math.round(r/MILLISECONDS_IN_WEEK)+1}function addLeadingZeros$2(t,o){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length0?r:1-r;return addLeadingZeros$2(n==="yy"?s%100:s,n.length)},M:function(o,n){var r=o.getUTCMonth();return n==="M"?String(r+1):addLeadingZeros$2(r+1,2)},d:function(o,n){return addLeadingZeros$2(o.getUTCDate(),n.length)},a:function(o,n){var r=o.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(o,n){return addLeadingZeros$2(o.getUTCHours()%12||12,n.length)},H:function(o,n){return addLeadingZeros$2(o.getUTCHours(),n.length)},m:function(o,n){return addLeadingZeros$2(o.getUTCMinutes(),n.length)},s:function(o,n){return addLeadingZeros$2(o.getUTCSeconds(),n.length)},S:function(o,n){var r=n.length,s=o.getUTCMilliseconds(),l=Math.floor(s*Math.pow(10,r-3));return addLeadingZeros$2(l,n.length)}};const formatters$6=formatters$5;var dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters$3={G:function(o,n,r){var s=o.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(s,{width:"abbreviated"});case"GGGGG":return r.era(s,{width:"narrow"});case"GGGG":default:return r.era(s,{width:"wide"})}},y:function(o,n,r){if(n==="yo"){var s=o.getUTCFullYear(),l=s>0?s:1-s;return r.ordinalNumber(l,{unit:"year"})}return formatters$6.y(o,n)},Y:function(o,n,r,s){var l=getUTCWeekYear$1(o,s),d=l>0?l:1-l;if(n==="YY"){var m=d%100;return addLeadingZeros$2(m,2)}return n==="Yo"?r.ordinalNumber(d,{unit:"year"}):addLeadingZeros$2(d,n.length)},R:function(o,n){var r=getUTCISOWeekYear$1(o);return addLeadingZeros$2(r,n.length)},u:function(o,n){var r=o.getUTCFullYear();return addLeadingZeros$2(r,n.length)},Q:function(o,n,r){var s=Math.ceil((o.getUTCMonth()+1)/3);switch(n){case"Q":return String(s);case"QQ":return addLeadingZeros$2(s,2);case"Qo":return r.ordinalNumber(s,{unit:"quarter"});case"QQQ":return r.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(s,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(s,{width:"wide",context:"formatting"})}},q:function(o,n,r){var s=Math.ceil((o.getUTCMonth()+1)/3);switch(n){case"q":return String(s);case"qq":return addLeadingZeros$2(s,2);case"qo":return r.ordinalNumber(s,{unit:"quarter"});case"qqq":return r.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(s,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(s,{width:"wide",context:"standalone"})}},M:function(o,n,r){var s=o.getUTCMonth();switch(n){case"M":case"MM":return formatters$6.M(o,n);case"Mo":return r.ordinalNumber(s+1,{unit:"month"});case"MMM":return r.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(s,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(s,{width:"wide",context:"formatting"})}},L:function(o,n,r){var s=o.getUTCMonth();switch(n){case"L":return String(s+1);case"LL":return addLeadingZeros$2(s+1,2);case"Lo":return r.ordinalNumber(s+1,{unit:"month"});case"LLL":return r.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(s,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(s,{width:"wide",context:"standalone"})}},w:function(o,n,r,s){var l=getUTCWeek$1(o,s);return n==="wo"?r.ordinalNumber(l,{unit:"week"}):addLeadingZeros$2(l,n.length)},I:function(o,n,r){var s=getUTCISOWeek$1(o);return n==="Io"?r.ordinalNumber(s,{unit:"week"}):addLeadingZeros$2(s,n.length)},d:function(o,n,r){return n==="do"?r.ordinalNumber(o.getUTCDate(),{unit:"date"}):formatters$6.d(o,n)},D:function(o,n,r){var s=getUTCDayOfYear$1(o);return n==="Do"?r.ordinalNumber(s,{unit:"dayOfYear"}):addLeadingZeros$2(s,n.length)},E:function(o,n,r){var s=o.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(s,{width:"short",context:"formatting"});case"EEEE":default:return r.day(s,{width:"wide",context:"formatting"})}},e:function(o,n,r,s){var l=o.getUTCDay(),d=(l-s.weekStartsOn+8)%7||7;switch(n){case"e":return String(d);case"ee":return addLeadingZeros$2(d,2);case"eo":return r.ordinalNumber(d,{unit:"day"});case"eee":return r.day(l,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(l,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(l,{width:"short",context:"formatting"});case"eeee":default:return r.day(l,{width:"wide",context:"formatting"})}},c:function(o,n,r,s){var l=o.getUTCDay(),d=(l-s.weekStartsOn+8)%7||7;switch(n){case"c":return String(d);case"cc":return addLeadingZeros$2(d,n.length);case"co":return r.ordinalNumber(d,{unit:"day"});case"ccc":return r.day(l,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(l,{width:"narrow",context:"standalone"});case"cccccc":return r.day(l,{width:"short",context:"standalone"});case"cccc":default:return r.day(l,{width:"wide",context:"standalone"})}},i:function(o,n,r){var s=o.getUTCDay(),l=s===0?7:s;switch(n){case"i":return String(l);case"ii":return addLeadingZeros$2(l,n.length);case"io":return r.ordinalNumber(l,{unit:"day"});case"iii":return r.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(s,{width:"short",context:"formatting"});case"iiii":default:return r.day(s,{width:"wide",context:"formatting"})}},a:function(o,n,r){var s=o.getUTCHours(),l=s/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(l,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(l,{width:"wide",context:"formatting"})}},b:function(o,n,r){var s=o.getUTCHours(),l;switch(s===12?l=dayPeriodEnum.noon:s===0?l=dayPeriodEnum.midnight:l=s/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(l,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(l,{width:"wide",context:"formatting"})}},B:function(o,n,r){var s=o.getUTCHours(),l;switch(s>=17?l=dayPeriodEnum.evening:s>=12?l=dayPeriodEnum.afternoon:s>=4?l=dayPeriodEnum.morning:l=dayPeriodEnum.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(l,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(l,{width:"wide",context:"formatting"})}},h:function(o,n,r){if(n==="ho"){var s=o.getUTCHours()%12;return s===0&&(s=12),r.ordinalNumber(s,{unit:"hour"})}return formatters$6.h(o,n)},H:function(o,n,r){return n==="Ho"?r.ordinalNumber(o.getUTCHours(),{unit:"hour"}):formatters$6.H(o,n)},K:function(o,n,r){var s=o.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(s,{unit:"hour"}):addLeadingZeros$2(s,n.length)},k:function(o,n,r){var s=o.getUTCHours();return s===0&&(s=24),n==="ko"?r.ordinalNumber(s,{unit:"hour"}):addLeadingZeros$2(s,n.length)},m:function(o,n,r){return n==="mo"?r.ordinalNumber(o.getUTCMinutes(),{unit:"minute"}):formatters$6.m(o,n)},s:function(o,n,r){return n==="so"?r.ordinalNumber(o.getUTCSeconds(),{unit:"second"}):formatters$6.s(o,n)},S:function(o,n){return formatters$6.S(o,n)},X:function(o,n,r,s){var l=s._originalDate||o,d=l.getTimezoneOffset();if(d===0)return"Z";switch(n){case"X":return formatTimezoneWithOptionalMinutes$1(d);case"XXXX":case"XX":return formatTimezone$1(d);case"XXXXX":case"XXX":default:return formatTimezone$1(d,":")}},x:function(o,n,r,s){var l=s._originalDate||o,d=l.getTimezoneOffset();switch(n){case"x":return formatTimezoneWithOptionalMinutes$1(d);case"xxxx":case"xx":return formatTimezone$1(d);case"xxxxx":case"xxx":default:return formatTimezone$1(d,":")}},O:function(o,n,r,s){var l=s._originalDate||o,d=l.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort$1(d,":");case"OOOO":default:return"GMT"+formatTimezone$1(d,":")}},z:function(o,n,r,s){var l=s._originalDate||o,d=l.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort$1(d,":");case"zzzz":default:return"GMT"+formatTimezone$1(d,":")}},t:function(o,n,r,s){var l=s._originalDate||o,d=Math.floor(l.getTime()/1e3);return addLeadingZeros$2(d,n.length)},T:function(o,n,r,s){var l=s._originalDate||o,d=l.getTime();return addLeadingZeros$2(d,n.length)}};function formatTimezoneShort$1(t,o){var n=t>0?"-":"+",r=Math.abs(t),s=Math.floor(r/60),l=r%60;if(l===0)return n+String(s);var d=o||"";return n+String(s)+d+addLeadingZeros$2(l,2)}function formatTimezoneWithOptionalMinutes$1(t,o){if(t%60===0){var n=t>0?"-":"+";return n+addLeadingZeros$2(Math.abs(t)/60,2)}return formatTimezone$1(t,o)}function formatTimezone$1(t,o){var n=o||"",r=t>0?"-":"+",s=Math.abs(t),l=addLeadingZeros$2(Math.floor(s/60),2),d=addLeadingZeros$2(s%60,2);return r+l+n+d}const formatters$4=formatters$3;var dateLongFormatter=function(o,n){switch(o){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},timeLongFormatter=function(o,n){switch(o){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},dateTimeLongFormatter=function(o,n){var r=o.match(/(P+)(p+)?/)||[],s=r[1],l=r[2];if(!l)return dateLongFormatter(o,n);var d;switch(s){case"P":d=n.dateTime({width:"short"});break;case"PP":d=n.dateTime({width:"medium"});break;case"PPP":d=n.dateTime({width:"long"});break;case"PPPP":default:d=n.dateTime({width:"full"});break}return d.replace("{{date}}",dateLongFormatter(s,n)).replace("{{time}}",timeLongFormatter(l,n))},longFormatters$1={p:timeLongFormatter,P:dateTimeLongFormatter};const longFormatters$2=longFormatters$1;var protectedDayOfYearTokens$1=["D","DD"],protectedWeekYearTokens$1=["YY","YYYY"];function isProtectedDayOfYearToken$1(t){return protectedDayOfYearTokens$1.indexOf(t)!==-1}function isProtectedWeekYearToken$1(t){return protectedWeekYearTokens$1.indexOf(t)!==-1}function throwProtectedError$1(t,o,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(o,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(o,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(o,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(o,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var formattingTokensRegExp$1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp$1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp$1=/^'([^]*?)'?$/,doubleQuoteRegExp$1=/''/g,unescapedLatinCharacterRegExp$1=/[a-zA-Z]/;function format$3(t,o,n){var r,s,l,d,m,_,g,v,y,w,B,k,N,S,x,C,I,D;requiredArgs$1(2,arguments);var R=String(o),O=getDefaultOptions$1(),Q=(r=(s=n==null?void 0:n.locale)!==null&&s!==void 0?s:O.locale)!==null&&r!==void 0?r:defaultLocale$1,Y=toInteger$2((l=(d=(m=(_=n==null?void 0:n.firstWeekContainsDate)!==null&&_!==void 0?_:n==null||(g=n.locale)===null||g===void 0||(v=g.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&m!==void 0?m:O.firstWeekContainsDate)!==null&&d!==void 0?d:(y=O.locale)===null||y===void 0||(w=y.options)===null||w===void 0?void 0:w.firstWeekContainsDate)!==null&&l!==void 0?l:1);if(!(Y>=1&&Y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=toInteger$2((B=(k=(N=(S=n==null?void 0:n.weekStartsOn)!==null&&S!==void 0?S:n==null||(x=n.locale)===null||x===void 0||(C=x.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&N!==void 0?N:O.weekStartsOn)!==null&&k!==void 0?k:(I=O.locale)===null||I===void 0||(D=I.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&B!==void 0?B:0);if(!(W>=0&&W<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Q.localize)throw new RangeError("locale must contain localize property");if(!Q.formatLong)throw new RangeError("locale must contain formatLong property");var K=toDate$2(t);if(!isValid$1(K))throw new RangeError("Invalid time value");var ee=getTimezoneOffsetInMilliseconds$2(K),q=subMilliseconds$1(K,ee),ae={firstWeekContainsDate:Y,weekStartsOn:W,locale:Q,_originalDate:K},ie=R.match(longFormattingTokensRegExp$1).map(function(oe){var J=oe[0];if(J==="p"||J==="P"){var j=longFormatters$2[J];return j(oe,Q.formatLong)}return oe}).join("").match(formattingTokensRegExp$1).map(function(oe){if(oe==="''")return"'";var J=oe[0];if(J==="'")return cleanEscapedString$1(oe);var j=formatters$4[J];if(j)return!(n!=null&&n.useAdditionalWeekYearTokens)&&isProtectedWeekYearToken$1(oe)&&throwProtectedError$1(oe,o,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&isProtectedDayOfYearToken$1(oe)&&throwProtectedError$1(oe,o,String(t)),j(q,oe,Q.localize,ae);if(J.match(unescapedLatinCharacterRegExp$1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+J+"`");return oe}).join("");return ie}function cleanEscapedString$1(t){var o=t.match(escapedStringRegExp$1);return o?o[1].replace(doubleQuoteRegExp$1,"'"):t}function assign$3(t,o){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n]);return t}function getDate(t){requiredArgs$1(1,arguments);var o=toDate$2(t),n=o.getDate();return n}function getDay(t){requiredArgs$1(1,arguments);var o=toDate$2(t),n=o.getDay();return n}function getDaysInMonth(t){requiredArgs$1(1,arguments);var o=toDate$2(t),n=o.getFullYear(),r=o.getMonth(),s=new Date(0);return s.setFullYear(n,r+1,0),s.setHours(0,0,0,0),s.getDate()}function getHours(t){requiredArgs$1(1,arguments);var o=toDate$2(t),n=o.getHours();return n}function getMinutes(t){requiredArgs$1(1,arguments);var o=toDate$2(t),n=o.getMinutes();return n}function getMonth(t){requiredArgs$1(1,arguments);var o=toDate$2(t),n=o.getMonth();return n}function getSeconds(t){requiredArgs$1(1,arguments);var o=toDate$2(t),n=o.getSeconds();return n}function getTime(t){requiredArgs$1(1,arguments);var o=toDate$2(t),n=o.getTime();return n}function getYear(t){return requiredArgs$1(1,arguments),toDate$2(t).getFullYear()}function _arrayLikeToArray$1(t,o){(o==null||o>t.length)&&(o=t.length);for(var n=0,r=new Array(o);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(g){throw g},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,d=!1,m;return{s:function(){n=n.call(t)},n:function(){var g=n.next();return l=g.done,g},e:function(g){d=!0,m=g},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(d)throw m}}}}function _assertThisInitialized(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _setPrototypeOf(t,o){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,s){return r.__proto__=s,r},_setPrototypeOf(t,o)}function _inherits(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),o&&_setPrototypeOf(t,o)}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf(t)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _possibleConstructorReturn(t,o){if(o&&(_typeof$3(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _createSuper(t){var o=_isNativeReflectConstruct();return function(){var r=_getPrototypeOf(t),s;if(o){var l=_getPrototypeOf(this).constructor;s=Reflect.construct(r,arguments,l)}else s=r.apply(this,arguments);return _possibleConstructorReturn(this,s)}}function _classCallCheck$1(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function _toPrimitive$1(t,o){if(_typeof$3(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,o||"default");if(_typeof$3(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(t)}function _toPropertyKey$1(t){var o=_toPrimitive$1(t,"string");return _typeof$3(o)==="symbol"?o:String(o)}function _defineProperties$1(t,o){for(var n=0;n0,r=n?o:1-o,s;if(r<=50)s=t||100;else{var l=r+50,d=Math.floor(l/100)*100,m=t>=l%100;s=t+d-(m?100:0)}return n?s:1-s}function isLeapYearIndex$1(t){return t%400===0||t%4===0&&t%100!==0}var YearParser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d0}},{key:"set",value:function(s,l,d){var m=s.getUTCFullYear();if(d.isTwoDigitYear){var _=normalizeTwoDigitYear(d.year,m);return s.setUTCFullYear(_,0,1),s.setUTCHours(0,0,0,0),s}var g=!("era"in l)||l.era===1?d.year:1-d.year;return s.setUTCFullYear(g,0,1),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1),LocalWeekYearParser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d0}},{key:"set",value:function(s,l,d,m){var _=getUTCWeekYear$1(s,m);if(d.isTwoDigitYear){var g=normalizeTwoDigitYear(d.year,_);return s.setUTCFullYear(g,0,m.firstWeekContainsDate),s.setUTCHours(0,0,0,0),startOfUTCWeek$1(s,m)}var v=!("era"in l)||l.era===1?d.year:1-d.year;return s.setUTCFullYear(v,0,m.firstWeekContainsDate),s.setUTCHours(0,0,0,0),startOfUTCWeek$1(s,m)}}]),n}(Parser$1),ISOWeekYearParser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d=1&&l<=4}},{key:"set",value:function(s,l,d){return s.setUTCMonth((d-1)*3,1),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1),StandAloneQuarterParser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d=1&&l<=4}},{key:"set",value:function(s,l,d){return s.setUTCMonth((d-1)*3,1),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1),MonthParser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d=0&&l<=11}},{key:"set",value:function(s,l,d){return s.setUTCMonth(d,1),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1),StandAloneMonthParser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d=0&&l<=11}},{key:"set",value:function(s,l,d){return s.setUTCMonth(d,1),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1);function setUTCWeek(t,o,n){requiredArgs$1(2,arguments);var r=toDate$2(t),s=toInteger$2(o),l=getUTCWeek$1(r,n)-s;return r.setUTCDate(r.getUTCDate()-l*7),r}var LocalWeekParser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d=1&&l<=53}},{key:"set",value:function(s,l,d,m){return startOfUTCWeek$1(setUTCWeek(s,d,m),m)}}]),n}(Parser$1);function setUTCISOWeek(t,o){requiredArgs$1(2,arguments);var n=toDate$2(t),r=toInteger$2(o),s=getUTCISOWeek$1(n)-r;return n.setUTCDate(n.getUTCDate()-s*7),n}var ISOWeekParser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d=1&&l<=53}},{key:"set",value:function(s,l,d){return startOfUTCISOWeek$1(setUTCISOWeek(s,d))}}]),n}(Parser$1),DAYS_IN_MONTH$1=[31,28,31,30,31,30,31,31,30,31,30,31],DAYS_IN_MONTH_LEAP_YEAR$1=[31,29,31,30,31,30,31,31,30,31,30,31],DateParser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d=1&&l<=DAYS_IN_MONTH_LEAP_YEAR$1[_]:l>=1&&l<=DAYS_IN_MONTH$1[_]}},{key:"set",value:function(s,l,d){return s.setUTCDate(d),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1),DayOfYearParser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d=1&&l<=366:l>=1&&l<=365}},{key:"set",value:function(s,l,d){return s.setUTCMonth(0,d),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1);function setUTCDay(t,o,n){var r,s,l,d,m,_,g,v;requiredArgs$1(2,arguments);var y=getDefaultOptions$1(),w=toInteger$2((r=(s=(l=(d=n==null?void 0:n.weekStartsOn)!==null&&d!==void 0?d:n==null||(m=n.locale)===null||m===void 0||(_=m.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&l!==void 0?l:y.weekStartsOn)!==null&&s!==void 0?s:(g=y.locale)===null||g===void 0||(v=g.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&r!==void 0?r:0);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var B=toDate$2(t),k=toInteger$2(o),N=B.getUTCDay(),S=k%7,x=(S+7)%7,C=(x=0&&l<=6}},{key:"set",value:function(s,l,d,m){return s=setUTCDay(s,d,m),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1),LocalDayParser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d=0&&l<=6}},{key:"set",value:function(s,l,d,m){return s=setUTCDay(s,d,m),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1),StandAloneLocalDayParser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d=0&&l<=6}},{key:"set",value:function(s,l,d,m){return s=setUTCDay(s,d,m),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1);function setUTCISODay(t,o){requiredArgs$1(2,arguments);var n=toInteger$2(o);n%7===0&&(n=n-7);var r=1,s=toDate$2(t),l=s.getUTCDay(),d=n%7,m=(d+7)%7,_=(m=1&&l<=7}},{key:"set",value:function(s,l,d){return s=setUTCISODay(s,d),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1),AMPMParser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d=1&&l<=12}},{key:"set",value:function(s,l,d){var m=s.getUTCHours()>=12;return m&&d<12?s.setUTCHours(d+12,0,0,0):!m&&d===12?s.setUTCHours(0,0,0,0):s.setUTCHours(d,0,0,0),s}}]),n}(Parser$1),Hour0to23Parser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d=0&&l<=23}},{key:"set",value:function(s,l,d){return s.setUTCHours(d,0,0,0),s}}]),n}(Parser$1),Hour0To11Parser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d=0&&l<=11}},{key:"set",value:function(s,l,d){var m=s.getUTCHours()>=12;return m&&d<12?s.setUTCHours(d+12,0,0,0):s.setUTCHours(d,0,0,0),s}}]),n}(Parser$1),Hour1To24Parser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d=1&&l<=24}},{key:"set",value:function(s,l,d){var m=d<=24?d%24:d;return s.setUTCHours(m,0,0,0),s}}]),n}(Parser$1),MinuteParser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d=0&&l<=59}},{key:"set",value:function(s,l,d){return s.setUTCMinutes(d,0,0),s}}]),n}(Parser$1),SecondParser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d=0&&l<=59}},{key:"set",value:function(s,l,d){return s.setUTCSeconds(d,0),s}}]),n}(Parser$1),FractionOfSecondParser=function(t){_inherits(n,t);var o=_createSuper(n);function n(){var r;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d=1&&K<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ee=toInteger$2((k=(N=(S=(x=r==null?void 0:r.weekStartsOn)!==null&&x!==void 0?x:r==null||(C=r.locale)===null||C===void 0||(I=C.options)===null||I===void 0?void 0:I.weekStartsOn)!==null&&S!==void 0?S:Y.weekStartsOn)!==null&&N!==void 0?N:(D=Y.locale)===null||D===void 0||(R=D.options)===null||R===void 0?void 0:R.weekStartsOn)!==null&&k!==void 0?k:0);if(!(ee>=0&&ee<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(Q==="")return O===""?toDate$2(n):new Date(NaN);var q={firstWeekContainsDate:K,weekStartsOn:ee,locale:W},ae=[new DateToSystemTimezoneSetter],ie=Q.match(longFormattingTokensRegExp).map(function(Re){var ke=Re[0];if(ke in longFormatters$2){var xe=longFormatters$2[ke];return xe(Re,W.formatLong)}return Re}).join("").match(formattingTokensRegExp),oe=[],J=_createForOfIteratorHelper(ie),j;try{var re=function(){var ke=j.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&isProtectedWeekYearToken$1(ke)&&throwProtectedError$1(ke,Q,t),!(r!=null&&r.useAdditionalDayOfYearTokens)&&isProtectedDayOfYearToken$1(ke)&&throwProtectedError$1(ke,Q,t);var xe=ke[0],tt=parsers[xe];if(tt){var me=tt.incompatibleTokens;if(Array.isArray(me)){var be=oe.find(function(qe){return me.includes(qe.token)||qe.token===xe});if(be)throw new RangeError("The format string mustn't contain `".concat(be.fullToken,"` and `").concat(ke,"` at the same time"))}else if(tt.incompatibleTokens==="*"&&oe.length>0)throw new RangeError("The format string mustn't contain `".concat(ke,"` and any other token at the same time"));oe.push({token:xe,fullToken:ke});var Ne=tt.run(O,ke,W.match,q);if(!Ne)return{v:new Date(NaN)};ae.push(Ne.setter),O=Ne.rest}else{if(xe.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+xe+"`");if(ke==="''"?ke="'":xe==="'"&&(ke=cleanEscapedString(ke)),O.indexOf(ke)===0)O=O.slice(ke.length);else return{v:new Date(NaN)}}};for(J.s();!(j=J.n()).done;){var ce=re();if(_typeof$3(ce)==="object")return ce.v}}catch(Re){J.e(Re)}finally{J.f()}if(O.length>0&¬WhitespaceRegExp.test(O))return new Date(NaN);var le=ae.map(function(Re){return Re.priority}).sort(function(Re,ke){return ke-Re}).filter(function(Re,ke,xe){return xe.indexOf(Re)===ke}).map(function(Re){return ae.filter(function(ke){return ke.priority===Re}).sort(function(ke,xe){return xe.subPriority-ke.subPriority})}).map(function(Re){return Re[0]}),se=toDate$2(n);if(isNaN(se.getTime()))return new Date(NaN);var te=subMilliseconds$1(se,getTimezoneOffsetInMilliseconds$2(se)),ne={},de=_createForOfIteratorHelper(le),fe;try{for(de.s();!(fe=de.n()).done;){var ve=fe.value;if(!ve.validate(te,q))return new Date(NaN);var ze=ve.set(te,ne,q);Array.isArray(ze)?(te=ze[0],assign$3(ne,ze[1])):te=ze}}catch(Re){de.e(Re)}finally{de.f()}return te}function cleanEscapedString(t){return t.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,"'")}function startOfHour(t){requiredArgs$1(1,arguments);var o=toDate$2(t);return o.setMinutes(0,0,0),o}function isSameMonth(t,o){requiredArgs$1(2,arguments);var n=toDate$2(t),r=toDate$2(o);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function isSameQuarter(t,o){requiredArgs$1(2,arguments);var n=startOfQuarter(t),r=startOfQuarter(o);return n.getTime()===r.getTime()}function startOfSecond(t){requiredArgs$1(1,arguments);var o=toDate$2(t);return o.setMilliseconds(0),o}function isSameYear(t,o){requiredArgs$1(2,arguments);var n=toDate$2(t),r=toDate$2(o);return n.getFullYear()===r.getFullYear()}function setMonth(t,o){requiredArgs$1(2,arguments);var n=toDate$2(t),r=toInteger$2(o),s=n.getFullYear(),l=n.getDate(),d=new Date(0);d.setFullYear(s,r,15),d.setHours(0,0,0,0);var m=getDaysInMonth(d);return n.setMonth(r,Math.min(l,m)),n}function set(t,o){if(requiredArgs$1(2,arguments),_typeof$3(o)!=="object"||o===null)throw new RangeError("values parameter must be an object");var n=toDate$2(t);return isNaN(n.getTime())?new Date(NaN):(o.year!=null&&n.setFullYear(o.year),o.month!=null&&(n=setMonth(n,o.month)),o.date!=null&&n.setDate(toInteger$2(o.date)),o.hours!=null&&n.setHours(toInteger$2(o.hours)),o.minutes!=null&&n.setMinutes(toInteger$2(o.minutes)),o.seconds!=null&&n.setSeconds(toInteger$2(o.seconds)),o.milliseconds!=null&&n.setMilliseconds(toInteger$2(o.milliseconds)),n)}function setHours(t,o){requiredArgs$1(2,arguments);var n=toDate$2(t),r=toInteger$2(o);return n.setHours(r),n}function setMinutes(t,o){requiredArgs$1(2,arguments);var n=toDate$2(t),r=toInteger$2(o);return n.setMinutes(r),n}function setQuarter(t,o){requiredArgs$1(2,arguments);var n=toDate$2(t),r=toInteger$2(o),s=Math.floor(n.getMonth()/3)+1,l=r-s;return setMonth(n,n.getMonth()+l*3)}function setSeconds(t,o){requiredArgs$1(2,arguments);var n=toDate$2(t),r=toInteger$2(o);return n.setSeconds(r),n}function setYear(t,o){requiredArgs$1(2,arguments);var n=toDate$2(t),r=toInteger$2(o);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function useLocale(t){const{mergedLocaleRef:o,mergedDateLocaleRef:n}=inject(configProviderInjectionKey,null)||{},r=computed(()=>{var l,d;return(d=(l=o==null?void 0:o.value)===null||l===void 0?void 0:l[t])!==null&&d!==void 0?d:enUS$2[t]});return{dateLocaleRef:computed(()=>{var l;return(l=n==null?void 0:n.value)!==null&&l!==void 0?l:dateEnUS}),localeRef:r}}function useStyle(t,o,n){if(!o)return;const r=useSsrAdapter(),s=inject(configProviderInjectionKey,null),l=()=>{const d=n.value;o.mount({id:d===void 0?t:d+t,head:!0,anchorMetaName:cssrAnchorMetaName,props:{bPrefix:d?`.${d}-`:void 0},ssr:r}),s!=null&&s.preflightStyleDisabled||globalStyle.mount({id:"n-global",head:!0,anchorMetaName:cssrAnchorMetaName,ssr:r})};r?l():onBeforeMount(l)}function useThemeClass(t,o,n,r){var s;n||throwError("useThemeClass","cssVarsRef is not passed");const l=(s=inject(configProviderInjectionKey,null))===null||s===void 0?void 0:s.mergedThemeHashRef,d=ref(""),m=useSsrAdapter();let _;const g=`__${t}`,v=()=>{let y=g;const w=o?o.value:void 0,B=l==null?void 0:l.value;B&&(y+="-"+B),w&&(y+="-"+w);const{themeOverrides:k,builtinThemeOverrides:N}=r;k&&(y+="-"+murmur2(JSON.stringify(k))),N&&(y+="-"+murmur2(JSON.stringify(N))),d.value=y,_=()=>{const S=n.value;let x="";for(const C in S)x+=`${C}: ${S[C]};`;c$1(`.${y}`,x).mount({id:y,ssr:m}),_=void 0}};return watchEffect(()=>{v()}),{themeClass:d,onRender:()=>{_==null||_()}}}function useRtl(t,o,n){if(!o)return;const r=useSsrAdapter(),s=computed(()=>{const{value:d}=o;if(!d)return;const m=d[t];if(m)return m}),l=()=>{watchEffect(()=>{const{value:d}=n,m=`${d}${t}Rtl`;if(exists(m,r))return;const{value:_}=s;_&&_.style.mount({id:m,head:!0,anchorMetaName:cssrAnchorMetaName,props:{bPrefix:d?`.${d}-`:void 0},ssr:r})})};return r?l():onBeforeMount(l),s}const AddIcon=defineComponent({name:"Add",render(){return h("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),ArrowDownIcon=defineComponent({name:"ArrowDown",render(){return h("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h("g",{"fill-rule":"nonzero"},h("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}});function replaceable(t,o){return defineComponent({name:upperFirst$1(t),setup(){var n;const r=(n=inject(configProviderInjectionKey,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var s;const l=(s=r==null?void 0:r.value)===null||s===void 0?void 0:s[t];return l?l():o}}})}const BackwardIcon=defineComponent({name:"Backward",render(){return h("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),DateIcon=replaceable("date",h("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h("g",{"fill-rule":"nonzero"},h("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),FinishedIcon=defineComponent({name:"Checkmark",render(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},h("g",{fill:"none"},h("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),ChevronRightIcon=defineComponent({name:"ChevronRight",render(){return h("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),ErrorIcon$1=replaceable("close",h("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),EyeIcon=defineComponent({name:"Eye",render(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h("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"}),h("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),EyeOffIcon=defineComponent({name:"EyeOff",render(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h("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"}),h("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"}),h("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"}),h("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"}),h("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"}))}}),EmptyIcon=defineComponent({name:"Empty",render(){return h("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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"}),h("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"}))}}),ErrorIcon=replaceable("error",h("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h("g",{"fill-rule":"nonzero"},h("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),FastBackwardIcon=defineComponent({name:"FastBackward",render(){return h("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),FastForwardIcon=defineComponent({name:"FastForward",render(){return h("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),FilterIcon=defineComponent({name:"Filter",render(){return h("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h("g",{"fill-rule":"nonzero"},h("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),ForwardIcon=defineComponent({name:"Forward",render(){return h("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),InfoIcon=replaceable("info",h("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h("g",{"fill-rule":"nonzero"},h("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),MoreIcon=defineComponent({name:"More",render(){return h("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),RemoveIcon=defineComponent({name:"Remove",render(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:`
+ fill: none;
+ stroke: currentColor;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+ stroke-width: 32px;
+ `}))}}),SuccessIcon=replaceable("success",h("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h("g",{"fill-rule":"nonzero"},h("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),TimeIcon=replaceable("time",h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:`
+ fill: none;
+ stroke: currentColor;
+ stroke-miterlimit: 10;
+ stroke-width: 32px;
+ `}),h("polyline",{points:"256 128 256 272 352 272",style:`
+ fill: none;
+ stroke: currentColor;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+ stroke-width: 32px;
+ `}))),WarningIcon=replaceable("warning",h("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h("g",{"fill-rule":"nonzero"},h("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),ChevronDownIcon=defineComponent({name:"ChevronDown",render(){return h("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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"}))}}),ClearIcon=replaceable("clear",h("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("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"}))))),ToIcon=replaceable("to",h("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))),NIconSwitchTransition=defineComponent({name:"BaseIconSwitchTransition",setup(t,{slots:o}){const n=isMounted();return()=>h(Transition,{name:"icon-switch-transition",appear:n.value},o)}}),NFadeInExpandTransition=defineComponent({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(t,{slots:o}){function n(m){t.width?m.style.maxWidth=`${m.offsetWidth}px`:m.style.maxHeight=`${m.offsetHeight}px`,m.offsetWidth}function r(m){t.width?m.style.maxWidth="0":m.style.maxHeight="0",m.offsetWidth;const{onLeave:_}=t;_&&_()}function s(m){t.width?m.style.maxWidth="":m.style.maxHeight="";const{onAfterLeave:_}=t;_&&_()}function l(m){if(m.style.transition="none",t.width){const _=m.offsetWidth;m.style.maxWidth="0",m.offsetWidth,m.style.transition="",m.style.maxWidth=`${_}px`}else if(t.reverse)m.style.maxHeight=`${m.offsetHeight}px`,m.offsetHeight,m.style.transition="",m.style.maxHeight="0";else{const _=m.offsetHeight;m.style.maxHeight="0",m.offsetWidth,m.style.transition="",m.style.maxHeight=`${_}px`}m.offsetWidth}function d(m){var _;t.width?m.style.maxWidth="":t.reverse||(m.style.maxHeight=""),(_=t.onAfterEnter)===null||_===void 0||_.call(t)}return()=>{const{group:m,width:_,appear:g,mode:v}=t,y=m?TransitionGroup:Transition,w={name:_?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:g,onEnter:l,onAfterEnter:d,onBeforeLeave:n,onLeave:r,onAfterLeave:s};return m||(w.mode=v),h(y,w,o)}}}),style$D=cB("base-icon",`
+ height: 1em;
+ width: 1em;
+ line-height: 1em;
+ text-align: center;
+ display: inline-block;
+ position: relative;
+ fill: currentColor;
+ transform: translateZ(0);
+`,[c$1("svg",`
+ height: 1em;
+ width: 1em;
+ `)]),NBaseIcon=defineComponent({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(t){useStyle("-base-icon",style$D,toRef(t,"clsPrefix"))},render(){return h("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)}}),style$C=cB("base-close",`
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ cursor: pointer;
+ background-color: transparent;
+ color: var(--n-close-icon-color);
+ border-radius: var(--n-close-border-radius);
+ height: var(--n-close-size);
+ width: var(--n-close-size);
+ font-size: var(--n-close-icon-size);
+ outline: none;
+ border: none;
+ position: relative;
+ padding: 0;
+`,[cM("absolute",`
+ height: var(--n-close-icon-size);
+ width: var(--n-close-icon-size);
+ `),c$1("&::before",`
+ content: "";
+ position: absolute;
+ width: var(--n-close-size);
+ height: var(--n-close-size);
+ left: 50%;
+ top: 50%;
+ transform: translateY(-50%) translateX(-50%);
+ transition: inherit;
+ border-radius: inherit;
+ `),cNotM("disabled",[c$1("&:hover",`
+ color: var(--n-close-icon-color-hover);
+ `),c$1("&:hover::before",`
+ background-color: var(--n-close-color-hover);
+ `),c$1("&:focus::before",`
+ background-color: var(--n-close-color-hover);
+ `),c$1("&:active",`
+ color: var(--n-close-icon-color-pressed);
+ `),c$1("&:active::before",`
+ background-color: var(--n-close-color-pressed);
+ `)]),cM("disabled",`
+ cursor: not-allowed;
+ color: var(--n-close-icon-color-disabled);
+ background-color: transparent;
+ `),cM("round",[c$1("&::before",`
+ border-radius: 50%;
+ `)])]),NBaseClose=defineComponent({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(t){return useStyle("-base-close",style$C,toRef(t,"clsPrefix")),()=>{const{clsPrefix:o,disabled:n,absolute:r,round:s,isButtonTag:l}=t;return h(l?"button":"div",{type:l?"button":void 0,tabindex:n||!t.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:l?void 0:"button",disabled:n,class:[`${o}-base-close`,r&&`${o}-base-close--absolute`,n&&`${o}-base-close--disabled`,s&&`${o}-base-close--round`],onMousedown:m=>{t.focusable||m.preventDefault()},onClick:t.onClick},h(NBaseIcon,{clsPrefix:o},{default:()=>h(ErrorIcon$1,null)}))}}}),FocusDetector=defineComponent({props:{onFocus:Function,onBlur:Function},setup(t){return()=>h("div",{style:"width: 0; height: 0",tabindex:0,onFocus:t.onFocus,onBlur:t.onBlur})}}),{cubicBezierEaseInOut:cubicBezierEaseInOut$3}=commonVariables$c;function iconSwitchTransition({originalTransform:t="",left:o=0,top:n=0,transition:r=`all .3s ${cubicBezierEaseInOut$3} !important`}={}){return[c$1("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:t+" scale(0.75)",left:o,top:n,opacity:0}),c$1("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${t}`,left:o,top:n,opacity:1}),c$1("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:o,top:n,transition:r})]}const style$B=c$1([c$1("@keyframes loading-container-rotate",`
+ to {
+ -webkit-transform: rotate(360deg);
+ transform: rotate(360deg);
+ }
+ `),c$1("@keyframes loading-layer-rotate",`
+ 12.5% {
+ -webkit-transform: rotate(135deg);
+ transform: rotate(135deg);
+ }
+ 25% {
+ -webkit-transform: rotate(270deg);
+ transform: rotate(270deg);
+ }
+ 37.5% {
+ -webkit-transform: rotate(405deg);
+ transform: rotate(405deg);
+ }
+ 50% {
+ -webkit-transform: rotate(540deg);
+ transform: rotate(540deg);
+ }
+ 62.5% {
+ -webkit-transform: rotate(675deg);
+ transform: rotate(675deg);
+ }
+ 75% {
+ -webkit-transform: rotate(810deg);
+ transform: rotate(810deg);
+ }
+ 87.5% {
+ -webkit-transform: rotate(945deg);
+ transform: rotate(945deg);
+ }
+ 100% {
+ -webkit-transform: rotate(1080deg);
+ transform: rotate(1080deg);
+ }
+ `),c$1("@keyframes loading-left-spin",`
+ from {
+ -webkit-transform: rotate(265deg);
+ transform: rotate(265deg);
+ }
+ 50% {
+ -webkit-transform: rotate(130deg);
+ transform: rotate(130deg);
+ }
+ to {
+ -webkit-transform: rotate(265deg);
+ transform: rotate(265deg);
+ }
+ `),c$1("@keyframes loading-right-spin",`
+ from {
+ -webkit-transform: rotate(-265deg);
+ transform: rotate(-265deg);
+ }
+ 50% {
+ -webkit-transform: rotate(-130deg);
+ transform: rotate(-130deg);
+ }
+ to {
+ -webkit-transform: rotate(-265deg);
+ transform: rotate(-265deg);
+ }
+ `),cB("base-loading",`
+ position: relative;
+ line-height: 0;
+ width: 1em;
+ height: 1em;
+ `,[cE("transition-wrapper",`
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ `,[iconSwitchTransition()]),cE("container",`
+ display: inline-flex;
+ position: relative;
+ direction: ltr;
+ line-height: 0;
+ animation: loading-container-rotate 1568.2352941176ms linear infinite;
+ font-size: 0;
+ letter-spacing: 0;
+ white-space: nowrap;
+ opacity: 1;
+ width: 100%;
+ height: 100%;
+ `,[cE("svg",`
+ stroke: var(--n-text-color);
+ fill: transparent;
+ position: absolute;
+ height: 100%;
+ overflow: hidden;
+ `),cE("container-layer",`
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
+ `,[cE("container-layer-left",`
+ display: inline-flex;
+ position: relative;
+ width: 50%;
+ height: 100%;
+ overflow: hidden;
+ `,[cE("svg",`
+ animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
+ width: 200%;
+ `)]),cE("container-layer-patch",`
+ position: absolute;
+ top: 0;
+ left: 47.5%;
+ box-sizing: border-box;
+ width: 5%;
+ height: 100%;
+ overflow: hidden;
+ `,[cE("svg",`
+ left: -900%;
+ width: 2000%;
+ transform: rotate(180deg);
+ `)]),cE("container-layer-right",`
+ display: inline-flex;
+ position: relative;
+ width: 50%;
+ height: 100%;
+ overflow: hidden;
+ `,[cE("svg",`
+ animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
+ left: -100%;
+ width: 200%;
+ `)])])]),cE("placeholder",`
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translateX(-50%) translateY(-50%);
+ `,[iconSwitchTransition({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),exposedLoadingProps={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},NBaseLoading=defineComponent({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}},exposedLoadingProps),setup(t){useStyle("-base-loading",style$B,toRef(t,"clsPrefix"))},render(){const{clsPrefix:t,radius:o,strokeWidth:n,stroke:r,scale:s}=this,l=o/s;return h("div",{class:`${t}-base-loading`,role:"img","aria-label":"loading"},h(NIconSwitchTransition,null,{default:()=>this.show?h("div",{key:"icon",class:`${t}-base-loading__transition-wrapper`},h("div",{class:`${t}-base-loading__container`},h("div",{class:`${t}-base-loading__container-layer`},h("div",{class:`${t}-base-loading__container-layer-left`},h("svg",{class:`${t}-base-loading__svg`,viewBox:`0 0 ${2*l} ${2*l}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},h("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:l,cy:l,r:o-n/2,"stroke-dasharray":4.91*o,"stroke-dashoffset":2.46*o}))),h("div",{class:`${t}-base-loading__container-layer-patch`},h("svg",{class:`${t}-base-loading__svg`,viewBox:`0 0 ${2*l} ${2*l}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},h("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:l,cy:l,r:o-n/2,"stroke-dasharray":4.91*o,"stroke-dashoffset":2.46*o}))),h("div",{class:`${t}-base-loading__container-layer-right`},h("svg",{class:`${t}-base-loading__svg`,viewBox:`0 0 ${2*l} ${2*l}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},h("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:l,cy:l,r:o-n/2,"stroke-dasharray":4.91*o,"stroke-dashoffset":2.46*o})))))):h("div",{key:"placeholder",class:`${t}-base-loading__placeholder`},this.$slots)}))}});function toArray(t){return Array.isArray(t)?t:[t]}const TRAVERSE_COMMAND={STOP:"STOP"};function traverseWithCb(t,o){const n=o(t);t.children!==void 0&&n!==TRAVERSE_COMMAND.STOP&&t.children.forEach(r=>traverseWithCb(r,o))}function getNonLeafKeys(t,o={}){const{preserveGroup:n=!1}=o,r=[],s=n?d=>{d.isLeaf||(r.push(d.key),l(d.children))}:d=>{d.isLeaf||(d.isGroup||r.push(d.key),l(d.children))};function l(d){d.forEach(s)}return l(t),r}function isLeaf(t,o){const{isLeaf:n}=t;return n!==void 0?n:!o(t)}function defaultGetChildren(t){return t.children}function defaultGetKey(t){return t.key}function isIgnored(){return!1}function isShallowLoaded(t,o){const{isLeaf:n}=t;return!(n===!1&&!Array.isArray(o(t)))}function isDisabled(t){return t.disabled===!0}function isExpilicitlyNotLoaded(t,o){return t.isLeaf===!1&&!Array.isArray(o(t))}function unwrapCheckedKeys(t){var o;return t==null?[]:Array.isArray(t)?t:(o=t.checkedKeys)!==null&&o!==void 0?o:[]}function unwrapIndeterminateKeys(t){var o;return t==null||Array.isArray(t)?[]:(o=t.indeterminateKeys)!==null&&o!==void 0?o:[]}function merge(t,o){const n=new Set(t);return o.forEach(r=>{n.has(r)||n.add(r)}),Array.from(n)}function minus(t,o){const n=new Set(t);return o.forEach(r=>{n.has(r)&&n.delete(r)}),Array.from(n)}function isGroup(t){return(t==null?void 0:t.type)==="group"}function createIndexGetter(t){const o=new Map;return t.forEach((n,r)=>{o.set(n.key,r)}),n=>{var r;return(r=o.get(n))!==null&&r!==void 0?r:null}}class SubtreeNotLoadedError extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function getExtendedCheckedKeySetAfterCheck(t,o,n,r){return getExtendedCheckedKeySet(o.concat(t),n,r,!1)}function getAvailableAscendantNodeSet(t,o){const n=new Set;return t.forEach(r=>{const s=o.treeNodeMap.get(r);if(s!==void 0){let l=s.parent;for(;l!==null&&!(l.disabled||n.has(l.key));)n.add(l.key),l=l.parent}}),n}function getExtendedCheckedKeySetAfterUncheck(t,o,n,r){const s=getExtendedCheckedKeySet(o,n,r,!1),l=getExtendedCheckedKeySet(t,n,r,!0),d=getAvailableAscendantNodeSet(t,n),m=[];return s.forEach(_=>{(l.has(_)||d.has(_))&&m.push(_)}),m.forEach(_=>s.delete(_)),s}function getCheckedKeys(t,o){const{checkedKeys:n,keysToCheck:r,keysToUncheck:s,indeterminateKeys:l,cascade:d,leafOnly:m,checkStrategy:_,allowNotLoaded:g}=t;if(!d)return r!==void 0?{checkedKeys:merge(n,r),indeterminateKeys:Array.from(l)}:s!==void 0?{checkedKeys:minus(n,s),indeterminateKeys:Array.from(l)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(l)};const{levelTreeNodeMap:v}=o;let y;s!==void 0?y=getExtendedCheckedKeySetAfterUncheck(s,n,o,g):r!==void 0?y=getExtendedCheckedKeySetAfterCheck(r,n,o,g):y=getExtendedCheckedKeySet(n,o,g,!1);const w=_==="parent",B=_==="child"||m,k=y,N=new Set,S=Math.max.apply(null,Array.from(v.keys()));for(let x=S;x>=0;x-=1){const C=x===0,I=v.get(x);for(const D of I){if(D.isLeaf)continue;const{key:R,shallowLoaded:O}=D;if(B&&O&&D.children.forEach(K=>{!K.disabled&&!K.isLeaf&&K.shallowLoaded&&k.has(K.key)&&k.delete(K.key)}),D.disabled||!O)continue;let Q=!0,Y=!1,W=!0;for(const K of D.children){const ee=K.key;if(!K.disabled){if(W&&(W=!1),k.has(ee))Y=!0;else if(N.has(ee)){Y=!0,Q=!1;break}else if(Q=!1,Y)break}}Q&&!W?(w&&D.children.forEach(K=>{!K.disabled&&k.has(K.key)&&k.delete(K.key)}),k.add(R)):Y&&N.add(R),C&&B&&k.has(R)&&k.delete(R)}}return{checkedKeys:Array.from(k),indeterminateKeys:Array.from(N)}}function getExtendedCheckedKeySet(t,o,n,r){const{treeNodeMap:s,getChildren:l}=o,d=new Set,m=new Set(t);return t.forEach(_=>{const g=s.get(_);g!==void 0&&traverseWithCb(g,v=>{if(v.disabled)return TRAVERSE_COMMAND.STOP;const{key:y}=v;if(!d.has(y)&&(d.add(y),m.add(y),isExpilicitlyNotLoaded(v.rawNode,l))){if(r)return TRAVERSE_COMMAND.STOP;if(!n)throw new SubtreeNotLoadedError}})}),m}function getPath(t,{includeGroup:o=!1,includeSelf:n=!0},r){var s;const l=r.treeNodeMap;let d=t==null?null:(s=l.get(t))!==null&&s!==void 0?s:null;const m={keyPath:[],treeNodePath:[],treeNode:d};if(d!=null&&d.ignored)return m.treeNode=null,m;for(;d;)!d.ignored&&(o||!d.isGroup)&&m.treeNodePath.push(d),d=d.parent;return m.treeNodePath.reverse(),n||m.treeNodePath.pop(),m.keyPath=m.treeNodePath.map(_=>_.key),m}function getFirstAvailableNode(t){if(t.length===0)return null;const o=t[0];return o.isGroup||o.ignored||o.disabled?o.getNext():o}function rawGetNext(t,o){const n=t.siblings,r=n.length,{index:s}=t;return o?n[(s+1)%r]:s===n.length-1?null:n[s+1]}function move(t,o,{loop:n=!1,includeDisabled:r=!1}={}){const s=o==="prev"?rawGetPrev:rawGetNext,l={reverse:o==="prev"};let d=!1,m=null;function _(g){if(g!==null){if(g===t){if(!d)d=!0;else if(!t.disabled&&!t.isGroup){m=t;return}}else if((!g.disabled||r)&&!g.ignored&&!g.isGroup){m=g;return}if(g.isGroup){const v=getChild$1(g,l);v!==null?m=v:_(s(g,n))}else{const v=s(g,!1);if(v!==null)_(v);else{const y=rawGetParent(g);y!=null&&y.isGroup?_(s(y,n)):n&&_(s(g,!0))}}}}return _(t),m}function rawGetPrev(t,o){const n=t.siblings,r=n.length,{index:s}=t;return o?n[(s-1+r)%r]:s===0?null:n[s-1]}function rawGetParent(t){return t.parent}function getChild$1(t,o={}){const{reverse:n=!1}=o,{children:r}=t;if(r){const{length:s}=r,l=n?s-1:0,d=n?-1:s,m=n?-1:1;for(let _=l;_!==d;_+=m){const g=r[_];if(!g.disabled&&!g.ignored)if(g.isGroup){const v=getChild$1(g,o);if(v!==null)return v}else return g}}return null}const moveMethods={getChild(){return this.ignored?null:getChild$1(this)},getParent(){const{parent:t}=this;return t!=null&&t.isGroup?t.getParent():t},getNext(t={}){return move(this,"next",t)},getPrev(t={}){return move(this,"prev",t)}};function flatten$1(t,o){const n=o?new Set(o):void 0,r=[];function s(l){l.forEach(d=>{r.push(d),!(d.isLeaf||!d.children||d.ignored)&&(d.isGroup||n===void 0||n.has(d.key))&&s(d.children)})}return s(t),r}function contains$1(t,o){const n=t.key;for(;o;){if(o.key===n)return!0;o=o.parent}return!1}function createTreeNodes(t,o,n,r,s,l=null,d=0){const m=[];return t.forEach((_,g)=>{var v;const y=Object.create(r);if(y.rawNode=_,y.siblings=m,y.level=d,y.index=g,y.isFirstChild=g===0,y.isLastChild=g+1===t.length,y.parent=l,!y.ignored){const w=s(_);Array.isArray(w)&&(y.children=createTreeNodes(w,o,n,r,s,y,d+1))}m.push(y),o.set(y.key,y),n.has(d)||n.set(d,[]),(v=n.get(d))===null||v===void 0||v.push(y)}),m}function createTreeMate(t,o={}){var n;const r=new Map,s=new Map,{getDisabled:l=isDisabled,getIgnored:d=isIgnored,getIsGroup:m=isGroup,getKey:_=defaultGetKey}=o,g=(n=o.getChildren)!==null&&n!==void 0?n:defaultGetChildren,v=o.ignoreEmptyChildren?D=>{const R=g(D);return Array.isArray(R)?R.length?R:null:R}:g,y=Object.assign({get key(){return _(this.rawNode)},get disabled(){return l(this.rawNode)},get isGroup(){return m(this.rawNode)},get isLeaf(){return isLeaf(this.rawNode,v)},get shallowLoaded(){return isShallowLoaded(this.rawNode,v)},get ignored(){return d(this.rawNode)},contains(D){return contains$1(this,D)}},moveMethods),w=createTreeNodes(t,r,s,y,v);function B(D){if(D==null)return null;const R=r.get(D);return R&&!R.isGroup&&!R.ignored?R:null}function k(D){if(D==null)return null;const R=r.get(D);return R&&!R.ignored?R:null}function N(D,R){const O=k(D);return O?O.getPrev(R):null}function S(D,R){const O=k(D);return O?O.getNext(R):null}function x(D){const R=k(D);return R?R.getParent():null}function C(D){const R=k(D);return R?R.getChild():null}const I={treeNodes:w,treeNodeMap:r,levelTreeNodeMap:s,maxLevel:Math.max(...s.keys()),getChildren:v,getFlattenedNodes(D){return flatten$1(w,D)},getNode:B,getPrev:N,getNext:S,getParent:x,getChild:C,getFirstAvailableNode(){return getFirstAvailableNode(w)},getPath(D,R={}){return getPath(D,R,I)},getCheckedKeys(D,R={}){const{cascade:O=!0,leafOnly:Q=!1,checkStrategy:Y="all",allowNotLoaded:W=!1}=R;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(D),indeterminateKeys:unwrapIndeterminateKeys(D),cascade:O,leafOnly:Q,checkStrategy:Y,allowNotLoaded:W},I)},check(D,R,O={}){const{cascade:Q=!0,leafOnly:Y=!1,checkStrategy:W="all",allowNotLoaded:K=!1}=O;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(R),indeterminateKeys:unwrapIndeterminateKeys(R),keysToCheck:D==null?[]:toArray(D),cascade:Q,leafOnly:Y,checkStrategy:W,allowNotLoaded:K},I)},uncheck(D,R,O={}){const{cascade:Q=!0,leafOnly:Y=!1,checkStrategy:W="all",allowNotLoaded:K=!1}=O;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(R),indeterminateKeys:unwrapIndeterminateKeys(R),keysToUncheck:D==null?[]:toArray(D),cascade:Q,leafOnly:Y,checkStrategy:W,allowNotLoaded:K},I)},getNonLeafKeys(D={}){return getNonLeafKeys(w,D)}};return I}const base$1={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"},baseBackgroundRgb=rgba(base$1.neutralBase),baseInvertBackgroundRgb=rgba(base$1.neutralInvertBase),overlayPrefix="rgba("+baseInvertBackgroundRgb.slice(0,3).join(", ")+", ";function overlay(t){return overlayPrefix+String(t)+")"}function neutral(t){const o=Array.from(baseInvertBackgroundRgb);return o[3]=Number(t),composite(baseBackgroundRgb,o)}const derived=Object.assign(Object.assign({name:"common"},commonVariables$c),{baseColor:base$1.neutralBase,primaryColor:base$1.primaryDefault,primaryColorHover:base$1.primaryHover,primaryColorPressed:base$1.primaryActive,primaryColorSuppl:base$1.primarySuppl,infoColor:base$1.infoDefault,infoColorHover:base$1.infoHover,infoColorPressed:base$1.infoActive,infoColorSuppl:base$1.infoSuppl,successColor:base$1.successDefault,successColorHover:base$1.successHover,successColorPressed:base$1.successActive,successColorSuppl:base$1.successSuppl,warningColor:base$1.warningDefault,warningColorHover:base$1.warningHover,warningColorPressed:base$1.warningActive,warningColorSuppl:base$1.warningSuppl,errorColor:base$1.errorDefault,errorColorHover:base$1.errorHover,errorColorPressed:base$1.errorActive,errorColorSuppl:base$1.errorSuppl,textColorBase:base$1.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:neutral(base$1.alpha4),placeholderColor:neutral(base$1.alpha4),placeholderColorDisabled:neutral(base$1.alpha5),iconColor:neutral(base$1.alpha4),iconColorHover:scaleColor(neutral(base$1.alpha4),{lightness:.75}),iconColorPressed:scaleColor(neutral(base$1.alpha4),{lightness:.9}),iconColorDisabled:neutral(base$1.alpha5),opacity1:base$1.alpha1,opacity2:base$1.alpha2,opacity3:base$1.alpha3,opacity4:base$1.alpha4,opacity5:base$1.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:neutral(Number(base$1.alphaClose)),closeIconColorHover:neutral(Number(base$1.alphaClose)),closeIconColorPressed:neutral(Number(base$1.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:neutral(base$1.alpha4),clearColorHover:scaleColor(neutral(base$1.alpha4),{lightness:.75}),clearColorPressed:scaleColor(neutral(base$1.alpha4),{lightness:.9}),scrollbarColor:overlay(base$1.alphaScrollbar),scrollbarColorHover:overlay(base$1.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:neutral(base$1.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:base$1.neutralPopover,tableColor:base$1.neutralCard,cardColor:base$1.neutralCard,modalColor:base$1.neutralModal,bodyColor:base$1.neutralBody,tagColor:"#eee",avatarColor:neutral(base$1.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:neutral(base$1.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:base$1.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)"}),commonLight=derived,commonVars$7={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},self$w=t=>{const{textColorDisabled:o,iconColor:n,textColor2:r,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:d,fontSizeHuge:m}=t;return Object.assign(Object.assign({},commonVars$7),{fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:d,fontSizeHuge:m,textColor:o,iconColor:n,extraTextColor:r})},emptyLight={name:"Empty",common:commonLight,self:self$w},emptyLight$1=emptyLight,style$A=cB("empty",`
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ font-size: var(--n-font-size);
+`,[cE("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);
+ `,[c$1("+",[cE("description",`
+ margin-top: 8px;
+ `)])]),cE("description",`
+ transition: color .3s var(--n-bezier);
+ color: var(--n-text-color);
+ `),cE("extra",`
+ text-align: center;
+ transition: color .3s var(--n-bezier);
+ margin-top: 12px;
+ color: var(--n-extra-text-color);
+ `)]),emptyProps=Object.assign(Object.assign({},useTheme.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),NEmpty=defineComponent({name:"Empty",props:emptyProps,setup(t){const{mergedClsPrefixRef:o,inlineThemeDisabled:n}=useConfig(t),r=useTheme("Empty","-empty",style$A,emptyLight$1,t,o),{localeRef:s}=useLocale("Empty"),l=inject(configProviderInjectionKey,null),d=computed(()=>{var v,y,w;return(v=t.description)!==null&&v!==void 0?v:(w=(y=l==null?void 0:l.mergedComponentPropsRef.value)===null||y===void 0?void 0:y.Empty)===null||w===void 0?void 0:w.description}),m=computed(()=>{var v,y;return((y=(v=l==null?void 0:l.mergedComponentPropsRef.value)===null||v===void 0?void 0:v.Empty)===null||y===void 0?void 0:y.renderIcon)||(()=>h(EmptyIcon,null))}),_=computed(()=>{const{size:v}=t,{common:{cubicBezierEaseInOut:y},self:{[createKey("iconSize",v)]:w,[createKey("fontSize",v)]:B,textColor:k,iconColor:N,extraTextColor:S}}=r.value;return{"--n-icon-size":w,"--n-font-size":B,"--n-bezier":y,"--n-text-color":k,"--n-icon-color":N,"--n-extra-text-color":S}}),g=n?useThemeClass("empty",computed(()=>{let v="";const{size:y}=t;return v+=y[0],v}),_,t):void 0;return{mergedClsPrefix:o,mergedRenderIcon:m,localizedDescription:computed(()=>d.value||s.value.description),cssVars:n?void 0:_,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender}},render(){const{$slots:t,mergedClsPrefix:o,onRender:n}=this;return n==null||n(),h("div",{class:[`${o}-empty`,this.themeClass],style:this.cssVars},this.showIcon?h("div",{class:`${o}-empty__icon`},t.icon?t.icon():h(NBaseIcon,{clsPrefix:o},{default:this.mergedRenderIcon})):null,this.showDescription?h("div",{class:`${o}-empty__description`},t.default?t.default():this.localizedDescription):null,t.extra?h("div",{class:`${o}-empty__extra`},t.extra()):null)}}),self$v=t=>{const{scrollbarColor:o,scrollbarColorHover:n}=t;return{color:o,colorHover:n}},scrollbarLight={name:"Scrollbar",common:commonLight,self:self$v},scrollbarLight$1=scrollbarLight,{cubicBezierEaseInOut:cubicBezierEaseInOut$2}=commonVariables$c;function fadeInTransition({name:t="fade-in",enterDuration:o="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=cubicBezierEaseInOut$2,leaveCubicBezier:s=cubicBezierEaseInOut$2}={}){return[c$1(`&.${t}-transition-enter-active`,{transition:`all ${o} ${r}!important`}),c$1(`&.${t}-transition-leave-active`,{transition:`all ${n} ${s}!important`}),c$1(`&.${t}-transition-enter-from, &.${t}-transition-leave-to`,{opacity:0}),c$1(`&.${t}-transition-leave-from, &.${t}-transition-enter-to`,{opacity:1})]}const style$z=cB("scrollbar",`
+ overflow: hidden;
+ position: relative;
+ z-index: auto;
+ height: 100%;
+ width: 100%;
+`,[c$1(">",[cB("scrollbar-container",`
+ width: 100%;
+ overflow: scroll;
+ height: 100%;
+ min-height: inherit;
+ max-height: inherit;
+ scrollbar-width: none;
+ `,[c$1("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
+ width: 0;
+ height: 0;
+ display: none;
+ `),c$1(">",[cB("scrollbar-content",`
+ box-sizing: border-box;
+ min-width: 100%;
+ `)])])]),c$1(">, +",[cB("scrollbar-rail",`
+ position: absolute;
+ pointer-events: none;
+ user-select: none;
+ -webkit-user-select: none;
+ `,[cM("horizontal",`
+ left: 2px;
+ right: 2px;
+ bottom: 4px;
+ height: var(--n-scrollbar-height);
+ `,[c$1(">",[cE("scrollbar",`
+ height: var(--n-scrollbar-height);
+ border-radius: var(--n-scrollbar-border-radius);
+ right: 0;
+ `)])]),cM("vertical",`
+ right: 4px;
+ top: 2px;
+ bottom: 2px;
+ width: var(--n-scrollbar-width);
+ `,[c$1(">",[cE("scrollbar",`
+ width: var(--n-scrollbar-width);
+ border-radius: var(--n-scrollbar-border-radius);
+ bottom: 0;
+ `)])]),cM("disabled",[c$1(">",[cE("scrollbar",{pointerEvents:"none"})])]),c$1(">",[cE("scrollbar",`
+ position: absolute;
+ cursor: pointer;
+ pointer-events: all;
+ background-color: var(--n-scrollbar-color);
+ transition: background-color .2s var(--n-scrollbar-bezier);
+ `,[fadeInTransition(),c$1("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),scrollbarProps$1=Object.assign(Object.assign({},useTheme.props),{size:{type:Number,default:5},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,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),Scrollbar$1=defineComponent({name:"Scrollbar",props:scrollbarProps$1,inheritAttrs:!1,setup(t){const{mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=useConfig(t),s=useRtl("Scrollbar",r,o),l=ref(null),d=ref(null),m=ref(null),_=ref(null),g=ref(null),v=ref(null),y=ref(null),w=ref(null),B=ref(null),k=ref(null),N=ref(null),S=ref(0),x=ref(0),C=ref(!1),I=ref(!1);let D=!1,R=!1,O,Q,Y=0,W=0,K=0,ee=0;const q=useIsIos(),ae=computed(()=>{const{value:ye}=w,{value:Qe}=v,{value:Ce}=k;return ye===null||Qe===null||Ce===null?0:Math.min(ye,Ce*ye/Qe+t.size*1.5)}),ie=computed(()=>`${ae.value}px`),oe=computed(()=>{const{value:ye}=B,{value:Qe}=y,{value:Ce}=N;return ye===null||Qe===null||Ce===null?0:Ce*ye/Qe+t.size*1.5}),J=computed(()=>`${oe.value}px`),j=computed(()=>{const{value:ye}=w,{value:Qe}=S,{value:Ce}=v,{value:nt}=k;if(ye===null||Ce===null||nt===null)return 0;{const ft=Ce-ye;return ft?Qe/ft*(nt-ae.value):0}}),re=computed(()=>`${j.value}px`),ce=computed(()=>{const{value:ye}=B,{value:Qe}=x,{value:Ce}=y,{value:nt}=N;if(ye===null||Ce===null||nt===null)return 0;{const ft=Ce-ye;return ft?Qe/ft*(nt-oe.value):0}}),le=computed(()=>`${ce.value}px`),se=computed(()=>{const{value:ye}=w,{value:Qe}=v;return ye!==null&&Qe!==null&&Qe>ye}),te=computed(()=>{const{value:ye}=B,{value:Qe}=y;return ye!==null&&Qe!==null&&Qe>ye}),ne=computed(()=>{const{trigger:ye}=t;return ye==="none"||C.value}),de=computed(()=>{const{trigger:ye}=t;return ye==="none"||I.value}),fe=computed(()=>{const{container:ye}=t;return ye?ye():d.value}),ve=computed(()=>{const{content:ye}=t;return ye?ye():m.value}),ze=useReactivated(()=>{t.container||xe({top:S.value,left:x.value})}),Re=()=>{ze.isDeactivated||at()},ke=ye=>{if(ze.isDeactivated)return;const{onResize:Qe}=t;Qe&&Qe(ye),at()},xe=(ye,Qe)=>{if(!t.scrollable)return;if(typeof ye=="number"){me(Qe??0,ye,0,!1,"auto");return}const{left:Ce,top:nt,index:ft,elSize:Le,position:it,behavior:_t,el:Ct,debounce:Je=!0}=ye;(Ce!==void 0||nt!==void 0)&&me(Ce??0,nt??0,0,!1,_t),Ct!==void 0?me(0,Ct.offsetTop,Ct.offsetHeight,Je,_t):ft!==void 0&&Le!==void 0?me(0,ft*Le,Le,Je,_t):it==="bottom"?me(0,Number.MAX_SAFE_INTEGER,0,!1,_t):it==="top"&&me(0,0,0,!1,_t)},tt=(ye,Qe)=>{if(!t.scrollable)return;const{value:Ce}=fe;Ce&&(typeof ye=="object"?Ce.scrollBy(ye):Ce.scrollBy(ye,Qe||0))};function me(ye,Qe,Ce,nt,ft){const{value:Le}=fe;if(Le){if(nt){const{scrollTop:it,offsetHeight:_t}=Le;if(Qe>it){Qe+Ce<=it+_t||Le.scrollTo({left:ye,top:Qe+Ce-_t,behavior:ft});return}}Le.scrollTo({left:ye,top:Qe,behavior:ft})}}function be(){ot(),lt(),at()}function Ne(){qe()}function qe(){Be(),ge()}function Be(){Q!==void 0&&window.clearTimeout(Q),Q=window.setTimeout(()=>{I.value=!1},t.duration)}function ge(){O!==void 0&&window.clearTimeout(O),O=window.setTimeout(()=>{C.value=!1},t.duration)}function ot(){O!==void 0&&window.clearTimeout(O),C.value=!0}function lt(){Q!==void 0&&window.clearTimeout(Q),I.value=!0}function ut(ye){const{onScroll:Qe}=t;Qe&&Qe(ye),et()}function et(){const{value:ye}=fe;ye&&(S.value=ye.scrollTop,x.value=ye.scrollLeft*(s!=null&&s.value?-1:1))}function pt(){const{value:ye}=ve;ye&&(v.value=ye.offsetHeight,y.value=ye.offsetWidth);const{value:Qe}=fe;Qe&&(w.value=Qe.offsetHeight,B.value=Qe.offsetWidth);const{value:Ce}=g,{value:nt}=_;Ce&&(N.value=Ce.offsetWidth),nt&&(k.value=nt.offsetHeight)}function Ie(){const{value:ye}=fe;ye&&(S.value=ye.scrollTop,x.value=ye.scrollLeft*(s!=null&&s.value?-1:1),w.value=ye.offsetHeight,B.value=ye.offsetWidth,v.value=ye.scrollHeight,y.value=ye.scrollWidth);const{value:Qe}=g,{value:Ce}=_;Qe&&(N.value=Qe.offsetWidth),Ce&&(k.value=Ce.offsetHeight)}function at(){t.scrollable&&(t.useUnifiedContainer?Ie():(pt(),et()))}function He(ye){var Qe;return!(!((Qe=l.value)===null||Qe===void 0)&&Qe.contains(getPreciseEventTarget(ye)))}function Fe(ye){ye.preventDefault(),ye.stopPropagation(),R=!0,on$1("mousemove",window,dt,!0),on$1("mouseup",window,gt,!0),W=x.value,K=s!=null&&s.value?window.innerWidth-ye.clientX:ye.clientX}function dt(ye){if(!R)return;O!==void 0&&window.clearTimeout(O),Q!==void 0&&window.clearTimeout(Q);const{value:Qe}=B,{value:Ce}=y,{value:nt}=oe;if(Qe===null||Ce===null)return;const Le=(s!=null&&s.value?window.innerWidth-ye.clientX-K:ye.clientX-K)*(Ce-Qe)/(Qe-nt),it=Ce-Qe;let _t=W+Le;_t=Math.min(it,_t),_t=Math.max(_t,0);const{value:Ct}=fe;if(Ct){Ct.scrollLeft=_t*(s!=null&&s.value?-1:1);const{internalOnUpdateScrollLeft:Je}=t;Je&&Je(_t)}}function gt(ye){ye.preventDefault(),ye.stopPropagation(),off$1("mousemove",window,dt,!0),off$1("mouseup",window,gt,!0),R=!1,at(),He(ye)&&qe()}function Ke(ye){ye.preventDefault(),ye.stopPropagation(),D=!0,on$1("mousemove",window,De,!0),on$1("mouseup",window,Me,!0),Y=S.value,ee=ye.clientY}function De(ye){if(!D)return;O!==void 0&&window.clearTimeout(O),Q!==void 0&&window.clearTimeout(Q);const{value:Qe}=w,{value:Ce}=v,{value:nt}=ae;if(Qe===null||Ce===null)return;const Le=(ye.clientY-ee)*(Ce-Qe)/(Qe-nt),it=Ce-Qe;let _t=Y+Le;_t=Math.min(it,_t),_t=Math.max(_t,0);const{value:Ct}=fe;Ct&&(Ct.scrollTop=_t)}function Me(ye){ye.preventDefault(),ye.stopPropagation(),off$1("mousemove",window,De,!0),off$1("mouseup",window,Me,!0),D=!1,at(),He(ye)&&qe()}watchEffect(()=>{const{value:ye}=te,{value:Qe}=se,{value:Ce}=o,{value:nt}=g,{value:ft}=_;nt&&(ye?nt.classList.remove(`${Ce}-scrollbar-rail--disabled`):nt.classList.add(`${Ce}-scrollbar-rail--disabled`)),ft&&(Qe?ft.classList.remove(`${Ce}-scrollbar-rail--disabled`):ft.classList.add(`${Ce}-scrollbar-rail--disabled`))}),onMounted(()=>{t.container||at()}),onBeforeUnmount(()=>{O!==void 0&&window.clearTimeout(O),Q!==void 0&&window.clearTimeout(Q),off$1("mousemove",window,De,!0),off$1("mouseup",window,Me,!0)});const Se=useTheme("Scrollbar","-scrollbar",style$z,scrollbarLight$1,t,o),Pe=computed(()=>{const{common:{cubicBezierEaseInOut:ye,scrollbarBorderRadius:Qe,scrollbarHeight:Ce,scrollbarWidth:nt},self:{color:ft,colorHover:Le}}=Se.value;return{"--n-scrollbar-bezier":ye,"--n-scrollbar-color":ft,"--n-scrollbar-color-hover":Le,"--n-scrollbar-border-radius":Qe,"--n-scrollbar-width":nt,"--n-scrollbar-height":Ce}}),ct=n?useThemeClass("scrollbar",void 0,Pe,t):void 0;return Object.assign(Object.assign({},{scrollTo:xe,scrollBy:tt,sync:at,syncUnifiedContainer:Ie,handleMouseEnterWrapper:be,handleMouseLeaveWrapper:Ne}),{mergedClsPrefix:o,rtlEnabled:s,containerScrollTop:S,wrapperRef:l,containerRef:d,contentRef:m,yRailRef:_,xRailRef:g,needYBar:se,needXBar:te,yBarSizePx:ie,xBarSizePx:J,yBarTopPx:re,xBarLeftPx:le,isShowXBar:ne,isShowYBar:de,isIos:q,handleScroll:ut,handleContentResize:Re,handleContainerResize:ke,handleYScrollMouseDown:Ke,handleXScrollMouseDown:Fe,cssVars:n?void 0:Pe,themeClass:ct==null?void 0:ct.themeClass,onRender:ct==null?void 0:ct.onRender})},render(){var t;const{$slots:o,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:s,internalHoistYRail:l}=this;if(!this.scrollable)return(t=o.default)===null||t===void 0?void 0:t.call(o);const d=this.trigger==="none",m=v=>h("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:[v||"",this.verticalRailStyle],"aria-hiddens":!0},h(d?Wrapper:Transition,d?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?h("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),_=()=>{var v,y;return(v=this.onRender)===null||v===void 0||v.call(this),h("div",mergeProps(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,s&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(y=o.default)===null||y===void 0?void 0:y.call(o):h("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},h(VResizeObserver,{onResize:this.handleContentResize},{default:()=>h("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},o)})),l?null:m(void 0),this.xScrollable&&h("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},h(d?Wrapper:Transition,d?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?h("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:s?this.xBarLeftPx:void 0,left:s?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},g=this.container?_():h(VResizeObserver,{onResize:this.handleContainerResize},{default:_});return l?h(Fragment,null,g,m(this.cssVars)):g}}),NScrollbar$1=Scrollbar$1,XScrollbar=Scrollbar$1,commonVariables$b={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},self$u=t=>{const{borderRadius:o,popoverColor:n,textColor3:r,dividerColor:s,textColor2:l,primaryColorPressed:d,textColorDisabled:m,primaryColor:_,opacityDisabled:g,hoverColor:v,fontSizeSmall:y,fontSizeMedium:w,fontSizeLarge:B,fontSizeHuge:k,heightSmall:N,heightMedium:S,heightLarge:x,heightHuge:C}=t;return Object.assign(Object.assign({},commonVariables$b),{optionFontSizeSmall:y,optionFontSizeMedium:w,optionFontSizeLarge:B,optionFontSizeHuge:k,optionHeightSmall:N,optionHeightMedium:S,optionHeightLarge:x,optionHeightHuge:C,borderRadius:o,color:n,groupHeaderTextColor:r,actionDividerColor:s,optionTextColor:l,optionTextColorPressed:d,optionTextColorDisabled:m,optionTextColorActive:_,optionOpacityDisabled:g,optionCheckColor:_,optionColorPending:v,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:v,actionTextColor:l,loadingColor:_})},internalSelectMenuLight={name:"InternalSelectMenu",common:commonLight,peers:{Scrollbar:scrollbarLight$1,Empty:emptyLight$1},self:self$u},internalSelectMenuLight$1=internalSelectMenuLight;function renderCheckMark(t,o){return h(Transition,{name:"fade-in-scale-up-transition"},{default:()=>t?h(NBaseIcon,{clsPrefix:o,class:`${o}-base-select-option__check`},{default:()=>h(FinishedIcon)}):null})}const NSelectOption=defineComponent({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(t){const{valueRef:o,pendingTmNodeRef:n,multipleRef:r,valueSetRef:s,renderLabelRef:l,renderOptionRef:d,labelFieldRef:m,valueFieldRef:_,showCheckmarkRef:g,nodePropsRef:v,handleOptionClick:y,handleOptionMouseEnter:w}=inject(internalSelectionMenuInjectionKey),B=useMemo(()=>{const{value:x}=n;return x?t.tmNode.key===x.key:!1});function k(x){const{tmNode:C}=t;C.disabled||y(x,C)}function N(x){const{tmNode:C}=t;C.disabled||w(x,C)}function S(x){const{tmNode:C}=t,{value:I}=B;C.disabled||I||w(x,C)}return{multiple:r,isGrouped:useMemo(()=>{const{tmNode:x}=t,{parent:C}=x;return C&&C.rawNode.type==="group"}),showCheckmark:g,nodeProps:v,isPending:B,isSelected:useMemo(()=>{const{value:x}=o,{value:C}=r;if(x===null)return!1;const I=t.tmNode.rawNode[_.value];if(C){const{value:D}=s;return D.has(I)}else return x===I}),labelField:m,renderLabel:l,renderOption:d,handleMouseMove:S,handleMouseEnter:N,handleClick:k}},render(){const{clsPrefix:t,tmNode:{rawNode:o},isSelected:n,isPending:r,isGrouped:s,showCheckmark:l,nodeProps:d,renderOption:m,renderLabel:_,handleClick:g,handleMouseEnter:v,handleMouseMove:y}=this,w=renderCheckMark(n,t),B=_?[_(o,n),l&&w]:[render$6(o[this.labelField],o,n),l&&w],k=d==null?void 0:d(o),N=h("div",Object.assign({},k,{class:[`${t}-base-select-option`,o.class,k==null?void 0:k.class,{[`${t}-base-select-option--disabled`]:o.disabled,[`${t}-base-select-option--selected`]:n,[`${t}-base-select-option--grouped`]:s,[`${t}-base-select-option--pending`]:r,[`${t}-base-select-option--show-checkmark`]:l}],style:[(k==null?void 0:k.style)||"",o.style||""],onClick:mergeEventHandlers([g,k==null?void 0:k.onClick]),onMouseenter:mergeEventHandlers([v,k==null?void 0:k.onMouseenter]),onMousemove:mergeEventHandlers([y,k==null?void 0:k.onMousemove])}),h("div",{class:`${t}-base-select-option__content`},B));return o.render?o.render({node:N,option:o,selected:n}):m?m({node:N,option:o,selected:n}):N}}),NSelectGroupHeader=defineComponent({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:t,renderOptionRef:o,labelFieldRef:n,nodePropsRef:r}=inject(internalSelectionMenuInjectionKey);return{labelField:n,nodeProps:r,renderLabel:t,renderOption:o}},render(){const{clsPrefix:t,renderLabel:o,renderOption:n,nodeProps:r,tmNode:{rawNode:s}}=this,l=r==null?void 0:r(s),d=o?o(s,!1):render$6(s[this.labelField],s,!1),m=h("div",Object.assign({},l,{class:[`${t}-base-select-group-header`,l==null?void 0:l.class]}),d);return s.render?s.render({node:m,option:s}):n?n({node:m,option:s,selected:!1}):m}}),{cubicBezierEaseIn:cubicBezierEaseIn$5,cubicBezierEaseOut:cubicBezierEaseOut$5}=commonVariables$c;function fadeInScaleUpTransition({transformOrigin:t="inherit",duration:o=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:s=""}={}){return[c$1("&.fade-in-scale-up-transition-leave-active",{transformOrigin:t,transition:`opacity ${o} ${cubicBezierEaseIn$5}, transform ${o} ${cubicBezierEaseIn$5} ${s&&","+s}`}),c$1("&.fade-in-scale-up-transition-enter-active",{transformOrigin:t,transition:`opacity ${o} ${cubicBezierEaseOut$5}, transform ${o} ${cubicBezierEaseOut$5} ${s&&","+s}`}),c$1("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),c$1("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const style$y=cB("base-select-menu",`
+ line-height: 1.5;
+ outline: none;
+ z-index: 0;
+ position: relative;
+ border-radius: var(--n-border-radius);
+ transition:
+ background-color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier);
+ background-color: var(--n-color);
+`,[cB("scrollbar",`
+ max-height: var(--n-height);
+ `),cB("virtual-list",`
+ max-height: var(--n-height);
+ `),cB("base-select-option",`
+ min-height: var(--n-option-height);
+ font-size: var(--n-option-font-size);
+ display: flex;
+ align-items: center;
+ `,[cE("content",`
+ z-index: 1;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ `)]),cB("base-select-group-header",`
+ min-height: var(--n-option-height);
+ font-size: .93em;
+ display: flex;
+ align-items: center;
+ `),cB("base-select-menu-option-wrapper",`
+ position: relative;
+ width: 100%;
+ `),cE("loading, empty",`
+ display: flex;
+ padding: 12px 32px;
+ flex: 1;
+ justify-content: center;
+ `),cE("loading",`
+ color: var(--n-loading-color);
+ font-size: var(--n-loading-size);
+ `),cE("action",`
+ padding: 8px var(--n-option-padding-left);
+ font-size: var(--n-option-font-size);
+ transition:
+ color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+ border-top: 1px solid var(--n-action-divider-color);
+ color: var(--n-action-text-color);
+ `),cB("base-select-group-header",`
+ position: relative;
+ cursor: default;
+ padding: var(--n-option-padding);
+ color: var(--n-group-header-text-color);
+ `),cB("base-select-option",`
+ cursor: pointer;
+ position: relative;
+ padding: var(--n-option-padding);
+ transition:
+ color .3s var(--n-bezier),
+ opacity .3s var(--n-bezier);
+ box-sizing: border-box;
+ color: var(--n-option-text-color);
+ opacity: 1;
+ `,[cM("show-checkmark",`
+ padding-right: calc(var(--n-option-padding-right) + 20px);
+ `),c$1("&::before",`
+ content: "";
+ position: absolute;
+ left: 4px;
+ right: 4px;
+ top: 0;
+ bottom: 0;
+ border-radius: var(--n-border-radius);
+ transition: background-color .3s var(--n-bezier);
+ `),c$1("&:active",`
+ color: var(--n-option-text-color-pressed);
+ `),cM("grouped",`
+ padding-left: calc(var(--n-option-padding-left) * 1.5);
+ `),cM("pending",[c$1("&::before",`
+ background-color: var(--n-option-color-pending);
+ `)]),cM("selected",`
+ color: var(--n-option-text-color-active);
+ `,[c$1("&::before",`
+ background-color: var(--n-option-color-active);
+ `),cM("pending",[c$1("&::before",`
+ background-color: var(--n-option-color-active-pending);
+ `)])]),cM("disabled",`
+ cursor: not-allowed;
+ `,[cNotM("selected",`
+ color: var(--n-option-text-color-disabled);
+ `),cM("selected",`
+ opacity: var(--n-option-opacity-disabled);
+ `)]),cE("check",`
+ font-size: 16px;
+ position: absolute;
+ right: calc(var(--n-option-padding-right) - 4px);
+ top: calc(50% - 7px);
+ color: var(--n-option-check-color);
+ transition: color .3s var(--n-bezier);
+ `,[fadeInScaleUpTransition({enterScale:"0.5"})])])]),NInternalSelectMenu=defineComponent({name:"InternalSelectMenu",props:Object.assign(Object.assign({},useTheme.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(t){const o=useTheme("InternalSelectMenu","-internal-select-menu",style$y,internalSelectMenuLight$1,t,toRef(t,"clsPrefix")),n=ref(null),r=ref(null),s=ref(null),l=computed(()=>t.treeMate.getFlattenedNodes()),d=computed(()=>createIndexGetter(l.value)),m=ref(null);function _(){const{treeMate:ce}=t;let le=null;const{value:se}=t;se===null?le=ce.getFirstAvailableNode():(t.multiple?le=ce.getNode((se||[])[(se||[]).length-1]):le=ce.getNode(se),(!le||le.disabled)&&(le=ce.getFirstAvailableNode())),ee(le||null)}function g(){const{value:ce}=m;ce&&!t.treeMate.getNode(ce.key)&&(m.value=null)}let v;watch(()=>t.show,ce=>{ce?v=watch(()=>t.treeMate,()=>{t.resetMenuOnOptionsChange?(t.autoPending?_():g(),nextTick(q)):g()},{immediate:!0}):v==null||v()},{immediate:!0}),onBeforeUnmount(()=>{v==null||v()});const y=computed(()=>depx(o.value.self[createKey("optionHeight",t.size)])),w=computed(()=>getMargin(o.value.self[createKey("padding",t.size)])),B=computed(()=>t.multiple&&Array.isArray(t.value)?new Set(t.value):new Set),k=computed(()=>{const ce=l.value;return ce&&ce.length===0});function N(ce){const{onToggle:le}=t;le&&le(ce)}function S(ce){const{onScroll:le}=t;le&&le(ce)}function x(ce){var le;(le=s.value)===null||le===void 0||le.sync(),S(ce)}function C(){var ce;(ce=s.value)===null||ce===void 0||ce.sync()}function I(){const{value:ce}=m;return ce||null}function D(ce,le){le.disabled||ee(le,!1)}function R(ce,le){le.disabled||N(le)}function O(ce){var le;happensIn(ce,"action")||(le=t.onKeyup)===null||le===void 0||le.call(t,ce)}function Q(ce){var le;happensIn(ce,"action")||(le=t.onKeydown)===null||le===void 0||le.call(t,ce)}function Y(ce){var le;(le=t.onMousedown)===null||le===void 0||le.call(t,ce),!t.focusable&&ce.preventDefault()}function W(){const{value:ce}=m;ce&&ee(ce.getNext({loop:!0}),!0)}function K(){const{value:ce}=m;ce&&ee(ce.getPrev({loop:!0}),!0)}function ee(ce,le=!1){m.value=ce,le&&q()}function q(){var ce,le;const se=m.value;if(!se)return;const te=d.value(se.key);te!==null&&(t.virtualScroll?(ce=r.value)===null||ce===void 0||ce.scrollTo({index:te}):(le=s.value)===null||le===void 0||le.scrollTo({index:te,elSize:y.value}))}function ae(ce){var le,se;!((le=n.value)===null||le===void 0)&&le.contains(ce.target)&&((se=t.onFocus)===null||se===void 0||se.call(t,ce))}function ie(ce){var le,se;!((le=n.value)===null||le===void 0)&&le.contains(ce.relatedTarget)||(se=t.onBlur)===null||se===void 0||se.call(t,ce)}provide(internalSelectionMenuInjectionKey,{handleOptionMouseEnter:D,handleOptionClick:R,valueSetRef:B,pendingTmNodeRef:m,nodePropsRef:toRef(t,"nodeProps"),showCheckmarkRef:toRef(t,"showCheckmark"),multipleRef:toRef(t,"multiple"),valueRef:toRef(t,"value"),renderLabelRef:toRef(t,"renderLabel"),renderOptionRef:toRef(t,"renderOption"),labelFieldRef:toRef(t,"labelField"),valueFieldRef:toRef(t,"valueField")}),provide(internalSelectionMenuBodyInjectionKey,n),onMounted(()=>{const{value:ce}=s;ce&&ce.sync()});const oe=computed(()=>{const{size:ce}=t,{common:{cubicBezierEaseInOut:le},self:{height:se,borderRadius:te,color:ne,groupHeaderTextColor:de,actionDividerColor:fe,optionTextColorPressed:ve,optionTextColor:ze,optionTextColorDisabled:Re,optionTextColorActive:ke,optionOpacityDisabled:xe,optionCheckColor:tt,actionTextColor:me,optionColorPending:be,optionColorActive:Ne,loadingColor:qe,loadingSize:Be,optionColorActivePending:ge,[createKey("optionFontSize",ce)]:ot,[createKey("optionHeight",ce)]:lt,[createKey("optionPadding",ce)]:ut}}=o.value;return{"--n-height":se,"--n-action-divider-color":fe,"--n-action-text-color":me,"--n-bezier":le,"--n-border-radius":te,"--n-color":ne,"--n-option-font-size":ot,"--n-group-header-text-color":de,"--n-option-check-color":tt,"--n-option-color-pending":be,"--n-option-color-active":Ne,"--n-option-color-active-pending":ge,"--n-option-height":lt,"--n-option-opacity-disabled":xe,"--n-option-text-color":ze,"--n-option-text-color-active":ke,"--n-option-text-color-disabled":Re,"--n-option-text-color-pressed":ve,"--n-option-padding":ut,"--n-option-padding-left":getMargin(ut,"left"),"--n-option-padding-right":getMargin(ut,"right"),"--n-loading-color":qe,"--n-loading-size":Be}}),{inlineThemeDisabled:J}=t,j=J?useThemeClass("internal-select-menu",computed(()=>t.size[0]),oe,t):void 0,re={selfRef:n,next:W,prev:K,getPendingTmNode:I};return useOnResize(n,t.onResize),Object.assign({mergedTheme:o,virtualListRef:r,scrollbarRef:s,itemSize:y,padding:w,flattenedNodes:l,empty:k,virtualListContainer(){const{value:ce}=r;return ce==null?void 0:ce.listElRef},virtualListContent(){const{value:ce}=r;return ce==null?void 0:ce.itemsElRef},doScroll:S,handleFocusin:ae,handleFocusout:ie,handleKeyUp:O,handleKeyDown:Q,handleMouseDown:Y,handleVirtualListResize:C,handleVirtualListScroll:x,cssVars:J?void 0:oe,themeClass:j==null?void 0:j.themeClass,onRender:j==null?void 0:j.onRender},re)},render(){const{$slots:t,virtualScroll:o,clsPrefix:n,mergedTheme:r,themeClass:s,onRender:l}=this;return l==null||l(),h("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,s,this.multiple&&`${n}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?h("div",{class:`${n}-base-select-menu__loading`},h(NBaseLoading,{clsPrefix:n,strokeWidth:20})):this.empty?h("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0,"data-action":!0},resolveSlot(t.empty,()=>[h(NEmpty,{theme:r.peers.Empty,themeOverrides:r.peerOverrides.Empty})])):h(NScrollbar$1,{ref:"scrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,scrollable:this.scrollable,container:o?this.virtualListContainer:void 0,content:o?this.virtualListContent:void 0,onScroll:o?void 0:this.doScroll},{default:()=>o?h(VVirtualList,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:d})=>d.isGroup?h(NSelectGroupHeader,{key:d.key,clsPrefix:n,tmNode:d}):d.ignored?null:h(NSelectOption,{clsPrefix:n,key:d.key,tmNode:d})}):h("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(d=>d.isGroup?h(NSelectGroupHeader,{key:d.key,clsPrefix:n,tmNode:d}):h(NSelectOption,{clsPrefix:n,key:d.key,tmNode:d})))}),resolveWrappedSlot(t.action,d=>d&&[h("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},d),h(FocusDetector,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),style$x=cB("base-wave",`
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ border-radius: inherit;
+`),NBaseWave=defineComponent({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(t){useStyle("-base-wave",style$x,toRef(t,"clsPrefix"));const o=ref(null),n=ref(!1);let r=null;return onBeforeUnmount(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:o,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),nextTick(()=>{var s;(s=o.value)===null||s===void 0||s.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:t}=this;return h("div",{ref:"selfRef","aria-hidden":!0,class:[`${t}-base-wave`,this.active&&`${t}-base-wave--active`]})}}),commonVariables$a={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},self$t=t=>{const{boxShadow2:o,popoverColor:n,textColor2:r,borderRadius:s,fontSize:l,dividerColor:d}=t;return Object.assign(Object.assign({},commonVariables$a),{fontSize:l,borderRadius:s,color:n,dividerColor:d,textColor:r,boxShadow:o})},popoverLight={name:"Popover",common:commonLight,self:self$t},popoverLight$1=popoverLight,oppositePlacement={top:"bottom",bottom:"top",left:"right",right:"left"},arrowSize="var(--n-arrow-height) * 1.414",style$w=c$1([cB("popover",`
+ transition:
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ position: relative;
+ font-size: var(--n-font-size);
+ color: var(--n-text-color);
+ box-shadow: var(--n-box-shadow);
+ word-break: break-word;
+ `,[c$1(">",[cB("scrollbar",`
+ height: inherit;
+ max-height: inherit;
+ `)]),cNotM("raw",`
+ background-color: var(--n-color);
+ border-radius: var(--n-border-radius);
+ `,[cNotM("scrollable",[cNotM("show-header-or-footer","padding: var(--n-padding);")])]),cE("header",`
+ padding: var(--n-padding);
+ border-bottom: 1px solid var(--n-divider-color);
+ transition: border-color .3s var(--n-bezier);
+ `),cE("footer",`
+ padding: var(--n-padding);
+ border-top: 1px solid var(--n-divider-color);
+ transition: border-color .3s var(--n-bezier);
+ `),cM("scrollable, show-header-or-footer",[cE("content",`
+ padding: var(--n-padding);
+ `)])]),cB("popover-shared",`
+ transform-origin: inherit;
+ `,[cB("popover-arrow-wrapper",`
+ position: absolute;
+ overflow: hidden;
+ pointer-events: none;
+ `,[cB("popover-arrow",`
+ transition: background-color .3s var(--n-bezier);
+ position: absolute;
+ display: block;
+ width: calc(${arrowSize});
+ height: calc(${arrowSize});
+ box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
+ transform: rotate(45deg);
+ background-color: var(--n-color);
+ pointer-events: all;
+ `)]),c$1("&.popover-transition-enter-from, &.popover-transition-leave-to",`
+ opacity: 0;
+ transform: scale(.85);
+ `),c$1("&.popover-transition-enter-to, &.popover-transition-leave-from",`
+ transform: scale(1);
+ opacity: 1;
+ `),c$1("&.popover-transition-enter-active",`
+ transition:
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ opacity .15s var(--n-bezier-ease-out),
+ transform .15s var(--n-bezier-ease-out);
+ `),c$1("&.popover-transition-leave-active",`
+ transition:
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ opacity .15s var(--n-bezier-ease-in),
+ transform .15s var(--n-bezier-ease-in);
+ `)]),placementStyle("top-start",`
+ top: calc(${arrowSize} / -2);
+ left: calc(${getArrowOffset("top-start")} - var(--v-offset-left));
+ `),placementStyle("top",`
+ top: calc(${arrowSize} / -2);
+ transform: translateX(calc(${arrowSize} / -2)) rotate(45deg);
+ left: 50%;
+ `),placementStyle("top-end",`
+ top: calc(${arrowSize} / -2);
+ right: calc(${getArrowOffset("top-end")} + var(--v-offset-left));
+ `),placementStyle("bottom-start",`
+ bottom: calc(${arrowSize} / -2);
+ left: calc(${getArrowOffset("bottom-start")} - var(--v-offset-left));
+ `),placementStyle("bottom",`
+ bottom: calc(${arrowSize} / -2);
+ transform: translateX(calc(${arrowSize} / -2)) rotate(45deg);
+ left: 50%;
+ `),placementStyle("bottom-end",`
+ bottom: calc(${arrowSize} / -2);
+ right: calc(${getArrowOffset("bottom-end")} + var(--v-offset-left));
+ `),placementStyle("left-start",`
+ left: calc(${arrowSize} / -2);
+ top: calc(${getArrowOffset("left-start")} - var(--v-offset-top));
+ `),placementStyle("left",`
+ left: calc(${arrowSize} / -2);
+ transform: translateY(calc(${arrowSize} / -2)) rotate(45deg);
+ top: 50%;
+ `),placementStyle("left-end",`
+ left: calc(${arrowSize} / -2);
+ bottom: calc(${getArrowOffset("left-end")} + var(--v-offset-top));
+ `),placementStyle("right-start",`
+ right: calc(${arrowSize} / -2);
+ top: calc(${getArrowOffset("right-start")} - var(--v-offset-top));
+ `),placementStyle("right",`
+ right: calc(${arrowSize} / -2);
+ transform: translateY(calc(${arrowSize} / -2)) rotate(45deg);
+ top: 50%;
+ `),placementStyle("right-end",`
+ right: calc(${arrowSize} / -2);
+ bottom: calc(${getArrowOffset("right-end")} + var(--v-offset-top));
+ `),...map({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(t,o)=>{const n=["right","left"].includes(o),r=n?"width":"height";return t.map(s=>{const l=s.split("-")[1]==="end",m=`calc((${`var(--v-target-${r}, 0px)`} - ${arrowSize}) / 2)`,_=getArrowOffset(s);return c$1(`[v-placement="${s}"] >`,[cB("popover-shared",[cM("center-arrow",[cB("popover-arrow",`${o}: calc(max(${m}, ${_}) ${l?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function getArrowOffset(t){return["top","bottom"].includes(t.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function placementStyle(t,o){const n=t.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return c$1(`[v-placement="${t}"] >`,[cB("popover-shared",`
+ margin-${oppositePlacement[n]}: var(--n-space);
+ `,[cM("show-arrow",`
+ margin-${oppositePlacement[n]}: var(--n-space-arrow);
+ `),cM("overlap",`
+ margin: 0;
+ `),cCB("popover-arrow-wrapper",`
+ right: 0;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ ${n}: 100%;
+ ${oppositePlacement[n]}: auto;
+ ${r}
+ `,[cB("popover-arrow",o)])])])}const popoverBodyProps=Object.assign(Object.assign({},useTheme.props),{to:useAdjustedTo.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),renderArrow=({arrowStyle:t,clsPrefix:o})=>h("div",{key:"__popover-arrow__",class:`${o}-popover-arrow-wrapper`},h("div",{class:`${o}-popover-arrow`,style:t})),NPopoverBody=defineComponent({name:"PopoverBody",inheritAttrs:!1,props:popoverBodyProps,setup(t,{slots:o,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:s,inlineThemeDisabled:l}=useConfig(t),d=useTheme("Popover","-popover",style$w,popoverLight$1,t,s),m=ref(null),_=inject("NPopover"),g=ref(null),v=ref(t.show),y=ref(!1);watchEffect(()=>{const{show:Q}=t;Q&&!isJsdom()&&!t.internalDeactivateImmediately&&(y.value=!0)});const w=computed(()=>{const{trigger:Q,onClickoutside:Y}=t,W=[],{positionManuallyRef:{value:K}}=_;return K||(Q==="click"&&!Y&&W.push([clickoutside$1,D,void 0,{capture:!0}]),Q==="hover"&&W.push([mousemoveoutside$1,I])),Y&&W.push([clickoutside$1,D,void 0,{capture:!0}]),(t.displayDirective==="show"||t.animated&&y.value)&&W.push([vShow,t.show]),W}),B=computed(()=>{const Q=t.width==="trigger"?void 0:formatLength(t.width),Y=[];Q&&Y.push({width:Q});const{maxWidth:W,minWidth:K}=t;return W&&Y.push({maxWidth:formatLength(W)}),K&&Y.push({maxWidth:formatLength(K)}),l||Y.push(k.value),Y}),k=computed(()=>{const{common:{cubicBezierEaseInOut:Q,cubicBezierEaseIn:Y,cubicBezierEaseOut:W},self:{space:K,spaceArrow:ee,padding:q,fontSize:ae,textColor:ie,dividerColor:oe,color:J,boxShadow:j,borderRadius:re,arrowHeight:ce,arrowOffset:le,arrowOffsetVertical:se}}=d.value;return{"--n-box-shadow":j,"--n-bezier":Q,"--n-bezier-ease-in":Y,"--n-bezier-ease-out":W,"--n-font-size":ae,"--n-text-color":ie,"--n-color":J,"--n-divider-color":oe,"--n-border-radius":re,"--n-arrow-height":ce,"--n-arrow-offset":le,"--n-arrow-offset-vertical":se,"--n-padding":q,"--n-space":K,"--n-space-arrow":ee}}),N=l?useThemeClass("popover",void 0,k,t):void 0;_.setBodyInstance({syncPosition:S}),onBeforeUnmount(()=>{_.setBodyInstance(null)}),watch(toRef(t,"show"),Q=>{t.animated||(Q?v.value=!0:v.value=!1)});function S(){var Q;(Q=m.value)===null||Q===void 0||Q.syncPosition()}function x(Q){t.trigger==="hover"&&t.keepAliveOnHover&&t.show&&_.handleMouseEnter(Q)}function C(Q){t.trigger==="hover"&&t.keepAliveOnHover&&_.handleMouseLeave(Q)}function I(Q){t.trigger==="hover"&&!R().contains(getPreciseEventTarget(Q))&&_.handleMouseMoveOutside(Q)}function D(Q){(t.trigger==="click"&&!R().contains(getPreciseEventTarget(Q))||t.onClickoutside)&&_.handleClickOutside(Q)}function R(){return _.getTriggerElement()}provide(popoverBodyInjectionKey,g),provide(drawerBodyInjectionKey,null),provide(modalBodyInjectionKey,null);function O(){if(N==null||N.onRender(),!(t.displayDirective==="show"||t.show||t.animated&&y.value))return null;let Y;const W=_.internalRenderBodyRef.value,{value:K}=s;if(W)Y=W([`${K}-popover-shared`,N==null?void 0:N.themeClass.value,t.overlap&&`${K}-popover-shared--overlap`,t.showArrow&&`${K}-popover-shared--show-arrow`,t.arrowPointToCenter&&`${K}-popover-shared--center-arrow`],g,B.value,x,C);else{const{value:ee}=_.extraClassRef,{internalTrapFocus:q}=t,ae=!isSlotEmpty(o.header)||!isSlotEmpty(o.footer),ie=()=>{var oe;const J=ae?h(Fragment,null,resolveWrappedSlot(o.header,ce=>ce?h("div",{class:`${K}-popover__header`,style:t.headerStyle},ce):null),resolveWrappedSlot(o.default,ce=>ce?h("div",{class:`${K}-popover__content`,style:t.contentStyle},o):null),resolveWrappedSlot(o.footer,ce=>ce?h("div",{class:`${K}-popover__footer`,style:t.footerStyle},ce):null)):t.scrollable?(oe=o.default)===null||oe===void 0?void 0:oe.call(o):h("div",{class:`${K}-popover__content`,style:t.contentStyle},o),j=t.scrollable?h(XScrollbar,{contentClass:ae?void 0:`${K}-popover__content`,contentStyle:ae?void 0:t.contentStyle},{default:()=>J}):J,re=t.showArrow?renderArrow({arrowStyle:t.arrowStyle,clsPrefix:K}):null;return[j,re]};Y=h("div",mergeProps({class:[`${K}-popover`,`${K}-popover-shared`,N==null?void 0:N.themeClass.value,ee.map(oe=>`${K}-${oe}`),{[`${K}-popover--scrollable`]:t.scrollable,[`${K}-popover--show-header-or-footer`]:ae,[`${K}-popover--raw`]:t.raw,[`${K}-popover-shared--overlap`]:t.overlap,[`${K}-popover-shared--show-arrow`]:t.showArrow,[`${K}-popover-shared--center-arrow`]:t.arrowPointToCenter}],ref:g,style:B.value,onKeydown:_.handleKeydown,onMouseenter:x,onMouseleave:C},n),q?h(FocusTrap,{active:t.show,autoFocus:!0},{default:ie}):ie())}return withDirectives(Y,w.value)}return{displayed:y,namespace:r,isMounted:_.isMountedRef,zIndex:_.zIndexRef,followerRef:m,adjustedTo:useAdjustedTo(t),followerEnabled:v,renderContentNode:O}},render(){return h(VFollower,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey},{default:()=>this.animated?h(Transition,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var t;(t=this.internalOnAfterLeave)===null||t===void 0||t.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),bodyPropKeys=Object.keys(popoverBodyProps),triggerEventMap={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function appendEvents(t,o,n){triggerEventMap[o].forEach(r=>{t.props?t.props=Object.assign({},t.props):t.props={};const s=t.props[r],l=n[r];s?t.props[r]=(...d)=>{s(...d),l(...d)}:t.props[r]=l})}const popoverBaseProps={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:useAdjustedTo.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},popoverProps=Object.assign(Object.assign(Object.assign({},useTheme.props),popoverBaseProps),{internalOnAfterLeave:Function,internalRenderBody:Function}),NPopover=defineComponent({name:"Popover",inheritAttrs:!1,props:popoverProps,__popover__:!0,setup(t){const o=isMounted(),n=ref(null),r=computed(()=>t.show),s=ref(t.defaultShow),l=useMergedState(r,s),d=useMemo(()=>t.disabled?!1:l.value),m=()=>{if(t.disabled)return!0;const{getDisabled:oe}=t;return!!(oe!=null&&oe())},_=()=>m()?!1:l.value,g=useCompitable(t,["arrow","showArrow"]),v=computed(()=>t.overlap?!1:g.value);let y=null;const w=ref(null),B=ref(null),k=useMemo(()=>t.x!==void 0&&t.y!==void 0);function N(oe){const{"onUpdate:show":J,onUpdateShow:j,onShow:re,onHide:ce}=t;s.value=oe,J&&call(J,oe),j&&call(j,oe),oe&&re&&call(re,!0),oe&&ce&&call(ce,!1)}function S(){y&&y.syncPosition()}function x(){const{value:oe}=w;oe&&(window.clearTimeout(oe),w.value=null)}function C(){const{value:oe}=B;oe&&(window.clearTimeout(oe),B.value=null)}function I(){const oe=m();if(t.trigger==="focus"&&!oe){if(_())return;N(!0)}}function D(){const oe=m();if(t.trigger==="focus"&&!oe){if(!_())return;N(!1)}}function R(){const oe=m();if(t.trigger==="hover"&&!oe){if(C(),w.value!==null||_())return;const J=()=>{N(!0),w.value=null},{delay:j}=t;j===0?J():w.value=window.setTimeout(J,j)}}function O(){const oe=m();if(t.trigger==="hover"&&!oe){if(x(),B.value!==null||!_())return;const J=()=>{N(!1),B.value=null},{duration:j}=t;j===0?J():B.value=window.setTimeout(J,j)}}function Q(){O()}function Y(oe){var J;_()&&(t.trigger==="click"&&(x(),C(),N(!1)),(J=t.onClickoutside)===null||J===void 0||J.call(t,oe))}function W(){if(t.trigger==="click"&&!m()){x(),C();const oe=!_();N(oe)}}function K(oe){t.internalTrapFocus&&oe.key==="Escape"&&(x(),C(),N(!1))}function ee(oe){s.value=oe}function q(){var oe;return(oe=n.value)===null||oe===void 0?void 0:oe.targetRef}function ae(oe){y=oe}return provide("NPopover",{getTriggerElement:q,handleKeydown:K,handleMouseEnter:R,handleMouseLeave:O,handleClickOutside:Y,handleMouseMoveOutside:Q,setBodyInstance:ae,positionManuallyRef:k,isMountedRef:o,zIndexRef:toRef(t,"zIndex"),extraClassRef:toRef(t,"internalExtraClass"),internalRenderBodyRef:toRef(t,"internalRenderBody")}),watchEffect(()=>{l.value&&m()&&N(!1)}),{binderInstRef:n,positionManually:k,mergedShowConsideringDisabledProp:d,uncontrolledShow:s,mergedShowArrow:v,getMergedShow:_,setShow:ee,handleClick:W,handleMouseEnter:R,handleMouseLeave:O,handleFocus:I,handleBlur:D,syncPosition:S}},render(){var t;const{positionManually:o,$slots:n}=this;let r,s=!1;if(!o&&(n.activator?r=getFirstSlotVNode(n,"activator"):r=getFirstSlotVNode(n,"trigger"),r)){r=cloneVNode(r),r=r.type===Text$2?h("span",[r]):r;const l={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((t=r.type)===null||t===void 0)&&t.__popover__)s=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[l,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[l];else{const{internalInheritedEventHandlers:d}=this,m=[l,...d],_={onBlur:g=>{m.forEach(v=>{v.onBlur(g)})},onFocus:g=>{m.forEach(v=>{v.onFocus(g)})},onClick:g=>{m.forEach(v=>{v.onClick(g)})},onMouseenter:g=>{m.forEach(v=>{v.onMouseenter(g)})},onMouseleave:g=>{m.forEach(v=>{v.onMouseleave(g)})}};appendEvents(r,d?"nested":o?"manual":this.trigger,_)}}return h(VBinder,{ref:"binderInstRef",syncTarget:!s,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const l=this.getMergedShow();return[this.internalTrapFocus&&l?withDirectives(h("div",{style:{position:"fixed",inset:0}}),[[zindexable$1,{enabled:l,zIndex:this.zIndex}]]):null,o?null:h(VTarget,null,{default:()=>r}),h(NPopoverBody,keep(this.$props,bodyPropKeys,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:l})),{default:()=>{var d,m;return(m=(d=this.$slots).default)===null||m===void 0?void 0:m.call(d)},header:()=>{var d,m;return(m=(d=this.$slots).header)===null||m===void 0?void 0:m.call(d)},footer:()=>{var d,m;return(m=(d=this.$slots).footer)===null||m===void 0?void 0:m.call(d)}})]}})}}),commonVariables$9={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},self$s=t=>{const{textColor2:o,primaryColorHover:n,primaryColorPressed:r,primaryColor:s,infoColor:l,successColor:d,warningColor:m,errorColor:_,baseColor:g,borderColor:v,opacityDisabled:y,tagColor:w,closeIconColor:B,closeIconColorHover:k,closeIconColorPressed:N,borderRadiusSmall:S,fontSizeMini:x,fontSizeTiny:C,fontSizeSmall:I,fontSizeMedium:D,heightMini:R,heightTiny:O,heightSmall:Q,heightMedium:Y,closeColorHover:W,closeColorPressed:K,buttonColor2Hover:ee,buttonColor2Pressed:q,fontWeightStrong:ae}=t;return Object.assign(Object.assign({},commonVariables$9),{closeBorderRadius:S,heightTiny:R,heightSmall:O,heightMedium:Q,heightLarge:Y,borderRadius:S,opacityDisabled:y,fontSizeTiny:x,fontSizeSmall:C,fontSizeMedium:I,fontSizeLarge:D,fontWeightStrong:ae,textColorCheckable:o,textColorHoverCheckable:o,textColorPressedCheckable:o,textColorChecked:g,colorCheckable:"#0000",colorHoverCheckable:ee,colorPressedCheckable:q,colorChecked:s,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${v}`,textColor:o,color:w,colorBordered:"rgb(250, 250, 252)",closeIconColor:B,closeIconColorHover:k,closeIconColorPressed:N,closeColorHover:W,closeColorPressed:K,borderPrimary:`1px solid ${changeColor(s,{alpha:.3})}`,textColorPrimary:s,colorPrimary:changeColor(s,{alpha:.12}),colorBorderedPrimary:changeColor(s,{alpha:.1}),closeIconColorPrimary:s,closeIconColorHoverPrimary:s,closeIconColorPressedPrimary:s,closeColorHoverPrimary:changeColor(s,{alpha:.12}),closeColorPressedPrimary:changeColor(s,{alpha:.18}),borderInfo:`1px solid ${changeColor(l,{alpha:.3})}`,textColorInfo:l,colorInfo:changeColor(l,{alpha:.12}),colorBorderedInfo:changeColor(l,{alpha:.1}),closeIconColorInfo:l,closeIconColorHoverInfo:l,closeIconColorPressedInfo:l,closeColorHoverInfo:changeColor(l,{alpha:.12}),closeColorPressedInfo:changeColor(l,{alpha:.18}),borderSuccess:`1px solid ${changeColor(d,{alpha:.3})}`,textColorSuccess:d,colorSuccess:changeColor(d,{alpha:.12}),colorBorderedSuccess:changeColor(d,{alpha:.1}),closeIconColorSuccess:d,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:d,closeColorHoverSuccess:changeColor(d,{alpha:.12}),closeColorPressedSuccess:changeColor(d,{alpha:.18}),borderWarning:`1px solid ${changeColor(m,{alpha:.35})}`,textColorWarning:m,colorWarning:changeColor(m,{alpha:.15}),colorBorderedWarning:changeColor(m,{alpha:.12}),closeIconColorWarning:m,closeIconColorHoverWarning:m,closeIconColorPressedWarning:m,closeColorHoverWarning:changeColor(m,{alpha:.12}),closeColorPressedWarning:changeColor(m,{alpha:.18}),borderError:`1px solid ${changeColor(_,{alpha:.23})}`,textColorError:_,colorError:changeColor(_,{alpha:.1}),colorBorderedError:changeColor(_,{alpha:.08}),closeIconColorError:_,closeIconColorHoverError:_,closeIconColorPressedError:_,closeColorHoverError:changeColor(_,{alpha:.12}),closeColorPressedError:changeColor(_,{alpha:.18})})},tagLight={name:"Tag",common:commonLight,self:self$s},tagLight$1=tagLight,commonProps={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},style$v=cB("tag",`
+ white-space: nowrap;
+ position: relative;
+ box-sizing: border-box;
+ cursor: default;
+ display: inline-flex;
+ align-items: center;
+ flex-wrap: nowrap;
+ padding: var(--n-padding);
+ border-radius: var(--n-border-radius);
+ color: var(--n-text-color);
+ background-color: var(--n-color);
+ transition:
+ border-color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier),
+ opacity .3s var(--n-bezier);
+ line-height: 1;
+ height: var(--n-height);
+ font-size: var(--n-font-size);
+`,[cM("strong",`
+ font-weight: var(--n-font-weight-strong);
+ `),cE("border",`
+ pointer-events: none;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ border-radius: inherit;
+ border: var(--n-border);
+ transition: border-color .3s var(--n-bezier);
+ `),cE("icon",`
+ display: flex;
+ margin: 0 4px 0 0;
+ color: var(--n-text-color);
+ transition: color .3s var(--n-bezier);
+ font-size: var(--n-avatar-size-override);
+ `),cE("avatar",`
+ display: flex;
+ margin: 0 6px 0 0;
+ `),cE("close",`
+ margin: var(--n-close-margin);
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ `),cM("round",`
+ padding: 0 calc(var(--n-height) / 3);
+ border-radius: calc(var(--n-height) / 2);
+ `,[cE("icon",`
+ margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);
+ `),cE("avatar",`
+ margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);
+ `),cM("closable",`
+ padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);
+ `)]),cM("icon, avatar",[cM("round",`
+ padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);
+ `)]),cM("disabled",`
+ cursor: not-allowed !important;
+ opacity: var(--n-opacity-disabled);
+ `),cM("checkable",`
+ cursor: pointer;
+ box-shadow: none;
+ color: var(--n-text-color-checkable);
+ background-color: var(--n-color-checkable);
+ `,[cNotM("disabled",[c$1("&:hover","background-color: var(--n-color-hover-checkable);",[cNotM("checked","color: var(--n-text-color-hover-checkable);")]),c$1("&:active","background-color: var(--n-color-pressed-checkable);",[cNotM("checked","color: var(--n-text-color-pressed-checkable);")])]),cM("checked",`
+ color: var(--n-text-color-checked);
+ background-color: var(--n-color-checked);
+ `,[cNotM("disabled",[c$1("&:hover","background-color: var(--n-color-checked-hover);"),c$1("&:active","background-color: var(--n-color-checked-pressed);")])])])]),tagProps=Object.assign(Object.assign(Object.assign({},useTheme.props),commonProps),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),tagInjectionKey="n-tag",NTag=defineComponent({name:"Tag",props:tagProps,setup(t){const o=ref(null),{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:s,mergedRtlRef:l}=useConfig(t),d=useTheme("Tag","-tag",style$v,tagLight$1,t,r);provide(tagInjectionKey,{roundRef:toRef(t,"round")});function m(B){if(!t.disabled&&t.checkable){const{checked:k,onCheckedChange:N,onUpdateChecked:S,"onUpdate:checked":x}=t;S&&S(!k),x&&x(!k),N&&N(!k)}}function _(B){if(t.triggerClickOnClose||B.stopPropagation(),!t.disabled){const{onClose:k}=t;k&&call(k,B)}}const g={setTextContent(B){const{value:k}=o;k&&(k.textContent=B)}},v=useRtl("Tag",l,r),y=computed(()=>{const{type:B,size:k,color:{color:N,textColor:S}={}}=t,{common:{cubicBezierEaseInOut:x},self:{padding:C,closeMargin:I,closeMarginRtl:D,borderRadius:R,opacityDisabled:O,textColorCheckable:Q,textColorHoverCheckable:Y,textColorPressedCheckable:W,textColorChecked:K,colorCheckable:ee,colorHoverCheckable:q,colorPressedCheckable:ae,colorChecked:ie,colorCheckedHover:oe,colorCheckedPressed:J,closeBorderRadius:j,fontWeightStrong:re,[createKey("colorBordered",B)]:ce,[createKey("closeSize",k)]:le,[createKey("closeIconSize",k)]:se,[createKey("fontSize",k)]:te,[createKey("height",k)]:ne,[createKey("color",B)]:de,[createKey("textColor",B)]:fe,[createKey("border",B)]:ve,[createKey("closeIconColor",B)]:ze,[createKey("closeIconColorHover",B)]:Re,[createKey("closeIconColorPressed",B)]:ke,[createKey("closeColorHover",B)]:xe,[createKey("closeColorPressed",B)]:tt}}=d.value;return{"--n-font-weight-strong":re,"--n-avatar-size-override":`calc(${ne} - 8px)`,"--n-bezier":x,"--n-border-radius":R,"--n-border":ve,"--n-close-icon-size":se,"--n-close-color-pressed":tt,"--n-close-color-hover":xe,"--n-close-border-radius":j,"--n-close-icon-color":ze,"--n-close-icon-color-hover":Re,"--n-close-icon-color-pressed":ke,"--n-close-icon-color-disabled":ze,"--n-close-margin":I,"--n-close-margin-rtl":D,"--n-close-size":le,"--n-color":N||(n.value?ce:de),"--n-color-checkable":ee,"--n-color-checked":ie,"--n-color-checked-hover":oe,"--n-color-checked-pressed":J,"--n-color-hover-checkable":q,"--n-color-pressed-checkable":ae,"--n-font-size":te,"--n-height":ne,"--n-opacity-disabled":O,"--n-padding":C,"--n-text-color":S||fe,"--n-text-color-checkable":Q,"--n-text-color-checked":K,"--n-text-color-hover-checkable":Y,"--n-text-color-pressed-checkable":W}}),w=s?useThemeClass("tag",computed(()=>{let B="";const{type:k,size:N,color:{color:S,textColor:x}={}}=t;return B+=k[0],B+=N[0],S&&(B+=`a${color2Class(S)}`),x&&(B+=`b${color2Class(x)}`),n.value&&(B+="c"),B}),y,t):void 0;return Object.assign(Object.assign({},g),{rtlEnabled:v,mergedClsPrefix:r,contentRef:o,mergedBordered:n,handleClick:m,handleCloseClick:_,cssVars:s?void 0:y,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender})},render(){var t,o;const{mergedClsPrefix:n,rtlEnabled:r,closable:s,color:{borderColor:l}={},round:d,onRender:m,$slots:_}=this;m==null||m();const g=resolveWrappedSlot(_.avatar,y=>y&&h("div",{class:`${n}-tag__avatar`},y)),v=resolveWrappedSlot(_.icon,y=>y&&h("div",{class:`${n}-tag__icon`},y));return h("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:r,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:d,[`${n}-tag--avatar`]:g,[`${n}-tag--icon`]:v,[`${n}-tag--closable`]:s}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},v||g,h("span",{class:`${n}-tag__content`,ref:"contentRef"},(o=(t=this.$slots).default)===null||o===void 0?void 0:o.call(t)),!this.checkable&&s?h(NBaseClose,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:d,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?h("div",{class:`${n}-tag__border`,style:{borderColor:l}}):null)}}),style$u=cB("base-clear",`
+ flex-shrink: 0;
+ height: 1em;
+ width: 1em;
+ position: relative;
+`,[c$1(">",[cE("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;
+ `,[c$1("&:hover",`
+ color: var(--n-clear-color-hover)!important;
+ `),c$1("&:active",`
+ color: var(--n-clear-color-pressed)!important;
+ `)]),cE("placeholder",`
+ display: flex;
+ `),cE("clear, placeholder",`
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translateX(-50%) translateY(-50%);
+ `,[iconSwitchTransition({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),NBaseClear=defineComponent({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(t){return useStyle("-base-clear",style$u,toRef(t,"clsPrefix")),{handleMouseDown(o){var n;o.preventDefault(),(n=t.onClear)===null||n===void 0||n.call(t,o)}}},render(){const{clsPrefix:t}=this;return h("div",{class:`${t}-base-clear`},h(NIconSwitchTransition,null,{default:()=>{var o,n;return this.show?h("div",{key:"dismiss",class:`${t}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},resolveSlot(this.$slots.icon,()=>[h(NBaseIcon,{clsPrefix:t},{default:()=>h(ClearIcon,null)})])):h("div",{key:"icon",class:`${t}-base-clear__placeholder`},(n=(o=this.$slots).placeholder)===null||n===void 0?void 0:n.call(o))}}))}}),NBaseSuffix=defineComponent({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(t,{slots:o}){return()=>{const{clsPrefix:n}=t;return h(NBaseLoading,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:t.loading},{default:()=>t.showArrow?h(NBaseClear,{clsPrefix:n,show:t.showClear,onClear:t.onClear},{placeholder:()=>h(NBaseIcon,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>resolveSlot(o.default,()=>[h(ChevronDownIcon,null)])})}):null})}}}),commonVars$6={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},self$r=t=>{const{borderRadius:o,textColor2:n,textColorDisabled:r,inputColor:s,inputColorDisabled:l,primaryColor:d,primaryColorHover:m,warningColor:_,warningColorHover:g,errorColor:v,errorColorHover:y,borderColor:w,iconColor:B,iconColorDisabled:k,clearColor:N,clearColorHover:S,clearColorPressed:x,placeholderColor:C,placeholderColorDisabled:I,fontSizeTiny:D,fontSizeSmall:R,fontSizeMedium:O,fontSizeLarge:Q,heightTiny:Y,heightSmall:W,heightMedium:K,heightLarge:ee}=t;return Object.assign(Object.assign({},commonVars$6),{fontSizeTiny:D,fontSizeSmall:R,fontSizeMedium:O,fontSizeLarge:Q,heightTiny:Y,heightSmall:W,heightMedium:K,heightLarge:ee,borderRadius:o,textColor:n,textColorDisabled:r,placeholderColor:C,placeholderColorDisabled:I,color:s,colorDisabled:l,colorActive:s,border:`1px solid ${w}`,borderHover:`1px solid ${m}`,borderActive:`1px solid ${d}`,borderFocus:`1px solid ${m}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${changeColor(d,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${changeColor(d,{alpha:.2})}`,caretColor:d,arrowColor:B,arrowColorDisabled:k,loadingColor:d,borderWarning:`1px solid ${_}`,borderHoverWarning:`1px solid ${g}`,borderActiveWarning:`1px solid ${_}`,borderFocusWarning:`1px solid ${g}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${changeColor(_,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${changeColor(_,{alpha:.2})}`,colorActiveWarning:s,caretColorWarning:_,borderError:`1px solid ${v}`,borderHoverError:`1px solid ${y}`,borderActiveError:`1px solid ${v}`,borderFocusError:`1px solid ${y}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${changeColor(v,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${changeColor(v,{alpha:.2})}`,colorActiveError:s,caretColorError:v,clearColor:N,clearColorHover:S,clearColorPressed:x})},internalSelectionLight={name:"InternalSelection",common:commonLight,peers:{Popover:popoverLight$1},self:self$r},internalSelectionLight$1=internalSelectionLight,style$t=c$1([cB("base-selection",`
+ position: relative;
+ z-index: auto;
+ box-shadow: none;
+ width: 100%;
+ max-width: 100%;
+ display: inline-block;
+ vertical-align: bottom;
+ border-radius: var(--n-border-radius);
+ min-height: var(--n-height);
+ line-height: 1.5;
+ font-size: var(--n-font-size);
+ `,[cB("base-loading",`
+ color: var(--n-loading-color);
+ `),cB("base-selection-tags","min-height: var(--n-height);"),cE("border, state-border",`
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ pointer-events: none;
+ border: var(--n-border);
+ border-radius: inherit;
+ transition:
+ box-shadow .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+ `),cE("state-border",`
+ z-index: 1;
+ border-color: #0000;
+ `),cB("base-suffix",`
+ cursor: pointer;
+ position: absolute;
+ top: 50%;
+ transform: translateY(-50%);
+ right: 10px;
+ `,[cE("arrow",`
+ font-size: var(--n-arrow-size);
+ color: var(--n-arrow-color);
+ transition: color .3s var(--n-bezier);
+ `)]),cB("base-selection-overlay",`
+ display: flex;
+ align-items: center;
+ white-space: nowrap;
+ pointer-events: none;
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ padding: var(--n-padding-single);
+ transition: color .3s var(--n-bezier);
+ `,[cE("wrapper",`
+ flex-basis: 0;
+ flex-grow: 1;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ `)]),cB("base-selection-placeholder",`
+ color: var(--n-placeholder-color);
+ `,[cE("inner",`
+ max-width: 100%;
+ overflow: hidden;
+ `)]),cB("base-selection-tags",`
+ cursor: pointer;
+ outline: none;
+ box-sizing: border-box;
+ position: relative;
+ z-index: auto;
+ display: flex;
+ padding: var(--n-padding-multiple);
+ flex-wrap: wrap;
+ align-items: center;
+ width: 100%;
+ vertical-align: bottom;
+ background-color: var(--n-color);
+ border-radius: inherit;
+ transition:
+ color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier);
+ `),cB("base-selection-label",`
+ height: var(--n-height);
+ display: inline-flex;
+ width: 100%;
+ vertical-align: bottom;
+ cursor: pointer;
+ outline: none;
+ z-index: auto;
+ box-sizing: border-box;
+ position: relative;
+ transition:
+ color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier);
+ border-radius: inherit;
+ background-color: var(--n-color);
+ align-items: center;
+ `,[cB("base-selection-input",`
+ font-size: inherit;
+ line-height: inherit;
+ outline: none;
+ cursor: pointer;
+ box-sizing: border-box;
+ border:none;
+ width: 100%;
+ padding: var(--n-padding-single);
+ background-color: #0000;
+ color: var(--n-text-color);
+ transition: color .3s var(--n-bezier);
+ caret-color: var(--n-caret-color);
+ `,[cE("content",`
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
+ `)]),cE("render-label",`
+ color: var(--n-text-color);
+ `)]),cNotM("disabled",[c$1("&:hover",[cE("state-border",`
+ box-shadow: var(--n-box-shadow-hover);
+ border: var(--n-border-hover);
+ `)]),cM("focus",[cE("state-border",`
+ box-shadow: var(--n-box-shadow-focus);
+ border: var(--n-border-focus);
+ `)]),cM("active",[cE("state-border",`
+ box-shadow: var(--n-box-shadow-active);
+ border: var(--n-border-active);
+ `),cB("base-selection-label","background-color: var(--n-color-active);"),cB("base-selection-tags","background-color: var(--n-color-active);")])]),cM("disabled","cursor: not-allowed;",[cE("arrow",`
+ color: var(--n-arrow-color-disabled);
+ `),cB("base-selection-label",`
+ cursor: not-allowed;
+ background-color: var(--n-color-disabled);
+ `,[cB("base-selection-input",`
+ cursor: not-allowed;
+ color: var(--n-text-color-disabled);
+ `),cE("render-label",`
+ color: var(--n-text-color-disabled);
+ `)]),cB("base-selection-tags",`
+ cursor: not-allowed;
+ background-color: var(--n-color-disabled);
+ `),cB("base-selection-placeholder",`
+ cursor: not-allowed;
+ color: var(--n-placeholder-color-disabled);
+ `)]),cB("base-selection-input-tag",`
+ height: calc(var(--n-height) - 6px);
+ line-height: calc(var(--n-height) - 6px);
+ outline: none;
+ display: none;
+ position: relative;
+ margin-bottom: 3px;
+ max-width: 100%;
+ vertical-align: bottom;
+ `,[cE("input",`
+ font-size: inherit;
+ font-family: inherit;
+ min-width: 1px;
+ padding: 0;
+ background-color: #0000;
+ outline: none;
+ border: none;
+ max-width: 100%;
+ overflow: hidden;
+ width: 1em;
+ line-height: inherit;
+ cursor: pointer;
+ color: var(--n-text-color);
+ caret-color: var(--n-caret-color);
+ `),cE("mirror",`
+ position: absolute;
+ left: 0;
+ top: 0;
+ white-space: pre;
+ visibility: hidden;
+ user-select: none;
+ -webkit-user-select: none;
+ opacity: 0;
+ `)]),["warning","error"].map(t=>cM(`${t}-status`,[cE("state-border",`border: var(--n-border-${t});`),cNotM("disabled",[c$1("&:hover",[cE("state-border",`
+ box-shadow: var(--n-box-shadow-hover-${t});
+ border: var(--n-border-hover-${t});
+ `)]),cM("active",[cE("state-border",`
+ box-shadow: var(--n-box-shadow-active-${t});
+ border: var(--n-border-active-${t});
+ `),cB("base-selection-label",`background-color: var(--n-color-active-${t});`),cB("base-selection-tags",`background-color: var(--n-color-active-${t});`)]),cM("focus",[cE("state-border",`
+ box-shadow: var(--n-box-shadow-focus-${t});
+ border: var(--n-border-focus-${t});
+ `)])])]))]),cB("base-selection-popover",`
+ margin-bottom: -3px;
+ display: flex;
+ flex-wrap: wrap;
+ margin-right: -8px;
+ `),cB("base-selection-tag-wrapper",`
+ max-width: 100%;
+ display: inline-flex;
+ padding: 0 7px 3px 0;
+ `,[c$1("&:last-child","padding-right: 0;"),cB("tag",`
+ font-size: 14px;
+ max-width: 100%;
+ `,[cE("content",`
+ line-height: 1.25;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ `)])])]),NInternalSelection=defineComponent({name:"InternalSelection",props:Object.assign(Object.assign({},useTheme.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(t){const o=ref(null),n=ref(null),r=ref(null),s=ref(null),l=ref(null),d=ref(null),m=ref(null),_=ref(null),g=ref(null),v=ref(null),y=ref(!1),w=ref(!1),B=ref(!1),k=useTheme("InternalSelection","-internal-selection",style$t,internalSelectionLight$1,t,toRef(t,"clsPrefix")),N=computed(()=>t.clearable&&!t.disabled&&(B.value||t.active)),S=computed(()=>t.selectedOption?t.renderTag?t.renderTag({option:t.selectedOption,handleClose:()=>{}}):t.renderLabel?t.renderLabel(t.selectedOption,!0):render$6(t.selectedOption[t.labelField],t.selectedOption,!0):t.placeholder),x=computed(()=>{const et=t.selectedOption;if(et)return et[t.labelField]}),C=computed(()=>t.multiple?!!(Array.isArray(t.selectedOptions)&&t.selectedOptions.length):t.selectedOption!==null);function I(){var et;const{value:pt}=o;if(pt){const{value:Ie}=n;Ie&&(Ie.style.width=`${pt.offsetWidth}px`,t.maxTagCount!=="responsive"&&((et=g.value)===null||et===void 0||et.sync()))}}function D(){const{value:et}=v;et&&(et.style.display="none")}function R(){const{value:et}=v;et&&(et.style.display="inline-block")}watch(toRef(t,"active"),et=>{et||D()}),watch(toRef(t,"pattern"),()=>{t.multiple&&nextTick(I)});function O(et){const{onFocus:pt}=t;pt&&pt(et)}function Q(et){const{onBlur:pt}=t;pt&&pt(et)}function Y(et){const{onDeleteOption:pt}=t;pt&&pt(et)}function W(et){const{onClear:pt}=t;pt&&pt(et)}function K(et){const{onPatternInput:pt}=t;pt&&pt(et)}function ee(et){var pt;(!et.relatedTarget||!(!((pt=r.value)===null||pt===void 0)&&pt.contains(et.relatedTarget)))&&O(et)}function q(et){var pt;!((pt=r.value)===null||pt===void 0)&&pt.contains(et.relatedTarget)||Q(et)}function ae(et){W(et)}function ie(){B.value=!0}function oe(){B.value=!1}function J(et){!t.active||!t.filterable||et.target!==n.value&&et.preventDefault()}function j(et){Y(et)}function re(et){if(et.key==="Backspace"&&!ce.value&&!t.pattern.length){const{selectedOptions:pt}=t;pt!=null&&pt.length&&j(pt[pt.length-1])}}const ce=ref(!1);let le=null;function se(et){const{value:pt}=o;if(pt){const Ie=et.target.value;pt.textContent=Ie,I()}t.ignoreComposition&&ce.value?le=et:K(et)}function te(){ce.value=!0}function ne(){ce.value=!1,t.ignoreComposition&&K(le),le=null}function de(et){var pt;w.value=!0,(pt=t.onPatternFocus)===null||pt===void 0||pt.call(t,et)}function fe(et){var pt;w.value=!1,(pt=t.onPatternBlur)===null||pt===void 0||pt.call(t,et)}function ve(){var et,pt;if(t.filterable)w.value=!1,(et=d.value)===null||et===void 0||et.blur(),(pt=n.value)===null||pt===void 0||pt.blur();else if(t.multiple){const{value:Ie}=s;Ie==null||Ie.blur()}else{const{value:Ie}=l;Ie==null||Ie.blur()}}function ze(){var et,pt,Ie;t.filterable?(w.value=!1,(et=d.value)===null||et===void 0||et.focus()):t.multiple?(pt=s.value)===null||pt===void 0||pt.focus():(Ie=l.value)===null||Ie===void 0||Ie.focus()}function Re(){const{value:et}=n;et&&(R(),et.focus())}function ke(){const{value:et}=n;et&&et.blur()}function xe(et){const{value:pt}=m;pt&&pt.setTextContent(`+${et}`)}function tt(){const{value:et}=_;return et}function me(){return n.value}let be=null;function Ne(){be!==null&&window.clearTimeout(be)}function qe(){t.active||(Ne(),be=window.setTimeout(()=>{C.value&&(y.value=!0)},100))}function Be(){Ne()}function ge(et){et||(Ne(),y.value=!1)}watch(C,et=>{et||(y.value=!1)}),onMounted(()=>{watchEffect(()=>{const et=d.value;et&&(t.disabled?et.removeAttribute("tabindex"):et.tabIndex=w.value?-1:0)})}),useOnResize(r,t.onResize);const{inlineThemeDisabled:ot}=t,lt=computed(()=>{const{size:et}=t,{common:{cubicBezierEaseInOut:pt},self:{borderRadius:Ie,color:at,placeholderColor:He,textColor:Fe,paddingSingle:dt,paddingMultiple:gt,caretColor:Ke,colorDisabled:De,textColorDisabled:Me,placeholderColorDisabled:Se,colorActive:Pe,boxShadowFocus:ct,boxShadowActive:Ue,boxShadowHover:ye,border:Qe,borderFocus:Ce,borderHover:nt,borderActive:ft,arrowColor:Le,arrowColorDisabled:it,loadingColor:_t,colorActiveWarning:Ct,boxShadowFocusWarning:Je,boxShadowActiveWarning:Ee,boxShadowHoverWarning:Ye,borderWarning:mt,borderFocusWarning:kt,borderHoverWarning:bt,borderActiveWarning:It,colorActiveError:$t,boxShadowFocusError:Ze,boxShadowActiveError:ht,boxShadowHoverError:Xe,borderError:we,borderFocusError:Oe,borderHoverError:Ge,borderActiveError:yt,clearColor:St,clearColorHover:Mt,clearColorPressed:Ot,clearSize:$e,arrowSize:rt,[createKey("height",et)]:Ae,[createKey("fontSize",et)]:ue}}=k.value;return{"--n-bezier":pt,"--n-border":Qe,"--n-border-active":ft,"--n-border-focus":Ce,"--n-border-hover":nt,"--n-border-radius":Ie,"--n-box-shadow-active":Ue,"--n-box-shadow-focus":ct,"--n-box-shadow-hover":ye,"--n-caret-color":Ke,"--n-color":at,"--n-color-active":Pe,"--n-color-disabled":De,"--n-font-size":ue,"--n-height":Ae,"--n-padding-single":dt,"--n-padding-multiple":gt,"--n-placeholder-color":He,"--n-placeholder-color-disabled":Se,"--n-text-color":Fe,"--n-text-color-disabled":Me,"--n-arrow-color":Le,"--n-arrow-color-disabled":it,"--n-loading-color":_t,"--n-color-active-warning":Ct,"--n-box-shadow-focus-warning":Je,"--n-box-shadow-active-warning":Ee,"--n-box-shadow-hover-warning":Ye,"--n-border-warning":mt,"--n-border-focus-warning":kt,"--n-border-hover-warning":bt,"--n-border-active-warning":It,"--n-color-active-error":$t,"--n-box-shadow-focus-error":Ze,"--n-box-shadow-active-error":ht,"--n-box-shadow-hover-error":Xe,"--n-border-error":we,"--n-border-focus-error":Oe,"--n-border-hover-error":Ge,"--n-border-active-error":yt,"--n-clear-size":$e,"--n-clear-color":St,"--n-clear-color-hover":Mt,"--n-clear-color-pressed":Ot,"--n-arrow-size":rt}}),ut=ot?useThemeClass("internal-selection",computed(()=>t.size[0]),lt,t):void 0;return{mergedTheme:k,mergedClearable:N,patternInputFocused:w,filterablePlaceholder:S,label:x,selected:C,showTagsPanel:y,isComposing:ce,counterRef:m,counterWrapperRef:_,patternInputMirrorRef:o,patternInputRef:n,selfRef:r,multipleElRef:s,singleElRef:l,patternInputWrapperRef:d,overflowRef:g,inputTagElRef:v,handleMouseDown:J,handleFocusin:ee,handleClear:ae,handleMouseEnter:ie,handleMouseLeave:oe,handleDeleteOption:j,handlePatternKeyDown:re,handlePatternInputInput:se,handlePatternInputBlur:fe,handlePatternInputFocus:de,handleMouseEnterCounter:qe,handleMouseLeaveCounter:Be,handleFocusout:q,handleCompositionEnd:ne,handleCompositionStart:te,onPopoverUpdateShow:ge,focus:ze,focusInput:Re,blur:ve,blurInput:ke,updateCounter:xe,getCounter:tt,getTail:me,renderLabel:t.renderLabel,cssVars:ot?void 0:lt,themeClass:ut==null?void 0:ut.themeClass,onRender:ut==null?void 0:ut.onRender}},render(){const{status:t,multiple:o,size:n,disabled:r,filterable:s,maxTagCount:l,bordered:d,clsPrefix:m,onRender:_,renderTag:g,renderLabel:v}=this;_==null||_();const y=l==="responsive",w=typeof l=="number",B=y||w,k=h(Wrapper,null,{default:()=>h(NBaseSuffix,{clsPrefix:m,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var S,x;return(x=(S=this.$slots).arrow)===null||x===void 0?void 0:x.call(S)}})});let N;if(o){const{labelField:S}=this,x=q=>h("div",{class:`${m}-base-selection-tag-wrapper`,key:q.value},g?g({option:q,handleClose:()=>{this.handleDeleteOption(q)}}):h(NTag,{size:n,closable:!q.disabled,disabled:r,onClose:()=>{this.handleDeleteOption(q)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>v?v(q,!0):render$6(q[S],q,!0)})),C=()=>(w?this.selectedOptions.slice(0,l):this.selectedOptions).map(x),I=s?h("div",{class:`${m}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},h("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:r,value:this.pattern,autofocus:this.autofocus,class:`${m}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),h("span",{ref:"patternInputMirrorRef",class:`${m}-base-selection-input-tag__mirror`},this.pattern)):null,D=y?()=>h("div",{class:`${m}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},h(NTag,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:r})):void 0;let R;if(w){const q=this.selectedOptions.length-l;q>0&&(R=h("div",{class:`${m}-base-selection-tag-wrapper`,key:"__counter__"},h(NTag,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:r},{default:()=>`+${q}`})))}const O=y?s?h(VOverflow,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:C,counter:D,tail:()=>I}):h(VOverflow,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:C,counter:D}):w?C().concat(R):C(),Q=B?()=>h("div",{class:`${m}-base-selection-popover`},y?C():this.selectedOptions.map(x)):void 0,Y=B?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,K=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?h("div",{class:`${m}-base-selection-placeholder ${m}-base-selection-overlay`},h("div",{class:`${m}-base-selection-placeholder__inner`},this.placeholder)):null,ee=s?h("div",{ref:"patternInputWrapperRef",class:`${m}-base-selection-tags`},O,y?null:I,k):h("div",{ref:"multipleElRef",class:`${m}-base-selection-tags`,tabindex:r?void 0:0},O,k);N=h(Fragment,null,B?h(NPopover,Object.assign({},Y,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>ee,default:Q}):ee,K)}else if(s){const S=this.pattern||this.isComposing,x=this.active?!S:!this.selected,C=this.active?!1:this.selected;N=h("div",{ref:"patternInputWrapperRef",class:`${m}-base-selection-label`},h("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${m}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:r,disabled:r,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),C?h("div",{class:`${m}-base-selection-label__render-label ${m}-base-selection-overlay`,key:"input"},h("div",{class:`${m}-base-selection-overlay__wrapper`},g?g({option:this.selectedOption,handleClose:()=>{}}):v?v(this.selectedOption,!0):render$6(this.label,this.selectedOption,!0))):null,x?h("div",{class:`${m}-base-selection-placeholder ${m}-base-selection-overlay`,key:"placeholder"},h("div",{class:`${m}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,k)}else N=h("div",{ref:"singleElRef",class:`${m}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?h("div",{class:`${m}-base-selection-input`,title:getTitleAttribute(this.label),key:"input"},h("div",{class:`${m}-base-selection-input__content`},g?g({option:this.selectedOption,handleClose:()=>{}}):v?v(this.selectedOption,!0):render$6(this.label,this.selectedOption,!0))):h("div",{class:`${m}-base-selection-placeholder ${m}-base-selection-overlay`,key:"placeholder"},h("div",{class:`${m}-base-selection-placeholder__inner`},this.placeholder)),k);return h("div",{ref:"selfRef",class:[`${m}-base-selection`,this.themeClass,t&&`${m}-base-selection--${t}-status`,{[`${m}-base-selection--active`]:this.active,[`${m}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${m}-base-selection--disabled`]:this.disabled,[`${m}-base-selection--multiple`]:this.multiple,[`${m}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},N,d?h("div",{class:`${m}-base-selection__border`}):null,d?h("div",{class:`${m}-base-selection__state-border`}):null)}}),{cubicBezierEaseInOut:cubicBezierEaseInOut$1}=commonVariables$c;function fadeInWidthExpandTransition({duration:t=".2s",delay:o=".1s"}={}){return[c$1("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),c$1("&.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;
+ `),c$1("&.fade-in-width-expand-transition-leave-active",`
+ overflow: hidden;
+ transition:
+ opacity ${t} ${cubicBezierEaseInOut$1},
+ max-width ${t} ${cubicBezierEaseInOut$1} ${o},
+ margin-left ${t} ${cubicBezierEaseInOut$1} ${o},
+ margin-right ${t} ${cubicBezierEaseInOut$1} ${o};
+ `),c$1("&.fade-in-width-expand-transition-enter-active",`
+ overflow: hidden;
+ transition:
+ opacity ${t} ${cubicBezierEaseInOut$1} ${o},
+ max-width ${t} ${cubicBezierEaseInOut$1},
+ margin-left ${t} ${cubicBezierEaseInOut$1},
+ margin-right ${t} ${cubicBezierEaseInOut$1};
+ `)]}const{cubicBezierEaseInOut,cubicBezierEaseOut:cubicBezierEaseOut$4,cubicBezierEaseIn:cubicBezierEaseIn$4}=commonVariables$c;function fadeInHeightExpandTransition({overflow:t="hidden",duration:o=".3s",originalTransition:n="",leavingDelay:r="0s",foldPadding:s=!1,enterToProps:l=void 0,leaveToProps:d=void 0,reverse:m=!1}={}){const _=m?"leave":"enter",g=m?"enter":"leave";return[c$1(`&.fade-in-height-expand-transition-${g}-from,
+ &.fade-in-height-expand-transition-${_}-to`,Object.assign(Object.assign({},l),{opacity:1})),c$1(`&.fade-in-height-expand-transition-${g}-to,
+ &.fade-in-height-expand-transition-${_}-from`,Object.assign(Object.assign({},d),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:s?"0 !important":void 0,paddingBottom:s?"0 !important":void 0})),c$1(`&.fade-in-height-expand-transition-${g}-active`,`
+ overflow: ${t};
+ transition:
+ max-height ${o} ${cubicBezierEaseInOut} ${r},
+ opacity ${o} ${cubicBezierEaseOut$4} ${r},
+ margin-top ${o} ${cubicBezierEaseInOut} ${r},
+ margin-bottom ${o} ${cubicBezierEaseInOut} ${r},
+ padding-top ${o} ${cubicBezierEaseInOut} ${r},
+ padding-bottom ${o} ${cubicBezierEaseInOut} ${r}
+ ${n?","+n:""}
+ `),c$1(`&.fade-in-height-expand-transition-${_}-active`,`
+ overflow: ${t};
+ transition:
+ max-height ${o} ${cubicBezierEaseInOut},
+ opacity ${o} ${cubicBezierEaseIn$4},
+ margin-top ${o} ${cubicBezierEaseInOut},
+ margin-bottom ${o} ${cubicBezierEaseInOut},
+ padding-top ${o} ${cubicBezierEaseInOut},
+ padding-bottom ${o} ${cubicBezierEaseInOut}
+ ${n?","+n:""}
+ `)]}function getIsGroup(t){return t.type==="group"}function getIgnored(t){return t.type==="ignored"}function patternMatched(t,o){try{return!!(1+o.toString().toLowerCase().indexOf(t.trim().toLowerCase()))}catch{return!1}}function createTmOptions(t,o){return{getIsGroup,getIgnored,getKey(r){return getIsGroup(r)?r.name||r.key||"key-required":r[t]},getChildren(r){return r[o]}}}function filterOptions(t,o,n,r){if(!o)return t;function s(l){if(!Array.isArray(l))return[];const d=[];for(const m of l)if(getIsGroup(m)){const _=s(m[r]);_.length&&d.push(Object.assign({},m,{[r]:_}))}else{if(getIgnored(m))continue;o(n,m)&&d.push(m)}return d}return s(t)}function createValOptMap(t,o,n){const r=new Map;return t.forEach(s=>{getIsGroup(s)?s[n].forEach(l=>{r.set(l[o],l)}):r.set(s[o],s)}),r}const isChrome=isBrowser$2&&"chrome"in window;isBrowser$2&&navigator.userAgent.includes("Firefox");const isSafari=isBrowser$2&&navigator.userAgent.includes("Safari")&&!isChrome,commonVariables$8={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},self$q=t=>{const{textColor2:o,textColor3:n,textColorDisabled:r,primaryColor:s,primaryColorHover:l,inputColor:d,inputColorDisabled:m,borderColor:_,warningColor:g,warningColorHover:v,errorColor:y,errorColorHover:w,borderRadius:B,lineHeight:k,fontSizeTiny:N,fontSizeSmall:S,fontSizeMedium:x,fontSizeLarge:C,heightTiny:I,heightSmall:D,heightMedium:R,heightLarge:O,actionColor:Q,clearColor:Y,clearColorHover:W,clearColorPressed:K,placeholderColor:ee,placeholderColorDisabled:q,iconColor:ae,iconColorDisabled:ie,iconColorHover:oe,iconColorPressed:J}=t;return Object.assign(Object.assign({},commonVariables$8),{countTextColorDisabled:r,countTextColor:n,heightTiny:I,heightSmall:D,heightMedium:R,heightLarge:O,fontSizeTiny:N,fontSizeSmall:S,fontSizeMedium:x,fontSizeLarge:C,lineHeight:k,lineHeightTextarea:k,borderRadius:B,iconSize:"16px",groupLabelColor:Q,groupLabelTextColor:o,textColor:o,textColorDisabled:r,textDecorationColor:o,caretColor:s,placeholderColor:ee,placeholderColorDisabled:q,color:d,colorDisabled:m,colorFocus:d,groupLabelBorder:`1px solid ${_}`,border:`1px solid ${_}`,borderHover:`1px solid ${l}`,borderDisabled:`1px solid ${_}`,borderFocus:`1px solid ${l}`,boxShadowFocus:`0 0 0 2px ${changeColor(s,{alpha:.2})}`,loadingColor:s,loadingColorWarning:g,borderWarning:`1px solid ${g}`,borderHoverWarning:`1px solid ${v}`,colorFocusWarning:d,borderFocusWarning:`1px solid ${v}`,boxShadowFocusWarning:`0 0 0 2px ${changeColor(g,{alpha:.2})}`,caretColorWarning:g,loadingColorError:y,borderError:`1px solid ${y}`,borderHoverError:`1px solid ${w}`,colorFocusError:d,borderFocusError:`1px solid ${w}`,boxShadowFocusError:`0 0 0 2px ${changeColor(y,{alpha:.2})}`,caretColorError:y,clearColor:Y,clearColorHover:W,clearColorPressed:K,iconColor:ae,iconColorDisabled:ie,iconColorHover:oe,iconColorPressed:J,suffixTextColor:o})},inputLight={name:"Input",common:commonLight,self:self$q},inputLight$1=inputLight,inputInjectionKey="n-input";function len(t){let o=0;for(const n of t)o++;return o}function isEmptyInputValue(t){return t===""||t==null}function useCursor(t){const o=ref(null);function n(){const{value:l}=t;if(!(l!=null&&l.focus)){s();return}const{selectionStart:d,selectionEnd:m,value:_}=l;if(d==null||m==null){s();return}o.value={start:d,end:m,beforeText:_.slice(0,d),afterText:_.slice(m)}}function r(){var l;const{value:d}=o,{value:m}=t;if(!d||!m)return;const{value:_}=m,{start:g,beforeText:v,afterText:y}=d;let w=_.length;if(_.endsWith(y))w=_.length-y.length;else if(_.startsWith(v))w=v.length;else{const B=v[g-1],k=_.indexOf(B,g-1);k!==-1&&(w=k+1)}(l=m.setSelectionRange)===null||l===void 0||l.call(m,w,w)}function s(){o.value=null}return watch(t,s),{recordCursor:n,restoreCursor:r}}const WordCount=defineComponent({name:"InputWordCount",setup(t,{slots:o}){const{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:s,countGraphemesRef:l}=inject(inputInjectionKey),d=computed(()=>{const{value:m}=n;return m===null||Array.isArray(m)?0:(l.value||len)(m)});return()=>{const{value:m}=r,{value:_}=n;return h("span",{class:`${s.value}-input-word-count`},resolveSlotWithProps(o.default,{value:_===null||Array.isArray(_)?"":_},()=>[m===void 0?d.value:`${d.value} / ${m}`]))}}}),style$s=cB("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);
+ --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
+`,[cE("input, textarea",`
+ overflow: hidden;
+ flex-grow: 1;
+ position: relative;
+ `),cE("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);
+ `),cE("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;
+ `,[c$1("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
+ width: 0;
+ height: 0;
+ display: none;
+ `),c$1("&::placeholder",`
+ color: #0000;
+ -webkit-text-fill-color: transparent !important;
+ `),c$1("&:-webkit-autofill ~",[cE("placeholder","display: none;")])]),cM("round",[cNotM("textarea","border-radius: calc(var(--n-height) / 2);")]),cE("placeholder",`
+ pointer-events: none;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ overflow: hidden;
+ color: var(--n-placeholder-color);
+ `,[c$1("span",`
+ width: 100%;
+ display: inline-block;
+ `)]),cM("textarea",[cE("placeholder","overflow: visible;")]),cNotM("autosize","width: 100%;"),cM("autosize",[cE("textarea-el, input-el",`
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 100%;
+ `)]),cB("input-wrapper",`
+ overflow: hidden;
+ display: inline-flex;
+ flex-grow: 1;
+ position: relative;
+ padding-left: var(--n-padding-left);
+ padding-right: var(--n-padding-right);
+ `),cE("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;
+ `),cE("input-el",`
+ padding: 0;
+ height: var(--n-height);
+ line-height: var(--n-height);
+ `,[c$1("+",[cE("placeholder",`
+ display: flex;
+ align-items: center;
+ `)])]),cNotM("textarea",[cE("placeholder","white-space: nowrap;")]),cE("eye",`
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ transition: color .3s var(--n-bezier);
+ `),cM("textarea","width: 100%;",[cB("input-word-count",`
+ position: absolute;
+ right: var(--n-padding-right);
+ bottom: var(--n-padding-vertical);
+ `),cM("resizable",[cB("input-wrapper",`
+ resize: vertical;
+ min-height: var(--n-height);
+ `)]),cE("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);
+ `),cE("textarea-mirror",`
+ width: 100%;
+ pointer-events: none;
+ overflow: hidden;
+ visibility: hidden;
+ position: static;
+ white-space: pre-wrap;
+ overflow-wrap: break-word;
+ `)]),cM("pair",[cE("input-el, placeholder","text-align: center;"),cE("separator",`
+ display: flex;
+ align-items: center;
+ transition: color .3s var(--n-bezier);
+ color: var(--n-text-color);
+ white-space: nowrap;
+ `,[cB("icon",`
+ color: var(--n-icon-color);
+ `),cB("base-icon",`
+ color: var(--n-icon-color);
+ `)])]),cM("disabled",`
+ cursor: not-allowed;
+ background-color: var(--n-color-disabled);
+ `,[cE("border","border: var(--n-border-disabled);"),cE("input-el, textarea-el",`
+ cursor: not-allowed;
+ color: var(--n-text-color-disabled);
+ text-decoration-color: var(--n-text-color-disabled);
+ `),cE("placeholder","color: var(--n-placeholder-color-disabled);"),cE("separator","color: var(--n-text-color-disabled);",[cB("icon",`
+ color: var(--n-icon-color-disabled);
+ `),cB("base-icon",`
+ color: var(--n-icon-color-disabled);
+ `)]),cB("input-word-count",`
+ color: var(--n-count-text-color-disabled);
+ `),cE("suffix, prefix","color: var(--n-text-color-disabled);",[cB("icon",`
+ color: var(--n-icon-color-disabled);
+ `),cB("internal-icon",`
+ color: var(--n-icon-color-disabled);
+ `)])]),cNotM("disabled",[cE("eye",`
+ color: var(--n-icon-color);
+ cursor: pointer;
+ `,[c$1("&:hover",`
+ color: var(--n-icon-color-hover);
+ `),c$1("&:active",`
+ color: var(--n-icon-color-pressed);
+ `)]),c$1("&:hover",[cE("state-border","border: var(--n-border-hover);")]),cM("focus","background-color: var(--n-color-focus);",[cE("state-border",`
+ border: var(--n-border-focus);
+ box-shadow: var(--n-box-shadow-focus);
+ `)])]),cE("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);
+ `),cE("state-border",`
+ border-color: #0000;
+ z-index: 1;
+ `),cE("prefix","margin-right: 4px;"),cE("suffix",`
+ margin-left: 4px;
+ `),cE("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);
+ `,[cB("base-loading",`
+ font-size: var(--n-icon-size);
+ margin: 0 2px;
+ color: var(--n-loading-color);
+ `),cB("base-clear",`
+ font-size: var(--n-icon-size);
+ `,[cE("placeholder",[cB("base-icon",`
+ transition: color .3s var(--n-bezier);
+ color: var(--n-icon-color);
+ font-size: var(--n-icon-size);
+ `)])]),c$1(">",[cB("icon",`
+ transition: color .3s var(--n-bezier);
+ color: var(--n-icon-color);
+ font-size: var(--n-icon-size);
+ `)]),cB("base-icon",`
+ font-size: var(--n-icon-size);
+ `)]),cB("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(t=>cM(`${t}-status`,[cNotM("disabled",[cB("base-loading",`
+ color: var(--n-loading-color-${t})
+ `),cE("input-el, textarea-el",`
+ caret-color: var(--n-caret-color-${t});
+ `),cE("state-border",`
+ border: var(--n-border-${t});
+ `),c$1("&:hover",[cE("state-border",`
+ border: var(--n-border-hover-${t});
+ `)]),c$1("&:focus",`
+ background-color: var(--n-color-focus-${t});
+ `,[cE("state-border",`
+ box-shadow: var(--n-box-shadow-focus-${t});
+ border: var(--n-border-focus-${t});
+ `)]),cM("focus",`
+ background-color: var(--n-color-focus-${t});
+ `,[cE("state-border",`
+ box-shadow: var(--n-box-shadow-focus-${t});
+ border: var(--n-border-focus-${t});
+ `)])])]))]),safariStyle=cB("input",[cM("disabled",[cE("input-el, textarea-el",`
+ -webkit-text-fill-color: var(--n-text-color-disabled);
+ `)])]),inputProps=Object.assign(Object.assign({},useTheme.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}),NInput=defineComponent({name:"Input",props:inputProps,setup(t){const{mergedClsPrefixRef:o,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:s}=useConfig(t),l=useTheme("Input","-input",style$s,inputLight$1,t,o);isSafari&&useStyle("-input-safari",safariStyle,o);const d=ref(null),m=ref(null),_=ref(null),g=ref(null),v=ref(null),y=ref(null),w=ref(null),B=useCursor(w),k=ref(null),{localeRef:N}=useLocale("Input"),S=ref(t.defaultValue),x=toRef(t,"value"),C=useMergedState(x,S),I=useFormItem(t),{mergedSizeRef:D,mergedDisabledRef:R,mergedStatusRef:O}=I,Q=ref(!1),Y=ref(!1),W=ref(!1),K=ref(!1);let ee=null;const q=computed(()=>{const{placeholder:Ze,pair:ht}=t;return ht?Array.isArray(Ze)?Ze:Ze===void 0?["",""]:[Ze,Ze]:Ze===void 0?[N.value.placeholder]:[Ze]}),ae=computed(()=>{const{value:Ze}=W,{value:ht}=C,{value:Xe}=q;return!Ze&&(isEmptyInputValue(ht)||Array.isArray(ht)&&isEmptyInputValue(ht[0]))&&Xe[0]}),ie=computed(()=>{const{value:Ze}=W,{value:ht}=C,{value:Xe}=q;return!Ze&&Xe[1]&&(isEmptyInputValue(ht)||Array.isArray(ht)&&isEmptyInputValue(ht[1]))}),oe=useMemo(()=>t.internalForceFocus||Q.value),J=useMemo(()=>{if(R.value||t.readonly||!t.clearable||!oe.value&&!Y.value)return!1;const{value:Ze}=C,{value:ht}=oe;return t.pair?!!(Array.isArray(Ze)&&(Ze[0]||Ze[1]))&&(Y.value||ht):!!Ze&&(Y.value||ht)}),j=computed(()=>{const{showPasswordOn:Ze}=t;if(Ze)return Ze;if(t.showPasswordToggle)return"click"}),re=ref(!1),ce=computed(()=>{const{textDecoration:Ze}=t;return Ze?Array.isArray(Ze)?Ze.map(ht=>({textDecoration:ht})):[{textDecoration:Ze}]:["",""]}),le=ref(void 0),se=()=>{var Ze,ht;if(t.type==="textarea"){const{autosize:Xe}=t;if(Xe&&(le.value=(ht=(Ze=k.value)===null||Ze===void 0?void 0:Ze.$el)===null||ht===void 0?void 0:ht.offsetWidth),!m.value||typeof Xe=="boolean")return;const{paddingTop:we,paddingBottom:Oe,lineHeight:Ge}=window.getComputedStyle(m.value),yt=Number(we.slice(0,-2)),St=Number(Oe.slice(0,-2)),Mt=Number(Ge.slice(0,-2)),{value:Ot}=_;if(!Ot)return;if(Xe.minRows){const $e=Math.max(Xe.minRows,1),rt=`${yt+St+Mt*$e}px`;Ot.style.minHeight=rt}if(Xe.maxRows){const $e=`${yt+St+Mt*Xe.maxRows}px`;Ot.style.maxHeight=$e}}},te=computed(()=>{const{maxlength:Ze}=t;return Ze===void 0?void 0:Number(Ze)});onMounted(()=>{const{value:Ze}=C;Array.isArray(Ze)||_t(Ze)});const ne=getCurrentInstance().proxy;function de(Ze){const{onUpdateValue:ht,"onUpdate:value":Xe,onInput:we}=t,{nTriggerFormInput:Oe}=I;ht&&call(ht,Ze),Xe&&call(Xe,Ze),we&&call(we,Ze),S.value=Ze,Oe()}function fe(Ze){const{onChange:ht}=t,{nTriggerFormChange:Xe}=I;ht&&call(ht,Ze),S.value=Ze,Xe()}function ve(Ze){const{onBlur:ht}=t,{nTriggerFormBlur:Xe}=I;ht&&call(ht,Ze),Xe()}function ze(Ze){const{onFocus:ht}=t,{nTriggerFormFocus:Xe}=I;ht&&call(ht,Ze),Xe()}function Re(Ze){const{onClear:ht}=t;ht&&call(ht,Ze)}function ke(Ze){const{onInputBlur:ht}=t;ht&&call(ht,Ze)}function xe(Ze){const{onInputFocus:ht}=t;ht&&call(ht,Ze)}function tt(){const{onDeactivate:Ze}=t;Ze&&call(Ze)}function me(){const{onActivate:Ze}=t;Ze&&call(Ze)}function be(Ze){const{onClick:ht}=t;ht&&call(ht,Ze)}function Ne(Ze){const{onWrapperFocus:ht}=t;ht&&call(ht,Ze)}function qe(Ze){const{onWrapperBlur:ht}=t;ht&&call(ht,Ze)}function Be(){W.value=!0}function ge(Ze){W.value=!1,Ze.target===y.value?ot(Ze,1):ot(Ze,0)}function ot(Ze,ht=0,Xe="input"){const we=Ze.target.value;if(_t(we),Ze instanceof InputEvent&&!Ze.isComposing&&(W.value=!1),t.type==="textarea"){const{value:Ge}=k;Ge&&Ge.syncUnifiedContainer()}if(ee=we,W.value)return;B.recordCursor();const Oe=lt(we);if(Oe)if(!t.pair)Xe==="input"?de(we):fe(we);else{let{value:Ge}=C;Array.isArray(Ge)?Ge=[Ge[0],Ge[1]]:Ge=["",""],Ge[ht]=we,Xe==="input"?de(Ge):fe(Ge)}ne.$forceUpdate(),Oe||nextTick(B.restoreCursor)}function lt(Ze){const{countGraphemes:ht,maxlength:Xe,minlength:we}=t;if(ht){let Ge;if(Xe!==void 0&&(Ge===void 0&&(Ge=ht(Ze)),Ge>Number(Xe))||we!==void 0&&(Ge===void 0&&(Ge=ht(Ze)),Ge{we.preventDefault(),off$1("mouseup",document,ht)};if(on$1("mouseup",document,ht),j.value!=="mousedown")return;re.value=!0;const Xe=()=>{re.value=!1,off$1("mouseup",document,Xe)};on$1("mouseup",document,Xe)}function Pe(Ze){t.onKeyup&&call(t.onKeyup,Ze)}function ct(Ze){switch(t.onKeydown&&call(t.onKeydown,Ze),Ze.key){case"Escape":ye();break;case"Enter":Ue(Ze);break}}function Ue(Ze){var ht,Xe;if(t.passivelyActivated){const{value:we}=K;if(we){t.internalDeactivateOnEnter&&ye();return}Ze.preventDefault(),t.type==="textarea"?(ht=m.value)===null||ht===void 0||ht.focus():(Xe=v.value)===null||Xe===void 0||Xe.focus()}}function ye(){t.passivelyActivated&&(K.value=!1,nextTick(()=>{var Ze;(Ze=d.value)===null||Ze===void 0||Ze.focus()}))}function Qe(){var Ze,ht,Xe;R.value||(t.passivelyActivated?(Ze=d.value)===null||Ze===void 0||Ze.focus():((ht=m.value)===null||ht===void 0||ht.focus(),(Xe=v.value)===null||Xe===void 0||Xe.focus()))}function Ce(){var Ze;!((Ze=d.value)===null||Ze===void 0)&&Ze.contains(document.activeElement)&&document.activeElement.blur()}function nt(){var Ze,ht;(Ze=m.value)===null||Ze===void 0||Ze.select(),(ht=v.value)===null||ht===void 0||ht.select()}function ft(){R.value||(m.value?m.value.focus():v.value&&v.value.focus())}function Le(){const{value:Ze}=d;Ze!=null&&Ze.contains(document.activeElement)&&Ze!==document.activeElement&&ye()}function it(Ze){if(t.type==="textarea"){const{value:ht}=m;ht==null||ht.scrollTo(Ze)}else{const{value:ht}=v;ht==null||ht.scrollTo(Ze)}}function _t(Ze){const{type:ht,pair:Xe,autosize:we}=t;if(!Xe&&we)if(ht==="textarea"){const{value:Oe}=_;Oe&&(Oe.textContent=(Ze??"")+`\r
+`)}else{const{value:Oe}=g;Oe&&(Ze?Oe.textContent=Ze:Oe.innerHTML=" ")}}function Ct(){se()}const Je=ref({top:"0"});function Ee(Ze){var ht;const{scrollTop:Xe}=Ze.target;Je.value.top=`${-Xe}px`,(ht=k.value)===null||ht===void 0||ht.syncUnifiedContainer()}let Ye=null;watchEffect(()=>{const{autosize:Ze,type:ht}=t;Ze&&ht==="textarea"?Ye=watch(C,Xe=>{!Array.isArray(Xe)&&Xe!==ee&&_t(Xe)}):Ye==null||Ye()});let mt=null;watchEffect(()=>{t.type==="textarea"?mt=watch(C,Ze=>{var ht;!Array.isArray(Ze)&&Ze!==ee&&((ht=k.value)===null||ht===void 0||ht.syncUnifiedContainer())}):mt==null||mt()}),provide(inputInjectionKey,{mergedValueRef:C,maxlengthRef:te,mergedClsPrefixRef:o,countGraphemesRef:toRef(t,"countGraphemes")});const kt={wrapperElRef:d,inputElRef:v,textareaElRef:m,isCompositing:W,focus:Qe,blur:Ce,select:nt,deactivate:Le,activate:ft,scrollTo:it},bt=useRtl("Input",s,o),It=computed(()=>{const{value:Ze}=D,{common:{cubicBezierEaseInOut:ht},self:{color:Xe,borderRadius:we,textColor:Oe,caretColor:Ge,caretColorError:yt,caretColorWarning:St,textDecorationColor:Mt,border:Ot,borderDisabled:$e,borderHover:rt,borderFocus:Ae,placeholderColor:ue,placeholderColorDisabled:Te,lineHeightTextarea:st,colorDisabled:Bt,colorFocus:Tt,textColorDisabled:Dt,boxShadowFocus:je,iconSize:_e,colorFocusWarning:We,boxShadowFocusWarning:vt,borderWarning:Et,borderFocusWarning:Vt,borderHoverWarning:Rt,colorFocusError:xt,boxShadowFocusError:wt,borderError:Ft,borderFocusError:Ut,borderHoverError:Gt,clearSize:jt,clearColor:zt,clearColorHover:Jt,clearColorPressed:eo,iconColor:Bo,iconColorDisabled:Oo,suffixTextColor:_o,countTextColor:To,countTextColorDisabled:uo,iconColorHover:go,iconColorPressed:vo,loadingColor:io,loadingColorError:ro,loadingColorWarning:Lo,[createKey("padding",Ze)]:ko,[createKey("fontSize",Ze)]:No,[createKey("height",Ze)]:Co}}=l.value,{left:Qt,right:no}=getMargin(ko);return{"--n-bezier":ht,"--n-count-text-color":To,"--n-count-text-color-disabled":uo,"--n-color":Xe,"--n-font-size":No,"--n-border-radius":we,"--n-height":Co,"--n-padding-left":Qt,"--n-padding-right":no,"--n-text-color":Oe,"--n-caret-color":Ge,"--n-text-decoration-color":Mt,"--n-border":Ot,"--n-border-disabled":$e,"--n-border-hover":rt,"--n-border-focus":Ae,"--n-placeholder-color":ue,"--n-placeholder-color-disabled":Te,"--n-icon-size":_e,"--n-line-height-textarea":st,"--n-color-disabled":Bt,"--n-color-focus":Tt,"--n-text-color-disabled":Dt,"--n-box-shadow-focus":je,"--n-loading-color":io,"--n-caret-color-warning":St,"--n-color-focus-warning":We,"--n-box-shadow-focus-warning":vt,"--n-border-warning":Et,"--n-border-focus-warning":Vt,"--n-border-hover-warning":Rt,"--n-loading-color-warning":Lo,"--n-caret-color-error":yt,"--n-color-focus-error":xt,"--n-box-shadow-focus-error":wt,"--n-border-error":Ft,"--n-border-focus-error":Ut,"--n-border-hover-error":Gt,"--n-loading-color-error":ro,"--n-clear-color":zt,"--n-clear-size":jt,"--n-clear-color-hover":Jt,"--n-clear-color-pressed":eo,"--n-icon-color":Bo,"--n-icon-color-hover":go,"--n-icon-color-pressed":vo,"--n-icon-color-disabled":Oo,"--n-suffix-text-color":_o}}),$t=r?useThemeClass("input",computed(()=>{const{value:Ze}=D;return Ze[0]}),It,t):void 0;return Object.assign(Object.assign({},kt),{wrapperElRef:d,inputElRef:v,inputMirrorElRef:g,inputEl2Ref:y,textareaElRef:m,textareaMirrorElRef:_,textareaScrollbarInstRef:k,rtlEnabled:bt,uncontrolledValue:S,mergedValue:C,passwordVisible:re,mergedPlaceholder:q,showPlaceholder1:ae,showPlaceholder2:ie,mergedFocus:oe,isComposing:W,activated:K,showClearButton:J,mergedSize:D,mergedDisabled:R,textDecorationStyle:ce,mergedClsPrefix:o,mergedBordered:n,mergedShowPasswordOn:j,placeholderStyle:Je,mergedStatus:O,textAreaScrollContainerWidth:le,handleTextAreaScroll:Ee,handleCompositionStart:Be,handleCompositionEnd:ge,handleInput:ot,handleInputBlur:ut,handleInputFocus:et,handleWrapperBlur:pt,handleWrapperFocus:Ie,handleMouseEnter:Ke,handleMouseLeave:De,handleMouseDown:gt,handleChange:He,handleClick:Fe,handleClear:dt,handlePasswordToggleClick:Me,handlePasswordToggleMousedown:Se,handleWrapperKeydown:ct,handleWrapperKeyup:Pe,handleTextAreaMirrorResize:Ct,getTextareaScrollContainer:()=>m.value,mergedTheme:l,cssVars:r?void 0:It,themeClass:$t==null?void 0:$t.themeClass,onRender:$t==null?void 0:$t.onRender})},render(){var t,o;const{mergedClsPrefix:n,mergedStatus:r,themeClass:s,type:l,countGraphemes:d,onRender:m}=this,_=this.$slots;return m==null||m(),h("div",{ref:"wrapperElRef",class:[`${n}-input`,s,r&&`${n}-input--${r}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:l==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&l!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-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},h("div",{class:`${n}-input-wrapper`},resolveWrappedSlot(_.prefix,g=>g&&h("div",{class:`${n}-input__prefix`},g)),l==="textarea"?h(NScrollbar$1,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var g,v;const{textAreaScrollContainerWidth:y}=this,w={width:this.autosize&&y&&`${y}px`};return h(Fragment,null,h("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(g=this.inputProps)===null||g===void 0?void 0:g.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:d?void 0:this.maxlength,minlength:d?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(v=this.inputProps)===null||v===void 0?void 0:v.style,w],onBlur:this.handleInputBlur,onFocus:B=>{this.handleInputFocus(B,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?h("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,w],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?h(VResizeObserver,{onResize:this.handleTextAreaMirrorResize},{default:()=>h("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):h("div",{class:`${n}-input__input`},h("input",Object.assign({type:l==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":l},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(t=this.inputProps)===null||t===void 0?void 0:t.class],style:[this.textDecorationStyle[0],(o=this.inputProps)===null||o===void 0?void 0:o.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:d?void 0:this.maxlength,minlength:d?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:g=>{this.handleInputFocus(g,0)},onInput:g=>{this.handleInput(g,0)},onChange:g=>{this.handleChange(g,0)}})),this.showPlaceholder1?h("div",{class:`${n}-input__placeholder`},h("span",null,this.mergedPlaceholder[0])):null,this.autosize?h("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&resolveWrappedSlot(_.suffix,g=>g||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?h("div",{class:`${n}-input__suffix`},[resolveWrappedSlot(_["clear-icon-placeholder"],v=>(this.clearable||v)&&h(NBaseClear,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>v,icon:()=>{var y,w;return(w=(y=this.$slots)["clear-icon"])===null||w===void 0?void 0:w.call(y)}})),this.internalLoadingBeforeSuffix?null:g,this.loading!==void 0?h(NBaseSuffix,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?g:null,this.showCount&&this.type!=="textarea"?h(WordCount,null,{default:v=>{var y;return(y=_.count)===null||y===void 0?void 0:y.call(_,v)}}):null,this.mergedShowPasswordOn&&this.type==="password"?h("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?resolveSlot(_["password-visible-icon"],()=>[h(NBaseIcon,{clsPrefix:n},{default:()=>h(EyeIcon,null)})]):resolveSlot(_["password-invisible-icon"],()=>[h(NBaseIcon,{clsPrefix:n},{default:()=>h(EyeOffIcon,null)})])):null]):null)),this.pair?h("span",{class:`${n}-input__separator`},resolveSlot(_.separator,()=>[this.separator])):null,this.pair?h("div",{class:`${n}-input-wrapper`},h("div",{class:`${n}-input__input`},h("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:d?void 0:this.maxlength,minlength:d?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:g=>{this.handleInputFocus(g,1)},onInput:g=>{this.handleInput(g,1)},onChange:g=>{this.handleChange(g,1)}}),this.showPlaceholder2?h("div",{class:`${n}-input__placeholder`},h("span",null,this.mergedPlaceholder[1])):null),resolveWrappedSlot(_.suffix,g=>(this.clearable||g)&&h("div",{class:`${n}-input__suffix`},[this.clearable&&h(NBaseClear,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var v;return(v=_["clear-icon"])===null||v===void 0?void 0:v.call(_)},placeholder:()=>{var v;return(v=_["clear-icon-placeholder"])===null||v===void 0?void 0:v.call(_)}}),g]))):null,this.mergedBordered?h("div",{class:`${n}-input__border`}):null,this.mergedBordered?h("div",{class:`${n}-input__state-border`}):null,this.showCount&&l==="textarea"?h(WordCount,null,{default:g=>{var v;const{renderCount:y}=this;return y?y(g):(v=_.count)===null||v===void 0?void 0:v.call(_,g)}}):null)}}),isImageSupportNativeLazy=isBrowser$2&&"loading"in document.createElement("img"),resolveOptionsAndHash=(t={})=>{var o;const{root:n=null}=t;return{hash:`${t.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(t.threshold)?t.threshold.join(","):(o=t.threshold)!==null&&o!==void 0?o:"0"}`,options:Object.assign(Object.assign({},t),{root:(typeof n=="string"?document.querySelector(n):n)||document.documentElement})}},observers=new WeakMap,unobserveHandleMap=new WeakMap,shouldStartLoadingRefMap=new WeakMap,observeIntersection=(t,o,n)=>{if(!t)return()=>{};const r=resolveOptionsAndHash(o),{root:s}=r.options;let l;const d=observers.get(s);d?l=d:(l=new Map,observers.set(s,l));let m,_;l.has(r.hash)?(_=l.get(r.hash),_[1].has(t)||(m=_[0],_[1].add(t),m.observe(t))):(m=new IntersectionObserver(y=>{y.forEach(w=>{if(w.isIntersecting){const B=unobserveHandleMap.get(w.target),k=shouldStartLoadingRefMap.get(w.target);B&&B(),k&&(k.value=!0)}})},r.options),m.observe(t),_=[m,new Set([t])],l.set(r.hash,_));let g=!1;const v=()=>{g||(unobserveHandleMap.delete(t),shouldStartLoadingRefMap.delete(t),g=!0,_[1].has(t)&&(_[0].unobserve(t),_[1].delete(t)),_[1].size<=0&&l.delete(r.hash),l.size||observers.delete(s))};return unobserveHandleMap.set(t,v),shouldStartLoadingRefMap.set(t,n),v},self$p=t=>{const{borderRadius:o,avatarColor:n,cardColor:r,fontSize:s,heightTiny:l,heightSmall:d,heightMedium:m,heightLarge:_,heightHuge:g,modalColor:v,popoverColor:y}=t;return{borderRadius:o,fontSize:s,border:`2px solid ${r}`,heightTiny:l,heightSmall:d,heightMedium:m,heightLarge:_,heightHuge:g,color:composite(r,n),colorModal:composite(v,n),colorPopover:composite(y,n)}},avatarLight={name:"Avatar",common:commonLight,self:self$p},avatarLight$1=avatarLight,avatarGroupInjectionKey="n-avatar-group",style$r=cB("avatar",`
+ width: var(--n-merged-size);
+ height: var(--n-merged-size);
+ color: #FFF;
+ font-size: var(--n-font-size);
+ display: inline-flex;
+ position: relative;
+ overflow: hidden;
+ text-align: center;
+ border: var(--n-border);
+ border-radius: var(--n-border-radius);
+ --n-merged-color: var(--n-color);
+ background-color: var(--n-merged-color);
+ transition:
+ border-color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+`,[insideModal(c$1("&","--n-merged-color: var(--n-color-modal);")),insidePopover(c$1("&","--n-merged-color: var(--n-color-popover);")),c$1("img",`
+ width: 100%;
+ height: 100%;
+ `),cE("text",`
+ white-space: nowrap;
+ display: inline-block;
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ `),cB("icon",`
+ vertical-align: bottom;
+ font-size: calc(var(--n-merged-size) - 6px);
+ `),cE("text","line-height: 1.25")]),avatarProps=Object.assign(Object.assign({},useTheme.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),NAvatar=defineComponent({name:"Avatar",props:avatarProps,setup(t){const{mergedClsPrefixRef:o,inlineThemeDisabled:n}=useConfig(t),r=ref(!1);let s=null;const l=ref(null),d=ref(null),m=()=>{const{value:I}=l;if(I&&(s===null||s!==I.innerHTML)){s=I.innerHTML;const{value:D}=d;if(D){const{offsetWidth:R,offsetHeight:O}=D,{offsetWidth:Q,offsetHeight:Y}=I,W=.9,K=Math.min(R/Q*W,O/Y*W,1);I.style.transform=`translateX(-50%) translateY(-50%) scale(${K})`}}},_=inject(avatarGroupInjectionKey,null),g=computed(()=>{const{size:I}=t;if(I)return I;const{size:D}=_||{};return D||"medium"}),v=useTheme("Avatar","-avatar",style$r,avatarLight$1,t,o),y=inject(tagInjectionKey,null),w=computed(()=>{if(_)return!0;const{round:I,circle:D}=t;return I!==void 0||D!==void 0?I||D:y?y.roundRef.value:!1}),B=computed(()=>_?!0:t.bordered||!1),k=I=>{var D;if(!x.value)return;r.value=!0;const{onError:R,imgProps:O}=t;(D=O==null?void 0:O.onError)===null||D===void 0||D.call(O,I),R&&R(I)};watch(()=>t.src,()=>r.value=!1);const N=computed(()=>{const I=g.value,D=w.value,R=B.value,{color:O}=t,{self:{borderRadius:Q,fontSize:Y,color:W,border:K,colorModal:ee,colorPopover:q},common:{cubicBezierEaseInOut:ae}}=v.value;let ie;return typeof I=="number"?ie=`${I}px`:ie=v.value.self[createKey("height",I)],{"--n-font-size":Y,"--n-border":R?K:"none","--n-border-radius":D?"50%":Q,"--n-color":O||W,"--n-color-modal":O||ee,"--n-color-popover":O||q,"--n-bezier":ae,"--n-merged-size":`var(--n-avatar-size-override, ${ie})`}}),S=n?useThemeClass("avatar",computed(()=>{const I=g.value,D=w.value,R=B.value,{color:O}=t;let Q="";return I&&(typeof I=="number"?Q+=`a${I}`:Q+=I[0]),D&&(Q+="b"),R&&(Q+="c"),O&&(Q+=color2Class(O)),Q}),N,t):void 0,x=ref(!t.lazy);onMounted(()=>{if(isImageSupportNativeLazy)return;let I;const D=watchEffect(()=>{I==null||I(),I=void 0,t.lazy&&(I=observeIntersection(d.value,t.intersectionObserverOptions,x))});onBeforeUnmount(()=>{D(),I==null||I()})});const C=ref(!t.lazy);return{textRef:l,selfRef:d,mergedRoundRef:w,mergedClsPrefix:o,fitTextTransform:m,cssVars:n?void 0:N,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender,hasLoadError:r,handleError:k,shouldStartLoading:x,loaded:C,mergedOnLoad:I=>{var D;const{onLoad:R,imgProps:O}=t;R==null||R(I),(D=O==null?void 0:O.onLoad)===null||D===void 0||D.call(O,I),C.value=!0}}},render(){var t,o;const{$slots:n,src:r,mergedClsPrefix:s,lazy:l,onRender:d,mergedOnLoad:m,shouldStartLoading:_,loaded:g,hasLoadError:v}=this;d==null||d();let y;const w=!g&&!v&&(this.renderPlaceholder?this.renderPlaceholder():(o=(t=this.$slots).placeholder)===null||o===void 0?void 0:o.call(t));return this.hasLoadError?y=this.renderFallback?this.renderFallback():resolveSlot(n.fallback,()=>[h("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):y=resolveWrappedSlot(n.default,B=>{if(B)return h(VResizeObserver,{onResize:this.fitTextTransform},{default:()=>h("span",{ref:"textRef",class:`${s}-avatar__text`},B)});if(r){const{imgProps:k}=this;return h("img",Object.assign(Object.assign({},k),{loading:isImageSupportNativeLazy&&!this.intersectionObserverOptions&&l?"lazy":"eager",src:isImageSupportNativeLazy||_||g?r:void 0,onLoad:m,"data-image-src":r,onError:this.handleError,style:[k==null?void 0:k.style,{objectFit:this.objectFit},w?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),h("span",{ref:"selfRef",class:[`${s}-avatar`,this.themeClass],style:this.cssVars},y,l&&w)}});function createHoverColor(t){return composite(t,[255,255,255,.16])}function createPressedColor(t){return composite(t,[0,0,0,.12])}const buttonGroupInjectionKey="n-button-group",commonVariables$7={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"},self$o=t=>{const{heightTiny:o,heightSmall:n,heightMedium:r,heightLarge:s,borderRadius:l,fontSizeTiny:d,fontSizeSmall:m,fontSizeMedium:_,fontSizeLarge:g,opacityDisabled:v,textColor2:y,textColor3:w,primaryColorHover:B,primaryColorPressed:k,borderColor:N,primaryColor:S,baseColor:x,infoColor:C,infoColorHover:I,infoColorPressed:D,successColor:R,successColorHover:O,successColorPressed:Q,warningColor:Y,warningColorHover:W,warningColorPressed:K,errorColor:ee,errorColorHover:q,errorColorPressed:ae,fontWeight:ie,buttonColor2:oe,buttonColor2Hover:J,buttonColor2Pressed:j,fontWeightStrong:re}=t;return Object.assign(Object.assign({},commonVariables$7),{heightTiny:o,heightSmall:n,heightMedium:r,heightLarge:s,borderRadiusTiny:l,borderRadiusSmall:l,borderRadiusMedium:l,borderRadiusLarge:l,fontSizeTiny:d,fontSizeSmall:m,fontSizeMedium:_,fontSizeLarge:g,opacityDisabled:v,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:oe,colorSecondaryHover:J,colorSecondaryPressed:j,colorTertiary:oe,colorTertiaryHover:J,colorTertiaryPressed:j,colorQuaternary:"#0000",colorQuaternaryHover:J,colorQuaternaryPressed:j,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:y,textColorTertiary:w,textColorHover:B,textColorPressed:k,textColorFocus:B,textColorDisabled:y,textColorText:y,textColorTextHover:B,textColorTextPressed:k,textColorTextFocus:B,textColorTextDisabled:y,textColorGhost:y,textColorGhostHover:B,textColorGhostPressed:k,textColorGhostFocus:B,textColorGhostDisabled:y,border:`1px solid ${N}`,borderHover:`1px solid ${B}`,borderPressed:`1px solid ${k}`,borderFocus:`1px solid ${B}`,borderDisabled:`1px solid ${N}`,rippleColor:S,colorPrimary:S,colorHoverPrimary:B,colorPressedPrimary:k,colorFocusPrimary:B,colorDisabledPrimary:S,textColorPrimary:x,textColorHoverPrimary:x,textColorPressedPrimary:x,textColorFocusPrimary:x,textColorDisabledPrimary:x,textColorTextPrimary:S,textColorTextHoverPrimary:B,textColorTextPressedPrimary:k,textColorTextFocusPrimary:B,textColorTextDisabledPrimary:y,textColorGhostPrimary:S,textColorGhostHoverPrimary:B,textColorGhostPressedPrimary:k,textColorGhostFocusPrimary:B,textColorGhostDisabledPrimary:S,borderPrimary:`1px solid ${S}`,borderHoverPrimary:`1px solid ${B}`,borderPressedPrimary:`1px solid ${k}`,borderFocusPrimary:`1px solid ${B}`,borderDisabledPrimary:`1px solid ${S}`,rippleColorPrimary:S,colorInfo:C,colorHoverInfo:I,colorPressedInfo:D,colorFocusInfo:I,colorDisabledInfo:C,textColorInfo:x,textColorHoverInfo:x,textColorPressedInfo:x,textColorFocusInfo:x,textColorDisabledInfo:x,textColorTextInfo:C,textColorTextHoverInfo:I,textColorTextPressedInfo:D,textColorTextFocusInfo:I,textColorTextDisabledInfo:y,textColorGhostInfo:C,textColorGhostHoverInfo:I,textColorGhostPressedInfo:D,textColorGhostFocusInfo:I,textColorGhostDisabledInfo:C,borderInfo:`1px solid ${C}`,borderHoverInfo:`1px solid ${I}`,borderPressedInfo:`1px solid ${D}`,borderFocusInfo:`1px solid ${I}`,borderDisabledInfo:`1px solid ${C}`,rippleColorInfo:C,colorSuccess:R,colorHoverSuccess:O,colorPressedSuccess:Q,colorFocusSuccess:O,colorDisabledSuccess:R,textColorSuccess:x,textColorHoverSuccess:x,textColorPressedSuccess:x,textColorFocusSuccess:x,textColorDisabledSuccess:x,textColorTextSuccess:R,textColorTextHoverSuccess:O,textColorTextPressedSuccess:Q,textColorTextFocusSuccess:O,textColorTextDisabledSuccess:y,textColorGhostSuccess:R,textColorGhostHoverSuccess:O,textColorGhostPressedSuccess:Q,textColorGhostFocusSuccess:O,textColorGhostDisabledSuccess:R,borderSuccess:`1px solid ${R}`,borderHoverSuccess:`1px solid ${O}`,borderPressedSuccess:`1px solid ${Q}`,borderFocusSuccess:`1px solid ${O}`,borderDisabledSuccess:`1px solid ${R}`,rippleColorSuccess:R,colorWarning:Y,colorHoverWarning:W,colorPressedWarning:K,colorFocusWarning:W,colorDisabledWarning:Y,textColorWarning:x,textColorHoverWarning:x,textColorPressedWarning:x,textColorFocusWarning:x,textColorDisabledWarning:x,textColorTextWarning:Y,textColorTextHoverWarning:W,textColorTextPressedWarning:K,textColorTextFocusWarning:W,textColorTextDisabledWarning:y,textColorGhostWarning:Y,textColorGhostHoverWarning:W,textColorGhostPressedWarning:K,textColorGhostFocusWarning:W,textColorGhostDisabledWarning:Y,borderWarning:`1px solid ${Y}`,borderHoverWarning:`1px solid ${W}`,borderPressedWarning:`1px solid ${K}`,borderFocusWarning:`1px solid ${W}`,borderDisabledWarning:`1px solid ${Y}`,rippleColorWarning:Y,colorError:ee,colorHoverError:q,colorPressedError:ae,colorFocusError:q,colorDisabledError:ee,textColorError:x,textColorHoverError:x,textColorPressedError:x,textColorFocusError:x,textColorDisabledError:x,textColorTextError:ee,textColorTextHoverError:q,textColorTextPressedError:ae,textColorTextFocusError:q,textColorTextDisabledError:y,textColorGhostError:ee,textColorGhostHoverError:q,textColorGhostPressedError:ae,textColorGhostFocusError:q,textColorGhostDisabledError:ee,borderError:`1px solid ${ee}`,borderHoverError:`1px solid ${q}`,borderPressedError:`1px solid ${ae}`,borderFocusError:`1px solid ${q}`,borderDisabledError:`1px solid ${ee}`,rippleColorError:ee,waveOpacity:"0.6",fontWeight:ie,fontWeightStrong:re})},buttonLight={name:"Button",common:commonLight,self:self$o},buttonLight$1=buttonLight,style$q=c$1([cB("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);
+ `,[cM("color",[cE("border",{borderColor:"var(--n-border-color)"}),cM("disabled",[cE("border",{borderColor:"var(--n-border-color-disabled)"})]),cNotM("disabled",[c$1("&:focus",[cE("state-border",{borderColor:"var(--n-border-color-focus)"})]),c$1("&:hover",[cE("state-border",{borderColor:"var(--n-border-color-hover)"})]),c$1("&:active",[cE("state-border",{borderColor:"var(--n-border-color-pressed)"})]),cM("pressed",[cE("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),cM("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[cE("border",{border:"var(--n-border-disabled)"})]),cNotM("disabled",[c$1("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[cE("state-border",{border:"var(--n-border-focus)"})]),c$1("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[cE("state-border",{border:"var(--n-border-hover)"})]),c$1("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[cE("state-border",{border:"var(--n-border-pressed)"})]),cM("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[cE("state-border",{border:"var(--n-border-pressed)"})])]),cM("loading","cursor: wait;"),cB("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);
+ `,[cM("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),isBrowser$2&&"MozBoxSizing"in document.createElement("div").style?c$1("&::moz-focus-inner",{border:0}):null,cE("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;
+ `),cE("border",{border:"var(--n-border)"}),cE("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),cE("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;
+ `,[cB("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;
+ `,[iconSwitchTransition({top:"50%",originalTransform:"translateY(-50%)"})]),fadeInWidthExpandTransition()]),cE("content",`
+ display: flex;
+ align-items: center;
+ flex-wrap: nowrap;
+ min-width: 0;
+ `,[c$1("~",[cE("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),cM("block",`
+ display: flex;
+ width: 100%;
+ `),cM("dashed",[cE("border, state-border",{borderStyle:"dashed !important"})]),cM("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),c$1("@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)"}}),c$1("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),buttonProps=Object.assign(Object.assign({},useTheme.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:!isSafari}}),Button=defineComponent({name:"Button",props:buttonProps,setup(t){const o=ref(null),n=ref(null),r=ref(!1),s=useMemo(()=>!t.quaternary&&!t.tertiary&&!t.secondary&&!t.text&&(!t.color||t.ghost||t.dashed)&&t.bordered),l=inject(buttonGroupInjectionKey,{}),{mergedSizeRef:d}=useFormItem({},{defaultSize:"medium",mergedSize:D=>{const{size:R}=t;if(R)return R;const{size:O}=l;if(O)return O;const{mergedSize:Q}=D||{};return Q?Q.value:"medium"}}),m=computed(()=>t.focusable&&!t.disabled),_=D=>{var R;m.value||D.preventDefault(),!t.nativeFocusBehavior&&(D.preventDefault(),!t.disabled&&m.value&&((R=o.value)===null||R===void 0||R.focus({preventScroll:!0})))},g=D=>{var R;if(!t.disabled&&!t.loading){const{onClick:O}=t;O&&call(O,D),t.text||(R=n.value)===null||R===void 0||R.play()}},v=D=>{switch(D.key){case"Enter":if(!t.keyboard)return;r.value=!1}},y=D=>{switch(D.key){case"Enter":if(!t.keyboard||t.loading){D.preventDefault();return}r.value=!0}},w=()=>{r.value=!1},{inlineThemeDisabled:B,mergedClsPrefixRef:k,mergedRtlRef:N}=useConfig(t),S=useTheme("Button","-button",style$q,buttonLight$1,t,k),x=useRtl("Button",N,k),C=computed(()=>{const D=S.value,{common:{cubicBezierEaseInOut:R,cubicBezierEaseOut:O},self:Q}=D,{rippleDuration:Y,opacityDisabled:W,fontWeight:K,fontWeightStrong:ee}=Q,q=d.value,{dashed:ae,type:ie,ghost:oe,text:J,color:j,round:re,circle:ce,textColor:le,secondary:se,tertiary:te,quaternary:ne,strong:de}=t,fe={"font-weight":de?ee:K};let ve={"--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"};const ze=ie==="tertiary",Re=ie==="default",ke=ze?"default":ie;if(J){const ut=le||j;ve={"--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":ut||Q[createKey("textColorText",ke)],"--n-text-color-hover":ut?createHoverColor(ut):Q[createKey("textColorTextHover",ke)],"--n-text-color-pressed":ut?createPressedColor(ut):Q[createKey("textColorTextPressed",ke)],"--n-text-color-focus":ut?createHoverColor(ut):Q[createKey("textColorTextHover",ke)],"--n-text-color-disabled":ut||Q[createKey("textColorTextDisabled",ke)]}}else if(oe||ae){const ut=le||j;ve={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":j||Q[createKey("rippleColor",ke)],"--n-text-color":ut||Q[createKey("textColorGhost",ke)],"--n-text-color-hover":ut?createHoverColor(ut):Q[createKey("textColorGhostHover",ke)],"--n-text-color-pressed":ut?createPressedColor(ut):Q[createKey("textColorGhostPressed",ke)],"--n-text-color-focus":ut?createHoverColor(ut):Q[createKey("textColorGhostHover",ke)],"--n-text-color-disabled":ut||Q[createKey("textColorGhostDisabled",ke)]}}else if(se){const ut=Re?Q.textColor:ze?Q.textColorTertiary:Q[createKey("color",ke)],et=j||ut,pt=ie!=="default"&&ie!=="tertiary";ve={"--n-color":pt?changeColor(et,{alpha:Number(Q.colorOpacitySecondary)}):Q.colorSecondary,"--n-color-hover":pt?changeColor(et,{alpha:Number(Q.colorOpacitySecondaryHover)}):Q.colorSecondaryHover,"--n-color-pressed":pt?changeColor(et,{alpha:Number(Q.colorOpacitySecondaryPressed)}):Q.colorSecondaryPressed,"--n-color-focus":pt?changeColor(et,{alpha:Number(Q.colorOpacitySecondaryHover)}):Q.colorSecondaryHover,"--n-color-disabled":Q.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":et,"--n-text-color-hover":et,"--n-text-color-pressed":et,"--n-text-color-focus":et,"--n-text-color-disabled":et}}else if(te||ne){const ut=Re?Q.textColor:ze?Q.textColorTertiary:Q[createKey("color",ke)],et=j||ut;te?(ve["--n-color"]=Q.colorTertiary,ve["--n-color-hover"]=Q.colorTertiaryHover,ve["--n-color-pressed"]=Q.colorTertiaryPressed,ve["--n-color-focus"]=Q.colorSecondaryHover,ve["--n-color-disabled"]=Q.colorTertiary):(ve["--n-color"]=Q.colorQuaternary,ve["--n-color-hover"]=Q.colorQuaternaryHover,ve["--n-color-pressed"]=Q.colorQuaternaryPressed,ve["--n-color-focus"]=Q.colorQuaternaryHover,ve["--n-color-disabled"]=Q.colorQuaternary),ve["--n-ripple-color"]="#0000",ve["--n-text-color"]=et,ve["--n-text-color-hover"]=et,ve["--n-text-color-pressed"]=et,ve["--n-text-color-focus"]=et,ve["--n-text-color-disabled"]=et}else ve={"--n-color":j||Q[createKey("color",ke)],"--n-color-hover":j?createHoverColor(j):Q[createKey("colorHover",ke)],"--n-color-pressed":j?createPressedColor(j):Q[createKey("colorPressed",ke)],"--n-color-focus":j?createHoverColor(j):Q[createKey("colorFocus",ke)],"--n-color-disabled":j||Q[createKey("colorDisabled",ke)],"--n-ripple-color":j||Q[createKey("rippleColor",ke)],"--n-text-color":le||(j?Q.textColorPrimary:ze?Q.textColorTertiary:Q[createKey("textColor",ke)]),"--n-text-color-hover":le||(j?Q.textColorHoverPrimary:Q[createKey("textColorHover",ke)]),"--n-text-color-pressed":le||(j?Q.textColorPressedPrimary:Q[createKey("textColorPressed",ke)]),"--n-text-color-focus":le||(j?Q.textColorFocusPrimary:Q[createKey("textColorFocus",ke)]),"--n-text-color-disabled":le||(j?Q.textColorDisabledPrimary:Q[createKey("textColorDisabled",ke)])};let xe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};J?xe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:xe={"--n-border":Q[createKey("border",ke)],"--n-border-hover":Q[createKey("borderHover",ke)],"--n-border-pressed":Q[createKey("borderPressed",ke)],"--n-border-focus":Q[createKey("borderFocus",ke)],"--n-border-disabled":Q[createKey("borderDisabled",ke)]};const{[createKey("height",q)]:tt,[createKey("fontSize",q)]:me,[createKey("padding",q)]:be,[createKey("paddingRound",q)]:Ne,[createKey("iconSize",q)]:qe,[createKey("borderRadius",q)]:Be,[createKey("iconMargin",q)]:ge,waveOpacity:ot}=Q,lt={"--n-width":ce&&!J?tt:"initial","--n-height":J?"initial":tt,"--n-font-size":me,"--n-padding":ce||J?"initial":re?Ne:be,"--n-icon-size":qe,"--n-icon-margin":ge,"--n-border-radius":J?"initial":ce||re?tt:Be};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":R,"--n-bezier-ease-out":O,"--n-ripple-duration":Y,"--n-opacity-disabled":W,"--n-wave-opacity":ot},fe),ve),xe),lt)}),I=B?useThemeClass("button",computed(()=>{let D="";const{dashed:R,type:O,ghost:Q,text:Y,color:W,round:K,circle:ee,textColor:q,secondary:ae,tertiary:ie,quaternary:oe,strong:J}=t;R&&(D+="a"),Q&&(D+="b"),Y&&(D+="c"),K&&(D+="d"),ee&&(D+="e"),ae&&(D+="f"),ie&&(D+="g"),oe&&(D+="h"),J&&(D+="i"),W&&(D+="j"+color2Class(W)),q&&(D+="k"+color2Class(q));const{value:j}=d;return D+="l"+j[0],D+="m"+O[0],D}),C,t):void 0;return{selfElRef:o,waveElRef:n,mergedClsPrefix:k,mergedFocusable:m,mergedSize:d,showBorder:s,enterPressed:r,rtlEnabled:x,handleMousedown:_,handleKeydown:y,handleBlur:w,handleKeyup:v,handleClick:g,customColorCssVars:computed(()=>{const{color:D}=t;if(!D)return null;const R=createHoverColor(D);return{"--n-border-color":D,"--n-border-color-hover":R,"--n-border-color-pressed":createPressedColor(D),"--n-border-color-focus":R,"--n-border-color-disabled":D}}),cssVars:B?void 0:C,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender}},render(){const{mergedClsPrefix:t,tag:o,onRender:n}=this;n==null||n();const r=resolveWrappedSlot(this.$slots.default,s=>s&&h("span",{class:`${t}-button__content`},s));return h(o,{ref:"selfElRef",class:[this.themeClass,`${t}-button`,`${t}-button--${this.type}-type`,`${t}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${t}-button--rtl`,this.disabled&&`${t}-button--disabled`,this.block&&`${t}-button--block`,this.enterPressed&&`${t}-button--pressed`,!this.text&&this.dashed&&`${t}-button--dashed`,this.color&&`${t}-button--color`,this.secondary&&`${t}-button--secondary`,this.loading&&`${t}-button--loading`,this.ghost&&`${t}-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,h(NFadeInExpandTransition,{width:!0},{default:()=>resolveWrappedSlot(this.$slots.icon,s=>(this.loading||this.renderIcon||s)&&h("span",{class:`${t}-button__icon`,style:{margin:isSlotEmpty(this.$slots.default)?"0":""}},h(NIconSwitchTransition,null,{default:()=>this.loading?h(NBaseLoading,{clsPrefix:t,key:"loading",class:`${t}-icon-slot`,strokeWidth:20}):h("div",{key:"icon",class:`${t}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():s)})))}),this.iconPlacement==="left"&&r,this.text?null:h(NBaseWave,{ref:"waveElRef",clsPrefix:t}),this.showBorder?h("div",{"aria-hidden":!0,class:`${t}-button__border`,style:this.customColorCssVars}):null,this.showBorder?h("div",{"aria-hidden":!0,class:`${t}-button__state-border`,style:this.customColorCssVars}):null)}}),NButton=Button,XButton=Button,zero="0!important",n1="-1px!important";function createLeftBorderStyle(t){return cM(t+"-type",[c$1("& +",[cB("button",{},[cM(t+"-type",[cE("border",{borderLeftWidth:zero}),cE("state-border",{left:n1})])])])])}function createTopBorderStyle(t){return cM(t+"-type",[c$1("& +",[cB("button",[cM(t+"-type",[cE("border",{borderTopWidth:zero}),cE("state-border",{top:n1})])])])])}const style$p=cB("button-group",`
+ flex-wrap: nowrap;
+ display: inline-flex;
+ position: relative;
+`,[cNotM("vertical",{flexDirection:"row"},[cNotM("rtl",[cB("button",[c$1("&:first-child:not(:last-child)",`
+ margin-right: ${zero};
+ border-top-right-radius: ${zero};
+ border-bottom-right-radius: ${zero};
+ `),c$1("&:last-child:not(:first-child)",`
+ margin-left: ${zero};
+ border-top-left-radius: ${zero};
+ border-bottom-left-radius: ${zero};
+ `),c$1("&:not(:first-child):not(:last-child)",`
+ margin-left: ${zero};
+ margin-right: ${zero};
+ border-radius: ${zero};
+ `),createLeftBorderStyle("default"),cM("ghost",[createLeftBorderStyle("primary"),createLeftBorderStyle("info"),createLeftBorderStyle("success"),createLeftBorderStyle("warning"),createLeftBorderStyle("error")])])])]),cM("vertical",{flexDirection:"column"},[cB("button",[c$1("&:first-child:not(:last-child)",`
+ margin-bottom: ${zero};
+ margin-left: ${zero};
+ margin-right: ${zero};
+ border-bottom-left-radius: ${zero};
+ border-bottom-right-radius: ${zero};
+ `),c$1("&:last-child:not(:first-child)",`
+ margin-top: ${zero};
+ margin-left: ${zero};
+ margin-right: ${zero};
+ border-top-left-radius: ${zero};
+ border-top-right-radius: ${zero};
+ `),c$1("&:not(:first-child):not(:last-child)",`
+ margin: ${zero};
+ border-radius: ${zero};
+ `),createTopBorderStyle("default"),cM("ghost",[createTopBorderStyle("primary"),createTopBorderStyle("info"),createTopBorderStyle("success"),createTopBorderStyle("warning"),createTopBorderStyle("error")])])])]),buttonGroupProps={size:{type:String,default:void 0},vertical:Boolean},NButtonGroup=defineComponent({name:"ButtonGroup",props:buttonGroupProps,setup(t){const{mergedClsPrefixRef:o,mergedRtlRef:n}=useConfig(t);return useStyle("-button-group",style$p,o),provide(buttonGroupInjectionKey,t),{rtlEnabled:useRtl("ButtonGroup",n,o),mergedClsPrefix:o}},render(){const{mergedClsPrefix:t}=this;return h("div",{class:[`${t}-button-group`,this.rtlEnabled&&`${t}-button-group--rtl`,this.vertical&&`${t}-button-group--vertical`],role:"group"},this.$slots)}}),START_YEAR=1901,MONTH_ITEM_HEIGHT=40,matcherMap={date:isSameDay,month:isSameMonth,year:isSameYear,quarter:isSameQuarter};function matchDate(t,o,n){const r=matcherMap[n];return Array.isArray(t)?t.some(s=>r(s,o)):r(t,o)}function dateItem(t,o,n,r){let s=!1,l=!1,d=!1;Array.isArray(n)&&(n[0]{const{primaryColor:o,borderRadius:n,lineHeight:r,fontSize:s,cardColor:l,textColor2:d,textColor1:m,dividerColor:_,fontWeightStrong:g,closeIconColor:v,closeIconColorHover:y,closeIconColorPressed:w,closeColorHover:B,closeColorPressed:k,modalColor:N,boxShadow1:S,popoverColor:x,actionColor:C}=t;return Object.assign(Object.assign({},commonVariables$6),{lineHeight:r,color:l,colorModal:N,colorPopover:x,colorTarget:o,colorEmbedded:C,colorEmbeddedModal:C,colorEmbeddedPopover:C,textColor:d,titleTextColor:m,borderColor:_,actionColor:C,titleFontWeight:g,closeColorHover:B,closeColorPressed:k,closeBorderRadius:n,closeIconColor:v,closeIconColorHover:y,closeIconColorPressed:w,fontSizeSmall:s,fontSizeMedium:s,fontSizeLarge:s,fontSizeHuge:s,boxShadow:S,borderRadius:n})},cardLight={name:"Card",common:commonLight,self:self$n},cardLight$1=cardLight,style$o=c$1([cB("card",`
+ font-size: var(--n-font-size);
+ line-height: var(--n-line-height);
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+ box-sizing: border-box;
+ position: relative;
+ border-radius: var(--n-border-radius);
+ background-color: var(--n-color);
+ color: var(--n-text-color);
+ word-break: break-word;
+ transition:
+ color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+ `,[asModal({background:"var(--n-color-modal)"}),cM("hoverable",[c$1("&:hover","box-shadow: var(--n-box-shadow);")]),cM("content-segmented",[c$1(">",[cE("content",{paddingTop:"var(--n-padding-bottom)"})])]),cM("content-soft-segmented",[c$1(">",[cE("content",`
+ margin: 0 var(--n-padding-left);
+ padding: var(--n-padding-bottom) 0;
+ `)])]),cM("footer-segmented",[c$1(">",[cE("footer",{paddingTop:"var(--n-padding-bottom)"})])]),cM("footer-soft-segmented",[c$1(">",[cE("footer",`
+ padding: var(--n-padding-bottom) 0;
+ margin: 0 var(--n-padding-left);
+ `)])]),c$1(">",[cB("card-header",`
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ font-size: var(--n-title-font-size);
+ padding:
+ var(--n-padding-top)
+ var(--n-padding-left)
+ var(--n-padding-bottom)
+ var(--n-padding-left);
+ `,[cE("main",`
+ font-weight: var(--n-title-font-weight);
+ transition: color .3s var(--n-bezier);
+ flex: 1;
+ min-width: 0;
+ color: var(--n-title-text-color);
+ `),cE("extra",`
+ display: flex;
+ align-items: center;
+ font-size: var(--n-font-size);
+ font-weight: 400;
+ transition: color .3s var(--n-bezier);
+ color: var(--n-text-color);
+ `),cE("close",`
+ margin: 0 0 0 8px;
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ `)]),cE("action",`
+ box-sizing: border-box;
+ transition:
+ background-color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+ background-clip: padding-box;
+ background-color: var(--n-action-color);
+ `),cE("content","flex: 1; min-width: 0;"),cE("content, footer",`
+ box-sizing: border-box;
+ padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
+ font-size: var(--n-font-size);
+ `,[c$1("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),cE("action",`
+ background-color: var(--n-action-color);
+ padding: var(--n-padding-bottom) var(--n-padding-left);
+ border-bottom-left-radius: var(--n-border-radius);
+ border-bottom-right-radius: var(--n-border-radius);
+ `)]),cB("card-cover",`
+ overflow: hidden;
+ width: 100%;
+ border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
+ `,[c$1("img",`
+ display: block;
+ width: 100%;
+ `)]),cM("bordered",`
+ border: 1px solid var(--n-border-color);
+ `,[c$1("&:target","border-color: var(--n-color-target);")]),cM("action-segmented",[c$1(">",[cE("action",[c$1("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),cM("content-segmented, content-soft-segmented",[c$1(">",[cE("content",{transition:"border-color 0.3s var(--n-bezier)"},[c$1("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),cM("footer-segmented, footer-soft-segmented",[c$1(">",[cE("footer",{transition:"border-color 0.3s var(--n-bezier)"},[c$1("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),cM("embedded",`
+ background-color: var(--n-color-embedded);
+ `)]),insideModal(cB("card",`
+ background: var(--n-color-modal);
+ `,[cM("embedded",`
+ background-color: var(--n-color-embedded-modal);
+ `)])),insidePopover(cB("card",`
+ background: var(--n-color-popover);
+ `,[cM("embedded",`
+ background-color: var(--n-color-embedded-popover);
+ `)]))]),cardBaseProps={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},cardBasePropKeys=keysOf(cardBaseProps),cardProps=Object.assign(Object.assign({},useTheme.props),cardBaseProps),NCard=defineComponent({name:"Card",props:cardProps,setup(t){const o=()=>{const{onClose:g}=t;g&&call(g)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:s}=useConfig(t),l=useTheme("Card","-card",style$o,cardLight$1,t,r),d=useRtl("Card",s,r),m=computed(()=>{const{size:g}=t,{self:{color:v,colorModal:y,colorTarget:w,textColor:B,titleTextColor:k,titleFontWeight:N,borderColor:S,actionColor:x,borderRadius:C,lineHeight:I,closeIconColor:D,closeIconColorHover:R,closeIconColorPressed:O,closeColorHover:Q,closeColorPressed:Y,closeBorderRadius:W,closeIconSize:K,closeSize:ee,boxShadow:q,colorPopover:ae,colorEmbedded:ie,colorEmbeddedModal:oe,colorEmbeddedPopover:J,[createKey("padding",g)]:j,[createKey("fontSize",g)]:re,[createKey("titleFontSize",g)]:ce},common:{cubicBezierEaseInOut:le}}=l.value,{top:se,left:te,bottom:ne}=getMargin(j);return{"--n-bezier":le,"--n-border-radius":C,"--n-color":v,"--n-color-modal":y,"--n-color-popover":ae,"--n-color-embedded":ie,"--n-color-embedded-modal":oe,"--n-color-embedded-popover":J,"--n-color-target":w,"--n-text-color":B,"--n-line-height":I,"--n-action-color":x,"--n-title-text-color":k,"--n-title-font-weight":N,"--n-close-icon-color":D,"--n-close-icon-color-hover":R,"--n-close-icon-color-pressed":O,"--n-close-color-hover":Q,"--n-close-color-pressed":Y,"--n-border-color":S,"--n-box-shadow":q,"--n-padding-top":se,"--n-padding-bottom":ne,"--n-padding-left":te,"--n-font-size":re,"--n-title-font-size":ce,"--n-close-size":ee,"--n-close-icon-size":K,"--n-close-border-radius":W}}),_=n?useThemeClass("card",computed(()=>t.size[0]),m,t):void 0;return{rtlEnabled:d,mergedClsPrefix:r,mergedTheme:l,handleCloseClick:o,cssVars:n?void 0:m,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){const{segmented:t,bordered:o,hoverable:n,mergedClsPrefix:r,rtlEnabled:s,onRender:l,embedded:d,tag:m,$slots:_}=this;return l==null||l(),h(m,{class:[`${r}-card`,this.themeClass,d&&`${r}-card--embedded`,{[`${r}-card--rtl`]:s,[`${r}-card--content${typeof t!="boolean"&&t.content==="soft"?"-soft":""}-segmented`]:t===!0||t!==!1&&t.content,[`${r}-card--footer${typeof t!="boolean"&&t.footer==="soft"?"-soft":""}-segmented`]:t===!0||t!==!1&&t.footer,[`${r}-card--action-segmented`]:t===!0||t!==!1&&t.action,[`${r}-card--bordered`]:o,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},resolveWrappedSlot(_.cover,g=>g&&h("div",{class:`${r}-card-cover`,role:"none"},g)),resolveWrappedSlot(_.header,g=>g||this.title||this.closable?h("div",{class:`${r}-card-header`,style:this.headerStyle},h("div",{class:`${r}-card-header__main`,role:"heading"},g||this.title),resolveWrappedSlot(_["header-extra"],v=>v&&h("div",{class:`${r}-card-header__extra`,style:this.headerExtraStyle},v)),this.closable?h(NBaseClose,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),resolveWrappedSlot(_.default,g=>g&&h("div",{class:`${r}-card__content`,style:this.contentStyle,role:"none"},g)),resolveWrappedSlot(_.footer,g=>g&&[h("div",{class:`${r}-card__footer`,style:this.footerStyle,role:"none"},g)]),resolveWrappedSlot(_.action,g=>g&&h("div",{class:`${r}-card__action`,role:"none"},g)))}}),commonVariables$5={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},self$m=t=>{const{baseColor:o,inputColorDisabled:n,cardColor:r,modalColor:s,popoverColor:l,textColorDisabled:d,borderColor:m,primaryColor:_,textColor2:g,fontSizeSmall:v,fontSizeMedium:y,fontSizeLarge:w,borderRadiusSmall:B,lineHeight:k}=t;return Object.assign(Object.assign({},commonVariables$5),{labelLineHeight:k,fontSizeSmall:v,fontSizeMedium:y,fontSizeLarge:w,borderRadius:B,color:o,colorChecked:_,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:s,colorTableHeaderPopover:l,checkMarkColor:o,checkMarkColorDisabled:d,checkMarkColorDisabledChecked:d,border:`1px solid ${m}`,borderDisabled:`1px solid ${m}`,borderDisabledChecked:`1px solid ${m}`,borderChecked:`1px solid ${_}`,borderFocus:`1px solid ${_}`,boxShadowFocus:`0 0 0 2px ${changeColor(_,{alpha:.3})}`,textColor:g,textColorDisabled:d})},checkboxLight={name:"Checkbox",common:commonLight,self:self$m},checkboxLight$1=checkboxLight,CheckMark=h("svg",{viewBox:"0 0 64 64",class:"check-icon"},h("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"})),LineMark=h("svg",{viewBox:"0 0 100 100",class:"line-icon"},h("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"})),checkboxGroupInjectionKey="n-checkbox-group",checkboxGroupProps={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]},NCheckboxGroup=defineComponent({name:"CheckboxGroup",props:checkboxGroupProps,setup(t){const{mergedClsPrefixRef:o}=useConfig(t),n=useFormItem(t),{mergedSizeRef:r,mergedDisabledRef:s}=n,l=ref(t.defaultValue),d=computed(()=>t.value),m=useMergedState(d,l),_=computed(()=>{var y;return((y=m.value)===null||y===void 0?void 0:y.length)||0}),g=computed(()=>Array.isArray(m.value)?new Set(m.value):new Set);function v(y,w){const{nTriggerFormInput:B,nTriggerFormChange:k}=n,{onChange:N,"onUpdate:value":S,onUpdateValue:x}=t;if(Array.isArray(m.value)){const C=Array.from(m.value),I=C.findIndex(D=>D===w);y?~I||(C.push(w),x&&call(x,C,{actionType:"check",value:w}),S&&call(S,C,{actionType:"check",value:w}),B(),k(),l.value=C,N&&call(N,C)):~I&&(C.splice(I,1),x&&call(x,C,{actionType:"uncheck",value:w}),S&&call(S,C,{actionType:"uncheck",value:w}),N&&call(N,C),l.value=C,B(),k())}else y?(x&&call(x,[w],{actionType:"check",value:w}),S&&call(S,[w],{actionType:"check",value:w}),N&&call(N,[w]),l.value=[w],B(),k()):(x&&call(x,[],{actionType:"uncheck",value:w}),S&&call(S,[],{actionType:"uncheck",value:w}),N&&call(N,[]),l.value=[],B(),k())}return provide(checkboxGroupInjectionKey,{checkedCountRef:_,maxRef:toRef(t,"max"),minRef:toRef(t,"min"),valueSetRef:g,disabledRef:s,mergedSizeRef:r,toggleCheckbox:v}),{mergedClsPrefix:o}},render(){return h("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),style$n=c$1([cB("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);
+ `,[cM("show-label","line-height: var(--n-label-line-height);"),c$1("&:hover",[cB("checkbox-box",[cE("border","border: var(--n-border-checked);")])]),c$1("&:focus:not(:active)",[cB("checkbox-box",[cE("border",`
+ border: var(--n-border-focus);
+ box-shadow: var(--n-box-shadow-focus);
+ `)])]),cM("inside-table",[cB("checkbox-box",`
+ background-color: var(--n-merged-color-table);
+ `)]),cM("checked",[cB("checkbox-box",`
+ background-color: var(--n-color-checked);
+ `,[cB("checkbox-icon",[c$1(".check-icon",`
+ opacity: 1;
+ transform: scale(1);
+ `)])])]),cM("indeterminate",[cB("checkbox-box",[cB("checkbox-icon",[c$1(".check-icon",`
+ opacity: 0;
+ transform: scale(.5);
+ `),c$1(".line-icon",`
+ opacity: 1;
+ transform: scale(1);
+ `)])])]),cM("checked, indeterminate",[c$1("&:focus:not(:active)",[cB("checkbox-box",[cE("border",`
+ border: var(--n-border-checked);
+ box-shadow: var(--n-box-shadow-focus);
+ `)])]),cB("checkbox-box",`
+ background-color: var(--n-color-checked);
+ border-left: 0;
+ border-top: 0;
+ `,[cE("border",{border:"var(--n-border-checked)"})])]),cM("disabled",{cursor:"not-allowed"},[cM("checked",[cB("checkbox-box",`
+ background-color: var(--n-color-disabled-checked);
+ `,[cE("border",{border:"var(--n-border-disabled-checked)"}),cB("checkbox-icon",[c$1(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),cB("checkbox-box",`
+ background-color: var(--n-color-disabled);
+ `,[cE("border",`
+ border: var(--n-border-disabled);
+ `),cB("checkbox-icon",[c$1(".check-icon, .line-icon",`
+ fill: var(--n-check-mark-color-disabled);
+ `)])]),cE("label",`
+ color: var(--n-text-color-disabled);
+ `)]),cB("checkbox-box-wrapper",`
+ position: relative;
+ width: var(--n-size);
+ flex-shrink: 0;
+ flex-grow: 0;
+ user-select: none;
+ -webkit-user-select: none;
+ `),cB("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);
+ `,[cE("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);
+ `),cB("checkbox-icon",`
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ position: absolute;
+ left: 1px;
+ right: 1px;
+ top: 1px;
+ bottom: 1px;
+ `,[c$1(".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);
+ `),iconSwitchTransition({left:"1px",top:"1px"})])]),cE("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);
+ `,[c$1("&:empty",{display:"none"})])]),insideModal(cB("checkbox",`
+ --n-merged-color-table: var(--n-color-table-modal);
+ `)),insidePopover(cB("checkbox",`
+ --n-merged-color-table: var(--n-color-table-popover);
+ `))]),checkboxProps=Object.assign(Object.assign({},useTheme.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]}),NCheckbox=defineComponent({name:"Checkbox",props:checkboxProps,setup(t){const o=ref(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:s}=useConfig(t),l=useFormItem(t,{mergedSize(O){const{size:Q}=t;if(Q!==void 0)return Q;if(_){const{value:Y}=_.mergedSizeRef;if(Y!==void 0)return Y}if(O){const{mergedSize:Y}=O;if(Y!==void 0)return Y.value}return"medium"},mergedDisabled(O){const{disabled:Q}=t;if(Q!==void 0)return Q;if(_){if(_.disabledRef.value)return!0;const{maxRef:{value:Y},checkedCountRef:W}=_;if(Y!==void 0&&W.value>=Y&&!w.value)return!0;const{minRef:{value:K}}=_;if(K!==void 0&&W.value<=K&&w.value)return!0}return O?O.disabled.value:!1}}),{mergedDisabledRef:d,mergedSizeRef:m}=l,_=inject(checkboxGroupInjectionKey,null),g=ref(t.defaultChecked),v=toRef(t,"checked"),y=useMergedState(v,g),w=useMemo(()=>{if(_){const O=_.valueSetRef.value;return O&&t.value!==void 0?O.has(t.value):!1}else return y.value===t.checkedValue}),B=useTheme("Checkbox","-checkbox",style$n,checkboxLight$1,t,n);function k(O){if(_&&t.value!==void 0)_.toggleCheckbox(!w.value,t.value);else{const{onChange:Q,"onUpdate:checked":Y,onUpdateChecked:W}=t,{nTriggerFormInput:K,nTriggerFormChange:ee}=l,q=w.value?t.uncheckedValue:t.checkedValue;Y&&call(Y,q,O),W&&call(W,q,O),Q&&call(Q,q,O),K(),ee(),g.value=q}}function N(O){d.value||k(O)}function S(O){if(!d.value)switch(O.key){case" ":case"Enter":k(O)}}function x(O){switch(O.key){case" ":O.preventDefault()}}const C={focus:()=>{var O;(O=o.value)===null||O===void 0||O.focus()},blur:()=>{var O;(O=o.value)===null||O===void 0||O.blur()}},I=useRtl("Checkbox",s,n),D=computed(()=>{const{value:O}=m,{common:{cubicBezierEaseInOut:Q},self:{borderRadius:Y,color:W,colorChecked:K,colorDisabled:ee,colorTableHeader:q,colorTableHeaderModal:ae,colorTableHeaderPopover:ie,checkMarkColor:oe,checkMarkColorDisabled:J,border:j,borderFocus:re,borderDisabled:ce,borderChecked:le,boxShadowFocus:se,textColor:te,textColorDisabled:ne,checkMarkColorDisabledChecked:de,colorDisabledChecked:fe,borderDisabledChecked:ve,labelPadding:ze,labelLineHeight:Re,labelFontWeight:ke,[createKey("fontSize",O)]:xe,[createKey("size",O)]:tt}}=B.value;return{"--n-label-line-height":Re,"--n-label-font-weight":ke,"--n-size":tt,"--n-bezier":Q,"--n-border-radius":Y,"--n-border":j,"--n-border-checked":le,"--n-border-focus":re,"--n-border-disabled":ce,"--n-border-disabled-checked":ve,"--n-box-shadow-focus":se,"--n-color":W,"--n-color-checked":K,"--n-color-table":q,"--n-color-table-modal":ae,"--n-color-table-popover":ie,"--n-color-disabled":ee,"--n-color-disabled-checked":fe,"--n-text-color":te,"--n-text-color-disabled":ne,"--n-check-mark-color":oe,"--n-check-mark-color-disabled":J,"--n-check-mark-color-disabled-checked":de,"--n-font-size":xe,"--n-label-padding":ze}}),R=r?useThemeClass("checkbox",computed(()=>m.value[0]),D,t):void 0;return Object.assign(l,C,{rtlEnabled:I,selfRef:o,mergedClsPrefix:n,mergedDisabled:d,renderedChecked:w,mergedTheme:B,labelId:createId(),handleClick:N,handleKeyUp:S,handleKeyDown:x,cssVars:r?void 0:D,themeClass:R==null?void 0:R.themeClass,onRender:R==null?void 0:R.onRender})},render(){var t;const{$slots:o,renderedChecked:n,mergedDisabled:r,indeterminate:s,privateInsideTable:l,cssVars:d,labelId:m,label:_,mergedClsPrefix:g,focusable:v,handleKeyUp:y,handleKeyDown:w,handleClick:B}=this;(t=this.onRender)===null||t===void 0||t.call(this);const k=resolveWrappedSlot(o.default,N=>_||N?h("span",{class:`${g}-checkbox__label`,id:m},_||N):null);return h("div",{ref:"selfRef",class:[`${g}-checkbox`,this.themeClass,this.rtlEnabled&&`${g}-checkbox--rtl`,n&&`${g}-checkbox--checked`,r&&`${g}-checkbox--disabled`,s&&`${g}-checkbox--indeterminate`,l&&`${g}-checkbox--inside-table`,k&&`${g}-checkbox--show-label`],tabindex:r||!v?void 0:0,role:"checkbox","aria-checked":s?"mixed":n,"aria-labelledby":m,style:d,onKeyup:y,onKeydown:w,onClick:B,onMousedown:()=>{on$1("selectstart",window,N=>{N.preventDefault()},{once:!0})}},h("div",{class:`${g}-checkbox-box-wrapper`}," ",h("div",{class:`${g}-checkbox-box`},h(NIconSwitchTransition,null,{default:()=>this.indeterminate?h("div",{key:"indeterminate",class:`${g}-checkbox-icon`},LineMark):h("div",{key:"check",class:`${g}-checkbox-icon`},CheckMark)}),h("div",{class:`${g}-checkbox-box__border`}))),k)}}),configProviderProps={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:{type:String,default:defaultClsPrefix},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,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(warn$2("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},NConfigProvider=defineComponent({name:"ConfigProvider",alias:["App"],props:configProviderProps,setup(t){const o=inject(configProviderInjectionKey,null),n=computed(()=>{const{theme:k}=t;if(k===null)return;const N=o==null?void 0:o.mergedThemeRef.value;return k===void 0?N:N===void 0?k:Object.assign({},N,k)}),r=computed(()=>{const{themeOverrides:k}=t;if(k!==null){if(k===void 0)return o==null?void 0:o.mergedThemeOverridesRef.value;{const N=o==null?void 0:o.mergedThemeOverridesRef.value;return N===void 0?k:merge$2({},N,k)}}}),s=useMemo(()=>{const{namespace:k}=t;return k===void 0?o==null?void 0:o.mergedNamespaceRef.value:k}),l=useMemo(()=>{const{bordered:k}=t;return k===void 0?o==null?void 0:o.mergedBorderedRef.value:k}),d=computed(()=>{const{icons:k}=t;return k===void 0?o==null?void 0:o.mergedIconsRef.value:k}),m=computed(()=>{const{componentOptions:k}=t;return k!==void 0?k:o==null?void 0:o.mergedComponentPropsRef.value}),_=computed(()=>{const{clsPrefix:k}=t;return k!==void 0?k:o?o.mergedClsPrefixRef.value:defaultClsPrefix}),g=computed(()=>{var k;const{rtl:N}=t;if(N===void 0)return o==null?void 0:o.mergedRtlRef.value;const S={};for(const x of N)S[x.name]=markRaw(x),(k=x.peers)===null||k===void 0||k.forEach(C=>{C.name in S||(S[C.name]=markRaw(C))});return S}),v=computed(()=>t.breakpoints||(o==null?void 0:o.mergedBreakpointsRef.value)),y=t.inlineThemeDisabled||(o==null?void 0:o.inlineThemeDisabled),w=t.preflightStyleDisabled||(o==null?void 0:o.preflightStyleDisabled),B=computed(()=>{const{value:k}=n,{value:N}=r,S=N&&Object.keys(N).length!==0,x=k==null?void 0:k.name;return x?S?`${x}-${murmur2(JSON.stringify(r.value))}`:x:S?murmur2(JSON.stringify(r.value)):""});return provide(configProviderInjectionKey,{mergedThemeHashRef:B,mergedBreakpointsRef:v,mergedRtlRef:g,mergedIconsRef:d,mergedComponentPropsRef:m,mergedBorderedRef:l,mergedNamespaceRef:s,mergedClsPrefixRef:_,mergedLocaleRef:computed(()=>{const{locale:k}=t;if(k!==null)return k===void 0?o==null?void 0:o.mergedLocaleRef.value:k}),mergedDateLocaleRef:computed(()=>{const{dateLocale:k}=t;if(k!==null)return k===void 0?o==null?void 0:o.mergedDateLocaleRef.value:k}),mergedHljsRef:computed(()=>{const{hljs:k}=t;return k===void 0?o==null?void 0:o.mergedHljsRef.value:k}),mergedKatexRef:computed(()=>{const{katex:k}=t;return k===void 0?o==null?void 0:o.mergedKatexRef.value:k}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:y||!1,preflightStyleDisabled:w||!1}),{mergedClsPrefix:_,mergedBordered:l,mergedNamespace:s,mergedTheme:n,mergedThemeOverrides:r}},render(){var t,o,n,r;return this.abstract?(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n):h(this.as||this.tag,{class:`${this.mergedClsPrefix||defaultClsPrefix}-config-provider`},(o=(t=this.$slots).default)===null||o===void 0?void 0:o.call(t))}});function self$l(t){const{boxShadow2:o}=t;return{menuBoxShadow:o}}const popselectLight={name:"Popselect",common:commonLight,peers:{Popover:popoverLight$1,InternalSelectMenu:internalSelectMenuLight$1},self:self$l},popselectLight$1=popselectLight,popselectInjectionKey="n-popselect",style$m=cB("popselect-menu",`
+ box-shadow: var(--n-menu-box-shadow);
+`),panelProps$1={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},panelPropKeys$1=keysOf(panelProps$1),NPopselectPanel=defineComponent({name:"PopselectPanel",props:panelProps$1,setup(t){const o=inject(popselectInjectionKey),{mergedClsPrefixRef:n,inlineThemeDisabled:r}=useConfig(t),s=useTheme("Popselect","-pop-select",style$m,popselectLight$1,o.props,n),l=computed(()=>createTreeMate(t.options,createTmOptions("value","children")));function d(w,B){const{onUpdateValue:k,"onUpdate:value":N,onChange:S}=t;k&&call(k,w,B),N&&call(N,w,B),S&&call(S,w,B)}function m(w){g(w.key)}function _(w){happensIn(w,"action")||w.preventDefault()}function g(w){const{value:{getNode:B}}=l;if(t.multiple)if(Array.isArray(t.value)){const k=[],N=[];let S=!0;t.value.forEach(x=>{if(x===w){S=!1;return}const C=B(x);C&&(k.push(C.key),N.push(C.rawNode))}),S&&(k.push(w),N.push(B(w).rawNode)),d(k,N)}else{const k=B(w);k&&d([w],[k.rawNode])}else if(t.value===w&&t.cancelable)d(null,null);else{const k=B(w);k&&d(w,k.rawNode);const{"onUpdate:show":N,onUpdateShow:S}=o.props;N&&call(N,!1),S&&call(S,!1),o.setShow(!1)}nextTick(()=>{o.syncPosition()})}watch(toRef(t,"options"),()=>{nextTick(()=>{o.syncPosition()})});const v=computed(()=>{const{self:{menuBoxShadow:w}}=s.value;return{"--n-menu-box-shadow":w}}),y=r?useThemeClass("select",void 0,v,o.props):void 0;return{mergedTheme:o.mergedThemeRef,mergedClsPrefix:n,treeMate:l,handleToggle:m,handleMenuMousedown:_,cssVars:r?void 0:v,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){var t;return(t=this.onRender)===null||t===void 0||t.call(this),h(NInternalSelectMenu,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{action:()=>{var o,n;return((n=(o=this.$slots).action)===null||n===void 0?void 0:n.call(o))||[]},empty:()=>{var o,n;return((n=(o=this.$slots).empty)===null||n===void 0?void 0:n.call(o))||[]}})}}),popselectProps=Object.assign(Object.assign(Object.assign(Object.assign({},useTheme.props),omit(popoverBaseProps,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},popoverBaseProps.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),panelProps$1),NPopselect=defineComponent({name:"Popselect",props:popselectProps,inheritAttrs:!1,__popover__:!0,setup(t){const{mergedClsPrefixRef:o}=useConfig(t),n=useTheme("Popselect","-popselect",void 0,popselectLight$1,t,o),r=ref(null);function s(){var m;(m=r.value)===null||m===void 0||m.syncPosition()}function l(m){var _;(_=r.value)===null||_===void 0||_.setShow(m)}return provide(popselectInjectionKey,{props:t,mergedThemeRef:n,syncPosition:s,setShow:l}),Object.assign(Object.assign({},{syncPosition:s,setShow:l}),{popoverInstRef:r,mergedTheme:n})},render(){const{mergedTheme:t}=this,o={theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(n,r,s,l,d)=>{const{$attrs:m}=this;return h(NPopselectPanel,Object.assign({},m,{class:[m.class,n],style:[m.style,s]},keep(this.$props,panelPropKeys$1),{ref:createRefSetter(r),onMouseenter:mergeEventHandlers([l,m.onMouseenter]),onMouseleave:mergeEventHandlers([d,m.onMouseleave])}),{action:()=>{var _,g;return(g=(_=this.$slots).action)===null||g===void 0?void 0:g.call(_)},empty:()=>{var _,g;return(g=(_=this.$slots).empty)===null||g===void 0?void 0:g.call(_)}})}};return h(NPopover,Object.assign({},omit(this.$props,panelPropKeys$1),o,{internalDeactivateImmediately:!0}),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}});function self$k(t){const{boxShadow2:o}=t;return{menuBoxShadow:o}}const selectLight={name:"Select",common:commonLight,peers:{InternalSelection:internalSelectionLight$1,InternalSelectMenu:internalSelectMenuLight$1},self:self$k},selectLight$1=selectLight,style$l=c$1([cB("select",`
+ z-index: auto;
+ outline: none;
+ width: 100%;
+ position: relative;
+ `),cB("select-menu",`
+ margin: 4px 0;
+ box-shadow: var(--n-menu-box-shadow);
+ `,[fadeInScaleUpTransition({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),selectProps=Object.assign(Object.assign({},useTheme.props),{to:useAdjustedTo.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),NSelect=defineComponent({name:"Select",props:selectProps,setup(t){const{mergedClsPrefixRef:o,mergedBorderedRef:n,namespaceRef:r,inlineThemeDisabled:s}=useConfig(t),l=useTheme("Select","-select",style$l,selectLight$1,t,o),d=ref(t.defaultValue),m=toRef(t,"value"),_=useMergedState(m,d),g=ref(!1),v=ref(""),y=computed(()=>{const{valueField:ye,childrenField:Qe}=t,Ce=createTmOptions(ye,Qe);return createTreeMate(q.value,Ce)}),w=computed(()=>createValOptMap(K.value,t.valueField,t.childrenField)),B=ref(!1),k=useMergedState(toRef(t,"show"),B),N=ref(null),S=ref(null),x=ref(null),{localeRef:C}=useLocale("Select"),I=computed(()=>{var ye;return(ye=t.placeholder)!==null&&ye!==void 0?ye:C.value.placeholder}),D=useCompitable(t,["items","options"]),R=[],O=ref([]),Q=ref([]),Y=ref(new Map),W=computed(()=>{const{fallbackOption:ye}=t;if(ye===void 0){const{labelField:Qe,valueField:Ce}=t;return nt=>({[Qe]:String(nt),[Ce]:nt})}return ye===!1?!1:Qe=>Object.assign(ye(Qe),{value:Qe})}),K=computed(()=>Q.value.concat(O.value).concat(D.value)),ee=computed(()=>{const{filter:ye}=t;if(ye)return ye;const{labelField:Qe,valueField:Ce}=t;return(nt,ft)=>{if(!ft)return!1;const Le=ft[Qe];if(typeof Le=="string")return patternMatched(nt,Le);const it=ft[Ce];return typeof it=="string"?patternMatched(nt,it):typeof it=="number"?patternMatched(nt,String(it)):!1}}),q=computed(()=>{if(t.remote)return D.value;{const{value:ye}=K,{value:Qe}=v;return!Qe.length||!t.filterable?ye:filterOptions(ye,ee.value,Qe,t.childrenField)}});function ae(ye){const Qe=t.remote,{value:Ce}=Y,{value:nt}=w,{value:ft}=W,Le=[];return ye.forEach(it=>{if(nt.has(it))Le.push(nt.get(it));else if(Qe&&Ce.has(it))Le.push(Ce.get(it));else if(ft){const _t=ft(it);_t&&Le.push(_t)}}),Le}const ie=computed(()=>{if(t.multiple){const{value:ye}=_;return Array.isArray(ye)?ae(ye):[]}return null}),oe=computed(()=>{const{value:ye}=_;return!t.multiple&&!Array.isArray(ye)?ye===null?null:ae([ye])[0]||null:null}),J=useFormItem(t),{mergedSizeRef:j,mergedDisabledRef:re,mergedStatusRef:ce}=J;function le(ye,Qe){const{onChange:Ce,"onUpdate:value":nt,onUpdateValue:ft}=t,{nTriggerFormChange:Le,nTriggerFormInput:it}=J;Ce&&call(Ce,ye,Qe),ft&&call(ft,ye,Qe),nt&&call(nt,ye,Qe),d.value=ye,Le(),it()}function se(ye){const{onBlur:Qe}=t,{nTriggerFormBlur:Ce}=J;Qe&&call(Qe,ye),Ce()}function te(){const{onClear:ye}=t;ye&&call(ye)}function ne(ye){const{onFocus:Qe,showOnFocus:Ce}=t,{nTriggerFormFocus:nt}=J;Qe&&call(Qe,ye),nt(),Ce&&Re()}function de(ye){const{onSearch:Qe}=t;Qe&&call(Qe,ye)}function fe(ye){const{onScroll:Qe}=t;Qe&&call(Qe,ye)}function ve(){var ye;const{remote:Qe,multiple:Ce}=t;if(Qe){const{value:nt}=Y;if(Ce){const{valueField:ft}=t;(ye=ie.value)===null||ye===void 0||ye.forEach(Le=>{nt.set(Le[ft],Le)})}else{const ft=oe.value;ft&&nt.set(ft[t.valueField],ft)}}}function ze(ye){const{onUpdateShow:Qe,"onUpdate:show":Ce}=t;Qe&&call(Qe,ye),Ce&&call(Ce,ye),B.value=ye}function Re(){re.value||(ze(!0),B.value=!0,t.filterable&&Me())}function ke(){ze(!1)}function xe(){v.value="",Q.value=R}const tt=ref(!1);function me(){t.filterable&&(tt.value=!0)}function be(){t.filterable&&(tt.value=!1,k.value||xe())}function Ne(){re.value||(k.value?t.filterable?Me():ke():Re())}function qe(ye){var Qe,Ce;!((Ce=(Qe=x.value)===null||Qe===void 0?void 0:Qe.selfRef)===null||Ce===void 0)&&Ce.contains(ye.relatedTarget)||(g.value=!1,se(ye),ke())}function Be(ye){ne(ye),g.value=!0}function ge(ye){g.value=!0}function ot(ye){var Qe;!((Qe=N.value)===null||Qe===void 0)&&Qe.$el.contains(ye.relatedTarget)||(g.value=!1,se(ye),ke())}function lt(){var ye;(ye=N.value)===null||ye===void 0||ye.focus(),ke()}function ut(ye){var Qe;k.value&&(!((Qe=N.value)===null||Qe===void 0)&&Qe.$el.contains(getPreciseEventTarget(ye))||ke())}function et(ye){if(!Array.isArray(ye))return[];if(W.value)return Array.from(ye);{const{remote:Qe}=t,{value:Ce}=w;if(Qe){const{value:nt}=Y;return ye.filter(ft=>Ce.has(ft)||nt.has(ft))}else return ye.filter(nt=>Ce.has(nt))}}function pt(ye){Ie(ye.rawNode)}function Ie(ye){if(re.value)return;const{tag:Qe,remote:Ce,clearFilterAfterSelect:nt,valueField:ft}=t;if(Qe&&!Ce){const{value:Le}=Q,it=Le[0]||null;if(it){const _t=O.value;_t.length?_t.push(it):O.value=[it],Q.value=R}}if(Ce&&Y.value.set(ye[ft],ye),t.multiple){const Le=et(_.value),it=Le.findIndex(_t=>_t===ye[ft]);if(~it){if(Le.splice(it,1),Qe&&!Ce){const _t=at(ye[ft]);~_t&&(O.value.splice(_t,1),nt&&(v.value=""))}}else Le.push(ye[ft]),nt&&(v.value="");le(Le,ae(Le))}else{if(Qe&&!Ce){const Le=at(ye[ft]);~Le?O.value=[O.value[Le]]:O.value=R}De(),ke(),le(ye[ft],ye)}}function at(ye){return O.value.findIndex(Ce=>Ce[t.valueField]===ye)}function He(ye){k.value||Re();const{value:Qe}=ye.target;v.value=Qe;const{tag:Ce,remote:nt}=t;if(de(Qe),Ce&&!nt){if(!Qe){Q.value=R;return}const{onCreate:ft}=t,Le=ft?ft(Qe):{[t.labelField]:Qe,[t.valueField]:Qe},{valueField:it,labelField:_t}=t;D.value.some(Ct=>Ct[it]===Le[it]||Ct[_t]===Le[_t])||O.value.some(Ct=>Ct[it]===Le[it]||Ct[_t]===Le[_t])?Q.value=R:Q.value=[Le]}}function Fe(ye){ye.stopPropagation();const{multiple:Qe}=t;!Qe&&t.filterable&&ke(),te(),Qe?le([],[]):le(null,null)}function dt(ye){!happensIn(ye,"action")&&!happensIn(ye,"empty")&&ye.preventDefault()}function gt(ye){fe(ye)}function Ke(ye){var Qe,Ce,nt,ft,Le;if(!t.keyboard){ye.preventDefault();return}switch(ye.key){case" ":if(t.filterable)break;ye.preventDefault();case"Enter":if(!(!((Qe=N.value)===null||Qe===void 0)&&Qe.isComposing)){if(k.value){const it=(Ce=x.value)===null||Ce===void 0?void 0:Ce.getPendingTmNode();it?pt(it):t.filterable||(ke(),De())}else if(Re(),t.tag&&tt.value){const it=Q.value[0];if(it){const _t=it[t.valueField],{value:Ct}=_;t.multiple&&Array.isArray(Ct)&&Ct.some(Je=>Je===_t)||Ie(it)}}}ye.preventDefault();break;case"ArrowUp":if(ye.preventDefault(),t.loading)return;k.value&&((nt=x.value)===null||nt===void 0||nt.prev());break;case"ArrowDown":if(ye.preventDefault(),t.loading)return;k.value?(ft=x.value)===null||ft===void 0||ft.next():Re();break;case"Escape":k.value&&(markEventEffectPerformed(ye),ke()),(Le=N.value)===null||Le===void 0||Le.focus();break}}function De(){var ye;(ye=N.value)===null||ye===void 0||ye.focus()}function Me(){var ye;(ye=N.value)===null||ye===void 0||ye.focusInput()}function Se(){var ye;k.value&&((ye=S.value)===null||ye===void 0||ye.syncPosition())}ve(),watch(toRef(t,"options"),ve);const Pe={focus:()=>{var ye;(ye=N.value)===null||ye===void 0||ye.focus()},focusInput:()=>{var ye;(ye=N.value)===null||ye===void 0||ye.focusInput()},blur:()=>{var ye;(ye=N.value)===null||ye===void 0||ye.blur()},blurInput:()=>{var ye;(ye=N.value)===null||ye===void 0||ye.blurInput()}},ct=computed(()=>{const{self:{menuBoxShadow:ye}}=l.value;return{"--n-menu-box-shadow":ye}}),Ue=s?useThemeClass("select",void 0,ct,t):void 0;return Object.assign(Object.assign({},Pe),{mergedStatus:ce,mergedClsPrefix:o,mergedBordered:n,namespace:r,treeMate:y,isMounted:isMounted(),triggerRef:N,menuRef:x,pattern:v,uncontrolledShow:B,mergedShow:k,adjustedTo:useAdjustedTo(t),uncontrolledValue:d,mergedValue:_,followerRef:S,localizedPlaceholder:I,selectedOption:oe,selectedOptions:ie,mergedSize:j,mergedDisabled:re,focused:g,activeWithoutMenuOpen:tt,inlineThemeDisabled:s,onTriggerInputFocus:me,onTriggerInputBlur:be,handleTriggerOrMenuResize:Se,handleMenuFocus:ge,handleMenuBlur:ot,handleMenuTabOut:lt,handleTriggerClick:Ne,handleToggle:pt,handleDeleteOption:Ie,handlePatternInput:He,handleClear:Fe,handleTriggerBlur:qe,handleTriggerFocus:Be,handleKeydown:Ke,handleMenuAfterLeave:xe,handleMenuClickOutside:ut,handleMenuScroll:gt,handleMenuKeydown:Ke,handleMenuMousedown:dt,mergedTheme:l,cssVars:s?void 0:ct,themeClass:Ue==null?void 0:Ue.themeClass,onRender:Ue==null?void 0:Ue.onRender})},render(){return h("div",{class:`${this.mergedClsPrefix}-select`},h(VBinder,null,{default:()=>[h(VTarget,null,{default:()=>h(NInternalSelection,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var t,o;return[(o=(t=this.$slots).arrow)===null||o===void 0?void 0:o.call(t)]}})}),h(VFollower,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>h(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var t,o,n;return this.mergedShow||this.displayDirective==="show"?((t=this.onRender)===null||t===void 0||t.call(this),withDirectives(h(NInternalSelectMenu,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(o=this.menuProps)===null||o===void 0?void 0:o.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(n=this.menuProps)===null||n===void 0?void 0:n.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var r,s;return[(s=(r=this.$slots).empty)===null||s===void 0?void 0:s.call(r)]},action:()=>{var r,s;return[(s=(r=this.$slots).action)===null||s===void 0?void 0:s.call(r)]}}),this.displayDirective==="show"?[[vShow,this.mergedShow],[clickoutside$1,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[clickoutside$1,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),commonVariables$4={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"},self$j=t=>{const{textColor2:o,primaryColor:n,primaryColorHover:r,primaryColorPressed:s,inputColorDisabled:l,textColorDisabled:d,borderColor:m,borderRadius:_,fontSizeTiny:g,fontSizeSmall:v,fontSizeMedium:y,heightTiny:w,heightSmall:B,heightMedium:k}=t;return Object.assign(Object.assign({},commonVariables$4),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${m}`,buttonBorderHover:`1px solid ${m}`,buttonBorderPressed:`1px solid ${m}`,buttonIconColor:o,buttonIconColorHover:o,buttonIconColorPressed:o,itemTextColor:o,itemTextColorHover:r,itemTextColorPressed:s,itemTextColorActive:n,itemTextColorDisabled:d,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:l,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${m}`,itemBorderRadius:_,itemSizeSmall:w,itemSizeMedium:B,itemSizeLarge:k,itemFontSizeSmall:g,itemFontSizeMedium:v,itemFontSizeLarge:y,jumperFontSizeSmall:g,jumperFontSizeMedium:v,jumperFontSizeLarge:y,jumperTextColor:o,jumperTextColorDisabled:d})},paginationLight={name:"Pagination",common:commonLight,peers:{Select:selectLight$1,Input:inputLight$1,Popselect:popselectLight$1},self:self$j},paginationLight$1=paginationLight;function createPageItemsInfo(t,o,n){let r=!1,s=!1,l=1,d=o;if(o===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:d,fastBackwardTo:l,items:[{type:"page",label:1,active:t===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(o===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:d,fastBackwardTo:l,items:[{type:"page",label:1,active:t===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:t===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const m=1,_=o;let g=t,v=t;const y=(n-5)/2;v+=Math.ceil(y),v=Math.min(Math.max(v,m+n-3),_-2),g-=Math.floor(y),g=Math.max(Math.min(g,_-n+3),m+2);let w=!1,B=!1;g>m+2&&(w=!0),v<_-2&&(B=!0);const k=[];k.push({type:"page",label:1,active:t===1,mayBeFastBackward:!1,mayBeFastForward:!1}),w?(r=!0,l=g-1,k.push({type:"fast-backward",active:!1,label:void 0,options:createRange$1(m+1,g-1)})):_>=m+1&&k.push({type:"page",label:m+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:t===m+1});for(let N=g;N<=v;++N)k.push({type:"page",label:N,mayBeFastBackward:!1,mayBeFastForward:!1,active:t===N});return B?(s=!0,d=v+1,k.push({type:"fast-forward",active:!1,label:void 0,options:createRange$1(v+1,_-1)})):v===_-2&&k[k.length-1].label!==_-1&&k.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:_-1,active:t===_-1}),k[k.length-1].label!==_&&k.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:_,active:t===_}),{hasFastBackward:r,hasFastForward:s,fastBackwardTo:l,fastForwardTo:d,items:k}}function createRange$1(t,o){const n=[];for(let r=t;r<=o;++r)n.push({label:`${r}`,value:r});return n}const hoverStyleProps=`
+ background: var(--n-item-color-hover);
+ color: var(--n-item-text-color-hover);
+ border: var(--n-item-border-hover);
+`,hoverStyleChildren=[cM("button",`
+ background: var(--n-button-color-hover);
+ border: var(--n-button-border-hover);
+ color: var(--n-button-icon-color-hover);
+ `)],style$k=cB("pagination",`
+ display: flex;
+ vertical-align: middle;
+ font-size: var(--n-item-font-size);
+ flex-wrap: nowrap;
+`,[cB("pagination-prefix",`
+ display: flex;
+ align-items: center;
+ margin: var(--n-prefix-margin);
+ `),cB("pagination-suffix",`
+ display: flex;
+ align-items: center;
+ margin: var(--n-suffix-margin);
+ `),c$1("> *:not(:first-child)",`
+ margin: var(--n-item-margin);
+ `),cB("select",`
+ width: var(--n-select-width);
+ `),c$1("&.transition-disabled",[cB("pagination-item","transition: none!important;")]),cB("pagination-quick-jumper",`
+ white-space: nowrap;
+ display: flex;
+ color: var(--n-jumper-text-color);
+ transition: color .3s var(--n-bezier);
+ align-items: center;
+ font-size: var(--n-jumper-font-size);
+ `,[cB("input",`
+ margin: var(--n-input-margin);
+ width: var(--n-input-width);
+ `)]),cB("pagination-item",`
+ position: relative;
+ cursor: pointer;
+ user-select: none;
+ -webkit-user-select: none;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ box-sizing: border-box;
+ min-width: var(--n-item-size);
+ height: var(--n-item-size);
+ padding: var(--n-item-padding);
+ background-color: var(--n-item-color);
+ color: var(--n-item-text-color);
+ border-radius: var(--n-item-border-radius);
+ border: var(--n-item-border);
+ fill: var(--n-button-icon-color);
+ transition:
+ color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ fill .3s var(--n-bezier);
+ `,[cM("button",`
+ background: var(--n-button-color);
+ color: var(--n-button-icon-color);
+ border: var(--n-button-border);
+ padding: 0;
+ `,[cB("base-icon",`
+ font-size: var(--n-button-icon-size);
+ `)]),cNotM("disabled",[cM("hover",hoverStyleProps,hoverStyleChildren),c$1("&:hover",hoverStyleProps,hoverStyleChildren),c$1("&:active",`
+ background: var(--n-item-color-pressed);
+ color: var(--n-item-text-color-pressed);
+ border: var(--n-item-border-pressed);
+ `,[cM("button",`
+ background: var(--n-button-color-pressed);
+ border: var(--n-button-border-pressed);
+ color: var(--n-button-icon-color-pressed);
+ `)]),cM("active",`
+ background: var(--n-item-color-active);
+ color: var(--n-item-text-color-active);
+ border: var(--n-item-border-active);
+ `,[c$1("&:hover",`
+ background: var(--n-item-color-active-hover);
+ `)])]),cM("disabled",`
+ cursor: not-allowed;
+ color: var(--n-item-text-color-disabled);
+ `,[cM("active, button",`
+ background-color: var(--n-item-color-disabled);
+ border: var(--n-item-border-disabled);
+ `)])]),cM("disabled",`
+ cursor: not-allowed;
+ `,[cB("pagination-quick-jumper",`
+ color: var(--n-jumper-text-color-disabled);
+ `)]),cM("simple",`
+ display: flex;
+ align-items: center;
+ flex-wrap: nowrap;
+ `,[cB("pagination-quick-jumper",[cB("input",`
+ margin: 0;
+ `)])])]),paginationProps=Object.assign(Object.assign({},useTheme.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:useAdjustedTo.propTo,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),NPagination=defineComponent({name:"Pagination",props:paginationProps,setup(t){const{mergedComponentPropsRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:s}=useConfig(t),l=useTheme("Pagination","-pagination",style$k,paginationLight$1,t,n),{localeRef:d}=useLocale("Pagination"),m=ref(null),_=ref(t.defaultPage),v=ref((()=>{const{defaultPageSize:xe}=t;if(xe!==void 0)return xe;const tt=t.pageSizes[0];return typeof tt=="number"?tt:tt.value||10})()),y=useMergedState(toRef(t,"page"),_),w=useMergedState(toRef(t,"pageSize"),v),B=computed(()=>{const{itemCount:xe}=t;if(xe!==void 0)return Math.max(1,Math.ceil(xe/w.value));const{pageCount:tt}=t;return tt!==void 0?Math.max(tt,1):1}),k=ref("");watchEffect(()=>{t.simple,k.value=String(y.value)});const N=ref(!1),S=ref(!1),x=ref(!1),C=ref(!1),I=()=>{t.disabled||(N.value=!0,J())},D=()=>{t.disabled||(N.value=!1,J())},R=()=>{S.value=!0,J()},O=()=>{S.value=!1,J()},Q=xe=>{j(xe)},Y=computed(()=>createPageItemsInfo(y.value,B.value,t.pageSlot));watchEffect(()=>{Y.value.hasFastBackward?Y.value.hasFastForward||(N.value=!1,x.value=!1):(S.value=!1,C.value=!1)});const W=computed(()=>{const xe=d.value.selectionSuffix;return t.pageSizes.map(tt=>typeof tt=="number"?{label:`${tt} / ${xe}`,value:tt}:tt)}),K=computed(()=>{var xe,tt;return((tt=(xe=o==null?void 0:o.value)===null||xe===void 0?void 0:xe.Pagination)===null||tt===void 0?void 0:tt.inputSize)||smallerSize(t.size)}),ee=computed(()=>{var xe,tt;return((tt=(xe=o==null?void 0:o.value)===null||xe===void 0?void 0:xe.Pagination)===null||tt===void 0?void 0:tt.selectSize)||smallerSize(t.size)}),q=computed(()=>(y.value-1)*w.value),ae=computed(()=>{const xe=y.value*w.value-1,{itemCount:tt}=t;return tt!==void 0&&xe>tt-1?tt-1:xe}),ie=computed(()=>{const{itemCount:xe}=t;return xe!==void 0?xe:(t.pageCount||1)*w.value}),oe=useRtl("Pagination",s,n),J=()=>{nextTick(()=>{var xe;const{value:tt}=m;tt&&(tt.classList.add("transition-disabled"),(xe=m.value)===null||xe===void 0||xe.offsetWidth,tt.classList.remove("transition-disabled"))})};function j(xe){if(xe===y.value)return;const{"onUpdate:page":tt,onUpdatePage:me,onChange:be,simple:Ne}=t;tt&&call(tt,xe),me&&call(me,xe),be&&call(be,xe),_.value=xe,Ne&&(k.value=String(xe))}function re(xe){if(xe===w.value)return;const{"onUpdate:pageSize":tt,onUpdatePageSize:me,onPageSizeChange:be}=t;tt&&call(tt,xe),me&&call(me,xe),be&&call(be,xe),v.value=xe,B.value{y.value,w.value,J()});const Re=computed(()=>{const{size:xe}=t,{self:{buttonBorder:tt,buttonBorderHover:me,buttonBorderPressed:be,buttonIconColor:Ne,buttonIconColorHover:qe,buttonIconColorPressed:Be,itemTextColor:ge,itemTextColorHover:ot,itemTextColorPressed:lt,itemTextColorActive:ut,itemTextColorDisabled:et,itemColor:pt,itemColorHover:Ie,itemColorPressed:at,itemColorActive:He,itemColorActiveHover:Fe,itemColorDisabled:dt,itemBorder:gt,itemBorderHover:Ke,itemBorderPressed:De,itemBorderActive:Me,itemBorderDisabled:Se,itemBorderRadius:Pe,jumperTextColor:ct,jumperTextColorDisabled:Ue,buttonColor:ye,buttonColorHover:Qe,buttonColorPressed:Ce,[createKey("itemPadding",xe)]:nt,[createKey("itemMargin",xe)]:ft,[createKey("inputWidth",xe)]:Le,[createKey("selectWidth",xe)]:it,[createKey("inputMargin",xe)]:_t,[createKey("selectMargin",xe)]:Ct,[createKey("jumperFontSize",xe)]:Je,[createKey("prefixMargin",xe)]:Ee,[createKey("suffixMargin",xe)]:Ye,[createKey("itemSize",xe)]:mt,[createKey("buttonIconSize",xe)]:kt,[createKey("itemFontSize",xe)]:bt,[`${createKey("itemMargin",xe)}Rtl`]:It,[`${createKey("inputMargin",xe)}Rtl`]:$t},common:{cubicBezierEaseInOut:Ze}}=l.value;return{"--n-prefix-margin":Ee,"--n-suffix-margin":Ye,"--n-item-font-size":bt,"--n-select-width":it,"--n-select-margin":Ct,"--n-input-width":Le,"--n-input-margin":_t,"--n-input-margin-rtl":$t,"--n-item-size":mt,"--n-item-text-color":ge,"--n-item-text-color-disabled":et,"--n-item-text-color-hover":ot,"--n-item-text-color-active":ut,"--n-item-text-color-pressed":lt,"--n-item-color":pt,"--n-item-color-hover":Ie,"--n-item-color-disabled":dt,"--n-item-color-active":He,"--n-item-color-active-hover":Fe,"--n-item-color-pressed":at,"--n-item-border":gt,"--n-item-border-hover":Ke,"--n-item-border-disabled":Se,"--n-item-border-active":Me,"--n-item-border-pressed":De,"--n-item-padding":nt,"--n-item-border-radius":Pe,"--n-bezier":Ze,"--n-jumper-font-size":Je,"--n-jumper-text-color":ct,"--n-jumper-text-color-disabled":Ue,"--n-item-margin":ft,"--n-item-margin-rtl":It,"--n-button-icon-size":kt,"--n-button-icon-color":Ne,"--n-button-icon-color-hover":qe,"--n-button-icon-color-pressed":Be,"--n-button-color-hover":Qe,"--n-button-color":ye,"--n-button-color-pressed":Ce,"--n-button-border":tt,"--n-button-border-hover":me,"--n-button-border-pressed":be}}),ke=r?useThemeClass("pagination",computed(()=>{let xe="";const{size:tt}=t;return xe+=tt[0],xe}),Re,t):void 0;return{rtlEnabled:oe,mergedClsPrefix:n,locale:d,selfRef:m,mergedPage:y,pageItems:computed(()=>Y.value.items),mergedItemCount:ie,jumperValue:k,pageSizeOptions:W,mergedPageSize:w,inputSize:K,selectSize:ee,mergedTheme:l,mergedPageCount:B,startIndex:q,endIndex:ae,showFastForwardMenu:x,showFastBackwardMenu:C,fastForwardActive:N,fastBackwardActive:S,handleMenuSelect:Q,handleFastForwardMouseenter:I,handleFastForwardMouseleave:D,handleFastBackwardMouseenter:R,handleFastBackwardMouseleave:O,handleJumperInput:ze,handleBackwardClick:le,handleForwardClick:ce,handlePageItemClick:ve,handleSizePickerChange:ne,handleQuickJumperChange:fe,cssVars:r?void 0:Re,themeClass:ke==null?void 0:ke.themeClass,onRender:ke==null?void 0:ke.onRender}},render(){const{$slots:t,mergedClsPrefix:o,disabled:n,cssVars:r,mergedPage:s,mergedPageCount:l,pageItems:d,showSizePicker:m,showQuickJumper:_,mergedTheme:g,locale:v,inputSize:y,selectSize:w,mergedPageSize:B,pageSizeOptions:k,jumperValue:N,simple:S,prev:x,next:C,prefix:I,suffix:D,label:R,goto:O,handleJumperInput:Q,handleSizePickerChange:Y,handleBackwardClick:W,handlePageItemClick:K,handleForwardClick:ee,handleQuickJumperChange:q,onRender:ae}=this;ae==null||ae();const ie=t.prefix||I,oe=t.suffix||D,J=x||t.prev,j=C||t.next,re=R||t.label;return h("div",{ref:"selfRef",class:[`${o}-pagination`,this.themeClass,this.rtlEnabled&&`${o}-pagination--rtl`,n&&`${o}-pagination--disabled`,S&&`${o}-pagination--simple`],style:r},ie?h("div",{class:`${o}-pagination-prefix`},ie({page:s,pageSize:B,pageCount:l,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(ce=>{switch(ce){case"pages":return h(Fragment,null,h("div",{class:[`${o}-pagination-item`,!J&&`${o}-pagination-item--button`,(s<=1||s>l||n)&&`${o}-pagination-item--disabled`],onClick:W},J?J({page:s,pageSize:B,pageCount:l,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):h(NBaseIcon,{clsPrefix:o},{default:()=>this.rtlEnabled?h(ForwardIcon,null):h(BackwardIcon,null)})),S?h(Fragment,null,h("div",{class:`${o}-pagination-quick-jumper`},h(NInput,{value:N,onUpdateValue:Q,size:y,placeholder:"",disabled:n,theme:g.peers.Input,themeOverrides:g.peerOverrides.Input,onChange:q}))," / ",l):d.map((le,se)=>{let te,ne,de;const{type:fe}=le;switch(fe){case"page":const ze=le.label;re?te=re({type:"page",node:ze,active:le.active}):te=ze;break;case"fast-forward":const Re=this.fastForwardActive?h(NBaseIcon,{clsPrefix:o},{default:()=>this.rtlEnabled?h(FastBackwardIcon,null):h(FastForwardIcon,null)}):h(NBaseIcon,{clsPrefix:o},{default:()=>h(MoreIcon,null)});re?te=re({type:"fast-forward",node:Re,active:this.fastForwardActive||this.showFastForwardMenu}):te=Re,ne=this.handleFastForwardMouseenter,de=this.handleFastForwardMouseleave;break;case"fast-backward":const ke=this.fastBackwardActive?h(NBaseIcon,{clsPrefix:o},{default:()=>this.rtlEnabled?h(FastForwardIcon,null):h(FastBackwardIcon,null)}):h(NBaseIcon,{clsPrefix:o},{default:()=>h(MoreIcon,null)});re?te=re({type:"fast-backward",node:ke,active:this.fastBackwardActive||this.showFastBackwardMenu}):te=ke,ne=this.handleFastBackwardMouseenter,de=this.handleFastBackwardMouseleave;break}const ve=h("div",{key:se,class:[`${o}-pagination-item`,le.active&&`${o}-pagination-item--active`,fe!=="page"&&(fe==="fast-backward"&&this.showFastBackwardMenu||fe==="fast-forward"&&this.showFastForwardMenu)&&`${o}-pagination-item--hover`,n&&`${o}-pagination-item--disabled`,fe==="page"&&`${o}-pagination-item--clickable`],onClick:()=>{K(le)},onMouseenter:ne,onMouseleave:de},te);if(fe==="page"&&!le.mayBeFastBackward&&!le.mayBeFastForward)return ve;{const ze=le.type==="page"?le.mayBeFastBackward?"fast-backward":"fast-forward":le.type;return h(NPopselect,{to:this.to,key:ze,disabled:n,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:g.peers.Popselect,themeOverrides:g.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:fe==="page"?!1:fe==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:Re=>{fe!=="page"&&(Re?fe==="fast-backward"?this.showFastBackwardMenu=Re:this.showFastForwardMenu=Re:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:le.type!=="page"?le.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>ve})}}),h("div",{class:[`${o}-pagination-item`,!j&&`${o}-pagination-item--button`,{[`${o}-pagination-item--disabled`]:s<1||s>=l||n}],onClick:ee},j?j({page:s,pageSize:B,pageCount:l,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):h(NBaseIcon,{clsPrefix:o},{default:()=>this.rtlEnabled?h(BackwardIcon,null):h(ForwardIcon,null)})));case"size-picker":return!S&&m?h(NSelect,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:w,options:k,value:B,disabled:n,theme:g.peers.Select,themeOverrides:g.peerOverrides.Select,onUpdateValue:Y})):null;case"quick-jumper":return!S&&_?h("div",{class:`${o}-pagination-quick-jumper`},O?O():resolveSlot(this.$slots.goto,()=>[v.goto]),h(NInput,{value:N,onUpdateValue:Q,size:y,placeholder:"",disabled:n,theme:g.peers.Input,themeOverrides:g.peerOverrides.Input,onChange:q})):null;default:return null}}),oe?h("div",{class:`${o}-pagination-suffix`},oe({page:s,pageSize:B,pageCount:l,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),commonVars$5={padding:"8px 14px"},self$i=t=>{const{borderRadius:o,boxShadow2:n,baseColor:r}=t;return Object.assign(Object.assign({},commonVars$5),{borderRadius:o,boxShadow:n,color:composite(r,"rgba(0, 0, 0, .85)"),textColor:r})},tooltipLight={name:"Tooltip",common:commonLight,peers:{Popover:popoverLight$1},self:self$i},tooltipLight$1=tooltipLight,ellipsisLight={name:"Ellipsis",common:commonLight,peers:{Tooltip:tooltipLight$1}},ellipsisLight$1=ellipsisLight,commonVariables$3={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},self$h=t=>{const{borderColor:o,primaryColor:n,baseColor:r,textColorDisabled:s,inputColorDisabled:l,textColor2:d,opacityDisabled:m,borderRadius:_,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:y,heightSmall:w,heightMedium:B,heightLarge:k,lineHeight:N}=t;return Object.assign(Object.assign({},commonVariables$3),{labelLineHeight:N,buttonHeightSmall:w,buttonHeightMedium:B,buttonHeightLarge:k,fontSizeSmall:g,fontSizeMedium:v,fontSizeLarge:y,boxShadow:`inset 0 0 0 1px ${o}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${changeColor(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${o}`,color:r,colorDisabled:l,colorActive:"#0000",textColor:d,textColorDisabled:s,dotColorActive:n,dotColorDisabled:o,buttonBorderColor:o,buttonBorderColorActive:n,buttonBorderColorHover:o,buttonColor:r,buttonColorActive:r,buttonTextColor:d,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:m,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${changeColor(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:_})},radioLight={name:"Radio",common:commonLight,self:self$h},radioLight$1=radioLight,commonVariables$2={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"},self$g=t=>{const{primaryColor:o,textColor2:n,dividerColor:r,hoverColor:s,popoverColor:l,invertedColor:d,borderRadius:m,fontSizeSmall:_,fontSizeMedium:g,fontSizeLarge:v,fontSizeHuge:y,heightSmall:w,heightMedium:B,heightLarge:k,heightHuge:N,textColor3:S,opacityDisabled:x}=t;return Object.assign(Object.assign({},commonVariables$2),{optionHeightSmall:w,optionHeightMedium:B,optionHeightLarge:k,optionHeightHuge:N,borderRadius:m,fontSizeSmall:_,fontSizeMedium:g,fontSizeLarge:v,fontSizeHuge:y,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:o,optionTextColorChildActive:o,color:l,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:s,optionColorActive:changeColor(o,{alpha:.1}),groupHeaderTextColor:S,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:d,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:o,optionColorActiveInverted:o,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:x})},dropdownLight={name:"Dropdown",common:commonLight,peers:{Popover:popoverLight$1},self:self$g},dropdownLight$1=dropdownLight,commonVariables$1={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"},self$f=t=>{const{cardColor:o,modalColor:n,popoverColor:r,textColor2:s,textColor1:l,tableHeaderColor:d,tableColorHover:m,iconColor:_,primaryColor:g,fontWeightStrong:v,borderRadius:y,lineHeight:w,fontSizeSmall:B,fontSizeMedium:k,fontSizeLarge:N,dividerColor:S,heightSmall:x,opacityDisabled:C,tableColorStriped:I}=t;return Object.assign(Object.assign({},commonVariables$1),{actionDividerColor:S,lineHeight:w,borderRadius:y,fontSizeSmall:B,fontSizeMedium:k,fontSizeLarge:N,borderColor:composite(o,S),tdColorHover:composite(o,m),tdColorStriped:composite(o,I),thColor:composite(o,d),thColorHover:composite(composite(o,d),m),tdColor:o,tdTextColor:s,thTextColor:l,thFontWeight:v,thButtonColorHover:m,thIconColor:_,thIconColorActive:g,borderColorModal:composite(n,S),tdColorHoverModal:composite(n,m),tdColorStripedModal:composite(n,I),thColorModal:composite(n,d),thColorHoverModal:composite(composite(n,d),m),tdColorModal:n,borderColorPopover:composite(r,S),tdColorHoverPopover:composite(r,m),tdColorStripedPopover:composite(r,I),thColorPopover:composite(r,d),thColorHoverPopover:composite(composite(r,d),m),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:g,loadingSize:x,opacityLoading:C})},dataTableLight={name:"DataTable",common:commonLight,peers:{Button:buttonLight$1,Checkbox:checkboxLight$1,Radio:radioLight$1,Pagination:paginationLight$1,Scrollbar:scrollbarLight$1,Empty:emptyLight$1,Popover:popoverLight$1,Ellipsis:ellipsisLight$1,Dropdown:dropdownLight$1},self:self$f},dataTableLight$1=dataTableLight,tooltipProps=Object.assign(Object.assign({},popoverBaseProps),useTheme.props),NTooltip=defineComponent({name:"Tooltip",props:tooltipProps,__popover__:!0,setup(t){const{mergedClsPrefixRef:o}=useConfig(t),n=useTheme("Tooltip","-tooltip",void 0,tooltipLight$1,t,o),r=ref(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(l){r.value.setShow(l)}}),{popoverRef:r,mergedTheme:n,popoverThemeOverrides:computed(()=>n.value.self)})},render(){const{mergedTheme:t,internalExtraClass:o}=this;return h(NPopover,Object.assign(Object.assign({},this.$props),{theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:o.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),style$j=cB("ellipsis",{overflow:"hidden"},[cNotM("line-clamp",`
+ white-space: nowrap;
+ display: inline-block;
+ vertical-align: bottom;
+ max-width: 100%;
+ `),cM("line-clamp",`
+ display: -webkit-inline-box;
+ -webkit-box-orient: vertical;
+ `),cM("cursor-pointer",`
+ cursor: pointer;
+ `)]);function createLineClampClass(t){return`${t}-ellipsis--line-clamp`}function createCursorClass(t,o){return`${t}-ellipsis--cursor-${o}`}const ellipsisProps=Object.assign(Object.assign({},useTheme.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),NEllipsis=defineComponent({name:"Ellipsis",inheritAttrs:!1,props:ellipsisProps,setup(t,{slots:o,attrs:n}){const r=useMergedClsPrefix(),s=useTheme("Ellipsis","-ellipsis",style$j,ellipsisLight$1,t,r),l=ref(null),d=ref(null),m=ref(null),_=ref(!1),g=computed(()=>{const{lineClamp:S}=t,{value:x}=_;return S!==void 0?{textOverflow:"","-webkit-line-clamp":x?"":S}:{textOverflow:x?"":"ellipsis","-webkit-line-clamp":""}});function v(){let S=!1;const{value:x}=_;if(x)return!0;const{value:C}=l;if(C){const{lineClamp:I}=t;if(B(C),I!==void 0)S=C.scrollHeight<=C.offsetHeight;else{const{value:D}=d;D&&(S=D.getBoundingClientRect().width<=C.getBoundingClientRect().width)}k(C,S)}return S}const y=computed(()=>t.expandTrigger==="click"?()=>{var S;const{value:x}=_;x&&((S=m.value)===null||S===void 0||S.setShow(!1)),_.value=!x}:void 0);onDeactivated(()=>{var S;t.tooltip&&((S=m.value)===null||S===void 0||S.setShow(!1))});const w=()=>h("span",Object.assign({},mergeProps(n,{class:[`${r.value}-ellipsis`,t.lineClamp!==void 0?createLineClampClass(r.value):void 0,t.expandTrigger==="click"?createCursorClass(r.value,"pointer"):void 0],style:g.value}),{ref:"triggerRef",onClick:y.value,onMouseenter:t.expandTrigger==="click"?v:void 0}),t.lineClamp?o:h("span",{ref:"triggerInnerRef"},o));function B(S){if(!S)return;const x=g.value,C=createLineClampClass(r.value);t.lineClamp!==void 0?N(S,C,"add"):N(S,C,"remove");for(const I in x)S.style[I]!==x[I]&&(S.style[I]=x[I])}function k(S,x){const C=createCursorClass(r.value,"pointer");t.expandTrigger==="click"&&!x?N(S,C,"add"):N(S,C,"remove")}function N(S,x,C){C==="add"?S.classList.contains(x)||S.classList.add(x):S.classList.contains(x)&&S.classList.remove(x)}return{mergedTheme:s,triggerRef:l,triggerInnerRef:d,tooltipRef:m,handleClick:y,renderTrigger:w,getTooltipDisabled:v}},render(){var t;const{tooltip:o,renderTrigger:n,$slots:r}=this;if(o){const{mergedTheme:s}=this;return h(NTooltip,Object.assign({ref:"tooltipRef",placement:"top"},o,{getDisabled:this.getTooltipDisabled,theme:s.peers.Tooltip,themeOverrides:s.peerOverrides.Tooltip}),{trigger:n,default:(t=r.tooltip)!==null&&t!==void 0?t:r.default})}else return n()}}),NPerformantEllipsis=defineComponent({name:"PerformantEllipsis",props:ellipsisProps,inheritAttrs:!1,setup(t,{attrs:o,slots:n}){const r=ref(!1),s=useMergedClsPrefix();return useStyle("-ellipsis",style$j,s),{mouseEntered:r,renderTrigger:()=>{const{lineClamp:d}=t,m=s.value;return h("span",Object.assign({},mergeProps(o,{class:[`${m}-ellipsis`,d!==void 0?createLineClampClass(m):void 0,t.expandTrigger==="click"?createCursorClass(m,"pointer"):void 0],style:d===void 0?{textOverflow:"ellipsis"}:{"-webkit-line-clamp":d}}),{onMouseenter:()=>{r.value=!0}}),d?n:h("span",null,n))}}},render(){return this.mouseEntered?h(NEllipsis,mergeProps({},this.$attrs,this.$props),this.$slots):this.renderTrigger()}}),RenderSorter=defineComponent({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:t,order:o}=this;return t({order:o})}}),dataTableProps=Object.assign(Object.assign({},useTheme.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),dataTableInjectionKey="n-data-table",SortButton=defineComponent({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(t){const{mergedComponentPropsRef:o}=useConfig(),{mergedSortStateRef:n,mergedClsPrefixRef:r}=inject(dataTableInjectionKey),s=computed(()=>n.value.find(_=>_.columnKey===t.column.key)),l=computed(()=>s.value!==void 0),d=computed(()=>{const{value:_}=s;return _&&l.value?_.order:!1}),m=computed(()=>{var _,g;return((g=(_=o==null?void 0:o.value)===null||_===void 0?void 0:_.DataTable)===null||g===void 0?void 0:g.renderSorter)||t.column.renderSorter});return{mergedClsPrefix:r,active:l,mergedSortOrder:d,mergedRenderSorter:m}},render(){const{mergedRenderSorter:t,mergedSortOrder:o,mergedClsPrefix:n}=this,{renderSorterIcon:r}=this.column;return t?h(RenderSorter,{render:t,order:o}):h("span",{class:[`${n}-data-table-sorter`,o==="ascend"&&`${n}-data-table-sorter--asc`,o==="descend"&&`${n}-data-table-sorter--desc`]},r?r({order:o}):h(NBaseIcon,{clsPrefix:n},{default:()=>h(ArrowDownIcon,null)}))}}),RenderFilter=defineComponent({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:t,active:o,show:n}=this;return t({active:o,show:n})}}),radioBaseProps={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},radioGroupInjectionKey="n-radio-group";function setup(t){const o=useFormItem(t,{mergedSize(C){const{size:I}=t;if(I!==void 0)return I;if(d){const{mergedSizeRef:{value:D}}=d;if(D!==void 0)return D}return C?C.mergedSize.value:"medium"},mergedDisabled(C){return!!(t.disabled||d!=null&&d.disabledRef.value||C!=null&&C.disabled.value)}}),{mergedSizeRef:n,mergedDisabledRef:r}=o,s=ref(null),l=ref(null),d=inject(radioGroupInjectionKey,null),m=ref(t.defaultChecked),_=toRef(t,"checked"),g=useMergedState(_,m),v=useMemo(()=>d?d.valueRef.value===t.value:g.value),y=useMemo(()=>{const{name:C}=t;if(C!==void 0)return C;if(d)return d.nameRef.value}),w=ref(!1);function B(){if(d){const{doUpdateValue:C}=d,{value:I}=t;call(C,I)}else{const{onUpdateChecked:C,"onUpdate:checked":I}=t,{nTriggerFormInput:D,nTriggerFormChange:R}=o;C&&call(C,!0),I&&call(I,!0),D(),R(),m.value=!0}}function k(){r.value||v.value||B()}function N(){k()}function S(){w.value=!1}function x(){w.value=!0}return{mergedClsPrefix:d?d.mergedClsPrefixRef:useConfig(t).mergedClsPrefixRef,inputRef:s,labelRef:l,mergedName:y,mergedDisabled:r,uncontrolledChecked:m,renderSafeChecked:v,focus:w,mergedSize:n,handleRadioInputChange:N,handleRadioInputBlur:S,handleRadioInputFocus:x}}const style$i=cB("radio",`
+ line-height: var(--n-label-line-height);
+ outline: none;
+ position: relative;
+ user-select: none;
+ -webkit-user-select: none;
+ display: inline-flex;
+ align-items: flex-start;
+ flex-wrap: nowrap;
+ font-size: var(--n-font-size);
+ word-break: break-word;
+`,[cM("checked",[cE("dot",`
+ background-color: var(--n-color-active);
+ `)]),cE("dot-wrapper",`
+ position: relative;
+ flex-shrink: 0;
+ flex-grow: 0;
+ width: var(--n-radio-size);
+ `),cB("radio-input",`
+ position: absolute;
+ border: 0;
+ border-radius: inherit;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ opacity: 0;
+ z-index: 1;
+ cursor: pointer;
+ `),cE("dot",`
+ position: absolute;
+ top: 50%;
+ left: 0;
+ transform: translateY(-50%);
+ height: var(--n-radio-size);
+ width: var(--n-radio-size);
+ background: var(--n-color);
+ box-shadow: var(--n-box-shadow);
+ border-radius: 50%;
+ transition:
+ background-color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier);
+ `,[c$1("&::before",`
+ content: "";
+ opacity: 0;
+ position: absolute;
+ left: 4px;
+ top: 4px;
+ height: calc(100% - 8px);
+ width: calc(100% - 8px);
+ border-radius: 50%;
+ transform: scale(.8);
+ background: var(--n-dot-color-active);
+ transition:
+ opacity .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ transform .3s var(--n-bezier);
+ `),cM("checked",{boxShadow:"var(--n-box-shadow-active)"},[c$1("&::before",`
+ opacity: 1;
+ transform: scale(1);
+ `)])]),cE("label",`
+ color: var(--n-text-color);
+ padding: var(--n-label-padding);
+ font-weight: var(--n-label-font-weight);
+ display: inline-block;
+ transition: color .3s var(--n-bezier);
+ `),cNotM("disabled",`
+ cursor: pointer;
+ `,[c$1("&:hover",[cE("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),cM("focus",[c$1("&:not(:active)",[cE("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),cM("disabled",`
+ cursor: not-allowed;
+ `,[cE("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[c$1("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),cM("checked",`
+ opacity: 1;
+ `)]),cE("label",{color:"var(--n-text-color-disabled)"}),cB("radio-input",`
+ cursor: not-allowed;
+ `)])]),radioProps=Object.assign(Object.assign({},useTheme.props),radioBaseProps),NRadio=defineComponent({name:"Radio",props:radioProps,setup(t){const o=setup(t),n=useTheme("Radio","-radio",style$i,radioLight$1,t,o.mergedClsPrefix),r=computed(()=>{const{mergedSize:{value:g}}=o,{common:{cubicBezierEaseInOut:v},self:{boxShadow:y,boxShadowActive:w,boxShadowDisabled:B,boxShadowFocus:k,boxShadowHover:N,color:S,colorDisabled:x,colorActive:C,textColor:I,textColorDisabled:D,dotColorActive:R,dotColorDisabled:O,labelPadding:Q,labelLineHeight:Y,labelFontWeight:W,[createKey("fontSize",g)]:K,[createKey("radioSize",g)]:ee}}=n.value;return{"--n-bezier":v,"--n-label-line-height":Y,"--n-label-font-weight":W,"--n-box-shadow":y,"--n-box-shadow-active":w,"--n-box-shadow-disabled":B,"--n-box-shadow-focus":k,"--n-box-shadow-hover":N,"--n-color":S,"--n-color-active":C,"--n-color-disabled":x,"--n-dot-color-active":R,"--n-dot-color-disabled":O,"--n-font-size":K,"--n-radio-size":ee,"--n-text-color":I,"--n-text-color-disabled":D,"--n-label-padding":Q}}),{inlineThemeDisabled:s,mergedClsPrefixRef:l,mergedRtlRef:d}=useConfig(t),m=useRtl("Radio",d,l),_=s?useThemeClass("radio",computed(()=>o.mergedSize.value[0]),r,t):void 0;return Object.assign(o,{rtlEnabled:m,cssVars:s?void 0:r,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender})},render(){const{$slots:t,mergedClsPrefix:o,onRender:n,label:r}=this;return n==null||n(),h("label",{class:[`${o}-radio`,this.themeClass,{[`${o}-radio--rtl`]:this.rtlEnabled,[`${o}-radio--disabled`]:this.mergedDisabled,[`${o}-radio--checked`]:this.renderSafeChecked,[`${o}-radio--focus`]:this.focus}],style:this.cssVars},h("input",{ref:"inputRef",type:"radio",class:`${o}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),h("div",{class:`${o}-radio__dot-wrapper`}," ",h("div",{class:[`${o}-radio__dot`,this.renderSafeChecked&&`${o}-radio__dot--checked`]})),resolveWrappedSlot(t.default,s=>!s&&!r?null:h("div",{ref:"labelRef",class:`${o}-radio__label`},s||r)))}}),style$h=cB("radio-group",`
+ display: inline-block;
+ font-size: var(--n-font-size);
+`,[cE("splitor",`
+ display: inline-block;
+ vertical-align: bottom;
+ width: 1px;
+ transition:
+ background-color .3s var(--n-bezier),
+ opacity .3s var(--n-bezier);
+ background: var(--n-button-border-color);
+ `,[cM("checked",{backgroundColor:"var(--n-button-border-color-active)"}),cM("disabled",{opacity:"var(--n-opacity-disabled)"})]),cM("button-group",`
+ white-space: nowrap;
+ height: var(--n-height);
+ line-height: var(--n-height);
+ `,[cB("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),cE("splitor",{height:"var(--n-height)"})]),cB("radio-button",`
+ vertical-align: bottom;
+ outline: none;
+ position: relative;
+ user-select: none;
+ -webkit-user-select: none;
+ display: inline-block;
+ box-sizing: border-box;
+ padding-left: 14px;
+ padding-right: 14px;
+ white-space: nowrap;
+ transition:
+ background-color .3s var(--n-bezier),
+ opacity .3s var(--n-bezier),
+ border-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ color: var(--n-button-text-color);
+ border-top: 1px solid var(--n-button-border-color);
+ border-bottom: 1px solid var(--n-button-border-color);
+ `,[cB("radio-input",`
+ pointer-events: none;
+ position: absolute;
+ border: 0;
+ border-radius: inherit;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ opacity: 0;
+ z-index: 1;
+ `),cE("state-border",`
+ z-index: 1;
+ pointer-events: none;
+ position: absolute;
+ box-shadow: var(--n-button-box-shadow);
+ transition: box-shadow .3s var(--n-bezier);
+ left: -1px;
+ bottom: -1px;
+ right: -1px;
+ top: -1px;
+ `),c$1("&:first-child",`
+ border-top-left-radius: var(--n-button-border-radius);
+ border-bottom-left-radius: var(--n-button-border-radius);
+ border-left: 1px solid var(--n-button-border-color);
+ `,[cE("state-border",`
+ border-top-left-radius: var(--n-button-border-radius);
+ border-bottom-left-radius: var(--n-button-border-radius);
+ `)]),c$1("&:last-child",`
+ border-top-right-radius: var(--n-button-border-radius);
+ border-bottom-right-radius: var(--n-button-border-radius);
+ border-right: 1px solid var(--n-button-border-color);
+ `,[cE("state-border",`
+ border-top-right-radius: var(--n-button-border-radius);
+ border-bottom-right-radius: var(--n-button-border-radius);
+ `)]),cNotM("disabled",`
+ cursor: pointer;
+ `,[c$1("&:hover",[cE("state-border",`
+ transition: box-shadow .3s var(--n-bezier);
+ box-shadow: var(--n-button-box-shadow-hover);
+ `),cNotM("checked",{color:"var(--n-button-text-color-hover)"})]),cM("focus",[c$1("&:not(:active)",[cE("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),cM("checked",`
+ background: var(--n-button-color-active);
+ color: var(--n-button-text-color-active);
+ border-color: var(--n-button-border-color-active);
+ `),cM("disabled",`
+ cursor: not-allowed;
+ opacity: var(--n-opacity-disabled);
+ `)])]);function mapSlot(t,o,n){var r;const s=[];let l=!1;for(let d=0;d{const{value:R}=n,{common:{cubicBezierEaseInOut:O},self:{buttonBorderColor:Q,buttonBorderColorActive:Y,buttonBorderRadius:W,buttonBoxShadow:K,buttonBoxShadowFocus:ee,buttonBoxShadowHover:q,buttonColorActive:ae,buttonTextColor:ie,buttonTextColorActive:oe,buttonTextColorHover:J,opacityDisabled:j,[createKey("buttonHeight",R)]:re,[createKey("fontSize",R)]:ce}}=y.value;return{"--n-font-size":ce,"--n-bezier":O,"--n-button-border-color":Q,"--n-button-border-color-active":Y,"--n-button-border-radius":W,"--n-button-box-shadow":K,"--n-button-box-shadow-focus":ee,"--n-button-box-shadow-hover":q,"--n-button-color-active":ae,"--n-button-text-color":ie,"--n-button-text-color-hover":J,"--n-button-text-color-active":oe,"--n-height":re,"--n-opacity-disabled":j}}),D=g?useThemeClass("radio-group",computed(()=>n.value[0]),I,t):void 0;return{selfElRef:o,rtlEnabled:C,mergedClsPrefix:_,mergedValue:k,handleFocusout:x,handleFocusin:S,cssVars:g?void 0:I,themeClass:D==null?void 0:D.themeClass,onRender:D==null?void 0:D.onRender}},render(){var t;const{mergedValue:o,mergedClsPrefix:n,handleFocusin:r,handleFocusout:s}=this,{children:l,isButtonGroup:d}=mapSlot(flatten$3(getSlot$1(this)),o,n);return(t=this.onRender)===null||t===void 0||t.call(this),h("div",{onFocusin:r,onFocusout:s,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,d&&`${n}-radio-group--button-group`],style:this.cssVars},l)}}),NRadioButton=defineComponent({name:"RadioButton",props:radioBaseProps,setup,render(){const{mergedClsPrefix:t}=this;return h("label",{class:[`${t}-radio-button`,this.mergedDisabled&&`${t}-radio-button--disabled`,this.renderSafeChecked&&`${t}-radio-button--checked`,this.focus&&[`${t}-radio-button--focus`]]},h("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),h("div",{class:`${t}-radio-button__state-border`}),resolveWrappedSlot(this.$slots.default,o=>!o&&!this.label?null:h("div",{ref:"labelRef",class:`${t}-radio__label`},o||this.label)))}}),SELECTION_COL_WIDTH=40,EXPAND_COL_WIDTH=40;function getNumberColWidth(t){if(t.type==="selection")return t.width===void 0?SELECTION_COL_WIDTH:depx(t.width);if(t.type==="expand")return t.width===void 0?EXPAND_COL_WIDTH:depx(t.width);if(!("children"in t))return typeof t.width=="string"?depx(t.width):t.width}function getStringColWidth(t){var o,n;if(t.type==="selection")return formatLength((o=t.width)!==null&&o!==void 0?o:SELECTION_COL_WIDTH);if(t.type==="expand")return formatLength((n=t.width)!==null&&n!==void 0?n:EXPAND_COL_WIDTH);if(!("children"in t))return formatLength(t.width)}function getColKey(t){return t.type==="selection"?"__n_selection__":t.type==="expand"?"__n_expand__":t.key}function createShallowClonedObject(t){return t&&(typeof t=="object"?Object.assign({},t):t)}function getFlagOfOrder(t){return t==="ascend"?1:t==="descend"?-1:0}function clampValueFollowCSSRules(t,o,n){return n!==void 0&&(t=Math.min(t,typeof n=="number"?n:parseFloat(n))),o!==void 0&&(t=Math.max(t,typeof o=="number"?o:parseFloat(o))),t}function createCustomWidthStyle(t,o){if(o!==void 0)return{width:o,minWidth:o,maxWidth:o};const n=getStringColWidth(t),{minWidth:r,maxWidth:s}=t;return{width:n,minWidth:formatLength(r)||n,maxWidth:formatLength(s)}}function createRowClassName(t,o,n){return typeof n=="function"?n(t,o):n||""}function shouldUseArrayInSingleMode(t){return t.filterOptionValues!==void 0||t.filterOptionValue===void 0&&t.defaultFilterOptionValues!==void 0}function isColumnSortable(t){return"children"in t?!1:!!t.sorter}function isColumnResizable(t){return"children"in t&&t.children.length?!1:!!t.resizable}function isColumnFilterable(t){return"children"in t?!1:!!t.filter&&(!!t.filterOptions||!!t.renderFilterMenu)}function getNextOrderOf(t){if(t){if(t==="descend")return"ascend"}else return"descend";return!1}function createNextSorter(t,o){return t.sorter===void 0?null:o===null||o.columnKey!==t.key?{columnKey:t.key,sorter:t.sorter,order:getNextOrderOf(!1)}:Object.assign(Object.assign({},o),{order:getNextOrderOf(o.order)})}function isColumnSorting(t,o){return o.find(n=>n.columnKey===t.key&&n.order)!==void 0}const NDataTableFilterMenu=defineComponent({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(t){const{mergedClsPrefixRef:o,mergedThemeRef:n,localeRef:r}=inject(dataTableInjectionKey),s=ref(t.value),l=computed(()=>{const{value:y}=s;return Array.isArray(y)?y:null}),d=computed(()=>{const{value:y}=s;return shouldUseArrayInSingleMode(t.column)?Array.isArray(y)&&y.length&&y[0]||null:Array.isArray(y)?null:y});function m(y){t.onChange(y)}function _(y){t.multiple&&Array.isArray(y)?s.value=y:shouldUseArrayInSingleMode(t.column)&&!Array.isArray(y)?s.value=[y]:s.value=y}function g(){m(s.value),t.onConfirm()}function v(){t.multiple||shouldUseArrayInSingleMode(t.column)?m([]):m(null),t.onClear()}return{mergedClsPrefix:o,mergedTheme:n,locale:r,checkboxGroupValue:l,radioGroupValue:d,handleChange:_,handleConfirmClick:g,handleClearClick:v}},render(){const{mergedTheme:t,locale:o,mergedClsPrefix:n}=this;return h("div",{class:`${n}-data-table-filter-menu`},h(NScrollbar$1,null,{default:()=>{const{checkboxGroupValue:r,handleChange:s}=this;return this.multiple?h(NCheckboxGroup,{value:r,class:`${n}-data-table-filter-menu__group`,onUpdateValue:s},{default:()=>this.options.map(l=>h(NCheckbox,{key:l.value,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,value:l.value},{default:()=>l.label}))}):h(NRadioGroup,{name:this.radioGroupName,class:`${n}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(l=>h(NRadio,{key:l.value,value:l.value,theme:t.peers.Radio,themeOverrides:t.peerOverrides.Radio},{default:()=>l.label}))})}}),h("div",{class:`${n}-data-table-filter-menu__action`},h(NButton,{size:"tiny",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>o.clear}),h(NButton,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>o.confirm})))}});function createFilterState(t,o,n){const r=Object.assign({},t);return r[o]=n,r}const FilterButton=defineComponent({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(t){const{mergedComponentPropsRef:o}=useConfig(),{mergedThemeRef:n,mergedClsPrefixRef:r,mergedFilterStateRef:s,filterMenuCssVarsRef:l,paginationBehaviorOnFilterRef:d,doUpdatePage:m,doUpdateFilters:_}=inject(dataTableInjectionKey),g=ref(!1),v=s,y=computed(()=>t.column.filterMultiple!==!1),w=computed(()=>{const C=v.value[t.column.key];if(C===void 0){const{value:I}=y;return I?[]:null}return C}),B=computed(()=>{const{value:C}=w;return Array.isArray(C)?C.length>0:C!==null}),k=computed(()=>{var C,I;return((I=(C=o==null?void 0:o.value)===null||C===void 0?void 0:C.DataTable)===null||I===void 0?void 0:I.renderFilter)||t.column.renderFilter});function N(C){const I=createFilterState(v.value,t.column.key,C);_(I,t.column),d.value==="first"&&m(1)}function S(){g.value=!1}function x(){g.value=!1}return{mergedTheme:n,mergedClsPrefix:r,active:B,showPopover:g,mergedRenderFilter:k,filterMultiple:y,mergedFilterValue:w,filterMenuCssVars:l,handleFilterChange:N,handleFilterMenuConfirm:x,handleFilterMenuCancel:S}},render(){const{mergedTheme:t,mergedClsPrefix:o,handleFilterMenuCancel:n}=this;return h(NPopover,{show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,placement:"bottom",style:{padding:0}},{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return h(RenderFilter,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:s}=this.column;return h("div",{"data-data-table-filter":!0,class:[`${o}-data-table-filter`,{[`${o}-data-table-filter--active`]:this.active,[`${o}-data-table-filter--show`]:this.showPopover}]},s?s({active:this.active,show:this.showPopover}):h(NBaseIcon,{clsPrefix:o},{default:()=>h(FilterIcon,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:n}):h(NDataTableFilterMenu,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),ResizeButton=defineComponent({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(t){const{mergedClsPrefixRef:o}=inject(dataTableInjectionKey),n=ref(!1);let r=0;function s(_){return _.clientX}function l(_){var g;_.preventDefault();const v=n.value;r=s(_),n.value=!0,v||(on$1("mousemove",window,d),on$1("mouseup",window,m),(g=t.onResizeStart)===null||g===void 0||g.call(t))}function d(_){var g;(g=t.onResize)===null||g===void 0||g.call(t,s(_)-r)}function m(){var _;n.value=!1,(_=t.onResizeEnd)===null||_===void 0||_.call(t),off$1("mousemove",window,d),off$1("mouseup",window,m)}return onBeforeUnmount(()=>{off$1("mousemove",window,d),off$1("mouseup",window,m)}),{mergedClsPrefix:o,active:n,handleMousedown:l}},render(){const{mergedClsPrefix:t}=this;return h("span",{"data-data-table-resizable":!0,class:[`${t}-data-table-resize-button`,this.active&&`${t}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),NDropdownDivider=defineComponent({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return h("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),self$e=t=>{const{textColorBase:o,opacity1:n,opacity2:r,opacity3:s,opacity4:l,opacity5:d}=t;return{color:o,opacity1Depth:n,opacity2Depth:r,opacity3Depth:s,opacity4Depth:l,opacity5Depth:d}},iconLight={name:"Icon",common:commonLight,self:self$e},iconLight$1=iconLight,style$g=cB("icon",`
+ height: 1em;
+ width: 1em;
+ line-height: 1em;
+ text-align: center;
+ display: inline-block;
+ position: relative;
+ fill: currentColor;
+ transform: translateZ(0);
+`,[cM("color-transition",{transition:"color .3s var(--n-bezier)"}),cM("depth",{color:"var(--n-color)"},[c$1("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),c$1("svg",{height:"1em",width:"1em"})]),iconProps=Object.assign(Object.assign({},useTheme.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),NIcon=defineComponent({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:iconProps,setup(t){const{mergedClsPrefixRef:o,inlineThemeDisabled:n}=useConfig(t),r=useTheme("Icon","-icon",style$g,iconLight$1,t,o),s=computed(()=>{const{depth:d}=t,{common:{cubicBezierEaseInOut:m},self:_}=r.value;if(d!==void 0){const{color:g,[`opacity${d}Depth`]:v}=_;return{"--n-bezier":m,"--n-color":g,"--n-opacity":v}}return{"--n-bezier":m,"--n-color":"","--n-opacity":""}}),l=n?useThemeClass("icon",computed(()=>`${t.depth||"d"}`),s,t):void 0;return{mergedClsPrefix:o,mergedStyle:computed(()=>{const{size:d,color:m}=t;return{fontSize:formatLength(d),color:m}}),cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t;const{$parent:o,depth:n,mergedClsPrefix:r,component:s,onRender:l,themeClass:d}=this;return!((t=o==null?void 0:o.$options)===null||t===void 0)&&t._n_icon__&&warn$2("icon","don't wrap `n-icon` inside `n-icon`"),l==null||l(),h("i",mergeProps(this.$attrs,{role:"img",class:[`${r}-icon`,d,{[`${r}-icon--depth`]:n,[`${r}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),s?h(s):this.$slots)}}),dropdownMenuInjectionKey="n-dropdown-menu",dropdownInjectionKey="n-dropdown",dropdownOptionInjectionKey="n-dropdown-option";function isSubmenuNode(t,o){return t.type==="submenu"||t.type===void 0&&t[o]!==void 0}function isGroupNode(t){return t.type==="group"}function isDividerNode(t){return t.type==="divider"}function isRenderNode(t){return t.type==="render"}const NDropdownOption=defineComponent({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(t){const o=inject(dropdownInjectionKey),{hoverKeyRef:n,keyboardKeyRef:r,lastToggledSubmenuKeyRef:s,pendingKeyPathRef:l,activeKeyPathRef:d,animatedRef:m,mergedShowRef:_,renderLabelRef:g,renderIconRef:v,labelFieldRef:y,childrenFieldRef:w,renderOptionRef:B,nodePropsRef:k,menuPropsRef:N}=o,S=inject(dropdownOptionInjectionKey,null),x=inject(dropdownMenuInjectionKey),C=inject(popoverBodyInjectionKey),I=computed(()=>t.tmNode.rawNode),D=computed(()=>{const{value:j}=w;return isSubmenuNode(t.tmNode.rawNode,j)}),R=computed(()=>{const{disabled:j}=t.tmNode;return j}),O=computed(()=>{if(!D.value)return!1;const{key:j,disabled:re}=t.tmNode;if(re)return!1;const{value:ce}=n,{value:le}=r,{value:se}=s,{value:te}=l;return ce!==null?te.includes(j):le!==null?te.includes(j)&&te[te.length-1]!==j:se!==null?te.includes(j):!1}),Q=computed(()=>r.value===null&&!m.value),Y=useDeferredTrue(O,300,Q),W=computed(()=>!!(S!=null&&S.enteringSubmenuRef.value)),K=ref(!1);provide(dropdownOptionInjectionKey,{enteringSubmenuRef:K});function ee(){K.value=!0}function q(){K.value=!1}function ae(){const{parentKey:j,tmNode:re}=t;re.disabled||_.value&&(s.value=j,r.value=null,n.value=re.key)}function ie(){const{tmNode:j}=t;j.disabled||_.value&&n.value!==j.key&&ae()}function oe(j){if(t.tmNode.disabled||!_.value)return;const{relatedTarget:re}=j;re&&!happensIn({target:re},"dropdownOption")&&!happensIn({target:re},"scrollbarRail")&&(n.value=null)}function J(){const{value:j}=D,{tmNode:re}=t;_.value&&!j&&!re.disabled&&(o.doSelect(re.key,re.rawNode),o.doUpdateShow(!1))}return{labelField:y,renderLabel:g,renderIcon:v,siblingHasIcon:x.showIconRef,siblingHasSubmenu:x.hasSubmenuRef,menuProps:N,popoverBody:C,animated:m,mergedShowSubmenu:computed(()=>Y.value&&!W.value),rawNode:I,hasSubmenu:D,pending:useMemo(()=>{const{value:j}=l,{key:re}=t.tmNode;return j.includes(re)}),childActive:useMemo(()=>{const{value:j}=d,{key:re}=t.tmNode,ce=j.findIndex(le=>re===le);return ce===-1?!1:ce{const{value:j}=d,{key:re}=t.tmNode,ce=j.findIndex(le=>re===le);return ce===-1?!1:ce===j.length-1}),mergedDisabled:R,renderOption:B,nodeProps:k,handleClick:J,handleMouseMove:ie,handleMouseEnter:ae,handleMouseLeave:oe,handleSubmenuBeforeEnter:ee,handleSubmenuAfterEnter:q}},render(){var t,o;const{animated:n,rawNode:r,mergedShowSubmenu:s,clsPrefix:l,siblingHasIcon:d,siblingHasSubmenu:m,renderLabel:_,renderIcon:g,renderOption:v,nodeProps:y,props:w,scrollable:B}=this;let k=null;if(s){const C=(t=this.menuProps)===null||t===void 0?void 0:t.call(this,r,r.children);k=h(NDropdownMenu,Object.assign({},C,{clsPrefix:l,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const N={class:[`${l}-dropdown-option-body`,this.pending&&`${l}-dropdown-option-body--pending`,this.active&&`${l}-dropdown-option-body--active`,this.childActive&&`${l}-dropdown-option-body--child-active`,this.mergedDisabled&&`${l}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},S=y==null?void 0:y(r),x=h("div",Object.assign({class:[`${l}-dropdown-option`,S==null?void 0:S.class],"data-dropdown-option":!0},S),h("div",mergeProps(N,w),[h("div",{class:[`${l}-dropdown-option-body__prefix`,d&&`${l}-dropdown-option-body__prefix--show-icon`]},[g?g(r):render$6(r.icon)]),h("div",{"data-dropdown-option":!0,class:`${l}-dropdown-option-body__label`},_?_(r):render$6((o=r[this.labelField])!==null&&o!==void 0?o:r.title)),h("div",{"data-dropdown-option":!0,class:[`${l}-dropdown-option-body__suffix`,m&&`${l}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?h(NIcon,null,{default:()=>h(ChevronRightIcon,null)}):null)]),this.hasSubmenu?h(VBinder,null,{default:()=>[h(VTarget,null,{default:()=>h("div",{class:`${l}-dropdown-offset-container`},h(VFollower,{show:this.mergedShowSubmenu,placement:this.placement,to:B&&this.popoverBody||void 0,teleportDisabled:!B},{default:()=>h("div",{class:`${l}-dropdown-menu-wrapper`},n?h(Transition,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>k}):k)}))})]}):null);return v?v({node:x,option:r}):x}}),NDropdownGroupHeader=defineComponent({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:t,hasSubmenuRef:o}=inject(dropdownMenuInjectionKey),{renderLabelRef:n,labelFieldRef:r,nodePropsRef:s,renderOptionRef:l}=inject(dropdownInjectionKey);return{labelField:r,showIcon:t,hasSubmenu:o,renderLabel:n,nodeProps:s,renderOption:l}},render(){var t;const{clsPrefix:o,hasSubmenu:n,showIcon:r,nodeProps:s,renderLabel:l,renderOption:d}=this,{rawNode:m}=this.tmNode,_=h("div",Object.assign({class:`${o}-dropdown-option`},s==null?void 0:s(m)),h("div",{class:`${o}-dropdown-option-body ${o}-dropdown-option-body--group`},h("div",{"data-dropdown-option":!0,class:[`${o}-dropdown-option-body__prefix`,r&&`${o}-dropdown-option-body__prefix--show-icon`]},render$6(m.icon)),h("div",{class:`${o}-dropdown-option-body__label`,"data-dropdown-option":!0},l?l(m):render$6((t=m.title)!==null&&t!==void 0?t:m[this.labelField])),h("div",{class:[`${o}-dropdown-option-body__suffix`,n&&`${o}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return d?d({node:_,option:m}):_}}),NDropdownGroup=defineComponent({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:t,parentKey:o,clsPrefix:n}=this,{children:r}=t;return h(Fragment,null,h(NDropdownGroupHeader,{clsPrefix:n,tmNode:t,key:t.key}),r==null?void 0:r.map(s=>{const{rawNode:l}=s;return l.show===!1?null:isDividerNode(l)?h(NDropdownDivider,{clsPrefix:n,key:s.key}):s.isGroup?(warn$2("dropdown","`group` node is not allowed to be put in `group` node."),null):h(NDropdownOption,{clsPrefix:n,tmNode:s,parentKey:o,key:s.key})}))}}),NDropdownRenderOption=defineComponent({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:t,props:o}}=this.tmNode;return h("div",o,[t==null?void 0:t()])}}),NDropdownMenu=defineComponent({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(t){const{renderIconRef:o,childrenFieldRef:n}=inject(dropdownInjectionKey);provide(dropdownMenuInjectionKey,{showIconRef:computed(()=>{const s=o.value;return t.tmNodes.some(l=>{var d;if(l.isGroup)return(d=l.children)===null||d===void 0?void 0:d.some(({rawNode:_})=>s?s(_):_.icon);const{rawNode:m}=l;return s?s(m):m.icon})}),hasSubmenuRef:computed(()=>{const{value:s}=n;return t.tmNodes.some(l=>{var d;if(l.isGroup)return(d=l.children)===null||d===void 0?void 0:d.some(({rawNode:_})=>isSubmenuNode(_,s));const{rawNode:m}=l;return isSubmenuNode(m,s)})})});const r=ref(null);return provide(modalBodyInjectionKey,null),provide(drawerBodyInjectionKey,null),provide(popoverBodyInjectionKey,r),{bodyRef:r}},render(){const{parentKey:t,clsPrefix:o,scrollable:n}=this,r=this.tmNodes.map(s=>{const{rawNode:l}=s;return l.show===!1?null:isRenderNode(l)?h(NDropdownRenderOption,{tmNode:s,key:s.key}):isDividerNode(l)?h(NDropdownDivider,{clsPrefix:o,key:s.key}):isGroupNode(l)?h(NDropdownGroup,{clsPrefix:o,tmNode:s,parentKey:t,key:s.key}):h(NDropdownOption,{clsPrefix:o,tmNode:s,parentKey:t,key:s.key,props:l.props,scrollable:n})});return h("div",{class:[`${o}-dropdown-menu`,n&&`${o}-dropdown-menu--scrollable`],ref:"bodyRef"},n?h(XScrollbar,{contentClass:`${o}-dropdown-menu__content`},{default:()=>r}):r,this.showArrow?renderArrow({clsPrefix:o,arrowStyle:this.arrowStyle}):null)}}),style$f=cB("dropdown-menu",`
+ transform-origin: var(--v-transform-origin);
+ background-color: var(--n-color);
+ border-radius: var(--n-border-radius);
+ box-shadow: var(--n-box-shadow);
+ position: relative;
+ transition:
+ background-color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier);
+`,[fadeInScaleUpTransition(),cB("dropdown-option",`
+ position: relative;
+ `,[c$1("a",`
+ text-decoration: none;
+ color: inherit;
+ outline: none;
+ `,[c$1("&::before",`
+ content: "";
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ `)]),cB("dropdown-option-body",`
+ display: flex;
+ cursor: pointer;
+ position: relative;
+ height: var(--n-option-height);
+ line-height: var(--n-option-height);
+ font-size: var(--n-font-size);
+ color: var(--n-option-text-color);
+ transition: color .3s var(--n-bezier);
+ `,[c$1("&::before",`
+ content: "";
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 4px;
+ right: 4px;
+ transition: background-color .3s var(--n-bezier);
+ border-radius: var(--n-border-radius);
+ `),cNotM("disabled",[cM("pending",`
+ color: var(--n-option-text-color-hover);
+ `,[cE("prefix, suffix",`
+ color: var(--n-option-text-color-hover);
+ `),c$1("&::before","background-color: var(--n-option-color-hover);")]),cM("active",`
+ color: var(--n-option-text-color-active);
+ `,[cE("prefix, suffix",`
+ color: var(--n-option-text-color-active);
+ `),c$1("&::before","background-color: var(--n-option-color-active);")]),cM("child-active",`
+ color: var(--n-option-text-color-child-active);
+ `,[cE("prefix, suffix",`
+ color: var(--n-option-text-color-child-active);
+ `)])]),cM("disabled",`
+ cursor: not-allowed;
+ opacity: var(--n-option-opacity-disabled);
+ `),cM("group",`
+ font-size: calc(var(--n-font-size) - 1px);
+ color: var(--n-group-header-text-color);
+ `,[cE("prefix",`
+ width: calc(var(--n-option-prefix-width) / 2);
+ `,[cM("show-icon",`
+ width: calc(var(--n-option-icon-prefix-width) / 2);
+ `)])]),cE("prefix",`
+ width: var(--n-option-prefix-width);
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ color: var(--n-prefix-color);
+ transition: color .3s var(--n-bezier);
+ z-index: 1;
+ `,[cM("show-icon",`
+ width: var(--n-option-icon-prefix-width);
+ `),cB("icon",`
+ font-size: var(--n-option-icon-size);
+ `)]),cE("label",`
+ white-space: nowrap;
+ flex: 1;
+ z-index: 1;
+ `),cE("suffix",`
+ box-sizing: border-box;
+ flex-grow: 0;
+ flex-shrink: 0;
+ display: flex;
+ justify-content: flex-end;
+ align-items: center;
+ min-width: var(--n-option-suffix-width);
+ padding: 0 8px;
+ transition: color .3s var(--n-bezier);
+ color: var(--n-suffix-color);
+ z-index: 1;
+ `,[cM("has-submenu",`
+ width: var(--n-option-icon-suffix-width);
+ `),cB("icon",`
+ font-size: var(--n-option-icon-size);
+ `)]),cB("dropdown-menu","pointer-events: all;")]),cB("dropdown-offset-container",`
+ pointer-events: none;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: -4px;
+ bottom: -4px;
+ `)]),cB("dropdown-divider",`
+ transition: background-color .3s var(--n-bezier);
+ background-color: var(--n-divider-color);
+ height: 1px;
+ margin: 4px 0;
+ `),cB("dropdown-menu-wrapper",`
+ transform-origin: var(--v-transform-origin);
+ width: fit-content;
+ `),c$1(">",[cB("scrollbar",`
+ height: inherit;
+ max-height: inherit;
+ `)]),cNotM("scrollable",`
+ padding: var(--n-padding);
+ `),cM("scrollable",[cE("content",`
+ padding: var(--n-padding);
+ `)])]),dropdownBaseProps={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},popoverPropKeys=Object.keys(popoverBaseProps),dropdownProps=Object.assign(Object.assign(Object.assign({},popoverBaseProps),dropdownBaseProps),useTheme.props),NDropdown=defineComponent({name:"Dropdown",inheritAttrs:!1,props:dropdownProps,setup(t){const o=ref(!1),n=useMergedState(toRef(t,"show"),o),r=computed(()=>{const{keyField:q,childrenField:ae}=t;return createTreeMate(t.options,{getKey(ie){return ie[q]},getDisabled(ie){return ie.disabled===!0},getIgnored(ie){return ie.type==="divider"||ie.type==="render"},getChildren(ie){return ie[ae]}})}),s=computed(()=>r.value.treeNodes),l=ref(null),d=ref(null),m=ref(null),_=computed(()=>{var q,ae,ie;return(ie=(ae=(q=l.value)!==null&&q!==void 0?q:d.value)!==null&&ae!==void 0?ae:m.value)!==null&&ie!==void 0?ie:null}),g=computed(()=>r.value.getPath(_.value).keyPath),v=computed(()=>r.value.getPath(t.value).keyPath),y=useMemo(()=>t.keyboard&&n.value);useKeyboard({keydown:{ArrowUp:{prevent:!0,handler:R},ArrowRight:{prevent:!0,handler:D},ArrowDown:{prevent:!0,handler:O},ArrowLeft:{prevent:!0,handler:I},Enter:{prevent:!0,handler:Q},Escape:C}},y);const{mergedClsPrefixRef:w,inlineThemeDisabled:B}=useConfig(t),k=useTheme("Dropdown","-dropdown",style$f,dropdownLight$1,t,w);provide(dropdownInjectionKey,{labelFieldRef:toRef(t,"labelField"),childrenFieldRef:toRef(t,"childrenField"),renderLabelRef:toRef(t,"renderLabel"),renderIconRef:toRef(t,"renderIcon"),hoverKeyRef:l,keyboardKeyRef:d,lastToggledSubmenuKeyRef:m,pendingKeyPathRef:g,activeKeyPathRef:v,animatedRef:toRef(t,"animated"),mergedShowRef:n,nodePropsRef:toRef(t,"nodeProps"),renderOptionRef:toRef(t,"renderOption"),menuPropsRef:toRef(t,"menuProps"),doSelect:N,doUpdateShow:S}),watch(n,q=>{!t.animated&&!q&&x()});function N(q,ae){const{onSelect:ie}=t;ie&&call(ie,q,ae)}function S(q){const{"onUpdate:show":ae,onUpdateShow:ie}=t;ae&&call(ae,q),ie&&call(ie,q),o.value=q}function x(){l.value=null,d.value=null,m.value=null}function C(){S(!1)}function I(){W("left")}function D(){W("right")}function R(){W("up")}function O(){W("down")}function Q(){const q=Y();q!=null&&q.isLeaf&&n.value&&(N(q.key,q.rawNode),S(!1))}function Y(){var q;const{value:ae}=r,{value:ie}=_;return!ae||ie===null?null:(q=ae.getNode(ie))!==null&&q!==void 0?q:null}function W(q){const{value:ae}=_,{value:{getFirstAvailableNode:ie}}=r;let oe=null;if(ae===null){const J=ie();J!==null&&(oe=J.key)}else{const J=Y();if(J){let j;switch(q){case"down":j=J.getNext();break;case"up":j=J.getPrev();break;case"right":j=J.getChild();break;case"left":j=J.getParent();break}j&&(oe=j.key)}}oe!==null&&(l.value=null,d.value=oe)}const K=computed(()=>{const{size:q,inverted:ae}=t,{common:{cubicBezierEaseInOut:ie},self:oe}=k.value,{padding:J,dividerColor:j,borderRadius:re,optionOpacityDisabled:ce,[createKey("optionIconSuffixWidth",q)]:le,[createKey("optionSuffixWidth",q)]:se,[createKey("optionIconPrefixWidth",q)]:te,[createKey("optionPrefixWidth",q)]:ne,[createKey("fontSize",q)]:de,[createKey("optionHeight",q)]:fe,[createKey("optionIconSize",q)]:ve}=oe,ze={"--n-bezier":ie,"--n-font-size":de,"--n-padding":J,"--n-border-radius":re,"--n-option-height":fe,"--n-option-prefix-width":ne,"--n-option-icon-prefix-width":te,"--n-option-suffix-width":se,"--n-option-icon-suffix-width":le,"--n-option-icon-size":ve,"--n-divider-color":j,"--n-option-opacity-disabled":ce};return ae?(ze["--n-color"]=oe.colorInverted,ze["--n-option-color-hover"]=oe.optionColorHoverInverted,ze["--n-option-color-active"]=oe.optionColorActiveInverted,ze["--n-option-text-color"]=oe.optionTextColorInverted,ze["--n-option-text-color-hover"]=oe.optionTextColorHoverInverted,ze["--n-option-text-color-active"]=oe.optionTextColorActiveInverted,ze["--n-option-text-color-child-active"]=oe.optionTextColorChildActiveInverted,ze["--n-prefix-color"]=oe.prefixColorInverted,ze["--n-suffix-color"]=oe.suffixColorInverted,ze["--n-group-header-text-color"]=oe.groupHeaderTextColorInverted):(ze["--n-color"]=oe.color,ze["--n-option-color-hover"]=oe.optionColorHover,ze["--n-option-color-active"]=oe.optionColorActive,ze["--n-option-text-color"]=oe.optionTextColor,ze["--n-option-text-color-hover"]=oe.optionTextColorHover,ze["--n-option-text-color-active"]=oe.optionTextColorActive,ze["--n-option-text-color-child-active"]=oe.optionTextColorChildActive,ze["--n-prefix-color"]=oe.prefixColor,ze["--n-suffix-color"]=oe.suffixColor,ze["--n-group-header-text-color"]=oe.groupHeaderTextColor),ze}),ee=B?useThemeClass("dropdown",computed(()=>`${t.size[0]}${t.inverted?"i":""}`),K,t):void 0;return{mergedClsPrefix:w,mergedTheme:k,tmNodes:s,mergedShow:n,handleAfterLeave:()=>{t.animated&&x()},doUpdateShow:S,cssVars:B?void 0:K,themeClass:ee==null?void 0:ee.themeClass,onRender:ee==null?void 0:ee.onRender}},render(){const t=(r,s,l,d,m)=>{var _;const{mergedClsPrefix:g,menuProps:v}=this;(_=this.onRender)===null||_===void 0||_.call(this);const y=(v==null?void 0:v(void 0,this.tmNodes.map(B=>B.rawNode)))||{},w={ref:createRefSetter(s),class:[r,`${g}-dropdown`,this.themeClass],clsPrefix:g,tmNodes:this.tmNodes,style:[l,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:d,onMouseleave:m};return h(NDropdownMenu,mergeProps(this.$attrs,w,y))},{mergedTheme:o}=this,n={show:this.mergedShow,theme:o.peers.Popover,themeOverrides:o.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:t,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return h(NPopover,Object.assign({},keep(this.$props,popoverPropKeys),n),{trigger:()=>{var r,s;return(s=(r=this.$slots).default)===null||s===void 0?void 0:s.call(r)}})}}),allKey="_n_all__",noneKey="_n_none__";function createSelectHandler(t,o,n,r){return t?s=>{for(const l of t)switch(s){case allKey:n(!0);return;case noneKey:r(!0);return;default:if(typeof l=="object"&&l.key===s){l.onSelect(o.value);return}}}:()=>{}}function createDropdownOptions(t,o){return t?t.map(n=>{switch(n){case"all":return{label:o.checkTableAll,key:allKey};case"none":return{label:o.uncheckTableAll,key:noneKey};default:return n}}):[]}const SelectionMenu=defineComponent({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(t){const{props:o,localeRef:n,checkOptionsRef:r,rawPaginatedDataRef:s,doCheckAll:l,doUncheckAll:d}=inject(dataTableInjectionKey),m=computed(()=>createSelectHandler(r.value,s,l,d)),_=computed(()=>createDropdownOptions(r.value,n.value));return()=>{var g,v,y,w;const{clsPrefix:B}=t;return h(NDropdown,{theme:(v=(g=o.theme)===null||g===void 0?void 0:g.peers)===null||v===void 0?void 0:v.Dropdown,themeOverrides:(w=(y=o.themeOverrides)===null||y===void 0?void 0:y.peers)===null||w===void 0?void 0:w.Dropdown,options:_.value,onSelect:m.value},{default:()=>h(NBaseIcon,{clsPrefix:B,class:`${B}-data-table-check-extra`},{default:()=>h(ChevronDownIcon,null)})})}}});function renderTitle(t){return typeof t.title=="function"?t.title(t):t.title}const TableHeader=defineComponent({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:t,scrollXRef:o,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:r,mergedCurrentPageRef:s,allRowsCheckedRef:l,someRowsCheckedRef:d,rowsRef:m,colsRef:_,mergedThemeRef:g,checkOptionsRef:v,mergedSortStateRef:y,componentId:w,mergedTableLayoutRef:B,headerCheckboxDisabledRef:k,onUnstableColumnResize:N,doUpdateResizableWidth:S,handleTableHeaderScroll:x,deriveNextSorter:C,doUncheckAll:I,doCheckAll:D}=inject(dataTableInjectionKey),R=ref({});function O(q){const ae=R.value[q];return ae==null?void 0:ae.getBoundingClientRect().width}function Q(){l.value?I():D()}function Y(q,ae){if(happensIn(q,"dataTableFilter")||happensIn(q,"dataTableResizable")||!isColumnSortable(ae))return;const ie=y.value.find(J=>J.columnKey===ae.key)||null,oe=createNextSorter(ae,ie);C(oe)}const W=new Map;function K(q){W.set(q.key,O(q.key))}function ee(q,ae){const ie=W.get(q.key);if(ie===void 0)return;const oe=ie+ae,J=clampValueFollowCSSRules(oe,q.minWidth,q.maxWidth);N(oe,J,q,O),S(q,J)}return{cellElsRef:R,componentId:w,mergedSortState:y,mergedClsPrefix:t,scrollX:o,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:s,allRowsChecked:l,someRowsChecked:d,rows:m,cols:_,mergedTheme:g,checkOptions:v,mergedTableLayout:B,headerCheckboxDisabled:k,handleCheckboxUpdateChecked:Q,handleColHeaderClick:Y,handleTableHeaderScroll:x,handleColumnResizeStart:K,handleColumnResize:ee}},render(){const{cellElsRef:t,mergedClsPrefix:o,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:s,allRowsChecked:l,someRowsChecked:d,rows:m,cols:_,mergedTheme:g,checkOptions:v,componentId:y,discrete:w,mergedTableLayout:B,headerCheckboxDisabled:k,mergedSortState:N,handleColHeaderClick:S,handleCheckboxUpdateChecked:x,handleColumnResizeStart:C,handleColumnResize:I}=this,D=h("thead",{class:`${o}-data-table-thead`,"data-n-id":y},m.map(Q=>h("tr",{class:`${o}-data-table-tr`},Q.map(({column:Y,colSpan:W,rowSpan:K,isLast:ee})=>{var q,ae;const ie=getColKey(Y),{ellipsis:oe}=Y,J=()=>Y.type==="selection"?Y.multiple!==!1?h(Fragment,null,h(NCheckbox,{key:s,privateInsideTable:!0,checked:l,indeterminate:d,disabled:k,onUpdateChecked:x}),v?h(SelectionMenu,{clsPrefix:o}):null):null:h(Fragment,null,h("div",{class:`${o}-data-table-th__title-wrapper`},h("div",{class:`${o}-data-table-th__title`},oe===!0||oe&&!oe.tooltip?h("div",{class:`${o}-data-table-th__ellipsis`},renderTitle(Y)):oe&&typeof oe=="object"?h(NEllipsis,Object.assign({},oe,{theme:g.peers.Ellipsis,themeOverrides:g.peerOverrides.Ellipsis}),{default:()=>renderTitle(Y)}):renderTitle(Y)),isColumnSortable(Y)?h(SortButton,{column:Y}):null),isColumnFilterable(Y)?h(FilterButton,{column:Y,options:Y.filterOptions}):null,isColumnResizable(Y)?h(ResizeButton,{onResizeStart:()=>{C(Y)},onResize:ce=>{I(Y,ce)}}):null),j=ie in n,re=ie in r;return h("th",{ref:ce=>t[ie]=ce,key:ie,style:{textAlign:Y.titleAlign||Y.align,left:pxfy((q=n[ie])===null||q===void 0?void 0:q.start),right:pxfy((ae=r[ie])===null||ae===void 0?void 0:ae.start)},colspan:W,rowspan:K,"data-col-key":ie,class:[`${o}-data-table-th`,(j||re)&&`${o}-data-table-th--fixed-${j?"left":"right"}`,{[`${o}-data-table-th--hover`]:isColumnSorting(Y,N),[`${o}-data-table-th--filterable`]:isColumnFilterable(Y),[`${o}-data-table-th--sortable`]:isColumnSortable(Y),[`${o}-data-table-th--selection`]:Y.type==="selection",[`${o}-data-table-th--last`]:ee},Y.className],onClick:Y.type!=="selection"&&Y.type!=="expand"&&!("children"in Y)?ce=>{S(ce,Y)}:void 0},J())}))));if(!w)return D;const{handleTableHeaderScroll:R,scrollX:O}=this;return h("div",{class:`${o}-data-table-base-table-header`,onScroll:R},h("table",{ref:"body",class:`${o}-data-table-table`,style:{minWidth:formatLength(O),tableLayout:B}},h("colgroup",null,_.map(Q=>h("col",{key:Q.key,style:Q.style}))),D))}}),Cell=defineComponent({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){const{isSummary:t,column:o,row:n,renderCell:r}=this;let s;const{render:l,key:d,ellipsis:m}=o;if(l&&!t?s=l(n,this.index):t?s=n[d].value:s=r?r(get(n,d),n,o):get(n,d),m)if(typeof m=="object"){const{mergedTheme:_}=this;return o.ellipsisComponent==="performant-ellipsis"?h(NPerformantEllipsis,Object.assign({},m,{theme:_.peers.Ellipsis,themeOverrides:_.peerOverrides.Ellipsis}),{default:()=>s}):h(NEllipsis,Object.assign({},m,{theme:_.peers.Ellipsis,themeOverrides:_.peerOverrides.Ellipsis}),{default:()=>s})}else return h("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},s);return s}}),ExpandTrigger=defineComponent({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function}},render(){const{clsPrefix:t}=this;return h("div",{class:[`${t}-data-table-expand-trigger`,this.expanded&&`${t}-data-table-expand-trigger--expanded`],onClick:this.onClick,onMousedown:o=>{o.preventDefault()}},h(NIconSwitchTransition,null,{default:()=>this.loading?h(NBaseLoading,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded}):h(NBaseIcon,{clsPrefix:t,key:"base-icon"},{default:()=>h(ChevronRightIcon,null)})}))}}),RenderSafeCheckbox=defineComponent({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(t){const{mergedCheckedRowKeySetRef:o,mergedInderminateRowKeySetRef:n}=inject(dataTableInjectionKey);return()=>{const{rowKey:r}=t;return h(NCheckbox,{privateInsideTable:!0,disabled:t.disabled,indeterminate:n.value.has(r),checked:o.value.has(r),onUpdateChecked:t.onUpdateChecked})}}}),RenderSafeRadio=defineComponent({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(t){const{mergedCheckedRowKeySetRef:o,componentId:n}=inject(dataTableInjectionKey);return()=>{const{rowKey:r}=t;return h(NRadio,{name:n,disabled:t.disabled,checked:o.value.has(r),onUpdateChecked:t.onUpdateChecked})}}});function flatten(t,o){const n=[];function r(s,l){s.forEach(d=>{d.children&&o.has(d.key)?(n.push({tmNode:d,striped:!1,key:d.key,index:l}),r(d.children,l)):n.push({key:d.key,tmNode:d,striped:!1,index:l})})}return t.forEach(s=>{n.push(s);const{children:l}=s.tmNode;l&&o.has(s.key)&&r(l,s.index)}),n}const VirtualListItemWrapper=defineComponent({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:t,id:o,cols:n,onMouseenter:r,onMouseleave:s}=this;return h("table",{style:{tableLayout:"fixed"},class:`${t}-data-table-table`,onMouseenter:r,onMouseleave:s},h("colgroup",null,n.map(l=>h("col",{key:l.key,style:l.style}))),h("tbody",{"data-n-id":o,class:`${t}-data-table-tbody`},this.$slots))}}),TableBody=defineComponent({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(t){const{slots:o,bodyWidthRef:n,mergedExpandedRowKeysRef:r,mergedClsPrefixRef:s,mergedThemeRef:l,scrollXRef:d,colsRef:m,paginatedDataRef:_,rawPaginatedDataRef:g,fixedColumnLeftMapRef:v,fixedColumnRightMapRef:y,mergedCurrentPageRef:w,rowClassNameRef:B,leftActiveFixedColKeyRef:k,leftActiveFixedChildrenColKeysRef:N,rightActiveFixedColKeyRef:S,rightActiveFixedChildrenColKeysRef:x,renderExpandRef:C,hoverKeyRef:I,summaryRef:D,mergedSortStateRef:R,virtualScrollRef:O,componentId:Q,mergedTableLayoutRef:Y,childTriggerColIndexRef:W,indentRef:K,rowPropsRef:ee,maxHeightRef:q,stripedRef:ae,loadingRef:ie,onLoadRef:oe,loadingKeySetRef:J,expandableRef:j,stickyExpandedRowsRef:re,renderExpandIconRef:ce,summaryPlacementRef:le,treeMateRef:se,scrollbarPropsRef:te,setHeaderScrollLeft:ne,doUpdateExpandedRowKeys:de,handleTableBodyScroll:fe,doCheck:ve,doUncheck:ze,renderCell:Re}=inject(dataTableInjectionKey),ke=ref(null),xe=ref(null),tt=ref(null),me=useMemo(()=>_.value.length===0),be=useMemo(()=>t.showHeader||!me.value),Ne=useMemo(()=>t.showHeader||me.value);let qe="";const Be=computed(()=>new Set(r.value));function ge(De){var Me;return(Me=se.value.getNode(De))===null||Me===void 0?void 0:Me.rawNode}function ot(De,Me,Se){const Pe=ge(De.key);if(!Pe){warn$2("data-table",`fail to get row data with key ${De.key}`);return}if(Se){const ct=_.value.findIndex(Ue=>Ue.key===qe);if(ct!==-1){const Ue=_.value.findIndex(nt=>nt.key===De.key),ye=Math.min(ct,Ue),Qe=Math.max(ct,Ue),Ce=[];_.value.slice(ye,Qe+1).forEach(nt=>{nt.disabled||Ce.push(nt.key)}),Me?ve(Ce,!1,Pe):ze(Ce,Pe),qe=De.key;return}}Me?ve(De.key,!1,Pe):ze(De.key,Pe),qe=De.key}function lt(De){const Me=ge(De.key);if(!Me){warn$2("data-table",`fail to get row data with key ${De.key}`);return}ve(De.key,!0,Me)}function ut(){if(!be.value){const{value:Me}=tt;return Me||null}if(O.value)return Ie();const{value:De}=ke;return De?De.containerRef:null}function et(De,Me){var Se;if(J.value.has(De))return;const{value:Pe}=r,ct=Pe.indexOf(De),Ue=Array.from(Pe);~ct?(Ue.splice(ct,1),de(Ue)):Me&&!Me.isLeaf&&!Me.shallowLoaded?(J.value.add(De),(Se=oe.value)===null||Se===void 0||Se.call(oe,Me.rawNode).then(()=>{const{value:ye}=r,Qe=Array.from(ye);~Qe.indexOf(De)||Qe.push(De),de(Qe)}).finally(()=>{J.value.delete(De)})):(Ue.push(De),de(Ue))}function pt(){I.value=null}function Ie(){const{value:De}=xe;return De==null?void 0:De.listElRef}function at(){const{value:De}=xe;return De==null?void 0:De.itemsElRef}function He(De){var Me;fe(De),(Me=ke.value)===null||Me===void 0||Me.sync()}function Fe(De){var Me;const{onResize:Se}=t;Se&&Se(De),(Me=ke.value)===null||Me===void 0||Me.sync()}const dt={getScrollContainer:ut,scrollTo(De,Me){var Se,Pe;O.value?(Se=xe.value)===null||Se===void 0||Se.scrollTo(De,Me):(Pe=ke.value)===null||Pe===void 0||Pe.scrollTo(De,Me)}},gt=c$1([({props:De})=>{const Me=Pe=>Pe===null?null:c$1(`[data-n-id="${De.componentId}"] [data-col-key="${Pe}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),Se=Pe=>Pe===null?null:c$1(`[data-n-id="${De.componentId}"] [data-col-key="${Pe}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return c$1([Me(De.leftActiveFixedColKey),Se(De.rightActiveFixedColKey),De.leftActiveFixedChildrenColKeys.map(Pe=>Me(Pe)),De.rightActiveFixedChildrenColKeys.map(Pe=>Se(Pe))])}]);let Ke=!1;return watchEffect(()=>{const{value:De}=k,{value:Me}=N,{value:Se}=S,{value:Pe}=x;if(!Ke&&De===null&&Se===null)return;const ct={leftActiveFixedColKey:De,leftActiveFixedChildrenColKeys:Me,rightActiveFixedColKey:Se,rightActiveFixedChildrenColKeys:Pe,componentId:Q};gt.mount({id:`n-${Q}`,force:!0,props:ct,anchorMetaName:cssrAnchorMetaName}),Ke=!0}),onUnmounted(()=>{gt.unmount({id:`n-${Q}`})}),Object.assign({bodyWidth:n,summaryPlacement:le,dataTableSlots:o,componentId:Q,scrollbarInstRef:ke,virtualListRef:xe,emptyElRef:tt,summary:D,mergedClsPrefix:s,mergedTheme:l,scrollX:d,cols:m,loading:ie,bodyShowHeaderOnly:Ne,shouldDisplaySomeTablePart:be,empty:me,paginatedDataAndInfo:computed(()=>{const{value:De}=ae;let Me=!1;return{data:_.value.map(De?(Pe,ct)=>(Pe.isLeaf||(Me=!0),{tmNode:Pe,key:Pe.key,striped:ct%2===1,index:ct}):(Pe,ct)=>(Pe.isLeaf||(Me=!0),{tmNode:Pe,key:Pe.key,striped:!1,index:ct})),hasChildren:Me}}),rawPaginatedData:g,fixedColumnLeftMap:v,fixedColumnRightMap:y,currentPage:w,rowClassName:B,renderExpand:C,mergedExpandedRowKeySet:Be,hoverKey:I,mergedSortState:R,virtualScroll:O,mergedTableLayout:Y,childTriggerColIndex:W,indent:K,rowProps:ee,maxHeight:q,loadingKeySet:J,expandable:j,stickyExpandedRows:re,renderExpandIcon:ce,scrollbarProps:te,setHeaderScrollLeft:ne,handleVirtualListScroll:He,handleVirtualListResize:Fe,handleMouseleaveTable:pt,virtualListContainer:Ie,virtualListContent:at,handleTableBodyScroll:fe,handleCheckboxUpdateChecked:ot,handleRadioUpdateChecked:lt,handleUpdateExpanded:et,renderCell:Re},dt)},render(){const{mergedTheme:t,scrollX:o,mergedClsPrefix:n,virtualScroll:r,maxHeight:s,mergedTableLayout:l,flexHeight:d,loadingKeySet:m,onResize:_,setHeaderScrollLeft:g}=this,v=o!==void 0||s!==void 0||d,y=!v&&l==="auto",w=o!==void 0||y,B={minWidth:formatLength(o)||"100%"};o&&(B.width="100%");const k=h(NScrollbar$1,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:v||y,class:`${n}-data-table-base-table-body`,style:this.bodyStyle,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,contentStyle:B,container:r?this.virtualListContainer:void 0,content:r?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:w,onScroll:r?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:g,onResize:_}),{default:()=>{const N={},S={},{cols:x,paginatedDataAndInfo:C,mergedTheme:I,fixedColumnLeftMap:D,fixedColumnRightMap:R,currentPage:O,rowClassName:Q,mergedSortState:Y,mergedExpandedRowKeySet:W,stickyExpandedRows:K,componentId:ee,childTriggerColIndex:q,expandable:ae,rowProps:ie,handleMouseleaveTable:oe,renderExpand:J,summary:j,handleCheckboxUpdateChecked:re,handleRadioUpdateChecked:ce,handleUpdateExpanded:le}=this,{length:se}=x;let te;const{data:ne,hasChildren:de}=C,fe=de?flatten(ne,W):ne;if(j){const be=j(this.rawPaginatedData);if(Array.isArray(be)){const Ne=be.map((qe,Be)=>({isSummaryRow:!0,key:`__n_summary__${Be}`,tmNode:{rawNode:qe,disabled:!0},index:-1}));te=this.summaryPlacement==="top"?[...Ne,...fe]:[...fe,...Ne]}else{const Ne={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:be,disabled:!0},index:-1};te=this.summaryPlacement==="top"?[Ne,...fe]:[...fe,Ne]}}else te=fe;const ve=de?{width:pxfy(this.indent)}:void 0,ze=[];te.forEach(be=>{J&&W.has(be.key)&&(!ae||ae(be.tmNode.rawNode))?ze.push(be,{isExpandedRow:!0,key:`${be.key}-expand`,tmNode:be.tmNode,index:be.index}):ze.push(be)});const{length:Re}=ze,ke={};ne.forEach(({tmNode:be},Ne)=>{ke[Ne]=be.key});const xe=K?this.bodyWidth:null,tt=xe===null?void 0:`${xe}px`,me=(be,Ne,qe)=>{const{index:Be}=be;if("isExpandedRow"in be){const{tmNode:{key:Fe,rawNode:dt}}=be;return h("tr",{class:`${n}-data-table-tr ${n}-data-table-tr--expanded`,key:`${Fe}__expand`},h("td",{class:[`${n}-data-table-td`,`${n}-data-table-td--last-col`,Ne+1===Re&&`${n}-data-table-td--last-row`],colspan:se},K?h("div",{class:`${n}-data-table-expand`,style:{width:tt}},J(dt,Be)):J(dt,Be)))}const ge="isSummaryRow"in be,ot=!ge&&be.striped,{tmNode:lt,key:ut}=be,{rawNode:et}=lt,pt=W.has(ut),Ie=ie?ie(et,Be):void 0,at=typeof Q=="string"?Q:createRowClassName(et,Be,Q);return h("tr",Object.assign({onMouseenter:()=>{this.hoverKey=ut},key:ut,class:[`${n}-data-table-tr`,ge&&`${n}-data-table-tr--summary`,ot&&`${n}-data-table-tr--striped`,pt&&`${n}-data-table-tr--expanded`,at]},Ie),x.map((Fe,dt)=>{var gt,Ke,De,Me,Se;if(Ne in N){const Ee=N[Ne],Ye=Ee.indexOf(dt);if(~Ye)return Ee.splice(Ye,1),null}const{column:Pe}=Fe,ct=getColKey(Fe),{rowSpan:Ue,colSpan:ye}=Pe,Qe=ge?((gt=be.tmNode.rawNode[ct])===null||gt===void 0?void 0:gt.colSpan)||1:ye?ye(et,Be):1,Ce=ge?((Ke=be.tmNode.rawNode[ct])===null||Ke===void 0?void 0:Ke.rowSpan)||1:Ue?Ue(et,Be):1,nt=dt+Qe===se,ft=Ne+Ce===Re,Le=Ce>1;if(Le&&(S[Ne]={[dt]:[]}),Qe>1||Le)for(let Ee=Ne;Ee{le(ut,be.tmNode)}})]:null,Pe.type==="selection"?ge?null:Pe.multiple===!1?h(RenderSafeRadio,{key:O,rowKey:ut,disabled:be.tmNode.disabled,onUpdateChecked:()=>{ce(be.tmNode)}}):h(RenderSafeCheckbox,{key:O,rowKey:ut,disabled:be.tmNode.disabled,onUpdateChecked:(Ee,Ye)=>{re(be.tmNode,Ee,Ye.shiftKey)}}):Pe.type==="expand"?ge?null:!Pe.expandable||!((Se=Pe.expandable)===null||Se===void 0)&&Se.call(Pe,et)?h(ExpandTrigger,{clsPrefix:n,expanded:pt,renderExpandIcon:this.renderExpandIcon,onClick:()=>{le(ut,null)}}):null:h(Cell,{clsPrefix:n,index:Be,row:et,column:Pe,isSummary:ge,mergedTheme:I,renderCell:this.renderCell}))}))};return r?h(VVirtualList,{ref:"virtualListRef",items:ze,itemSize:28,visibleItemsTag:VirtualListItemWrapper,visibleItemsProps:{clsPrefix:n,id:ee,cols:x,onMouseleave:oe},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:B,itemResizable:!0},{default:({item:be,index:Ne})=>me(be,Ne,!0)}):h("table",{class:`${n}-data-table-table`,onMouseleave:oe,style:{tableLayout:this.mergedTableLayout}},h("colgroup",null,x.map(be=>h("col",{key:be.key,style:be.style}))),this.showHeader?h(TableHeader,{discrete:!1}):null,this.empty?null:h("tbody",{"data-n-id":ee,class:`${n}-data-table-tbody`},ze.map((be,Ne)=>me(be,Ne,!1))))}});if(this.empty){const N=()=>h("div",{class:[`${n}-data-table-empty`,this.loading&&`${n}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},resolveSlot(this.dataTableSlots.empty,()=>[h(NEmpty,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?h(Fragment,null,k,N()):h(VResizeObserver,{onResize:this.onResize},{default:N})}return k}}),MainTable=defineComponent({setup(){const{mergedClsPrefixRef:t,rightFixedColumnsRef:o,leftFixedColumnsRef:n,bodyWidthRef:r,maxHeightRef:s,minHeightRef:l,flexHeightRef:d,syncScrollState:m}=inject(dataTableInjectionKey),_=ref(null),g=ref(null),v=ref(null),y=ref(!(n.value.length||o.value.length)),w=computed(()=>({maxHeight:formatLength(s.value),minHeight:formatLength(l.value)}));function B(x){r.value=x.contentRect.width,m(),y.value||(y.value=!0)}function k(){const{value:x}=_;return x?x.$el:null}function N(){const{value:x}=g;return x?x.getScrollContainer():null}const S={getBodyElement:N,getHeaderElement:k,scrollTo(x,C){var I;(I=g.value)===null||I===void 0||I.scrollTo(x,C)}};return watchEffect(()=>{const{value:x}=v;if(!x)return;const C=`${t.value}-data-table-base-table--transition-disabled`;y.value?setTimeout(()=>{x.classList.remove(C)},0):x.classList.add(C)}),Object.assign({maxHeight:s,mergedClsPrefix:t,selfElRef:v,headerInstRef:_,bodyInstRef:g,bodyStyle:w,flexHeight:d,handleBodyResize:B},S)},render(){const{mergedClsPrefix:t,maxHeight:o,flexHeight:n}=this,r=o===void 0&&!n;return h("div",{class:`${t}-data-table-base-table`,ref:"selfElRef"},r?null:h(TableHeader,{ref:"headerInstRef"}),h(TableBody,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:r,flexHeight:n,onResize:this.handleBodyResize}))}});function useCheck(t,o){const{paginatedDataRef:n,treeMateRef:r,selectionColumnRef:s}=o,l=ref(t.defaultCheckedRowKeys),d=computed(()=>{var R;const{checkedRowKeys:O}=t,Q=O===void 0?l.value:O;return((R=s.value)===null||R===void 0?void 0:R.multiple)===!1?{checkedKeys:Q.slice(0,1),indeterminateKeys:[]}:r.value.getCheckedKeys(Q,{cascade:t.cascade,allowNotLoaded:t.allowCheckingNotLoaded})}),m=computed(()=>d.value.checkedKeys),_=computed(()=>d.value.indeterminateKeys),g=computed(()=>new Set(m.value)),v=computed(()=>new Set(_.value)),y=computed(()=>{const{value:R}=g;return n.value.reduce((O,Q)=>{const{key:Y,disabled:W}=Q;return O+(!W&&R.has(Y)?1:0)},0)}),w=computed(()=>n.value.filter(R=>R.disabled).length),B=computed(()=>{const{length:R}=n.value,{value:O}=v;return y.value>0&&y.valueO.has(Q.key))}),k=computed(()=>{const{length:R}=n.value;return y.value!==0&&y.value===R-w.value}),N=computed(()=>n.value.length===0);function S(R,O,Q){const{"onUpdate:checkedRowKeys":Y,onUpdateCheckedRowKeys:W,onCheckedRowKeysChange:K}=t,ee=[],{value:{getNode:q}}=r;R.forEach(ae=>{var ie;const oe=(ie=q(ae))===null||ie===void 0?void 0:ie.rawNode;ee.push(oe)}),Y&&call(Y,R,ee,{row:O,action:Q}),W&&call(W,R,ee,{row:O,action:Q}),K&&call(K,R,ee,{row:O,action:Q}),l.value=R}function x(R,O=!1,Q){if(!t.loading){if(O){S(Array.isArray(R)?R.slice(0,1):[R],Q,"check");return}S(r.value.check(R,m.value,{cascade:t.cascade,allowNotLoaded:t.allowCheckingNotLoaded}).checkedKeys,Q,"check")}}function C(R,O){t.loading||S(r.value.uncheck(R,m.value,{cascade:t.cascade,allowNotLoaded:t.allowCheckingNotLoaded}).checkedKeys,O,"uncheck")}function I(R=!1){const{value:O}=s;if(!O||t.loading)return;const Q=[];(R?r.value.treeNodes:n.value).forEach(Y=>{Y.disabled||Q.push(Y.key)}),S(r.value.check(Q,m.value,{cascade:!0,allowNotLoaded:t.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function D(R=!1){const{value:O}=s;if(!O||t.loading)return;const Q=[];(R?r.value.treeNodes:n.value).forEach(Y=>{Y.disabled||Q.push(Y.key)}),S(r.value.uncheck(Q,m.value,{cascade:!0,allowNotLoaded:t.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:g,mergedCheckedRowKeysRef:m,mergedInderminateRowKeySetRef:v,someRowsCheckedRef:B,allRowsCheckedRef:k,headerCheckboxDisabledRef:N,doUpdateCheckedRowKeys:S,doCheckAll:I,doUncheckAll:D,doCheck:x,doUncheck:C}}function getMultiplePriority(t){return typeof t=="object"&&typeof t.multiple=="number"?t.multiple:!1}function getSortFunction(t,o){return o&&(t===void 0||t==="default"||typeof t=="object"&&t.compare==="default")?getDefaultSorterFn(o):typeof t=="function"?t:t&&typeof t=="object"&&t.compare&&t.compare!=="default"?t.compare:!1}function getDefaultSorterFn(t){return(o,n)=>{const r=o[t],s=n[t];return typeof r=="number"&&typeof s=="number"?r-s:typeof r=="string"&&typeof s=="string"?r.localeCompare(s):0}}function useSorter(t,{dataRelatedColsRef:o,filteredDataRef:n}){const r=[];o.value.forEach(B=>{var k;B.sorter!==void 0&&w(r,{columnKey:B.key,sorter:B.sorter,order:(k=B.defaultSortOrder)!==null&&k!==void 0?k:!1})});const s=ref(r),l=computed(()=>{const B=o.value.filter(S=>S.type!=="selection"&&S.sorter!==void 0&&(S.sortOrder==="ascend"||S.sortOrder==="descend"||S.sortOrder===!1)),k=B.filter(S=>S.sortOrder!==!1);if(k.length)return k.map(S=>({columnKey:S.key,order:S.sortOrder,sorter:S.sorter}));if(B.length)return[];const{value:N}=s;return Array.isArray(N)?N:N?[N]:[]}),d=computed(()=>{const B=l.value.slice().sort((k,N)=>{const S=getMultiplePriority(k.sorter)||0;return(getMultiplePriority(N.sorter)||0)-S});return B.length?n.value.slice().sort((N,S)=>{let x=0;return B.some(C=>{const{columnKey:I,sorter:D,order:R}=C,O=getSortFunction(D,I);return O&&R&&(x=O(N.rawNode,S.rawNode),x!==0)?(x=x*getFlagOfOrder(R),!0):!1}),x}):n.value});function m(B){let k=l.value.slice();return B&&getMultiplePriority(B.sorter)!==!1?(k=k.filter(N=>getMultiplePriority(N.sorter)!==!1),w(k,B),k):B||null}function _(B){const k=m(B);g(k)}function g(B){const{"onUpdate:sorter":k,onUpdateSorter:N,onSorterChange:S}=t;k&&call(k,B),N&&call(N,B),S&&call(S,B),s.value=B}function v(B,k="ascend"){if(!B)y();else{const N=o.value.find(x=>x.type!=="selection"&&x.type!=="expand"&&x.key===B);if(!(N!=null&&N.sorter))return;const S=N.sorter;_({columnKey:B,sorter:S,order:k})}}function y(){g(null)}function w(B,k){const N=B.findIndex(S=>(k==null?void 0:k.columnKey)&&S.columnKey===k.columnKey);N!==void 0&&N>=0?B[N]=k:B.push(k)}return{clearSorter:y,sort:v,sortedDataRef:d,mergedSortStateRef:l,deriveNextSorter:_}}function useTableData(t,{dataRelatedColsRef:o}){const n=computed(()=>{const le=se=>{for(let te=0;te{const{childrenKey:le}=t;return createTreeMate(t.data,{ignoreEmptyChildren:!0,getKey:t.rowKey,getChildren:se=>se[le],getDisabled:se=>{var te,ne;return!!(!((ne=(te=n.value)===null||te===void 0?void 0:te.disabled)===null||ne===void 0)&&ne.call(te,se))}})}),s=useMemo(()=>{const{columns:le}=t,{length:se}=le;let te=null;for(let ne=0;ne{const le=o.value.filter(ne=>ne.filterOptionValues!==void 0||ne.filterOptionValue!==void 0),se={};return le.forEach(ne=>{var de;ne.type==="selection"||ne.type==="expand"||(ne.filterOptionValues===void 0?se[ne.key]=(de=ne.filterOptionValue)!==null&&de!==void 0?de:null:se[ne.key]=ne.filterOptionValues)}),Object.assign(createShallowClonedObject(l.value),se)}),g=computed(()=>{const le=_.value,{columns:se}=t;function te(fe){return(ve,ze)=>!!~String(ze[fe]).indexOf(String(ve))}const{value:{treeNodes:ne}}=r,de=[];return se.forEach(fe=>{fe.type==="selection"||fe.type==="expand"||"children"in fe||de.push([fe.key,fe])}),ne?ne.filter(fe=>{const{rawNode:ve}=fe;for(const[ze,Re]of de){let ke=le[ze];if(ke==null||(Array.isArray(ke)||(ke=[ke]),!ke.length))continue;const xe=Re.filter==="default"?te(ze):Re.filter;if(Re&&typeof xe=="function")if(Re.filterMode==="and"){if(ke.some(tt=>!xe(tt,ve)))return!1}else{if(ke.some(tt=>xe(tt,ve)))continue;return!1}}return!0}):[]}),{sortedDataRef:v,deriveNextSorter:y,mergedSortStateRef:w,sort:B,clearSorter:k}=useSorter(t,{dataRelatedColsRef:o,filteredDataRef:g});o.value.forEach(le=>{var se;if(le.filter){const te=le.defaultFilterOptionValues;le.filterMultiple?l.value[le.key]=te||[]:te!==void 0?l.value[le.key]=te===null?[]:te:l.value[le.key]=(se=le.defaultFilterOptionValue)!==null&&se!==void 0?se:null}});const N=computed(()=>{const{pagination:le}=t;if(le!==!1)return le.page}),S=computed(()=>{const{pagination:le}=t;if(le!==!1)return le.pageSize}),x=useMergedState(N,d),C=useMergedState(S,m),I=useMemo(()=>{const le=x.value;return t.remote?le:Math.max(1,Math.min(Math.ceil(g.value.length/C.value),le))}),D=computed(()=>{const{pagination:le}=t;if(le){const{pageCount:se}=le;if(se!==void 0)return se}}),R=computed(()=>{if(t.remote)return r.value.treeNodes;if(!t.pagination)return v.value;const le=C.value,se=(I.value-1)*le;return v.value.slice(se,se+le)}),O=computed(()=>R.value.map(le=>le.rawNode));function Q(le){const{pagination:se}=t;if(se){const{onChange:te,"onUpdate:page":ne,onUpdatePage:de}=se;te&&call(te,le),de&&call(de,le),ne&&call(ne,le),ee(le)}}function Y(le){const{pagination:se}=t;if(se){const{onPageSizeChange:te,"onUpdate:pageSize":ne,onUpdatePageSize:de}=se;te&&call(te,le),de&&call(de,le),ne&&call(ne,le),q(le)}}const W=computed(()=>{if(t.remote){const{pagination:le}=t;if(le){const{itemCount:se}=le;if(se!==void 0)return se}return}return g.value.length}),K=computed(()=>Object.assign(Object.assign({},t.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":Q,"onUpdate:pageSize":Y,page:I.value,pageSize:C.value,pageCount:W.value===void 0?D.value:void 0,itemCount:W.value}));function ee(le){const{"onUpdate:page":se,onPageChange:te,onUpdatePage:ne}=t;ne&&call(ne,le),se&&call(se,le),te&&call(te,le),d.value=le}function q(le){const{"onUpdate:pageSize":se,onPageSizeChange:te,onUpdatePageSize:ne}=t;te&&call(te,le),ne&&call(ne,le),se&&call(se,le),m.value=le}function ae(le,se){const{onUpdateFilters:te,"onUpdate:filters":ne,onFiltersChange:de}=t;te&&call(te,le,se),ne&&call(ne,le,se),de&&call(de,le,se),l.value=le}function ie(le,se,te,ne){var de;(de=t.onUnstableColumnResize)===null||de===void 0||de.call(t,le,se,te,ne)}function oe(le){ee(le)}function J(){j()}function j(){re({})}function re(le){ce(le)}function ce(le){le?le&&(l.value=createShallowClonedObject(le)):l.value={}}return{treeMateRef:r,mergedCurrentPageRef:I,mergedPaginationRef:K,paginatedDataRef:R,rawPaginatedDataRef:O,mergedFilterStateRef:_,mergedSortStateRef:w,hoverKeyRef:ref(null),selectionColumnRef:n,childTriggerColIndexRef:s,doUpdateFilters:ae,deriveNextSorter:y,doUpdatePageSize:q,doUpdatePage:ee,onUnstableColumnResize:ie,filter:ce,filters:re,clearFilter:J,clearFilters:j,clearSorter:k,page:oe,sort:B}}function useScroll(t,{mainTableInstRef:o,mergedCurrentPageRef:n,bodyWidthRef:r}){let s=0;const l=ref(),d=ref(null),m=ref([]),_=ref(null),g=ref([]),v=computed(()=>formatLength(t.scrollX)),y=computed(()=>t.columns.filter(W=>W.fixed==="left")),w=computed(()=>t.columns.filter(W=>W.fixed==="right")),B=computed(()=>{const W={};let K=0;function ee(q){q.forEach(ae=>{const ie={start:K,end:0};W[getColKey(ae)]=ie,"children"in ae?(ee(ae.children),ie.end=K):(K+=getNumberColWidth(ae)||0,ie.end=K)})}return ee(y.value),W}),k=computed(()=>{const W={};let K=0;function ee(q){for(let ae=q.length-1;ae>=0;--ae){const ie=q[ae],oe={start:K,end:0};W[getColKey(ie)]=oe,"children"in ie?(ee(ie.children),oe.end=K):(K+=getNumberColWidth(ie)||0,oe.end=K)}}return ee(w.value),W});function N(){var W,K;const{value:ee}=y;let q=0;const{value:ae}=B;let ie=null;for(let oe=0;oe(((W=ae[J])===null||W===void 0?void 0:W.start)||0)-q)ie=J,q=((K=ae[J])===null||K===void 0?void 0:K.end)||0;else break}d.value=ie}function S(){m.value=[];let W=t.columns.find(K=>getColKey(K)===d.value);for(;W&&"children"in W;){const K=W.children.length;if(K===0)break;const ee=W.children[K-1];m.value.push(getColKey(ee)),W=ee}}function x(){var W,K;const{value:ee}=w,q=Number(t.scrollX),{value:ae}=r;if(ae===null)return;let ie=0,oe=null;const{value:J}=k;for(let j=ee.length-1;j>=0;--j){const re=getColKey(ee[j]);if(Math.round(s+(((W=J[re])===null||W===void 0?void 0:W.start)||0)+ae-ie)getColKey(K)===_.value);for(;W&&"children"in W&&W.children.length;){const K=W.children[0];g.value.push(getColKey(K)),W=K}}function I(){const W=o.value?o.value.getHeaderElement():null,K=o.value?o.value.getBodyElement():null;return{header:W,body:K}}function D(){const{body:W}=I();W&&(W.scrollTop=0)}function R(){l.value!=="body"?beforeNextFrameOnce(Q):l.value=void 0}function O(W){var K;(K=t.onScroll)===null||K===void 0||K.call(t,W),l.value!=="head"?beforeNextFrameOnce(Q):l.value=void 0}function Q(){const{header:W,body:K}=I();if(!K)return;const{value:ee}=r;if(ee!==null){if(t.maxHeight||t.flexHeight){if(!W)return;const q=s-W.scrollLeft;l.value=q!==0?"head":"body",l.value==="head"?(s=W.scrollLeft,K.scrollLeft=s):(s=K.scrollLeft,W.scrollLeft=s)}else s=K.scrollLeft;N(),S(),x(),C()}}function Y(W){const{header:K}=I();K&&(K.scrollLeft=W,Q())}return watch(n,()=>{D()}),{styleScrollXRef:v,fixedColumnLeftMapRef:B,fixedColumnRightMapRef:k,leftFixedColumnsRef:y,rightFixedColumnsRef:w,leftActiveFixedColKeyRef:d,leftActiveFixedChildrenColKeysRef:m,rightActiveFixedColKeyRef:_,rightActiveFixedChildrenColKeysRef:g,syncScrollState:Q,handleTableBodyScroll:O,handleTableHeaderScroll:R,setHeaderScrollLeft:Y}}function useResizable(){const t=ref({});function o(s){return t.value[s]}function n(s,l){isColumnResizable(s)&&"key"in s&&(t.value[s.key]=l)}function r(){t.value={}}return{getResizableWidth:o,doUpdateResizableWidth:n,clearResizableWidth:r}}function getRowsAndCols(t,o){const n=[],r=[],s=[],l=new WeakMap;let d=-1,m=0,_=!1;function g(w,B){B>d&&(n[B]=[],d=B);for(const k of w)if("children"in k)g(k.children,B+1);else{const N="key"in k?k.key:void 0;r.push({key:getColKey(k),style:createCustomWidthStyle(k,N!==void 0?formatLength(o(N)):void 0),column:k}),m+=1,_||(_=!!k.ellipsis),s.push(k)}}g(t,0);let v=0;function y(w,B){let k=0;w.forEach((N,S)=>{var x;if("children"in N){const C=v,I={column:N,colSpan:0,rowSpan:1,isLast:!1};y(N.children,B+1),N.children.forEach(D=>{var R,O;I.colSpan+=(O=(R=l.get(D))===null||R===void 0?void 0:R.colSpan)!==null&&O!==void 0?O:0}),C+I.colSpan===m&&(I.isLast=!0),l.set(N,I),n[B].push(I)}else{if(v1&&(k=v+C);const I=v+C===m,D={column:N,colSpan:C,rowSpan:d-B+1,isLast:I};l.set(N,D),n[B].push(D),v+=1}})}return y(t,0),{hasEllipsis:_,rows:n,cols:r,dataRelatedCols:s}}function useGroupHeader(t,o){const n=computed(()=>getRowsAndCols(t.columns,o));return{rowsRef:computed(()=>n.value.rows),colsRef:computed(()=>n.value.cols),hasEllipsisRef:computed(()=>n.value.hasEllipsis),dataRelatedColsRef:computed(()=>n.value.dataRelatedCols)}}function useExpand(t,o){const n=useMemo(()=>{for(const g of t.columns)if(g.type==="expand")return g.renderExpand}),r=useMemo(()=>{let g;for(const v of t.columns)if(v.type==="expand"){g=v.expandable;break}return g}),s=ref(t.defaultExpandAll?n!=null&&n.value?(()=>{const g=[];return o.value.treeNodes.forEach(v=>{var y;!((y=r.value)===null||y===void 0)&&y.call(r,v.rawNode)&&g.push(v.key)}),g})():o.value.getNonLeafKeys():t.defaultExpandedRowKeys),l=toRef(t,"expandedRowKeys"),d=toRef(t,"stickyExpandedRows"),m=useMergedState(l,s);function _(g){const{onUpdateExpandedRowKeys:v,"onUpdate:expandedRowKeys":y}=t;v&&call(v,g),y&&call(y,g),s.value=g}return{stickyExpandedRowsRef:d,mergedExpandedRowKeysRef:m,renderExpandRef:n,expandableRef:r,doUpdateExpandedRowKeys:_}}const fixedColumnStyle=createFixedColumnStyle(),style$e=c$1([cB("data-table",`
+ width: 100%;
+ font-size: var(--n-font-size);
+ display: flex;
+ flex-direction: column;
+ position: relative;
+ --n-merged-th-color: var(--n-th-color);
+ --n-merged-td-color: var(--n-td-color);
+ --n-merged-border-color: var(--n-border-color);
+ --n-merged-th-color-hover: var(--n-th-color-hover);
+ --n-merged-td-color-hover: var(--n-td-color-hover);
+ --n-merged-td-color-striped: var(--n-td-color-striped);
+ `,[cB("data-table-wrapper",`
+ flex-grow: 1;
+ display: flex;
+ flex-direction: column;
+ `),cM("flex-height",[c$1(">",[cB("data-table-wrapper",[c$1(">",[cB("data-table-base-table",`
+ display: flex;
+ flex-direction: column;
+ flex-grow: 1;
+ `,[c$1(">",[cB("data-table-base-table-body","flex-basis: 0;",[c$1("&:last-child","flex-grow: 1;")])])])])])])]),c$1(">",[cB("data-table-loading-wrapper",`
+ color: var(--n-loading-color);
+ font-size: var(--n-loading-size);
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translateX(-50%) translateY(-50%);
+ transition: color .3s var(--n-bezier);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ `,[fadeInScaleUpTransition({originalTransform:"translateX(-50%) translateY(-50%)"})])]),cB("data-table-expand-placeholder",`
+ margin-right: 8px;
+ display: inline-block;
+ width: 16px;
+ height: 1px;
+ `),cB("data-table-indent",`
+ display: inline-block;
+ height: 1px;
+ `),cB("data-table-expand-trigger",`
+ display: inline-flex;
+ margin-right: 8px;
+ cursor: pointer;
+ font-size: 16px;
+ vertical-align: -0.2em;
+ position: relative;
+ width: 16px;
+ height: 16px;
+ color: var(--n-td-text-color);
+ transition: color .3s var(--n-bezier);
+ `,[cM("expanded",[cB("icon","transform: rotate(90deg);",[iconSwitchTransition({originalTransform:"rotate(90deg)"})]),cB("base-icon","transform: rotate(90deg);",[iconSwitchTransition({originalTransform:"rotate(90deg)"})])]),cB("base-loading",`
+ color: var(--n-loading-color);
+ transition: color .3s var(--n-bezier);
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ `,[iconSwitchTransition()]),cB("icon",`
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ `,[iconSwitchTransition()]),cB("base-icon",`
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ `,[iconSwitchTransition()])]),cB("data-table-thead",`
+ transition: background-color .3s var(--n-bezier);
+ background-color: var(--n-merged-th-color);
+ `),cB("data-table-tr",`
+ box-sizing: border-box;
+ background-clip: padding-box;
+ transition: background-color .3s var(--n-bezier);
+ `,[cB("data-table-expand",`
+ position: sticky;
+ left: 0;
+ overflow: hidden;
+ margin: calc(var(--n-th-padding) * -1);
+ padding: var(--n-th-padding);
+ box-sizing: border-box;
+ `),cM("striped","background-color: var(--n-merged-td-color-striped);",[cB("data-table-td","background-color: var(--n-merged-td-color-striped);")]),cNotM("summary",[c$1("&:hover","background-color: var(--n-merged-td-color-hover);",[c$1(">",[cB("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),cB("data-table-th",`
+ padding: var(--n-th-padding);
+ position: relative;
+ text-align: start;
+ box-sizing: border-box;
+ background-color: var(--n-merged-th-color);
+ border-color: var(--n-merged-border-color);
+ border-bottom: 1px solid var(--n-merged-border-color);
+ color: var(--n-th-text-color);
+ transition:
+ border-color .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier);
+ font-weight: var(--n-th-font-weight);
+ `,[cM("filterable",`
+ padding-right: 36px;
+ `,[cM("sortable",`
+ padding-right: calc(var(--n-th-padding) + 36px);
+ `)]),fixedColumnStyle,cM("selection",`
+ padding: 0;
+ text-align: center;
+ line-height: 0;
+ z-index: 3;
+ `),cE("title-wrapper",`
+ display: flex;
+ align-items: center;
+ flex-wrap: nowrap;
+ max-width: 100%;
+ `,[cE("title",`
+ flex: 1;
+ min-width: 0;
+ `)]),cE("ellipsis",`
+ display: inline-block;
+ vertical-align: bottom;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
+ max-width: 100%;
+ `),cM("hover",`
+ background-color: var(--n-merged-th-color-hover);
+ `),cM("sortable",`
+ cursor: pointer;
+ `,[cE("ellipsis",`
+ max-width: calc(100% - 18px);
+ `),c$1("&:hover",`
+ background-color: var(--n-merged-th-color-hover);
+ `)]),cB("data-table-sorter",`
+ height: var(--n-sorter-size);
+ width: var(--n-sorter-size);
+ margin-left: 4px;
+ position: relative;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ vertical-align: -0.2em;
+ color: var(--n-th-icon-color);
+ transition: color .3s var(--n-bezier);
+ `,[cB("base-icon","transition: transform .3s var(--n-bezier)"),cM("desc",[cB("base-icon",`
+ transform: rotate(0deg);
+ `)]),cM("asc",[cB("base-icon",`
+ transform: rotate(-180deg);
+ `)]),cM("asc, desc",`
+ color: var(--n-th-icon-color-active);
+ `)]),cB("data-table-resize-button",`
+ width: var(--n-resizable-container-size);
+ position: absolute;
+ top: 0;
+ right: calc(var(--n-resizable-container-size) / 2);
+ bottom: 0;
+ cursor: col-resize;
+ user-select: none;
+ `,[c$1("&::after",`
+ width: var(--n-resizable-size);
+ height: 50%;
+ position: absolute;
+ top: 50%;
+ left: calc(var(--n-resizable-container-size) / 2);
+ bottom: 0;
+ background-color: var(--n-merged-border-color);
+ transform: translateY(-50%);
+ transition: background-color .3s var(--n-bezier);
+ z-index: 1;
+ content: '';
+ `),cM("active",[c$1("&::after",`
+ background-color: var(--n-th-icon-color-active);
+ `)]),c$1("&:hover::after",`
+ background-color: var(--n-th-icon-color-active);
+ `)]),cB("data-table-filter",`
+ position: absolute;
+ z-index: auto;
+ right: 0;
+ width: 36px;
+ top: 0;
+ bottom: 0;
+ cursor: pointer;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ font-size: var(--n-filter-size);
+ color: var(--n-th-icon-color);
+ `,[c$1("&:hover",`
+ background-color: var(--n-th-button-color-hover);
+ `),cM("show",`
+ background-color: var(--n-th-button-color-hover);
+ `),cM("active",`
+ background-color: var(--n-th-button-color-hover);
+ color: var(--n-th-icon-color-active);
+ `)])]),cB("data-table-td",`
+ padding: var(--n-td-padding);
+ text-align: start;
+ box-sizing: border-box;
+ border: none;
+ background-color: var(--n-merged-td-color);
+ color: var(--n-td-text-color);
+ border-bottom: 1px solid var(--n-merged-border-color);
+ transition:
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ `,[cM("expand",[cB("data-table-expand-trigger",`
+ margin-right: 0;
+ `)]),cM("last-row",`
+ border-bottom: 0 solid var(--n-merged-border-color);
+ `,[c$1("&::after",`
+ bottom: 0 !important;
+ `),c$1("&::before",`
+ bottom: 0 !important;
+ `)]),cM("summary",`
+ background-color: var(--n-merged-th-color);
+ `),cM("hover",`
+ background-color: var(--n-merged-td-color-hover);
+ `),cE("ellipsis",`
+ display: inline-block;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
+ max-width: 100%;
+ vertical-align: bottom;
+ max-width: calc(100% - var(--indent-offset, -1.5) * 16px - 24px);
+ `),cM("selection, expand",`
+ text-align: center;
+ padding: 0;
+ line-height: 0;
+ `),fixedColumnStyle]),cB("data-table-empty",`
+ box-sizing: border-box;
+ padding: var(--n-empty-padding);
+ flex-grow: 1;
+ flex-shrink: 0;
+ opacity: 1;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ transition: opacity .3s var(--n-bezier);
+ `,[cM("hide",`
+ opacity: 0;
+ `)]),cE("pagination",`
+ margin: var(--n-pagination-margin);
+ display: flex;
+ justify-content: flex-end;
+ `),cB("data-table-wrapper",`
+ position: relative;
+ opacity: 1;
+ transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier);
+ border-top-left-radius: var(--n-border-radius);
+ border-top-right-radius: var(--n-border-radius);
+ line-height: var(--n-line-height);
+ `),cM("loading",[cB("data-table-wrapper",`
+ opacity: var(--n-opacity-loading);
+ pointer-events: none;
+ `)]),cM("single-column",[cB("data-table-td",`
+ border-bottom: 0 solid var(--n-merged-border-color);
+ `,[c$1("&::after, &::before",`
+ bottom: 0 !important;
+ `)])]),cNotM("single-line",[cB("data-table-th",`
+ border-right: 1px solid var(--n-merged-border-color);
+ `,[cM("last",`
+ border-right: 0 solid var(--n-merged-border-color);
+ `)]),cB("data-table-td",`
+ border-right: 1px solid var(--n-merged-border-color);
+ `,[cM("last-col",`
+ border-right: 0 solid var(--n-merged-border-color);
+ `)])]),cM("bordered",[cB("data-table-wrapper",`
+ border: 1px solid var(--n-merged-border-color);
+ border-bottom-left-radius: var(--n-border-radius);
+ border-bottom-right-radius: var(--n-border-radius);
+ overflow: hidden;
+ `)]),cB("data-table-base-table",[cM("transition-disabled",[cB("data-table-th",[c$1("&::after, &::before","transition: none;")]),cB("data-table-td",[c$1("&::after, &::before","transition: none;")])])]),cM("bottom-bordered",[cB("data-table-td",[cM("last-row",`
+ border-bottom: 1px solid var(--n-merged-border-color);
+ `)])]),cB("data-table-table",`
+ font-variant-numeric: tabular-nums;
+ width: 100%;
+ word-break: break-word;
+ transition: background-color .3s var(--n-bezier);
+ border-collapse: separate;
+ border-spacing: 0;
+ background-color: var(--n-merged-td-color);
+ `),cB("data-table-base-table-header",`
+ border-top-left-radius: calc(var(--n-border-radius) - 1px);
+ border-top-right-radius: calc(var(--n-border-radius) - 1px);
+ z-index: 3;
+ overflow: scroll;
+ flex-shrink: 0;
+ transition: border-color .3s var(--n-bezier);
+ scrollbar-width: none;
+ `,[c$1("&::-webkit-scrollbar",`
+ width: 0;
+ height: 0;
+ `)]),cB("data-table-check-extra",`
+ transition: color .3s var(--n-bezier);
+ color: var(--n-th-icon-color);
+ position: absolute;
+ font-size: 14px;
+ right: -4px;
+ top: 50%;
+ transform: translateY(-50%);
+ z-index: 1;
+ `)]),cB("data-table-filter-menu",[cB("scrollbar",`
+ max-height: 240px;
+ `),cE("group",`
+ display: flex;
+ flex-direction: column;
+ padding: 12px 12px 0 12px;
+ `,[cB("checkbox",`
+ margin-bottom: 12px;
+ margin-right: 0;
+ `),cB("radio",`
+ margin-bottom: 12px;
+ margin-right: 0;
+ `)]),cE("action",`
+ padding: var(--n-action-padding);
+ display: flex;
+ flex-wrap: nowrap;
+ justify-content: space-evenly;
+ border-top: 1px solid var(--n-action-divider-color);
+ `,[cB("button",[c$1("&:not(:last-child)",`
+ margin: var(--n-action-button-margin);
+ `),c$1("&:last-child",`
+ margin-right: 0;
+ `)])]),cB("divider",`
+ margin: 0 !important;
+ `)]),insideModal(cB("data-table",`
+ --n-merged-th-color: var(--n-th-color-modal);
+ --n-merged-td-color: var(--n-td-color-modal);
+ --n-merged-border-color: var(--n-border-color-modal);
+ --n-merged-th-color-hover: var(--n-th-color-hover-modal);
+ --n-merged-td-color-hover: var(--n-td-color-hover-modal);
+ --n-merged-td-color-striped: var(--n-td-color-striped-modal);
+ `)),insidePopover(cB("data-table",`
+ --n-merged-th-color: var(--n-th-color-popover);
+ --n-merged-td-color: var(--n-td-color-popover);
+ --n-merged-border-color: var(--n-border-color-popover);
+ --n-merged-th-color-hover: var(--n-th-color-hover-popover);
+ --n-merged-td-color-hover: var(--n-td-color-hover-popover);
+ --n-merged-td-color-striped: var(--n-td-color-striped-popover);
+ `))]);function createFixedColumnStyle(){return[cM("fixed-left",`
+ left: 0;
+ position: sticky;
+ z-index: 2;
+ `,[c$1("&::after",`
+ pointer-events: none;
+ content: "";
+ width: 36px;
+ display: inline-block;
+ position: absolute;
+ top: 0;
+ bottom: -1px;
+ transition: box-shadow .2s var(--n-bezier);
+ right: -36px;
+ `)]),cM("fixed-right",`
+ right: 0;
+ position: sticky;
+ z-index: 1;
+ `,[c$1("&::before",`
+ pointer-events: none;
+ content: "";
+ width: 36px;
+ display: inline-block;
+ position: absolute;
+ top: 0;
+ bottom: -1px;
+ transition: box-shadow .2s var(--n-bezier);
+ left: -36px;
+ `)])]}const NDataTable=defineComponent({name:"DataTable",alias:["AdvancedTable"],props:dataTableProps,setup(t,{slots:o}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:s}=useConfig(t),l=computed(()=>{const{bottomBordered:Pe}=t;return n.value?!1:Pe!==void 0?Pe:!0}),d=useTheme("DataTable","-data-table",style$e,dataTableLight$1,t,r),m=ref(null),_=ref(null),{getResizableWidth:g,clearResizableWidth:v,doUpdateResizableWidth:y}=useResizable(),{rowsRef:w,colsRef:B,dataRelatedColsRef:k,hasEllipsisRef:N}=useGroupHeader(t,g),{treeMateRef:S,mergedCurrentPageRef:x,paginatedDataRef:C,rawPaginatedDataRef:I,selectionColumnRef:D,hoverKeyRef:R,mergedPaginationRef:O,mergedFilterStateRef:Q,mergedSortStateRef:Y,childTriggerColIndexRef:W,doUpdatePage:K,doUpdateFilters:ee,onUnstableColumnResize:q,deriveNextSorter:ae,filter:ie,filters:oe,clearFilter:J,clearFilters:j,clearSorter:re,page:ce,sort:le}=useTableData(t,{dataRelatedColsRef:k}),{doCheckAll:se,doUncheckAll:te,doCheck:ne,doUncheck:de,headerCheckboxDisabledRef:fe,someRowsCheckedRef:ve,allRowsCheckedRef:ze,mergedCheckedRowKeySetRef:Re,mergedInderminateRowKeySetRef:ke}=useCheck(t,{selectionColumnRef:D,treeMateRef:S,paginatedDataRef:C}),{stickyExpandedRowsRef:xe,mergedExpandedRowKeysRef:tt,renderExpandRef:me,expandableRef:be,doUpdateExpandedRowKeys:Ne}=useExpand(t,S),{handleTableBodyScroll:qe,handleTableHeaderScroll:Be,syncScrollState:ge,setHeaderScrollLeft:ot,leftActiveFixedColKeyRef:lt,leftActiveFixedChildrenColKeysRef:ut,rightActiveFixedColKeyRef:et,rightActiveFixedChildrenColKeysRef:pt,leftFixedColumnsRef:Ie,rightFixedColumnsRef:at,fixedColumnLeftMapRef:He,fixedColumnRightMapRef:Fe}=useScroll(t,{bodyWidthRef:m,mainTableInstRef:_,mergedCurrentPageRef:x}),{localeRef:dt}=useLocale("DataTable"),gt=computed(()=>t.virtualScroll||t.flexHeight||t.maxHeight!==void 0||N.value?"fixed":t.tableLayout);provide(dataTableInjectionKey,{props:t,treeMateRef:S,renderExpandIconRef:toRef(t,"renderExpandIcon"),loadingKeySetRef:ref(new Set),slots:o,indentRef:toRef(t,"indent"),childTriggerColIndexRef:W,bodyWidthRef:m,componentId:createId(),hoverKeyRef:R,mergedClsPrefixRef:r,mergedThemeRef:d,scrollXRef:computed(()=>t.scrollX),rowsRef:w,colsRef:B,paginatedDataRef:C,leftActiveFixedColKeyRef:lt,leftActiveFixedChildrenColKeysRef:ut,rightActiveFixedColKeyRef:et,rightActiveFixedChildrenColKeysRef:pt,leftFixedColumnsRef:Ie,rightFixedColumnsRef:at,fixedColumnLeftMapRef:He,fixedColumnRightMapRef:Fe,mergedCurrentPageRef:x,someRowsCheckedRef:ve,allRowsCheckedRef:ze,mergedSortStateRef:Y,mergedFilterStateRef:Q,loadingRef:toRef(t,"loading"),rowClassNameRef:toRef(t,"rowClassName"),mergedCheckedRowKeySetRef:Re,mergedExpandedRowKeysRef:tt,mergedInderminateRowKeySetRef:ke,localeRef:dt,expandableRef:be,stickyExpandedRowsRef:xe,rowKeyRef:toRef(t,"rowKey"),renderExpandRef:me,summaryRef:toRef(t,"summary"),virtualScrollRef:toRef(t,"virtualScroll"),rowPropsRef:toRef(t,"rowProps"),stripedRef:toRef(t,"striped"),checkOptionsRef:computed(()=>{const{value:Pe}=D;return Pe==null?void 0:Pe.options}),rawPaginatedDataRef:I,filterMenuCssVarsRef:computed(()=>{const{self:{actionDividerColor:Pe,actionPadding:ct,actionButtonMargin:Ue}}=d.value;return{"--n-action-padding":ct,"--n-action-button-margin":Ue,"--n-action-divider-color":Pe}}),onLoadRef:toRef(t,"onLoad"),mergedTableLayoutRef:gt,maxHeightRef:toRef(t,"maxHeight"),minHeightRef:toRef(t,"minHeight"),flexHeightRef:toRef(t,"flexHeight"),headerCheckboxDisabledRef:fe,paginationBehaviorOnFilterRef:toRef(t,"paginationBehaviorOnFilter"),summaryPlacementRef:toRef(t,"summaryPlacement"),scrollbarPropsRef:toRef(t,"scrollbarProps"),syncScrollState:ge,doUpdatePage:K,doUpdateFilters:ee,getResizableWidth:g,onUnstableColumnResize:q,clearResizableWidth:v,doUpdateResizableWidth:y,deriveNextSorter:ae,doCheck:ne,doUncheck:de,doCheckAll:se,doUncheckAll:te,doUpdateExpandedRowKeys:Ne,handleTableHeaderScroll:Be,handleTableBodyScroll:qe,setHeaderScrollLeft:ot,renderCell:toRef(t,"renderCell")});const Ke={filter:ie,filters:oe,clearFilters:j,clearSorter:re,page:ce,sort:le,clearFilter:J,scrollTo:(Pe,ct)=>{var Ue;(Ue=_.value)===null||Ue===void 0||Ue.scrollTo(Pe,ct)}},De=computed(()=>{const{size:Pe}=t,{common:{cubicBezierEaseInOut:ct},self:{borderColor:Ue,tdColorHover:ye,thColor:Qe,thColorHover:Ce,tdColor:nt,tdTextColor:ft,thTextColor:Le,thFontWeight:it,thButtonColorHover:_t,thIconColor:Ct,thIconColorActive:Je,filterSize:Ee,borderRadius:Ye,lineHeight:mt,tdColorModal:kt,thColorModal:bt,borderColorModal:It,thColorHoverModal:$t,tdColorHoverModal:Ze,borderColorPopover:ht,thColorPopover:Xe,tdColorPopover:we,tdColorHoverPopover:Oe,thColorHoverPopover:Ge,paginationMargin:yt,emptyPadding:St,boxShadowAfter:Mt,boxShadowBefore:Ot,sorterSize:$e,resizableContainerSize:rt,resizableSize:Ae,loadingColor:ue,loadingSize:Te,opacityLoading:st,tdColorStriped:Bt,tdColorStripedModal:Tt,tdColorStripedPopover:Dt,[createKey("fontSize",Pe)]:je,[createKey("thPadding",Pe)]:_e,[createKey("tdPadding",Pe)]:We}}=d.value;return{"--n-font-size":je,"--n-th-padding":_e,"--n-td-padding":We,"--n-bezier":ct,"--n-border-radius":Ye,"--n-line-height":mt,"--n-border-color":Ue,"--n-border-color-modal":It,"--n-border-color-popover":ht,"--n-th-color":Qe,"--n-th-color-hover":Ce,"--n-th-color-modal":bt,"--n-th-color-hover-modal":$t,"--n-th-color-popover":Xe,"--n-th-color-hover-popover":Ge,"--n-td-color":nt,"--n-td-color-hover":ye,"--n-td-color-modal":kt,"--n-td-color-hover-modal":Ze,"--n-td-color-popover":we,"--n-td-color-hover-popover":Oe,"--n-th-text-color":Le,"--n-td-text-color":ft,"--n-th-font-weight":it,"--n-th-button-color-hover":_t,"--n-th-icon-color":Ct,"--n-th-icon-color-active":Je,"--n-filter-size":Ee,"--n-pagination-margin":yt,"--n-empty-padding":St,"--n-box-shadow-before":Ot,"--n-box-shadow-after":Mt,"--n-sorter-size":$e,"--n-resizable-container-size":rt,"--n-resizable-size":Ae,"--n-loading-size":Te,"--n-loading-color":ue,"--n-opacity-loading":st,"--n-td-color-striped":Bt,"--n-td-color-striped-modal":Tt,"--n-td-color-striped-popover":Dt}}),Me=s?useThemeClass("data-table",computed(()=>t.size[0]),De,t):void 0,Se=computed(()=>{if(!t.pagination)return!1;if(t.paginateSinglePage)return!0;const Pe=O.value,{pageCount:ct}=Pe;return ct!==void 0?ct>1:Pe.itemCount&&Pe.pageSize&&Pe.itemCount>Pe.pageSize});return Object.assign({mainTableInstRef:_,mergedClsPrefix:r,mergedTheme:d,paginatedData:C,mergedBordered:n,mergedBottomBordered:l,mergedPagination:O,mergedShowPagination:Se,cssVars:s?void 0:De,themeClass:Me==null?void 0:Me.themeClass,onRender:Me==null?void 0:Me.onRender},Ke)},render(){const{mergedClsPrefix:t,themeClass:o,onRender:n,$slots:r,spinProps:s}=this;return n==null||n(),h("div",{class:[`${t}-data-table`,o,{[`${t}-data-table--bordered`]:this.mergedBordered,[`${t}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${t}-data-table--single-line`]:this.singleLine,[`${t}-data-table--single-column`]:this.singleColumn,[`${t}-data-table--loading`]:this.loading,[`${t}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},h("div",{class:`${t}-data-table-wrapper`},h(MainTable,{ref:"mainTableInstRef"})),this.mergedShowPagination?h("div",{class:`${t}-data-table__pagination`},h(NPagination,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,h(Transition,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?h("div",{class:`${t}-data-table-loading-wrapper`},resolveSlot(r.loading,()=>[h(NBaseLoading,Object.assign({clsPrefix:t,strokeWidth:20},s))])):null}))}}),commonVars$4={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},self$d=t=>{const{popoverColor:o,textColor2:n,primaryColor:r,hoverColor:s,dividerColor:l,opacityDisabled:d,boxShadow2:m,borderRadius:_,iconColor:g,iconColorDisabled:v}=t;return Object.assign(Object.assign({},commonVars$4),{panelColor:o,panelBoxShadow:m,panelDividerColor:l,itemTextColor:n,itemTextColorActive:r,itemColorHover:s,itemOpacityDisabled:d,itemBorderRadius:_,borderRadius:_,iconColor:g,iconColorDisabled:v})},timePickerLight={name:"TimePicker",common:commonLight,peers:{Scrollbar:scrollbarLight$1,Button:buttonLight$1,Input:inputLight$1},self:self$d},timePickerLight$1=timePickerLight,commonVars$3={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",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"},self$c=t=>{const{hoverColor:o,fontSize:n,textColor2:r,textColorDisabled:s,popoverColor:l,primaryColor:d,borderRadiusSmall:m,iconColor:_,iconColorDisabled:g,textColor1:v,dividerColor:y,boxShadow2:w,borderRadius:B,fontWeightStrong:k}=t;return Object.assign(Object.assign({},commonVars$3),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:s,itemTextColorActive:l,itemTextColorCurrent:d,itemColorIncluded:changeColor(d,{alpha:.1}),itemColorHover:o,itemColorDisabled:o,itemColorActive:d,itemBorderRadius:m,panelColor:l,panelTextColor:r,arrowColor:_,calendarTitleTextColor:v,calendarTitleColorHover:o,calendarDaysTextColor:r,panelHeaderDividerColor:y,calendarDaysDividerColor:y,calendarDividerColor:y,panelActionDividerColor:y,panelBoxShadow:w,panelBorderRadius:B,calendarTitleFontWeight:k,scrollItemBorderRadius:B,iconColor:_,iconColorDisabled:g})},datePickerLight={name:"DatePicker",common:commonLight,peers:{Input:inputLight$1,Button:buttonLight$1,TimePicker:timePickerLight$1,Scrollbar:scrollbarLight$1},self:self$c},datePickerLight$1=datePickerLight;function uniCalendarValidation(t,o){const n=computed(()=>{const{isTimeDisabled:v}=t,{value:y}=o;if(!(y===null||Array.isArray(y)))return v==null?void 0:v(y)}),r=computed(()=>{var v;return(v=n.value)===null||v===void 0?void 0:v.isHourDisabled}),s=computed(()=>{var v;return(v=n.value)===null||v===void 0?void 0:v.isMinuteDisabled}),l=computed(()=>{var v;return(v=n.value)===null||v===void 0?void 0:v.isSecondDisabled}),d=computed(()=>{const{type:v,isDateDisabled:y}=t,{value:w}=o;return w===null||Array.isArray(w)||!["date","datetime"].includes(v)||!y?!1:y(w)}),m=computed(()=>{const{type:v}=t,{value:y}=o;if(y===null||v==="datetime"||Array.isArray(y))return!1;const w=new Date(y),B=w.getHours(),k=w.getMinutes(),N=w.getMinutes();return(r.value?r.value(B):!1)||(s.value?s.value(k,B):!1)||(l.value?l.value(N,k,B):!1)}),_=computed(()=>d.value||m.value);return{isValueInvalidRef:computed(()=>{const{type:v}=t;return v==="date"?d.value:v==="datetime"?_.value:!1}),isDateInvalidRef:d,isTimeInvalidRef:m,isDateTimeInvalidRef:_,isHourDisabledRef:r,isMinuteDisabledRef:s,isSecondDisabledRef:l}}function dualCalendarValidation(t,o){const n=computed(()=>{const{isTimeDisabled:y}=t,{value:w}=o;return!Array.isArray(w)||!y?[void 0,void 0]:[y==null?void 0:y(w[0],"start",w),y==null?void 0:y(w[1],"end",w)]}),r={isStartHourDisabledRef:computed(()=>{var y;return(y=n.value[0])===null||y===void 0?void 0:y.isHourDisabled}),isEndHourDisabledRef:computed(()=>{var y;return(y=n.value[1])===null||y===void 0?void 0:y.isHourDisabled}),isStartMinuteDisabledRef:computed(()=>{var y;return(y=n.value[0])===null||y===void 0?void 0:y.isMinuteDisabled}),isEndMinuteDisabledRef:computed(()=>{var y;return(y=n.value[1])===null||y===void 0?void 0:y.isMinuteDisabled}),isStartSecondDisabledRef:computed(()=>{var y;return(y=n.value[0])===null||y===void 0?void 0:y.isSecondDisabled}),isEndSecondDisabledRef:computed(()=>{var y;return(y=n.value[1])===null||y===void 0?void 0:y.isSecondDisabled})},s=computed(()=>{const{type:y,isDateDisabled:w}=t,{value:B}=o;return B===null||!Array.isArray(B)||!["daterange","datetimerange"].includes(y)||!w?!1:w(B[0],"start",B)}),l=computed(()=>{const{type:y,isDateDisabled:w}=t,{value:B}=o;return B===null||!Array.isArray(B)||!["daterange","datetimerange"].includes(y)||!w?!1:w(B[1],"end",B)}),d=computed(()=>{const{type:y}=t,{value:w}=o;if(w===null||!Array.isArray(w)||y!=="datetimerange")return!1;const B=getHours(w[0]),k=getMinutes(w[0]),N=getSeconds(w[0]),{isStartHourDisabledRef:S,isStartMinuteDisabledRef:x,isStartSecondDisabledRef:C}=r;return(S.value?S.value(B):!1)||(x.value?x.value(k,B):!1)||(C.value?C.value(N,k,B):!1)}),m=computed(()=>{const{type:y}=t,{value:w}=o;if(w===null||!Array.isArray(w)||y!=="datetimerange")return!1;const B=getHours(w[1]),k=getMinutes(w[1]),N=getSeconds(w[1]),{isEndHourDisabledRef:S,isEndMinuteDisabledRef:x,isEndSecondDisabledRef:C}=r;return(S.value?S.value(B):!1)||(x.value?x.value(k,B):!1)||(C.value?C.value(N,k,B):!1)}),_=computed(()=>s.value||d.value),g=computed(()=>l.value||m.value),v=computed(()=>_.value||g.value);return Object.assign(Object.assign({},r),{isStartDateInvalidRef:s,isEndDateInvalidRef:l,isStartTimeInvalidRef:d,isEndTimeInvalidRef:m,isStartValueInvalidRef:_,isEndValueInvalidRef:g,isRangeInvalidRef:v})}const datePickerInjectionKey="n-date-picker";var cloneObject$1={exports:{}},interopRequireDefault={exports:{}};(function(t){function o(n){return n&&n.__esModule?n:{default:n}}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports})(interopRequireDefault);var interopRequireDefaultExports=interopRequireDefault.exports,assign$2={exports:{}};(function(t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=n;function n(r,s){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(r[l]=s[l]);return r}t.exports=o.default})(assign$2,assign$2.exports);var assignExports=assign$2.exports;(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=s;var r=n(assignExports);function s(l){return(0,r.default)({},l)}t.exports=o.default})(cloneObject$1,cloneObject$1.exports);var cloneObjectExports=cloneObject$1.exports;const cloneObject=getDefaultExportFromCjs(cloneObjectExports);var format$2={exports:{}},isValid={exports:{}},isDate={exports:{}},_typeof$2={exports:{}};(function(t){function o(n){"@babel/helpers - typeof";return t.exports=o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},t.exports.__esModule=!0,t.exports.default=t.exports,o(n)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports})(_typeof$2);var _typeofExports=_typeof$2.exports,requiredArgs={exports:{}};(function(t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=n;function n(r,s){if(s.length1?"s":"")+" required, but only "+s.length+" present")}t.exports=o.default})(requiredArgs,requiredArgs.exports);var requiredArgsExports=requiredArgs.exports;(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=l;var r=n(_typeofExports),s=n(requiredArgsExports);function l(d){return(0,s.default)(1,arguments),d instanceof Date||(0,r.default)(d)==="object"&&Object.prototype.toString.call(d)==="[object Date]"}t.exports=o.default})(isDate,isDate.exports);var isDateExports=isDate.exports,toDate$1={exports:{}};(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=l;var r=n(_typeofExports),s=n(requiredArgsExports);function l(d){(0,s.default)(1,arguments);var m=Object.prototype.toString.call(d);return d instanceof Date||(0,r.default)(d)==="object"&&m==="[object Date]"?new Date(d.getTime()):typeof d=="number"||m==="[object Number]"?new Date(d):((typeof d=="string"||m==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}t.exports=o.default})(toDate$1,toDate$1.exports);var toDateExports=toDate$1.exports;(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=d;var r=n(isDateExports),s=n(toDateExports),l=n(requiredArgsExports);function d(m){if((0,l.default)(1,arguments),!(0,r.default)(m)&&typeof m!="number")return!1;var _=(0,s.default)(m);return!isNaN(Number(_))}t.exports=o.default})(isValid,isValid.exports);var isValidExports=isValid.exports,subMilliseconds={exports:{}},addMilliseconds={exports:{}},toInteger$1={exports:{}};(function(t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var s=Number(r);return isNaN(s)?s:s<0?Math.ceil(s):Math.floor(s)}t.exports=o.default})(toInteger$1,toInteger$1.exports);var toIntegerExports=toInteger$1.exports;const toInteger=getDefaultExportFromCjs(toIntegerExports);(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=d;var r=n(toIntegerExports),s=n(toDateExports),l=n(requiredArgsExports);function d(m,_){(0,l.default)(2,arguments);var g=(0,s.default)(m).getTime(),v=(0,r.default)(_);return new Date(g+v)}t.exports=o.default})(addMilliseconds,addMilliseconds.exports);var addMillisecondsExports=addMilliseconds.exports;(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=d;var r=n(addMillisecondsExports),s=n(requiredArgsExports),l=n(toIntegerExports);function d(m,_){(0,s.default)(2,arguments);var g=(0,l.default)(_);return(0,r.default)(m,-g)}t.exports=o.default})(subMilliseconds,subMilliseconds.exports);var subMillisecondsExports=subMilliseconds.exports,formatters$2={exports:{}},getUTCDayOfYear={exports:{}};(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=d;var r=n(toDateExports),s=n(requiredArgsExports),l=864e5;function d(m){(0,s.default)(1,arguments);var _=(0,r.default)(m),g=_.getTime();_.setUTCMonth(0,1),_.setUTCHours(0,0,0,0);var v=_.getTime(),y=g-v;return Math.floor(y/l)+1}t.exports=o.default})(getUTCDayOfYear,getUTCDayOfYear.exports);var getUTCDayOfYearExports=getUTCDayOfYear.exports,getUTCISOWeek={exports:{}},startOfUTCISOWeek={exports:{}};(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=l;var r=n(toDateExports),s=n(requiredArgsExports);function l(d){(0,s.default)(1,arguments);var m=1,_=(0,r.default)(d),g=_.getUTCDay(),v=(g=y.getTime()?g+1:_.getTime()>=B.getTime()?g:g-1}t.exports=o.default})(getUTCISOWeekYear,getUTCISOWeekYear.exports);var getUTCISOWeekYearExports=getUTCISOWeekYear.exports;(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=d;var r=n(getUTCISOWeekYearExports),s=n(startOfUTCISOWeekExports),l=n(requiredArgsExports);function d(m){(0,l.default)(1,arguments);var _=(0,r.default)(m),g=new Date(0);g.setUTCFullYear(_,0,4),g.setUTCHours(0,0,0,0);var v=(0,s.default)(g);return v}t.exports=o.default})(startOfUTCISOWeekYear,startOfUTCISOWeekYear.exports);var startOfUTCISOWeekYearExports=startOfUTCISOWeekYear.exports;(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=_;var r=n(toDateExports),s=n(startOfUTCISOWeekExports),l=n(startOfUTCISOWeekYearExports),d=n(requiredArgsExports),m=6048e5;function _(g){(0,d.default)(1,arguments);var v=(0,r.default)(g),y=(0,s.default)(v).getTime()-(0,l.default)(v).getTime();return Math.round(y/m)+1}t.exports=o.default})(getUTCISOWeek,getUTCISOWeek.exports);var getUTCISOWeekExports=getUTCISOWeek.exports,getUTCWeek={exports:{}},startOfUTCWeek={exports:{}},defaultOptions$1={};Object.defineProperty(defaultOptions$1,"__esModule",{value:!0});defaultOptions$1.getDefaultOptions=getDefaultOptions;defaultOptions$1.setDefaultOptions=setDefaultOptions;var defaultOptions={};function getDefaultOptions(){return defaultOptions}function setDefaultOptions(t){defaultOptions=t}(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=m;var r=n(toDateExports),s=n(requiredArgsExports),l=n(toIntegerExports),d=defaultOptions$1;function m(_,g){var v,y,w,B,k,N,S,x;(0,s.default)(1,arguments);var C=(0,d.getDefaultOptions)(),I=(0,l.default)((v=(y=(w=(B=g==null?void 0:g.weekStartsOn)!==null&&B!==void 0?B:g==null||(k=g.locale)===null||k===void 0||(N=k.options)===null||N===void 0?void 0:N.weekStartsOn)!==null&&w!==void 0?w:C.weekStartsOn)!==null&&y!==void 0?y:(S=C.locale)===null||S===void 0||(x=S.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&v!==void 0?v:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var D=(0,r.default)(_),R=D.getUTCDay(),O=(R=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Q=new Date(0);Q.setUTCFullYear(D+1,0,O),Q.setUTCHours(0,0,0,0);var Y=(0,l.default)(Q,v),W=new Date(0);W.setUTCFullYear(D,0,O),W.setUTCHours(0,0,0,0);var K=(0,l.default)(W,v);return I.getTime()>=Y.getTime()?D+1:I.getTime()>=K.getTime()?D:D-1}t.exports=o.default})(getUTCWeekYear,getUTCWeekYear.exports);var getUTCWeekYearExports=getUTCWeekYear.exports;(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=_;var r=n(getUTCWeekYearExports),s=n(requiredArgsExports),l=n(startOfUTCWeekExports),d=n(toIntegerExports),m=defaultOptions$1;function _(g,v){var y,w,B,k,N,S,x,C;(0,s.default)(1,arguments);var I=(0,m.getDefaultOptions)(),D=(0,d.default)((y=(w=(B=(k=v==null?void 0:v.firstWeekContainsDate)!==null&&k!==void 0?k:v==null||(N=v.locale)===null||N===void 0||(S=N.options)===null||S===void 0?void 0:S.firstWeekContainsDate)!==null&&B!==void 0?B:I.firstWeekContainsDate)!==null&&w!==void 0?w:(x=I.locale)===null||x===void 0||(C=x.options)===null||C===void 0?void 0:C.firstWeekContainsDate)!==null&&y!==void 0?y:1),R=(0,r.default)(g,v),O=new Date(0);O.setUTCFullYear(R,0,D),O.setUTCHours(0,0,0,0);var Q=(0,l.default)(O,v);return Q}t.exports=o.default})(startOfUTCWeekYear,startOfUTCWeekYear.exports);var startOfUTCWeekYearExports=startOfUTCWeekYear.exports;(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=_;var r=n(toDateExports),s=n(startOfUTCWeekExports),l=n(startOfUTCWeekYearExports),d=n(requiredArgsExports),m=6048e5;function _(g,v){(0,d.default)(1,arguments);var y=(0,r.default)(g),w=(0,s.default)(y,v).getTime()-(0,l.default)(y,v).getTime();return Math.round(w/m)+1}t.exports=o.default})(getUTCWeek,getUTCWeek.exports);var getUTCWeekExports=getUTCWeek.exports,addLeadingZeros$1={exports:{}};(function(t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=n;function n(r,s){for(var l=r<0?"-":"",d=Math.abs(r).toString();d.length0?g:1-g;return(0,r.default)(_==="yy"?v%100:v,_.length)},M:function(m,_){var g=m.getUTCMonth();return _==="M"?String(g+1):(0,r.default)(g+1,2)},d:function(m,_){return(0,r.default)(m.getUTCDate(),_.length)},a:function(m,_){var g=m.getUTCHours()/12>=1?"pm":"am";switch(_){case"a":case"aa":return g.toUpperCase();case"aaa":return g;case"aaaaa":return g[0];case"aaaa":default:return g==="am"?"a.m.":"p.m."}},h:function(m,_){return(0,r.default)(m.getUTCHours()%12||12,_.length)},H:function(m,_){return(0,r.default)(m.getUTCHours(),_.length)},m:function(m,_){return(0,r.default)(m.getUTCMinutes(),_.length)},s:function(m,_){return(0,r.default)(m.getUTCSeconds(),_.length)},S:function(m,_){var g=_.length,v=m.getUTCMilliseconds(),y=Math.floor(v*Math.pow(10,g-3));return(0,r.default)(y,_.length)}},l=s;o.default=l,t.exports=o.default})(lightFormatters,lightFormatters.exports);var lightFormattersExports=lightFormatters.exports;(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=n(getUTCDayOfYearExports),s=n(getUTCISOWeekExports),l=n(getUTCISOWeekYearExports),d=n(getUTCWeekExports),m=n(getUTCWeekYearExports),_=n(addLeadingZerosExports),g=n(lightFormattersExports),v={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},y={G:function(x,C,I){var D=x.getUTCFullYear()>0?1:0;switch(C){case"G":case"GG":case"GGG":return I.era(D,{width:"abbreviated"});case"GGGGG":return I.era(D,{width:"narrow"});case"GGGG":default:return I.era(D,{width:"wide"})}},y:function(x,C,I){if(C==="yo"){var D=x.getUTCFullYear(),R=D>0?D:1-D;return I.ordinalNumber(R,{unit:"year"})}return g.default.y(x,C)},Y:function(x,C,I,D){var R=(0,m.default)(x,D),O=R>0?R:1-R;if(C==="YY"){var Q=O%100;return(0,_.default)(Q,2)}return C==="Yo"?I.ordinalNumber(O,{unit:"year"}):(0,_.default)(O,C.length)},R:function(x,C){var I=(0,l.default)(x);return(0,_.default)(I,C.length)},u:function(x,C){var I=x.getUTCFullYear();return(0,_.default)(I,C.length)},Q:function(x,C,I){var D=Math.ceil((x.getUTCMonth()+1)/3);switch(C){case"Q":return String(D);case"QQ":return(0,_.default)(D,2);case"Qo":return I.ordinalNumber(D,{unit:"quarter"});case"QQQ":return I.quarter(D,{width:"abbreviated",context:"formatting"});case"QQQQQ":return I.quarter(D,{width:"narrow",context:"formatting"});case"QQQQ":default:return I.quarter(D,{width:"wide",context:"formatting"})}},q:function(x,C,I){var D=Math.ceil((x.getUTCMonth()+1)/3);switch(C){case"q":return String(D);case"qq":return(0,_.default)(D,2);case"qo":return I.ordinalNumber(D,{unit:"quarter"});case"qqq":return I.quarter(D,{width:"abbreviated",context:"standalone"});case"qqqqq":return I.quarter(D,{width:"narrow",context:"standalone"});case"qqqq":default:return I.quarter(D,{width:"wide",context:"standalone"})}},M:function(x,C,I){var D=x.getUTCMonth();switch(C){case"M":case"MM":return g.default.M(x,C);case"Mo":return I.ordinalNumber(D+1,{unit:"month"});case"MMM":return I.month(D,{width:"abbreviated",context:"formatting"});case"MMMMM":return I.month(D,{width:"narrow",context:"formatting"});case"MMMM":default:return I.month(D,{width:"wide",context:"formatting"})}},L:function(x,C,I){var D=x.getUTCMonth();switch(C){case"L":return String(D+1);case"LL":return(0,_.default)(D+1,2);case"Lo":return I.ordinalNumber(D+1,{unit:"month"});case"LLL":return I.month(D,{width:"abbreviated",context:"standalone"});case"LLLLL":return I.month(D,{width:"narrow",context:"standalone"});case"LLLL":default:return I.month(D,{width:"wide",context:"standalone"})}},w:function(x,C,I,D){var R=(0,d.default)(x,D);return C==="wo"?I.ordinalNumber(R,{unit:"week"}):(0,_.default)(R,C.length)},I:function(x,C,I){var D=(0,s.default)(x);return C==="Io"?I.ordinalNumber(D,{unit:"week"}):(0,_.default)(D,C.length)},d:function(x,C,I){return C==="do"?I.ordinalNumber(x.getUTCDate(),{unit:"date"}):g.default.d(x,C)},D:function(x,C,I){var D=(0,r.default)(x);return C==="Do"?I.ordinalNumber(D,{unit:"dayOfYear"}):(0,_.default)(D,C.length)},E:function(x,C,I){var D=x.getUTCDay();switch(C){case"E":case"EE":case"EEE":return I.day(D,{width:"abbreviated",context:"formatting"});case"EEEEE":return I.day(D,{width:"narrow",context:"formatting"});case"EEEEEE":return I.day(D,{width:"short",context:"formatting"});case"EEEE":default:return I.day(D,{width:"wide",context:"formatting"})}},e:function(x,C,I,D){var R=x.getUTCDay(),O=(R-D.weekStartsOn+8)%7||7;switch(C){case"e":return String(O);case"ee":return(0,_.default)(O,2);case"eo":return I.ordinalNumber(O,{unit:"day"});case"eee":return I.day(R,{width:"abbreviated",context:"formatting"});case"eeeee":return I.day(R,{width:"narrow",context:"formatting"});case"eeeeee":return I.day(R,{width:"short",context:"formatting"});case"eeee":default:return I.day(R,{width:"wide",context:"formatting"})}},c:function(x,C,I,D){var R=x.getUTCDay(),O=(R-D.weekStartsOn+8)%7||7;switch(C){case"c":return String(O);case"cc":return(0,_.default)(O,C.length);case"co":return I.ordinalNumber(O,{unit:"day"});case"ccc":return I.day(R,{width:"abbreviated",context:"standalone"});case"ccccc":return I.day(R,{width:"narrow",context:"standalone"});case"cccccc":return I.day(R,{width:"short",context:"standalone"});case"cccc":default:return I.day(R,{width:"wide",context:"standalone"})}},i:function(x,C,I){var D=x.getUTCDay(),R=D===0?7:D;switch(C){case"i":return String(R);case"ii":return(0,_.default)(R,C.length);case"io":return I.ordinalNumber(R,{unit:"day"});case"iii":return I.day(D,{width:"abbreviated",context:"formatting"});case"iiiii":return I.day(D,{width:"narrow",context:"formatting"});case"iiiiii":return I.day(D,{width:"short",context:"formatting"});case"iiii":default:return I.day(D,{width:"wide",context:"formatting"})}},a:function(x,C,I){var D=x.getUTCHours(),R=D/12>=1?"pm":"am";switch(C){case"a":case"aa":return I.dayPeriod(R,{width:"abbreviated",context:"formatting"});case"aaa":return I.dayPeriod(R,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return I.dayPeriod(R,{width:"narrow",context:"formatting"});case"aaaa":default:return I.dayPeriod(R,{width:"wide",context:"formatting"})}},b:function(x,C,I){var D=x.getUTCHours(),R;switch(D===12?R=v.noon:D===0?R=v.midnight:R=D/12>=1?"pm":"am",C){case"b":case"bb":return I.dayPeriod(R,{width:"abbreviated",context:"formatting"});case"bbb":return I.dayPeriod(R,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return I.dayPeriod(R,{width:"narrow",context:"formatting"});case"bbbb":default:return I.dayPeriod(R,{width:"wide",context:"formatting"})}},B:function(x,C,I){var D=x.getUTCHours(),R;switch(D>=17?R=v.evening:D>=12?R=v.afternoon:D>=4?R=v.morning:R=v.night,C){case"B":case"BB":case"BBB":return I.dayPeriod(R,{width:"abbreviated",context:"formatting"});case"BBBBB":return I.dayPeriod(R,{width:"narrow",context:"formatting"});case"BBBB":default:return I.dayPeriod(R,{width:"wide",context:"formatting"})}},h:function(x,C,I){if(C==="ho"){var D=x.getUTCHours()%12;return D===0&&(D=12),I.ordinalNumber(D,{unit:"hour"})}return g.default.h(x,C)},H:function(x,C,I){return C==="Ho"?I.ordinalNumber(x.getUTCHours(),{unit:"hour"}):g.default.H(x,C)},K:function(x,C,I){var D=x.getUTCHours()%12;return C==="Ko"?I.ordinalNumber(D,{unit:"hour"}):(0,_.default)(D,C.length)},k:function(x,C,I){var D=x.getUTCHours();return D===0&&(D=24),C==="ko"?I.ordinalNumber(D,{unit:"hour"}):(0,_.default)(D,C.length)},m:function(x,C,I){return C==="mo"?I.ordinalNumber(x.getUTCMinutes(),{unit:"minute"}):g.default.m(x,C)},s:function(x,C,I){return C==="so"?I.ordinalNumber(x.getUTCSeconds(),{unit:"second"}):g.default.s(x,C)},S:function(x,C){return g.default.S(x,C)},X:function(x,C,I,D){var R=D._originalDate||x,O=R.getTimezoneOffset();if(O===0)return"Z";switch(C){case"X":return B(O);case"XXXX":case"XX":return k(O);case"XXXXX":case"XXX":default:return k(O,":")}},x:function(x,C,I,D){var R=D._originalDate||x,O=R.getTimezoneOffset();switch(C){case"x":return B(O);case"xxxx":case"xx":return k(O);case"xxxxx":case"xxx":default:return k(O,":")}},O:function(x,C,I,D){var R=D._originalDate||x,O=R.getTimezoneOffset();switch(C){case"O":case"OO":case"OOO":return"GMT"+w(O,":");case"OOOO":default:return"GMT"+k(O,":")}},z:function(x,C,I,D){var R=D._originalDate||x,O=R.getTimezoneOffset();switch(C){case"z":case"zz":case"zzz":return"GMT"+w(O,":");case"zzzz":default:return"GMT"+k(O,":")}},t:function(x,C,I,D){var R=D._originalDate||x,O=Math.floor(R.getTime()/1e3);return(0,_.default)(O,C.length)},T:function(x,C,I,D){var R=D._originalDate||x,O=R.getTime();return(0,_.default)(O,C.length)}};function w(S,x){var C=S>0?"-":"+",I=Math.abs(S),D=Math.floor(I/60),R=I%60;if(R===0)return C+String(D);var O=x||"";return C+String(D)+O+(0,_.default)(R,2)}function B(S,x){if(S%60===0){var C=S>0?"-":"+";return C+(0,_.default)(Math.abs(S)/60,2)}return k(S,x)}function k(S,x){var C=x||"",I=S>0?"-":"+",D=Math.abs(S),R=(0,_.default)(Math.floor(D/60),2),O=(0,_.default)(D%60,2);return I+R+C+O}var N=y;o.default=N,t.exports=o.default})(formatters$2,formatters$2.exports);var formattersExports=formatters$2.exports,longFormatters={exports:{}};(function(t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var n=function(_,g){switch(_){case"P":return g.date({width:"short"});case"PP":return g.date({width:"medium"});case"PPP":return g.date({width:"long"});case"PPPP":default:return g.date({width:"full"})}},r=function(_,g){switch(_){case"p":return g.time({width:"short"});case"pp":return g.time({width:"medium"});case"ppp":return g.time({width:"long"});case"pppp":default:return g.time({width:"full"})}},s=function(_,g){var v=_.match(/(P+)(p+)?/)||[],y=v[1],w=v[2];if(!w)return n(_,g);var B;switch(y){case"P":B=g.dateTime({width:"short"});break;case"PP":B=g.dateTime({width:"medium"});break;case"PPP":B=g.dateTime({width:"long"});break;case"PPPP":default:B=g.dateTime({width:"full"});break}return B.replace("{{date}}",n(y,g)).replace("{{time}}",r(w,g))},l={p:r,P:s},d=l;o.default=d,t.exports=o.default})(longFormatters,longFormatters.exports);var longFormattersExports=longFormatters.exports,getTimezoneOffsetInMilliseconds$1={exports:{}};(function(t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=n;function n(r){var s=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return s.setUTCFullYear(r.getFullYear()),r.getTime()-s.getTime()}t.exports=o.default})(getTimezoneOffsetInMilliseconds$1,getTimezoneOffsetInMilliseconds$1.exports);var getTimezoneOffsetInMillisecondsExports=getTimezoneOffsetInMilliseconds$1.exports;const getTimezoneOffsetInMilliseconds=getDefaultExportFromCjs(getTimezoneOffsetInMillisecondsExports);var protectedTokens={};Object.defineProperty(protectedTokens,"__esModule",{value:!0});protectedTokens.isProtectedDayOfYearToken=isProtectedDayOfYearToken;protectedTokens.isProtectedWeekYearToken=isProtectedWeekYearToken;protectedTokens.throwProtectedError=throwProtectedError;var protectedDayOfYearTokens=["D","DD"],protectedWeekYearTokens=["YY","YYYY"];function isProtectedDayOfYearToken(t){return protectedDayOfYearTokens.indexOf(t)!==-1}function isProtectedWeekYearToken(t){return protectedWeekYearTokens.indexOf(t)!==-1}function throwProtectedError(t,o,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(o,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(o,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(o,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(o,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var defaultLocale={exports:{}},enUS={exports:{}},formatDistance={exports:{}};(function(t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var n={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"}},r=function(d,m,_){var g,v=n[d];return typeof v=="string"?g=v:m===1?g=v.one:g=v.other.replace("{{count}}",m.toString()),_!=null&&_.addSuffix?_.comparison&&_.comparison>0?"in "+g:g+" ago":g},s=r;o.default=s,t.exports=o.default})(formatDistance,formatDistance.exports);var formatDistanceExports=formatDistance.exports,formatLong={exports:{}},buildFormatLongFn={exports:{}};(function(t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=n;function n(r){return function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=s.width?String(s.width):r.defaultWidth,d=r.formats[l]||r.formats[r.defaultWidth];return d}}t.exports=o.default})(buildFormatLongFn,buildFormatLongFn.exports);var buildFormatLongFnExports=buildFormatLongFn.exports;(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=n(buildFormatLongFnExports),s={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},l={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},d={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},m={date:(0,r.default)({formats:s,defaultWidth:"full"}),time:(0,r.default)({formats:l,defaultWidth:"full"}),dateTime:(0,r.default)({formats:d,defaultWidth:"full"})},_=m;o.default=_,t.exports=o.default})(formatLong,formatLong.exports);var formatLongExports=formatLong.exports,formatRelative={exports:{}};(function(t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(d,m,_,g){return n[d]},s=r;o.default=s,t.exports=o.default})(formatRelative,formatRelative.exports);var formatRelativeExports=formatRelative.exports,localize={exports:{}},buildLocalizeFn={exports:{}};(function(t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=n;function n(r){return function(s,l){var d=l!=null&&l.context?String(l.context):"standalone",m;if(d==="formatting"&&r.formattingValues){var _=r.defaultFormattingWidth||r.defaultWidth,g=l!=null&&l.width?String(l.width):_;m=r.formattingValues[g]||r.formattingValues[_]}else{var v=r.defaultWidth,y=l!=null&&l.width?String(l.width):r.defaultWidth;m=r.values[y]||r.values[v]}var w=r.argumentCallback?r.argumentCallback(s):s;return m[w]}}t.exports=o.default})(buildLocalizeFn,buildLocalizeFn.exports);var buildLocalizeFnExports=buildLocalizeFn.exports;(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=n(buildLocalizeFnExports),s={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},l={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},d={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"]},m={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"]},_={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"}},g={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"}},v=function(k,N){var S=Number(k),x=S%100;if(x>20||x<10)switch(x%10){case 1:return S+"st";case 2:return S+"nd";case 3:return S+"rd"}return S+"th"},y={ordinalNumber:v,era:(0,r.default)({values:s,defaultWidth:"wide"}),quarter:(0,r.default)({values:l,defaultWidth:"wide",argumentCallback:function(k){return k-1}}),month:(0,r.default)({values:d,defaultWidth:"wide"}),day:(0,r.default)({values:m,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:_,defaultWidth:"wide",formattingValues:g,defaultFormattingWidth:"wide"})},w=y;o.default=w,t.exports=o.default})(localize,localize.exports);var localizeExports=localize.exports,match={exports:{}},buildMatchFn={exports:{}};(function(t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=n;function n(l){return function(d){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=m.width,g=_&&l.matchPatterns[_]||l.matchPatterns[l.defaultMatchWidth],v=d.match(g);if(!v)return null;var y=v[0],w=_&&l.parsePatterns[_]||l.parsePatterns[l.defaultParseWidth],B=Array.isArray(w)?s(w,function(S){return S.test(y)}):r(w,function(S){return S.test(y)}),k;k=l.valueCallback?l.valueCallback(B):B,k=m.valueCallback?m.valueCallback(k):k;var N=d.slice(y.length);return{value:k,rest:N}}}function r(l,d){for(var m in l)if(l.hasOwnProperty(m)&&d(l[m]))return m}function s(l,d){for(var m=0;m1&&arguments[1]!==void 0?arguments[1]:{},d=s.match(r.matchPattern);if(!d)return null;var m=d[0],_=s.match(r.parsePattern);if(!_)return null;var g=r.valueCallback?r.valueCallback(_[0]):_[0];g=l.valueCallback?l.valueCallback(g):g;var v=s.slice(m.length);return{value:g,rest:v}}}t.exports=o.default})(buildMatchPatternFn,buildMatchPatternFn.exports);var buildMatchPatternFnExports=buildMatchPatternFn.exports;(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=n(buildMatchFnExports),s=n(buildMatchPatternFnExports),l=/^(\d+)(th|st|nd|rd)?/i,d=/\d+/i,m={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},_={any:[/^b/i,/^(a|c)/i]},g={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},v={any:[/1/i,/2/i,/3/i,/4/i]},y={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},w={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]},B={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},k={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]},N={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},S={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}},x={ordinalNumber:(0,s.default)({matchPattern:l,parsePattern:d,valueCallback:function(D){return parseInt(D,10)}}),era:(0,r.default)({matchPatterns:m,defaultMatchWidth:"wide",parsePatterns:_,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:v,defaultParseWidth:"any",valueCallback:function(D){return D+1}}),month:(0,r.default)({matchPatterns:y,defaultMatchWidth:"wide",parsePatterns:w,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:B,defaultMatchWidth:"wide",parsePatterns:k,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:N,defaultMatchWidth:"any",parsePatterns:S,defaultParseWidth:"any"})},C=x;o.default=C,t.exports=o.default})(match,match.exports);var matchExports=match.exports;(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=n(formatDistanceExports),s=n(formatLongExports),l=n(formatRelativeExports),d=n(localizeExports),m=n(matchExports),_={code:"en-US",formatDistance:r.default,formatLong:s.default,formatRelative:l.default,localize:d.default,match:m.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},g=_;o.default=g,t.exports=o.default})(enUS,enUS.exports);var enUSExports=enUS.exports;(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=n(enUSExports),s=r.default;o.default=s,t.exports=o.default})(defaultLocale,defaultLocale.exports);var defaultLocaleExports=defaultLocale.exports;(function(t,o){var n=interopRequireDefaultExports.default;Object.defineProperty(o,"__esModule",{value:!0}),o.default=I;var r=n(isValidExports),s=n(subMillisecondsExports),l=n(toDateExports),d=n(formattersExports),m=n(longFormattersExports),_=n(getTimezoneOffsetInMillisecondsExports),g=protectedTokens,v=n(toIntegerExports),y=n(requiredArgsExports),w=defaultOptions$1,B=n(defaultLocaleExports),k=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,N=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,S=/^'([^]*?)'?$/,x=/''/g,C=/[a-zA-Z]/;function I(R,O,Q){var Y,W,K,ee,q,ae,ie,oe,J,j,re,ce,le,se,te,ne,de,fe;(0,y.default)(2,arguments);var ve=String(O),ze=(0,w.getDefaultOptions)(),Re=(Y=(W=Q==null?void 0:Q.locale)!==null&&W!==void 0?W:ze.locale)!==null&&Y!==void 0?Y:B.default,ke=(0,v.default)((K=(ee=(q=(ae=Q==null?void 0:Q.firstWeekContainsDate)!==null&&ae!==void 0?ae:Q==null||(ie=Q.locale)===null||ie===void 0||(oe=ie.options)===null||oe===void 0?void 0:oe.firstWeekContainsDate)!==null&&q!==void 0?q:ze.firstWeekContainsDate)!==null&&ee!==void 0?ee:(J=ze.locale)===null||J===void 0||(j=J.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&K!==void 0?K:1);if(!(ke>=1&&ke<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var xe=(0,v.default)((re=(ce=(le=(se=Q==null?void 0:Q.weekStartsOn)!==null&&se!==void 0?se:Q==null||(te=Q.locale)===null||te===void 0||(ne=te.options)===null||ne===void 0?void 0:ne.weekStartsOn)!==null&&le!==void 0?le:ze.weekStartsOn)!==null&&ce!==void 0?ce:(de=ze.locale)===null||de===void 0||(fe=de.options)===null||fe===void 0?void 0:fe.weekStartsOn)!==null&&re!==void 0?re:0);if(!(xe>=0&&xe<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Re.localize)throw new RangeError("locale must contain localize property");if(!Re.formatLong)throw new RangeError("locale must contain formatLong property");var tt=(0,l.default)(R);if(!(0,r.default)(tt))throw new RangeError("Invalid time value");var me=(0,_.default)(tt),be=(0,s.default)(tt,me),Ne={firstWeekContainsDate:ke,weekStartsOn:xe,locale:Re,_originalDate:tt},qe=ve.match(N).map(function(Be){var ge=Be[0];if(ge==="p"||ge==="P"){var ot=m.default[ge];return ot(Be,Re.formatLong)}return Be}).join("").match(k).map(function(Be){if(Be==="''")return"'";var ge=Be[0];if(ge==="'")return D(Be);var ot=d.default[ge];if(ot)return!(Q!=null&&Q.useAdditionalWeekYearTokens)&&(0,g.isProtectedWeekYearToken)(Be)&&(0,g.throwProtectedError)(Be,O,String(R)),!(Q!=null&&Q.useAdditionalDayOfYearTokens)&&(0,g.isProtectedDayOfYearToken)(Be)&&(0,g.throwProtectedError)(Be,O,String(R)),ot(be,Be,Re.localize,Ne);if(ge.match(C))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ge+"`");return Be}).join("");return qe}function D(R){var O=R.match(S);return O?O[1].replace(x,"'"):R}t.exports=o.default})(format$2,format$2.exports);var formatExports=format$2.exports;const dateFnsFormat=getDefaultExportFromCjs(formatExports);function tzIntlTimeZoneName(t,o,n){var r=getDTF(t,n.timeZone,n.locale);return r.formatToParts?partsTimeZone(r,o):hackyTimeZone(r,o)}function partsTimeZone(t,o){for(var n=t.formatToParts(o),r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function hackyTimeZone(t,o){var n=t.format(o).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function getDTF(t,o,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:o,timeZoneName:t})}function tzTokenizeDate(t,o){var n=getDateTimeFormat(o);return n.formatToParts?partsOffset(n,t):hackyOffset(n,t)}var typeToPos={year:0,month:1,day:2,hour:3,minute:4,second:5};function partsOffset(t,o){try{for(var n=t.formatToParts(o),r=[],s=0;s=0&&(r[l]=parseInt(n[s].value,10))}return r}catch(d){if(d instanceof RangeError)return[NaN];throw d}}function hackyOffset(t,o){var n=t.format(o).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var dtfCache={};function getDateTimeFormat(t){if(!dtfCache[t]){var o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=o==="06/25/2014, 00:00:00"||o==="06/25/2014 00:00:00";dtfCache[t]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return dtfCache[t]}function newDateUTC(t,o,n,r,s,l,d){var m=new Date(0);return m.setUTCFullYear(t,o,n),m.setUTCHours(r,s,l,d),m}var MILLISECONDS_IN_HOUR$1=36e5,MILLISECONDS_IN_MINUTE$2=6e4,patterns$1={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function tzParseTimezone(t,o,n){var r,s;if(!t||(r=patterns$1.timezoneZ.exec(t),r))return 0;var l;if(r=patterns$1.timezoneHH.exec(t),r)return l=parseInt(r[1],10),validateTimezone(l)?-(l*MILLISECONDS_IN_HOUR$1):NaN;if(r=patterns$1.timezoneHHMM.exec(t),r){l=parseInt(r[1],10);var d=parseInt(r[2],10);return validateTimezone(l,d)?(s=Math.abs(l)*MILLISECONDS_IN_HOUR$1+d*MILLISECONDS_IN_MINUTE$2,l>0?-s:s):NaN}if(isValidTimezoneIANAString(t)){o=new Date(o||Date.now());var m=n?o:toUtcDate(o),_=calcOffset(m,t),g=n?_:fixOffset(o,_,t);return-g}return NaN}function toUtcDate(t){return newDateUTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function calcOffset(t,o){var n=tzTokenizeDate(t,o),r=newDateUTC(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),s=t.getTime(),l=s%1e3;return s-=l>=0?l:1e3+l,r-s}function fixOffset(t,o,n){var r=t.getTime(),s=r-o,l=calcOffset(new Date(s),n);if(o===l)return o;s-=l-o;var d=calcOffset(new Date(s),n);return l===d?l:Math.max(l,d)}function validateTimezone(t,o){return-23<=t&&t<=23&&(o==null||0<=o&&o<=59)}var validIANATimezoneCache={};function isValidTimezoneIANAString(t){if(validIANATimezoneCache[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),validIANATimezoneCache[t]=!0,!0}catch{return!1}}var MILLISECONDS_IN_MINUTE$1=60*1e3,formatters={X:function(t,o,n,r){var s=getTimeZoneOffset(r.timeZone,r._originalDate||t);if(s===0)return"Z";switch(o){case"X":return formatTimezoneWithOptionalMinutes(s);case"XXXX":case"XX":return formatTimezone(s);case"XXXXX":case"XXX":default:return formatTimezone(s,":")}},x:function(t,o,n,r){var s=getTimeZoneOffset(r.timeZone,r._originalDate||t);switch(o){case"x":return formatTimezoneWithOptionalMinutes(s);case"xxxx":case"xx":return formatTimezone(s);case"xxxxx":case"xxx":default:return formatTimezone(s,":")}},O:function(t,o,n,r){var s=getTimeZoneOffset(r.timeZone,r._originalDate||t);switch(o){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(s,":");case"OOOO":default:return"GMT"+formatTimezone(s,":")}},z:function(t,o,n,r){var s=r._originalDate||t;switch(o){case"z":case"zz":case"zzz":return tzIntlTimeZoneName("short",s,r);case"zzzz":default:return tzIntlTimeZoneName("long",s,r)}}};function getTimeZoneOffset(t,o){var n=t?tzParseTimezone(t,o,!0)/MILLISECONDS_IN_MINUTE$1:o.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+t);return n}function addLeadingZeros(t,o){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length0?"-":"+",s=Math.abs(t),l=addLeadingZeros(Math.floor(s/60),2),d=addLeadingZeros(Math.floor(s%60),2);return r+l+n+d}function formatTimezoneWithOptionalMinutes(t,o){if(t%60===0){var n=t>0?"-":"+";return n+addLeadingZeros(Math.abs(t)/60,2)}return formatTimezone(t,o)}function formatTimezoneShort(t,o){var n=t>0?"-":"+",r=Math.abs(t),s=Math.floor(r/60),l=r%60;if(l===0)return n+String(s);var d=o||"";return n+String(s)+d+addLeadingZeros(l,2)}const formatters$1=formatters;var tzPattern=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,MILLISECONDS_IN_HOUR=36e5,MILLISECONDS_IN_MINUTE=6e4,DEFAULT_ADDITIONAL_DIGITS=2,patterns={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:tzPattern};function toDate(t,o){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(t===null)return new Date(NaN);var n=o||{},r=n.additionalDigits==null?DEFAULT_ADDITIONAL_DIGITS:toInteger(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]")return new Date(t.getTime());if(typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]")return new Date(t);if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var s=splitDateString(t),l=parseYear(s.date,r),d=l.year,m=l.restDateString,_=parseDate(m,d);if(isNaN(_))return new Date(NaN);if(_){var g=_.getTime(),v=0,y;if(s.time&&(v=parseTime(s.time),isNaN(v)))return new Date(NaN);if(s.timeZone||n.timeZone){if(y=tzParseTimezone(s.timeZone||n.timeZone,new Date(g+v)),isNaN(y))return new Date(NaN)}else y=getTimezoneOffsetInMilliseconds(new Date(g+v)),y=getTimezoneOffsetInMilliseconds(new Date(g+v+y));return new Date(g+v+y)}else return new Date(NaN)}function splitDateString(t){var o={},n=patterns.dateTimePattern.exec(t),r;if(n?(o.date=n[1],r=n[3]):(n=patterns.datePattern.exec(t),n?(o.date=n[1],r=n[2]):(o.date=null,r=t)),r){var s=patterns.timeZone.exec(r);s?(o.time=r.replace(s[1],""),o.timeZone=s[1].trim()):o.time=r}return o}function parseYear(t,o){var n=patterns.YYY[o],r=patterns.YYYYY[o],s;if(s=patterns.YYYY.exec(t)||r.exec(t),s){var l=s[1];return{year:parseInt(l,10),restDateString:t.slice(l.length)}}if(s=patterns.YY.exec(t)||n.exec(t),s){var d=s[1];return{year:parseInt(d,10)*100,restDateString:t.slice(d.length)}}return{year:null}}function parseDate(t,o){if(o===null)return null;var n,r,s,l;if(t.length===0)return r=new Date(0),r.setUTCFullYear(o),r;if(n=patterns.MM.exec(t),n)return r=new Date(0),s=parseInt(n[1],10)-1,validateDate(o,s)?(r.setUTCFullYear(o,s),r):new Date(NaN);if(n=patterns.DDD.exec(t),n){r=new Date(0);var d=parseInt(n[1],10);return validateDayOfYearDate(o,d)?(r.setUTCFullYear(o,0,d),r):new Date(NaN)}if(n=patterns.MMDD.exec(t),n){r=new Date(0),s=parseInt(n[1],10)-1;var m=parseInt(n[2],10);return validateDate(o,s,m)?(r.setUTCFullYear(o,s,m),r):new Date(NaN)}if(n=patterns.Www.exec(t),n)return l=parseInt(n[1],10)-1,validateWeekDate(o,l)?dayOfISOWeekYear(o,l):new Date(NaN);if(n=patterns.WwwD.exec(t),n){l=parseInt(n[1],10)-1;var _=parseInt(n[2],10)-1;return validateWeekDate(o,l,_)?dayOfISOWeekYear(o,l,_):new Date(NaN)}return null}function parseTime(t){var o,n,r;if(o=patterns.HH.exec(t),o)return n=parseFloat(o[1].replace(",",".")),validateTime(n)?n%24*MILLISECONDS_IN_HOUR:NaN;if(o=patterns.HHMM.exec(t),o)return n=parseInt(o[1],10),r=parseFloat(o[2].replace(",",".")),validateTime(n,r)?n%24*MILLISECONDS_IN_HOUR+r*MILLISECONDS_IN_MINUTE:NaN;if(o=patterns.HHMMSS.exec(t),o){n=parseInt(o[1],10),r=parseInt(o[2],10);var s=parseFloat(o[3].replace(",","."));return validateTime(n,r,s)?n%24*MILLISECONDS_IN_HOUR+r*MILLISECONDS_IN_MINUTE+s*1e3:NaN}return null}function dayOfISOWeekYear(t,o,n){o=o||0,n=n||0;var r=new Date(0);r.setUTCFullYear(t,0,4);var s=r.getUTCDay()||7,l=o*7+n+1-s;return r.setUTCDate(r.getUTCDate()+l),r}var DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],DAYS_IN_MONTH_LEAP_YEAR=[31,29,31,30,31,30,31,31,30,31,30,31];function isLeapYearIndex(t){return t%400===0||t%4===0&&t%100!==0}function validateDate(t,o,n){if(o<0||o>11)return!1;if(n!=null){if(n<1)return!1;var r=isLeapYearIndex(t);if(r&&n>DAYS_IN_MONTH_LEAP_YEAR[o]||!r&&n>DAYS_IN_MONTH[o])return!1}return!0}function validateDayOfYearDate(t,o){if(o<1)return!1;var n=isLeapYearIndex(t);return!(n&&o>366||!n&&o>365)}function validateWeekDate(t,o,n){return!(o<0||o>52||n!=null&&(n<0||n>6))}function validateTime(t,o,n){return!(t!=null&&(t<0||t>=25)||o!=null&&(o<0||o>=60)||n!=null&&(n<0||n>=60))}var tzFormattingTokensRegExp=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function format$1(t,o,n){var r=String(o),s=n||{},l=r.match(tzFormattingTokensRegExp);if(l){var d=toDate(t,s);r=l.reduce(function(m,_){if(_[0]==="'")return m;var g=m.indexOf(_),v=m[g-1]==="'",y=m.replace(_,"'"+formatters$1[_[0]](d,_,null,s)+"'");return v?y.substring(0,g-1)+y.substring(g+1):y},r)}return dateFnsFormat(t,r,s)}function utcToZonedTime(t,o,n){var r=toDate(t,n),s=tzParseTimezone(o,r,!0),l=new Date(r.getTime()-s),d=new Date(0);return d.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),d.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),d}function formatInTimeZone(t,o,n,r){var s=cloneObject(r);return s.timeZone=o,format$1(utcToZonedTime(t,o),n,s)}const time$1={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function getFixValue(t){return`00${t}`.slice(-2)}function getTimeUnits(t,o,n){return Array.isArray(o)?(n==="am"?o.filter(r=>r<12):n==="pm"?o.filter(r=>r>=12).map(r=>r===12?12:r-12):o).map(r=>getFixValue(r)):typeof o=="number"?n==="am"?t.filter(r=>{const s=Number(r);return s<12&&s%o===0}):n==="pm"?t.filter(r=>{const s=Number(r);return s>=12&&s%o===0}).map(r=>{const s=Number(r);return getFixValue(s===12?12:s-12)}):t.filter(r=>Number(r)%o===0):n==="am"?t.filter(r=>Number(r)<12):n==="pm"?t.map(r=>Number(r)).filter(r=>Number(r)>=12).map(r=>getFixValue(r===12?12:r-12)):t}function isTimeInStep(t,o,n){return n?typeof n=="number"?t%n===0:n.includes(t):!0}function findSimilarTime(t,o,n){const r=getTimeUnits(time$1[o],n).map(Number);let s,l;for(let d=0;dt){l=m;break}s=m}return s===void 0?(l||throwError("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),l):l===void 0||l-t>t-s?s:l}function getAmPm(t){return getHours(t)<12?"am":"pm"}const timePickerInjectionKey="n-time-picker",PanelCol=defineComponent({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:Number,default:null},onItemClick:Function},render(){const{activeValue:t,onItemClick:o,clsPrefix:n}=this;return this.data.map(r=>{const{label:s,disabled:l,value:d}=r,m=t===d;return h("div",{key:s,"data-active":m?"":null,class:[`${n}-time-picker-col__item`,m&&`${n}-time-picker-col__item--active`,l&&`${n}-time-picker-col__item--disabled`],onClick:o&&!l?()=>{o(d)}:void 0},s)})}}),timePickerPanelProps={actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,nowText:String,confirmText:String,transitionDisabled:Boolean,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},Panel=defineComponent({name:"TimePickerPanel",props:timePickerPanelProps,setup(t){const{mergedThemeRef:o,mergedClsPrefixRef:n}=inject(timePickerInjectionKey),r=computed(()=>{const{isHourDisabled:m,hours:_,use12Hours:g,amPmValue:v}=t;if(g){const y=v??getAmPm(Date.now());return getTimeUnits(time$1.hours,_,y).map(w=>{const B=Number(w),k=y==="pm"&&B!==12?B+12:B;return{label:w,value:k,disabled:m?m(k):!1}})}else return getTimeUnits(time$1.hours,_).map(y=>({label:y,value:Number(y),disabled:m?m(Number(y)):!1}))}),s=computed(()=>{const{isMinuteDisabled:m,minutes:_}=t;return getTimeUnits(time$1.minutes,_).map(g=>({label:g,value:Number(g),disabled:m?m(Number(g),t.hourValue):!1}))}),l=computed(()=>{const{isSecondDisabled:m,seconds:_}=t;return getTimeUnits(time$1.seconds,_).map(g=>({label:g,value:Number(g),disabled:m?m(Number(g),t.minuteValue,t.hourValue):!1}))}),d=computed(()=>{const{isHourDisabled:m}=t;let _=!0,g=!0;for(let v=0;v<12;++v)if(!(m!=null&&m(v))){_=!1;break}for(let v=12;v<24;++v)if(!(m!=null&&m(v))){g=!1;break}return[{label:"AM",value:"am",disabled:_},{label:"PM",value:"pm",disabled:g}]});return{mergedTheme:o,mergedClsPrefix:n,hours:r,minutes:s,seconds:l,amPm:d,hourScrollRef:ref(null),minuteScrollRef:ref(null),secondScrollRef:ref(null),amPmScrollRef:ref(null)}},render(){var t,o,n;const{mergedClsPrefix:r,mergedTheme:s}=this;return h("div",{tabindex:0,class:`${r}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},h("div",{class:`${r}-time-picker-cols`},this.showHour?h("div",{class:[`${r}-time-picker-col`,this.isHourInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},h(NScrollbar$1,{ref:"hourScrollRef",theme:s.peers.Scrollbar,themeOverrides:s.peerOverrides.Scrollbar},{default:()=>[h(PanelCol,{clsPrefix:r,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),h("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showMinute?h("div",{class:[`${r}-time-picker-col`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${r}-time-picker-col--invalid`]},h(NScrollbar$1,{ref:"minuteScrollRef",theme:s.peers.Scrollbar,themeOverrides:s.peerOverrides.Scrollbar},{default:()=>[h(PanelCol,{clsPrefix:r,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),h("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showSecond?h("div",{class:[`${r}-time-picker-col`,this.isSecondInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},h(NScrollbar$1,{ref:"secondScrollRef",theme:s.peers.Scrollbar,themeOverrides:s.peerOverrides.Scrollbar},{default:()=>[h(PanelCol,{clsPrefix:r,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),h("div",{class:`${r}-time-picker-col__padding`})]})):null,this.use12Hours?h("div",{class:[`${r}-time-picker-col`,this.isAmPmInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},h(NScrollbar$1,{ref:"amPmScrollRef",theme:s.peers.Scrollbar,themeOverrides:s.peerOverrides.Scrollbar},{default:()=>[h(PanelCol,{clsPrefix:r,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),h("div",{class:`${r}-time-picker-col__padding`})]})):null),!((t=this.actions)===null||t===void 0)&&t.length?h("div",{class:`${r}-time-picker-actions`},!((o=this.actions)===null||o===void 0)&&o.includes("now")?h(NButton,{size:"tiny",theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?h(NButton,{size:"tiny",type:"primary",class:`${r}-time-picker-actions__confirm`,theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,h(FocusDetector,{onFocus:this.onFocusDetectorFocus}))}}),style$d=c$1([cB("time-picker",`
+ z-index: auto;
+ position: relative;
+ `,[cB("time-picker-icon",`
+ color: var(--n-icon-color-override);
+ transition: color .3s var(--n-bezier);
+ `),cM("disabled",[cB("time-picker-icon",`
+ color: var(--n-icon-color-disabled-override);
+ `)])]),cB("time-picker-panel",`
+ transition:
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier);
+ outline: none;
+ font-size: var(--n-item-font-size);
+ border-radius: var(--n-border-radius);
+ margin: 4px 0;
+ min-width: 104px;
+ overflow: hidden;
+ background-color: var(--n-panel-color);
+ box-shadow: var(--n-panel-box-shadow);
+ `,[fadeInScaleUpTransition(),cB("time-picker-actions",`
+ padding: var(--n-panel-action-padding);
+ align-items: center;
+ display: flex;
+ justify-content: space-evenly;
+ `),cB("time-picker-cols",`
+ height: calc(var(--n-item-height) * 6);
+ display: flex;
+ position: relative;
+ transition: border-color .3s var(--n-bezier);
+ border-bottom: 1px solid var(--n-panel-divider-color);
+ `),cB("time-picker-col",`
+ flex-grow: 1;
+ min-width: var(--n-item-width);
+ height: calc(var(--n-item-height) * 6);
+ flex-direction: column;
+ transition: box-shadow .3s var(--n-bezier);
+ `,[cM("transition-disabled",[cE("item","transition: none;",[c$1("&::before","transition: none;")])]),cE("padding",`
+ height: calc(var(--n-item-height) * 5);
+ `),c$1("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[cE("item",[c$1("&::before","left: 4px;")])]),cE("item",`
+ cursor: pointer;
+ height: var(--n-item-height);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ transition:
+ color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ opacity .3s var(--n-bezier),
+ text-decoration-color .3s var(--n-bezier);
+ background: #0000;
+ text-decoration-color: #0000;
+ color: var(--n-item-text-color);
+ z-index: 0;
+ box-sizing: border-box;
+ padding-top: 4px;
+ position: relative;
+ `,[c$1("&::before",`
+ content: "";
+ transition: background-color .3s var(--n-bezier);
+ z-index: -1;
+ position: absolute;
+ left: 0;
+ right: 4px;
+ top: 4px;
+ bottom: 0;
+ border-radius: var(--n-item-border-radius);
+ `),cNotM("disabled",[c$1("&:hover::before",`
+ background-color: var(--n-item-color-hover);
+ `)]),cM("active",`
+ color: var(--n-item-text-color-active);
+ `,[c$1("&::before",`
+ background-color: var(--n-item-color-hover);
+ `)]),cM("disabled",`
+ opacity: var(--n-item-opacity-disabled);
+ cursor: not-allowed;
+ `)]),cM("invalid",[cE("item",[cM("active",`
+ text-decoration: line-through;
+ text-decoration-color: var(--n-item-text-color-active);
+ `)])])])])]);function validateUnits(t,o){return t===void 0?!0:Array.isArray(t)?t.every(n=>n>=0&&n<=o):t>=0&&t<=o}const timePickerProps=Object.assign(Object.assign({},useTheme.props),{to:useAdjustedTo.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:t=>validateUnits(t,23)},minutes:{type:[Number,Array],validator:t=>validateUnits(t,59)},seconds:{type:[Number,Array],validator:t=>validateUnits(t,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),NTimePicker=defineComponent({name:"TimePicker",props:timePickerProps,setup(t){const{mergedBorderedRef:o,mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:s}=useConfig(t),{localeRef:l,dateLocaleRef:d}=useLocale("TimePicker"),m=useFormItem(t),{mergedSizeRef:_,mergedDisabledRef:g,mergedStatusRef:v}=m,y=useTheme("TimePicker","-time-picker",style$d,timePickerLight$1,t,n),w=useKeyboard(),B=ref(null),k=ref(null),N=computed(()=>({locale:d.value.locale}));function S(Je){return Je===null?null:strictParse(Je,t.valueFormat||t.format,new Date,N.value).getTime()}const{defaultValue:x,defaultFormattedValue:C}=t,I=ref(C!==void 0?S(C):x),D=computed(()=>{const{formattedValue:Je}=t;if(Je!==void 0)return S(Je);const{value:Ee}=t;return Ee!==void 0?Ee:I.value}),R=computed(()=>{const{timeZone:Je}=t;return Je?(Ee,Ye,mt)=>formatInTimeZone(Ee,Je,Ye,mt):(Ee,Ye,mt)=>format$3(Ee,Ye,mt)}),O=ref("");watch(()=>t.timeZone,()=>{const Je=D.value;O.value=Je===null?"":R.value(Je,t.format,N.value)},{immediate:!0});const Q=ref(!1),Y=toRef(t,"show"),W=useMergedState(Y,Q),K=ref(D.value),ee=ref(!1),q=computed(()=>l.value.now),ae=computed(()=>t.placeholder!==void 0?t.placeholder:l.value.placeholder),ie=computed(()=>l.value.negativeText),oe=computed(()=>l.value.positiveText),J=computed(()=>/H|h|K|k/.test(t.format)),j=computed(()=>t.format.includes("m")),re=computed(()=>t.format.includes("s")),ce=computed(()=>{const{isHourDisabled:Je}=t;return fe.value===null?!1:isTimeInStep(fe.value,"hours",t.hours)?Je?Je(fe.value):!1:!0}),le=computed(()=>{const{value:Je}=ve,{value:Ee}=fe;if(Je===null||Ee===null)return!1;if(!isTimeInStep(Je,"minutes",t.minutes))return!0;const{isMinuteDisabled:Ye}=t;return Ye?Ye(Je,Ee):!1}),se=computed(()=>{const{value:Je}=ve,{value:Ee}=fe,{value:Ye}=ze;if(Ye===null||Je===null||Ee===null)return!1;if(!isTimeInStep(Ye,"seconds",t.seconds))return!0;const{isSecondDisabled:mt}=t;return mt?mt(Ye,Je,Ee):!1}),te=computed(()=>ce.value||le.value||se.value),ne=computed(()=>t.format.length+4),de=computed(()=>{const{value:Je}=D;return Je===null?null:getHours(Je)<12?"am":"pm"}),fe=computed(()=>{const{value:Je}=D;return Je===null?null:Number(R.value(Je,"HH",N.value))}),ve=computed(()=>{const{value:Je}=D;return Je===null?null:Number(R.value(Je,"mm",N.value))}),ze=computed(()=>{const{value:Je}=D;return Je===null?null:Number(R.value(Je,"ss",N.value))});function Re(Je,Ee){const{onUpdateFormattedValue:Ye,"onUpdate:formattedValue":mt}=t;Ye&&call(Ye,Je,Ee),mt&&call(mt,Je,Ee)}function ke(Je){return Je===null?null:R.value(Je,t.valueFormat||t.format)}function xe(Je){const{onUpdateValue:Ee,"onUpdate:value":Ye,onChange:mt}=t,{nTriggerFormChange:kt,nTriggerFormInput:bt}=m,It=ke(Je);Ee&&call(Ee,Je,It),Ye&&call(Ye,Je,It),mt&&call(mt,Je,It),Re(It,Je),I.value=Je,kt(),bt()}function tt(Je){const{onFocus:Ee}=t,{nTriggerFormFocus:Ye}=m;Ee&&call(Ee,Je),Ye()}function me(Je){const{onBlur:Ee}=t,{nTriggerFormBlur:Ye}=m;Ee&&call(Ee,Je),Ye()}function be(){const{onConfirm:Je}=t;Je&&call(Je,D.value,ke(D.value))}function Ne(Je){var Ee;Je.stopPropagation(),xe(null),at(null),(Ee=t.onClear)===null||Ee===void 0||Ee.call(t)}function qe(){ct({returnFocus:!0})}function Be(Je){Je.key==="Escape"&&W.value&&markEventEffectPerformed(Je)}function ge(Je){var Ee;switch(Je.key){case"Escape":W.value&&(markEventEffectPerformed(Je),ct({returnFocus:!0}));break;case"Tab":w.shift&&Je.target===((Ee=k.value)===null||Ee===void 0?void 0:Ee.$el)&&(Je.preventDefault(),ct({returnFocus:!0}));break}}function ot(){ee.value=!0,nextTick(()=>{ee.value=!1})}function lt(Je){g.value||happensIn(Je,"clear")||W.value||Se()}function ut(Je){typeof Je!="string"&&(D.value===null?xe(getTime(setHours(startOfHour(new Date),Je))):xe(getTime(setHours(D.value,Je))))}function et(Je){typeof Je!="string"&&(D.value===null?xe(getTime(setMinutes(startOfMinute(new Date),Je))):xe(getTime(setMinutes(D.value,Je))))}function pt(Je){typeof Je!="string"&&(D.value===null?xe(getTime(setSeconds(startOfSecond(new Date),Je))):xe(getTime(setSeconds(D.value,Je))))}function Ie(Je){const{value:Ee}=D;if(Ee===null){const Ye=new Date,mt=getHours(Ye);Je==="pm"&&mt<12?xe(getTime(setHours(Ye,mt+12))):Je==="am"&&mt>=12&&xe(getTime(setHours(Ye,mt-12))),xe(getTime(Ye))}else{const Ye=getHours(Ee);Je==="pm"&&Ye<12?xe(getTime(setHours(Ee,Ye+12))):Je==="am"&&Ye>=12&&xe(getTime(setHours(Ee,Ye-12)))}}function at(Je){Je===void 0&&(Je=D.value),Je===null?O.value="":O.value=R.value(Je,t.format,N.value)}function He(Je){Me(Je)||tt(Je)}function Fe(Je){var Ee;if(!Me(Je))if(W.value){const Ye=(Ee=k.value)===null||Ee===void 0?void 0:Ee.$el;Ye!=null&&Ye.contains(Je.relatedTarget)||(at(),me(Je),ct({returnFocus:!1}))}else at(),me(Je)}function dt(){g.value||W.value||Se()}function gt(){g.value||(at(),ct({returnFocus:!1}))}function Ke(){if(!k.value)return;const{hourScrollRef:Je,minuteScrollRef:Ee,secondScrollRef:Ye,amPmScrollRef:mt}=k.value;[Je,Ee,Ye,mt].forEach(kt=>{var bt;if(!kt)return;const It=(bt=kt.contentRef)===null||bt===void 0?void 0:bt.querySelector("[data-active]");It&&kt.scrollTo({top:It.offsetTop})})}function De(Je){Q.value=Je;const{onUpdateShow:Ee,"onUpdate:show":Ye}=t;Ee&&call(Ee,Je),Ye&&call(Ye,Je)}function Me(Je){var Ee,Ye,mt;return!!(!((Ye=(Ee=B.value)===null||Ee===void 0?void 0:Ee.wrapperElRef)===null||Ye===void 0)&&Ye.contains(Je.relatedTarget)||!((mt=k.value)===null||mt===void 0)&&mt.$el.contains(Je.relatedTarget))}function Se(){K.value=D.value,De(!0),nextTick(Ke)}function Pe(Je){var Ee,Ye;W.value&&!(!((Ye=(Ee=B.value)===null||Ee===void 0?void 0:Ee.wrapperElRef)===null||Ye===void 0)&&Ye.contains(getPreciseEventTarget(Je)))&&ct({returnFocus:!1})}function ct({returnFocus:Je}){var Ee;W.value&&(De(!1),Je&&((Ee=B.value)===null||Ee===void 0||Ee.focus()))}function Ue(Je){if(Je===""){xe(null);return}const Ee=strictParse(Je,t.format,new Date,N.value);if(O.value=Je,isValid$1(Ee)){const{value:Ye}=D;if(Ye!==null){const mt=set(Ye,{hours:getHours(Ee),minutes:getMinutes(Ee),seconds:getSeconds(Ee)});xe(getTime(mt))}else xe(getTime(Ee))}}function ye(){xe(K.value),De(!1)}function Qe(){const Je=new Date,Ee={hours:getHours,minutes:getMinutes,seconds:getSeconds},[Ye,mt,kt]=["hours","minutes","seconds"].map(It=>!t[It]||isTimeInStep(Ee[It](Je),It,t[It])?Ee[It](Je):findSimilarTime(Ee[It](Je),It,t[It])),bt=setSeconds(setMinutes(setHours(D.value?D.value:getTime(Je),Ye),mt),kt);xe(getTime(bt))}function Ce(){at(),be(),ct({returnFocus:!0})}function nt(Je){Me(Je)||(at(),me(Je),ct({returnFocus:!1}))}watch(D,Je=>{at(Je),ot(),nextTick(Ke)}),watch(W,()=>{te.value&&xe(K.value)}),provide(timePickerInjectionKey,{mergedThemeRef:y,mergedClsPrefixRef:n});const ft={focus:()=>{var Je;(Je=B.value)===null||Je===void 0||Je.focus()},blur:()=>{var Je;(Je=B.value)===null||Je===void 0||Je.blur()}},Le=computed(()=>{const{common:{cubicBezierEaseInOut:Je},self:{iconColor:Ee,iconColorDisabled:Ye}}=y.value;return{"--n-icon-color-override":Ee,"--n-icon-color-disabled-override":Ye,"--n-bezier":Je}}),it=s?useThemeClass("time-picker-trigger",void 0,Le,t):void 0,_t=computed(()=>{const{self:{panelColor:Je,itemTextColor:Ee,itemTextColorActive:Ye,itemColorHover:mt,panelDividerColor:kt,panelBoxShadow:bt,itemOpacityDisabled:It,borderRadius:$t,itemFontSize:Ze,itemWidth:ht,itemHeight:Xe,panelActionPadding:we,itemBorderRadius:Oe},common:{cubicBezierEaseInOut:Ge}}=y.value;return{"--n-bezier":Ge,"--n-border-radius":$t,"--n-item-color-hover":mt,"--n-item-font-size":Ze,"--n-item-height":Xe,"--n-item-opacity-disabled":It,"--n-item-text-color":Ee,"--n-item-text-color-active":Ye,"--n-item-width":ht,"--n-panel-action-padding":we,"--n-panel-box-shadow":bt,"--n-panel-color":Je,"--n-panel-divider-color":kt,"--n-item-border-radius":Oe}}),Ct=s?useThemeClass("time-picker",void 0,_t,t):void 0;return{focus:ft.focus,blur:ft.blur,mergedStatus:v,mergedBordered:o,mergedClsPrefix:n,namespace:r,uncontrolledValue:I,mergedValue:D,isMounted:isMounted(),inputInstRef:B,panelInstRef:k,adjustedTo:useAdjustedTo(t),mergedShow:W,localizedNow:q,localizedPlaceholder:ae,localizedNegativeText:ie,localizedPositiveText:oe,hourInFormat:J,minuteInFormat:j,secondInFormat:re,mergedAttrSize:ne,displayTimeString:O,mergedSize:_,mergedDisabled:g,isValueInvalid:te,isHourInvalid:ce,isMinuteInvalid:le,isSecondInvalid:se,transitionDisabled:ee,hourValue:fe,minuteValue:ve,secondValue:ze,amPmValue:de,handleInputKeydown:Be,handleTimeInputFocus:He,handleTimeInputBlur:Fe,handleNowClick:Qe,handleConfirmClick:Ce,handleTimeInputUpdateValue:Ue,handleMenuFocusOut:nt,handleCancelClick:ye,handleClickOutside:Pe,handleTimeInputActivate:dt,handleTimeInputDeactivate:gt,handleHourClick:ut,handleMinuteClick:et,handleSecondClick:pt,handleAmPmClick:Ie,handleTimeInputClear:Ne,handleFocusDetectorFocus:qe,handleMenuKeydown:ge,handleTriggerClick:lt,mergedTheme:y,triggerCssVars:s?void 0:Le,triggerThemeClass:it==null?void 0:it.themeClass,triggerOnRender:it==null?void 0:it.onRender,cssVars:s?void 0:_t,themeClass:Ct==null?void 0:Ct.themeClass,onRender:Ct==null?void 0:Ct.onRender}},render(){const{mergedClsPrefix:t,$slots:o,triggerOnRender:n}=this;return n==null||n(),h("div",{class:[`${t}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},h(VBinder,null,{default:()=>[h(VTarget,null,{default:()=>h(NInput,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>h(NBaseIcon,{clsPrefix:t,class:`${t}-time-picker-icon`},{default:()=>o.icon?o.icon():h(TimeIcon,null)})}:null)}),h(VFollower,{teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>h(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var r;return this.mergedShow?((r=this.onRender)===null||r===void 0||r.call(this),withDirectives(h(Panel,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[clickoutside$1,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),TIME_FORMAT="HH:mm:ss",usePanelCommonProps={active:Boolean,dateFormat:String,timeFormat:{type:String,value:TIME_FORMAT},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array],onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean};function usePanelCommon(t){const{dateLocaleRef:o,timePickerSizeRef:n,timePickerPropsRef:r,localeRef:s,mergedClsPrefixRef:l,mergedThemeRef:d}=inject(datePickerInjectionKey),m=computed(()=>({locale:o.value.locale})),_=ref(null),g=useKeyboard();function v(){const{onClear:q}=t;q&&q()}function y(){const{onConfirm:q,value:ae}=t;q&&q(ae)}function w(q,ae){const{onUpdateValue:ie}=t;ie(q,ae)}function B(q=!1){const{onClose:ae}=t;ae&&ae(q)}function k(){const{onTabOut:q}=t;q&&q()}function N(){w(null,!0),B(!0),v()}function S(){k()}function x(){(t.active||t.panel)&&nextTick(()=>{const{value:q}=_;if(!q)return;const ae=q.querySelectorAll("[data-n-date]");ae.forEach(ie=>{ie.classList.add("transition-disabled")}),q.offsetWidth,ae.forEach(ie=>{ie.classList.remove("transition-disabled")})})}function C(q){q.key==="Tab"&&q.target===_.value&&g.shift&&(q.preventDefault(),k())}function I(q){const{value:ae}=_;g.tab&&q.target===ae&&(ae!=null&&ae.contains(q.relatedTarget))&&k()}let D=null,R=!1;function O(){D=t.value,R=!0}function Q(){R=!1}function Y(){R&&(w(D,!1),R=!1)}function W(q){return typeof q=="function"?q():q}const K=ref(!1);function ee(){K.value=!K.value}return{mergedTheme:d,mergedClsPrefix:l,dateFnsOptions:m,timePickerSize:n,timePickerProps:r,selfRef:_,locale:s,doConfirm:y,doClose:B,doUpdateValue:w,doTabOut:k,handleClearClick:N,handleFocusDetectorFocus:S,disableTransitionOneTick:x,handlePanelKeyDown:C,handlePanelFocus:I,cachePendingValue:O,clearPendingValue:Q,restorePendingValue:Y,getShortcutValue:W,handleShortcutMouseleave:Y,showMonthYearPanel:K,handleOpenQuickSelectMonthPanel:ee}}const useCalendarProps=Object.assign(Object.assign({},usePanelCommonProps),{actions:{type:Array,default:()=>["now","clear","confirm"]}});function useCalendar(t,o){const n=usePanelCommon(t),{isValueInvalidRef:r,isDateDisabledRef:s,isDateInvalidRef:l,isTimeInvalidRef:d,isDateTimeInvalidRef:m,isHourDisabledRef:_,isMinuteDisabledRef:g,isSecondDisabledRef:v,localeRef:y,firstDayOfWeekRef:w,datePickerSlots:B}=inject(datePickerInjectionKey),k={isValueInvalid:r,isDateDisabled:s,isDateInvalid:l,isTimeInvalid:d,isDateTimeInvalid:m,isHourDisabled:_,isMinuteDisabled:g,isSecondDisabled:v},N=computed(()=>t.dateFormat||y.value.dateFormat),S=ref(t.value===null||Array.isArray(t.value)?"":format$3(t.value,N.value)),x=ref(t.value===null||Array.isArray(t.value)?Date.now():t.value),C=ref(null),I=ref(null),D=ref(null),R=ref(Date.now()),O=computed(()=>{var ge;return dateArray(x.value,t.value,R.value,(ge=w.value)!==null&&ge!==void 0?ge:y.value.firstDayOfWeek)}),Q=computed(()=>{const{value:ge}=t;return monthArray(x.value,Array.isArray(ge)?null:ge,R.value)}),Y=computed(()=>{const{value:ge}=t;return yearArray(Array.isArray(ge)?null:ge,R.value)}),W=computed(()=>{const{value:ge}=t;return quarterArray(x.value,Array.isArray(ge)?null:ge,R.value)}),K=computed(()=>O.value.slice(0,7).map(ge=>{const{ts:ot}=ge;return format$3(ot,y.value.dayFormat,n.dateFnsOptions.value)})),ee=computed(()=>format$3(x.value,y.value.monthFormat,n.dateFnsOptions.value)),q=computed(()=>format$3(x.value,y.value.yearFormat,n.dateFnsOptions.value));watch(x,(ge,ot)=>{(o==="date"||o==="datetime")&&(isSameMonth(ge,ot)||n.disableTransitionOneTick())}),watch(computed(()=>t.value),ge=>{ge!==null&&!Array.isArray(ge)?(S.value=format$3(ge,N.value,n.dateFnsOptions.value),x.value=ge):S.value=""});function ae(ge){return getTime(o==="datetime"?startOfSecond(ge):o==="month"?startOfMonth(ge):o==="year"?startOfYear(ge):o==="quarter"?startOfQuarter(ge):startOfDay(ge))}function ie(ge){const{isDateDisabled:{value:ot}}=k;return ot?ot(ge):!1}function oe(ge){const ot=strictParse(ge,N.value,new Date,n.dateFnsOptions.value);if(isValid$1(ot)){if(t.value===null)n.doUpdateValue(getTime(ae(Date.now())),t.panel);else if(!Array.isArray(t.value)){const lt=set(t.value,{year:getYear(ot),month:getMonth(ot),date:getDate(ot)});n.doUpdateValue(getTime(ae(getTime(lt))),t.panel)}}else S.value=ge}function J(){const ge=strictParse(S.value,N.value,new Date,n.dateFnsOptions.value);if(isValid$1(ge)){if(t.value===null)n.doUpdateValue(getTime(ae(Date.now())),!1);else if(!Array.isArray(t.value)){const ot=set(t.value,{year:getYear(ge),month:getMonth(ge),date:getDate(ge)});n.doUpdateValue(getTime(ae(getTime(ot))),!1)}}else te()}function j(){n.doUpdateValue(null,!0),S.value="",n.doClose(!0),n.handleClearClick()}function re(){n.doUpdateValue(getTime(ae(Date.now())),!0);const ge=Date.now();x.value=ge,n.doClose(!0),t.panel&&(o==="month"||o==="quarter"||o==="year")&&(n.disableTransitionOneTick(),qe(ge))}function ce(ge){if(ie(ge.ts))return;let ot;if(t.value!==null&&!Array.isArray(t.value)?ot=t.value:ot=Date.now(),o==="datetime"&&t.defaultTime!==null&&!Array.isArray(t.defaultTime)){const lt=getDefaultTime(t.defaultTime);lt&&(ot=getTime(set(ot,lt)))}switch(ot=getTime(ge.type==="quarter"&&ge.dateObject.quarter?setQuarter(setYear(ot,ge.dateObject.year),ge.dateObject.quarter):set(ot,ge.dateObject)),n.doUpdateValue(ae(ot),t.panel||o==="date"||o==="year"),o){case"date":n.doClose();break;case"year":t.panel&&n.disableTransitionOneTick(),n.doClose();break;case"month":n.disableTransitionOneTick(),qe(ot);break;case"quarter":n.disableTransitionOneTick(),qe(ot);break}}function le(ge,ot){let lt;t.value!==null&&!Array.isArray(t.value)?lt=t.value:lt=Date.now(),lt=getTime(ge.type==="month"?setMonth(lt,ge.dateObject.month):setYear(lt,ge.dateObject.year)),ot(lt),qe(lt)}function se(ge){x.value=ge}function te(ge){if(t.value===null||Array.isArray(t.value)){S.value="";return}ge===void 0&&(ge=t.value),S.value=format$3(ge,N.value,n.dateFnsOptions.value)}function ne(){k.isDateInvalid.value||k.isTimeInvalid.value||(n.doConfirm(),de())}function de(){t.active&&n.doClose()}function fe(){x.value=getTime(addYears(x.value,1))}function ve(){x.value=getTime(addYears(x.value,-1))}function ze(){x.value=getTime(addMonths(x.value,1))}function Re(){x.value=getTime(addMonths(x.value,-1))}function ke(){const{value:ge}=C;return ge==null?void 0:ge.listElRef}function xe(){const{value:ge}=C;return ge==null?void 0:ge.itemsElRef}function tt(ge){var ot;(ot=I.value)===null||ot===void 0||ot.sync()}function me(ge){ge!==null&&n.doUpdateValue(ge,t.panel)}function be(ge){n.cachePendingValue();const ot=n.getShortcutValue(ge);typeof ot=="number"&&n.doUpdateValue(ot,!1)}function Ne(ge){const ot=n.getShortcutValue(ge);typeof ot=="number"&&(n.doUpdateValue(ot,t.panel),n.clearPendingValue(),ne())}function qe(ge){const{value:ot}=t;if(D.value){const lt=getMonth(ge===void 0?ot===null?Date.now():ot:ge);D.value.scrollTo({top:lt*MONTH_ITEM_HEIGHT})}if(C.value){const lt=getYear(ge===void 0?ot===null?Date.now():ot:ge)-START_YEAR;C.value.scrollTo({top:lt*MONTH_ITEM_HEIGHT})}}const Be={monthScrollbarRef:D,yearScrollbarRef:I,yearVlRef:C};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:O,monthArray:Q,yearArray:Y,quarterArray:W,calendarYear:q,calendarMonth:ee,weekdays:K,mergedIsDateDisabled:ie,nextYear:fe,prevYear:ve,nextMonth:ze,prevMonth:Re,handleNowClick:re,handleConfirmClick:ne,handleSingleShortcutMouseenter:be,handleSingleShortcutClick:Ne},k),n),Be),{handleDateClick:ce,handleDateInputBlur:J,handleDateInput:oe,handleTimePickerChange:me,clearSelectedDateTime:j,virtualListContainer:ke,virtualListContent:xe,handleVirtualListScroll:tt,timePickerSize:n.timePickerSize,dateInputValue:S,datePickerSlots:B,handleQuickMonthClick:le,justifyColumnsScrollState:qe,calendarValue:x,onUpdateCalendarValue:se})}const MonthPanel=defineComponent({name:"MonthPanel",props:Object.assign(Object.assign({},useCalendarProps),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(t){const o=useCalendar(t,t.type),n=l=>{switch(l.type){case"year":return l.dateObject.year;case"month":return l.dateObject.month+1;case"quarter":return`Q${l.dateObject.quarter}`}},{useAsQuickJump:r}=t,s=(l,d,m)=>{const{mergedIsDateDisabled:_,handleDateClick:g,handleQuickMonthClick:v}=o;return h("div",{"data-n-date":!0,key:d,class:[`${m}-date-panel-month-calendar__picker-col-item`,{[`${m}-date-panel-month-calendar__picker-col-item--current`]:l.isCurrent,[`${m}-date-panel-month-calendar__picker-col-item--selected`]:l.selected,[`${m}-date-panel-month-calendar__picker-col-item--disabled`]:!r&&_(l.ts)}],onClick:()=>{r?v(l,y=>{t.onUpdateValue(y,!1)}):g(l)}},n(l))};return onMounted(()=>{o.justifyColumnsScrollState()}),Object.assign(Object.assign({},o),{renderItem:s})},render(){const{mergedClsPrefix:t,mergedTheme:o,shortcuts:n,actions:r,renderItem:s,type:l,onRender:d}=this;return d==null||d(),h("div",{ref:"selfRef",tabindex:0,class:[`${t}-date-panel`,`${t}-date-panel--month`,!this.panel&&`${t}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},h("div",{class:`${t}-date-panel-month-calendar`},h(NScrollbar$1,{ref:"yearScrollbarRef",class:`${t}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>h(VVirtualList,{ref:"yearVlRef",items:this.yearArray,itemSize:MONTH_ITEM_HEIGHT,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:m,index:_})=>s(m,_,t)})}),l==="month"||l==="quarter"?h("div",{class:`${t}-date-panel-month-calendar__picker-col`},h(NScrollbar$1,{ref:"monthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(l==="month"?this.monthArray:this.quarterArray).map((m,_)=>s(m,_,t)),h("div",{class:`${t}-date-panel-${l}-calendar__padding`})]})):null),this.datePickerSlots.footer?h("div",{class:`${t}-date-panel-footer`},{default:this.datePickerSlots.footer}):null,r!=null&&r.length||n?h("div",{class:`${t}-date-panel-actions`},h("div",{class:`${t}-date-panel-actions__prefix`},n&&Object.keys(n).map(m=>{const _=n[m];return Array.isArray(_)?null:h(XButton,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(_)},onClick:()=>{this.handleSingleShortcutClick(_)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>m})})),h("div",{class:`${t}-date-panel-actions__suffix`},r!=null&&r.includes("clear")?h(NButton,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,r!=null&&r.includes("now")?h(NButton,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,r!=null&&r.includes("confirm")?h(NButton,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,h(FocusDetector,{onFocus:this.handleFocusDetectorFocus}))}}),PanelHeader=defineComponent({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const t=ref(null),o=ref(null),n=ref(!1);function r(l){var d;n.value&&!(!((d=t.value)===null||d===void 0)&&d.contains(getPreciseEventTarget(l)))&&(n.value=!1)}function s(){n.value=!n.value}return{show:n,triggerRef:t,monthPanelRef:o,handleHeaderClick:s,handleClickOutside:r}},render(){const{handleClickOutside:t,mergedClsPrefix:o}=this;return h("div",{class:`${o}-date-panel-month__month-year`,ref:"triggerRef"},h(VBinder,null,{default:()=>[h(VTarget,null,{default:()=>h("div",{class:[`${o}-date-panel-month__text`,this.show&&`${o}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth," ",this.calendarYear]:[this.calendarYear," ",this.calendarMonth])}),h(VFollower,{show:this.show,teleportDisabled:!0},{default:()=>h(Transition,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?withDirectives(h(MonthPanel,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[clickoutside$1,t,void 0,{capture:!0}]]):null})})]}))}}),DatetimePanel=defineComponent({name:"DateTimePanel",props:useCalendarProps,setup(t){return useCalendar(t,"datetime")},render(){var t,o,n,r;const{mergedClsPrefix:s,mergedTheme:l,shortcuts:d,timePickerProps:m,onRender:_,$slots:g}=this;return _==null||_(),h("div",{ref:"selfRef",tabindex:0,class:[`${s}-date-panel`,`${s}-date-panel--datetime`,!this.panel&&`${s}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},h("div",{class:`${s}-date-panel-header`},h(NInput,{value:this.dateInputValue,theme:l.peers.Input,themeOverrides:l.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${s}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),h(NTimePicker,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timeFormat},Array.isArray(m)?void 0:m,{showIcon:!1,to:!1,theme:l.peers.TimePicker,themeOverrides:l.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),h("div",{class:`${s}-date-panel-calendar`},h("div",{class:`${s}-date-panel-month`},h("div",{class:`${s}-date-panel-month__fast-prev`,onClick:this.prevYear},resolveSlot(g["prev-year"],()=>[h(FastBackwardIcon,null)])),h("div",{class:`${s}-date-panel-month__prev`,onClick:this.prevMonth},resolveSlot(g["prev-month"],()=>[h(BackwardIcon,null)])),h(PanelHeader,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:s,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),h("div",{class:`${s}-date-panel-month__next`,onClick:this.nextMonth},resolveSlot(g["next-month"],()=>[h(ForwardIcon,null)])),h("div",{class:`${s}-date-panel-month__fast-next`,onClick:this.nextYear},resolveSlot(g["next-year"],()=>[h(FastForwardIcon,null)]))),h("div",{class:`${s}-date-panel-weekdays`},this.weekdays.map(v=>h("div",{key:v,class:`${s}-date-panel-weekdays__day`},v))),h("div",{class:`${s}-date-panel-dates`},this.dateArray.map((v,y)=>h("div",{"data-n-date":!0,key:y,class:[`${s}-date-panel-date`,{[`${s}-date-panel-date--current`]:v.isCurrentDate,[`${s}-date-panel-date--selected`]:v.selected,[`${s}-date-panel-date--excluded`]:!v.inCurrentMonth,[`${s}-date-panel-date--disabled`]:this.mergedIsDateDisabled(v.ts)}],onClick:()=>{this.handleDateClick(v)}},h("div",{class:`${s}-date-panel-date__trigger`}),v.dateObject.date,v.isCurrentDate?h("div",{class:`${s}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?h("div",{class:`${s}-date-panel-footer`},this.datePickerSlots.footer()):null,!((t=this.actions)===null||t===void 0)&&t.length||d?h("div",{class:`${s}-date-panel-actions`},h("div",{class:`${s}-date-panel-actions__prefix`},d&&Object.keys(d).map(v=>{const y=d[v];return Array.isArray(y)?null:h(XButton,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(y)},onClick:()=>{this.handleSingleShortcutClick(y)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>v})})),h("div",{class:`${s}-date-panel-actions__suffix`},!((o=this.actions)===null||o===void 0)&&o.includes("clear")?h(NButton,{theme:l.peers.Button,themeOverrides:l.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?h(NButton,{theme:l.peers.Button,themeOverrides:l.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?h(NButton,{theme:l.peers.Button,themeOverrides:l.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,h(FocusDetector,{onFocus:this.handleFocusDetectorFocus}))}}),useDualCalendarProps=Object.assign(Object.assign({},usePanelCommonProps),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function useDualCalendar(t,o){var n,r;const{isDateDisabledRef:s,isStartHourDisabledRef:l,isEndHourDisabledRef:d,isStartMinuteDisabledRef:m,isEndMinuteDisabledRef:_,isStartSecondDisabledRef:g,isEndSecondDisabledRef:v,isStartDateInvalidRef:y,isEndDateInvalidRef:w,isStartTimeInvalidRef:B,isEndTimeInvalidRef:k,isStartValueInvalidRef:N,isEndValueInvalidRef:S,isRangeInvalidRef:x,localeRef:C,rangesRef:I,closeOnSelectRef:D,updateValueOnCloseRef:R,firstDayOfWeekRef:O,datePickerSlots:Q}=inject(datePickerInjectionKey),Y={isDateDisabled:s,isStartHourDisabled:l,isEndHourDisabled:d,isStartMinuteDisabled:m,isEndMinuteDisabled:_,isStartSecondDisabled:g,isEndSecondDisabled:v,isStartDateInvalid:y,isEndDateInvalid:w,isStartTimeInvalid:B,isEndTimeInvalid:k,isStartValueInvalid:N,isEndValueInvalid:S,isRangeInvalid:x},W=usePanelCommon(t),K=ref(null),ee=ref(null),q=ref(null),ae=ref(null),ie=ref(null),oe=ref(null),J=ref(null),j=ref(null),{value:re}=t,ce=(n=t.defaultCalendarStartTime)!==null&&n!==void 0?n:Array.isArray(re)&&typeof re[0]=="number"?re[0]:Date.now(),le=ref(ce),se=ref((r=t.defaultCalendarEndTime)!==null&&r!==void 0?r:Array.isArray(re)&&typeof re[1]=="number"?re[1]:getTime(addMonths(ce,1)));Fe(!0);const te=ref(Date.now()),ne=ref(!1),de=ref(0),fe=computed(()=>t.dateFormat||C.value.dateFormat),ve=ref(Array.isArray(re)?format$3(re[0],fe.value,W.dateFnsOptions.value):""),ze=ref(Array.isArray(re)?format$3(re[1],fe.value,W.dateFnsOptions.value):""),Re=computed(()=>ne.value?"end":"start"),ke=computed(()=>{var $e;return dateArray(le.value,t.value,te.value,($e=O.value)!==null&&$e!==void 0?$e:C.value.firstDayOfWeek)}),xe=computed(()=>{var $e;return dateArray(se.value,t.value,te.value,($e=O.value)!==null&&$e!==void 0?$e:C.value.firstDayOfWeek)}),tt=computed(()=>ke.value.slice(0,7).map($e=>{const{ts:rt}=$e;return format$3(rt,C.value.dayFormat,W.dateFnsOptions.value)})),me=computed(()=>format$3(le.value,C.value.monthFormat,W.dateFnsOptions.value)),be=computed(()=>format$3(se.value,C.value.monthFormat,W.dateFnsOptions.value)),Ne=computed(()=>format$3(le.value,C.value.yearFormat,W.dateFnsOptions.value)),qe=computed(()=>format$3(se.value,C.value.yearFormat,W.dateFnsOptions.value)),Be=computed(()=>{const{value:$e}=t;return Array.isArray($e)?$e[0]:null}),ge=computed(()=>{const{value:$e}=t;return Array.isArray($e)?$e[1]:null}),ot=computed(()=>{const{shortcuts:$e}=t;return $e||I.value}),lt=computed(()=>yearArray(pluckValueFromRange(t.value,"start"),te.value)),ut=computed(()=>yearArray(pluckValueFromRange(t.value,"end"),te.value)),et=computed(()=>{const $e=pluckValueFromRange(t.value,"start");return quarterArray($e??Date.now(),$e,te.value)}),pt=computed(()=>{const $e=pluckValueFromRange(t.value,"end");return quarterArray($e??Date.now(),$e,te.value)}),Ie=computed(()=>{const $e=pluckValueFromRange(t.value,"start");return monthArray($e??Date.now(),$e,te.value)}),at=computed(()=>{const $e=pluckValueFromRange(t.value,"end");return monthArray($e??Date.now(),$e,te.value)});watch(computed(()=>t.value),$e=>{if($e!==null&&Array.isArray($e)){const[rt,Ae]=$e;ve.value=format$3(rt,fe.value,W.dateFnsOptions.value),ze.value=format$3(Ae,fe.value,W.dateFnsOptions.value),ne.value||Ce($e)}else ve.value="",ze.value=""});function He($e,rt){(o==="daterange"||o==="datetimerange")&&(getYear($e)!==getYear(rt)||getMonth($e)!==getMonth(rt))&&W.disableTransitionOneTick()}watch(le,He),watch(se,He);function Fe($e){const rt=startOfMonth(le.value),Ae=startOfMonth(se.value);(t.bindCalendarMonths||rt>=Ae)&&($e?se.value=getTime(addMonths(rt,1)):le.value=getTime(addMonths(Ae,-1)))}function dt(){le.value=getTime(addMonths(le.value,12)),Fe(!0)}function gt(){le.value=getTime(addMonths(le.value,-12)),Fe(!0)}function Ke(){le.value=getTime(addMonths(le.value,1)),Fe(!0)}function De(){le.value=getTime(addMonths(le.value,-1)),Fe(!0)}function Me(){se.value=getTime(addMonths(se.value,12)),Fe(!1)}function Se(){se.value=getTime(addMonths(se.value,-12)),Fe(!1)}function Pe(){se.value=getTime(addMonths(se.value,1)),Fe(!1)}function ct(){se.value=getTime(addMonths(se.value,-1)),Fe(!1)}function Ue($e){le.value=$e,Fe(!0)}function ye($e){se.value=$e,Fe(!1)}function Qe($e){const rt=s.value;if(!rt)return!1;if(!Array.isArray(t.value)||Re.value==="start")return rt($e,"start",null);{const{value:Ae}=de;return $e=de.value?Je(de.value,$e.ts,"wipPreview"):Je($e.ts,de.value,"wipPreview")}}function Le(){x.value||(W.doConfirm(),it())}function it(){ne.value=!1,t.active&&W.doClose()}function _t($e){typeof $e!="number"&&($e=getTime($e)),t.value===null?W.doUpdateValue([$e,$e],t.panel):Array.isArray(t.value)&&W.doUpdateValue([$e,Math.max(t.value[1],$e)],t.panel)}function Ct($e){typeof $e!="number"&&($e=getTime($e)),t.value===null?W.doUpdateValue([$e,$e],t.panel):Array.isArray(t.value)&&W.doUpdateValue([Math.min(t.value[0],$e),$e],t.panel)}function Je($e,rt,Ae){if(typeof $e!="number"&&($e=getTime($e)),Ae!=="shortcutPreview"){let ue,Te;if(o==="datetimerange"){const{defaultTime:st}=t;Array.isArray(st)?(ue=getDefaultTime(st[0]),Te=getDefaultTime(st[1])):(ue=getDefaultTime(st),Te=ue)}ue&&($e=getTime(set($e,ue))),Te&&(rt=getTime(set(rt,Te)))}W.doUpdateValue([$e,rt],t.panel&&Ae==="done")}function Ee($e){return getTime(o==="datetimerange"?startOfSecond($e):o==="monthrange"?startOfMonth($e):startOfDay($e))}function Ye($e){const rt=strictParse($e,fe.value,new Date,W.dateFnsOptions.value);if(isValid$1(rt))if(t.value){if(Array.isArray(t.value)){const Ae=set(t.value[0],{year:getYear(rt),month:getMonth(rt),date:getDate(rt)});_t(Ee(getTime(Ae)))}}else{const Ae=set(new Date,{year:getYear(rt),month:getMonth(rt),date:getDate(rt)});_t(Ee(getTime(Ae)))}else ve.value=$e}function mt($e){const rt=strictParse($e,fe.value,new Date,W.dateFnsOptions.value);if(isValid$1(rt)){if(t.value===null){const Ae=set(new Date,{year:getYear(rt),month:getMonth(rt),date:getDate(rt)});Ct(Ee(getTime(Ae)))}else if(Array.isArray(t.value)){const Ae=set(t.value[1],{year:getYear(rt),month:getMonth(rt),date:getDate(rt)});Ct(Ee(getTime(Ae)))}}else ze.value=$e}function kt(){const $e=strictParse(ve.value,fe.value,new Date,W.dateFnsOptions.value),{value:rt}=t;if(isValid$1($e)){if(rt===null){const Ae=set(new Date,{year:getYear($e),month:getMonth($e),date:getDate($e)});_t(Ee(getTime(Ae)))}else if(Array.isArray(rt)){const Ae=set(rt[0],{year:getYear($e),month:getMonth($e),date:getDate($e)});_t(Ee(getTime(Ae)))}}else It()}function bt(){const $e=strictParse(ze.value,fe.value,new Date,W.dateFnsOptions.value),{value:rt}=t;if(isValid$1($e)){if(rt===null){const Ae=set(new Date,{year:getYear($e),month:getMonth($e),date:getDate($e)});Ct(Ee(getTime(Ae)))}else if(Array.isArray(rt)){const Ae=set(rt[1],{year:getYear($e),month:getMonth($e),date:getDate($e)});Ct(Ee(getTime(Ae)))}}else It()}function It($e){const{value:rt}=t;if(rt===null||!Array.isArray(rt)){ve.value="",ze.value="";return}$e===void 0&&($e=rt),ve.value=format$3($e[0],fe.value,W.dateFnsOptions.value),ze.value=format$3($e[1],fe.value,W.dateFnsOptions.value)}function $t($e){$e!==null&&_t($e)}function Ze($e){$e!==null&&Ct($e)}function ht($e){W.cachePendingValue();const rt=W.getShortcutValue($e);Array.isArray(rt)&&Je(rt[0],rt[1],"shortcutPreview")}function Xe($e){const rt=W.getShortcutValue($e);Array.isArray(rt)&&(Je(rt[0],rt[1],"done"),W.clearPendingValue(),Le())}function we($e,rt){const Ae=$e===void 0?t.value:$e;if($e===void 0||rt==="start"){if(J.value){const ue=Array.isArray(Ae)?getMonth(Ae[0]):getMonth(Date.now());J.value.scrollTo({debounce:!1,index:ue,elSize:MONTH_ITEM_HEIGHT})}if(ie.value){const ue=(Array.isArray(Ae)?getYear(Ae[0]):getYear(Date.now()))-START_YEAR;ie.value.scrollTo({index:ue,debounce:!1})}}if($e===void 0||rt==="end"){if(j.value){const ue=Array.isArray(Ae)?getMonth(Ae[1]):getMonth(Date.now());j.value.scrollTo({debounce:!1,index:ue,elSize:MONTH_ITEM_HEIGHT})}if(oe.value){const ue=(Array.isArray(Ae)?getYear(Ae[1]):getYear(Date.now()))-START_YEAR;oe.value.scrollTo({index:ue,debounce:!1})}}}function Oe($e,rt){const{value:Ae}=t,ue=!Array.isArray(Ae),Te=$e.type==="year"&&o!=="yearrange"?ue?set($e.ts,{month:getMonth(o==="quarterrange"?startOfQuarter(new Date):new Date)}).valueOf():set($e.ts,{month:getMonth(o==="quarterrange"?startOfQuarter(Ae[rt==="start"?0:1]):Ae[rt==="start"?0:1])}).valueOf():$e.ts;if(ue){const Tt=Ee(Te),Dt=[Tt,Tt];W.doUpdateValue(Dt,t.panel),we(Dt,"start"),we(Dt,"end"),W.disableTransitionOneTick();return}const st=[Ae[0],Ae[1]];let Bt=!1;switch(rt==="start"?(st[0]=Ee(Te),st[0]>st[1]&&(st[1]=st[0],Bt=!0)):(st[1]=Ee(Te),st[0]>st[1]&&(st[0]=st[1],Bt=!0)),W.doUpdateValue(st,t.panel),o){case"monthrange":case"quarterrange":W.disableTransitionOneTick(),Bt?(we(st,"start"),we(st,"end")):we(st,rt);break;case"yearrange":W.disableTransitionOneTick(),we(st,"start"),we(st,"end")}}function Ge(){var $e;($e=q.value)===null||$e===void 0||$e.sync()}function yt(){var $e;($e=ae.value)===null||$e===void 0||$e.sync()}function St($e){var rt,Ae;return $e==="start"?(rt=ie.value)===null||rt===void 0?void 0:rt.listElRef:(Ae=oe.value)===null||Ae===void 0?void 0:Ae.listElRef}function Mt($e){var rt,Ae;return $e==="start"?(rt=ie.value)===null||rt===void 0?void 0:rt.itemsElRef:(Ae=oe.value)===null||Ae===void 0?void 0:Ae.itemsElRef}const Ot={startYearVlRef:ie,endYearVlRef:oe,startMonthScrollbarRef:J,endMonthScrollbarRef:j,startYearScrollbarRef:q,endYearScrollbarRef:ae};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:K,endDatesElRef:ee,handleDateClick:nt,handleColItemClick:Oe,handleDateMouseEnter:ft,handleConfirmClick:Le,startCalendarPrevYear:gt,startCalendarPrevMonth:De,startCalendarNextYear:dt,startCalendarNextMonth:Ke,endCalendarPrevYear:Se,endCalendarPrevMonth:ct,endCalendarNextMonth:Pe,endCalendarNextYear:Me,mergedIsDateDisabled:Qe,changeStartEndTime:Je,ranges:I,startCalendarMonth:me,startCalendarYear:Ne,endCalendarMonth:be,endCalendarYear:qe,weekdays:tt,startDateArray:ke,endDateArray:xe,startYearArray:lt,startMonthArray:Ie,startQuarterArray:et,endYearArray:ut,endMonthArray:at,endQuarterArray:pt,isSelecting:ne,handleRangeShortcutMouseenter:ht,handleRangeShortcutClick:Xe},W),Y),Ot),{startDateDisplayString:ve,endDateInput:ze,timePickerSize:W.timePickerSize,startTimeValue:Be,endTimeValue:ge,datePickerSlots:Q,shortcuts:ot,startCalendarDateTime:le,endCalendarDateTime:se,justifyColumnsScrollState:we,handleFocusDetectorFocus:W.handleFocusDetectorFocus,handleStartTimePickerChange:$t,handleEndTimePickerChange:Ze,handleStartDateInput:Ye,handleStartDateInputBlur:kt,handleEndDateInput:mt,handleEndDateInputBlur:bt,handleStartYearVlScroll:Ge,handleEndYearVlScroll:yt,virtualListContainer:St,virtualListContent:Mt,onUpdateStartCalendarValue:Ue,onUpdateEndCalendarValue:ye})}const DatetimerangePanel=defineComponent({name:"DateTimeRangePanel",props:useDualCalendarProps,setup(t){return useDualCalendar(t,"datetimerange")},render(){var t,o,n;const{mergedClsPrefix:r,mergedTheme:s,shortcuts:l,timePickerProps:d,onRender:m,$slots:_}=this;return m==null||m(),h("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--datetimerange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},h("div",{class:`${r}-date-panel-header`},h(NInput,{value:this.startDateDisplayString,theme:s.peers.Input,themeOverrides:s.peerOverrides.Input,size:this.timePickerSize,stateful:!1,class:`${r}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),h(NTimePicker,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(d)?d[0]:d,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:s.peers.TimePicker,themeOverrides:s.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),h(NInput,{value:this.endDateInput,theme:s.peers.Input,themeOverrides:s.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${r}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),h(NTimePicker,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(d)?d[1]:d,{disabled:this.isSelecting,showIcon:!1,theme:s.peers.TimePicker,themeOverrides:s.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),h("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},h("div",{class:`${r}-date-panel-month`},h("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},resolveSlot(_["prev-year"],()=>[h(FastBackwardIcon,null)])),h("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},resolveSlot(_["prev-month"],()=>[h(BackwardIcon,null)])),h(PanelHeader,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),h("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},resolveSlot(_["next-month"],()=>[h(ForwardIcon,null)])),h("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},resolveSlot(_["next-year"],()=>[h(FastForwardIcon,null)]))),h("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(g=>h("div",{key:g,class:`${r}-date-panel-weekdays__day`},g))),h("div",{class:`${r}-date-panel__divider`}),h("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((g,v)=>{const y=this.mergedIsDateDisabled(g.ts);return h("div",{"data-n-date":!0,key:v,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!g.inCurrentMonth,[`${r}-date-panel-date--current`]:g.isCurrentDate,[`${r}-date-panel-date--selected`]:g.selected,[`${r}-date-panel-date--covered`]:g.inSpan,[`${r}-date-panel-date--start`]:g.startOfSpan,[`${r}-date-panel-date--end`]:g.endOfSpan,[`${r}-date-panel-date--disabled`]:y}],onClick:y?void 0:()=>{this.handleDateClick(g)},onMouseenter:y?void 0:()=>{this.handleDateMouseEnter(g)}},h("div",{class:`${r}-date-panel-date__trigger`}),g.dateObject.date,g.isCurrentDate?h("div",{class:`${r}-date-panel-date__sup`}):null)}))),h("div",{class:`${r}-date-panel__vertical-divider`}),h("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},h("div",{class:`${r}-date-panel-month`},h("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},resolveSlot(_["prev-year"],()=>[h(FastBackwardIcon,null)])),h("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},resolveSlot(_["prev-month"],()=>[h(BackwardIcon,null)])),h(PanelHeader,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),h("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},resolveSlot(_["next-month"],()=>[h(ForwardIcon,null)])),h("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},resolveSlot(_["next-year"],()=>[h(FastForwardIcon,null)]))),h("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(g=>h("div",{key:g,class:`${r}-date-panel-weekdays__day`},g))),h("div",{class:`${r}-date-panel__divider`}),h("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((g,v)=>{const y=this.mergedIsDateDisabled(g.ts);return h("div",{"data-n-date":!0,key:v,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!g.inCurrentMonth,[`${r}-date-panel-date--current`]:g.isCurrentDate,[`${r}-date-panel-date--selected`]:g.selected,[`${r}-date-panel-date--covered`]:g.inSpan,[`${r}-date-panel-date--start`]:g.startOfSpan,[`${r}-date-panel-date--end`]:g.endOfSpan,[`${r}-date-panel-date--disabled`]:y}],onClick:y?void 0:()=>{this.handleDateClick(g)},onMouseenter:y?void 0:()=>{this.handleDateMouseEnter(g)}},h("div",{class:`${r}-date-panel-date__trigger`}),g.dateObject.date,g.isCurrentDate?h("div",{class:`${r}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?h("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,!((t=this.actions)===null||t===void 0)&&t.length||l?h("div",{class:`${r}-date-panel-actions`},h("div",{class:`${r}-date-panel-actions__prefix`},l&&Object.keys(l).map(g=>{const v=l[g];return Array.isArray(v)||typeof v=="function"?h(XButton,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(v)},onClick:()=>{this.handleRangeShortcutClick(v)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>g}):null})),h("div",{class:`${r}-date-panel-actions__suffix`},!((o=this.actions)===null||o===void 0)&&o.includes("clear")?h(NButton,{theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?h(NButton,{theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,h(FocusDetector,{onFocus:this.handleFocusDetectorFocus}))}}),DatePanel=defineComponent({name:"DatePanel",props:useCalendarProps,setup(t){return useCalendar(t,"date")},render(){var t,o,n;const{mergedClsPrefix:r,mergedTheme:s,shortcuts:l,onRender:d,$slots:m}=this;return d==null||d(),h("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--date`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},h("div",{class:`${r}-date-panel-calendar`},h("div",{class:`${r}-date-panel-month`},h("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.prevYear},resolveSlot(m["prev-year"],()=>[h(FastBackwardIcon,null)])),h("div",{class:`${r}-date-panel-month__prev`,onClick:this.prevMonth},resolveSlot(m["prev-month"],()=>[h(BackwardIcon,null)])),h(PanelHeader,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:r,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),h("div",{class:`${r}-date-panel-month__next`,onClick:this.nextMonth},resolveSlot(m["next-month"],()=>[h(ForwardIcon,null)])),h("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.nextYear},resolveSlot(m["next-year"],()=>[h(FastForwardIcon,null)]))),h("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(_=>h("div",{key:_,class:`${r}-date-panel-weekdays__day`},_))),h("div",{class:`${r}-date-panel-dates`},this.dateArray.map((_,g)=>h("div",{"data-n-date":!0,key:g,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--current`]:_.isCurrentDate,[`${r}-date-panel-date--selected`]:_.selected,[`${r}-date-panel-date--excluded`]:!_.inCurrentMonth,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(_.ts)}],onClick:()=>{this.handleDateClick(_)}},h("div",{class:`${r}-date-panel-date__trigger`}),_.dateObject.date,_.isCurrentDate?h("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?h("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,!((t=this.actions)===null||t===void 0)&&t.length||l?h("div",{class:`${r}-date-panel-actions`},h("div",{class:`${r}-date-panel-actions__prefix`},l&&Object.keys(l).map(_=>{const g=l[_];return Array.isArray(g)?null:h(XButton,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(g)},onClick:()=>{this.handleSingleShortcutClick(g)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>_})})),h("div",{class:`${r}-date-panel-actions__suffix`},!((o=this.actions)===null||o===void 0)&&o.includes("clear")?h(NButton,{theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?h(NButton,{theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null)):null,h(FocusDetector,{onFocus:this.handleFocusDetectorFocus}))}}),DaterangePanel=defineComponent({name:"DateRangePanel",props:useDualCalendarProps,setup(t){return useDualCalendar(t,"daterange")},render(){var t,o,n;const{mergedClsPrefix:r,mergedTheme:s,shortcuts:l,onRender:d,$slots:m}=this;return d==null||d(),h("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},h("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},h("div",{class:`${r}-date-panel-month`},h("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},resolveSlot(m["prev-year"],()=>[h(FastBackwardIcon,null)])),h("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},resolveSlot(m["prev-month"],()=>[h(BackwardIcon,null)])),h(PanelHeader,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),h("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},resolveSlot(m["next-month"],()=>[h(ForwardIcon,null)])),h("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},resolveSlot(m["next-year"],()=>[h(FastForwardIcon,null)]))),h("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(_=>h("div",{key:_,class:`${r}-date-panel-weekdays__day`},_))),h("div",{class:`${r}-date-panel__divider`}),h("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((_,g)=>h("div",{"data-n-date":!0,key:g,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!_.inCurrentMonth,[`${r}-date-panel-date--current`]:_.isCurrentDate,[`${r}-date-panel-date--selected`]:_.selected,[`${r}-date-panel-date--covered`]:_.inSpan,[`${r}-date-panel-date--start`]:_.startOfSpan,[`${r}-date-panel-date--end`]:_.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(_.ts)}],onClick:()=>{this.handleDateClick(_)},onMouseenter:()=>{this.handleDateMouseEnter(_)}},h("div",{class:`${r}-date-panel-date__trigger`}),_.dateObject.date,_.isCurrentDate?h("div",{class:`${r}-date-panel-date__sup`}):null)))),h("div",{class:`${r}-date-panel__vertical-divider`}),h("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},h("div",{class:`${r}-date-panel-month`},h("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},resolveSlot(m["prev-year"],()=>[h(FastBackwardIcon,null)])),h("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},resolveSlot(m["prev-month"],()=>[h(BackwardIcon,null)])),h(PanelHeader,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),h("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},resolveSlot(m["next-month"],()=>[h(ForwardIcon,null)])),h("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},resolveSlot(m["next-year"],()=>[h(FastForwardIcon,null)]))),h("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(_=>h("div",{key:_,class:`${r}-date-panel-weekdays__day`},_))),h("div",{class:`${r}-date-panel__divider`}),h("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((_,g)=>h("div",{"data-n-date":!0,key:g,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!_.inCurrentMonth,[`${r}-date-panel-date--current`]:_.isCurrentDate,[`${r}-date-panel-date--selected`]:_.selected,[`${r}-date-panel-date--covered`]:_.inSpan,[`${r}-date-panel-date--start`]:_.startOfSpan,[`${r}-date-panel-date--end`]:_.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(_.ts)}],onClick:()=>{this.handleDateClick(_)},onMouseenter:()=>{this.handleDateMouseEnter(_)}},h("div",{class:`${r}-date-panel-date__trigger`}),_.dateObject.date,_.isCurrentDate?h("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?h("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,!((t=this.actions)===null||t===void 0)&&t.length||l?h("div",{class:`${r}-date-panel-actions`},h("div",{class:`${r}-date-panel-actions__prefix`},l&&Object.keys(l).map(_=>{const g=l[_];return Array.isArray(g)||typeof g=="function"?h(XButton,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(g)},onClick:()=>{this.handleRangeShortcutClick(g)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>_}):null})),h("div",{class:`${r}-date-panel-actions__suffix`},!((o=this.actions)===null||o===void 0)&&o.includes("clear")?h(NButton,{theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?h(NButton,{theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,h(FocusDetector,{onFocus:this.handleFocusDetectorFocus}))}}),MonthRangePanel=defineComponent({name:"MonthRangePanel",props:Object.assign(Object.assign({},useDualCalendarProps),{type:{type:String,required:!0}}),setup(t){const o=useDualCalendar(t,t.type),n=(r,s,l,d)=>{const{handleColItemClick:m}=o,_=!1;return h("div",{"data-n-date":!0,key:s,class:[`${l}-date-panel-month-calendar__picker-col-item`,{[`${l}-date-panel-month-calendar__picker-col-item--current`]:r.isCurrent,[`${l}-date-panel-month-calendar__picker-col-item--selected`]:r.selected,[`${l}-date-panel-month-calendar__picker-col-item--disabled`]:_}],onClick:()=>{m(r,d)}},r.type==="month"?r.dateObject.month+1:r.type==="quarter"?`Q${r.dateObject.quarter}`:r.dateObject.year)};return onMounted(()=>{o.justifyColumnsScrollState()}),Object.assign(Object.assign({},o),{renderItem:n})},render(){var t,o,n;const{mergedClsPrefix:r,mergedTheme:s,shortcuts:l,type:d,renderItem:m,onRender:_}=this;return _==null||_(),h("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},h("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},h("div",{class:`${r}-date-panel-month-calendar`},h(NScrollbar$1,{ref:"startYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:s.peers.Scrollbar,themeOverrides:s.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>h(VVirtualList,{ref:"startYearVlRef",items:this.startYearArray,itemSize:MONTH_ITEM_HEIGHT,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:g,index:v})=>m(g,v,r,"start")})}),d==="monthrange"||d==="quarterrange"?h("div",{class:`${r}-date-panel-month-calendar__picker-col`},h(NScrollbar$1,{ref:"startMonthScrollbarRef",theme:s.peers.Scrollbar,themeOverrides:s.peerOverrides.Scrollbar},{default:()=>[(d==="monthrange"?this.startMonthArray:this.startQuarterArray).map((g,v)=>m(g,v,r,"start")),d==="monthrange"&&h("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),h("div",{class:`${r}-date-panel__vertical-divider`}),h("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},h("div",{class:`${r}-date-panel-month-calendar`},h(NScrollbar$1,{ref:"endYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:s.peers.Scrollbar,themeOverrides:s.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>h(VVirtualList,{ref:"endYearVlRef",items:this.endYearArray,itemSize:MONTH_ITEM_HEIGHT,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:g,index:v})=>m(g,v,r,"end")})}),d==="monthrange"||d==="quarterrange"?h("div",{class:`${r}-date-panel-month-calendar__picker-col`},h(NScrollbar$1,{ref:"endMonthScrollbarRef",theme:s.peers.Scrollbar,themeOverrides:s.peerOverrides.Scrollbar},{default:()=>[(d==="monthrange"?this.endMonthArray:this.endQuarterArray).map((g,v)=>m(g,v,r,"end")),d==="monthrange"&&h("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),this.datePickerSlots.footer?h("div",{class:`${r}-date-panel-footer`},renderSlot(this.datePickerSlots,"footer")):null,!((t=this.actions)===null||t===void 0)&&t.length||l?h("div",{class:`${r}-date-panel-actions`},h("div",{class:`${r}-date-panel-actions__prefix`},l&&Object.keys(l).map(g=>{const v=l[g];return Array.isArray(v)||typeof v=="function"?h(XButton,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(v)},onClick:()=>{this.handleRangeShortcutClick(v)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>g}):null})),h("div",{class:`${r}-date-panel-actions__suffix`},!((o=this.actions)===null||o===void 0)&&o.includes("clear")?h(XButton,{theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?h(XButton,{theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,h(FocusDetector,{onFocus:this.handleFocusDetectorFocus}))}}),style$c=c$1([cB("date-picker",`
+ position: relative;
+ z-index: auto;
+ `,[cB("date-picker-icon",`
+ color: var(--n-icon-color-override);
+ transition: color .3s var(--n-bezier);
+ `),cB("icon",`
+ color: var(--n-icon-color-override);
+ transition: color .3s var(--n-bezier);
+ `),cM("disabled",[cB("date-picker-icon",`
+ color: var(--n-icon-color-disabled-override);
+ `),cB("icon",`
+ color: var(--n-icon-color-disabled-override);
+ `)])]),cB("date-panel",`
+ width: fit-content;
+ outline: none;
+ margin: 4px 0;
+ display: grid;
+ grid-template-columns: 0fr;
+ border-radius: var(--n-panel-border-radius);
+ background-color: var(--n-panel-color);
+ color: var(--n-panel-text-color);
+ user-select: none;
+ `,[fadeInScaleUpTransition(),cM("shadow",`
+ box-shadow: var(--n-panel-box-shadow);
+ `),cB("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[cM("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),cB("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[cE("picker-col",`
+ min-width: var(--n-scroll-item-width);
+ height: calc(var(--n-scroll-item-height) * 6);
+ user-select: none;
+ -webkit-user-select: none;
+ `,[c$1("&:first-child",`
+ min-width: calc(var(--n-scroll-item-width) + 4px);
+ `,[cE("picker-col-item",[c$1("&::before","left: 4px;")])]),cE("padding",`
+ height: calc(var(--n-scroll-item-height) * 5)
+ `)]),cE("picker-col-item",`
+ z-index: 0;
+ cursor: pointer;
+ height: var(--n-scroll-item-height);
+ box-sizing: border-box;
+ padding-top: 4px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ position: relative;
+ transition:
+ color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier);
+ background: #0000;
+ color: var(--n-item-text-color);
+ `,[c$1("&::before",`
+ z-index: -1;
+ content: "";
+ position: absolute;
+ left: 0;
+ right: 4px;
+ top: 4px;
+ bottom: 0;
+ border-radius: var(--n-scroll-item-border-radius);
+ transition:
+ background-color .3s var(--n-bezier);
+ `),cNotM("disabled",[c$1("&:hover::before",`
+ background-color: var(--n-item-color-hover);
+ `),cM("selected",`
+ color: var(--n-item-color-active);
+ `,[c$1("&::before","background-color: var(--n-item-color-hover);")])]),cM("disabled",`
+ color: var(--n-item-text-color-disabled);
+ cursor: not-allowed;
+ `,[cM("selected",[c$1("&::before",`
+ background-color: var(--n-item-color-disabled);
+ `)])])])]),cM("date",{gridTemplateAreas:`
+ "left-calendar"
+ "footer"
+ "action"
+ `}),cM("daterange",{gridTemplateAreas:`
+ "left-calendar divider right-calendar"
+ "footer footer footer"
+ "action action action"
+ `}),cM("datetime",{gridTemplateAreas:`
+ "header"
+ "left-calendar"
+ "footer"
+ "action"
+ `}),cM("datetimerange",{gridTemplateAreas:`
+ "header header header"
+ "left-calendar divider right-calendar"
+ "footer footer footer"
+ "action action action"
+ `}),cM("month",{gridTemplateAreas:`
+ "left-calendar"
+ "footer"
+ "action"
+ `}),cB("date-panel-footer",{gridArea:"footer"}),cB("date-panel-actions",{gridArea:"action"}),cB("date-panel-header",{gridArea:"header"}),cB("date-panel-header",`
+ box-sizing: border-box;
+ width: 100%;
+ align-items: center;
+ padding: var(--n-panel-header-padding);
+ display: flex;
+ justify-content: space-between;
+ border-bottom: 1px solid var(--n-panel-header-divider-color);
+ `,[c$1(">",[c$1("*:not(:last-child)",{marginRight:"10px"}),c$1("*",{flex:1,width:0}),cB("time-picker",{zIndex:1})])]),cB("date-panel-month",`
+ box-sizing: border-box;
+ display: grid;
+ grid-template-columns: var(--n-calendar-title-grid-template-columns);
+ align-items: center;
+ justify-items: center;
+ padding: var(--n-calendar-title-padding);
+ height: var(--n-calendar-title-height);
+ `,[cE("prev, next, fast-prev, fast-next",`
+ line-height: 0;
+ cursor: pointer;
+ width: var(--n-arrow-size);
+ height: var(--n-arrow-size);
+ color: var(--n-arrow-color);
+ `),cE("month-year",`
+ user-select: none;
+ -webkit-user-select: none;
+ flex-grow: 1;
+ position: relative;
+ `,[cE("text",`
+ font-size: var(--n-calendar-title-font-size);
+ line-height: var(--n-calendar-title-font-size);
+ font-weight: var(--n-calendar-title-font-weight);
+ padding: 6px 8px;
+ text-align: center;
+ color: var(--n-calendar-title-text-color);
+ cursor: pointer;
+ transition: background-color .3s var(--n-bezier);
+ border-radius: var(--n-panel-border-radius);
+ `,[cM("active",`
+ background-color: var(--n-calendar-title-color-hover);
+ `),c$1("&:hover",`
+ background-color: var(--n-calendar-title-color-hover);
+ `)])])]),cB("date-panel-weekdays",`
+ display: grid;
+ margin: auto;
+ grid-template-columns: repeat(7, var(--n-item-cell-width));
+ grid-template-rows: repeat(1, var(--n-item-cell-height));
+ align-items: center;
+ justify-items: center;
+ margin-bottom: 4px;
+ border-bottom: 1px solid var(--n-calendar-days-divider-color);
+ `,[cE("day",`
+ user-select: none;
+ -webkit-user-select: none;
+ line-height: 15px;
+ width: var(--n-item-size);
+ text-align: center;
+ font-size: var(--n-calendar-days-font-size);
+ color: var(--n-item-text-color);
+ `)]),cB("date-panel-dates",`
+ margin: auto;
+ display: grid;
+ grid-template-columns: repeat(7, var(--n-item-cell-width));
+ grid-template-rows: repeat(6, var(--n-item-cell-height));
+ align-items: center;
+ justify-items: center;
+ flex-wrap: wrap;
+ `,[cB("date-panel-date",`
+ user-select: none;
+ -webkit-user-select: none;
+ position: relative;
+ width: var(--n-item-size);
+ height: var(--n-item-size);
+ line-height: var(--n-item-size);
+ text-align: center;
+ font-size: var(--n-item-font-size);
+ border-radius: var(--n-item-border-radius);
+ z-index: 0;
+ cursor: pointer;
+ transition:
+ background-color .2s var(--n-bezier),
+ color .2s var(--n-bezier);
+ `,[cE("trigger",`
+ position: absolute;
+ left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2);
+ top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2);
+ width: var(--n-item-cell-width);
+ height: var(--n-item-cell-height);
+ `),cNotM("disabled",[cNotM("selected",[c$1("&:hover",{backgroundColor:"var(--n-item-color-hover)"})])]),cM("current",[cE("sup",`
+ position: absolute;
+ top: 2px;
+ right: 2px;
+ content: "";
+ height: 4px;
+ width: 4px;
+ border-radius: 2px;
+ background-color: var(--n-item-color-active);
+ transition:
+ background-color .2s var(--n-bezier);
+ `)]),c$1("&::after",`
+ content: "";
+ z-index: -1;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ border-radius: inherit;
+ transition: background-color .3s var(--n-bezier);
+ `),cM("covered, start, end",[cNotM("excluded",[c$1("&::before",`
+ content: "";
+ z-index: -2;
+ position: absolute;
+ left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
+ right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
+ top: 0;
+ bottom: 0;
+ background-color: var(--n-item-color-included);
+ `),c$1("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),c$1("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),cM("selected",{color:"var(--n-item-text-color-active)"},[c$1("&::after",{backgroundColor:"var(--n-item-color-active)"}),cM("start",[c$1("&::before",{left:"50%"})]),cM("end",[c$1("&::before",{right:"50%"})]),cE("sup",{backgroundColor:"var(--n-panel-color)"})]),cM("excluded",{color:"var(--n-item-text-color-disabled)"},[cM("selected",[c$1("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),cM("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[cM("covered",[c$1("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),cM("selected",[c$1("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),c$1("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])])])]),cE("vertical-divider",`
+ grid-area: divider;
+ height: 100%;
+ width: 1px;
+ background-color: var(--n-calendar-divider-color);
+ `),cB("date-panel-footer",{borderTop:"1px solid var(--n-panel-action-divider-color)",padding:"var(--n-panel-extra-footer-padding)"}),cB("date-panel-actions",`
+ flex: 1;
+ padding: var(--n-panel-action-padding);
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ border-top: 1px solid var(--n-panel-action-divider-color);
+ `,[cE("prefix, suffix",`
+ display: flex;
+ margin-bottom: -8px;
+ `),cE("suffix",`
+ align-self: flex-end;
+ `),cE("prefix",`
+ flex-wrap: wrap;
+ `),cB("button",`
+ margin-bottom: 8px;
+ `,[c$1("&:not(:last-child)",`
+ margin-right: 8px;
+ `)])])]),c$1("[data-n-date].transition-disabled",{transition:"none !important"},[c$1("&::before, &::after",{transition:"none !important"})])]),datePickerProps=Object.assign(Object.assign({},useTheme.props),{to:useAdjustedTo.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timeFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onChange:[Function,Array]}),NDatePicker=defineComponent({name:"DatePicker",props:datePickerProps,setup(t,{slots:o}){var n;const{localeRef:r,dateLocaleRef:s}=useLocale("DatePicker"),l=useFormItem(t),{mergedSizeRef:d,mergedDisabledRef:m,mergedStatusRef:_}=l,{mergedComponentPropsRef:g,mergedClsPrefixRef:v,mergedBorderedRef:y,namespaceRef:w,inlineThemeDisabled:B}=useConfig(t),k=ref(null),N=ref(null),S=ref(null),x=ref(!1),C=toRef(t,"show"),I=useMergedState(C,x),D=computed(()=>({locale:s.value.locale})),R=computed(()=>{const{format:Le}=t;if(Le)return Le;switch(t.type){case"date":case"daterange":return r.value.dateFormat;case"datetime":case"datetimerange":return r.value.dateTimeFormat;case"year":case"yearrange":return r.value.yearTypeFormat;case"month":case"monthrange":return r.value.monthTypeFormat;case"quarter":case"quarterrange":return r.value.quarterFormat}}),O=computed(()=>{var Le;return(Le=t.valueFormat)!==null&&Le!==void 0?Le:R.value});function Q(Le){if(Le===null)return null;const{value:it}=O,{value:_t}=D;return Array.isArray(Le)?[strictParse(Le[0],it,new Date,_t).getTime(),strictParse(Le[1],it,new Date,_t).getTime()]:strictParse(Le,it,new Date,_t).getTime()}const{defaultFormattedValue:Y,defaultValue:W}=t,K=ref((n=Y!==void 0?Q(Y):W)!==null&&n!==void 0?n:null),ee=computed(()=>{const{formattedValue:Le}=t;return Le!==void 0?Q(Le):t.value}),q=useMergedState(ee,K),ae=ref(null);watchEffect(()=>{ae.value=q.value});const ie=ref(""),oe=ref(""),J=ref(""),j=useTheme("DatePicker","-date-picker",style$c,datePickerLight$1,t,v),re=computed(()=>{var Le,it;return((it=(Le=g==null?void 0:g.value)===null||Le===void 0?void 0:Le.DatePicker)===null||it===void 0?void 0:it.timePickerSize)||"small"}),ce=computed(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(t.type)),le=computed(()=>{const{placeholder:Le}=t;if(Le===void 0){const{type:it}=t;switch(it){case"date":return r.value.datePlaceholder;case"datetime":return r.value.datetimePlaceholder;case"month":return r.value.monthPlaceholder;case"year":return r.value.yearPlaceholder;case"quarter":return r.value.quarterPlaceholder;default:return""}}else return Le}),se=computed(()=>t.startPlaceholder===void 0?t.type==="daterange"?r.value.startDatePlaceholder:t.type==="datetimerange"?r.value.startDatetimePlaceholder:t.type==="monthrange"?r.value.startMonthPlaceholder:"":t.startPlaceholder),te=computed(()=>t.endPlaceholder===void 0?t.type==="daterange"?r.value.endDatePlaceholder:t.type==="datetimerange"?r.value.endDatetimePlaceholder:t.type==="monthrange"?r.value.endMonthPlaceholder:"":t.endPlaceholder),ne=computed(()=>{const{actions:Le,type:it,clearable:_t}=t;if(Le===null)return[];if(Le!==void 0)return Le;const Ct=_t?["clear"]:[];switch(it){case"date":return Ct.push("now"),Ct;case"datetime":return Ct.push("now","confirm"),Ct;case"daterange":return Ct.push("confirm"),Ct;case"datetimerange":return Ct.push("confirm"),Ct;case"month":return Ct.push("now","confirm"),Ct;case"year":return Ct.push("now"),Ct;case"quarter":return Ct.push("now","confirm"),Ct;case"monthrange":case"yearrange":case"quarterrange":return Ct.push("confirm"),Ct;default:{warn$2("date-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}}});function de(Le){if(Le===null)return null;if(Array.isArray(Le)){const{value:it}=O,{value:_t}=D;return[format$3(Le[0],it,_t),format$3(Le[1],it,D.value)]}else return format$3(Le,O.value,D.value)}function fe(Le){ae.value=Le}function ve(Le,it){const{"onUpdate:formattedValue":_t,onUpdateFormattedValue:Ct}=t;_t&&call(_t,Le,it),Ct&&call(Ct,Le,it)}function ze(Le,it){const{"onUpdate:value":_t,onUpdateValue:Ct,onChange:Je}=t,{nTriggerFormChange:Ee,nTriggerFormInput:Ye}=l,mt=de(Le);it.doConfirm&&ke(Le,mt),Ct&&call(Ct,Le,mt),_t&&call(_t,Le,mt),Je&&call(Je,Le,mt),K.value=Le,ve(mt,Le),Ee(),Ye()}function Re(){const{onClear:Le}=t;Le==null||Le()}function ke(Le,it){const{onConfirm:_t}=t;_t&&_t(Le,it)}function xe(Le){const{onFocus:it}=t,{nTriggerFormFocus:_t}=l;it&&call(it,Le),_t()}function tt(Le){const{onBlur:it}=t,{nTriggerFormBlur:_t}=l;it&&call(it,Le),_t()}function me(Le){const{"onUpdate:show":it,onUpdateShow:_t}=t;it&&call(it,Le),_t&&call(_t,Le),x.value=Le}function be(Le){Le.key==="Escape"&&I.value&&(markEventEffectPerformed(Le),Pe({returnFocus:!0}))}function Ne(Le){Le.key==="Escape"&&I.value&&markEventEffectPerformed(Le)}function qe(){var Le;me(!1),(Le=S.value)===null||Le===void 0||Le.deactivate(),Re()}function Be(){var Le;(Le=S.value)===null||Le===void 0||Le.deactivate(),Re()}function ge(){Pe({returnFocus:!0})}function ot(Le){var it;I.value&&!(!((it=N.value)===null||it===void 0)&&it.contains(getPreciseEventTarget(Le)))&&Pe({returnFocus:!1})}function lt(Le){Pe({returnFocus:!0,disableUpdateOnClose:Le})}function ut(Le,it){it?ze(Le,{doConfirm:!1}):fe(Le)}function et(){const Le=ae.value;ze(Array.isArray(Le)?[Le[0],Le[1]]:Le,{doConfirm:!0})}function pt(){const{value:Le}=ae;ce.value?(Array.isArray(Le)||Le===null)&&at(Le):Array.isArray(Le)||Ie(Le)}function Ie(Le){Le===null?ie.value="":ie.value=format$3(Le,R.value,D.value)}function at(Le){if(Le===null)oe.value="",J.value="";else{const it=D.value;oe.value=format$3(Le[0],R.value,it),J.value=format$3(Le[1],R.value,it)}}function He(){I.value||Se()}function Fe(Le){var it;!((it=k.value)===null||it===void 0)&&it.$el.contains(Le.relatedTarget)||(tt(Le),pt(),Pe({returnFocus:!1}))}function dt(){m.value||(pt(),Pe({returnFocus:!1}))}function gt(Le){if(Le===""){ze(null,{doConfirm:!1}),ae.value=null,ie.value="";return}const it=strictParse(Le,R.value,new Date,D.value);isValid$1(it)?(ze(getTime(it),{doConfirm:!1}),pt()):ie.value=Le}function Ke(Le){if(Le[0]===""&&Le[1]===""){ze(null,{doConfirm:!1}),ae.value=null,oe.value="",J.value="";return}const[it,_t]=Le,Ct=strictParse(it,R.value,new Date,D.value),Je=strictParse(_t,R.value,new Date,D.value);isValid$1(Ct)&&isValid$1(Je)?(ze([getTime(Ct),getTime(Je)],{doConfirm:!1}),pt()):[oe.value,J.value]=Le}function De(Le){m.value||happensIn(Le,"clear")||I.value||Se()}function Me(Le){m.value||xe(Le)}function Se(){m.value||I.value||me(!0)}function Pe({returnFocus:Le,disableUpdateOnClose:it}){var _t;I.value&&(me(!1),t.type!=="date"&&t.updateValueOnClose&&!it&&et(),Le&&((_t=S.value)===null||_t===void 0||_t.focus()))}watch(ae,()=>{pt()}),pt(),watch(I,Le=>{Le||(ae.value=q.value)});const ct=uniCalendarValidation(t,ae),Ue=dualCalendarValidation(t,ae);provide(datePickerInjectionKey,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:v,mergedThemeRef:j,timePickerSizeRef:re,localeRef:r,dateLocaleRef:s,firstDayOfWeekRef:toRef(t,"firstDayOfWeek"),isDateDisabledRef:toRef(t,"isDateDisabled"),rangesRef:toRef(t,"ranges"),timePickerPropsRef:toRef(t,"timePickerProps"),closeOnSelectRef:toRef(t,"closeOnSelect"),updateValueOnCloseRef:toRef(t,"updateValueOnClose")},ct),Ue),{datePickerSlots:o}));const ye={focus:()=>{var Le;(Le=S.value)===null||Le===void 0||Le.focus()},blur:()=>{var Le;(Le=S.value)===null||Le===void 0||Le.blur()}},Qe=computed(()=>{const{common:{cubicBezierEaseInOut:Le},self:{iconColor:it,iconColorDisabled:_t}}=j.value;return{"--n-bezier":Le,"--n-icon-color-override":it,"--n-icon-color-disabled-override":_t}}),Ce=B?useThemeClass("date-picker-trigger",void 0,Qe,t):void 0,nt=computed(()=>{const{type:Le}=t,{common:{cubicBezierEaseInOut:it},self:{calendarTitleFontSize:_t,calendarDaysFontSize:Ct,itemFontSize:Je,itemTextColor:Ee,itemColorDisabled:Ye,itemColorIncluded:mt,itemColorHover:kt,itemColorActive:bt,itemBorderRadius:It,itemTextColorDisabled:$t,itemTextColorActive:Ze,panelColor:ht,panelTextColor:Xe,arrowColor:we,calendarTitleTextColor:Oe,panelActionDividerColor:Ge,panelHeaderDividerColor:yt,calendarDaysDividerColor:St,panelBoxShadow:Mt,panelBorderRadius:Ot,calendarTitleFontWeight:$e,panelExtraFooterPadding:rt,panelActionPadding:Ae,itemSize:ue,itemCellWidth:Te,itemCellHeight:st,scrollItemWidth:Bt,scrollItemHeight:Tt,calendarTitlePadding:Dt,calendarTitleHeight:je,calendarDaysHeight:_e,calendarDaysTextColor:We,arrowSize:vt,panelHeaderPadding:Et,calendarDividerColor:Vt,calendarTitleGridTempateColumns:Rt,iconColor:xt,iconColorDisabled:wt,scrollItemBorderRadius:Ft,calendarTitleColorHover:Ut,[createKey("calendarLeftPadding",Le)]:Gt,[createKey("calendarRightPadding",Le)]:jt}}=j.value;return{"--n-bezier":it,"--n-panel-border-radius":Ot,"--n-panel-color":ht,"--n-panel-box-shadow":Mt,"--n-panel-text-color":Xe,"--n-panel-header-padding":Et,"--n-panel-header-divider-color":yt,"--n-calendar-left-padding":Gt,"--n-calendar-right-padding":jt,"--n-calendar-title-color-hover":Ut,"--n-calendar-title-height":je,"--n-calendar-title-padding":Dt,"--n-calendar-title-font-size":_t,"--n-calendar-title-font-weight":$e,"--n-calendar-title-text-color":Oe,"--n-calendar-title-grid-template-columns":Rt,"--n-calendar-days-height":_e,"--n-calendar-days-divider-color":St,"--n-calendar-days-font-size":Ct,"--n-calendar-days-text-color":We,"--n-calendar-divider-color":Vt,"--n-panel-action-padding":Ae,"--n-panel-extra-footer-padding":rt,"--n-panel-action-divider-color":Ge,"--n-item-font-size":Je,"--n-item-border-radius":It,"--n-item-size":ue,"--n-item-cell-width":Te,"--n-item-cell-height":st,"--n-item-text-color":Ee,"--n-item-color-included":mt,"--n-item-color-disabled":Ye,"--n-item-color-hover":kt,"--n-item-color-active":bt,"--n-item-text-color-disabled":$t,"--n-item-text-color-active":Ze,"--n-scroll-item-width":Bt,"--n-scroll-item-height":Tt,"--n-scroll-item-border-radius":Ft,"--n-arrow-size":vt,"--n-arrow-color":we,"--n-icon-color":xt,"--n-icon-color-disabled":wt}}),ft=B?useThemeClass("date-picker",computed(()=>t.type),nt,t):void 0;return Object.assign(Object.assign({},ye),{mergedStatus:_,mergedClsPrefix:v,mergedBordered:y,namespace:w,uncontrolledValue:K,pendingValue:ae,panelInstRef:k,triggerElRef:N,inputInstRef:S,isMounted:isMounted(),displayTime:ie,displayStartTime:oe,displayEndTime:J,mergedShow:I,adjustedTo:useAdjustedTo(t),isRange:ce,localizedStartPlaceholder:se,localizedEndPlaceholder:te,mergedSize:d,mergedDisabled:m,localizedPlacehoder:le,isValueInvalid:ct.isValueInvalidRef,isStartValueInvalid:Ue.isStartValueInvalidRef,isEndValueInvalid:Ue.isEndValueInvalidRef,handleInputKeydown:Ne,handleClickOutside:ot,handleKeydown:be,handleClear:qe,handlePanelClear:Be,handleTriggerClick:De,handleInputActivate:He,handleInputDeactivate:dt,handleInputFocus:Me,handleInputBlur:Fe,handlePanelTabOut:ge,handlePanelClose:lt,handleRangeUpdateValue:Ke,handleSingleUpdateValue:gt,handlePanelUpdateValue:ut,handlePanelConfirm:et,mergedTheme:j,actions:ne,triggerCssVars:B?void 0:Qe,triggerThemeClass:Ce==null?void 0:Ce.themeClass,triggerOnRender:Ce==null?void 0:Ce.onRender,cssVars:B?void 0:nt,themeClass:ft==null?void 0:ft.themeClass,onRender:ft==null?void 0:ft.onRender})},render(){const{clearable:t,triggerOnRender:o,mergedClsPrefix:n,$slots:r}=this,s={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:"panelInstRef",value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,onRender:this.onRender},l=()=>{const{type:m}=this;return m==="datetime"?h(DatetimePanel,Object.assign({},s),r):m==="daterange"?h(DaterangePanel,Object.assign({},s,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):m==="datetimerange"?h(DatetimerangePanel,Object.assign({},s,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):m==="month"||m==="year"||m==="quarter"?h(MonthPanel,Object.assign({},s,{type:m,key:m})):m==="monthrange"||m==="yearrange"||m==="quarterrange"?h(MonthRangePanel,Object.assign({},s,{type:m})):h(DatePanel,Object.assign({},s),r)};if(this.panel)return l();o==null||o();const d={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:t,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return h("div",{ref:"triggerElRef",class:[`${n}-date-picker`,this.mergedDisabled&&`${n}-date-picker--disabled`,this.isRange&&`${n}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},h(VBinder,null,{default:()=>[h(VTarget,null,{default:()=>this.isRange?h(NInput,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},d),{separator:()=>this.separator===void 0?resolveSlot(r.separator,()=>[h(NBaseIcon,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>h(ToIcon,null)})]):this.separator,[t?"clear-icon-placeholder":"suffix"]:()=>resolveSlot(r["date-icon"],()=>[h(NBaseIcon,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>h(DateIcon,null)})])}):h(NInput,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},d),{[t?"clear-icon-placeholder":"suffix"]:()=>h(NBaseIcon,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>resolveSlot(r["date-icon"],()=>[h(DateIcon,null)])})})}),h(VFollower,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey,placement:this.placement},{default:()=>h(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?withDirectives(l(),[[clickoutside$1,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),commonVars$2={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"},self$b=t=>{const{textColor1:o,textColor2:n,modalColor:r,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:d,closeColorHover:m,closeColorPressed:_,infoColor:g,successColor:v,warningColor:y,errorColor:w,primaryColor:B,dividerColor:k,borderRadius:N,fontWeightStrong:S,lineHeight:x,fontSize:C}=t;return Object.assign(Object.assign({},commonVars$2),{fontSize:C,lineHeight:x,border:`1px solid ${k}`,titleTextColor:o,textColor:n,color:r,closeColorHover:m,closeColorPressed:_,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:d,closeBorderRadius:N,iconColor:B,iconColorInfo:g,iconColorSuccess:v,iconColorWarning:y,iconColorError:w,borderRadius:N,titleFontWeight:S})},dialogLight={name:"Dialog",common:commonLight,peers:{Button:buttonLight$1},self:self$b},dialogLight$1=dialogLight,dialogProps={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},dialogPropKeys=keysOf(dialogProps),style$b=c$1([cB("dialog",`
+ word-break: break-word;
+ line-height: var(--n-line-height);
+ position: relative;
+ background: var(--n-color);
+ color: var(--n-text-color);
+ box-sizing: border-box;
+ margin: auto;
+ border-radius: var(--n-border-radius);
+ padding: var(--n-padding);
+ transition:
+ border-color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ `,[cE("icon",{color:"var(--n-icon-color)"}),cM("bordered",{border:"var(--n-border)"}),cM("icon-top",[cE("close",{margin:"var(--n-close-margin)"}),cE("icon",{margin:"var(--n-icon-margin)"}),cE("content",{textAlign:"center"}),cE("title",{justifyContent:"center"}),cE("action",{justifyContent:"center"})]),cM("icon-left",[cE("icon",{margin:"var(--n-icon-margin)"}),cM("closable",[cE("title",`
+ padding-right: calc(var(--n-close-size) + 6px);
+ `)])]),cE("close",`
+ position: absolute;
+ right: 0;
+ top: 0;
+ margin: var(--n-close-margin);
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ z-index: 1;
+ `),cE("content",`
+ font-size: var(--n-font-size);
+ margin: var(--n-content-margin);
+ position: relative;
+ word-break: break-word;
+ `,[cM("last","margin-bottom: 0;")]),cE("action",`
+ display: flex;
+ justify-content: flex-end;
+ `,[c$1("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),cE("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),cE("title",`
+ transition: color .3s var(--n-bezier);
+ display: flex;
+ align-items: center;
+ font-size: var(--n-title-font-size);
+ font-weight: var(--n-title-font-weight);
+ color: var(--n-title-text-color);
+ `),cB("dialog-icon-container",{display:"flex",justifyContent:"center"})]),insideModal(cB("dialog",`
+ width: 446px;
+ max-width: calc(100vw - 32px);
+ `)),cB("dialog",[asModal(`
+ width: 446px;
+ max-width: calc(100vw - 32px);
+ `)])]),iconRenderMap$1={default:()=>h(InfoIcon,null),info:()=>h(InfoIcon,null),success:()=>h(SuccessIcon,null),warning:()=>h(WarningIcon,null),error:()=>h(ErrorIcon,null)},NDialog=defineComponent({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},useTheme.props),dialogProps),setup(t){const{mergedComponentPropsRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:r}=useConfig(t),s=computed(()=>{var y,w;const{iconPlacement:B}=t;return B||((w=(y=o==null?void 0:o.value)===null||y===void 0?void 0:y.Dialog)===null||w===void 0?void 0:w.iconPlacement)||"left"});function l(y){const{onPositiveClick:w}=t;w&&w(y)}function d(y){const{onNegativeClick:w}=t;w&&w(y)}function m(){const{onClose:y}=t;y&&y()}const _=useTheme("Dialog","-dialog",style$b,dialogLight$1,t,n),g=computed(()=>{const{type:y}=t,w=s.value,{common:{cubicBezierEaseInOut:B},self:{fontSize:k,lineHeight:N,border:S,titleTextColor:x,textColor:C,color:I,closeBorderRadius:D,closeColorHover:R,closeColorPressed:O,closeIconColor:Q,closeIconColorHover:Y,closeIconColorPressed:W,closeIconSize:K,borderRadius:ee,titleFontWeight:q,titleFontSize:ae,padding:ie,iconSize:oe,actionSpace:J,contentMargin:j,closeSize:re,[w==="top"?"iconMarginIconTop":"iconMargin"]:ce,[w==="top"?"closeMarginIconTop":"closeMargin"]:le,[createKey("iconColor",y)]:se}}=_.value;return{"--n-font-size":k,"--n-icon-color":se,"--n-bezier":B,"--n-close-margin":le,"--n-icon-margin":ce,"--n-icon-size":oe,"--n-close-size":re,"--n-close-icon-size":K,"--n-close-border-radius":D,"--n-close-color-hover":R,"--n-close-color-pressed":O,"--n-close-icon-color":Q,"--n-close-icon-color-hover":Y,"--n-close-icon-color-pressed":W,"--n-color":I,"--n-text-color":C,"--n-border-radius":ee,"--n-padding":ie,"--n-line-height":N,"--n-border":S,"--n-content-margin":j,"--n-title-font-size":ae,"--n-title-font-weight":q,"--n-title-text-color":x,"--n-action-space":J}}),v=r?useThemeClass("dialog",computed(()=>`${t.type[0]}${s.value[0]}`),g,t):void 0;return{mergedClsPrefix:n,mergedIconPlacement:s,mergedTheme:_,handlePositiveClick:l,handleNegativeClick:d,handleCloseClick:m,cssVars:r?void 0:g,themeClass:v==null?void 0:v.themeClass,onRender:v==null?void 0:v.onRender}},render(){var t;const{bordered:o,mergedIconPlacement:n,cssVars:r,closable:s,showIcon:l,title:d,content:m,action:_,negativeText:g,positiveText:v,positiveButtonProps:y,negativeButtonProps:w,handlePositiveClick:B,handleNegativeClick:k,mergedTheme:N,loading:S,type:x,mergedClsPrefix:C}=this;(t=this.onRender)===null||t===void 0||t.call(this);const I=l?h(NBaseIcon,{clsPrefix:C,class:`${C}-dialog__icon`},{default:()=>resolveWrappedSlot(this.$slots.icon,R=>R||(this.icon?render$6(this.icon):iconRenderMap$1[this.type]()))}):null,D=resolveWrappedSlot(this.$slots.action,R=>R||v||g||_?h("div",{class:`${C}-dialog__action`},R||(_?[render$6(_)]:[this.negativeText&&h(NButton,Object.assign({theme:N.peers.Button,themeOverrides:N.peerOverrides.Button,ghost:!0,size:"small",onClick:k},w),{default:()=>render$6(this.negativeText)}),this.positiveText&&h(NButton,Object.assign({theme:N.peers.Button,themeOverrides:N.peerOverrides.Button,size:"small",type:x==="default"?"primary":x,disabled:S,loading:S,onClick:B},y),{default:()=>render$6(this.positiveText)})])):null);return h("div",{class:[`${C}-dialog`,this.themeClass,this.closable&&`${C}-dialog--closable`,`${C}-dialog--icon-${n}`,o&&`${C}-dialog--bordered`],style:r,role:"dialog"},s?h(NBaseClose,{clsPrefix:C,class:`${C}-dialog__close`,onClick:this.handleCloseClick}):null,l&&n==="top"?h("div",{class:`${C}-dialog-icon-container`},I):null,h("div",{class:`${C}-dialog__title`},l&&n==="left"?I:null,resolveSlot(this.$slots.header,()=>[render$6(d)])),h("div",{class:[`${C}-dialog__content`,D?"":`${C}-dialog__content--last`]},resolveSlot(this.$slots.default,()=>[render$6(m)])),D)}}),dialogProviderInjectionKey="n-dialog-provider",dialogApiInjectionKey="n-dialog-api",dialogReactiveListInjectionKey="n-dialog-reactive-list",self$a=t=>{const{modalColor:o,textColor2:n,boxShadow3:r}=t;return{color:o,textColor:n,boxShadow:r}},modalLight={name:"Modal",common:commonLight,peers:{Scrollbar:scrollbarLight$1,Dialog:dialogLight$1,Card:cardLight$1},self:self$a},modalLight$1=modalLight,presetProps=Object.assign(Object.assign({},cardBaseProps),dialogProps),presetPropsKeys=keysOf(presetProps),NModalBodyWrapper=defineComponent({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},presetProps),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(t){const o=ref(null),n=ref(null),r=ref(t.show),s=ref(null),l=ref(null);watch(toRef(t,"show"),S=>{S&&(r.value=!0)}),useLockHtmlScroll(computed(()=>t.blockScroll&&r.value));const d=inject(modalInjectionKey);function m(){if(d.transformOriginRef.value==="center")return"";const{value:S}=s,{value:x}=l;if(S===null||x===null)return"";if(n.value){const C=n.value.containerScrollTop;return`${S}px ${x+C}px`}return""}function _(S){if(d.transformOriginRef.value==="center")return;const x=d.getMousePosition();if(!x||!n.value)return;const C=n.value.containerScrollTop,{offsetLeft:I,offsetTop:D}=S;if(x){const R=x.y,O=x.x;s.value=-(I-O),l.value=-(D-R-C)}S.style.transformOrigin=m()}function g(S){nextTick(()=>{_(S)})}function v(S){S.style.transformOrigin=m(),t.onBeforeLeave()}function y(){r.value=!1,s.value=null,l.value=null,t.onAfterLeave()}function w(){const{onClose:S}=t;S&&S()}function B(){t.onNegativeClick()}function k(){t.onPositiveClick()}const N=ref(null);return watch(N,S=>{S&&nextTick(()=>{const x=S.el;x&&o.value!==x&&(o.value=x)})}),provide(modalBodyInjectionKey,o),provide(drawerBodyInjectionKey,null),provide(popoverBodyInjectionKey,null),{mergedTheme:d.mergedThemeRef,appear:d.appearRef,isMounted:d.isMountedRef,mergedClsPrefix:d.mergedClsPrefixRef,bodyRef:o,scrollbarRef:n,displayed:r,childNodeRef:N,handlePositiveClick:k,handleNegativeClick:B,handleCloseClick:w,handleAfterLeave:y,handleBeforeLeave:v,handleEnter:g}},render(){const{$slots:t,$attrs:o,handleEnter:n,handleAfterLeave:r,handleBeforeLeave:s,preset:l,mergedClsPrefix:d}=this;let m=null;if(!l){if(m=getFirstSlotVNode(t),!m){warn$2("modal","default slot is empty");return}m=cloneVNode(m),m.props=mergeProps({class:`${d}-modal`},o,m.props||{})}return this.displayDirective==="show"||this.displayed||this.show?withDirectives(h("div",{role:"none",class:`${d}-modal-body-wrapper`},h(NScrollbar$1,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${d}-modal-scroll-content`},{default:()=>{var _;return[(_=this.renderMask)===null||_===void 0?void 0:_.call(this),h(FocusTrap,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var g;return h(Transition,{name:"fade-in-scale-up-transition",appear:(g=this.appear)!==null&&g!==void 0?g:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:r,onBeforeLeave:s},{default:()=>{const v=[[vShow,this.show]],{onClickoutside:y}=this;return y&&v.push([clickoutside$1,this.onClickoutside,void 0,{capture:!0}]),withDirectives(this.preset==="confirm"||this.preset==="dialog"?h(NDialog,Object.assign({},this.$attrs,{class:[`${d}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},keep(this.$props,dialogPropKeys),{"aria-modal":"true"}),t):this.preset==="card"?h(NCard,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${d}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},keep(this.$props,cardBasePropKeys),{"aria-modal":"true",role:"dialog"}),t):this.childNodeRef=m,v)}})}})]}})),[[vShow,this.displayDirective==="if"||this.displayed||this.show]]):null}}),style$a=c$1([cB("modal-container",`
+ position: fixed;
+ left: 0;
+ top: 0;
+ height: 0;
+ width: 0;
+ display: flex;
+ `),cB("modal-mask",`
+ position: fixed;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ background-color: rgba(0, 0, 0, .4);
+ `,[fadeInTransition({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),cB("modal-body-wrapper",`
+ position: fixed;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ overflow: visible;
+ `,[cB("modal-scroll-content",`
+ min-height: 100%;
+ display: flex;
+ position: relative;
+ `)]),cB("modal",`
+ position: relative;
+ align-self: center;
+ color: var(--n-text-color);
+ margin: auto;
+ box-shadow: var(--n-box-shadow);
+ `,[fadeInScaleUpTransition({duration:".25s",enterScale:".5"})])]),modalProps=Object.assign(Object.assign(Object.assign(Object.assign({},useTheme.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),presetProps),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),NModal=defineComponent({name:"Modal",inheritAttrs:!1,props:modalProps,setup(t){const o=ref(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:s}=useConfig(t),l=useTheme("Modal","-modal",style$a,modalLight$1,t,n),d=useClicked(64),m=useClickPosition(),_=isMounted(),g=t.internalDialog?inject(dialogProviderInjectionKey,null):null,v=useIsComposing();function y(R){const{onUpdateShow:O,"onUpdate:show":Q,onHide:Y}=t;O&&call(O,R),Q&&call(Q,R),Y&&!R&&Y(R)}function w(){const{onClose:R}=t;R?Promise.resolve(R()).then(O=>{O!==!1&&y(!1)}):y(!1)}function B(){const{onPositiveClick:R}=t;R?Promise.resolve(R()).then(O=>{O!==!1&&y(!1)}):y(!1)}function k(){const{onNegativeClick:R}=t;R?Promise.resolve(R()).then(O=>{O!==!1&&y(!1)}):y(!1)}function N(){const{onBeforeLeave:R,onBeforeHide:O}=t;R&&call(R),O&&O()}function S(){const{onAfterLeave:R,onAfterHide:O}=t;R&&call(R),O&&O()}function x(R){var O;const{onMaskClick:Q}=t;Q&&Q(R),t.maskClosable&&!((O=o.value)===null||O===void 0)&&O.contains(getPreciseEventTarget(R))&&y(!1)}function C(R){var O;(O=t.onEsc)===null||O===void 0||O.call(t),t.show&&t.closeOnEsc&&eventEffectNotPerformed(R)&&!v.value&&y(!1)}provide(modalInjectionKey,{getMousePosition:()=>{if(g){const{clickedRef:R,clickPositionRef:O}=g;if(R.value&&O.value)return O.value}return d.value?m.value:null},mergedClsPrefixRef:n,mergedThemeRef:l,isMountedRef:_,appearRef:toRef(t,"internalAppear"),transformOriginRef:toRef(t,"transformOrigin")});const I=computed(()=>{const{common:{cubicBezierEaseOut:R},self:{boxShadow:O,color:Q,textColor:Y}}=l.value;return{"--n-bezier-ease-out":R,"--n-box-shadow":O,"--n-color":Q,"--n-text-color":Y}}),D=s?useThemeClass("theme-class",void 0,I,t):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:_,containerRef:o,presetProps:computed(()=>keep(t,presetPropsKeys)),handleEsc:C,handleAfterLeave:S,handleClickoutside:x,handleBeforeLeave:N,doUpdateShow:y,handleNegativeClick:k,handlePositiveClick:B,handleCloseClick:w,cssVars:s?void 0:I,themeClass:D==null?void 0:D.themeClass,onRender:D==null?void 0:D.onRender}},render(){const{mergedClsPrefix:t}=this;return h(LazyTeleport,{to:this.to,show:this.show},{default:()=>{var o;(o=this.onRender)===null||o===void 0||o.call(this);const{unstableShowMask:n}=this;return withDirectives(h("div",{role:"none",ref:"containerRef",class:[`${t}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},h(NModalBodyWrapper,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>{var r;return h(Transition,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?h("div",{"aria-hidden":!0,ref:"containerRef",class:`${t}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[zindexable$1,{zIndex:this.zIndex,enabled:this.show}]])}})}}),exposedDialogEnvProps=Object.assign(Object.assign({},dialogProps),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),NDialogEnvironment=defineComponent({name:"DialogEnvironment",props:Object.assign(Object.assign({},exposedDialogEnvProps),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(t){const o=ref(!0);function n(){const{onInternalAfterLeave:v,internalKey:y,onAfterLeave:w}=t;v&&v(y),w&&w()}function r(v){const{onPositiveClick:y}=t;y?Promise.resolve(y(v)).then(w=>{w!==!1&&_()}):_()}function s(v){const{onNegativeClick:y}=t;y?Promise.resolve(y(v)).then(w=>{w!==!1&&_()}):_()}function l(){const{onClose:v}=t;v?Promise.resolve(v()).then(y=>{y!==!1&&_()}):_()}function d(v){const{onMaskClick:y,maskClosable:w}=t;y&&(y(v),w&&_())}function m(){const{onEsc:v}=t;v&&v()}function _(){o.value=!1}function g(v){o.value=v}return{show:o,hide:_,handleUpdateShow:g,handleAfterLeave:n,handleCloseClick:l,handleNegativeClick:s,handlePositiveClick:r,handleMaskClick:d,handleEsc:m}},render(){const{handlePositiveClick:t,handleUpdateShow:o,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:s,handleMaskClick:l,handleEsc:d,to:m,maskClosable:_,show:g}=this;return h(NModal,{show:g,onUpdateShow:o,onMaskClick:l,onEsc:d,to:m,maskClosable:_,onAfterEnter:this.onAfterEnter,onAfterLeave:s,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>h(NDialog,Object.assign({},keep(this.$props,dialogPropKeys),{style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:t}))})}}),dialogProviderProps={injectionKey:String,to:[String,Object]},NDialogProvider=defineComponent({name:"DialogProvider",props:dialogProviderProps,setup(){const t=ref([]),o={};function n(m={}){const _=createId(),g=reactive(Object.assign(Object.assign({},m),{key:_,destroy:()=>{o[`n-dialog-${_}`].hide()}}));return t.value.push(g),g}const r=["info","success","warning","error"].map(m=>_=>n(Object.assign(Object.assign({},_),{type:m})));function s(m){const{value:_}=t;_.splice(_.findIndex(g=>g.key===m),1)}function l(){Object.values(o).forEach(m=>{m.hide()})}const d={create:n,destroyAll:l,info:r[0],success:r[1],warning:r[2],error:r[3]};return provide(dialogApiInjectionKey,d),provide(dialogProviderInjectionKey,{clickedRef:useClicked(64),clickPositionRef:useClickPosition()}),provide(dialogReactiveListInjectionKey,t),Object.assign(Object.assign({},d),{dialogList:t,dialogInstRefs:o,handleAfterLeave:s})},render(){var t,o;return h(Fragment,null,[this.dialogList.map(n=>h(NDialogEnvironment,omit(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(o=(t=this.$slots).default)===null||o===void 0?void 0:o.call(t)])}});function useDialog(){const t=inject(dialogApiInjectionKey,null);return t===null&&throwError("use-dialog","No outer founded."),t}const self$9=t=>{const{modalColor:o,textColor1:n,textColor2:r,boxShadow3:s,lineHeight:l,fontWeightStrong:d,dividerColor:m,closeColorHover:_,closeColorPressed:g,closeIconColor:v,closeIconColorHover:y,closeIconColorPressed:w,borderRadius:B,primaryColorHover:k}=t;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:o,textColor:r,titleTextColor:n,titleFontSize:"18px",titleFontWeight:d,boxShadow:s,lineHeight:l,headerBorderBottom:`1px solid ${m}`,footerBorderTop:`1px solid ${m}`,closeIconColor:v,closeIconColorHover:y,closeIconColorPressed:w,closeSize:"22px",closeIconSize:"18px",closeColorHover:_,closeColorPressed:g,closeBorderRadius:B,resizableTriggerColorHover:k}},drawerLight={name:"Drawer",common:commonLight,peers:{Scrollbar:scrollbarLight$1},self:self$9},drawerLight$1=drawerLight,NDrawerBodyWrapper=defineComponent({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(t){const o=ref(!!t.show),n=ref(null),r=inject(drawerInjectionKey);let s=0,l="",d=null;const m=ref(!1),_=ref(!1),g=computed(()=>t.placement==="top"||t.placement==="bottom"),{mergedClsPrefixRef:v,mergedRtlRef:y}=useConfig(t),w=useRtl("Drawer",y,v),B=W=>{_.value=!0,s=g.value?W.clientY:W.clientX,l=document.body.style.cursor,document.body.style.cursor=g.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",D),document.body.addEventListener("mouseleave",O),document.body.addEventListener("mouseup",R)},k=()=>{d!==null&&(window.clearTimeout(d),d=null),_.value?m.value=!0:d=window.setTimeout(()=>{m.value=!0},300)},N=()=>{d!==null&&(window.clearTimeout(d),d=null),m.value=!1},{doUpdateHeight:S,doUpdateWidth:x}=r,C=W=>{const{maxWidth:K}=t;if(K&&W>K)return K;const{minWidth:ee}=t;return ee&&W{const{maxHeight:K}=t;if(K&&W>K)return K;const{minHeight:ee}=t;return ee&&W{var K,ee;if(_.value)if(g.value){let q=((K=n.value)===null||K===void 0?void 0:K.offsetHeight)||0;const ae=s-W.clientY;q+=t.placement==="bottom"?ae:-ae,q=I(q),S(q),s=W.clientY}else{let q=((ee=n.value)===null||ee===void 0?void 0:ee.offsetWidth)||0;const ae=s-W.clientX;q+=t.placement==="right"?ae:-ae,q=C(q),x(q),s=W.clientX}},R=()=>{_.value&&(s=0,_.value=!1,document.body.style.cursor=l,document.body.removeEventListener("mousemove",D),document.body.removeEventListener("mouseup",R),document.body.removeEventListener("mouseleave",O))},O=R;watchEffect(()=>{t.show&&(o.value=!0)}),watch(()=>t.show,W=>{W||R()}),onBeforeUnmount(()=>{R()});const Q=computed(()=>{const{show:W}=t,K=[[vShow,W]];return t.showMask||K.push([clickoutside$1,t.onClickoutside,void 0,{capture:!0}]),K});function Y(){var W;o.value=!1,(W=t.onAfterLeave)===null||W===void 0||W.call(t)}return useLockHtmlScroll(computed(()=>t.blockScroll&&o.value)),provide(drawerBodyInjectionKey,n),provide(popoverBodyInjectionKey,null),provide(modalBodyInjectionKey,null),{bodyRef:n,rtlEnabled:w,mergedClsPrefix:r.mergedClsPrefixRef,isMounted:r.isMountedRef,mergedTheme:r.mergedThemeRef,displayed:o,transitionName:computed(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[t.placement]),handleAfterLeave:Y,bodyDirectives:Q,handleMousedownResizeTrigger:B,handleMouseenterResizeTrigger:k,handleMouseleaveResizeTrigger:N,isDragging:_,isHoverOnResizeTrigger:m}},render(){const{$slots:t,mergedClsPrefix:o}=this;return this.displayDirective==="show"||this.displayed||this.show?withDirectives(h("div",{role:"none"},h(FocusTrap,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>h(Transition,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>withDirectives(h("div",mergeProps(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${o}-drawer`,this.rtlEnabled&&`${o}-drawer--rtl`,`${o}-drawer--${this.placement}-placement`,this.isDragging&&`${o}-drawer--unselectable`,this.nativeScrollbar&&`${o}-drawer--native-scrollbar`]}),[this.resizable?h("div",{class:[`${o}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${o}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?h("div",{class:`${o}-drawer-content-wrapper`,style:this.contentStyle,role:"none"},t):h(NScrollbar$1,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:`${o}-drawer-content-wrapper`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),t)]),this.bodyDirectives)})})),[[vShow,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:cubicBezierEaseIn$3,cubicBezierEaseOut:cubicBezierEaseOut$3}=commonVariables$c;function slideInFromRightTransition({duration:t="0.3s",leaveDuration:o="0.2s",name:n="slide-in-from-right"}={}){return[c$1(`&.${n}-transition-leave-active`,{transition:`transform ${o} ${cubicBezierEaseIn$3}`}),c$1(`&.${n}-transition-enter-active`,{transition:`transform ${t} ${cubicBezierEaseOut$3}`}),c$1(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),c$1(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),c$1(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),c$1(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:cubicBezierEaseIn$2,cubicBezierEaseOut:cubicBezierEaseOut$2}=commonVariables$c;function slideInFromLeftTransition({duration:t="0.3s",leaveDuration:o="0.2s",name:n="slide-in-from-left"}={}){return[c$1(`&.${n}-transition-leave-active`,{transition:`transform ${o} ${cubicBezierEaseIn$2}`}),c$1(`&.${n}-transition-enter-active`,{transition:`transform ${t} ${cubicBezierEaseOut$2}`}),c$1(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),c$1(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),c$1(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),c$1(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:cubicBezierEaseIn$1,cubicBezierEaseOut:cubicBezierEaseOut$1}=commonVariables$c;function slideInFromTopTransition({duration:t="0.3s",leaveDuration:o="0.2s",name:n="slide-in-from-top"}={}){return[c$1(`&.${n}-transition-leave-active`,{transition:`transform ${o} ${cubicBezierEaseIn$1}`}),c$1(`&.${n}-transition-enter-active`,{transition:`transform ${t} ${cubicBezierEaseOut$1}`}),c$1(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),c$1(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),c$1(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),c$1(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn,cubicBezierEaseOut}=commonVariables$c;function slideInFromBottomTransition({duration:t="0.3s",leaveDuration:o="0.2s",name:n="slide-in-from-bottom"}={}){return[c$1(`&.${n}-transition-leave-active`,{transition:`transform ${o} ${cubicBezierEaseIn}`}),c$1(`&.${n}-transition-enter-active`,{transition:`transform ${t} ${cubicBezierEaseOut}`}),c$1(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),c$1(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),c$1(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),c$1(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}const style$9=c$1([cB("drawer",`
+ word-break: break-word;
+ line-height: var(--n-line-height);
+ position: absolute;
+ pointer-events: all;
+ box-shadow: var(--n-box-shadow);
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ background-color: var(--n-color);
+ color: var(--n-text-color);
+ box-sizing: border-box;
+ `,[slideInFromRightTransition(),slideInFromLeftTransition(),slideInFromTopTransition(),slideInFromBottomTransition(),cM("unselectable",`
+ user-select: none;
+ -webkit-user-select: none;
+ `),cM("native-scrollbar",[cB("drawer-content-wrapper",`
+ overflow: auto;
+ height: 100%;
+ `)]),cE("resize-trigger",`
+ position: absolute;
+ background-color: #0000;
+ transition: background-color .3s var(--n-bezier);
+ `,[cM("hover",`
+ background-color: var(--n-resize-trigger-color-hover);
+ `)]),cB("drawer-content-wrapper",`
+ box-sizing: border-box;
+ `),cB("drawer-content",`
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ `,[cM("native-scrollbar",[cB("drawer-body-content-wrapper",`
+ height: 100%;
+ overflow: auto;
+ `)]),cB("drawer-body",`
+ flex: 1 0 0;
+ overflow: hidden;
+ `),cB("drawer-body-content-wrapper",`
+ box-sizing: border-box;
+ padding: var(--n-body-padding);
+ `),cB("drawer-header",`
+ font-weight: var(--n-title-font-weight);
+ line-height: 1;
+ font-size: var(--n-title-font-size);
+ color: var(--n-title-text-color);
+ padding: var(--n-header-padding);
+ transition: border .3s var(--n-bezier);
+ border-bottom: 1px solid var(--n-divider-color);
+ border-bottom: var(--n-header-border-bottom);
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ `,[cE("close",`
+ margin-left: 6px;
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ `)]),cB("drawer-footer",`
+ display: flex;
+ justify-content: flex-end;
+ border-top: var(--n-footer-border-top);
+ transition: border .3s var(--n-bezier);
+ padding: var(--n-footer-padding);
+ `)]),cM("right-placement",`
+ top: 0;
+ bottom: 0;
+ right: 0;
+ `,[cE("resize-trigger",`
+ width: 3px;
+ height: 100%;
+ top: 0;
+ left: 0;
+ transform: translateX(-1.5px);
+ cursor: ew-resize;
+ `)]),cM("left-placement",`
+ top: 0;
+ bottom: 0;
+ left: 0;
+ `,[cE("resize-trigger",`
+ width: 3px;
+ height: 100%;
+ top: 0;
+ right: 0;
+ transform: translateX(1.5px);
+ cursor: ew-resize;
+ `)]),cM("top-placement",`
+ top: 0;
+ left: 0;
+ right: 0;
+ `,[cE("resize-trigger",`
+ width: 100%;
+ height: 3px;
+ bottom: 0;
+ left: 0;
+ transform: translateY(1.5px);
+ cursor: ns-resize;
+ `)]),cM("bottom-placement",`
+ left: 0;
+ bottom: 0;
+ right: 0;
+ `,[cE("resize-trigger",`
+ width: 100%;
+ height: 3px;
+ top: 0;
+ left: 0;
+ transform: translateY(-1.5px);
+ cursor: ns-resize;
+ `)])]),c$1("body",[c$1(">",[cB("drawer-container",{position:"fixed"})])]),cB("drawer-container",`
+ position: relative;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ pointer-events: none;
+ `,[c$1("> *",{pointerEvents:"all"})]),cB("drawer-mask",`
+ background-color: rgba(0, 0, 0, .3);
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ `,[cM("invisible",`
+ background-color: rgba(0, 0, 0, 0)
+ `),fadeInTransition({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),drawerProps=Object.assign(Object.assign({},useTheme.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),NDrawer=defineComponent({name:"Drawer",inheritAttrs:!1,props:drawerProps,setup(t){const{mergedClsPrefixRef:o,namespaceRef:n,inlineThemeDisabled:r}=useConfig(t),s=isMounted(),l=useTheme("Drawer","-drawer",style$9,drawerLight$1,t,o),d=ref(t.defaultWidth),m=ref(t.defaultHeight),_=useMergedState(toRef(t,"width"),d),g=useMergedState(toRef(t,"height"),m),v=computed(()=>{const{placement:R}=t;return R==="top"||R==="bottom"?"":formatLength(_.value)}),y=computed(()=>{const{placement:R}=t;return R==="left"||R==="right"?"":formatLength(g.value)}),w=R=>{const{onUpdateWidth:O,"onUpdate:width":Q}=t;O&&call(O,R),Q&&call(Q,R),d.value=R},B=R=>{const{onUpdateHeight:O,"onUpdate:width":Q}=t;O&&call(O,R),Q&&call(Q,R),m.value=R},k=computed(()=>[{width:v.value,height:y.value},t.drawerStyle||""]);function N(R){const{onMaskClick:O,maskClosable:Q}=t;Q&&C(!1),O&&O(R)}const S=useIsComposing();function x(R){var O;(O=t.onEsc)===null||O===void 0||O.call(t),t.show&&t.closeOnEsc&&eventEffectNotPerformed(R)&&!S.value&&C(!1)}function C(R){const{onHide:O,onUpdateShow:Q,"onUpdate:show":Y}=t;Q&&call(Q,R),Y&&call(Y,R),O&&!R&&call(O,R)}provide(drawerInjectionKey,{isMountedRef:s,mergedThemeRef:l,mergedClsPrefixRef:o,doUpdateShow:C,doUpdateHeight:B,doUpdateWidth:w});const I=computed(()=>{const{common:{cubicBezierEaseInOut:R,cubicBezierEaseIn:O,cubicBezierEaseOut:Q},self:{color:Y,textColor:W,boxShadow:K,lineHeight:ee,headerPadding:q,footerPadding:ae,bodyPadding:ie,titleFontSize:oe,titleTextColor:J,titleFontWeight:j,headerBorderBottom:re,footerBorderTop:ce,closeIconColor:le,closeIconColorHover:se,closeIconColorPressed:te,closeColorHover:ne,closeColorPressed:de,closeIconSize:fe,closeSize:ve,closeBorderRadius:ze,resizableTriggerColorHover:Re}}=l.value;return{"--n-line-height":ee,"--n-color":Y,"--n-text-color":W,"--n-box-shadow":K,"--n-bezier":R,"--n-bezier-out":Q,"--n-bezier-in":O,"--n-header-padding":q,"--n-body-padding":ie,"--n-footer-padding":ae,"--n-title-text-color":J,"--n-title-font-size":oe,"--n-title-font-weight":j,"--n-header-border-bottom":re,"--n-footer-border-top":ce,"--n-close-icon-color":le,"--n-close-icon-color-hover":se,"--n-close-icon-color-pressed":te,"--n-close-size":ve,"--n-close-color-hover":ne,"--n-close-color-pressed":de,"--n-close-icon-size":fe,"--n-close-border-radius":ze,"--n-resize-trigger-color-hover":Re}}),D=r?useThemeClass("drawer",void 0,I,t):void 0;return{mergedClsPrefix:o,namespace:n,mergedBodyStyle:k,handleMaskClick:N,handleEsc:x,mergedTheme:l,cssVars:r?void 0:I,themeClass:D==null?void 0:D.themeClass,onRender:D==null?void 0:D.onRender,isMounted:s}},render(){const{mergedClsPrefix:t}=this;return h(LazyTeleport,{to:this.to,show:this.show},{default:()=>{var o;return(o=this.onRender)===null||o===void 0||o.call(this),withDirectives(h("div",{class:[`${t}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?h(Transition,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?h("div",{"aria-hidden":!0,class:[`${t}-drawer-mask`,this.showMask==="transparent"&&`${t}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,h(NDrawerBodyWrapper,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleMaskClick}),this.$slots)),[[zindexable$1,{zIndex:this.zIndex,enabled:this.show}]])}})}}),drawerContentProps={title:{type:String},headerStyle:[Object,String],footerStyle:[Object,String],bodyStyle:[Object,String],bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},NDrawerContent=defineComponent({name:"DrawerContent",props:drawerContentProps,setup(){const t=inject(drawerInjectionKey,null);t||throwError("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:o}=t;function n(){o(!1)}return{handleCloseClick:n,mergedTheme:t.mergedThemeRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){const{title:t,mergedClsPrefix:o,nativeScrollbar:n,mergedTheme:r,bodyStyle:s,bodyContentStyle:l,headerStyle:d,footerStyle:m,scrollbarProps:_,closable:g,$slots:v}=this;return h("div",{role:"none",class:[`${o}-drawer-content`,n&&`${o}-drawer-content--native-scrollbar`]},v.header||t||g?h("div",{class:`${o}-drawer-header`,style:d,role:"none"},h("div",{class:`${o}-drawer-header__main`,role:"heading","aria-level":"1"},v.header!==void 0?v.header():t),g&&h(NBaseClose,{onClick:this.handleCloseClick,clsPrefix:o,class:`${o}-drawer-header__close`,absolute:!0})):null,n?h("div",{class:`${o}-drawer-body`,style:s,role:"none"},h("div",{class:`${o}-drawer-body-content-wrapper`,style:l,role:"none"},v)):h(NScrollbar$1,Object.assign({themeOverrides:r.peerOverrides.Scrollbar,theme:r.peers.Scrollbar},_,{class:`${o}-drawer-body`,contentClass:`${o}-drawer-body-content-wrapper`,contentStyle:l}),v),v.footer?h("div",{class:`${o}-drawer-footer`,style:m,role:"none"},v.footer()):null)}}),commonVariables={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"},self$8=t=>{const{textColor2:o,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:s,infoColor:l,successColor:d,errorColor:m,warningColor:_,popoverColor:g,boxShadow2:v,primaryColor:y,lineHeight:w,borderRadius:B,closeColorHover:k,closeColorPressed:N}=t;return Object.assign(Object.assign({},commonVariables),{closeBorderRadius:B,textColor:o,textColorInfo:o,textColorSuccess:o,textColorError:o,textColorWarning:o,textColorLoading:o,color:g,colorInfo:g,colorSuccess:g,colorError:g,colorWarning:g,colorLoading:g,boxShadow:v,boxShadowInfo:v,boxShadowSuccess:v,boxShadowError:v,boxShadowWarning:v,boxShadowLoading:v,iconColor:o,iconColorInfo:l,iconColorSuccess:d,iconColorWarning:_,iconColorError:m,iconColorLoading:y,closeColorHover:k,closeColorPressed:N,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:s,closeColorHoverInfo:k,closeColorPressedInfo:N,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:s,closeColorHoverSuccess:k,closeColorPressedSuccess:N,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:s,closeColorHoverError:k,closeColorPressedError:N,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:s,closeColorHoverWarning:k,closeColorPressedWarning:N,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:s,closeColorHoverLoading:k,closeColorPressedLoading:N,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:s,loadingColor:y,lineHeight:w,borderRadius:B})},messageLight={name:"Message",common:commonLight,self:self$8},messageLight$1=messageLight,self$7=t=>{const{textColorDisabled:o}=t;return{iconColorDisabled:o}},inputNumberLight={name:"InputNumber",common:commonLight,peers:{Button:buttonLight$1,Input:inputLight$1},self:self$7},inputNumberLight$1=inputNumberLight,commonVars$1={iconSize:"22px"},self$6=t=>{const{fontSize:o,warningColor:n}=t;return Object.assign(Object.assign({},commonVars$1),{fontSize:o,iconColor:n})},popconfirmLight={name:"Popconfirm",common:commonLight,peers:{Button:buttonLight$1,Popover:popoverLight$1},self:self$6},popconfirmLight$1=popconfirmLight,sizeVariables$2={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},self$5=t=>{const o="rgba(0, 0, 0, .85)",n="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:s,baseColor:l,cardColor:d,modalColor:m,popoverColor:_,borderRadius:g,fontSize:v,opacityDisabled:y}=t;return Object.assign(Object.assign({},sizeVariables$2),{fontSize:v,markFontSize:v,railColor:r,railColorHover:r,fillColor:s,fillColorHover:s,opacityDisabled:y,handleColor:"#FFF",dotColor:d,dotColorModal:m,dotColorPopover:_,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:o,indicatorBoxShadow:n,indicatorTextColor:l,indicatorBorderRadius:g,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${s}`,dotBoxShadow:""})},sliderLight={name:"Slider",common:commonLight,self:self$5},sliderLight$1=sliderLight,self$4=t=>{const{opacityDisabled:o,heightTiny:n,heightSmall:r,heightMedium:s,heightLarge:l,heightHuge:d,primaryColor:m,fontSize:_}=t;return{fontSize:_,textColor:m,sizeTiny:n,sizeSmall:r,sizeMedium:s,sizeLarge:l,sizeHuge:d,color:m,opacitySpinning:o}},spinLight={name:"Spin",common:commonLight,self:self$4},spinLight$1=spinLight,commonVars={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"},self$3=t=>{const{primaryColor:o,opacityDisabled:n,borderRadius:r,textColor3:s}=t,l="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},commonVars),{iconColor:s,textColor:"white",loadingColor:o,opacityDisabled:n,railColor:l,railColorActive:o,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${changeColor(o,{alpha:.2})}`})},switchLight={name:"Switch",common:commonLight,self:self$3},switchLight$1=switchLight,sizeVariables$1={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},self$2=t=>{const{dividerColor:o,cardColor:n,modalColor:r,popoverColor:s,tableHeaderColor:l,tableColorStriped:d,textColor1:m,textColor2:_,borderRadius:g,fontWeightStrong:v,lineHeight:y,fontSizeSmall:w,fontSizeMedium:B,fontSizeLarge:k}=t;return Object.assign(Object.assign({},sizeVariables$1),{fontSizeSmall:w,fontSizeMedium:B,fontSizeLarge:k,lineHeight:y,borderRadius:g,borderColor:composite(n,o),borderColorModal:composite(r,o),borderColorPopover:composite(s,o),tdColor:n,tdColorModal:r,tdColorPopover:s,tdColorStriped:composite(n,d),tdColorStripedModal:composite(r,d),tdColorStripedPopover:composite(s,d),thColor:composite(n,l),thColorModal:composite(r,l),thColorPopover:composite(s,l),thTextColor:m,tdTextColor:_,thFontWeight:v})},tableLight={name:"Table",common:commonLight,self:self$2},tableLight$1=tableLight,sizeVariables={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"},self$1=t=>{const{textColor2:o,primaryColor:n,textColorDisabled:r,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:d,closeColorHover:m,closeColorPressed:_,tabColor:g,baseColor:v,dividerColor:y,fontWeight:w,textColor1:B,borderRadius:k,fontSize:N,fontWeightStrong:S}=t;return Object.assign(Object.assign({},sizeVariables),{colorSegment:g,tabFontSizeCard:N,tabTextColorLine:B,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:B,tabTextColorActiveSegment:o,tabTextColorHoverSegment:o,tabTextColorDisabledSegment:r,tabTextColorBar:B,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:B,tabTextColorHoverCard:B,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:d,closeColorHover:m,closeColorPressed:_,closeBorderRadius:k,tabColor:g,tabColorSegment:v,tabBorderColor:y,tabFontWeightActive:w,tabFontWeight:w,tabBorderRadius:k,paneTextColor:o,fontWeightStrong:S})},tabsLight={name:"Tabs",common:commonLight,self:self$1},tabsLight$1=tabsLight;function parse$1(t){return t==null||typeof t=="string"&&t.trim()===""?null:Number(t)}function isWipValue(t){return t.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(t)||/^\.\d+$/.test(t))}function validator(t){return t==null?!0:!Number.isNaN(t)}function format(t,o){return t==null?"":o===void 0?String(t):t.toFixed(o)}function parseNumber(t){if(t===null)return null;if(typeof t=="number")return t;{const o=Number(t);return Number.isNaN(o)?null:o}}const style$8=c$1([cB("input-number-suffix",`
+ display: inline-block;
+ margin-right: 10px;
+ `),cB("input-number-prefix",`
+ display: inline-block;
+ margin-left: 10px;
+ `)]),HOLDING_CHANGE_THRESHOLD=800,HOLDING_CHANGE_INTERVAL=100,inputNumberProps=Object.assign(Object.assign({},useTheme.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),NInputNumber=defineComponent({name:"InputNumber",props:inputNumberProps,setup(t){const{mergedBorderedRef:o,mergedClsPrefixRef:n,mergedRtlRef:r}=useConfig(t),s=useTheme("InputNumber","-input-number",style$8,inputNumberLight$1,t,n),{localeRef:l}=useLocale("InputNumber"),d=useFormItem(t),{mergedSizeRef:m,mergedDisabledRef:_,mergedStatusRef:g}=d,v=ref(null),y=ref(null),w=ref(null),B=ref(t.defaultValue),k=toRef(t,"value"),N=useMergedState(k,B),S=ref(""),x=ge=>{const ot=String(ge).split(".")[1];return ot?ot.length:0},C=ge=>{const ot=[t.min,t.max,t.step,ge].map(lt=>lt===void 0?0:x(lt));return Math.max(...ot)},I=useMemo(()=>{const{placeholder:ge}=t;return ge!==void 0?ge:l.value.placeholder}),D=useMemo(()=>{const ge=parseNumber(t.step);return ge!==null?ge===0?1:Math.abs(ge):1}),R=useMemo(()=>{const ge=parseNumber(t.min);return ge!==null?ge:null}),O=useMemo(()=>{const ge=parseNumber(t.max);return ge!==null?ge:null}),Q=ge=>{const{value:ot}=N;if(ge===ot){W();return}const{"onUpdate:value":lt,onUpdateValue:ut,onChange:et}=t,{nTriggerFormInput:pt,nTriggerFormChange:Ie}=d;et&&call(et,ge),ut&&call(ut,ge),lt&&call(lt,ge),B.value=ge,pt(),Ie()},Y=({offset:ge,doUpdateIfValid:ot,fixPrecision:lt,isInputing:ut})=>{const{value:et}=S;if(ut&&isWipValue(et))return!1;const pt=(t.parse||parse$1)(et);if(pt===null)return ot&&Q(null),null;if(validator(pt)){const Ie=x(pt),{precision:at}=t;if(at!==void 0&&atFe){if(!ot||ut)return!1;He=Fe}if(dt!==null&&He{const{value:ge}=N;if(validator(ge)){const{format:ot,precision:lt}=t;ot?S.value=ot(ge):ge===null||lt===void 0||x(ge)>lt?S.value=format(ge,void 0):S.value=format(ge,lt)}else S.value=String(ge)};W();const K=useMemo(()=>Y({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),ee=useMemo(()=>{const{value:ge}=N;if(t.validator&&ge===null)return!1;const{value:ot}=D;return Y({offset:-ot,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),q=useMemo(()=>{const{value:ge}=N;if(t.validator&&ge===null)return!1;const{value:ot}=D;return Y({offset:+ot,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function ae(ge){const{onFocus:ot}=t,{nTriggerFormFocus:lt}=d;ot&&call(ot,ge),lt()}function ie(ge){var ot,lt;if(ge.target===((ot=v.value)===null||ot===void 0?void 0:ot.wrapperElRef))return;const ut=Y({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(ut!==!1){const Ie=(lt=v.value)===null||lt===void 0?void 0:lt.inputElRef;Ie&&(Ie.value=String(ut||"")),N.value===ut&&W()}else W();const{onBlur:et}=t,{nTriggerFormBlur:pt}=d;et&&call(et,ge),pt(),nextTick(()=>{W()})}function oe(ge){const{onClear:ot}=t;ot&&call(ot,ge)}function J(){const{value:ge}=q;if(!ge){ze();return}const{value:ot}=N;if(ot===null)t.validator||Q(le());else{const{value:lt}=D;Y({offset:lt,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function j(){const{value:ge}=ee;if(!ge){ve();return}const{value:ot}=N;if(ot===null)t.validator||Q(le());else{const{value:lt}=D;Y({offset:-lt,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const re=ae,ce=ie;function le(){if(t.validator)return null;const{value:ge}=R,{value:ot}=O;return ge!==null?Math.max(0,ge):ot!==null?Math.min(0,ot):0}function se(ge){oe(ge),Q(null)}function te(ge){var ot,lt,ut;!((ot=w.value)===null||ot===void 0)&&ot.$el.contains(ge.target)&&ge.preventDefault(),!((lt=y.value)===null||lt===void 0)&<.$el.contains(ge.target)&&ge.preventDefault(),(ut=v.value)===null||ut===void 0||ut.activate()}let ne=null,de=null,fe=null;function ve(){fe&&(window.clearTimeout(fe),fe=null),ne&&(window.clearInterval(ne),ne=null)}function ze(){ke&&(window.clearTimeout(ke),ke=null),de&&(window.clearInterval(de),de=null)}function Re(){ve(),fe=window.setTimeout(()=>{ne=window.setInterval(()=>{j()},HOLDING_CHANGE_INTERVAL)},HOLDING_CHANGE_THRESHOLD),on$1("mouseup",document,ve,{once:!0})}let ke=null;function xe(){ze(),ke=window.setTimeout(()=>{de=window.setInterval(()=>{J()},HOLDING_CHANGE_INTERVAL)},HOLDING_CHANGE_THRESHOLD),on$1("mouseup",document,ze,{once:!0})}const tt=()=>{de||J()},me=()=>{ne||j()};function be(ge){var ot,lt;if(ge.key==="Enter"){if(ge.target===((ot=v.value)===null||ot===void 0?void 0:ot.wrapperElRef))return;Y({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((lt=v.value)===null||lt===void 0||lt.deactivate())}else if(ge.key==="ArrowUp"){if(!q.value||t.keyboard.ArrowUp===!1)return;ge.preventDefault(),Y({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&J()}else if(ge.key==="ArrowDown"){if(!ee.value||t.keyboard.ArrowDown===!1)return;ge.preventDefault(),Y({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&j()}}function Ne(ge){S.value=ge,t.updateValueOnInput&&!t.format&&!t.parse&&t.precision===void 0&&Y({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}watch(N,()=>{W()});const qe={focus:()=>{var ge;return(ge=v.value)===null||ge===void 0?void 0:ge.focus()},blur:()=>{var ge;return(ge=v.value)===null||ge===void 0?void 0:ge.blur()},select:()=>{var ge;return(ge=v.value)===null||ge===void 0?void 0:ge.select()}},Be=useRtl("InputNumber",r,n);return Object.assign(Object.assign({},qe),{rtlEnabled:Be,inputInstRef:v,minusButtonInstRef:y,addButtonInstRef:w,mergedClsPrefix:n,mergedBordered:o,uncontrolledValue:B,mergedValue:N,mergedPlaceholder:I,displayedValueInvalid:K,mergedSize:m,mergedDisabled:_,displayedValue:S,addable:q,minusable:ee,mergedStatus:g,handleFocus:re,handleBlur:ce,handleClear:se,handleMouseDown:te,handleAddClick:tt,handleMinusClick:me,handleAddMousedown:xe,handleMinusMousedown:Re,handleKeyDown:be,handleUpdateDisplayedValue:Ne,mergedTheme:s,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:computed(()=>{const{self:{iconColorDisabled:ge}}=s.value,[ot,lt,ut,et]=rgba(ge);return{textColorTextDisabled:`rgb(${ot}, ${lt}, ${ut})`,opacityDisabled:`${et}`}})})},render(){const{mergedClsPrefix:t,$slots:o}=this,n=()=>h(XButton,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>resolveSlot(o["minus-icon"],()=>[h(NBaseIcon,{clsPrefix:t},{default:()=>h(RemoveIcon,null)})])}),r=()=>h(XButton,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>resolveSlot(o["add-icon"],()=>[h(NBaseIcon,{clsPrefix:t},{default:()=>h(AddIcon,null)})])});return h("div",{class:[`${t}-input-number`,this.rtlEnabled&&`${t}-input-number--rtl`]},h(NInput,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,internalLoadingBeforeSuffix:!0},{prefix:()=>{var s;return this.showButton&&this.buttonPlacement==="both"?[n(),resolveWrappedSlot(o.prefix,l=>l?h("span",{class:`${t}-input-number-prefix`},l):null)]:(s=o.prefix)===null||s===void 0?void 0:s.call(o)},suffix:()=>{var s;return this.showButton?[resolveWrappedSlot(o.suffix,l=>l?h("span",{class:`${t}-input-number-suffix`},l):null),this.buttonPlacement==="right"?n():null,r()]:(s=o.suffix)===null||s===void 0?void 0:s.call(o)}}))}}),messageProps={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},messageApiInjectionKey="n-message-api",messageProviderInjectionKey="n-message-provider",style$7=c$1([cB("message-wrapper",`
+ margin: var(--n-margin);
+ z-index: 0;
+ transform-origin: top center;
+ display: flex;
+ `,[fadeInHeightExpandTransition({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),cB("message",`
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ transition:
+ color .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ opacity .3s var(--n-bezier),
+ transform .3s var(--n-bezier),
+ margin-bottom .3s var(--n-bezier);
+ padding: var(--n-padding);
+ border-radius: var(--n-border-radius);
+ flex-wrap: nowrap;
+ overflow: hidden;
+ max-width: var(--n-max-width);
+ color: var(--n-text-color);
+ background-color: var(--n-color);
+ box-shadow: var(--n-box-shadow);
+ `,[cE("content",`
+ display: inline-block;
+ line-height: var(--n-line-height);
+ font-size: var(--n-font-size);
+ `),cE("icon",`
+ position: relative;
+ margin: var(--n-icon-margin);
+ height: var(--n-icon-size);
+ width: var(--n-icon-size);
+ font-size: var(--n-icon-size);
+ flex-shrink: 0;
+ `,[["default","info","success","warning","error","loading"].map(t=>cM(`${t}-type`,[c$1("> *",`
+ color: var(--n-icon-color-${t});
+ transition: color .3s var(--n-bezier);
+ `)])),c$1("> *",`
+ position: absolute;
+ left: 0;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ `,[iconSwitchTransition()])]),cE("close",`
+ margin: var(--n-close-margin);
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ flex-shrink: 0;
+ `,[c$1("&:hover",`
+ color: var(--n-close-icon-color-hover);
+ `),c$1("&:active",`
+ color: var(--n-close-icon-color-pressed);
+ `)])]),cB("message-container",`
+ z-index: 6000;
+ position: fixed;
+ height: 0;
+ overflow: visible;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ `,[cM("top",`
+ top: 12px;
+ left: 0;
+ right: 0;
+ `),cM("top-left",`
+ top: 12px;
+ left: 12px;
+ right: 0;
+ align-items: flex-start;
+ `),cM("top-right",`
+ top: 12px;
+ left: 0;
+ right: 12px;
+ align-items: flex-end;
+ `),cM("bottom",`
+ bottom: 4px;
+ left: 0;
+ right: 0;
+ justify-content: flex-end;
+ `),cM("bottom-left",`
+ bottom: 4px;
+ left: 12px;
+ right: 0;
+ justify-content: flex-end;
+ align-items: flex-start;
+ `),cM("bottom-right",`
+ bottom: 4px;
+ left: 0;
+ right: 12px;
+ justify-content: flex-end;
+ align-items: flex-end;
+ `)])]),iconRenderMap={info:()=>h(InfoIcon,null),success:()=>h(SuccessIcon,null),warning:()=>h(WarningIcon,null),error:()=>h(ErrorIcon,null),default:()=>null},NMessage=defineComponent({name:"Message",props:Object.assign(Object.assign({},messageProps),{render:Function}),setup(t){const{inlineThemeDisabled:o,mergedRtlRef:n}=useConfig(t),{props:r,mergedClsPrefixRef:s}=inject(messageProviderInjectionKey),l=useRtl("Message",n,s),d=useTheme("Message","-message",style$7,messageLight$1,r,s),m=computed(()=>{const{type:g}=t,{common:{cubicBezierEaseInOut:v},self:{padding:y,margin:w,maxWidth:B,iconMargin:k,closeMargin:N,closeSize:S,iconSize:x,fontSize:C,lineHeight:I,borderRadius:D,iconColorInfo:R,iconColorSuccess:O,iconColorWarning:Q,iconColorError:Y,iconColorLoading:W,closeIconSize:K,closeBorderRadius:ee,[createKey("textColor",g)]:q,[createKey("boxShadow",g)]:ae,[createKey("color",g)]:ie,[createKey("closeColorHover",g)]:oe,[createKey("closeColorPressed",g)]:J,[createKey("closeIconColor",g)]:j,[createKey("closeIconColorPressed",g)]:re,[createKey("closeIconColorHover",g)]:ce}}=d.value;return{"--n-bezier":v,"--n-margin":w,"--n-padding":y,"--n-max-width":B,"--n-font-size":C,"--n-icon-margin":k,"--n-icon-size":x,"--n-close-icon-size":K,"--n-close-border-radius":ee,"--n-close-size":S,"--n-close-margin":N,"--n-text-color":q,"--n-color":ie,"--n-box-shadow":ae,"--n-icon-color-info":R,"--n-icon-color-success":O,"--n-icon-color-warning":Q,"--n-icon-color-error":Y,"--n-icon-color-loading":W,"--n-close-color-hover":oe,"--n-close-color-pressed":J,"--n-close-icon-color":j,"--n-close-icon-color-pressed":re,"--n-close-icon-color-hover":ce,"--n-line-height":I,"--n-border-radius":D}}),_=o?useThemeClass("message",computed(()=>t.type[0]),m,{}):void 0;return{mergedClsPrefix:s,rtlEnabled:l,messageProviderProps:r,handleClose(){var g;(g=t.onClose)===null||g===void 0||g.call(t)},cssVars:o?void 0:m,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,placement:r.placement}},render(){const{render:t,type:o,closable:n,content:r,mergedClsPrefix:s,cssVars:l,themeClass:d,onRender:m,icon:_,handleClose:g,showIcon:v}=this;m==null||m();let y;return h("div",{class:[`${s}-message-wrapper`,d],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},l]},t?t(this.$props):h("div",{class:[`${s}-message ${s}-message--${o}-type`,this.rtlEnabled&&`${s}-message--rtl`]},(y=createIconVNode(_,o,s))&&v?h("div",{class:`${s}-message__icon ${s}-message__icon--${o}-type`},h(NIconSwitchTransition,null,{default:()=>y})):null,h("div",{class:`${s}-message__content`},render$6(r)),n?h(NBaseClose,{clsPrefix:s,class:`${s}-message__close`,onClick:g,absolute:!0}):null))}});function createIconVNode(t,o,n){if(typeof t=="function")return t();{const r=o==="loading"?h(NBaseLoading,{clsPrefix:n,strokeWidth:24,scale:.85}):iconRenderMap[o]();return r?h(NBaseIcon,{clsPrefix:n,key:o},{default:()=>r}):null}}const MessageEnvironment=defineComponent({name:"MessageEnvironment",props:Object.assign(Object.assign({},messageProps),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(t){let o=null;const n=ref(!0);onMounted(()=>{r()});function r(){const{duration:v}=t;v&&(o=window.setTimeout(d,v))}function s(v){v.currentTarget===v.target&&o!==null&&(window.clearTimeout(o),o=null)}function l(v){v.currentTarget===v.target&&r()}function d(){const{onHide:v}=t;n.value=!1,o&&(window.clearTimeout(o),o=null),v&&v()}function m(){const{onClose:v}=t;v&&v(),d()}function _(){const{onAfterLeave:v,onInternalAfterLeave:y,onAfterHide:w,internalKey:B}=t;v&&v(),y&&y(B),w&&w()}function g(){d()}return{show:n,hide:d,handleClose:m,handleAfterLeave:_,handleMouseleave:l,handleMouseenter:s,deactivate:g}},render(){return h(NFadeInExpandTransition,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?h(NMessage,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),messageProviderProps=Object.assign(Object.assign({},useTheme.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),NMessageProvider=defineComponent({name:"MessageProvider",props:messageProviderProps,setup(t){const{mergedClsPrefixRef:o}=useConfig(t),n=ref([]),r=ref({}),s={create(_,g){return l(_,Object.assign({type:"default"},g))},info(_,g){return l(_,Object.assign(Object.assign({},g),{type:"info"}))},success(_,g){return l(_,Object.assign(Object.assign({},g),{type:"success"}))},warning(_,g){return l(_,Object.assign(Object.assign({},g),{type:"warning"}))},error(_,g){return l(_,Object.assign(Object.assign({},g),{type:"error"}))},loading(_,g){return l(_,Object.assign(Object.assign({},g),{type:"loading"}))},destroyAll:m};provide(messageProviderInjectionKey,{props:t,mergedClsPrefixRef:o}),provide(messageApiInjectionKey,s);function l(_,g){const v=createId(),y=reactive(Object.assign(Object.assign({},g),{content:_,key:v,destroy:()=>{var B;(B=r.value[v])===null||B===void 0||B.hide()}})),{max:w}=t;return w&&n.value.length>=w&&n.value.shift(),n.value.push(y),y}function d(_){n.value.splice(n.value.findIndex(g=>g.key===_),1),delete r.value[_]}function m(){Object.values(r.value).forEach(_=>{_.hide()})}return Object.assign({mergedClsPrefix:o,messageRefs:r,messageList:n,handleAfterLeave:d},s)},render(){var t,o,n;return h(Fragment,null,(o=(t=this.$slots).default)===null||o===void 0?void 0:o.call(t),this.messageList.length?h(Teleport,{to:(n=this.to)!==null&&n!==void 0?n:"body"},h("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(r=>h(MessageEnvironment,Object.assign({ref:s=>{s&&(this.messageRefs[r.key]=s)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},omit(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});function useMessage(){const t=inject(messageApiInjectionKey,null);return t===null&&throwError("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),t}const popconfirmInjectionKey="n-popconfirm",panelProps={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},panelPropKeys=keysOf(panelProps),PopconfirmPanel=defineComponent({name:"NPopconfirmPanel",props:panelProps,setup(t){const{localeRef:o}=useLocale("Popconfirm"),{inlineThemeDisabled:n}=useConfig(),{mergedClsPrefixRef:r,mergedThemeRef:s,props:l}=inject(popconfirmInjectionKey),d=computed(()=>{const{common:{cubicBezierEaseInOut:_},self:{fontSize:g,iconSize:v,iconColor:y}}=s.value;return{"--n-bezier":_,"--n-font-size":g,"--n-icon-size":v,"--n-icon-color":y}}),m=n?useThemeClass("popconfirm-panel",void 0,d,l):void 0;return Object.assign(Object.assign({},useLocale("Popconfirm")),{mergedClsPrefix:r,cssVars:n?void 0:d,localizedPositiveText:computed(()=>t.positiveText||o.value.positiveText),localizedNegativeText:computed(()=>t.negativeText||o.value.negativeText),positiveButtonProps:toRef(l,"positiveButtonProps"),negativeButtonProps:toRef(l,"negativeButtonProps"),handlePositiveClick(_){t.onPositiveClick(_)},handleNegativeClick(_){t.onNegativeClick(_)},themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender})},render(){var t;const{mergedClsPrefix:o,showIcon:n,$slots:r}=this,s=resolveSlot(r.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&h(NButton,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&h(NButton,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(t=this.onRender)===null||t===void 0||t.call(this),h("div",{class:[`${o}-popconfirm__panel`,this.themeClass],style:this.cssVars},resolveWrappedSlot(r.default,l=>n||l?h("div",{class:`${o}-popconfirm__body`},n?h("div",{class:`${o}-popconfirm__icon`},resolveSlot(r.icon,()=>[h(NBaseIcon,{clsPrefix:o},{default:()=>h(WarningIcon,null)})])):null,l):null),s?h("div",{class:[`${o}-popconfirm__action`]},s):null)}}),style$6=cB("popconfirm",[cE("body",`
+ font-size: var(--n-font-size);
+ display: flex;
+ align-items: center;
+ flex-wrap: nowrap;
+ position: relative;
+ `,[cE("icon",`
+ display: flex;
+ font-size: var(--n-icon-size);
+ color: var(--n-icon-color);
+ transition: color .3s var(--n-bezier);
+ margin: 0 8px 0 0;
+ `)]),cE("action",`
+ display: flex;
+ justify-content: flex-end;
+ `,[c$1("&:not(:first-child)","margin-top: 8px"),cB("button",[c$1("&:not(:last-child)","margin-right: 8px;")])])]),popconfirmProps=Object.assign(Object.assign(Object.assign({},useTheme.props),popoverBaseProps),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function}),NPopconfirm=defineComponent({name:"Popconfirm",props:popconfirmProps,__popover__:!0,setup(t){const{mergedClsPrefixRef:o}=useConfig(),n=useTheme("Popconfirm","-popconfirm",style$6,popconfirmLight$1,t,o),r=ref(null);function s(m){var _;if(!(!((_=r.value)===null||_===void 0)&&_.getMergedShow()))return;const{onPositiveClick:g,"onUpdate:show":v}=t;Promise.resolve(g?g(m):!0).then(y=>{var w;y!==!1&&((w=r.value)===null||w===void 0||w.setShow(!1),v&&call(v,!1))})}function l(m){var _;if(!(!((_=r.value)===null||_===void 0)&&_.getMergedShow()))return;const{onNegativeClick:g,"onUpdate:show":v}=t;Promise.resolve(g?g(m):!0).then(y=>{var w;y!==!1&&((w=r.value)===null||w===void 0||w.setShow(!1),v&&call(v,!1))})}return provide(popconfirmInjectionKey,{mergedThemeRef:n,mergedClsPrefixRef:o,props:t}),{setShow(m){var _;(_=r.value)===null||_===void 0||_.setShow(m)},syncPosition(){var m;(m=r.value)===null||m===void 0||m.syncPosition()},mergedTheme:n,popoverInstRef:r,handlePositiveClick:s,handleNegativeClick:l}},render(){const{$slots:t,$props:o,mergedTheme:n}=this;return h(NPopover,omit(o,panelPropKeys,{theme:n.peers.Popover,themeOverrides:n.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:t.activator||t.trigger,default:()=>{const r=keep(o,panelPropKeys);return h(PopconfirmPanel,Object.assign(Object.assign({},r),{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),t)}})}}),scrollbarProps=Object.assign(Object.assign({},useTheme.props),{trigger:String,xScrollable:Boolean,onScroll:Function,size:Number}),Scrollbar=defineComponent({name:"Scrollbar",props:scrollbarProps,setup(){const t=ref(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var r;(r=t.value)===null||r===void 0||r.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var r;(r=t.value)===null||r===void 0||r.scrollBy(n[0],n[1])}}),{scrollbarInstRef:t})},render(){return h(NScrollbar$1,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),NScrollbar=Scrollbar;function isTouchEvent(t){return window.TouchEvent&&t instanceof window.TouchEvent}function useRefs(){const t=ref(new Map),o=n=>r=>{t.value.set(n,r)};return onBeforeUpdate(()=>{t.value.clear()}),[t,o]}const style$5=c$1([cB("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;
+ `,[cM("reverse",[cB("slider-handles",[cB("slider-handle-wrapper",`
+ transform: translate(50%, -50%);
+ `)]),cB("slider-dots",[cB("slider-dot",`
+ transform: translateX(50%, -50%);
+ `)]),cM("vertical",[cB("slider-handles",[cB("slider-handle-wrapper",`
+ transform: translate(-50%, -50%);
+ `)]),cB("slider-marks",[cB("slider-mark",`
+ transform: translateY(calc(-50% + var(--n-dot-height) / 2));
+ `)]),cB("slider-dots",[cB("slider-dot",`
+ transform: translateX(-50%) translateY(0);
+ `)])])]),cM("vertical",`
+ padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2);
+ width: var(--n-rail-width-vertical);
+ height: 100%;
+ `,[cB("slider-handles",`
+ top: calc(var(--n-handle-size) / 2);
+ right: 0;
+ bottom: calc(var(--n-handle-size) / 2);
+ left: 0;
+ `,[cB("slider-handle-wrapper",`
+ top: unset;
+ left: 50%;
+ transform: translate(-50%, 50%);
+ `)]),cB("slider-rail",`
+ height: 100%;
+ `,[cE("fill",`
+ top: unset;
+ right: 0;
+ bottom: unset;
+ left: 0;
+ `)]),cM("with-mark",`
+ width: var(--n-rail-width-vertical);
+ margin: 0 32px 0 8px;
+ `),cB("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);
+ `,[cB("slider-mark",`
+ transform: translateY(50%);
+ white-space: nowrap;
+ `)]),cB("slider-dots",`
+ top: calc(var(--n-handle-size) / 2);
+ right: unset;
+ bottom: calc(var(--n-handle-size) / 2);
+ left: 50%;
+ `,[cB("slider-dot",`
+ transform: translateX(-50%) translateY(50%);
+ `)])]),cM("disabled",`
+ cursor: not-allowed;
+ opacity: var(--n-opacity-disabled);
+ `,[cB("slider-handle",`
+ cursor: not-allowed;
+ `)]),cM("with-mark",`
+ width: 100%;
+ margin: 8px 0 32px 0;
+ `),c$1("&:hover",[cB("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[cE("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),cB("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),cM("active",[cB("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[cE("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),cB("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),cB("slider-marks",`
+ position: absolute;
+ top: 18px;
+ left: calc(var(--n-handle-size) / 2);
+ right: calc(var(--n-handle-size) / 2);
+ `,[cB("slider-mark",`
+ position: absolute;
+ transform: translateX(-50%);
+ white-space: nowrap;
+ `)]),cB("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);
+ `,[cE("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);
+ `)]),cB("slider-handles",`
+ position: absolute;
+ top: 0;
+ right: calc(var(--n-handle-size) / 2);
+ bottom: 0;
+ left: calc(var(--n-handle-size) / 2);
+ `,[cB("slider-handle-wrapper",`
+ outline: none;
+ position: absolute;
+ top: 50%;
+ transform: translate(-50%, -50%);
+ cursor: pointer;
+ display: flex;
+ `,[cB("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);
+ `,[c$1("&:hover",`
+ box-shadow: var(--n-handle-box-shadow-hover);
+ `)]),c$1("&:focus",[cB("slider-handle",`
+ box-shadow: var(--n-handle-box-shadow-focus);
+ `,[c$1("&:hover",`
+ box-shadow: var(--n-handle-box-shadow-active);
+ `)])])])]),cB("slider-dots",`
+ position: absolute;
+ top: 50%;
+ left: calc(var(--n-handle-size) / 2);
+ right: calc(var(--n-handle-size) / 2);
+ `,[cM("transition-disabled",[cB("slider-dot","transition: none;")]),cB("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);
+ `,[cM("active","border: var(--n-dot-border-active);")])])]),cB("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);
+ `,[fadeInScaleUpTransition()]),cB("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);
+ `,[cM("top",`
+ margin-bottom: 12px;
+ `),cM("right",`
+ margin-left: 12px;
+ `),cM("bottom",`
+ margin-top: 12px;
+ `),cM("left",`
+ margin-right: 12px;
+ `),fadeInScaleUpTransition()]),insideModal(cB("slider",[cB("slider-dot","background-color: var(--n-dot-color-modal);")])),insidePopover(cB("slider",[cB("slider-dot","background-color: var(--n-dot-color-popover);")]))]),eventButtonLeft=0,sliderProps=Object.assign(Object.assign({},useTheme.props),{to:useAdjustedTo.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]}),NSlider=defineComponent({name:"Slider",props:sliderProps,setup(t){const{mergedClsPrefixRef:o,namespaceRef:n,inlineThemeDisabled:r}=useConfig(t),s=useTheme("Slider","-slider",style$5,sliderLight$1,t,o),l=ref(null),[d,m]=useRefs(),[_,g]=useRefs(),v=ref(new Set),y=useFormItem(t),{mergedDisabledRef:w}=y,B=computed(()=>{const{step:Ie}=t;if(Number(Ie)<=0||Ie==="mark")return 0;const at=Ie.toString();let He=0;return at.includes(".")&&(He=at.length-at.indexOf(".")-1),He}),k=ref(t.defaultValue),N=toRef(t,"value"),S=useMergedState(N,k),x=computed(()=>{const{value:Ie}=S;return(t.range?Ie:[Ie]).map(te)}),C=computed(()=>x.value.length>2),I=computed(()=>t.placement===void 0?t.vertical?"right":"top":t.placement),D=computed(()=>{const{marks:Ie}=t;return Ie?Object.keys(Ie).map(parseFloat):null}),R=ref(-1),O=ref(-1),Q=ref(-1),Y=ref(!1),W=ref(!1),K=computed(()=>{const{vertical:Ie,reverse:at}=t;return Ie?at?"top":"bottom":at?"right":"left"}),ee=computed(()=>{if(C.value)return;const Ie=x.value,at=ne(t.range?Math.min(...Ie):t.min),He=ne(t.range?Math.max(...Ie):Ie[0]),{value:Fe}=K;return t.vertical?{[Fe]:`${at}%`,height:`${He-at}%`}:{[Fe]:`${at}%`,width:`${He-at}%`}}),q=computed(()=>{const Ie=[],{marks:at}=t;if(at){const He=x.value.slice();He.sort((De,Me)=>De-Me);const{value:Fe}=K,{value:dt}=C,{range:gt}=t,Ke=dt?()=>!1:De=>gt?De>=He[0]&&De<=He[He.length-1]:De<=He[0];for(const De of Object.keys(at)){const Me=Number(De);Ie.push({active:Ke(Me),label:at[De],style:{[Fe]:`${ne(Me)}%`}})}}return Ie});function ae(Ie,at){const He=ne(Ie),{value:Fe}=K;return{[Fe]:`${He}%`,zIndex:at===R.value?1:0}}function ie(Ie){return t.showTooltip||Q.value===Ie||R.value===Ie&&Y.value}function oe(Ie){return Y.value?!(R.value===Ie&&O.value===Ie):!0}function J(Ie){var at;~Ie&&(R.value=Ie,(at=d.value.get(Ie))===null||at===void 0||at.focus())}function j(){_.value.forEach((Ie,at)=>{ie(at)&&Ie.syncPosition()})}function re(Ie){const{"onUpdate:value":at,onUpdateValue:He}=t,{nTriggerFormInput:Fe,nTriggerFormChange:dt}=y;He&&call(He,Ie),at&&call(at,Ie),k.value=Ie,Fe(),dt()}function ce(Ie){const{range:at}=t;if(at){if(Array.isArray(Ie)){const{value:He}=x;Ie.join()!==He.join()&&re(Ie)}}else Array.isArray(Ie)||x.value[0]!==Ie&&re(Ie)}function le(Ie,at){if(t.range){const He=x.value.slice();He.splice(at,1,Ie),ce(He)}else ce(Ie)}function se(Ie,at,He){const Fe=He!==void 0;He||(He=Ie-at>0?1:-1);const dt=D.value||[],{step:gt}=t;if(gt==="mark"){const Me=ve(Ie,dt.concat(at),Fe?He:void 0);return Me?Me.value:at}if(gt<=0)return at;const{value:Ke}=B;let De;if(Fe){const Me=Number((at/gt).toFixed(Ke)),Se=Math.floor(Me),Pe=Me>Se?Se:Se-1,ct=Me0)&&(Fe===null||Ke0?1:-1),at)}function xe(Ie){var at,He;if(w.value||!isTouchEvent(Ie)&&Ie.button!==eventButtonLeft)return;const Fe=ze(Ie);if(Fe===void 0)return;const dt=x.value.slice(),gt=t.range?(He=(at=ve(Fe,dt))===null||at===void 0?void 0:at.index)!==null&&He!==void 0?He:-1:0;gt!==-1&&(Ie.preventDefault(),J(gt),tt(),le(se(Fe,x.value[gt]),gt))}function tt(){Y.value||(Y.value=!0,on$1("touchend",document,Ne),on$1("mouseup",document,Ne),on$1("touchmove",document,be),on$1("mousemove",document,be))}function me(){Y.value&&(Y.value=!1,off$1("touchend",document,Ne),off$1("mouseup",document,Ne),off$1("touchmove",document,be),off$1("mousemove",document,be))}function be(Ie){const{value:at}=R;if(!Y.value||at===-1){me();return}const He=ze(Ie);le(se(He,x.value[at]),at)}function Ne(){me()}function qe(Ie){R.value=Ie,w.value||(Q.value=Ie)}function Be(Ie){R.value===Ie&&(R.value=-1,me()),Q.value===Ie&&(Q.value=-1)}function ge(Ie){Q.value=Ie}function ot(Ie){Q.value===Ie&&(Q.value=-1)}watch(R,(Ie,at)=>void nextTick(()=>O.value=at)),watch(S,()=>{if(t.marks){if(W.value)return;W.value=!0,nextTick(()=>{W.value=!1})}nextTick(j)}),onBeforeUnmount(()=>{me()});const lt=computed(()=>{const{self:{markFontSize:Ie,railColor:at,railColorHover:He,fillColor:Fe,fillColorHover:dt,handleColor:gt,opacityDisabled:Ke,dotColor:De,dotColorModal:Me,handleBoxShadow:Se,handleBoxShadowHover:Pe,handleBoxShadowActive:ct,handleBoxShadowFocus:Ue,dotBorder:ye,dotBoxShadow:Qe,railHeight:Ce,railWidthVertical:nt,handleSize:ft,dotHeight:Le,dotWidth:it,dotBorderRadius:_t,fontSize:Ct,dotBorderActive:Je,dotColorPopover:Ee},common:{cubicBezierEaseInOut:Ye}}=s.value;return{"--n-bezier":Ye,"--n-dot-border":ye,"--n-dot-border-active":Je,"--n-dot-border-radius":_t,"--n-dot-box-shadow":Qe,"--n-dot-color":De,"--n-dot-color-modal":Me,"--n-dot-color-popover":Ee,"--n-dot-height":Le,"--n-dot-width":it,"--n-fill-color":Fe,"--n-fill-color-hover":dt,"--n-font-size":Ct,"--n-handle-box-shadow":Se,"--n-handle-box-shadow-active":ct,"--n-handle-box-shadow-focus":Ue,"--n-handle-box-shadow-hover":Pe,"--n-handle-color":gt,"--n-handle-size":ft,"--n-opacity-disabled":Ke,"--n-rail-color":at,"--n-rail-color-hover":He,"--n-rail-height":Ce,"--n-rail-width-vertical":nt,"--n-mark-font-size":Ie}}),ut=r?useThemeClass("slider",void 0,lt,t):void 0,et=computed(()=>{const{self:{fontSize:Ie,indicatorColor:at,indicatorBoxShadow:He,indicatorTextColor:Fe,indicatorBorderRadius:dt}}=s.value;return{"--n-font-size":Ie,"--n-indicator-border-radius":dt,"--n-indicator-box-shadow":He,"--n-indicator-color":at,"--n-indicator-text-color":Fe}}),pt=r?useThemeClass("slider-indicator",void 0,et,t):void 0;return{mergedClsPrefix:o,namespace:n,uncontrolledValue:k,mergedValue:S,mergedDisabled:w,mergedPlacement:I,isMounted:isMounted(),adjustedTo:useAdjustedTo(t),dotTransitionDisabled:W,markInfos:q,isShowTooltip:ie,shouldKeepTooltipTransition:oe,handleRailRef:l,setHandleRefs:m,setFollowerRefs:g,fillStyle:ee,getHandleStyle:ae,activeIndex:R,arrifiedValues:x,followerEnabledIndexSet:v,handleRailMouseDown:xe,handleHandleFocus:qe,handleHandleBlur:Be,handleHandleMouseEnter:ge,handleHandleMouseLeave:ot,handleRailKeyDown:Re,indicatorCssVars:r?void 0:et,indicatorThemeClass:pt==null?void 0:pt.themeClass,indicatorOnRender:pt==null?void 0:pt.onRender,cssVars:r?void 0:lt,themeClass:ut==null?void 0:ut.themeClass,onRender:ut==null?void 0:ut.onRender}},render(){var t;const{mergedClsPrefix:o,themeClass:n,formatTooltip:r}=this;return(t=this.onRender)===null||t===void 0||t.call(this),h("div",{class:[`${o}-slider`,n,{[`${o}-slider--disabled`]:this.mergedDisabled,[`${o}-slider--active`]:this.activeIndex!==-1,[`${o}-slider--with-mark`]:this.marks,[`${o}-slider--vertical`]:this.vertical,[`${o}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},h("div",{class:`${o}-slider-rail`},h("div",{class:`${o}-slider-rail__fill`,style:this.fillStyle}),this.marks?h("div",{class:[`${o}-slider-dots`,this.dotTransitionDisabled&&`${o}-slider-dots--transition-disabled`]},this.markInfos.map(s=>h("div",{key:s.label,class:[`${o}-slider-dot`,{[`${o}-slider-dot--active`]:s.active}],style:s.style}))):null,h("div",{ref:"handleRailRef",class:`${o}-slider-handles`},this.arrifiedValues.map((s,l)=>{const d=this.isShowTooltip(l);return h(VBinder,null,{default:()=>[h(VTarget,null,{default:()=>h("div",{ref:this.setHandleRefs(l),class:`${o}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(s,l),onFocus:()=>{this.handleHandleFocus(l)},onBlur:()=>{this.handleHandleBlur(l)},onMouseenter:()=>{this.handleHandleMouseEnter(l)},onMouseleave:()=>{this.handleHandleMouseLeave(l)}},resolveSlot(this.$slots.thumb,()=>[h("div",{class:`${o}-slider-handle`})]))}),this.tooltip&&h(VFollower,{ref:this.setFollowerRefs(l),show:d,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(l),teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>h(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(l),onEnter:()=>{this.followerEnabledIndexSet.add(l)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(l)}},{default:()=>{var m;return d?((m=this.indicatorOnRender)===null||m===void 0||m.call(this),h("div",{class:[`${o}-slider-handle-indicator`,this.indicatorThemeClass,`${o}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof r=="function"?r(s):s)):null}})})]})})),this.marks?h("div",{class:`${o}-slider-marks`},this.markInfos.map(s=>h("div",{key:s.label,class:`${o}-slider-mark`,style:s.style},s.label))):null))}}),style$4=c$1([c$1("@keyframes spin-rotate",`
+ from {
+ transform: rotate(0);
+ }
+ to {
+ transform: rotate(360deg);
+ }
+ `),cB("spin-container",{position:"relative"},[cB("spin-body",`
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translateX(-50%) translateY(-50%);
+ `,[fadeInTransition()])]),cB("spin-body",`
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ flex-direction: column;
+ `),cB("spin",`
+ display: inline-flex;
+ height: var(--n-size);
+ width: var(--n-size);
+ font-size: var(--n-size);
+ color: var(--n-color);
+ `,[cM("rotate",`
+ animation: spin-rotate 2s linear infinite;
+ `)]),cB("spin-description",`
+ display: inline-block;
+ font-size: var(--n-font-size);
+ color: var(--n-text-color);
+ transition: color .3s var(--n-bezier);
+ margin-top: 8px;
+ `),cB("spin-content",`
+ opacity: 1;
+ transition: opacity .3s var(--n-bezier);
+ pointer-events: all;
+ `,[cM("spinning",`
+ user-select: none;
+ -webkit-user-select: none;
+ pointer-events: none;
+ opacity: var(--n-opacity-spinning);
+ `)])]),STROKE_WIDTH={small:20,medium:18,large:16},spinProps=Object.assign(Object.assign({},useTheme.props),{description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),NSpin=defineComponent({name:"Spin",props:spinProps,setup(t){const{mergedClsPrefixRef:o,inlineThemeDisabled:n}=useConfig(t),r=useTheme("Spin","-spin",style$4,spinLight$1,t,o),s=computed(()=>{const{size:_}=t,{common:{cubicBezierEaseInOut:g},self:v}=r.value,{opacitySpinning:y,color:w,textColor:B}=v,k=typeof _=="number"?pxfy(_):v[createKey("size",_)];return{"--n-bezier":g,"--n-opacity-spinning":y,"--n-size":k,"--n-color":w,"--n-text-color":B}}),l=n?useThemeClass("spin",computed(()=>{const{size:_}=t;return typeof _=="number"?String(_):_[0]}),s,t):void 0,d=useCompitable(t,["spinning","show"]),m=ref(!1);return watchEffect(_=>{let g;if(d.value){const{delay:v}=t;if(v){g=window.setTimeout(()=>{m.value=!0},v),_(()=>{clearTimeout(g)});return}}m.value=d.value}),{mergedClsPrefix:o,active:m,mergedStrokeWidth:computed(()=>{const{strokeWidth:_}=t;if(_!==void 0)return _;const{size:g}=t;return STROKE_WIDTH[typeof g=="number"?"medium":g]}),cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t,o;const{$slots:n,mergedClsPrefix:r,description:s}=this,l=n.icon&&this.rotate,d=(s||n.description)&&h("div",{class:`${r}-spin-description`},s||((t=n.description)===null||t===void 0?void 0:t.call(n))),m=n.icon?h("div",{class:[`${r}-spin-body`,this.themeClass]},h("div",{class:[`${r}-spin`,l&&`${r}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),d):h("div",{class:[`${r}-spin-body`,this.themeClass]},h(NBaseLoading,{clsPrefix:r,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),d);return(o=this.onRender)===null||o===void 0||o.call(this),n.default?h("div",{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},h("div",{class:[`${r}-spin-content`,this.active&&`${r}-spin-content--spinning`]},n),h(Transition,{name:"fade-in-transition"},{default:()=>this.active?m:null})):m}}),style$3=cB("switch",`
+ height: var(--n-height);
+ min-width: var(--n-width);
+ vertical-align: middle;
+ user-select: none;
+ -webkit-user-select: none;
+ display: inline-flex;
+ outline: none;
+ justify-content: center;
+ align-items: center;
+`,[cE("children-placeholder",`
+ height: var(--n-rail-height);
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+ pointer-events: none;
+ visibility: hidden;
+ `),cE("rail-placeholder",`
+ display: flex;
+ flex-wrap: none;
+ `),cE("button-placeholder",`
+ width: calc(1.75 * var(--n-rail-height));
+ height: var(--n-rail-height);
+ `),cB("base-loading",`
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translateX(-50%) translateY(-50%);
+ font-size: calc(var(--n-button-width) - 4px);
+ color: var(--n-loading-color);
+ transition: color .3s var(--n-bezier);
+ `,[iconSwitchTransition({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),cE("checked, unchecked",`
+ transition: color .3s var(--n-bezier);
+ color: var(--n-text-color);
+ box-sizing: border-box;
+ position: absolute;
+ white-space: nowrap;
+ top: 0;
+ bottom: 0;
+ display: flex;
+ align-items: center;
+ line-height: 1;
+ `),cE("checked",`
+ right: 0;
+ padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
+ `),cE("unchecked",`
+ left: 0;
+ justify-content: flex-end;
+ padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
+ `),c$1("&:focus",[cE("rail",`
+ box-shadow: var(--n-box-shadow-focus);
+ `)]),cM("round",[cE("rail","border-radius: calc(var(--n-rail-height) / 2);",[cE("button","border-radius: calc(var(--n-button-height) / 2);")])]),cNotM("disabled",[cNotM("icon",[cM("rubber-band",[cM("pressed",[cE("rail",[cE("button","max-width: var(--n-button-width-pressed);")])]),cE("rail",[c$1("&:active",[cE("button","max-width: var(--n-button-width-pressed);")])]),cM("active",[cM("pressed",[cE("rail",[cE("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),cE("rail",[c$1("&:active",[cE("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),cM("active",[cE("rail",[cE("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),cE("rail",`
+ overflow: hidden;
+ height: var(--n-rail-height);
+ min-width: var(--n-rail-width);
+ border-radius: var(--n-rail-border-radius);
+ cursor: pointer;
+ position: relative;
+ transition:
+ opacity .3s var(--n-bezier),
+ background .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier);
+ background-color: var(--n-rail-color);
+ `,[cE("button-icon",`
+ color: var(--n-icon-color);
+ transition: color .3s var(--n-bezier);
+ font-size: calc(var(--n-button-height) - 4px);
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ line-height: 1;
+ `,[iconSwitchTransition()]),cE("button",`
+ align-items: center;
+ top: var(--n-offset);
+ left: var(--n-offset);
+ height: var(--n-button-height);
+ width: var(--n-button-width-pressed);
+ max-width: var(--n-button-width);
+ border-radius: var(--n-button-border-radius);
+ background-color: var(--n-button-color);
+ box-shadow: var(--n-button-box-shadow);
+ box-sizing: border-box;
+ cursor: inherit;
+ content: "";
+ position: absolute;
+ transition:
+ background-color .3s var(--n-bezier),
+ left .3s var(--n-bezier),
+ opacity .3s var(--n-bezier),
+ max-width .3s var(--n-bezier),
+ box-shadow .3s var(--n-bezier);
+ `)]),cM("active",[cE("rail","background-color: var(--n-rail-color-active);")]),cM("loading",[cE("rail",`
+ cursor: wait;
+ `)]),cM("disabled",[cE("rail",`
+ cursor: not-allowed;
+ opacity: .5;
+ `)])]),switchProps=Object.assign(Object.assign({},useTheme.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let supportCssMax;const NSwitch=defineComponent({name:"Switch",props:switchProps,setup(t){supportCssMax===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?supportCssMax=CSS.supports("width","max(1px)"):supportCssMax=!1:supportCssMax=!0);const{mergedClsPrefixRef:o,inlineThemeDisabled:n}=useConfig(t),r=useTheme("Switch","-switch",style$3,switchLight$1,t,o),s=useFormItem(t),{mergedSizeRef:l,mergedDisabledRef:d}=s,m=ref(t.defaultValue),_=toRef(t,"value"),g=useMergedState(_,m),v=computed(()=>g.value===t.checkedValue),y=ref(!1),w=ref(!1),B=computed(()=>{const{railStyle:Y}=t;if(Y)return Y({focused:w.value,checked:v.value})});function k(Y){const{"onUpdate:value":W,onChange:K,onUpdateValue:ee}=t,{nTriggerFormInput:q,nTriggerFormChange:ae}=s;W&&call(W,Y),ee&&call(ee,Y),K&&call(K,Y),m.value=Y,q(),ae()}function N(){const{nTriggerFormFocus:Y}=s;Y()}function S(){const{nTriggerFormBlur:Y}=s;Y()}function x(){t.loading||d.value||(g.value!==t.checkedValue?k(t.checkedValue):k(t.uncheckedValue))}function C(){w.value=!0,N()}function I(){w.value=!1,S(),y.value=!1}function D(Y){t.loading||d.value||Y.key===" "&&(g.value!==t.checkedValue?k(t.checkedValue):k(t.uncheckedValue),y.value=!1)}function R(Y){t.loading||d.value||Y.key===" "&&(Y.preventDefault(),y.value=!0)}const O=computed(()=>{const{value:Y}=l,{self:{opacityDisabled:W,railColor:K,railColorActive:ee,buttonBoxShadow:q,buttonColor:ae,boxShadowFocus:ie,loadingColor:oe,textColor:J,iconColor:j,[createKey("buttonHeight",Y)]:re,[createKey("buttonWidth",Y)]:ce,[createKey("buttonWidthPressed",Y)]:le,[createKey("railHeight",Y)]:se,[createKey("railWidth",Y)]:te,[createKey("railBorderRadius",Y)]:ne,[createKey("buttonBorderRadius",Y)]:de},common:{cubicBezierEaseInOut:fe}}=r.value;let ve,ze,Re;return supportCssMax?(ve=`calc((${se} - ${re}) / 2)`,ze=`max(${se}, ${re})`,Re=`max(${te}, calc(${te} + ${re} - ${se}))`):(ve=pxfy((depx(se)-depx(re))/2),ze=pxfy(Math.max(depx(se),depx(re))),Re=depx(se)>depx(re)?te:pxfy(depx(te)+depx(re)-depx(se))),{"--n-bezier":fe,"--n-button-border-radius":de,"--n-button-box-shadow":q,"--n-button-color":ae,"--n-button-width":ce,"--n-button-width-pressed":le,"--n-button-height":re,"--n-height":ze,"--n-offset":ve,"--n-opacity-disabled":W,"--n-rail-border-radius":ne,"--n-rail-color":K,"--n-rail-color-active":ee,"--n-rail-height":se,"--n-rail-width":te,"--n-width":Re,"--n-box-shadow-focus":ie,"--n-loading-color":oe,"--n-text-color":J,"--n-icon-color":j}}),Q=n?useThemeClass("switch",computed(()=>l.value[0]),O,t):void 0;return{handleClick:x,handleBlur:I,handleFocus:C,handleKeyup:D,handleKeydown:R,mergedRailStyle:B,pressed:y,mergedClsPrefix:o,mergedValue:g,checked:v,mergedDisabled:d,cssVars:n?void 0:O,themeClass:Q==null?void 0:Q.themeClass,onRender:Q==null?void 0:Q.onRender}},render(){const{mergedClsPrefix:t,mergedDisabled:o,checked:n,mergedRailStyle:r,onRender:s,$slots:l}=this;s==null||s();const{checked:d,unchecked:m,icon:_,"checked-icon":g,"unchecked-icon":v}=l,y=!(isSlotEmpty(_)&&isSlotEmpty(g)&&isSlotEmpty(v));return h("div",{role:"switch","aria-checked":n,class:[`${t}-switch`,this.themeClass,y&&`${t}-switch--icon`,n&&`${t}-switch--active`,o&&`${t}-switch--disabled`,this.round&&`${t}-switch--round`,this.loading&&`${t}-switch--loading`,this.pressed&&`${t}-switch--pressed`,this.rubberBand&&`${t}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},h("div",{class:`${t}-switch__rail`,"aria-hidden":"true",style:r},resolveWrappedSlot(d,w=>resolveWrappedSlot(m,B=>w||B?h("div",{"aria-hidden":!0,class:`${t}-switch__children-placeholder`},h("div",{class:`${t}-switch__rail-placeholder`},h("div",{class:`${t}-switch__button-placeholder`}),w),h("div",{class:`${t}-switch__rail-placeholder`},h("div",{class:`${t}-switch__button-placeholder`}),B)):null)),h("div",{class:`${t}-switch__button`},resolveWrappedSlot(_,w=>resolveWrappedSlot(g,B=>resolveWrappedSlot(v,k=>h(NIconSwitchTransition,null,{default:()=>this.loading?h(NBaseLoading,{key:"loading",clsPrefix:t,strokeWidth:20}):this.checked&&(B||w)?h("div",{class:`${t}-switch__button-icon`,key:B?"checked-icon":"icon"},B||w):!this.checked&&(k||w)?h("div",{class:`${t}-switch__button-icon`,key:k?"unchecked-icon":"icon"},k||w):null})))),resolveWrappedSlot(d,w=>w&&h("div",{key:"checked",class:`${t}-switch__checked`},w)),resolveWrappedSlot(m,w=>w&&h("div",{key:"unchecked",class:`${t}-switch__unchecked`},w)))))}}),style$2=c$1([cB("table",`
+ font-size: var(--n-font-size);
+ font-variant-numeric: tabular-nums;
+ line-height: var(--n-line-height);
+ width: 100%;
+ border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
+ text-align: left;
+ border-collapse: separate;
+ border-spacing: 0;
+ overflow: hidden;
+ background-color: var(--n-td-color);
+ border-color: var(--n-merged-border-color);
+ transition:
+ background-color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ --n-merged-border-color: var(--n-border-color);
+ `,[c$1("th",`
+ white-space: nowrap;
+ transition:
+ background-color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ text-align: inherit;
+ padding: var(--n-th-padding);
+ vertical-align: inherit;
+ text-transform: none;
+ border: 0px solid var(--n-merged-border-color);
+ font-weight: var(--n-th-font-weight);
+ color: var(--n-th-text-color);
+ background-color: var(--n-th-color);
+ border-bottom: 1px solid var(--n-merged-border-color);
+ border-right: 1px solid var(--n-merged-border-color);
+ `,[c$1("&:last-child",`
+ border-right: 0px solid var(--n-merged-border-color);
+ `)]),c$1("td",`
+ transition:
+ background-color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ padding: var(--n-td-padding);
+ color: var(--n-td-text-color);
+ background-color: var(--n-td-color);
+ border: 0px solid var(--n-merged-border-color);
+ border-right: 1px solid var(--n-merged-border-color);
+ border-bottom: 1px solid var(--n-merged-border-color);
+ `,[c$1("&:last-child",`
+ border-right: 0px solid var(--n-merged-border-color);
+ `)]),cM("bordered",`
+ border: 1px solid var(--n-merged-border-color);
+ border-radius: var(--n-border-radius);
+ `,[c$1("tr",[c$1("&:last-child",[c$1("td",`
+ border-bottom: 0 solid var(--n-merged-border-color);
+ `)])])]),cM("single-line",[c$1("th",`
+ border-right: 0px solid var(--n-merged-border-color);
+ `),c$1("td",`
+ border-right: 0px solid var(--n-merged-border-color);
+ `)]),cM("single-column",[c$1("tr",[c$1("&:not(:last-child)",[c$1("td",`
+ border-bottom: 0px solid var(--n-merged-border-color);
+ `)])])]),cM("striped",[c$1("tr:nth-of-type(even)",[c$1("td","background-color: var(--n-td-color-striped)")])]),cNotM("bottom-bordered",[c$1("tr",[c$1("&:last-child",[c$1("td",`
+ border-bottom: 0px solid var(--n-merged-border-color);
+ `)])])])]),insideModal(cB("table",`
+ background-color: var(--n-td-color-modal);
+ --n-merged-border-color: var(--n-border-color-modal);
+ `,[c$1("th",`
+ background-color: var(--n-th-color-modal);
+ `),c$1("td",`
+ background-color: var(--n-td-color-modal);
+ `)])),insidePopover(cB("table",`
+ background-color: var(--n-td-color-popover);
+ --n-merged-border-color: var(--n-border-color-popover);
+ `,[c$1("th",`
+ background-color: var(--n-th-color-popover);
+ `),c$1("td",`
+ background-color: var(--n-td-color-popover);
+ `)]))]),tableProps=Object.assign(Object.assign({},useTheme.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),NTable=defineComponent({name:"Table",props:tableProps,setup(t){const{mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=useConfig(t),s=useTheme("Table","-table",style$2,tableLight$1,t,o),l=useRtl("Table",r,o),d=computed(()=>{const{size:_}=t,{self:{borderColor:g,tdColor:v,tdColorModal:y,tdColorPopover:w,thColor:B,thColorModal:k,thColorPopover:N,thTextColor:S,tdTextColor:x,borderRadius:C,thFontWeight:I,lineHeight:D,borderColorModal:R,borderColorPopover:O,tdColorStriped:Q,tdColorStripedModal:Y,tdColorStripedPopover:W,[createKey("fontSize",_)]:K,[createKey("tdPadding",_)]:ee,[createKey("thPadding",_)]:q},common:{cubicBezierEaseInOut:ae}}=s.value;return{"--n-bezier":ae,"--n-td-color":v,"--n-td-color-modal":y,"--n-td-color-popover":w,"--n-td-text-color":x,"--n-border-color":g,"--n-border-color-modal":R,"--n-border-color-popover":O,"--n-border-radius":C,"--n-font-size":K,"--n-th-color":B,"--n-th-color-modal":k,"--n-th-color-popover":N,"--n-th-font-weight":I,"--n-th-text-color":S,"--n-line-height":D,"--n-td-padding":ee,"--n-th-padding":q,"--n-td-color-striped":Q,"--n-td-color-striped-modal":Y,"--n-td-color-striped-popover":W}}),m=n?useThemeClass("table",computed(()=>t.size[0]),d,t):void 0;return{rtlEnabled:l,mergedClsPrefix:o,cssVars:n?void 0:d,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender}},render(){var t;const{mergedClsPrefix:o}=this;return(t=this.onRender)===null||t===void 0||t.call(this),h("table",{class:[`${o}-table`,this.themeClass,{[`${o}-table--rtl`]:this.rtlEnabled,[`${o}-table--bottom-bordered`]:this.bottomBordered,[`${o}-table--bordered`]:this.bordered,[`${o}-table--single-line`]:this.singleLine,[`${o}-table--single-column`]:this.singleColumn,[`${o}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),tabsInjectionKey="n-tabs",tabPaneProps={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},NTabPane=defineComponent({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:tabPaneProps,setup(t){const o=inject(tabsInjectionKey,null);return o||throwError("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:o.paneStyleRef,class:o.paneClassRef,mergedClsPrefix:o.mergedClsPrefixRef}},render(){return h("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),tabProps=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},omit(tabPaneProps,["displayDirective"])),NTab=defineComponent({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:tabProps,setup(t){const{mergedClsPrefixRef:o,valueRef:n,typeRef:r,closableRef:s,tabStyleRef:l,tabChangeIdRef:d,onBeforeLeaveRef:m,triggerRef:_,handleAdd:g,activateTab:v,handleClose:y}=inject(tabsInjectionKey);return{trigger:_,mergedClosable:computed(()=>{if(t.internalAddable)return!1;const{closable:w}=t;return w===void 0?s.value:w}),style:l,clsPrefix:o,value:n,type:r,handleClose(w){w.stopPropagation(),!t.disabled&&y(t.name)},activateTab(){if(t.disabled)return;if(t.internalAddable){g();return}const{name:w}=t,B=++d.id;if(w!==n.value){const{value:k}=m;k?Promise.resolve(k(t.name,n.value)).then(N=>{N&&d.id===B&&v(w)}):v(w)}}}},render(){const{internalAddable:t,clsPrefix:o,name:n,disabled:r,label:s,tab:l,value:d,mergedClosable:m,style:_,trigger:g,$slots:{default:v}}=this,y=s??l;return h("div",{class:`${o}-tabs-tab-wrapper`},this.internalLeftPadded?h("div",{class:`${o}-tabs-tab-pad`}):null,h("div",Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},mergeProps({class:[`${o}-tabs-tab`,d===n&&`${o}-tabs-tab--active`,r&&`${o}-tabs-tab--disabled`,m&&`${o}-tabs-tab--closable`,t&&`${o}-tabs-tab--addable`],onClick:g==="click"?this.activateTab:void 0,onMouseenter:g==="hover"?this.activateTab:void 0,style:t?void 0:_},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),h("span",{class:`${o}-tabs-tab__label`},t?h(Fragment,null,h("div",{class:`${o}-tabs-tab__height-placeholder`}," "),h(NBaseIcon,{clsPrefix:o},{default:()=>h(AddIcon,null)})):v?v():typeof y=="object"?y:render$6(y??n)),m&&this.type==="card"?h(NBaseClose,{clsPrefix:o,class:`${o}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),style$1=cB("tabs",`
+ box-sizing: border-box;
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ transition:
+ background-color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+`,[cM("segment-type",[cB("tabs-rail",[c$1("&.transition-disabled","color: red;",[cB("tabs-tab",`
+ transition: none;
+ `)])])]),cM("top",[cB("tab-pane",`
+ padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left);
+ `)]),cM("left",[cB("tab-pane",`
+ padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top);
+ `)]),cM("left, right",`
+ flex-direction: row;
+ `,[cB("tabs-bar",`
+ width: 2px;
+ right: 0;
+ transition:
+ top .2s var(--n-bezier),
+ max-height .2s var(--n-bezier),
+ background-color .3s var(--n-bezier);
+ `),cB("tabs-tab",`
+ padding: var(--n-tab-padding-vertical);
+ `)]),cM("right",`
+ flex-direction: row-reverse;
+ `,[cB("tab-pane",`
+ padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom);
+ `),cB("tabs-bar",`
+ left: 0;
+ `)]),cM("bottom",`
+ flex-direction: column-reverse;
+ justify-content: flex-end;
+ `,[cB("tab-pane",`
+ padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left);
+ `),cB("tabs-bar",`
+ top: 0;
+ `)]),cB("tabs-rail",`
+ padding: 3px;
+ border-radius: var(--n-tab-border-radius);
+ width: 100%;
+ background-color: var(--n-color-segment);
+ transition: background-color .3s var(--n-bezier);
+ display: flex;
+ align-items: center;
+ `,[cB("tabs-tab-wrapper",`
+ flex-basis: 0;
+ flex-grow: 1;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ `,[cB("tabs-tab",`
+ overflow: hidden;
+ border-radius: var(--n-tab-border-radius);
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ `,[cM("active",`
+ font-weight: var(--n-font-weight-strong);
+ color: var(--n-tab-text-color-active);
+ background-color: var(--n-tab-color-segment);
+ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
+ `),c$1("&:hover",`
+ color: var(--n-tab-text-color-hover);
+ `)])])]),cM("flex",[cB("tabs-nav",{width:"100%"},[cB("tabs-wrapper",{width:"100%"},[cB("tabs-tab",{marginRight:0})])])]),cB("tabs-nav",`
+ box-sizing: border-box;
+ line-height: 1.5;
+ display: flex;
+ transition: border-color .3s var(--n-bezier);
+ `,[cE("prefix, suffix",`
+ display: flex;
+ align-items: center;
+ `),cE("prefix","padding-right: 16px;"),cE("suffix","padding-left: 16px;")]),cM("top, bottom",[cB("tabs-nav-scroll-wrapper",[c$1("&::before",`
+ top: 0;
+ bottom: 0;
+ left: 0;
+ width: 20px;
+ `),c$1("&::after",`
+ top: 0;
+ bottom: 0;
+ right: 0;
+ width: 20px;
+ `),cM("shadow-start",[c$1("&::before",`
+ box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
+ `)]),cM("shadow-end",[c$1("&::after",`
+ box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
+ `)])])]),cM("left, right",[cB("tabs-nav-scroll-wrapper",[c$1("&::before",`
+ top: 0;
+ left: 0;
+ right: 0;
+ height: 20px;
+ `),c$1("&::after",`
+ bottom: 0;
+ left: 0;
+ right: 0;
+ height: 20px;
+ `),cM("shadow-start",[c$1("&::before",`
+ box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12);
+ `)]),cM("shadow-end",[c$1("&::after",`
+ box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12);
+ `)])])]),cB("tabs-nav-scroll-wrapper",`
+ flex: 1;
+ position: relative;
+ overflow: hidden;
+ `,[cB("tabs-nav-y-scroll",`
+ height: 100%;
+ width: 100%;
+ overflow-y: auto;
+ scrollbar-width: none;
+ `,[c$1("&::-webkit-scrollbar",`
+ width: 0;
+ height: 0;
+ `)]),c$1("&::before, &::after",`
+ transition: box-shadow .3s var(--n-bezier);
+ pointer-events: none;
+ content: "";
+ position: absolute;
+ z-index: 1;
+ `)]),cB("tabs-nav-scroll-content",`
+ display: flex;
+ position: relative;
+ min-width: 100%;
+ width: fit-content;
+ box-sizing: border-box;
+ `),cB("tabs-wrapper",`
+ display: inline-flex;
+ flex-wrap: nowrap;
+ position: relative;
+ `),cB("tabs-tab-wrapper",`
+ display: flex;
+ flex-wrap: nowrap;
+ flex-shrink: 0;
+ flex-grow: 0;
+ `),cB("tabs-tab",`
+ cursor: pointer;
+ white-space: nowrap;
+ flex-wrap: nowrap;
+ display: inline-flex;
+ align-items: center;
+ color: var(--n-tab-text-color);
+ font-size: var(--n-tab-font-size);
+ background-clip: padding-box;
+ padding: var(--n-tab-padding);
+ transition:
+ box-shadow .3s var(--n-bezier),
+ color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ border-color .3s var(--n-bezier);
+ `,[cM("disabled",{cursor:"not-allowed"}),cE("close",`
+ margin-left: 6px;
+ transition:
+ background-color .3s var(--n-bezier),
+ color .3s var(--n-bezier);
+ `),cE("label",`
+ display: flex;
+ align-items: center;
+ `)]),cB("tabs-bar",`
+ position: absolute;
+ bottom: 0;
+ height: 2px;
+ border-radius: 1px;
+ background-color: var(--n-bar-color);
+ transition:
+ left .2s var(--n-bezier),
+ max-width .2s var(--n-bezier),
+ background-color .3s var(--n-bezier);
+ `,[c$1("&.transition-disabled",`
+ transition: none;
+ `),cM("disabled",`
+ background-color: var(--n-tab-text-color-disabled)
+ `)]),cB("tabs-pane-wrapper",`
+ position: relative;
+ overflow: hidden;
+ transition: max-height .2s var(--n-bezier);
+ `),cB("tab-pane",`
+ color: var(--n-pane-text-color);
+ width: 100%;
+ transition:
+ color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ opacity .2s var(--n-bezier);
+ left: 0;
+ right: 0;
+ top: 0;
+ `,[c$1("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",`
+ transition:
+ color .3s var(--n-bezier),
+ background-color .3s var(--n-bezier),
+ transform .2s var(--n-bezier),
+ opacity .2s var(--n-bezier);
+ `),c$1("&.next-transition-leave-active, &.prev-transition-leave-active",`
+ position: absolute;
+ `),c$1("&.next-transition-enter-from, &.prev-transition-leave-to",`
+ transform: translateX(32px);
+ opacity: 0;
+ `),c$1("&.next-transition-leave-to, &.prev-transition-enter-from",`
+ transform: translateX(-32px);
+ opacity: 0;
+ `),c$1("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",`
+ transform: translateX(0);
+ opacity: 1;
+ `)]),cB("tabs-tab-pad",`
+ box-sizing: border-box;
+ width: var(--n-tab-gap);
+ flex-grow: 0;
+ flex-shrink: 0;
+ `),cM("line-type, bar-type",[cB("tabs-tab",`
+ font-weight: var(--n-tab-font-weight);
+ box-sizing: border-box;
+ vertical-align: bottom;
+ `,[c$1("&:hover",{color:"var(--n-tab-text-color-hover)"}),cM("active",`
+ color: var(--n-tab-text-color-active);
+ font-weight: var(--n-tab-font-weight-active);
+ `),cM("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),cB("tabs-nav",[cM("line-type",[cM("top",[cE("prefix, suffix",`
+ border-bottom: 1px solid var(--n-tab-border-color);
+ `),cB("tabs-nav-scroll-content",`
+ border-bottom: 1px solid var(--n-tab-border-color);
+ `),cB("tabs-bar",`
+ bottom: -1px;
+ `)]),cM("left",[cE("prefix, suffix",`
+ border-right: 1px solid var(--n-tab-border-color);
+ `),cB("tabs-nav-scroll-content",`
+ border-right: 1px solid var(--n-tab-border-color);
+ `),cB("tabs-bar",`
+ right: -1px;
+ `)]),cM("right",[cE("prefix, suffix",`
+ border-left: 1px solid var(--n-tab-border-color);
+ `),cB("tabs-nav-scroll-content",`
+ border-left: 1px solid var(--n-tab-border-color);
+ `),cB("tabs-bar",`
+ left: -1px;
+ `)]),cM("bottom",[cE("prefix, suffix",`
+ border-top: 1px solid var(--n-tab-border-color);
+ `),cB("tabs-nav-scroll-content",`
+ border-top: 1px solid var(--n-tab-border-color);
+ `),cB("tabs-bar",`
+ top: -1px;
+ `)]),cE("prefix, suffix",`
+ transition: border-color .3s var(--n-bezier);
+ `),cB("tabs-nav-scroll-content",`
+ transition: border-color .3s var(--n-bezier);
+ `),cB("tabs-bar",`
+ border-radius: 0;
+ `)]),cM("card-type",[cE("prefix, suffix",`
+ transition: border-color .3s var(--n-bezier);
+ border-bottom: 1px solid var(--n-tab-border-color);
+ `),cB("tabs-pad",`
+ flex-grow: 1;
+ transition: border-color .3s var(--n-bezier);
+ border-bottom: 1px solid var(--n-tab-border-color);
+ `),cB("tabs-tab-pad",`
+ transition: border-color .3s var(--n-bezier);
+ `),cB("tabs-tab",`
+ font-weight: var(--n-tab-font-weight);
+ border: 1px solid var(--n-tab-border-color);
+ background-color: var(--n-tab-color);
+ box-sizing: border-box;
+ position: relative;
+ vertical-align: bottom;
+ display: flex;
+ justify-content: space-between;
+ font-size: var(--n-tab-font-size);
+ color: var(--n-tab-text-color);
+ `,[cM("addable",`
+ padding-left: 8px;
+ padding-right: 8px;
+ font-size: 16px;
+ `,[cE("height-placeholder",`
+ width: 0;
+ font-size: var(--n-tab-font-size);
+ `),cNotM("disabled",[c$1("&:hover",`
+ color: var(--n-tab-text-color-hover);
+ `)])]),cM("closable","padding-right: 8px;"),cM("active",`
+ background-color: #0000;
+ font-weight: var(--n-tab-font-weight-active);
+ color: var(--n-tab-text-color-active);
+ `),cM("disabled","color: var(--n-tab-text-color-disabled);")]),cB("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),cM("left, right",[cB("tabs-wrapper",`
+ flex-direction: column;
+ `,[cB("tabs-tab-wrapper",`
+ flex-direction: column;
+ `,[cB("tabs-tab-pad",`
+ height: var(--n-tab-gap-vertical);
+ width: 100%;
+ `)])])]),cM("top",[cM("card-type",[cB("tabs-tab",`
+ border-top-left-radius: var(--n-tab-border-radius);
+ border-top-right-radius: var(--n-tab-border-radius);
+ `,[cM("active",`
+ border-bottom: 1px solid #0000;
+ `)]),cB("tabs-tab-pad",`
+ border-bottom: 1px solid var(--n-tab-border-color);
+ `)])]),cM("left",[cM("card-type",[cB("tabs-tab",`
+ border-top-left-radius: var(--n-tab-border-radius);
+ border-bottom-left-radius: var(--n-tab-border-radius);
+ `,[cM("active",`
+ border-right: 1px solid #0000;
+ `)]),cB("tabs-tab-pad",`
+ border-right: 1px solid var(--n-tab-border-color);
+ `)])]),cM("right",[cM("card-type",[cB("tabs-tab",`
+ border-top-right-radius: var(--n-tab-border-radius);
+ border-bottom-right-radius: var(--n-tab-border-radius);
+ `,[cM("active",`
+ border-left: 1px solid #0000;
+ `)]),cB("tabs-tab-pad",`
+ border-left: 1px solid var(--n-tab-border-color);
+ `)])]),cM("bottom",[cM("card-type",[cB("tabs-tab",`
+ border-bottom-left-radius: var(--n-tab-border-radius);
+ border-bottom-right-radius: var(--n-tab-border-radius);
+ `,[cM("active",`
+ border-top: 1px solid #0000;
+ `)]),cB("tabs-tab-pad",`
+ border-top: 1px solid var(--n-tab-border-color);
+ `)])])])]),tabsProps=Object.assign(Object.assign({},useTheme.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),NTabs=defineComponent({name:"Tabs",props:tabsProps,setup(t,{slots:o}){var n,r,s,l;const{mergedClsPrefixRef:d,inlineThemeDisabled:m}=useConfig(t),_=useTheme("Tabs","-tabs",style$1,tabsLight$1,t,d),g=ref(null),v=ref(null),y=ref(null),w=ref(null),B=ref(null),k=ref(!0),N=ref(!0),S=useCompitable(t,["labelSize","size"]),x=useCompitable(t,["activeName","value"]),C=ref((r=(n=x.value)!==null&&n!==void 0?n:t.defaultValue)!==null&&r!==void 0?r:o.default?(l=(s=flatten$3(o.default())[0])===null||s===void 0?void 0:s.props)===null||l===void 0?void 0:l.name:null),I=useMergedState(x,C),D={id:0},R=computed(()=>{if(!(!t.justifyContent||t.type==="card"))return{display:"flex",justifyContent:t.justifyContent}});watch(I,()=>{D.id=0,W(),K()});function O(){var Be;const{value:ge}=I;return ge===null?null:(Be=g.value)===null||Be===void 0?void 0:Be.querySelector(`[data-name="${ge}"]`)}function Q(Be){if(t.type==="card")return;const{value:ge}=v;if(ge&&Be){const ot=`${d.value}-tabs-bar--disabled`,{barWidth:lt,placement:ut}=t;if(Be.dataset.disabled==="true"?ge.classList.add(ot):ge.classList.remove(ot),["top","bottom"].includes(ut)){if(Y(["top","maxHeight","height"]),typeof lt=="number"&&Be.offsetWidth>=lt){const et=Math.floor((Be.offsetWidth-lt)/2)+Be.offsetLeft;ge.style.left=`${et}px`,ge.style.maxWidth=`${lt}px`}else ge.style.left=`${Be.offsetLeft}px`,ge.style.maxWidth=`${Be.offsetWidth}px`;ge.style.width="8192px",ge.offsetWidth}else{if(Y(["left","maxWidth","width"]),typeof lt=="number"&&Be.offsetHeight>=lt){const et=Math.floor((Be.offsetHeight-lt)/2)+Be.offsetTop;ge.style.top=`${et}px`,ge.style.maxHeight=`${lt}px`}else ge.style.top=`${Be.offsetTop}px`,ge.style.maxHeight=`${Be.offsetHeight}px`;ge.style.height="8192px",ge.offsetHeight}}}function Y(Be){const{value:ge}=v;if(ge)for(const ot of Be)ge.style[ot]=""}function W(){if(t.type==="card")return;const Be=O();Be&&Q(Be)}function K(Be){var ge;const ot=(ge=B.value)===null||ge===void 0?void 0:ge.$el;if(!ot)return;const lt=O();if(!lt)return;const{scrollLeft:ut,offsetWidth:et}=ot,{offsetLeft:pt,offsetWidth:Ie}=lt;ut>pt?ot.scrollTo({top:0,left:pt,behavior:"smooth"}):pt+Ie>ut+et&&ot.scrollTo({top:0,left:pt+Ie-et,behavior:"smooth"})}const ee=ref(null);let q=0,ae=null;function ie(Be){const ge=ee.value;if(ge){q=Be.getBoundingClientRect().height;const ot=`${q}px`,lt=()=>{ge.style.height=ot,ge.style.maxHeight=ot};ae?(lt(),ae(),ae=null):ae=lt}}function oe(Be){const ge=ee.value;if(ge){const ot=Be.getBoundingClientRect().height,lt=()=>{document.body.offsetHeight,ge.style.maxHeight=`${ot}px`,ge.style.height=`${Math.max(q,ot)}px`};ae?(ae(),ae=null,lt()):ae=lt}}function J(){const Be=ee.value;if(Be){Be.style.maxHeight="",Be.style.height="";const{paneWrapperStyle:ge}=t;if(typeof ge=="string")Be.style.cssText=ge;else if(ge){const{maxHeight:ot,height:lt}=ge;ot!==void 0&&(Be.style.maxHeight=ot),lt!==void 0&&(Be.style.height=lt)}}}const j={value:[]},re=ref("next");function ce(Be){const ge=I.value;let ot="next";for(const lt of j.value){if(lt===ge)break;if(lt===Be){ot="prev";break}}re.value=ot,le(Be)}function le(Be){const{onActiveNameChange:ge,onUpdateValue:ot,"onUpdate:value":lt}=t;ge&&call(ge,Be),ot&&call(ot,Be),lt&&call(lt,Be),C.value=Be}function se(Be){const{onClose:ge}=t;ge&&call(ge,Be)}function te(){const{value:Be}=v;if(!Be)return;const ge="transition-disabled";Be.classList.add(ge),W(),Be.classList.remove(ge)}let ne=0;function de(Be){var ge;if(Be.contentRect.width===0&&Be.contentRect.height===0||ne===Be.contentRect.width)return;ne=Be.contentRect.width;const{type:ot}=t;(ot==="line"||ot==="bar")&&te(),ot!=="segment"&&xe((ge=B.value)===null||ge===void 0?void 0:ge.$el)}const fe=throttle$1(de,64);watch([()=>t.justifyContent,()=>t.size],()=>{nextTick(()=>{const{type:Be}=t;(Be==="line"||Be==="bar")&&te()})});const ve=ref(!1);function ze(Be){var ge;const{target:ot,contentRect:{width:lt}}=Be,ut=ot.parentElement.offsetWidth;if(!ve.value)utet.$el.offsetWidth&&(ve.value=!1)}xe((ge=B.value)===null||ge===void 0?void 0:ge.$el)}const Re=throttle$1(ze,64);function ke(){const{onAdd:Be}=t;Be&&Be(),nextTick(()=>{const ge=O(),{value:ot}=B;!ge||!ot||ot.scrollTo({left:ge.offsetLeft,top:0,behavior:"smooth"})})}function xe(Be){if(!Be)return;const{placement:ge}=t;if(ge==="top"||ge==="bottom"){const{scrollLeft:ot,scrollWidth:lt,offsetWidth:ut}=Be;k.value=ot<=0,N.value=ot+ut>=lt}else{const{scrollTop:ot,scrollHeight:lt,offsetHeight:ut}=Be;k.value=ot<=0,N.value=ot+ut>=lt}}const tt=throttle$1(Be=>{xe(Be.target)},64);provide(tabsInjectionKey,{triggerRef:toRef(t,"trigger"),tabStyleRef:toRef(t,"tabStyle"),paneClassRef:toRef(t,"paneClass"),paneStyleRef:toRef(t,"paneStyle"),mergedClsPrefixRef:d,typeRef:toRef(t,"type"),closableRef:toRef(t,"closable"),valueRef:I,tabChangeIdRef:D,onBeforeLeaveRef:toRef(t,"onBeforeLeave"),activateTab:ce,handleClose:se,handleAdd:ke}),onFontsReady(()=>{W(),K()}),watchEffect(()=>{const{value:Be}=y;if(!Be)return;const{value:ge}=d,ot=`${ge}-tabs-nav-scroll-wrapper--shadow-start`,lt=`${ge}-tabs-nav-scroll-wrapper--shadow-end`;k.value?Be.classList.remove(ot):Be.classList.add(ot),N.value?Be.classList.remove(lt):Be.classList.add(lt)});const me=ref(null);watch(I,()=>{if(t.type==="segment"){const Be=me.value;Be&&nextTick(()=>{Be.classList.add("transition-disabled"),Be.offsetWidth,Be.classList.remove("transition-disabled")})}});const be={syncBarPosition:()=>{W()}},Ne=computed(()=>{const{value:Be}=S,{type:ge}=t,ot={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[ge],lt=`${Be}${ot}`,{self:{barColor:ut,closeIconColor:et,closeIconColorHover:pt,closeIconColorPressed:Ie,tabColor:at,tabBorderColor:He,paneTextColor:Fe,tabFontWeight:dt,tabBorderRadius:gt,tabFontWeightActive:Ke,colorSegment:De,fontWeightStrong:Me,tabColorSegment:Se,closeSize:Pe,closeIconSize:ct,closeColorHover:Ue,closeColorPressed:ye,closeBorderRadius:Qe,[createKey("panePadding",Be)]:Ce,[createKey("tabPadding",lt)]:nt,[createKey("tabPaddingVertical",lt)]:ft,[createKey("tabGap",lt)]:Le,[createKey("tabGap",`${lt}Vertical`)]:it,[createKey("tabTextColor",ge)]:_t,[createKey("tabTextColorActive",ge)]:Ct,[createKey("tabTextColorHover",ge)]:Je,[createKey("tabTextColorDisabled",ge)]:Ee,[createKey("tabFontSize",Be)]:Ye},common:{cubicBezierEaseInOut:mt}}=_.value;return{"--n-bezier":mt,"--n-color-segment":De,"--n-bar-color":ut,"--n-tab-font-size":Ye,"--n-tab-text-color":_t,"--n-tab-text-color-active":Ct,"--n-tab-text-color-disabled":Ee,"--n-tab-text-color-hover":Je,"--n-pane-text-color":Fe,"--n-tab-border-color":He,"--n-tab-border-radius":gt,"--n-close-size":Pe,"--n-close-icon-size":ct,"--n-close-color-hover":Ue,"--n-close-color-pressed":ye,"--n-close-border-radius":Qe,"--n-close-icon-color":et,"--n-close-icon-color-hover":pt,"--n-close-icon-color-pressed":Ie,"--n-tab-color":at,"--n-tab-font-weight":dt,"--n-tab-font-weight-active":Ke,"--n-tab-padding":nt,"--n-tab-padding-vertical":ft,"--n-tab-gap":Le,"--n-tab-gap-vertical":it,"--n-pane-padding-left":getMargin(Ce,"left"),"--n-pane-padding-right":getMargin(Ce,"right"),"--n-pane-padding-top":getMargin(Ce,"top"),"--n-pane-padding-bottom":getMargin(Ce,"bottom"),"--n-font-weight-strong":Me,"--n-tab-color-segment":Se}}),qe=m?useThemeClass("tabs",computed(()=>`${S.value[0]}${t.type[0]}`),Ne,t):void 0;return Object.assign({mergedClsPrefix:d,mergedValue:I,renderedNames:new Set,tabsRailElRef:me,tabsPaneWrapperRef:ee,tabsElRef:g,barElRef:v,addTabInstRef:w,xScrollInstRef:B,scrollWrapperElRef:y,addTabFixed:ve,tabWrapperStyle:R,handleNavResize:fe,mergedSize:S,handleScroll:tt,handleTabsResize:Re,cssVars:m?void 0:Ne,themeClass:qe==null?void 0:qe.themeClass,animationDirection:re,renderNameListRef:j,onAnimationBeforeLeave:ie,onAnimationEnter:oe,onAnimationAfterEnter:J,onRender:qe==null?void 0:qe.onRender},be)},render(){const{mergedClsPrefix:t,type:o,placement:n,addTabFixed:r,addable:s,mergedSize:l,renderNameListRef:d,onRender:m,paneWrapperClass:_,paneWrapperStyle:g,$slots:{default:v,prefix:y,suffix:w}}=this;m==null||m();const B=v?flatten$3(v()).filter(R=>R.type.__TAB_PANE__===!0):[],k=v?flatten$3(v()).filter(R=>R.type.__TAB__===!0):[],N=!k.length,S=o==="card",x=o==="segment",C=!S&&!x&&this.justifyContent;d.value=[];const I=()=>{const R=h("div",{style:this.tabWrapperStyle,class:[`${t}-tabs-wrapper`]},C?null:h("div",{class:`${t}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),N?B.map((O,Q)=>(d.value.push(O.props.name),justifyTabDynamicProps(h(NTab,Object.assign({},O.props,{internalCreatedByPane:!0,internalLeftPadded:Q!==0&&(!C||C==="center"||C==="start"||C==="end")}),O.children?{default:O.children.tab}:void 0)))):k.map((O,Q)=>(d.value.push(O.props.name),justifyTabDynamicProps(Q!==0&&!C?createLeftPaddedTabVNode(O):O))),!r&&s&&S?createAddTag(s,(N?B.length:k.length)!==0):null,C?null:h("div",{class:`${t}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return h("div",{ref:"tabsElRef",class:`${t}-tabs-nav-scroll-content`},S&&s?h(VResizeObserver,{onResize:this.handleTabsResize},{default:()=>R}):R,S?h("div",{class:`${t}-tabs-pad`}):null,S?null:h("div",{ref:"barElRef",class:`${t}-tabs-bar`}))},D=x?"top":n;return h("div",{class:[`${t}-tabs`,this.themeClass,`${t}-tabs--${o}-type`,`${t}-tabs--${l}-size`,C&&`${t}-tabs--flex`,`${t}-tabs--${D}`],style:this.cssVars},h("div",{class:[`${t}-tabs-nav--${o}-type`,`${t}-tabs-nav--${D}`,`${t}-tabs-nav`]},resolveWrappedSlot(y,R=>R&&h("div",{class:`${t}-tabs-nav__prefix`},R)),x?h("div",{class:`${t}-tabs-rail`,ref:"tabsRailElRef"},N?B.map((R,O)=>(d.value.push(R.props.name),h(NTab,Object.assign({},R.props,{internalCreatedByPane:!0,internalLeftPadded:O!==0}),R.children?{default:R.children.tab}:void 0))):k.map((R,O)=>(d.value.push(R.props.name),O===0?R:createLeftPaddedTabVNode(R)))):h(VResizeObserver,{onResize:this.handleNavResize},{default:()=>h("div",{class:`${t}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(D)?h(VXScroll,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:I}):h("div",{class:`${t}-tabs-nav-y-scroll`,onScroll:this.handleScroll},I()))}),r&&s&&S?createAddTag(s,!0):null,resolveWrappedSlot(w,R=>R&&h("div",{class:`${t}-tabs-nav__suffix`},R))),N&&(this.animated&&(D==="top"||D==="bottom")?h("div",{ref:"tabsPaneWrapperRef",style:g,class:[`${t}-tabs-pane-wrapper`,_]},filterMapTabPanes(B,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):filterMapTabPanes(B,this.mergedValue,this.renderedNames)))}});function filterMapTabPanes(t,o,n,r,s,l,d){const m=[];return t.forEach(_=>{const{name:g,displayDirective:v,"display-directive":y}=_.props,w=k=>v===k||y===k,B=o===g;if(_.key!==void 0&&(_.key=g),B||w("show")||w("show:lazy")&&n.has(g)){n.has(g)||n.add(g);const k=!w("if");m.push(k?withDirectives(_,[[vShow,B]]):_)}}),d?h(TransitionGroup,{name:`${d}-transition`,onBeforeLeave:r,onEnter:s,onAfterEnter:l},{default:()=>m}):m}function createAddTag(t,o){return h(NTab,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:o,disabled:typeof t=="object"&&t.disabled})}function createLeftPaddedTabVNode(t){const o=cloneVNode(t);return o.props?o.props.internalLeftPadded=!0:o.props={internalLeftPadded:!0},o}function justifyTabDynamicProps(t){return Array.isArray(t.dynamicProps)?t.dynamicProps.includes("internalLeftPadded")||t.dynamicProps.push("internalLeftPadded"):t.dynamicProps=["internalLeftPadded"],t}const version$1="2.35.0";function create({componentPrefix:t="N",components:o=[]}={}){const n=[];function r(l,d,m){l.component(t+d)||l.component(t+d,m)}function s(l){n.includes(l)||(n.push(l),o.forEach(d=>{const{name:m,alias:_}=d;r(l,m,d),_&&_.forEach(g=>{r(l,g,d)})}))}return{version:version$1,componentPrefix:t,install:s}}/*!
+ * Viewer.js v1.11.6
+ * https://fengyuanchen.github.io/viewerjs
+ *
+ * Copyright 2015-present Chen Fengyuan
+ * Released under the MIT license
+ *
+ * Date: 2023-09-17T03:16:38.052Z
+ */function ownKeys$1(t,o){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);o&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function _objectSpread2$1(t){for(var o=1;o',IS_BROWSER=typeof window<"u"&&typeof window.document<"u",WINDOW=IS_BROWSER?window:{},IS_TOUCH_DEVICE=IS_BROWSER&&WINDOW.document.documentElement?"ontouchstart"in WINDOW.document.documentElement:!1,HAS_POINTER_EVENT=IS_BROWSER?"PointerEvent"in WINDOW:!1,NAMESPACE="viewer",ACTION_MOVE="move",ACTION_SWITCH="switch",ACTION_ZOOM="zoom",CLASS_ACTIVE="".concat(NAMESPACE,"-active"),CLASS_CLOSE="".concat(NAMESPACE,"-close"),CLASS_FADE="".concat(NAMESPACE,"-fade"),CLASS_FIXED="".concat(NAMESPACE,"-fixed"),CLASS_FULLSCREEN="".concat(NAMESPACE,"-fullscreen"),CLASS_FULLSCREEN_EXIT="".concat(NAMESPACE,"-fullscreen-exit"),CLASS_HIDE="".concat(NAMESPACE,"-hide"),CLASS_HIDE_MD_DOWN="".concat(NAMESPACE,"-hide-md-down"),CLASS_HIDE_SM_DOWN="".concat(NAMESPACE,"-hide-sm-down"),CLASS_HIDE_XS_DOWN="".concat(NAMESPACE,"-hide-xs-down"),CLASS_IN="".concat(NAMESPACE,"-in"),CLASS_INVISIBLE="".concat(NAMESPACE,"-invisible"),CLASS_LOADING="".concat(NAMESPACE,"-loading"),CLASS_MOVE="".concat(NAMESPACE,"-move"),CLASS_OPEN="".concat(NAMESPACE,"-open"),CLASS_SHOW="".concat(NAMESPACE,"-show"),CLASS_TRANSITION="".concat(NAMESPACE,"-transition"),EVENT_CLICK="click",EVENT_DBLCLICK="dblclick",EVENT_DRAG_START="dragstart",EVENT_FOCUSIN="focusin",EVENT_KEY_DOWN="keydown",EVENT_LOAD="load",EVENT_ERROR="error",EVENT_TOUCH_END=IS_TOUCH_DEVICE?"touchend touchcancel":"mouseup",EVENT_TOUCH_MOVE=IS_TOUCH_DEVICE?"touchmove":"mousemove",EVENT_TOUCH_START=IS_TOUCH_DEVICE?"touchstart":"mousedown",EVENT_POINTER_DOWN=HAS_POINTER_EVENT?"pointerdown":EVENT_TOUCH_START,EVENT_POINTER_MOVE=HAS_POINTER_EVENT?"pointermove":EVENT_TOUCH_MOVE,EVENT_POINTER_UP=HAS_POINTER_EVENT?"pointerup pointercancel":EVENT_TOUCH_END,EVENT_RESIZE="resize",EVENT_TRANSITION_END="transitionend",EVENT_WHEEL="wheel",EVENT_READY="ready",EVENT_SHOW="show",EVENT_SHOWN="shown",EVENT_HIDE="hide",EVENT_HIDDEN="hidden",EVENT_VIEW="view",EVENT_VIEWED="viewed",EVENT_MOVE="move",EVENT_MOVED="moved",EVENT_ROTATE="rotate",EVENT_ROTATED="rotated",EVENT_SCALE="scale",EVENT_SCALED="scaled",EVENT_ZOOM="zoom",EVENT_ZOOMED="zoomed",EVENT_PLAY="play",EVENT_STOP="stop",DATA_ACTION="".concat(NAMESPACE,"Action"),REGEXP_SPACES=/\s\s*/,BUTTONS=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function isString(t){return typeof t=="string"}var isNaN$1=Number.isNaN||WINDOW.isNaN;function isNumber(t){return typeof t=="number"&&!isNaN$1(t)}function isUndefined(t){return typeof t>"u"}function isObject$9(t){return _typeof$1(t)==="object"&&t!==null}var hasOwnProperty$7=Object.prototype.hasOwnProperty;function isPlainObject(t){if(!isObject$9(t))return!1;try{var o=t.constructor,n=o.prototype;return o&&n&&hasOwnProperty$7.call(n,"isPrototypeOf")}catch{return!1}}function isFunction$3(t){return typeof t=="function"}function forEach(t,o){if(t&&isFunction$3(o))if(Array.isArray(t)||isNumber(t.length)){var n=t.length,r;for(r=0;r1?n-1:0),s=1;s0&&r.forEach(function(l){isObject$9(l)&&Object.keys(l).forEach(function(d){o[d]=l[d]})}),o},REGEXP_SUFFIX=/^(?:width|height|left|top|marginLeft|marginTop)$/;function setStyle(t,o){var n=t.style;forEach(o,function(r,s){REGEXP_SUFFIX.test(s)&&isNumber(r)&&(r+="px"),n[s]=r})}function escapeHTMLEntities(t){return isString(t)?t.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/
/g,">"):t}function hasClass(t,o){return!t||!o?!1:t.classList?t.classList.contains(o):t.className.indexOf(o)>-1}function addClass(t,o){if(!(!t||!o)){if(isNumber(t.length)){forEach(t,function(r){addClass(r,o)});return}if(t.classList){t.classList.add(o);return}var n=t.className.trim();n?n.indexOf(o)<0&&(t.className="".concat(n," ").concat(o)):t.className=o}}function removeClass(t,o){if(!(!t||!o)){if(isNumber(t.length)){forEach(t,function(n){removeClass(n,o)});return}if(t.classList){t.classList.remove(o);return}t.className.indexOf(o)>=0&&(t.className=t.className.replace(o,""))}}function toggleClass$1(t,o,n){if(o){if(isNumber(t.length)){forEach(t,function(r){toggleClass$1(r,o,n)});return}n?addClass(t,o):removeClass(t,o)}}var REGEXP_HYPHENATE=/([a-z\d])([A-Z])/g;function hyphenate(t){return t.replace(REGEXP_HYPHENATE,"$1-$2").toLowerCase()}function getData(t,o){return isObject$9(t[o])?t[o]:t.dataset?t.dataset[o]:t.getAttribute("data-".concat(hyphenate(o)))}function setData(t,o,n){isObject$9(n)?t[o]=n:t.dataset?t.dataset[o]=n:t.setAttribute("data-".concat(hyphenate(o)),n)}var onceSupported=function(){var t=!1;if(IS_BROWSER){var o=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return t=!0,o},set:function(l){o=l}});WINDOW.addEventListener("test",n,r),WINDOW.removeEventListener("test",n,r)}return t}();function removeListener(t,o,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=n;o.trim().split(REGEXP_SPACES).forEach(function(l){if(!onceSupported){var d=t.listeners;d&&d[l]&&d[l][n]&&(s=d[l][n],delete d[l][n],Object.keys(d[l]).length===0&&delete d[l],Object.keys(d).length===0&&delete t.listeners)}t.removeEventListener(l,s,r)})}function addListener(t,o,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=n;o.trim().split(REGEXP_SPACES).forEach(function(l){if(r.once&&!onceSupported){var d=t.listeners,m=d===void 0?{}:d;s=function(){delete m[l][n],t.removeEventListener(l,s,r);for(var g=arguments.length,v=new Array(g),y=0;ym?S=m/B:N=_*B,k=isNumber(k)?k:.9,N=Math.min(N*k,y),S=Math.min(S*k,w);var x=(m-N)/2,C=(_-S)/2,I={left:x,top:C,x,y:C,width:N,height:S,oldRatio:1,ratio:N/y,aspectRatio:B,naturalWidth:y,naturalHeight:w},D=assign$1({},I);r.rotatable&&(I.rotate=g.rotate||0,D.rotate=0),r.scalable&&(I.scaleX=g.scaleX||1,I.scaleY=g.scaleY||1,D.scaleX=1,D.scaleY=1),n.imageData=I,n.initialImageData=D,o&&o()})},renderImage:function(o){var n=this,r=this.image,s=this.imageData;if(setStyle(r,assign$1({width:s.width,height:s.height,marginLeft:s.x,marginTop:s.y},getTransforms(s))),o)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&hasClass(r,CLASS_TRANSITION)){var l=function(){n.imageRendering=!1,o()};this.imageRendering={abort:function(){removeListener(r,EVENT_TRANSITION_END,l)}},addListener(r,EVENT_TRANSITION_END,l,{once:!0})}else o()},resetImage:function(){var o=this.image;o&&(this.viewing&&this.viewing.abort(),o.parentNode.removeChild(o),this.image=null,this.title.innerHTML="")}},events={bind:function(){var o=this.options,n=this.viewer,r=this.canvas,s=this.element.ownerDocument;addListener(n,EVENT_CLICK,this.onClick=this.click.bind(this)),addListener(n,EVENT_DRAG_START,this.onDragStart=this.dragstart.bind(this)),addListener(r,EVENT_POINTER_DOWN,this.onPointerDown=this.pointerdown.bind(this)),addListener(s,EVENT_POINTER_MOVE,this.onPointerMove=this.pointermove.bind(this)),addListener(s,EVENT_POINTER_UP,this.onPointerUp=this.pointerup.bind(this)),addListener(s,EVENT_KEY_DOWN,this.onKeyDown=this.keydown.bind(this)),addListener(window,EVENT_RESIZE,this.onResize=this.resize.bind(this)),o.zoomable&&o.zoomOnWheel&&addListener(n,EVENT_WHEEL,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),o.toggleOnDblclick&&addListener(r,EVENT_DBLCLICK,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var o=this.options,n=this.viewer,r=this.canvas,s=this.element.ownerDocument;removeListener(n,EVENT_CLICK,this.onClick),removeListener(n,EVENT_DRAG_START,this.onDragStart),removeListener(r,EVENT_POINTER_DOWN,this.onPointerDown),removeListener(s,EVENT_POINTER_MOVE,this.onPointerMove),removeListener(s,EVENT_POINTER_UP,this.onPointerUp),removeListener(s,EVENT_KEY_DOWN,this.onKeyDown),removeListener(window,EVENT_RESIZE,this.onResize),o.zoomable&&o.zoomOnWheel&&removeListener(n,EVENT_WHEEL,this.onWheel,{passive:!1,capture:!0}),o.toggleOnDblclick&&removeListener(r,EVENT_DBLCLICK,this.onDblclick)}},handlers={click:function(o){var n=this.options,r=this.imageData,s=o.target,l=getData(s,DATA_ACTION);switch(!l&&s.localName==="img"&&s.parentElement.localName==="li"&&(s=s.parentElement,l=getData(s,DATA_ACTION)),IS_TOUCH_DEVICE&&o.isTrusted&&s===this.canvas&&clearTimeout(this.clickCanvasTimeout),l){case"mix":this.played?this.stop():n.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(getData(s,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(n.loop);break;case"play":this.play(n.fullscreen);break;case"next":this.next(n.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-r.scaleX||-1);break;case"flip-vertical":this.scaleY(-r.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(o){o.preventDefault(),this.viewed&&o.target===this.image&&(IS_TOUCH_DEVICE&&o.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(o.isTrusted?o:o.detail&&o.detail.originalEvent))},load:function(){var o=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var n=this.element,r=this.options,s=this.image,l=this.index,d=this.viewerData;removeClass(s,CLASS_INVISIBLE),r.loading&&removeClass(this.canvas,CLASS_LOADING),s.style.cssText="height:0;"+"margin-left:".concat(d.width/2,"px;")+"margin-top:".concat(d.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){toggleClass$1(s,CLASS_MOVE,r.movable),toggleClass$1(s,CLASS_TRANSITION,r.transition),o.renderImage(function(){o.viewed=!0,o.viewing=!1,isFunction$3(r.viewed)&&addListener(n,EVENT_VIEWED,r.viewed,{once:!0}),dispatchEvent$1(n,EVENT_VIEWED,{originalImage:o.images[l],index:l,image:s},{cancelable:!1})})})},loadImage:function(o){var n=o.target,r=n.parentNode,s=r.offsetWidth||30,l=r.offsetHeight||50,d=!!getData(n,"filled");getImageNaturalSizes(n,this.options,function(m,_){var g=m/_,v=s,y=l;l*g>s?d?v=l*g:y=s/g:d?y=s/g:v=l*g,setStyle(n,assign$1({width:v,height:y},getTransforms({translateX:(s-v)/2,translateY:(l-y)/2})))})},keydown:function(o){var n=this.options;if(n.keyboard){var r=o.keyCode||o.which||o.charCode;switch(r){case 13:this.viewer.contains(o.target)&&this.click(o);break}if(this.fulled)switch(r){case 27:this.played?this.stop():n.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(n.loop);break;case 38:o.preventDefault(),this.zoom(n.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(n.loop);break;case 40:o.preventDefault(),this.zoom(-n.zoomRatio,!0);break;case 48:case 49:o.ctrlKey&&(o.preventDefault(),this.toggle());break}}},dragstart:function(o){o.target.localName==="img"&&o.preventDefault()},pointerdown:function(o){var n=this.options,r=this.pointers,s=o.buttons,l=o.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||(o.type==="mousedown"||o.type==="pointerdown"&&o.pointerType==="mouse")&&(isNumber(s)&&s!==1||isNumber(l)&&l!==0||o.ctrlKey))){o.preventDefault(),o.changedTouches?forEach(o.changedTouches,function(m){r[m.identifier]=getPointer(m)}):r[o.pointerId||0]=getPointer(o);var d=n.movable?ACTION_MOVE:!1;n.zoomOnTouch&&n.zoomable&&Object.keys(r).length>1?d=ACTION_ZOOM:n.slideOnTouch&&(o.pointerType==="touch"||o.type==="touchstart")&&this.isSwitchable()&&(d=ACTION_SWITCH),n.transition&&(d===ACTION_MOVE||d===ACTION_ZOOM)&&removeClass(this.image,CLASS_TRANSITION),this.action=d}},pointermove:function(o){var n=this.pointers,r=this.action;!this.viewed||!r||(o.preventDefault(),o.changedTouches?forEach(o.changedTouches,function(s){assign$1(n[s.identifier]||{},getPointer(s,!0))}):assign$1(n[o.pointerId||0]||{},getPointer(o,!0)),this.change(o))},pointerup:function(o){var n=this,r=this.options,s=this.action,l=this.pointers,d;o.changedTouches?forEach(o.changedTouches,function(m){d=l[m.identifier],delete l[m.identifier]}):(d=l[o.pointerId||0],delete l[o.pointerId||0]),s&&(o.preventDefault(),r.transition&&(s===ACTION_MOVE||s===ACTION_ZOOM)&&addClass(this.image,CLASS_TRANSITION),this.action=!1,IS_TOUCH_DEVICE&&s!==ACTION_ZOOM&&d&&Date.now()-d.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),r.toggleOnDblclick&&this.viewed&&o.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){dispatchEvent$1(n.image,EVENT_DBLCLICK,{originalEvent:o})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,r.backdrop&&r.backdrop!=="static"&&o.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){dispatchEvent$1(n.canvas,EVENT_CLICK,{originalEvent:o})},50)))))},resize:function(){var o=this;if(!(!this.isShown||this.hiding)&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){o.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){this.stop();return}forEach(this.player.getElementsByTagName("img"),function(n){addListener(n,EVENT_LOAD,o.loadImage.bind(o),{once:!0}),dispatchEvent$1(n,EVENT_LOAD)})}},wheel:function(o){var n=this;if(this.viewed&&(o.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50);var r=Number(this.options.zoomRatio)||.1,s=1;o.deltaY?s=o.deltaY>0?1:-1:o.wheelDelta?s=-o.wheelDelta/120:o.detail&&(s=o.detail>0?1:-1),this.zoom(-s*r,!0,null,o)}}},methods={show:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.element,r=this.options;if(r.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(o),this;if(isFunction$3(r.show)&&addListener(n,EVENT_SHOW,r.show,{once:!0}),dispatchEvent$1(n,EVENT_SHOW)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var s=this.viewer;if(removeClass(s,CLASS_HIDE),s.setAttribute("role","dialog"),s.setAttribute("aria-labelledby",this.title.id),s.setAttribute("aria-modal",!0),s.removeAttribute("aria-hidden"),r.transition&&!o){var l=this.shown.bind(this);this.transitioning={abort:function(){removeListener(s,EVENT_TRANSITION_END,l),removeClass(s,CLASS_IN)}},addClass(s,CLASS_TRANSITION),s.initialOffsetWidth=s.offsetWidth,addListener(s,EVENT_TRANSITION_END,l,{once:!0}),addClass(s,CLASS_IN)}else addClass(s,CLASS_IN),this.shown();return this},hide:function(){var o=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.element,s=this.options;if(s.inline||this.hiding||!(this.isShown||this.showing))return this;if(isFunction$3(s.hide)&&addListener(r,EVENT_HIDE,s.hide,{once:!0}),dispatchEvent$1(r,EVENT_HIDE)===!1)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var l=this.viewer,d=this.image,m=function(){removeClass(l,CLASS_IN),o.hidden()};if(s.transition&&!n){var _=function v(y){y&&y.target===l&&(removeListener(l,EVENT_TRANSITION_END,v),o.hidden())},g=function(){hasClass(l,CLASS_TRANSITION)?(addListener(l,EVENT_TRANSITION_END,_),removeClass(l,CLASS_IN)):m()};this.transitioning={abort:function(){o.viewed&&hasClass(d,CLASS_TRANSITION)?removeListener(d,EVENT_TRANSITION_END,g):hasClass(l,CLASS_TRANSITION)&&removeListener(l,EVENT_TRANSITION_END,_)}},this.viewed&&hasClass(d,CLASS_TRANSITION)?(addListener(d,EVENT_TRANSITION_END,g,{once:!0}),this.zoomTo(0,!1,null,null,!0)):g()}else m();return this},view:function(){var o=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(n=Number(n)||0,this.hiding||this.played||n<0||n>=this.length||this.viewed&&n===this.index)return this;if(!this.isShown)return this.index=n,this.show();this.viewing&&this.viewing.abort();var r=this.element,s=this.options,l=this.title,d=this.canvas,m=this.items[n],_=m.querySelector("img"),g=getData(_,"originalUrl"),v=_.getAttribute("alt"),y=document.createElement("img");if(forEach(s.inheritedAttributes,function(S){var x=_.getAttribute(S);x!==null&&y.setAttribute(S,x)}),y.src=g,y.alt=v,isFunction$3(s.view)&&addListener(r,EVENT_VIEW,s.view,{once:!0}),dispatchEvent$1(r,EVENT_VIEW,{originalImage:this.images[n],index:n,image:y})===!1||!this.isShown||this.hiding||this.played)return this;var w=this.items[this.index];w&&(removeClass(w,CLASS_ACTIVE),w.removeAttribute("aria-selected")),addClass(m,CLASS_ACTIVE),m.setAttribute("aria-selected",!0),s.focus&&m.focus(),this.image=y,this.viewed=!1,this.index=n,this.imageData={},addClass(y,CLASS_INVISIBLE),s.loading&&addClass(d,CLASS_LOADING),d.innerHTML="",d.appendChild(y),this.renderList(),l.innerHTML="";var B=function(){var x=o.imageData,C=Array.isArray(s.title)?s.title[1]:s.title;l.innerHTML=escapeHTMLEntities(isFunction$3(C)?C.call(o,y,x):"".concat(v," (").concat(x.naturalWidth," × ").concat(x.naturalHeight,")"))},k,N;return addListener(r,EVENT_VIEWED,B,{once:!0}),this.viewing={abort:function(){removeListener(r,EVENT_VIEWED,B),y.complete?o.imageRendering?o.imageRendering.abort():o.imageInitializing&&o.imageInitializing.abort():(y.src="",removeListener(y,EVENT_LOAD,k),o.timeout&&clearTimeout(o.timeout))}},y.complete?this.load():(addListener(y,EVENT_LOAD,k=function(){removeListener(y,EVENT_ERROR,N),o.load()},{once:!0}),addListener(y,EVENT_ERROR,N=function(){removeListener(y,EVENT_LOAD,k),o.timeout&&(clearTimeout(o.timeout),o.timeout=!1),removeClass(y,CLASS_INVISIBLE),s.loading&&removeClass(o.canvas,CLASS_LOADING)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){removeClass(y,CLASS_INVISIBLE),o.timeout=!1},1e3)),this},prev:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.index-1;return n<0&&(n=o?this.length-1:0),this.view(n),this},next:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.length-1,r=this.index+1;return r>n&&(r=o?0:n),this.view(r),this},move:function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o,r=this.imageData;return this.moveTo(isUndefined(o)?o:r.x+Number(o),isUndefined(n)?n:r.y+Number(n)),this},moveTo:function(o){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,l=this.element,d=this.options,m=this.imageData;if(o=Number(o),r=Number(r),this.viewed&&!this.played&&d.movable){var _=m.x,g=m.y,v=!1;if(isNumber(o)?v=!0:o=_,isNumber(r)?v=!0:r=g,v){if(isFunction$3(d.move)&&addListener(l,EVENT_MOVE,d.move,{once:!0}),dispatchEvent$1(l,EVENT_MOVE,{x:o,y:r,oldX:_,oldY:g,originalEvent:s})===!1)return this;m.x=o,m.y=r,m.left=o,m.top=r,this.moving=!0,this.renderImage(function(){n.moving=!1,isFunction$3(d.moved)&&addListener(l,EVENT_MOVED,d.moved,{once:!0}),dispatchEvent$1(l,EVENT_MOVED,{x:o,y:r,oldX:_,oldY:g,originalEvent:s},{cancelable:!1})})}}return this},rotate:function(o){return this.rotateTo((this.imageData.rotate||0)+Number(o)),this},rotateTo:function(o){var n=this,r=this.element,s=this.options,l=this.imageData;if(o=Number(o),isNumber(o)&&this.viewed&&!this.played&&s.rotatable){var d=l.rotate;if(isFunction$3(s.rotate)&&addListener(r,EVENT_ROTATE,s.rotate,{once:!0}),dispatchEvent$1(r,EVENT_ROTATE,{degree:o,oldDegree:d})===!1)return this;l.rotate=o,this.rotating=!0,this.renderImage(function(){n.rotating=!1,isFunction$3(s.rotated)&&addListener(r,EVENT_ROTATED,s.rotated,{once:!0}),dispatchEvent$1(r,EVENT_ROTATED,{degree:o,oldDegree:d},{cancelable:!1})})}return this},scaleX:function(o){return this.scale(o,this.imageData.scaleY),this},scaleY:function(o){return this.scale(this.imageData.scaleX,o),this},scale:function(o){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o,s=this.element,l=this.options,d=this.imageData;if(o=Number(o),r=Number(r),this.viewed&&!this.played&&l.scalable){var m=d.scaleX,_=d.scaleY,g=!1;if(isNumber(o)?g=!0:o=m,isNumber(r)?g=!0:r=_,g){if(isFunction$3(l.scale)&&addListener(s,EVENT_SCALE,l.scale,{once:!0}),dispatchEvent$1(s,EVENT_SCALE,{scaleX:o,scaleY:r,oldScaleX:m,oldScaleY:_})===!1)return this;d.scaleX=o,d.scaleY=r,this.scaling=!0,this.renderImage(function(){n.scaling=!1,isFunction$3(l.scaled)&&addListener(s,EVENT_SCALED,l.scaled,{once:!0}),dispatchEvent$1(s,EVENT_SCALED,{scaleX:o,scaleY:r,oldScaleX:m,oldScaleY:_},{cancelable:!1})})}}return this},zoom:function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,l=this.imageData;return o=Number(o),o<0?o=1/(1-o):o=1+o,this.zoomTo(l.width*o/l.naturalWidth,n,r,s),this},zoomTo:function(o){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,m=this.element,_=this.options,g=this.pointers,v=this.imageData,y=v.x,w=v.y,B=v.width,k=v.height,N=v.naturalWidth,S=v.naturalHeight;if(o=Math.max(0,o),isNumber(o)&&this.viewed&&!this.played&&(d||_.zoomable)){if(!d){var x=Math.max(.01,_.minZoomRatio),C=Math.min(100,_.maxZoomRatio);o=Math.min(Math.max(o,x),C)}if(l)switch(l.type){case"wheel":_.zoomRatio>=.055&&o>.95&&o<1.05&&(o=1);break;case"pointermove":case"touchmove":case"mousemove":o>.99&&o<1.01&&(o=1);break}var I=N*o,D=S*o,R=I-B,O=D-k,Q=v.ratio;if(isFunction$3(_.zoom)&&addListener(m,EVENT_ZOOM,_.zoom,{once:!0}),dispatchEvent$1(m,EVENT_ZOOM,{ratio:o,oldRatio:Q,originalEvent:l})===!1)return this;if(this.zooming=!0,l){var Y=getOffset(this.viewer),W=g&&Object.keys(g).length>0?getPointersCenter(g):{pageX:l.pageX,pageY:l.pageY};v.x-=R*((W.pageX-Y.left-y)/B),v.y-=O*((W.pageY-Y.top-w)/k)}else isPlainObject(s)&&isNumber(s.x)&&isNumber(s.y)?(v.x-=R*((s.x-y)/B),v.y-=O*((s.y-w)/k)):(v.x-=R/2,v.y-=O/2);v.left=v.x,v.top=v.y,v.width=I,v.height=D,v.oldRatio=Q,v.ratio=o,this.renderImage(function(){n.zooming=!1,isFunction$3(_.zoomed)&&addListener(m,EVENT_ZOOMED,_.zoomed,{once:!0}),dispatchEvent$1(m,EVENT_ZOOMED,{ratio:o,oldRatio:Q,originalEvent:l},{cancelable:!1})}),r&&this.tooltip()}return this},play:function(){var o=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var r=this.element,s=this.options;if(isFunction$3(s.play)&&addListener(r,EVENT_PLAY,s.play,{once:!0}),dispatchEvent$1(r,EVENT_PLAY)===!1)return this;var l=this.player,d=this.loadImage.bind(this),m=[],_=0,g=0;if(this.played=!0,this.onLoadWhenPlay=d,n&&this.requestFullscreen(n),addClass(l,CLASS_SHOW),forEach(this.items,function(w,B){var k=w.querySelector("img"),N=document.createElement("img");N.src=getData(k,"originalUrl"),N.alt=k.getAttribute("alt"),N.referrerPolicy=k.referrerPolicy,_+=1,addClass(N,CLASS_FADE),toggleClass$1(N,CLASS_TRANSITION,s.transition),hasClass(w,CLASS_ACTIVE)&&(addClass(N,CLASS_IN),g=B),m.push(N),addListener(N,EVENT_LOAD,d,{once:!0}),l.appendChild(N)}),isNumber(s.interval)&&s.interval>0){var v=function w(){clearTimeout(o.playing.timeout),removeClass(m[g],CLASS_IN),g-=1,g=g>=0?g:_-1,addClass(m[g],CLASS_IN),o.playing.timeout=setTimeout(w,s.interval)},y=function w(){clearTimeout(o.playing.timeout),removeClass(m[g],CLASS_IN),g+=1,g=g<_?g:0,addClass(m[g],CLASS_IN),o.playing.timeout=setTimeout(w,s.interval)};_>1&&(this.playing={prev:v,next:y,timeout:setTimeout(y,s.interval)})}return this},stop:function(){var o=this;if(!this.played)return this;var n=this.element,r=this.options;if(isFunction$3(r.stop)&&addListener(n,EVENT_STOP,r.stop,{once:!0}),dispatchEvent$1(n,EVENT_STOP)===!1)return this;var s=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,forEach(s.getElementsByTagName("img"),function(l){removeListener(l,EVENT_LOAD,o.onLoadWhenPlay)}),removeClass(s,CLASS_SHOW),s.innerHTML="",this.exitFullscreen(),this},full:function(){var o=this,n=this.options,r=this.viewer,s=this.image,l=this.list;return!this.isShown||this.played||this.fulled||!n.inline?this:(this.fulled=!0,this.open(),addClass(this.button,CLASS_FULLSCREEN_EXIT),n.transition&&(removeClass(l,CLASS_TRANSITION),this.viewed&&removeClass(s,CLASS_TRANSITION)),addClass(r,CLASS_FIXED),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("style"),setStyle(r,{zIndex:n.zIndex}),n.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=assign$1({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){o.renderImage(function(){n.transition&&setTimeout(function(){addClass(s,CLASS_TRANSITION),addClass(l,CLASS_TRANSITION)},0)})}),this)},exit:function(){var o=this,n=this.options,r=this.viewer,s=this.image,l=this.list;return!this.isShown||this.played||!this.fulled||!n.inline?this:(this.fulled=!1,this.close(),removeClass(this.button,CLASS_FULLSCREEN_EXIT),n.transition&&(removeClass(l,CLASS_TRANSITION),this.viewed&&removeClass(s,CLASS_TRANSITION)),n.focus&&this.clearEnforceFocus(),r.removeAttribute("role"),r.removeAttribute("aria-labelledby"),r.removeAttribute("aria-modal"),removeClass(r,CLASS_FIXED),setStyle(r,{zIndex:n.zIndexInline}),this.viewerData=assign$1({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){o.renderImage(function(){n.transition&&setTimeout(function(){addClass(s,CLASS_TRANSITION),addClass(l,CLASS_TRANSITION)},0)})}),this)},tooltip:function(){var o=this,n=this.options,r=this.tooltipBox,s=this.imageData;return!this.viewed||this.played||!n.tooltip?this:(r.textContent="".concat(Math.round(s.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):n.transition?(this.fading&&dispatchEvent$1(r,EVENT_TRANSITION_END),addClass(r,CLASS_SHOW),addClass(r,CLASS_FADE),addClass(r,CLASS_TRANSITION),r.removeAttribute("aria-hidden"),r.initialOffsetWidth=r.offsetWidth,addClass(r,CLASS_IN)):(addClass(r,CLASS_SHOW),r.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){n.transition?(addListener(r,EVENT_TRANSITION_END,function(){removeClass(r,CLASS_SHOW),removeClass(r,CLASS_FADE),removeClass(r,CLASS_TRANSITION),r.setAttribute("aria-hidden",!0),o.fading=!1},{once:!0}),removeClass(r,CLASS_IN),o.fading=!0):(removeClass(r,CLASS_SHOW),r.setAttribute("aria-hidden",!0)),o.tooltipping=!1},1e3),this)},toggle:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imageData.ratio===1?this.zoomTo(this.imageData.oldRatio,!0,null,o):this.zoomTo(1,!0,null,o),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=assign$1({},this.initialImageData),this.renderImage()),this},update:function(){var o=this,n=this.element,r=this.options,s=this.isImg;if(s&&!n.parentNode)return this.destroy();var l=[];if(forEach(s?[n]:n.querySelectorAll("img"),function(g){isFunction$3(r.filter)?r.filter.call(o,g)&&l.push(g):o.getImageURL(g)&&l.push(g)}),!l.length)return this;if(this.images=l,this.length=l.length,this.ready){var d=[];if(forEach(this.items,function(g,v){var y=g.querySelector("img"),w=l[v];w&&y?(w.src!==y.src||w.alt!==y.alt)&&d.push(v):d.push(v)}),setStyle(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var m=d.indexOf(this.index);if(m>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-m,this.length-1),0));else{var _=this.items[this.index];addClass(_,CLASS_ACTIVE),_.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var o=this.element,n=this.options;return o[NAMESPACE]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),n.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):n.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),n.inline||removeListener(o,EVENT_CLICK,this.onStart),o[NAMESPACE]=void 0,this):this}},others={getImageURL:function(o){var n=this.options.url;return isString(n)?n=o.getAttribute(n):isFunction$3(n)?n=n.call(this,o):n="",n},enforceFocus:function(){var o=this;this.clearEnforceFocus(),addListener(document,EVENT_FOCUSIN,this.onFocusin=function(n){var r=o.viewer,s=n.target;if(!(s===document||s===r||r.contains(s))){for(;s;){if(s.getAttribute("tabindex")!==null||s.getAttribute("aria-modal")==="true")return;s=s.parentElement}r.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(removeListener(document,EVENT_FOCUSIN,this.onFocusin),this.onFocusin=null)},open:function(){var o=this.body;addClass(o,CLASS_OPEN),this.scrollbarWidth>0&&(o.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var o=this.body;removeClass(o,CLASS_OPEN),this.scrollbarWidth>0&&(o.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var o=this.element,n=this.options,r=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,n.focus&&(r.focus(),this.enforceFocus()),isFunction$3(n.shown)&&addListener(o,EVENT_SHOWN,n.shown,{once:!0}),dispatchEvent$1(o,EVENT_SHOWN)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var o=this.element,n=this.options,r=this.viewer;n.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),addClass(r,CLASS_HIDE),r.removeAttribute("role"),r.removeAttribute("aria-labelledby"),r.removeAttribute("aria-modal"),r.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(isFunction$3(n.hidden)&&addListener(o,EVENT_HIDDEN,n.hidden,{once:!0}),dispatchEvent$1(o,EVENT_HIDDEN,null,{cancelable:!1}))},requestFullscreen:function(o){var n=this.element.ownerDocument;if(this.fulled&&!(n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement)){var r=n.documentElement;r.requestFullscreen?isPlainObject(o)?r.requestFullscreen(o):r.requestFullscreen():r.webkitRequestFullscreen?r.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):r.mozRequestFullScreen?r.mozRequestFullScreen():r.msRequestFullscreen&&r.msRequestFullscreen()}},exitFullscreen:function(){var o=this.element.ownerDocument;this.fulled&&(o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement)&&(o.exitFullscreen?o.exitFullscreen():o.webkitExitFullscreen?o.webkitExitFullscreen():o.mozCancelFullScreen?o.mozCancelFullScreen():o.msExitFullscreen&&o.msExitFullscreen())},change:function(o){var n=this.options,r=this.pointers,s=r[Object.keys(r)[0]];if(s){var l=s.endX-s.startX,d=s.endY-s.startY;switch(this.action){case ACTION_MOVE:(l!==0||d!==0)&&(this.pointerMoved=!0,this.move(l,d,o));break;case ACTION_ZOOM:this.zoom(getMaxZoomRatio(r),!1,null,o);break;case ACTION_SWITCH:{this.action="switched";var m=Math.abs(l);m>1&&m>Math.abs(d)&&(this.pointers={},l>1?this.prev(n.loop):l<-1&&this.next(n.loop));break}}forEach(r,function(_){_.startX=_.endX,_.startY=_.endY})}},isSwitchable:function(){var o=this.imageData,n=this.viewerData;return this.length>1&&o.x>=0&&o.y>=0&&o.width<=n.width&&o.height<=n.height}},AnotherViewer=WINDOW.Viewer,getUniqueID=function(t){return function(){return t+=1,t}}(-1),Viewer=function(){function t(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(_classCallCheck(this,t),!o||o.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=o,this.options=assign$1({},DEFAULTS,isPlainObject(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=getUniqueID(),this.init()}return _createClass(t,[{key:"init",value:function(){var n=this,r=this.element,s=this.options;if(!r[NAMESPACE]){r[NAMESPACE]=this,s.focus&&!s.keyboard&&(s.focus=!1);var l=r.localName==="img",d=[];if(forEach(l?[r]:r.querySelectorAll("img"),function(g){isFunction$3(s.filter)?s.filter.call(n,g)&&d.push(g):n.getImageURL(g)&&d.push(g)}),this.isImg=l,this.length=d.length,this.images=d,this.initBody(),isUndefined(document.createElement(NAMESPACE).style.transition)&&(s.transition=!1),s.inline){var m=0,_=function(){if(m+=1,m===n.length){var v;n.initializing=!1,n.delaying={abort:function(){clearTimeout(v)}},v=setTimeout(function(){n.delaying=!1,n.build()},0)}};this.initializing={abort:function(){forEach(d,function(v){v.complete||(removeListener(v,EVENT_LOAD,_),removeListener(v,EVENT_ERROR,_))})}},forEach(d,function(g){if(g.complete)_();else{var v,y;addListener(g,EVENT_LOAD,v=function(){removeListener(g,EVENT_ERROR,y),_()},{once:!0}),addListener(g,EVENT_ERROR,y=function(){removeListener(g,EVENT_LOAD,v),_()},{once:!0})}})}else addListener(r,EVENT_CLICK,this.onStart=function(g){var v=g.target;v.localName==="img"&&(!isFunction$3(s.filter)||s.filter.call(n,v))&&n.view(n.images.indexOf(v))})}}},{key:"build",value:function(){if(!this.ready){var n=this.element,r=this.options,s=n.parentNode,l=document.createElement("div");l.innerHTML=TEMPLATE;var d=l.querySelector(".".concat(NAMESPACE,"-container")),m=d.querySelector(".".concat(NAMESPACE,"-title")),_=d.querySelector(".".concat(NAMESPACE,"-toolbar")),g=d.querySelector(".".concat(NAMESPACE,"-navbar")),v=d.querySelector(".".concat(NAMESPACE,"-button")),y=d.querySelector(".".concat(NAMESPACE,"-canvas"));if(this.parent=s,this.viewer=d,this.title=m,this.toolbar=_,this.navbar=g,this.button=v,this.canvas=y,this.footer=d.querySelector(".".concat(NAMESPACE,"-footer")),this.tooltipBox=d.querySelector(".".concat(NAMESPACE,"-tooltip")),this.player=d.querySelector(".".concat(NAMESPACE,"-player")),this.list=d.querySelector(".".concat(NAMESPACE,"-list")),d.id="".concat(NAMESPACE).concat(this.id),m.id="".concat(NAMESPACE,"Title").concat(this.id),addClass(m,r.title?getResponsiveClass(Array.isArray(r.title)?r.title[0]:r.title):CLASS_HIDE),addClass(g,r.navbar?getResponsiveClass(r.navbar):CLASS_HIDE),toggleClass$1(v,CLASS_HIDE,!r.button),r.keyboard&&v.setAttribute("tabindex",0),r.backdrop&&(addClass(d,"".concat(NAMESPACE,"-backdrop")),!r.inline&&r.backdrop!=="static"&&setData(y,DATA_ACTION,"hide")),isString(r.className)&&r.className&&r.className.split(REGEXP_SPACES).forEach(function(I){addClass(d,I)}),r.toolbar){var w=document.createElement("ul"),B=isPlainObject(r.toolbar),k=BUTTONS.slice(0,3),N=BUTTONS.slice(7,9),S=BUTTONS.slice(9);B||addClass(_,getResponsiveClass(r.toolbar)),forEach(B?r.toolbar:BUTTONS,function(I,D){var R=B&&isPlainObject(I),O=B?hyphenate(D):I,Q=R&&!isUndefined(I.show)?I.show:I;if(!(!Q||!r.zoomable&&k.indexOf(O)!==-1||!r.rotatable&&N.indexOf(O)!==-1||!r.scalable&&S.indexOf(O)!==-1)){var Y=R&&!isUndefined(I.size)?I.size:I,W=R&&!isUndefined(I.click)?I.click:I,K=document.createElement("li");r.keyboard&&K.setAttribute("tabindex",0),K.setAttribute("role","button"),addClass(K,"".concat(NAMESPACE,"-").concat(O)),isFunction$3(W)||setData(K,DATA_ACTION,O),isNumber(Q)&&addClass(K,getResponsiveClass(Q)),["small","large"].indexOf(Y)!==-1?addClass(K,"".concat(NAMESPACE,"-").concat(Y)):O==="play"&&addClass(K,"".concat(NAMESPACE,"-large")),isFunction$3(W)&&addListener(K,EVENT_CLICK,W),w.appendChild(K)}}),_.appendChild(w)}else addClass(_,CLASS_HIDE);if(!r.rotatable){var x=_.querySelectorAll('li[class*="rotate"]');addClass(x,CLASS_INVISIBLE),forEach(x,function(I){_.appendChild(I)})}if(r.inline)addClass(v,CLASS_FULLSCREEN),setStyle(d,{zIndex:r.zIndexInline}),window.getComputedStyle(s).position==="static"&&setStyle(s,{position:"relative"}),s.insertBefore(d,n.nextSibling);else{addClass(v,CLASS_CLOSE),addClass(d,CLASS_FIXED),addClass(d,CLASS_FADE),addClass(d,CLASS_HIDE),setStyle(d,{zIndex:r.zIndex});var C=r.container;isString(C)&&(C=n.ownerDocument.querySelector(C)),C||(C=this.body),C.appendChild(d)}if(r.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,isFunction$3(r.ready)&&addListener(n,EVENT_READY,r.ready,{once:!0}),dispatchEvent$1(n,EVENT_READY)===!1){this.ready=!1;return}this.ready&&r.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=AnotherViewer,t}},{key:"setDefaults",value:function(n){assign$1(DEFAULTS,isPlainObject(n)&&n)}}]),t}();assign$1(Viewer.prototype,render$4,events,handlers,methods,others);/*!
+ * v-viewer v3.0.11
+ * https://github.com/mirari/v-viewer#readme
+ *
+ * Copyright 2022 mirari
+ * Released under the MIT license
+ *
+ * Date: 2022-10-25T08:49:33.301Z
+ */var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function identity$2(t){return t}var identity_1=identity$2;function apply$1(t,o,n){switch(n.length){case 0:return t.call(o);case 1:return t.call(o,n[0]);case 2:return t.call(o,n[0],n[1]);case 3:return t.call(o,n[0],n[1],n[2])}return t.apply(o,n)}var _apply=apply$1,apply=_apply,nativeMax$1=Math.max;function overRest$1(t,o,n){return o=nativeMax$1(o===void 0?t.length-1:o,0),function(){for(var r=arguments,s=-1,l=nativeMax$1(r.length-o,0),d=Array(l);++s0){if(++o>=HOT_COUNT)return arguments[0]}else o=0;return t.apply(void 0,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$1=shortOut(baseSetToString),_setToString=setToString$1,identity=identity_1,overRest=_overRest,setToString=_setToString;function baseRest$1(t,o){return setToString(overRest(t,o,identity),t+"")}var _baseRest=baseRest$1;function eq$2(t,o){return t===o||t!==t&&o!==o}var eq_1=eq$2,MAX_SAFE_INTEGER$1=9007199254740991;function isLength$2(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=MAX_SAFE_INTEGER$1}var isLength_1=isLength$2,isFunction=isFunction_1,isLength$1=isLength_1;function isArrayLike$2(t){return t!=null&&isLength$1(t.length)&&!isFunction(t)}var isArrayLike_1=isArrayLike$2,MAX_SAFE_INTEGER=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$2(t,o){var n=typeof t;return o=o??MAX_SAFE_INTEGER,!!o&&(n=="number"||n!="symbol"&&reIsUint.test(t))&&t>-1&&t%1==0&&t2?o[2]:void 0;for(s&&isIterateeCall(o[0],o[1],s)&&(r=1);++n0}}),!0):!1}function assignSymbols(t,...o){if(!isObject$2$1(t))throw new TypeError("expected the first argument to be an object");if(o.length===0||typeof Symbol!="function"||typeof getSymbols!="function")return t;for(const n of o){const r=getSymbols(n);for(const s of r)isEnumerable.call(n,s)&&(t[s]=n[s])}return t}function assign(t,...o){let n=0;for(isPrimitive(t)&&(t=o[n++]),t||(t={});n{o=assign(o,{inline:!1});const n=document.createElement("div"),r=h("div",{style:{display:"none"},class:["__viewer-token"]},t.map(m=>h("img",typeof m=="string"?{src:m}:m)));render$9(r,n);const s=n.firstElementChild;document.body.appendChild(s);const l=new Viewer(s,o),d=l.destroy.bind(l);return l.destroy=function(){return d(),render$9(null,n),l},l.show(),s.addEventListener("hidden",function(){this.viewer===l&&l.destroy()}),l};var root$4=_root$1,now$1$1=function(){return root$4.Date.now()},now_1$1=now$1$1,reWhitespace=/\s/;function trimmedEndIndex$1(t){for(var o=t.length;o--&&reWhitespace.test(t.charAt(o)););return o}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(t){return t&&t.slice(0,trimmedEndIndex(t)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,baseGetTag$5=_baseGetTag$1,isObjectLike$5=isObjectLike_1$1,symbolTag$1="[object Symbol]";function isSymbol$1$1(t){return typeof t=="symbol"||isObjectLike$5(t)&&baseGetTag$5(t)==symbolTag$1}var isSymbol_1$1=isSymbol$1$1,baseTrim=_baseTrim,isObject$1$1=isObject_1$1,isSymbol$2=isSymbol_1$1,NAN$1=0/0,reIsBadHex$1=/^[-+]0x[0-9a-f]+$/i,reIsBinary$1=/^0b[01]+$/i,reIsOctal$1=/^0o[0-7]+$/i,freeParseInt$1=parseInt;function toNumber$1$1(t){if(typeof t=="number")return t;if(isSymbol$2(t))return NAN$1;if(isObject$1$1(t)){var o=typeof t.valueOf=="function"?t.valueOf():t;t=isObject$1$1(o)?o+"":o}if(typeof t!="string")return t===0?t:+t;t=baseTrim(t);var n=reIsBinary$1.test(t);return n||reIsOctal$1.test(t)?freeParseInt$1(t.slice(2),n?2:8):reIsBadHex$1.test(t)?NAN$1:+t}var toNumber_1$1=toNumber$1$1,isObject$8=isObject_1$1,now$2=now_1$1,toNumber$2=toNumber_1$1,FUNC_ERROR_TEXT$1="Expected a function",nativeMax$2=Math.max,nativeMin$1=Math.min;function debounce$2(t,o,n){var r,s,l,d,m,_,g=0,v=!1,y=!1,w=!0;if(typeof t!="function")throw new TypeError(FUNC_ERROR_TEXT$1);o=toNumber$2(o)||0,isObject$8(n)&&(v=!!n.leading,y="maxWait"in n,l=y?nativeMax$2(toNumber$2(n.maxWait)||0,o):l,w="trailing"in n?!!n.trailing:w);function B(O){var Q=r,Y=s;return r=s=void 0,g=O,d=t.apply(Y,Q),d}function k(O){return g=O,m=setTimeout(x,o),v?B(O):d}function N(O){var Q=O-_,Y=O-g,W=o-Q;return y?nativeMin$1(W,l-Y):W}function S(O){var Q=O-_,Y=O-g;return _===void 0||Q>=o||Q<0||y&&Y>=l}function x(){var O=now$2();if(S(O))return C(O);m=setTimeout(x,N(O))}function C(O){return m=void 0,w&&r?B(O):(r=s=void 0,d)}function I(){m!==void 0&&clearTimeout(m),g=0,r=_=s=m=void 0}function D(){return m===void 0?d:C(now$2())}function R(){var O=now$2(),Q=S(O);if(r=arguments,s=this,_=O,Q){if(m===void 0)return k(_);if(y)return clearTimeout(m),m=setTimeout(x,o),B(_)}return m===void 0&&(m=setTimeout(x,o)),d}return R.cancel=I,R.flush=D,R}var debounce_1$1=debounce$2;const directive=({name:t="viewer",debug:o=!1}={})=>{async function n(y,w,B=!1,k=!1){await nextTick(),!(k&&!r(y))&&(B||!y[`$${t}`]?(d(y),y[`$${t}`]=new Viewer(y,w),g("Viewer created")):(y[`$${t}`].update(),g("Viewer updated")))}function r(y){const w=y.innerHTML.match(/
/g),B=w?w.join(""):void 0;return y.__viewerImageDiffCache===B?(g("Element change detected, but image(s) has not changed"),!1):(g("Image change detected"),y.__viewerImageDiffCache=B,!0)}function s(y,w,B,k){m(y);const N=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(!N){g("Observer not supported");return}const S=new N(C=>{C.forEach(I=>{g(`Viewer mutation:${I.type}`),B(y,w,k,!0)})}),x={attributes:!0,childList:!0,characterData:!0,subtree:!0};S.observe(y,x),y.__viewerMutationObserver=S,g("Observer created")}function l(y,w,B,k){y.__viewerUnwatch=watch(()=>w.value,(N,S)=>{g("Change detected by watcher: ",w.value),k(y,N,!0,!1)},{deep:!0}),g("Watcher created, expression: ",w.value)}function d(y){y[`$${t}`]&&(y[`$${t}`].destroy(),delete y[`$${t}`],g("Viewer destroyed"))}function m(y){y.__viewerMutationObserver&&(y.__viewerMutationObserver.disconnect(),delete y.__viewerMutationObserver,g("observer destroyed"))}function _(y){y.__viewerUnwatch&&(y.__viewerUnwatch(),delete y.__viewerUnwatch,g("Watcher destroyed"))}function g(...y){o&&console.log(...y)}return{mounted(y,w,B){g("Viewer bind");const k=debounce_1$1(n,50);k(y,w.value),l(y,w,B,k),w.modifiers.static||s(y,w.value,k,w.modifiers.rebuild)},unmounted(y){g("Viewer unbind"),m(y),_(y),d(y)}}};var _export_sfc=(t,o)=>{const n=t.__vccOpts||t;for(const[r,s]of o)n[r]=s;return n};const _sfc_main$5X=defineComponent({name:"Viewer",props:{images:{type:Array,default:()=>[]},rebuild:{type:Boolean,default:!1},trigger:{type:Object,default:null},options:{type:Object,default:()=>null}},emits:["inited"],setup(t,{emit:o}){let n;const r=ref();function s(){n=new Viewer(r.value,t.options),o("inited",n)}function l(){n&&n.destroy()}function d(){l(),s()}function m(){n?(n.update(),o("inited",n)):s()}function _(){t.rebuild?d():m()}const g={deep:!0};return watch(()=>t.images,()=>nextTick(()=>_()),g),watch(()=>t.trigger,()=>nextTick(()=>_()),g),watch(()=>t.options,()=>nextTick(()=>d()),g),onMounted(()=>s()),onUnmounted(()=>l()),{root:r,createViewer:s,rebuildViewer:d,updateViewer:m,destroyViewer:l}}}),_hoisted_1$4s={ref:"root"};function _sfc_render$1(t,o,n,r,s,l){return openBlock(),createElementBlock("div",_hoisted_1$4s,[renderSlot(t.$slots,"default",{images:t.images,options:t.options})],512)}var component=_export_sfc(_sfc_main$5X,[["render",_sfc_render$1]]),index$2={install(t,{name:o="viewer",debug:n=!1,defaultOptions:r}={}){r&&Viewer.setDefaults(r),t.config.globalProperties[`$${o}Api`]=api,t.component(o,defaults_1(component,{name:o})),t.directive(o,directive({name:o,debug:n}))},setDefaults(t){Viewer.setDefaults(t)}};const ImageLayout_vue_vue_type_style_index_0_scoped_b867f2d6_lang="",_hoisted_1$4r={class:"mt5 flex-wrap flex-row"},_hoisted_2$4d=["src","onClick"],_sfc_main$5W={__name:"ImageLayout",props:{images:Array,imgkey:String,smart:Boolean,smart2:Boolean},setup(t){const o=t,n=ref(),r=computed(()=>{if(o.smart&&o&&o.images&&o.images.length>=9)return{"max-width":"70px","max-height":"70px"};if(o.smart&&o&&o.images&&o.images.length>=6)return{"max-width":"80px","max-height":"80px"};if(o.smart&&o&&o.images&&o.images.length>=3)return{"max-width":"120px","max-height":"100px"};if(o.smart2&&o&&o.images&&o.images.length>=9)return{"max-width":"140px","max-height":"110px"};if(o.smart2&&o&&o.images&&o.images.length>=6)return{"max-width":"180px","max-height":"140px"};if(o.smart2&&o&&o.images&&o.images.length>=2)return{"max-width":"280px","max-height":"180px"}}),s=d=>{o.smart&&o.images.length<=2&&(console.log("img",d,d.target,d.target.naturalWidth,d.target.naturalHeight,d.width,d.height),d.target.naturalHeight>=3*d.target.naturalWidth&&(o.smart2||(n.value={width:"50%",height:"100px"})))},l=d=>{console.log("imgage index",d);let m=o.images.map(_=>o.imgkey?_[o.imgkey]:_);api({images:m,options:{initialViewIndex:d,navbar:!1,title:!1,transition:!1}})};return(d,m)=>(openBlock(),createElementBlock("div",_hoisted_1$4r,[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.images,(_,g)=>(openBlock(),createElementBlock("img",{key:g,style:normalizeStyle([r.value,n.value]),src:t.imgkey?_[t.imgkey]:_,onClick:withModifiers(v=>l(g),["stop"]),onLoad:s},null,44,_hoisted_2$4d))),128))]))}},ImageLayout=_export_sfc$1(_sfc_main$5W,[["__scopeId","data-v-b867f2d6"]]),SubDetail_vue_vue_type_style_index_0_scoped_bcabc78b_lang="",_withScopeId$1X=t=>(pushScopeId("data-v-bcabc78b"),t=t(),popScopeId(),t),_hoisted_1$4q={class:"row-center"},_hoisted_2$4c=["src"],_hoisted_3$42={class:"flex1-column ml10"},_hoisted_4$3Y={class:"row-center"},_hoisted_5$3L={class:"main-text"},_hoisted_6$3x={key:0,class:"lz ml5"},_hoisted_7$3j={key:1,class:"lz ml5"},_hoisted_8$33={class:"sub-text"},_hoisted_9$2R={class:"flex-column"},_hoisted_10$2A={class:"sub-text"},_hoisted_11$2m=["innerHTML"],_hoisted_12$2f={class:"row-center mt2"},_hoisted_13$1$=_withScopeId$1X(()=>createBaseVNode("div",{class:"flex1"},null,-1)),_hoisted_14$1P={key:0,class:"sub-text"},_sfc_main$5V={__name:"SubDetail",setup(t,{expose:o}){const n=ref(),r=ref(!1);ref();const s=ref(),l=ref(),d={navbar:!1,title:!1,transition:!1};let m="",_="";const g=ref(),v=(k,N,S,x)=>{m=k,_=N,s.value=S,l.value=x,r.value=!0},y=k=>`https://tieba.baidu.com/p/comment?tid=${m}&pid=${_}&pn=${k}`,w=k=>B(k),B=k=>{let N=cheerio.load(k),S=N("p.j_pager>a").last().attr("href");S?(S=parseInt(S.substring(1)),n.value.setMaxPage(S)):n.value.setMaxPage(1);let x=N("li.lzl_single_post"),C=[];return x.each((I,D)=>{let R=N(D);C.push({title:R.find("span.lzl_content_main").html(),name:R.find("div.lzl_cnt>a").text(),avatar:R.find("a.j_user_card>img").attr("src"),time:R.find("span.lzl_time").text()})}),C};return o({open:v}),(k,N)=>{const S=resolveComponent("n-drawer-content"),x=resolveComponent("n-drawer"),C=resolveDirective("viewer"),I=resolveDirective("back");return openBlock(),createBlock(x,{show:r.value,"onUpdate:show":N[1]||(N[1]=D=>r.value=D),style:{width:"90%"},placement:"right"},{default:withCtx(()=>[withDirectives((openBlock(),createBlock(S,{closable:"",title:"回复","body-content-style":"padding:0px;"},{default:withCtx(()=>[createVNode(StateLayout,{ref_key:"stateLayout",ref:n,paging:"","url-callback":y,"convert-callback":w,style:{"background-color":"var(--bg-content)"}},{item:withCtx(({item:D,index:R})=>[createVNode(ItemLine,{class:"flex-column"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$4q,[createBaseVNode("img",{class:"avatar",src:D.avatar},null,8,_hoisted_2$4c),createBaseVNode("div",_hoisted_3$42,[createBaseVNode("div",_hoisted_4$3Y,[createBaseVNode("div",_hoisted_5$3L,toDisplayString(D.name),1),D.name==s.value?(openBlock(),createElementBlock("div",_hoisted_6$3x,"楼主")):createCommentVNode("",!0),D.name==l.value?(openBlock(),createElementBlock("div",_hoisted_7$3j,"层主")):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_8$33,toDisplayString(unref(ttsToString)(Date.parse(D.time))),1)]),createBaseVNode("div",_hoisted_9$2R,[createBaseVNode("div",_hoisted_10$2A,"#"+toDisplayString(R+1),1)])]),withDirectives(createBaseVNode("div",{class:"main-text mt5 content",innerHTML:D.title,onClick:N[0]||(N[0]=(...O)=>unref(clickHtml)&&unref(clickHtml)(...O))},null,8,_hoisted_11$2m),[[C,d,void 0,{rebuild:!0}]]),createBaseVNode("div",_hoisted_12$2f,[_hoisted_13$1$,g.value&&g.value[D.sid]?(openBlock(),createElementBlock("div",_hoisted_14$1P,toDisplayString(g.value[D.sid].comment_num)+"回复",1)):createCommentVNode("",!0)])]),_:2},1024)]),_:1},512)]),_:1})),[[I,()=>r.value=!1]])]),_:1},8,["show"])}}},SubDetail=_export_sfc$1(_sfc_main$5V,[["__scopeId","data-v-bcabc78b"]]),Detail_vue_vue_type_style_index_0_scoped_bcec5100_lang="",_withScopeId$1W=t=>(pushScopeId("data-v-bcec5100"),t=t(),popScopeId(),t),_hoisted_1$4p={class:"row-center"},_hoisted_2$4b={class:"row-center"},_hoisted_3$41=["src"],_hoisted_4$3X={class:"flex1-column ml10"},_hoisted_5$3K={class:"main-text"},_hoisted_6$3w={key:0,class:"lz ml5"},_hoisted_7$3i={class:"row-center"},_hoisted_8$32={class:"sub-text"},_hoisted_9$2Q={key:0,class:"sub-text ml5"},_hoisted_10$2z={class:"row-center"},_hoisted_11$2l={class:"sub-text"},_hoisted_12$2e=["innerHTML"],_hoisted_13$1_={class:"row-center mt2"},_hoisted_14$1O=_withScopeId$1W(()=>createBaseVNode("div",{class:"flex1"},null,-1)),_hoisted_15$1C={key:0,class:"sub-text"},_sfc_main$5U={__name:"Detail",setup(t,{expose:o}){const n=useMessage(),r=ref(),s=ref(!1),l=ref(),d=ref(),m=ref([0]),_=ref(""),g={navbar:!1,title:!1,transition:!1},v=ref(),y=ref();let w="";const B=ref(0),k=O=>{putLogs("贴吧");let Q=window.dbGet("tb-his"),Y=JSON.parse(Q)||[];for(let W=0;W100&&(Y.length=100),window.dbPut("tb-his",JSON.stringify(Y)),B.value=0,d.value=null,_.value="",l.value=O,!AppStore.bInnerOpen){N();return}s.value=!0,m.value.length=1},N=()=>{goToUrl(l.value.link,!0)},S=O=>{let Q=l.value.link.replace("/p/","");w=Q;let Y=`https://tieba.baidu.com/p/totalComment?tid=${Q}&pn=${O}&see_lz=0`;axios$1.get(Y).then(W=>{y.value={...y.value,...W.data.data.comment_list}})},x=O=>(S(O),`https://tieba.baidu.com${l.value.link}?pn=${O}&see_lz=${B.value}`),C=O=>I(O),I=O=>{let Q=cheerio.load(O),Y=Q("div.l_post"),W=Q("li.l_reply_num>span").last().text();console.log("max page",W),r.value.setMaxPage(W),d.value={count:Q("li.l_reply_num>span:eq(0)").text()};let K=[];return Y.each((ee,q)=>{var j;let ae=Q(q),ie=ae.find("a.p_author_face>img").attr("data-tb-lazyload");ie==null&&(ie=ae.find("a.p_author_face>img").attr("src")),ie&&!ie.startsWith("http")&&(ie="https:"+ie),ae.find("img").removeAttr("width");let oe=ae.attr("data-field"),J=JSON.parse(oe);(ae.find("span.tail-info").last().text()||J.content)&&K.push({title:ae.find("div.d_post_content").html(),name:ae.find("a.p_author_name").text(),avatar:ie,time:ae.find("span.tail-info").last().text()||((j=J.content)==null?void 0:j.date),sid:ae.attr("data-pid")})}),_.value.length==0,K},D=O=>{if(y.value[O.sid]){if(!AppStore.isVip()&&!isFreeSkip()){n.info("子回复仅VIP可用");return}v.value.open(w,O.sid,_.value,O.name)}},R=()=>{if(!AppStore.isVip()&&!isFreeSkip()){n.info("仅VIP可用");return}putLogs("贴吧只看楼主"),B.value==0?B.value=1:B.value=0,r.value.reload()};return o({open:k}),(O,Q)=>{const Y=resolveComponent("n-drawer-content"),W=resolveComponent("n-drawer"),K=resolveDirective("viewer"),ee=resolveDirective("back");return openBlock(),createElementBlock(Fragment,null,[createVNode(W,{show:s.value,"onUpdate:show":Q[1]||(Q[1]=q=>s.value=q),style:{width:"100%"},placement:"left"},{default:withCtx(()=>[withDirectives((openBlock(),createBlock(Y,{closable:"",title:l.value.title,"body-content-style":"padding:0px;"},{header:withCtx(()=>[createBaseVNode("div",_hoisted_1$4p,[createBaseVNode("div",null,toDisplayString(l.value.title),1),createBaseVNode("a",{class:"sub-text ml10 pt",onClick:N},"原地址")])]),default:withCtx(()=>[createVNode(StateLayout,{ref_key:"stateLayout",ref:r,paging:"","url-callback":x,"convert-callback":C,style:{"background-color":"var(--bg-content)"}},{item:withCtx(({item:q,index:ae})=>[createVNode(ItemLine,{class:"flex-column",onClick:ie=>D(q)},{default:withCtx(()=>[createBaseVNode("div",_hoisted_2$4b,[createBaseVNode("img",{class:"avatar",src:q.avatar},null,8,_hoisted_3$41),createBaseVNode("div",_hoisted_4$3X,[createBaseVNode("div",_hoisted_5$3K,[createTextVNode(toDisplayString(q.name),1),q.name==_.value?(openBlock(),createElementBlock("span",_hoisted_6$3w,"楼主")):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_7$3i,[createBaseVNode("div",_hoisted_8$32,toDisplayString(q.time),1),ae==0?(openBlock(),createElementBlock("div",_hoisted_9$2Q,"• "+toDisplayString(d.value.count)+"回复",1)):createCommentVNode("",!0)])]),createBaseVNode("div",_hoisted_10$2z,[ae==0&&B.value==0?(openBlock(),createElementBlock("a",{key:0,class:"mr10 fs12",size:"small",onClick:R},"只看楼主")):createCommentVNode("",!0),ae==0&&B.value==1?(openBlock(),createElementBlock("a",{key:1,class:"mr10 fs12",size:"small",onClick:R},"取消只看楼主")):createCommentVNode("",!0),createBaseVNode("div",_hoisted_11$2l,"#"+toDisplayString(ae+1),1)])]),withDirectives(createBaseVNode("div",{class:"main-text mt5 content",innerHTML:q.title,onClick:Q[0]||(Q[0]=(...ie)=>unref(clickHtml)&&unref(clickHtml)(...ie))},null,8,_hoisted_12$2e),[[K,g,void 0,{rebuild:!0}]]),createBaseVNode("div",_hoisted_13$1_,[_hoisted_14$1O,y.value&&y.value[q.sid]?(openBlock(),createElementBlock("div",_hoisted_15$1C,toDisplayString(y.value[q.sid].comment_num)+"回复",1)):createCommentVNode("",!0)])]),_:2},1032,["onClick"])]),_:1},512)]),_:1},8,["title"])),[[ee,()=>s.value=!1]])]),_:1},8,["show"]),createVNode(SubDetail,{ref_key:"detail",ref:v},null,512)],64)}}},Detail$d=_export_sfc$1(_sfc_main$5U,[["__scopeId","data-v-bcec5100"]]),MainList_vue_vue_type_style_index_0_scoped_fa020b59_lang="",_withScopeId$1V=t=>(pushScopeId("data-v-fa020b59"),t=t(),popScopeId(),t),_hoisted_1$4o={key:0,class:"column-center"},_hoisted_2$4a=_withScopeId$1V(()=>createBaseVNode("div",{class:"main-text my10 text-center",style:{"margin-top":"30vh"}},"搜索不到该贴吧, 也可能是暂时无法访问的缘故",-1)),_hoisted_3$40={key:1,"transition-duration":"0s",class:"pb-grid",gutter:"0"},_hoisted_4$3W=["onClick"],_hoisted_5$3J={class:"masonry-body"},_hoisted_6$3v={class:"row-center"},_hoisted_7$3h=["src"],_hoisted_8$31={class:"flex-column ml10"},_hoisted_9$2P={class:"fs14"},_hoisted_10$2y={class:"fs10 color-t2"},_hoisted_11$2k={class:"masonry-title mt5",style:{"-webkit-line-clamp":"3"}},_hoisted_12$2d={key:0,class:"masonry-desc mt3"},_hoisted_13$1Z={key:1,class:"mt5",style:{height:"130px"}},_hoisted_14$1N=["src","onClick"],_sfc_main$5T={__name:"MainList",props:{type:String},setup(t,{expose:o}){const n=t,r=ref(),s=ref(),l=()=>{console.log("reload"),r.value.reload()},d=w=>{api({images:[w.img],options:{initialViewIndex:0,navbar:!1,title:!1,transition:!1}})},m=()=>{goToUrl(_(0))},_=w=>`https://tieba.baidu.com/f?kw=${n.type}&ie=utf-8&pn=${w*50-50}`,g=(w,B,k)=>{let N=_(B);ztools.ubrowser.hide().goto(N).wait("div.virtual-list-item").evaluate(()=>document.querySelector("body").innerHTML).run().then(x=>{k(v(x[0]))}).catch(x=>{console.log("e",x),r.value.showError()})},v=w=>{console.log("res",w);let B=cheerio.load(w),k=[];return B("div.virtual-list-item[data-index]").each((S,x)=>{let C=B(x),I=C.find("span.threadlist_reply_date");I.text(),I.length==0&&(C.find("i.icon-top").length==1,C.find("i.icon-bazhurecruit").length==1);let D=C.find("div.thread-title").text();D&&k.push({avatar:C.find("img.avatar-img").attr("src"),name:C.find("a.head-name").text(),title:D,link:C.find("a.thread-content-link").attr("href"),content:C.find("div.thread-content").text(),count:C.find("span.threadlist_rep_num").text(),time:C.find("div.desc-info").text(),img:C.find("div.image-list-item>img").attr("data-src")})}),console.log("list",k),k},y=w=>{w.tb=n.type,goToUrl(w.link,!0)};return o({reload:l}),(w,B)=>{const k=resolveComponent("n-button"),N=resolveDirective("masonry-tile"),S=resolveDirective("masonry");return openBlock(),createElementBlock(Fragment,null,[createVNode(StateLayout,{mode:"self_list",ref_key:"stateLayout",ref:r,paging:"","url-callback":_,"convert-callback2":g,style:{"background-color":"var(--bg-main)"}},{list:withCtx(({list:x})=>[x.length==0?(openBlock(),createElementBlock("div",_hoisted_1$4o,[_hoisted_2$4a,createVNode(k,{class:"mt10",size:"small",onClick:m},{default:withCtx(()=>[createTextVNode("打开原地址试试")]),_:1})])):createCommentVNode("",!0),x.length>0&&unref(AppStore).showImage()?withDirectives((openBlock(),createElementBlock("div",_hoisted_3$40,[(openBlock(!0),createElementBlock(Fragment,null,renderList(x,C=>withDirectives((openBlock(),createElementBlock("div",{class:"flex-column masonry-card dy-card-2col",key:C,onClick:I=>y(C)},[createBaseVNode("div",_hoisted_5$3J,[createBaseVNode("div",_hoisted_6$3v,[C.avatar?(openBlock(),createElementBlock("img",{key:0,src:C.avatar,class:"wh40 brmax"},null,8,_hoisted_7$3h)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_8$31,[createBaseVNode("div",_hoisted_9$2P,toDisplayString(C.name),1),createBaseVNode("div",_hoisted_10$2y,toDisplayString(C.time),1)])]),createBaseVNode("div",_hoisted_11$2k,toDisplayString(C.title),1),C.content?(openBlock(),createElementBlock("div",_hoisted_12$2d,toDisplayString(C.content),1)):createCommentVNode("",!0),C.img?(openBlock(),createElementBlock("div",_hoisted_13$1Z,[createBaseVNode("img",{class:"tb-img",src:C.img,onClick:withModifiers(I=>d(C),["stop"])},null,8,_hoisted_14$1N)])):createCommentVNode("",!0)])],8,_hoisted_4$3W)),[[N]])),128))])),[[S]]):createCommentVNode("",!0),x.length>0&&!unref(AppStore).showImage()?(openBlock(!0),createElementBlock(Fragment,{key:2},renderList(x,(C,I)=>(openBlock(),createElementBlock("div",null,[createVNode(SimpleHotItem,{index:I,content:C.title,hot:C.count,suffix:"回复",onClick:D=>y(C)},null,8,["index","content","hot","onClick"])]))),256)):createCommentVNode("",!0)]),_:1},512),createVNode(Detail$d,{ref_key:"detail",ref:s},null,512)],64)}}},MainList$v=_export_sfc$1(_sfc_main$5T,[["__scopeId","data-v-fa020b59"]]),_sfc_main$5S={__name:"Meta",setup(t,{expose:o}){const n=ref(!1),r=ref();return o({open:l=>{n.value=!0,r.value=l}}),(l,d)=>{const m=resolveComponent("n-drawer-content"),_=resolveComponent("n-drawer"),g=resolveDirective("back");return openBlock(),createBlock(_,{show:n.value,"onUpdate:show":d[0]||(d[0]=v=>n.value=v),width:"100%",placement:"left"},{default:withCtx(()=>[withDirectives((openBlock(),createBlock(m,{closable:"",title:r.value,"body-content-style":"padding:0px;"},{default:withCtx(()=>[createVNode(MainList$v,{type:r.value},null,8,["type"])]),_:1},8,["title"])),[[g,()=>n.value=!1]])]),_:1},8,["show"])}}},Topic_vue_vue_type_style_index_0_scoped_5154bd94_lang="",_hoisted_1$4n={class:"row-center"},_hoisted_2$49={key:0,class:"color-primary fs12 ml5"},_hoisted_3$3$={class:"flex-column text-center",style:{"background-color":"var(--bg-main)",color:"var(--color-t1)","border-radius":"4px",width:"46px",height:"40px"}},_hoisted_4$3V={class:"fs14 fb"},_hoisted_5$3I={class:"flex1 fs10",style:{"background-color":"var(--color-primary)",color:"white","border-radius":"0px 0px 4px 4px","margin-top":"1px"}},_hoisted_6$3u={class:"flex1-column ml10"},_hoisted_7$3g={class:"row-center"},_hoisted_8$30=["innerHTML"],_hoisted_9$2O=["onClick"],_hoisted_10$2x=["innerHTML"],_sfc_main$5R={__name:"Topic",setup(t,{expose:o}){useMessage();const n=ref(),r=ref(!1),s=ref(),l=ref(),d={navbar:!1,title:!1,transition:!1},m=ref(),_=ref(),g=S=>{if(putLogs("贴吧"),l.value=null,s.value=S,!AppStore.bInnerOpen){v();return}r.value=!0},v=()=>{goToUrl(y(),!0)},y=S=>s.value.topic_url,w=S=>B(S),B=S=>{let x=cheerio.load(S),C=x("div.topic-header-info");l.value={number:C.find("span.topic-talk-number").text(),desc:C.find("p.topic-desc").html()},C=x("ul#related-thread-list>li.thread-item");let I=[];return C.each((D,R)=>{let O=x(R),Q=O.find("a.forum-name").text(),Y=[];O.find("div.photo-wrapper>img").each((W,K)=>{Y.push(x(K).attr("src"))}),I.push({title:O.find("a.title").html(),link:"https://tieba.baidu.com"+O.find("a.title").attr("href"),desc:O.find("p.content").html(),meta:Q.substring(0,Q.length-1),time:O.find("span.last-time").text(),images:Y,count:O.find("span.reply-num").text()})}),I},k=S=>{goToUrl(S.link,!0)},N=S=>{_.value.open(S.meta)};return o({open:g}),(S,x)=>{const C=resolveComponent("n-drawer-content"),I=resolveComponent("n-drawer"),D=resolveDirective("viewer"),R=resolveDirective("back");return openBlock(),createElementBlock(Fragment,null,[createVNode(I,{show:r.value,"onUpdate:show":x[2]||(x[2]=O=>r.value=O),style:{width:"100%"},placement:"left"},{default:withCtx(()=>[withDirectives((openBlock(),createBlock(C,{closable:"","body-content-style":"padding:0px;"},{header:withCtx(()=>[createBaseVNode("div",_hoisted_1$4n,[createBaseVNode("div",null,toDisplayString(s.value.topic_name),1),l.value?(openBlock(),createElementBlock("div",_hoisted_2$49,toDisplayString(l.value.number)+"讨论",1)):createCommentVNode("",!0),createBaseVNode("a",{class:"sub-text ml10 pt",onClick:v},"原地址")])]),default:withCtx(()=>[createVNode(StateLayout,{ref_key:"stateLayout",ref:n,"url-callback":y,"convert-callback":w,style:{"background-color":"var(--bg-content)"}},{top:withCtx(()=>[]),item:withCtx(({item:O,index:Q})=>[createVNode(ItemLine,{class:"flex-row",onClick:Y=>k(O)},{default:withCtx(()=>[createBaseVNode("div",_hoisted_3$3$,[createBaseVNode("div",_hoisted_4$3V,toDisplayString(O.count),1),createBaseVNode("div",_hoisted_5$3I,toDisplayString(O.time),1)]),createBaseVNode("div",_hoisted_6$3u,[createBaseVNode("div",_hoisted_7$3g,[withDirectives(createBaseVNode("div",{class:"main-text fw500 content flex1",innerHTML:O.title,onClick:x[0]||(x[0]=(...Y)=>unref(clickHtml)&&unref(clickHtml)(...Y))},null,8,_hoisted_8$30),[[D,d,void 0,{rebuild:!0}]]),createBaseVNode("div",{class:"tag ml10",onClick:withModifiers(Y=>N(O),["stop"])},toDisplayString(O.meta)+"吧",9,_hoisted_9$2O)]),O.desc?withDirectives((openBlock(),createElementBlock("div",{key:0,class:"sub-text content mt2",innerHTML:O.desc,onClick:x[1]||(x[1]=(...Y)=>unref(clickHtml)&&unref(clickHtml)(...Y))},null,8,_hoisted_10$2x)),[[D,d,void 0,{rebuild:!0}]]):createCommentVNode("",!0),O.images.length>0?(openBlock(),createBlock(ImageLayout,{key:1,class:"mt2",images:O.images,smart2:""},null,8,["images"])):createCommentVNode("",!0)])]),_:2},1032,["onClick"])]),_:1},512)]),_:1})),[[R,()=>r.value=!1]])]),_:1},8,["show"]),createVNode(_sfc_main$5S,{ref_key:"meta",ref:_},null,512),createVNode(Detail$d,{ref_key:"detail",ref:m},null,512)],64)}}},Topic=_export_sfc$1(_sfc_main$5R,[["__scopeId","data-v-5154bd94"]]),_hoisted_1$4m={key:0,"transition-duration":"0s",class:"pb-grid"},_hoisted_2$48=["onClick"],_hoisted_3$3_={class:"hot-cover"},_hoisted_4$3U=["src"],_hoisted_5$3H={class:"flex1-column ml10"},_hoisted_6$3t={class:"row-center"},_hoisted_7$3f=createBaseVNode("div",{class:"flex1"},null,-1),_hoisted_8$2$={class:"hot-value"},_hoisted_9$2N={class:"hot-title"},_hoisted_10$2w={class:"hot-desc"},_sfc_main$5Q={__name:"TiebaList",setup(t){const o=ref(),n=d=>d>=1e4?(d/1e4).toFixed(1)+"万":d,r=d=>"https://tieba.baidu.com/hottopic/browse/topicList",s=d=>d.data.bang_topic.topic_list,l=d=>{o.value.open(d)};return(d,m)=>{const _=resolveDirective("masonry-tile"),g=resolveDirective("masonry");return openBlock(),createElementBlock(Fragment,null,[createVNode(StateLayout,{ref:"stateLayout",mode:"self_list","url-callback":r,"convert-callback":s,style:{"background-color":"var(--bg-main)"}},{list:withCtx(({list:v})=>[unref(AppStore).showImage()?withDirectives((openBlock(),createElementBlock("div",_hoisted_1$4m,[(openBlock(!0),createElementBlock(Fragment,null,renderList(v,(y,w)=>withDirectives((openBlock(),createElementBlock("div",{class:"flex-row hot-card",key:y,onClick:B=>l(y)},[createBaseVNode("div",_hoisted_3$3_,[createBaseVNode("img",{src:y.topic_pic},null,8,_hoisted_4$3U)]),createBaseVNode("div",_hoisted_5$3H,[createBaseVNode("div",_hoisted_6$3t,[createVNode(IdxTag,{index:w},null,8,["index"]),_hoisted_7$3f,createBaseVNode("div",_hoisted_8$2$,toDisplayString(n(y.discuss_num))+"🔥",1)]),createBaseVNode("div",_hoisted_9$2N,toDisplayString(y.topic_name),1),createBaseVNode("div",_hoisted_10$2w,toDisplayString(y.topic_desc),1)])],8,_hoisted_2$48)),[[_]])),128))])),[[g]]):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(v,(y,w)=>(openBlock(),createElementBlock("div",null,[createVNode(SimpleHotItem,{index:w,content:y.topic_name,hot:y.discuss_num,onClick:B=>l(y)},null,8,["index","content","hot","onClick"])]))),256))]),_:1},512),createVNode(Topic,{ref_key:"topic",ref:o},null,512)],64)}}},PengpaiList_vue_vue_type_style_index_0_scoped_488febee_lang="",_hoisted_1$4l={key:0,"transition-duration":"0s",class:"pb-grid"},_hoisted_2$47=["onClick"],_hoisted_3$3Z={class:"masonry-cover"},_hoisted_4$3T=["src"],_hoisted_5$3G={class:"masonry-body"},_hoisted_6$3s={class:"masonry-title"},_hoisted_7$3e={class:"pp-hot"},_sfc_main$5P={__name:"PengpaiList",props:{type:String},setup(t){const o=s=>"https://cache.thepaper.cn/contentapi/wwwIndex/rightSidebar",n=s=>s.data.hotNews,r=s=>{goToUrl("https://www.thepaper.cn/newsDetail_forward_"+s.contId)};return(s,l)=>{const d=resolveDirective("masonry-tile"),m=resolveDirective("masonry");return openBlock(),createBlock(StateLayout,{ref:"stateLayout",mode:"self_list","url-callback":o,"convert-callback":n,style:{"background-color":"var(--bg-main)"}},{list:withCtx(({list:_})=>[unref(AppStore).showImage()?withDirectives((openBlock(),createElementBlock("div",_hoisted_1$4l,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_,(g,v)=>withDirectives((openBlock(),createElementBlock("div",{class:"flex-column masonry-card",key:g,onClick:y=>r(g)},[createBaseVNode("div",_hoisted_3$3Z,[createBaseVNode("img",{src:g.pic},null,8,_hoisted_4$3T),createVNode(IdxTag,{index:v,type:"masonry"},null,8,["index"])]),createBaseVNode("div",_hoisted_5$3G,[createBaseVNode("div",_hoisted_6$3s,toDisplayString(g.name),1),createBaseVNode("div",_hoisted_7$3e,toDisplayString(g.praiseTimes)+"🔥",1)])],8,_hoisted_2$47)),[[d]])),128))])),[[m]]):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(_,(g,v)=>(openBlock(),createElementBlock("div",null,[createVNode(SimpleHotItem,{index:v,content:g.name,hot:g.praiseTimes,onClick:y=>r(g)},null,8,["index","content","hot","onClick"])]))),256))]),_:1},512)}}},PengpaiList=_export_sfc$1(_sfc_main$5P,[["__scopeId","data-v-488febee"]]),ToutiaoList_vue_vue_type_style_index_0_scoped_b34382a7_lang="",_hoisted_1$4k={key:0,"transition-duration":"0s",class:"pb-grid"},_hoisted_2$46=["onClick"],_hoisted_3$3Y={class:"masonry-cover"},_hoisted_4$3S=["src"],_hoisted_5$3F={class:"masonry-body"},_hoisted_6$3r={class:"masonry-title"},_hoisted_7$3d={key:0,class:"tt-label"},_hoisted_8$2_={key:0,class:"masonry-desc"},_sfc_main$5O={__name:"ToutiaoList",props:{type:String},setup(t){const o=s=>"https://www.toutiao.com/hot-event/hot-board/?origin=toutiao_pc",n=s=>s.data,r=s=>{goToUrl(s.Url)};return(s,l)=>{const d=resolveDirective("masonry-tile"),m=resolveDirective("masonry");return openBlock(),createBlock(StateLayout,{ref:"stateLayout",mode:"self_list","url-callback":o,"convert-callback":n,style:{"background-color":"var(--bg-main)"}},{list:withCtx(({list:_})=>[unref(AppStore).showImage()?withDirectives((openBlock(),createElementBlock("div",_hoisted_1$4k,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_,(g,v)=>withDirectives((openBlock(),createElementBlock("div",{class:"flex-column masonry-card",key:g,onClick:y=>r(g)},[createBaseVNode("div",_hoisted_3$3Y,[createBaseVNode("img",{src:g.Image.url},null,8,_hoisted_4$3S),createVNode(IdxTag,{index:v,type:"masonry"},null,8,["index"])]),createBaseVNode("div",_hoisted_5$3F,[createBaseVNode("div",_hoisted_6$3r,[createTextVNode(toDisplayString(g.Title)+" ",1),g.Label?(openBlock(),createElementBlock("span",_hoisted_7$3d,toDisplayString(g.Label),1)):createCommentVNode("",!0)]),g.content?(openBlock(),createElementBlock("div",_hoisted_8$2_,toDisplayString(g.content),1)):createCommentVNode("",!0)])],8,_hoisted_2$46)),[[d]])),128))])),[[m]]):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(_,(g,v)=>(openBlock(),createElementBlock("div",null,[createVNode(SimpleHotItem,{index:v,content:g.Title,hot:g.HotValue,onClick:y=>r(g)},null,8,["index","content","hot","onClick"])]))),256))]),_:1},512)}}},ToutitaoList=_export_sfc$1(_sfc_main$5O,[["__scopeId","data-v-b34382a7"]]),_hoisted_1$4j={key:0,"transition-duration":"0s",class:"pb-grid"},_hoisted_2$45=["onClick"],_hoisted_3$3X={key:0,class:"masonry-cover"},_hoisted_4$3R=["src"],_hoisted_5$3E={key:1,class:"masonry-noimg"},_hoisted_6$3q={class:"masonry-body"},_hoisted_7$3c={class:"masonry-title"},_sfc_main$5N={__name:"DouyinList",props:{type:String},setup(t){const o=s=>"https://aweme-hl.snssdk.com/aweme/v1/hot/search/list/?&source=3&os_api=23",n=s=>s.data.word_list,r=s=>{let l="https://www.douyin.com/search/"+s.word;goToUrl(l)};return(s,l)=>{const d=resolveDirective("masonry-tile"),m=resolveDirective("masonry");return openBlock(),createBlock(StateLayout,{ref:"stateLayout",mode:"self_list","url-callback":o,"convert-callback":n,style:{"background-color":"var(--bg-main)"}},{list:withCtx(({list:_})=>[unref(AppStore).showImage()?withDirectives((openBlock(),createElementBlock("div",_hoisted_1$4j,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_,(g,v)=>withDirectives((openBlock(),createElementBlock("div",{class:"flex-column masonry-card",key:g,onClick:y=>r(g)},[g.word_cover?(openBlock(),createElementBlock("div",_hoisted_3$3X,[createBaseVNode("img",{src:g.word_cover.url_list[0]},null,8,_hoisted_4$3R),createVNode(IdxTag,{index:v,type:"masonry"},null,8,["index"])])):(openBlock(),createElementBlock("div",_hoisted_5$3E,[createVNode(IdxTag,{index:v,type:"masonry2"},null,8,["index"])])),createBaseVNode("div",_hoisted_6$3q,[createBaseVNode("div",_hoisted_7$3c,toDisplayString(g.word),1)])],8,_hoisted_2$45)),[[d]])),128))])),[[m]]):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(_,(g,v)=>(openBlock(),createElementBlock("div",null,[createVNode(SimpleHotItem,{index:v,content:g.word,hot:g.hot_value,onClick:y=>r(g)},null,8,["index","content","hot","onClick"])]))),256))]),_:1},512)}}},ZhihuList_vue_vue_type_style_index_0_scoped_b129228f_lang="",_withScopeId$1U=t=>(pushScopeId("data-v-b129228f"),t=t(),popScopeId(),t),_hoisted_1$4i={class:"flex-column h100_ vh-center"},_hoisted_2$44=_withScopeId$1U(()=>createBaseVNode("div",{class:"main-text"},"需要登录才能浏览, 登录完后点刷新~",-1)),_hoisted_3$3W={key:0,"transition-duration":"0s",class:"pb-grid"},_hoisted_4$3Q=["onClick"],_hoisted_5$3D={key:0,class:"masonry-cover"},_hoisted_6$3p=["src"],_hoisted_7$3b={key:1,class:"masonry-noimg"},_hoisted_8$2Z={class:"masonry-body"},_hoisted_9$2M={class:"masonry-title"},_hoisted_10$2v={class:"zh-meta"},_hoisted_11$2j={key:0,class:"zh-hot"},_hoisted_12$2c={key:0,class:"masonry-desc"},_sfc_main$5M={__name:"ZhihuList",props:{type:String},setup(t){const o=()=>{goToUrl(n())},n=d=>"https://www.zhihu.com/billboard",r=d=>{try{let m='
+
+
+
+
+
+
+
+
+
+