delta-comic-core 0.5.13 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.cjs CHANGED
@@ -1,4 +1,4 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./chunk-FeXHwk1_.cjs`);let t=require(`vue`),n=require(`axios`);n=e.r(n);let r=require(`vue-router`),i=require(`pinia`),a=require(`naive-ui`),o=require(`vant`);function s(e,n){return(0,t.getCurrentScope)()?((0,t.onScopeDispose)(e,n),!0):!1}var c=new WeakMap,l=(...e)=>{let n=e[0],r=(0,t.getCurrentInstance)()?.proxy??(0,t.getCurrentScope)();if(r==null&&!(0,t.hasInjectionContext)())throw Error(`injectLocal must be called in setup`);return r&&c.has(r)&&n in c.get(r)?c.get(r)[n]:(0,t.inject)(...e)},u=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var d=e=>e!==void 0,f=e=>e!=null,p=Object.prototype.toString,m=e=>p.call(e)===`[object Object]`,h=()=>{};function g(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}function _(e,n={}){let r,i,a=h,o=e=>{clearTimeout(e),a(),a=h},s;return c=>{let l=(0,t.toValue)(e),u=(0,t.toValue)(n.maxWait);return r&&o(r),l<=0||u!==void 0&&u<=0?(i&&=(o(i),void 0),Promise.resolve(c())):new Promise((e,t)=>{a=n.rejectOnCancel?t:e,s=c,u&&!i&&(i=setTimeout(()=>{r&&o(r),i=void 0,e(s())},u)),r=setTimeout(()=>{i&&o(i),i=void 0,e(c())},l)})}}function v(...e){let n=0,r,i=!0,a=h,o,s,c,l,u;!(0,t.isRef)(e[0])&&typeof e[0]==`object`?{delay:s,trailing:c=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[s,c=!0,l=!0,u=!1]=e;let d=()=>{r&&(clearTimeout(r),r=void 0,a(),a=h)};return e=>{let f=(0,t.toValue)(s),p=Date.now()-n,m=()=>o=e();return d(),f<=0?(n=Date.now(),m()):(p>f?(n=Date.now(),(l||!i)&&m()):c&&(o=new Promise((e,t)=>{a=u?t:e,r=setTimeout(()=>{n=Date.now(),i=!0,e(m()),d()},Math.max(0,f-p))})),!l&&!r&&(r=setTimeout(()=>i=!0,f)),i=!1,o)}}function y(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(()=>i(n),e):setTimeout(r,e)})}function b(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function x(e){return Array.isArray(e)?e:[e]}function S(e){return e||(0,t.getCurrentInstance)()}function C(e,t=200,n={}){return g(_(t,n),e)}function w(e,t=200,n=!1,r=!0,i=!1){return g(v(t,n,r,i),e)}function T(e,n=!0,r){S(r)?(0,t.onMounted)(e,r):n?e():(0,t.nextTick)(e)}function E(e,n=!1){function r(r,{flush:i=`sync`,deep:a=!1,timeout:o,throwOnTimeout:s}={}){let c=null,l=[new Promise(o=>{c=(0,t.watch)(e,e=>{r(e)!==n&&(c?c():(0,t.nextTick)(()=>c?.()),o(e))},{flush:i,deep:a,immediate:!0})})];return o!=null&&l.push(y(o,s).then(()=>(0,t.toValue)(e)).finally(()=>c?.())),Promise.race(l)}function i(i,a){if(!(0,t.isRef)(i))return r(e=>e===i,a);let{flush:o=`sync`,deep:s=!1,timeout:c,throwOnTimeout:l}=a??{},u=null,d=[new Promise(r=>{u=(0,t.watch)([e,i],([e,i])=>{n!==(e===i)&&(u?u():(0,t.nextTick)(()=>u?.()),r(e))},{flush:o,deep:s,immediate:!0})})];return c!=null&&d.push(y(c,l).then(()=>(0,t.toValue)(e)).finally(()=>(u?.(),(0,t.toValue)(e)))),Promise.race(d)}function a(e){return r(e=>!!e,e)}function o(e){return i(null,e)}function s(e){return i(void 0,e)}function c(e){return r(Number.isNaN,e)}function l(e,n){return r(n=>{let r=Array.from(n);return r.includes(e)||r.includes((0,t.toValue)(e))},n)}function u(e){return d(1,e)}function d(e=1,t){let n=-1;return r(()=>(n+=1,n>=e),t)}return Array.isArray((0,t.toValue)(e))?{toMatch:r,toContains:l,changed:u,changedTimes:d,get not(){return E(e,!n)}}:{toMatch:r,toBe:i,toBeTruthy:a,toBeNull:o,toBeNaN:c,toBeUndefined:s,changed:u,changedTimes:d,get not(){return E(e,!n)}}}function D(e){return E(e)}function O(e,n,r){return(0,t.watch)(e,n,{...r,immediate:!0})}function k(e,n,r){return(0,t.watch)(e,n,{...r,once:!0})}function ee(e,n,r){let i;i=(0,t.isRef)(r)?{evaluating:r}:r||{};let{lazy:a=!1,flush:o=`sync`,evaluating:s=void 0,shallow:c=!0,onError:l=globalThis.reportError??h}=i,u=(0,t.shallowRef)(!a),d=c?(0,t.shallowRef)(n):(0,t.ref)(n),f=0;return(0,t.watchEffect)(async t=>{if(!u.value)return;f++;let n=f,r=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{let i=await e(e=>{t(()=>{s&&(s.value=!1),r||e()})});n===f&&(d.value=i)}catch(e){l(e)}finally{s&&n===f&&(s.value=!1),r=!0}},{flush:o}),a?(0,t.computed)(()=>(u.value=!0,d.value)):d}var te=u?window:void 0;u&&window.document,u&&window.navigator,u&&window.location;function ne(e){let n=(0,t.toValue)(e);return n?.$el??n}function re(...e){let n=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),r=(0,t.computed)(()=>{let n=x((0,t.toValue)(e[0])).filter(e=>e!=null);return n.every(e=>typeof e!=`string`)?n:void 0});return O(()=>[r.value?.map(e=>ne(e))??[te].filter(e=>e!=null),x((0,t.toValue)(r.value?e[1]:e[0])),x((0,t.unref)(r.value?e[2]:e[1])),(0,t.toValue)(r.value?e[3]:e[2])],([e,t,r,i],a,o)=>{if(!e?.length||!t?.length||!r?.length)return;let s=m(i)?{...i}:i,c=e.flatMap(e=>t.flatMap(t=>r.map(r=>n(e,t,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function ie(){let e=(0,t.shallowRef)(!1),n=(0,t.getCurrentInstance)();return n&&(0,t.onMounted)(()=>{e.value=!0},n),e}function ae(e){let n=ie();return(0,t.computed)(()=>(n.value,!!e()))}function oe(e,n,r={}){let{window:i=te,...a}=r,o,c=ae(()=>i&&`MutationObserver`in i),l=()=>{o&&=(o.disconnect(),void 0)},u=(0,t.watch)((0,t.computed)(()=>{let n=x((0,t.toValue)(e)).map(ne).filter(f);return new Set(n)}),e=>{l(),c.value&&e.size&&(o=new MutationObserver(n),e.forEach(e=>o.observe(e,a)))},{immediate:!0,flush:`post`}),d=()=>o?.takeRecords(),p=()=>{u(),l()};return s(p),{isSupported:c,stop:p,takeRecords:d}}var se=500,ce=10;function le(e,n,r){var i,a;let o=(0,t.computed)(()=>ne(e)),s,c,l,u=!1;function d(){s&&=(clearTimeout(s),void 0),c=void 0,l=void 0,u=!1}function f(e){let t=r?.delay;return typeof t==`function`?t(e):t??se}function p(e){var t,n,i;let[a,s,f]=[l,c,u];if(d(),!r?.onMouseUp||!s||!a||!(r==null||(t=r.modifiers)==null)&&t.self&&e.target!==o.value)return;!(r==null||(n=r.modifiers)==null)&&n.prevent&&e.preventDefault(),!(r==null||(i=r.modifiers)==null)&&i.stop&&e.stopPropagation();let p=e.x-s.x,m=e.y-s.y,h=Math.sqrt(p*p+m*m);r.onMouseUp(e.timeStamp-a,h,f)}function m(e){var t,i,a;!(r==null||(t=r.modifiers)==null)&&t.self&&e.target!==o.value||(d(),!(r==null||(i=r.modifiers)==null)&&i.prevent&&e.preventDefault(),!(r==null||(a=r.modifiers)==null)&&a.stop&&e.stopPropagation(),c={x:e.x,y:e.y},l=e.timeStamp,s=setTimeout(()=>{u=!0,n(e)},f(e)))}function h(e){var t,n,i;if(!(r==null||(t=r.modifiers)==null)&&t.self&&e.target!==o.value||!c||r?.distanceThreshold===!1)return;!(r==null||(n=r.modifiers)==null)&&n.prevent&&e.preventDefault(),!(r==null||(i=r.modifiers)==null)&&i.stop&&e.stopPropagation();let a=e.x-c.x,s=e.y-c.y;Math.sqrt(a*a+s*s)>=(r?.distanceThreshold??ce)&&d()}let g={capture:r==null||(i=r.modifiers)==null?void 0:i.capture,once:r==null||(a=r.modifiers)==null?void 0:a.once},_=[re(o,`pointerdown`,m,g),re(o,`pointermove`,h,g),re(o,[`pointerup`,`pointerleave`],p,g)];return()=>_.forEach(e=>e())}var ue=Symbol(`vueuse-ssr-width`);function de(){let e=(0,t.hasInjectionContext)()?l(ue,null):null;return typeof e==`number`?e:void 0}function fe(e,n={}){let{window:r=te,ssrWidth:i=de()}=n,a=ae(()=>r&&`matchMedia`in r&&typeof r.matchMedia==`function`),o=(0,t.shallowRef)(typeof i==`number`),s=(0,t.shallowRef)(),c=(0,t.shallowRef)(!1);return(0,t.watchEffect)(()=>{if(o.value){o.value=!a.value,c.value=(0,t.toValue)(e).split(`,`).some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),r=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||r);return n&&a&&(a=i>=b(n[1])),r&&a&&(a=i<=b(r[1])),t?!a:a});return}a.value&&(s.value=r.matchMedia((0,t.toValue)(e)),c.value=s.value.matches)}),re(s,`change`,e=>{c.value=e.matches},{passive:!0}),(0,t.computed)(()=>c.value)}function pe(e){return fe(`(prefers-color-scheme: dark)`,e)}function me(e,n,r={}){let{window:i=te,...a}=r,o,c=ae(()=>i&&`ResizeObserver`in i),l=()=>{o&&=(o.disconnect(),void 0)},u=(0,t.watch)((0,t.computed)(()=>{let n=(0,t.toValue)(e);return Array.isArray(n)?n.map(e=>ne(e)):[ne(n)]}),e=>{if(l(),c.value&&i){o=new ResizeObserver(n);for(let t of e)t&&o.observe(t,a)}},{immediate:!0,flush:`post`}),d=()=>{l(),u()};return s(d),{isSupported:c,stop:d}}var he=1;function ge(e,n={}){let{throttle:r=0,idle:i=200,onStop:a=h,onScroll:o=h,offset:s={left:0,right:0,top:0,bottom:0},observe:c={mutation:!1},eventListenerOptions:l={capture:!1,passive:!0},behavior:u=`auto`,window:d=te,onError:f=e=>{console.error(e)}}=n,p=typeof c==`boolean`?{mutation:c}:c,m=(0,t.shallowRef)(0),g=(0,t.shallowRef)(0),_=(0,t.computed)({get(){return m.value},set(e){y(e,void 0)}}),v=(0,t.computed)({get(){return g.value},set(e){y(void 0,e)}});function y(n,r){var i,a;if(!d)return;let o=(0,t.toValue)(e);if(!o)return;(i=o instanceof Document?d.document.body:o)==null||i.scrollTo({top:(0,t.toValue)(r)??v.value,left:(0,t.toValue)(n)??_.value,behavior:(0,t.toValue)(u)});let s=(o==null||(a=o.document)==null?void 0:a.documentElement)||o?.documentElement||o;_!=null&&(m.value=s.scrollLeft),v!=null&&(g.value=s.scrollTop)}let b=(0,t.shallowRef)(!1),x=(0,t.reactive)({left:!0,right:!1,top:!0,bottom:!1}),S=(0,t.reactive)({left:!1,right:!1,top:!1,bottom:!1}),E=e=>{b.value&&(b.value=!1,S.left=!1,S.right=!1,S.top=!1,S.bottom=!1,a(e))},D=C(E,r+i),O=e=>{var t;if(!d)return;let n=(e==null||(t=e.document)==null?void 0:t.documentElement)||e?.documentElement||ne(e),{display:r,flexDirection:i,direction:a}=d.getComputedStyle(n),o=a===`rtl`?-1:1,c=n.scrollLeft;S.left=c<m.value,S.right=c>m.value;let l=Math.abs(c*o)<=(s.left||0),u=Math.abs(c*o)+n.clientWidth>=n.scrollWidth-(s.right||0)-he;r===`flex`&&i===`row-reverse`?(x.left=u,x.right=l):(x.left=l,x.right=u),m.value=c;let f=n.scrollTop;e===d.document&&!f&&(f=d.document.body.scrollTop),S.top=f<g.value,S.bottom=f>g.value;let p=Math.abs(f)<=(s.top||0),h=Math.abs(f)+n.clientHeight>=n.scrollHeight-(s.bottom||0)-he;r===`flex`&&i===`column-reverse`?(x.top=h,x.bottom=p):(x.top=p,x.bottom=h),g.value=f},k=e=>{d&&(O(e.target.documentElement??e.target),b.value=!0,D(e),o(e))};return re(e,`scroll`,r?w(k,r,!0,!1):k,l),T(()=>{try{let n=(0,t.toValue)(e);if(!n)return;O(n)}catch(e){f(e)}}),p?.mutation&&e!=null&&e!==d&&e!==document&&oe(e,()=>{let n=(0,t.toValue)(e);n&&O(n)},{attributes:!0,childList:!0,subtree:!0}),re(e,`scrollend`,E,l),{x:_,y:v,isScrolling:b,arrivedState:x,directions:S,measure(){let n=(0,t.toValue)(e);d&&n&&O(n)}}}function _e(e={}){let{window:n=te,initialWidth:r=1/0,initialHeight:i=1/0,listenOrientation:a=!0,includeScrollbar:o=!0,type:s=`inner`}=e,c=(0,t.shallowRef)(r),l=(0,t.shallowRef)(i),u=()=>{if(n)if(s===`outer`)c.value=n.outerWidth,l.value=n.outerHeight;else if(s===`visual`&&n.visualViewport){let{width:e,height:t,scale:r}=n.visualViewport;c.value=Math.round(e*r),l.value=Math.round(t*r)}else o?(c.value=n.innerWidth,l.value=n.innerHeight):(c.value=n.document.documentElement.clientWidth,l.value=n.document.documentElement.clientHeight)};u(),T(u);let d={passive:!0};return re(`resize`,u,d),n&&s===`visual`&&n.visualViewport&&re(n.visualViewport,`resize`,u,d),a&&(0,t.watch)(fe(`(orientation: portrait)`),()=>u()),{width:c,height:l}}function ve(e){return Array.isArray(e)?e:Array.from(e)}function ye(e){return Number.isSafeInteger(e)&&e>=0}function be(e){return e!=null&&typeof e!=`function`&&ye(e.length)}function xe(e){return e}function Se(e){return e===`__proto__`}function Ce(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}function we(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function Te(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(Te).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function Ee(e){if(Array.isArray(e))return e.map(we);if(typeof e==`symbol`)return[e];e=Te(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&(t.push(``),r++);r<n;){let s=e[r];a?s===`\\`&&r+1<n?(r++,i+=e[r]):s===a?a=``:i+=s:o?s===`"`||s===`'`?a=s:s===`]`?(o=!1,t.push(i),i=``):i+=s:s===`[`?(o=!0,i&&=(t.push(i),``)):s===`.`?i&&=(t.push(i),``):i+=s,r++}return i&&t.push(i),t}function De(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(Se(t))return n;let r=e[t];return r===void 0?Ce(t)?De(e,Ee(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=we(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return Oe(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),Se(t))return n;let r=e[t];return r===void 0?n:r}}}function Oe(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||Se(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}function ke(e){return function(t){return De(t,e)}}function Ae(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function je(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function Me(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Ne(e,t,n){return typeof n==`function`?Pe(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?Pe(t,r,e,s):!!c},new Map):ze(e,t)}function Pe(e,t,n,r){if(t===e)return!0;switch(typeof t){case`object`:return Fe(e,t,n,r);case`function`:return Object.keys(t).length>0?Pe(e,{...t},n,r):Me(e,t);default:return Ae(e)?typeof t==`string`?t===``:!0:Me(e,t)}}function Fe(e,t,n,r){if(t==null)return!0;if(Array.isArray(t))return Le(e,t,n,r);if(t instanceof Map)return Ie(e,t,n,r);if(t instanceof Set)return Re(e,t,n,r);let i=Object.keys(t);if(e==null)return i.length===0;if(i.length===0)return!0;if(r&&r.has(t))return r.get(t)===e;r&&r.set(t,e);try{for(let a=0;a<i.length;a++){let o=i[a];if(!je(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r&&r.delete(t)}}function Ie(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function Le(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function Re(e,t,n,r){return t.size===0?!0:e instanceof Set?Le([...e],[...t],n,r):!1}function ze(e,t){return Ne(e,t,()=>void 0)}function Be(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Ve(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var He=`[object RegExp]`,Ue=`[object String]`,We=`[object Number]`,Ge=`[object Boolean]`,Ke=`[object Arguments]`,qe=`[object Symbol]`,Je=`[object Date]`,Ye=`[object Map]`,Xe=`[object Set]`,Ze=`[object Array]`,Qe=`[object ArrayBuffer]`,$e=`[object Object]`,et=`[object DataView]`,tt=`[object Uint8Array]`,nt=`[object Uint8ClampedArray]`,rt=`[object Uint16Array]`,it=`[object Uint32Array]`,at=`[object Int8Array]`,ot=`[object Int16Array]`,st=`[object Int32Array]`,ct=`[object Float32Array]`,lt=`[object Float64Array]`;function ut(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function dt(e,t){return ft(e,void 0,e,new Map,t)}function ft(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(je(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=ft(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,ft(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(ft(a,void 0,n,r,i));return t}if(typeof Buffer<`u`&&Buffer.isBuffer(e))return e.subarray();if(ut(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=ft(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),pt(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),pt(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),pt(t,e,n,r,i),t}if(e instanceof Error){let t=new e.constructor;return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,pt(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),pt(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),pt(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),pt(t,e,n,r,i),t}if(typeof e==`object`&&mt(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),pt(t,e,n,r,i),t}return e}function pt(e,t,n=e,r,i){let a=[...Object.keys(t),...Be(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=ft(t[s],s,n,r,i))}}function mt(e){switch(Ve(e)){case Ke:case Ze:case Qe:case et:case Ge:case Je:case ct:case lt:case at:case ot:case st:case Ye:case We:case $e:case He:case Xe:case Ue:case qe:case tt:case nt:case rt:case it:return!0;default:return!1}}function ht(e){return ft(e,void 0,e,new Map,void 0)}function gt(e){return e=ht(e),t=>ze(t,e)}function _t(e,t){return dt(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`)switch(Object.prototype.toString.call(e)){case We:case Ue:case Ge:{let t=new e.constructor(e?.valueOf());return pt(t,e),t}case Ke:{let t={};return pt(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}})}function vt(e){return _t(e)}var yt=/^(?:0|[1-9]\d*)$/;function bt(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return yt.test(e)}}function xt(e){return typeof e==`object`&&!!e&&Ve(e)===`[object Arguments]`}function St(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&Ce(t)&&e?.[t]==null?Ee(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=n[e];if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||xt(r))&&bt(t)&&t<r.length))return!1;r=r[t]}return!0}function Ct(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=we(e);break}return t=vt(t),function(n){let r=De(n,e);return r===void 0?St(n,e):t===void 0?r===void 0:ze(r,t)}}function wt(e){if(e==null)return xe;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?Ct(e[0],e[1]):gt(e);case`string`:case`symbol`:case`number`:return ke(e)}}function Tt(e){return e[e.length-1]}function Et(e){if(be(e))return Tt(ve(e))}function Dt(e){return typeof e==`string`||e instanceof String}function Ot(e){return Array.isArray(e)}function kt(e,t){let n=e.slice(),r=[],i=0;for(let a=0;a<e.length;a++){if(t(e[a],a,n)){r.push(e[a]);continue}if(!Object.hasOwn(e,a)){delete e[i++];continue}e[i++]=e[a]}return e.length=i,r}function At(e,t=xe){return kt(e,wt(t))}function jt(e,t){if(t??(t=e,e=0),e>=t)throw Error(`Invalid input: The maximum value must be greater than the minimum value.`);return Math.random()*(t-e)+e}function Mt(e,t){return Math.floor(jt(e,t))}function Nt(e,t,n){return n==null?Math.min(e,t):Math.min(Math.max(e,t),n)}function Pt(e,t,n){return Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Nt(e,t,n)}function Ft(e){return e===void 0}function It(e){return typeof e==`number`||e instanceof Number}function Lt(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function Rt(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=Lt(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?(s=e.apply(this,t),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function zt(e,t,n=0){if(t=Number(t),Object.is(t,-0)&&(t=`-0`),n=Math.min(Number.parseInt(n,10),292),n){let[r,i=0]=t.toString().split(`e`),a=Math[e](Number(`${r}e${Number(i)+n}`));Object.is(a,-0)&&(a=`-0`);let[o,s=0]=a.toString().split(`e`);return Number(`${o}e${Number(s)-n}`)}return Math[e](Number(t))}function Bt(e,t=0){return zt(`ceil`,e,t)}function Vt(...e){let t=0,n=1,r=!1;switch(e.length){case 1:typeof e[0]==`boolean`?r=e[0]:n=e[0];break;case 2:typeof e[1]==`boolean`?(n=e[0],r=e[1]):(t=e[0],n=e[1]);case 3:typeof e[2]==`object`&&e[2]!=null&&e[2][e[1]]===e[0]?(t=0,n=e[0],r=!1):(t=e[0],n=e[1],r=e[2])}return typeof t!=`number`&&(t=Number(t)),typeof n!=`number`&&(t=Number(n)),t||=0,n||=0,t>n&&([t,n]=[n,t]),t=Pt(t,-(2**53-1),2**53-1),n=Pt(n,-(2**53-1),2**53-1),t===n?t:r?jt(t,n+1):Mt(t,n+1)}function Ht(...e){}function Ut(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}function Wt(e){return ut(e)}function Gt(e){if(!be(e))return{};let t={};for(let n=0;n<e.length;n++){let[r,i]=e[n];t[r]=i}return t}function Kt(e){return typeof e==`function`}function qt(e){if(e==null)return!0;if(be(e))return typeof e.splice!=`function`&&typeof e!=`string`&&(typeof Buffer>`u`||!Buffer.isBuffer(e))&&!Wt(e)&&!xt(e)?!1:e.length===0;if(typeof e==`object`){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return Ut(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}function Jt(e){return Ve(e)===`[object Error]`}function Yt(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get(`*`))&&r.slice().map(function(e){e(t,n)})}}}const A=(e,t)=>(window.$api.__core_lib__??={})[t]??=e;var Xt=e.n({SharedFunction:()=>Qt,eventBus:()=>Zt});const Zt=A(Yt(),`utils/eventBus`);var Qt=class{static sharedFunctions=A(new Map,`utils/SharedFunction/sharedFunctions`);static define(e,t,n){return console.log(`[SharedFunction.define] defined new function`,t,`:`,n,`->`,e),this.sharedFunctions.set(n,[...this.sharedFunctions.get(n)??[],{fn:e,plugin:t}]),e}static call(e,...t){let n=this.sharedFunctions.get(e)?.map(e=>({result:e.fn(...t),...e}))??[],r=Promise.all(n.map(async e=>({...e,result:await e.result})));return Object.assign(n,r)}static callRandom(e,...t){let n=this.sharedFunctions.get(e)??[],r=Vt(0,n.length-1),i=n[r];if(!i)throw Error(`[SharedFunction.callRandom] call ${e}, but not resigner any function.`);console.log(`[SharedFunction.callRandom] call index: ${r} in ${n.length}`,i);let a=i.fn(...t),o={result:a,...i},s=(async()=>({...i,result:await a}))();return Object.assign(o,s)}static callWitch(e,t,...n){let r=(this.sharedFunctions.get(e)??[]).filter(e=>e.plugin===t);if(!r.length)throw Error(`[SharedFunction.callWitch] not found plugin function (plugin: ${t}, name: ${e})`);let i=r.map(e=>({result:e.fn(...n),...e})),a=Promise.all(i.map(async e=>({...e,result:await e.result})));return Object.assign(i,a)}},$t=class extends Error{constructor(e=`The operation was aborted`){super(e),this.name=`AbortError`}};function en(e,{signal:t}={}){return new Promise((n,r)=>{let i=()=>{r(new $t)},a=()=>{clearTimeout(o),i()};if(t?.aborted)return i();let o=setTimeout(()=>{t?.removeEventListener(`abort`,a),n()},e);t?.addEventListener(`abort`,a,{once:!0})})}function tn(e){return e instanceof Error}function nn(e){return typeof e==`string`}var rn=e.n({SmartAbortController:()=>an,createAxios:()=>cn,requestErrorResult:()=>on,requestType:()=>sn,utilInterceptors:()=>j}),an=class{_controller=new AbortController;mitt=Yt();get signal(){return this._controller.signal}abort(e){this._controller.abort(e),this._controller=new AbortController,this.mitt.emit(`abort`)}onAbort(e){return this.mitt.on(`abort`,e),()=>this.mitt.off(`abort`,e)}onAbortOnce(e){let t=async()=>{await e(),this.mitt.off(`abort`,t)};this.mitt.on(`abort`,t)}};const on=(e,t)=>(Zt.emit(e,t),Promise.reject(t));let sn;(function(e){e.isPost=e=>/post/gi.test(e.config.method??``),e.isPut=e=>/put/gi.test(e.config.method??``),e.isGet=e=>/get/gi.test(e.config.method??``)})(sn||={});let j;(function(e){let t=e.checkIsAxiosError=e=>`__isAxiosError`in e?e.__isAxiosError:e.__isAxiosError=!(0,n.isCancel)(e)&&(0,n.isAxiosError)(e),r=e.useUnreadableRetry=async(e,t=0)=>{try{return(await e()).data}catch(n){if(n instanceof Error&&n.message.includes(`Illegal invocation`)){if(t>20)throw n;return await r(e,t+1)}throw n}},i=e.useForceRetry=async(e,t=0)=>{try{return(await e()).data}catch(n){if(n instanceof Error){if(t>20)throw n;return await i(e,t+1)}throw n}};e.createAutoRetry=(e,t=3)=>async n=>{if(!n.config||n.config.disretry||(n.config.__retryCount??0)>=t)throw on(`networkError_response`,n);return n.config.__retryCount=(n.config.__retryCount??0)+1,await en(500*n.config.__retryCount),e(n.config)},e.createCheckIsUnauth=(e,n)=>async r=>{if(!t(r))return Promise.reject(r);if(r?.response?.status===401){if(n){if(!await n())throw on(`networkError_unauth`,r);return e(r.config??{})}else if(!location.pathname.includes(`auth`))throw on(`networkError_unauth`,r)}return Promise.reject(r)},e.isClientError=e=>{if(e?.response?.status?.toString().startsWith(`4`))throw on(`networkError_response`,e);return Promise.reject(e)},e.passCorsError=e=>{if(!t(e))return Promise.reject(e);if(e.code===`ERR_NETWORK`&&!e.response)throw on(`networkError_request`,e);return Promise.reject(e)},e.devProxy=e=>{let t=(0,n.getAdapter)([`xhr`,`fetch`,`http`]);if(window.$isDev)return t(e);let r=e.url?.replaceAll(`/api0`,``)??``;return console.log(e),t({...e,baseURL:``,url:`http://${location.host}/api0/${URL.canParse(r)?r:`${e.baseURL}/${r}`}`})},e._=1})(j||={});const cn=(e,t={},r)=>{let i=n.default.create(t);return r?.(i),i.interceptors.request.use(async t=>(t.baseURL??=await e(),t)),t.noPassClientError||i.interceptors.response.use(void 0,j.isClientError),i.interceptors.response.use(void 0,j.createAutoRetry(i,10)),{get:async(e,t={})=>j.useUnreadableRetry(()=>i.get(e,t)),post:async(e,t,n={})=>j.useUnreadableRetry(()=>i.post(e,t,n)),postForm:async(e,t,n={})=>j.useUnreadableRetry(()=>i.postForm(e,t,n)),put:async(e,t,n={})=>j.useUnreadableRetry(()=>i.put(e,t,n)),putForm:async(e,t,n={})=>j.useUnreadableRetry(()=>i.putForm(e,t,n)),delete:async(e,t={})=>j.useUnreadableRetry(()=>i.delete(e,t)),patch:async(e,t,n={})=>j.useUnreadableRetry(()=>i.patch(e,t,n)),patchForm:async(e,t,n={})=>j.useUnreadableRetry(()=>i.patchForm(e,t,n))}};var ln=e.n({PromiseContent:()=>fn,SourcedKeyMap:()=>M,SourcedValue:()=>dn,Stream:()=>N,Struct:()=>un,callbackToPromise:()=>mn}),un=class e{toJSON(){return JSON.parse(JSON.stringify(this.$$raw))}constructor(e){this.$$raw=e}static toRaw(t){return t instanceof e?t.toJSON():t}},dn=class{toJSON(e){return nn(e)?this.parse(e):e}parse(e){let t=e.split(this.separator);return[t[0],t.slice(1).join(this.separator)]}toString(e){return nn(e)?e:this.stringify(e)}stringify(e){return e.join(this.separator)}constructor(e=`:`){this.separator=e}},M=class extends dn{static create(e=`:`){return(0,t.shallowReactive)(new this(e))}constructor(e=`:`){super(e)}store=(0,t.shallowReactive)(new Map);get size(){return this.store.size}[Symbol.toStringTag]=`SourcedKeyMap`;clear(){this.store.clear()}delete(e){return this.store.delete(this.toString(e))}forEach(e,t){this.store.forEach((n,r)=>{e.call(t,n,r,this)})}get(e){return this.store.get(this.toString(e))}has(e){return this.store.has(this.toString(e))}set(e,t){return this.store.set(this.toString(e),t),this}entries(){return this.store.entries()}keys(){return this.store.keys()}values(){return this.store.values()}[Symbol.iterator](){return this.entries()}},fn=class e{[Symbol.toStringTag]=`PromiseContent`;static _this;static{this._this=A(this,`data/PromiseContent`)}static isPromiseContent(e){return e instanceof this._this}static fromPromise(e,n=e=>e){return(0,t.markRaw)(new this._this(e,n))}constructor(e,t=e=>e){this.promise=e,this.processor=t,this.loadPromise(e)}async loadPromise(e){this.data.value=void 0,this.isLoading.value=!0,this.isError.value=!1,this.errorCause.value=void 0,this.isEmpty.value=!0;try{let t=await e;this.data.value=this.processor(t),this.isLoading.value=!1,this.isError.value=!1,this.isEmpty.value=qt(t),this.emitter.emit(`success`,this.data.value)}catch(e){this.data.value=void 0,this.isError.value=!0,this.errorCause.value=Jt(e)?e:Error(String(e)),console.error(`Non-throw Error [PromiseContent]`,e),this.emitter.emit(`error`,e)}this.emitter.emit(`finial`,void 0)}emitter=Yt();onError(e){return this.emitter.on(`error`,e),()=>this.emitter.off(`error`,e)}onSuccess(e){return this.emitter.on(`success`,e),()=>this.emitter.off(`success`,e)}onFinal(e){return this.emitter.on(`finial`,e),()=>this.emitter.off(`finial`,e)}setProcessor(t){return e.fromPromise(this.promise,t)}catch(e){return this.promise.catch(e)}then(e,t){return this.promise.then(e,t)}finally(e){return this.promise.finally(e)}data=(0,t.shallowRef)();isLoading=(0,t.shallowRef)(!0);isError=(0,t.shallowRef)(!1);errorCause=(0,t.shallowRef)();isEmpty=(0,t.shallowRef)(!0);static fromAsyncFunction(e){return(...t)=>this.fromPromise(e(...t))}static resolve(e){let t=this.fromPromise(Promise.resolve(e));return t.isLoading.value=!1,t}static withResolvers(e=!1){let t=Promise.withResolvers(),n=new this._this(t.promise);return n.isLoading.value=e,{content:n,reject:e=>{t.reject(e)},resolve:e=>{t.resolve(e)},reset(e=!1){t=Promise.withResolvers(),n.loadPromise(t.promise),n.isLoading.value=e}}}},pn=new Map,N=class{constructor(e){this.generator=e(this.abortController.signal,this),pn.set(this,e)}static _this;static{this._this=A(this,`data/Stream`)}static isStream(e){return e instanceof this._this}static create(e){return(0,t.markRaw)(new this._this(e))}abortController=new an;generator;_setupData=[];setupData(e){return this._setupData.push(...e),this.data.value.unshift(...e),this}async next(e=!1){try{if(e||(await D(this.isRequesting).toBe(!1),this.isRequesting.value=!0),this._isDone)return e||(this.isRequesting.value=!1),{done:!0,value:void 0};e&&console.log(`igRequesting next`);let{value:t,done:n}=await this.generator.next(this);return this.isDone.value=n??!1,e||(this.isRequesting.value=!1),n?{done:!0,value:void 0}:(this.data.value.push(...t),{value:t,done:n})}catch(t){throw e||(this.isRequesting.value=!1),this.error.value=t,t}}async return(){return await this.generator.return?.()??{value:void 0,done:!0}}async throw(e){return await this.generator.throw?.(e)??{value:void 0,done:!0}}reset(){this.generator=pn.get(this)(this.abortController.signal,this),this.total.value=NaN,this.page.value=0,this.pageSize.value=NaN,this.data.value=this._setupData,this.isDone.value=!1,this.isRequesting.value=!1,this.error.value=void 0}async retry(){return this.page.value--,this.next()}async nextToDone(){isNaN(this._pages)&&await this.next(!0);let e=[];for(let t=this._page+1;t<=this._pages;t++)e.push(this.next(!0));return await Promise.all(e),this._data}stop(){this.abortController.abort(),this.isRequesting.value=!1}[Symbol.asyncIterator](){return this}error=(0,t.shallowRef)();data=(0,t.ref)([]);get _data(){return this.data.value}page=(0,t.shallowRef)(0);get _page(){return this.page.value}pages=(0,t.shallowRef)(NaN);get _pages(){return this.pages.value}total=(0,t.shallowRef)(NaN);get _total(){return this.total.value}pageSize=(0,t.shallowRef)(NaN);get _pageSize(){return this.pageSize.value}length=(0,t.computed)(()=>this.data.value.length);get _length(){return this.data.value.length}isRequesting=(0,t.shallowRef)(!1);get _isRequesting(){return this.isRequesting.value}isDone=(0,t.shallowRef)(!1);get _isDone(){return this.isDone.value}isNoData=(0,t.computed)(()=>this.isDone.value&&this.isEmpty.value);get _isNoData(){return this.isNoData.value}isEmpty=(0,t.computed)(()=>this.length.value===0);get _isEmpty(){return this.isEmpty.value}};const mn=e=>{let{resolve:t,promise:n}=Promise.withResolvers();return e(t),n};var hn=e.n({Resource:()=>gn}),gn=class e extends un{static processInstances=A(M.create(),`uni/resource/processInstances`);static fork=A(M.create(),`uni/resource/fork`);static precedenceFork=A(M.create(),`uni/resource/precedenceFork`);static is(e){return e instanceof this}static create(e){return new this(e)}constructor(e){super(e),this.$$plugin=e.$$plugin,this.$$meta=e.$$meta,this.pathname=e.pathname,this.type=e.type,this.processSteps=(e.processSteps??[]).map(e=>Dt(e)?{referenceName:e,ignoreExit:!1}:e)}type;pathname;processSteps;$$meta;$$plugin;async getUrl(){let t=this.pathname;for(let n of this.processSteps){let r=e.processInstances.get([this.$$plugin,n.referenceName]);if(!r){console.warn(`[Resource.getUrl] process not found, fullname: [${this.$$plugin}, ${n.referenceName}]`);continue}let i=await r(t,this);if(t=i[0],!(n.ignoreExit||!i[1]))break}return URL.canParse(t)?t:`${this.getThisFork()}/${t}`}omittedForks=(0,t.shallowReactive)(new Set);getThisFork(){let t=new Set(e.fork.get([this.$$plugin,this.type])?.urls??[]);if(this.omittedForks.size==0)var n=e.precedenceFork.get([this.$$plugin,this.type]);else var n=Array.from(t.difference(this.omittedForks).values())[0];if(!n)throw Error(`[Resource.getThisFork] fork not found, type: [${this.$$plugin}, ${this.type}]`);return n}localChangeFork(){let t=new Set(e.fork.get([this.$$plugin,this.type])?.urls??[]);this.omittedForks.add(this.getThisFork());let n=t.difference(this.omittedForks).size!=0;return n&&this.omittedForks.clear(),n}},_n=e.n({Image:()=>vn}),vn=class extends gn{static is(e){return e instanceof this}static create(e,t){return new this(e,t)}constructor(e,t){`forkNamespace`in e?super({$$plugin:e.$$plugin,$$meta:{...e.$$meta,...t},pathname:e.path,type:e.forkNamespace,processSteps:e.processSteps}):super(e)}get aspect(){return this.$$meta}set aspect(e){this.$$meta??={},this.$$meta.width=e.width,this.$$meta.height=e.height}},yn=e.t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),bn=e.r(yn(),1),xn=e.n({ContentImagePage:()=>Cn,ContentPage:()=>Sn,ContentVideoPage:()=>wn}),Sn=class{static viewLayout=A(M.create(),`uni/contentPage/viewLayout`);static share=A(M.create(),`uni/contentPage/share`);static shareToken=A(M.create(),`uni/contentPage/shareToken`);static tabbar=A((0,t.shallowReactive)(new Map),`uni/contentPage/tabbar`);static addTabbar(e,...t){this.tabbar.set(e,(this.tabbar.get(e)??[]).concat(t))}static categories=A((0,t.shallowReactive)(new Map),`uni/contentPage/categories`);static addCategories(e,...t){this.categories.set(e,(this.categories.get(e)??[]).concat(t))}static contentPage=A(M.create(),`uni/contentPage/contentPage`);static barcode=A((0,t.shallowReactive)(new Map),`uni/contentPage/barcode`);static addBarcode(e,t){let n=this.barcode.get(e)??[];return n.push(t),this.barcode.set(e,n),e}static levelboard=A((0,t.shallowReactive)(new Map),`uni/contentPage/levelboard`);static addLevelboard(e,t){let n=this.levelboard.get(e)??[];return n.push(t),this.levelboard.set(e,n),e}static topButton=A((0,t.shallowReactive)(new Map),`uni/contentPage/topButton`);static addTopButton(e,t){let n=this.topButton.get(e)??[];return n.push(t),this.topButton.set(e,n),e}static mainLists=A((0,t.shallowReactive)(new Map),`uni/contentPage/mainLists`);static addMainList(e,t){let n=this.mainLists.get(e)??[];return n.push(t),this.mainLists.set(e,n),e}constructor(e,t,n){this.id=t,this.ep=n,this.preload.value=e}pid=fn.withResolvers();preload=(0,t.shallowRef)(void 0);detail=fn.withResolvers();union=(0,t.computed)(()=>this.detail.content.data.value??this.preload.value);recommends=fn.withResolvers();eps=fn.withResolvers()},Cn=class extends Sn{images=fn.withResolvers()},wn=class extends Sn{videos=fn.withResolvers()},Tn=e.n({Ep:()=>En}),En=class extends un{name;index;$$plugin;$$meta;constructor(e){super(e),this.name=e.name,this.index=e.index,this.$$plugin=e.$$plugin,this.$$meta=e.$$meta}},Dn=e.n({Item:()=>On}),On=class extends un{static itemTranslator=M.create();static create(e){let t=this.itemTranslator.get(e.contentType);if(!t)throw Error(`can not found itemTranslator contentType:"${Sn.contentPage.toString(e.contentType)}"`);return t(e)}static authorIcon=M.create();static itemCard=A(M.create(),`uni/item/itemCard`);static is(e){return e instanceof this}cover;get $cover(){return vn.create(this.cover)}title;id;categories;author;viewNumber;likeNumber;commentNumber;isLiked;description;updateTime;get $updateTime(){return(0,bn.default)(this.updateTime)}contentType;length;epLength;$$plugin;$$meta;thisEp;customIsSafe;get $thisEp(){return new En(this.thisEp)}constructor(e){super(e),this.$$plugin=e.$$plugin,this.$$meta=e.$$meta,this.thisEp=e.thisEp,this.updateTime=e.updateTime,this.cover=e.cover,this.title=e.title,this.id=e.id,this.categories=e.categories,this.author=e.author,this.viewNumber=e.viewNumber,this.likeNumber=e.likeNumber,this.commentNumber=e.commentNumber,this.isLiked=e.isLiked,this.customIsAI=e.customIsAI,this.contentType=Sn.contentPage.toJSON(e.contentType),this.length=e.length,this.epLength=e.epLength,this.description=e.description,this.commentSendable=e.commentSendable,this.customIsSafe=e.customIsSafe}commentSendable;customIsAI;get $isAi(){let e=e=>/(^|[\((\[\s【])ai[】\))\]\s]?/gi.test(e);return this.customIsAI||e(this.title)||this.author.some(t=>e(`${t.label}\u1145${t.description}`))}},kn=e.n({Comment:()=>An}),An=class extends un{static commentRow=M.create();constructor(e){super(e),this.content=e.content,this.time=e.time,this.id=e.id,this.childrenCount=e.childrenCount,this.likeCount=e.likeCount,this.isLiked=e.isLiked,this.reported=e.reported,this.$$plugin=e.$$plugin,this.$$meta=e.$$meta,this.isTop=e.isTop}content;time;$time(){return(0,bn.default)(this.time)}id;childrenCount;likeCount;isTop;isLiked;reported;$$plugin;$$meta},jn=e.n({User:()=>Mn}),Mn=class{static userBase=(0,t.shallowReactive)(new Map);static userEditorBase=(0,t.shallowReactive)(new Map);static subscribes=(0,t.shallowReactive)(M.create());static authorActions=(0,t.shallowReactive)(M.create());constructor(e){e.avatar&&(this.avatar=vn.create(e.avatar)),this.name=e.name,this.id=e.id,this.$$plugin=e.$$plugin}avatar;name;id;$$plugin};let Nn;(function(e){e.user=jn,e.comment=kn,e.content=xn,e.image=_n,e.item=Dn,e.ep=Tn,e.resource=hn})(Nn||={});var Pn=(0,t.defineComponent)({__name:`await`,props:{promise:{type:Function},autoLoad:{type:Boolean}},setup(e){let n=e,r=(0,t.shallowRef)(),i=async()=>r.value=await n.promise();return(0,t.watch)(()=>[n.promise,n.autoLoad],e=>{n.autoLoad&&i()},{immediate:!0}),(e,n)=>(0,t.renderSlot)(e.$slots,`default`,{load:i,result:r.value})}});function Fn(){}var In=Object.assign,Ln=typeof window<`u`,Rn=e=>typeof e==`object`&&!!e,zn=e=>e!=null,Bn=e=>typeof e==`function`,Vn=e=>Rn(e)&&Bn(e.then)&&Bn(e.catch),Hn=e=>typeof e==`number`||/^\d+(\.\d+)?$/.test(e),Un=()=>Ln?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function Wn(e,t){let n=t.split(`.`),r=e;return n.forEach(e=>{r=Rn(r)?r[e]??``:``}),r}function Gn(e,t,n){return t.reduce((t,r)=>((!n||e[r]!==void 0)&&(t[r]=e[r]),t),{})}var P=[Number,String],F={type:Boolean,default:!0},Kn=e=>({type:e,required:!0}),qn=()=>({type:Array,default:()=>[]}),I=e=>({type:P,default:e}),L=e=>({type:String,default:e}),Jn=typeof window<`u`;function Yn(e){return Jn?requestAnimationFrame(e):-1}function Xn(e){Jn&&cancelAnimationFrame(e)}function Zn(e){Yn(()=>Yn(e))}var Qn=e=>e===window,$n=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),er=e=>{let n=(0,t.unref)(e);if(Qn(n)){let e=n.innerWidth,t=n.innerHeight;return $n(e,t)}return n?.getBoundingClientRect?n.getBoundingClientRect():$n(0,0)};function tr(e){let n=(0,t.inject)(e,null);if(n){let e=(0,t.getCurrentInstance)(),{link:r,unlink:i,internalChildren:a}=n;return r(e),(0,t.onUnmounted)(()=>i(e)),{parent:n,index:(0,t.computed)(()=>a.indexOf(e))}}return{parent:null,index:(0,t.ref)(-1)}}function nr(e){let n=[],r=e=>{Array.isArray(e)&&e.forEach(e=>{(0,t.isVNode)(e)&&(n.push(e),e.component?.subTree&&(n.push(e.component.subTree),r(e.component.subTree.children)),e.children&&r(e.children))})};return r(e),n}var rr=(e,t)=>{let n=e.indexOf(t);return n===-1?e.findIndex(e=>t.key!==void 0&&t.key!==null&&e.type===t.type&&e.key===t.key):n};function ir(e,t,n){let r=nr(e.subTree.children);n.sort((e,t)=>rr(r,e.vnode)-rr(r,t.vnode));let i=n.map(e=>e.proxy);t.sort((e,t)=>i.indexOf(e)-i.indexOf(t))}function ar(e){let n=(0,t.reactive)([]),r=(0,t.reactive)([]),i=(0,t.getCurrentInstance)();return{children:n,linkChildren:a=>{(0,t.provide)(e,Object.assign({link:e=>{e.proxy&&(r.push(e),n.push(e.proxy),ir(i,n,r))},unlink:e=>{let t=r.indexOf(e);n.splice(t,1),r.splice(t,1)},children:n,internalChildren:r},a))}}}function or(e){let n;(0,t.onMounted)(()=>{e(),(0,t.nextTick)(()=>{n=!0})}),(0,t.onActivated)(()=>{n&&e()})}function sr(e,n,r={}){if(!Jn)return;let{target:i=window,passive:a=!1,capture:o=!1}=r,s=!1,c,l=r=>{if(s)return;let i=(0,t.unref)(r);i&&!c&&(i.addEventListener(e,n,{capture:o,passive:a}),c=!0)},u=r=>{if(s)return;let i=(0,t.unref)(r);i&&c&&(i.removeEventListener(e,n,o),c=!1)};(0,t.onUnmounted)(()=>u(i)),(0,t.onDeactivated)(()=>u(i)),or(()=>l(i));let d;return(0,t.isRef)(i)&&(d=(0,t.watch)(i,(e,t)=>{u(t),l(e)})),()=>{d?.(),u(i),s=!0}}var cr,lr;function ur(){if(!cr&&(cr=(0,t.ref)(0),lr=(0,t.ref)(0),Jn)){let e=()=>{cr.value=window.innerWidth,lr.value=window.innerHeight};e(),window.addEventListener(`resize`,e,{passive:!0}),window.addEventListener(`orientationchange`,e,{passive:!0})}return{width:cr,height:lr}}var dr=/scroll|auto|overlay/i,fr=Jn?window:void 0;function pr(e){return e.tagName!==`HTML`&&e.tagName!==`BODY`&&e.nodeType===1}function mr(e,t=fr){let n=e;for(;n&&n!==t&&pr(n);){let{overflowY:e}=window.getComputedStyle(n);if(dr.test(e))return n;n=n.parentNode}return t}function hr(e,n=fr){let r=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(r.value=mr(e.value,n))}),r}var gr;function _r(){if(!gr&&(gr=(0,t.ref)(`visible`),Jn)){let e=()=>{gr.value=document.hidden?`hidden`:`visible`};e(),window.addEventListener(`visibilitychange`,e)}return gr}function vr(e){let t=`scrollTop`in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function yr(e,t){`scrollTop`in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function br(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function xr(e){yr(window,e),yr(document.body,e)}function Sr(e,t){if(e===window)return 0;let n=t?vr(t):br();return er(e).top+n}Un();var Cr=e=>e.stopPropagation();function wr(e,t){(typeof e.cancelable!=`boolean`||e.cancelable)&&e.preventDefault(),t&&Cr(e)}function Tr(e){let n=(0,t.unref)(e);if(!n)return!1;let r=window.getComputedStyle(n),i=r.display===`none`,a=n.offsetParent===null&&r.position!==`fixed`;return i||a}var{width:Er,height:Dr}=ur();function R(e){if(zn(e))return Hn(e)?`${e}px`:String(e)}function Or(e){if(zn(e)){if(Array.isArray(e))return{width:R(e[0]),height:R(e[1])};let t=R(e);return{width:t,height:t}}}function kr(e){let t={};return e!==void 0&&(t.zIndex=+e),t}var Ar;function jr(){if(!Ar){let e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;Ar=parseFloat(t)}return Ar}function Mr(e){return e=e.replace(/rem/g,``),+e*jr()}function Nr(e){return e=e.replace(/vw/g,``),+e*Er.value/100}function Pr(e){return e=e.replace(/vh/g,``),+e*Dr.value/100}function Fr(e){if(typeof e==`number`)return e;if(Ln){if(e.includes(`rem`))return Mr(e);if(e.includes(`vw`))return Nr(e);if(e.includes(`vh`))return Pr(e)}return parseFloat(e)}var Ir=/-(\w)/g,Lr=e=>e.replace(Ir,(e,t)=>t.toUpperCase()),Rr=e=>e.replace(/([A-Z])/g,`-$1`).toLowerCase().replace(/^-/,``),zr=(e,t,n)=>Math.min(Math.max(e,t),n),{hasOwnProperty:Br}=Object.prototype;function Vr(e,t,n){let r=t[n];zn(r)&&(!Br.call(e,n)||!Rn(r)?e[n]=r:e[n]=Hr(Object(e[n]),r))}function Hr(e,t){return Object.keys(t).forEach(n=>{Vr(e,t,n)}),e}var Ur={name:`姓名`,tel:`电话`,save:`保存`,clear:`清空`,cancel:`取消`,confirm:`确认`,delete:`删除`,loading:`加载中...`,noCoupon:`暂无优惠券`,nameEmpty:`请填写姓名`,addContact:`添加联系人`,telInvalid:`请填写正确的电话`,vanCalendar:{end:`结束`,start:`开始`,title:`日期选择`,weekdays:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],monthTitle:(e,t)=>`${e}\u5E74${t}\u6708`,rangePrompt:e=>`\u6700\u591A\u9009\u62E9 ${e} \u5929`},vanCascader:{select:`请选择`},vanPagination:{prev:`上一页`,next:`下一页`},vanPullRefresh:{pulling:`下拉即可刷新...`,loosing:`释放即可刷新...`},vanSubmitBar:{label:`合计:`},vanCoupon:{unlimited:`无门槛`,discount:e=>`${e}\u6298`,condition:e=>`\u6EE1${e}\u5143\u53EF\u7528`},vanCouponCell:{title:`优惠券`,count:e=>`${e}\u5F20\u53EF\u7528`},vanCouponList:{exchange:`兑换`,close:`不使用`,enable:`可用`,disabled:`不可用`,placeholder:`输入优惠码`},vanAddressEdit:{area:`地区`,areaEmpty:`请选择地区`,addressEmpty:`请填写详细地址`,addressDetail:`详细地址`,defaultAddress:`设为默认收货地址`},vanAddressList:{add:`新增地址`}},Wr=(0,t.ref)(`zh-CN`),Gr=(0,t.reactive)({"zh-CN":Ur}),Kr={messages(){return Gr[Wr.value]},use(e,t){Wr.value=e,this.add({[e]:t})},add(e={}){Hr(Gr,e)}};function qr(e){let t=Lr(e)+`.`;return(e,...n)=>{let r=Kr.messages(),i=Wn(r,t+e)||Wn(r,e);return Bn(i)?i(...n):i}}function Jr(e,t){return t?typeof t==`string`?` ${e}--${t}`:Array.isArray(t)?t.reduce((t,n)=>t+Jr(e,n),``):Object.keys(t).reduce((n,r)=>n+(t[r]?Jr(e,r):``),``):``}function Yr(e){return(t,n)=>(t&&typeof t!=`string`&&(n=t,t=``),t=t?`${e}__${t}`:e,`${t}${Jr(t,n)}`)}function z(e){let t=`van-${e}`;return[t,Yr(t),qr(t)]}var Xr=`van-hairline`;`${Xr}`,`${Xr}`,`${Xr}`,`${Xr}`,`${Xr}`;var Zr=`${Xr}--top-bottom`;`${Xr}`;var Qr=`van-haptics-feedback`;function $r(e,{args:t=[],done:n,canceled:r,error:i}){if(e){let a=e.apply(null,t);Vn(a)?a.then(e=>{e?n():r&&r()}).catch(i||Fn):a?n():r&&r()}else n()}function B(e){return e.install=t=>{let{name:n}=e;n&&(t.component(n,e),t.component(Lr(`-${n}`),e))},e}function ei(e,t){return e.reduce((e,n)=>Math.abs(e-t)<Math.abs(n-t)?e:n)}var ti=Symbol();function ni(e){let n=(0,t.inject)(ti,null);n&&(0,t.watch)(n,t=>{t&&e()})}function ri(e){let n=(0,t.getCurrentInstance)();n&&In(n.proxy,e)}var ii={to:[String,Object],url:String,replace:Boolean};function ai({to:e,url:t,replace:n,$router:r}){e&&r?r[n?`replace`:`push`](e):t&&(n?location.replace(t):location.href=t)}var[oi,si]=z(`badge`),ci={dot:Boolean,max:P,tag:L(`div`),color:String,offset:Array,content:P,showZero:F,position:L(`top-right`)},li=B((0,t.defineComponent)({name:oi,props:ci,setup(e,{slots:n}){let r=()=>{if(n.content)return!0;let{content:t,showZero:r}=e;return zn(t)&&t!==``&&(r||t!==0&&t!==`0`)},i=()=>{let{dot:t,max:i,content:a}=e;if(!t&&r())return n.content?n.content():zn(i)&&Hn(a)&&+a>+i?`${i}+`:a},a=e=>e.startsWith(`-`)?e.replace(`-`,``):`-${e}`,o=(0,t.computed)(()=>{let t={background:e.color};if(e.offset){let[r,i]=e.offset,{position:o}=e,[s,c]=o.split(`-`);n.default?(typeof i==`number`?t[s]=R(s===`top`?i:-i):t[s]=s===`top`?R(i):a(i),typeof r==`number`?t[c]=R(c===`left`?r:-r):t[c]=c===`left`?R(r):a(r)):(t.marginTop=R(i),t.marginLeft=R(r))}return t}),s=()=>{if(r()||e.dot)return(0,t.createVNode)(`div`,{class:si([e.position,{dot:e.dot,fixed:!!n.default}]),style:o.value},[i()])};return()=>{if(n.default){let{tag:r}=e;return(0,t.createVNode)(r,{class:si(`wrapper`)},{default:()=>[n.default(),s()]})}return s()}}})),ui=2e3,di=()=>++ui,fi=e=>{ui=e},[pi,mi]=z(`config-provider`),hi=Symbol(pi),gi={tag:L(`div`),theme:L(`light`),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:L(`local`),iconPrefix:String};function _i(e){return e.replace(/([a-zA-Z])(\d)/g,`$1-$2`)}function vi(e){let t={};return Object.keys(e).forEach(n=>{let r=_i(Rr(n));t[`--van-${r}`]=e[n]}),t}function yi(e={},t={}){Object.keys(e).forEach(n=>{e[n]!==t[n]&&document.documentElement.style.setProperty(n,e[n])}),Object.keys(t).forEach(t=>{e[t]||document.documentElement.style.removeProperty(t)})}(0,t.defineComponent)({name:pi,props:gi,setup(e,{slots:n}){let r=(0,t.computed)(()=>vi(In({},e.themeVars,e.theme===`dark`?e.themeVarsDark:e.themeVarsLight)));if(Ln){let n=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},i=(t=e.theme)=>{document.documentElement.classList.remove(`van-theme-${t}`)};(0,t.watch)(()=>e.theme,(e,t)=>{t&&i(t),n()},{immediate:!0}),(0,t.onActivated)(n),(0,t.onDeactivated)(i),(0,t.onBeforeUnmount)(i),(0,t.watch)(r,(t,n)=>{e.themeVarsScope===`global`&&yi(t,n)}),(0,t.watch)(()=>e.themeVarsScope,(e,t)=>{t===`global`&&yi({},r.value),e===`global`&&yi(r.value,{})}),e.themeVarsScope===`global`&&yi(r.value,{})}return(0,t.provide)(hi,e),(0,t.watchEffect)(()=>{e.zIndex!==void 0&&fi(e.zIndex)}),()=>(0,t.createVNode)(e.tag,{class:mi(),style:e.themeVarsScope===`local`?r.value:void 0},{default:()=>[n.default?.call(n)]})}});var[bi,xi]=z(`icon`),Si=e=>e?.includes(`/`),Ci={dot:Boolean,tag:L(`i`),name:String,size:P,badge:P,color:String,badgeProps:Object,classPrefix:String},wi=B((0,t.defineComponent)({name:bi,props:Ci,setup(e,{slots:n}){let r=(0,t.inject)(hi,null),i=(0,t.computed)(()=>e.classPrefix||r?.iconPrefix||xi());return()=>{let{tag:r,dot:a,name:o,size:s,badge:c,color:l}=e,u=Si(o);return(0,t.createVNode)(li,(0,t.mergeProps)({dot:a,tag:r,class:[i.value,u?``:`${i.value}-${o}`],style:{color:l,fontSize:R(s)},content:c},e.badgeProps),{default:()=>[n.default?.call(n),u&&(0,t.createVNode)(`img`,{class:xi(`image`),src:o},null)]})}}})),[Ti,Ei]=z(`loading`),Di=Array(12).fill(null).map((e,n)=>(0,t.createVNode)(`i`,{class:Ei(`line`,String(n+1))},null)),Oi=(0,t.createVNode)(`svg`,{class:Ei(`circular`),viewBox:`25 25 50 50`},[(0,t.createVNode)(`circle`,{cx:`50`,cy:`50`,r:`20`,fill:`none`},null)]),ki={size:P,type:L(`circular`),color:String,vertical:Boolean,textSize:P,textColor:String},Ai=B((0,t.defineComponent)({name:Ti,props:ki,setup(e,{slots:n}){let r=(0,t.computed)(()=>In({color:e.color},Or(e.size))),i=()=>{let i=e.type===`spinner`?Di:Oi;return(0,t.createVNode)(`span`,{class:Ei(`spinner`,e.type),style:r.value},[n.icon?n.icon():i])},a=()=>{if(n.default)return(0,t.createVNode)(`span`,{class:Ei(`text`),style:{fontSize:R(e.textSize),color:e.textColor??e.color}},[n.default()])};return()=>{let{type:n,vertical:r}=e;return(0,t.createVNode)(`div`,{class:Ei([n,{vertical:r}]),"aria-live":`polite`,"aria-busy":!0},[i(),a()])}}})),ji={show:Boolean,zIndex:P,overlay:F,duration:P,teleport:[String,Object],lockScroll:F,lazyRender:F,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:null,transitionAppear:Boolean,closeOnClickOverlay:F};function Mi(e,t){return e>t?`horizontal`:t>e?`vertical`:``}function Ni(){let e=(0,t.ref)(0),n=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(0),a=(0,t.ref)(0),o=(0,t.ref)(0),s=(0,t.ref)(``),c=(0,t.ref)(!0),l=()=>s.value===`vertical`,u=()=>s.value===`horizontal`,d=()=>{r.value=0,i.value=0,a.value=0,o.value=0,s.value=``,c.value=!0};return{move:t=>{let l=t.touches[0];r.value=(l.clientX<0?0:l.clientX)-e.value,i.value=l.clientY-n.value,a.value=Math.abs(r.value),o.value=Math.abs(i.value),(!s.value||a.value<10&&o.value<10)&&(s.value=Mi(a.value,o.value)),c.value&&(a.value>5||o.value>5)&&(c.value=!1)},start:t=>{d(),e.value=t.touches[0].clientX,n.value=t.touches[0].clientY},reset:d,startX:e,startY:n,deltaX:r,deltaY:i,offsetX:a,offsetY:o,direction:s,isVertical:l,isHorizontal:u,isTap:c}}var Pi=0,Fi=`van-overflow-hidden`;function Ii(e,n){let r=Ni(),i=t=>{r.move(t);let n=r.deltaY.value>0?`10`:`01`,{scrollHeight:i,offsetHeight:a,scrollTop:o}=mr(t.target,e.value),s=`11`;o===0?s=a>=i?`00`:`01`:o+a>=i&&(s=`10`),s!==`11`&&r.isVertical()&&!(parseInt(s,2)&parseInt(n,2))&&wr(t,!0)},a=()=>{document.addEventListener(`touchstart`,r.start),document.addEventListener(`touchmove`,i,{passive:!1}),Pi||document.body.classList.add(Fi),Pi++},o=()=>{Pi&&(document.removeEventListener(`touchstart`,r.start),document.removeEventListener(`touchmove`,i),Pi--,Pi||document.body.classList.remove(Fi))},s=()=>n()&&a(),c=()=>n()&&o();or(s),(0,t.onDeactivated)(c),(0,t.onBeforeUnmount)(c),(0,t.watch)(n,e=>{e?a():o()})}function Li(e){let n=(0,t.ref)(!1);return(0,t.watch)(e,e=>{e&&(n.value=e)},{immediate:!0}),e=>()=>n.value?e():null}var Ri=()=>{let{scopeId:e}=(0,t.getCurrentInstance)()?.vnode||{};return e?{[e]:``}:null},[zi,Bi]=z(`overlay`),Vi={show:Boolean,zIndex:P,duration:P,className:null,lockScroll:F,lazyRender:F,customStyle:Object,teleport:[String,Object]},Hi=B((0,t.defineComponent)({name:zi,inheritAttrs:!1,props:Vi,setup(e,{attrs:n,slots:r}){let i=(0,t.ref)(),a=Li(()=>e.show||!e.lazyRender),o=t=>{e.lockScroll&&wr(t,!0)},s=a(()=>{let a=In(kr(e.zIndex),e.customStyle);return zn(e.duration)&&(a.animationDuration=`${e.duration}s`),(0,t.withDirectives)((0,t.createVNode)(`div`,(0,t.mergeProps)({ref:i,style:a,class:[Bi(),e.className]},n),[r.default?.call(r)]),[[t.vShow,e.show]])});return sr(`touchmove`,o,{target:i}),()=>{let n=(0,t.createVNode)(t.Transition,{name:`van-fade`,appear:!0},{default:s});return e.teleport?(0,t.createVNode)(t.Teleport,{to:e.teleport},{default:()=>[n]}):n}}})),Ui=In({},ji,{round:Boolean,position:L(`center`),closeIcon:L(`cross`),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:L(`top-right`),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[Wi,Gi]=z(`popup`),Ki=B((0,t.defineComponent)({name:Wi,inheritAttrs:!1,props:Ui,emits:[`open`,`close`,`opened`,`closed`,`keydown`,`update:show`,`clickOverlay`,`clickCloseIcon`],setup(e,{emit:n,attrs:r,slots:i}){let a,o,s=(0,t.ref)(),c=(0,t.ref)(),l=Li(()=>e.show||!e.lazyRender),u=(0,t.computed)(()=>{let t={zIndex:s.value};if(zn(e.duration)){let n=e.position===`center`?`animationDuration`:`transitionDuration`;t[n]=`${e.duration}s`}return t}),d=()=>{a||(a=!0,s.value=e.zIndex===void 0?di():+e.zIndex,n(`open`))},f=()=>{a&&$r(e.beforeClose,{done(){a=!1,n(`close`),n(`update:show`,!1)}})},p=t=>{n(`clickOverlay`,t),e.closeOnClickOverlay&&f()},m=()=>{if(e.overlay)return(0,t.createVNode)(Hi,(0,t.mergeProps)(In({show:e.show,class:e.overlayClass,zIndex:s.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?`button`:void 0,tabindex:e.closeOnClickOverlay?0:void 0},e.overlayProps),Ri(),{onClick:p}),{default:i[`overlay-content`]})},h=e=>{n(`clickCloseIcon`,e),f()},g=()=>{if(e.closeable)return(0,t.createVNode)(wi,{role:`button`,tabindex:0,name:e.closeIcon,class:[Gi(`close-icon`,e.closeIconPosition),Qr],classPrefix:e.iconPrefix,onClick:h},null)},_,v=()=>{_&&clearTimeout(_),_=setTimeout(()=>{n(`opened`)})},y=()=>n(`closed`),b=e=>n(`keydown`,e),x=l(()=>{let{destroyOnClose:n,round:a,position:o,safeAreaInsetTop:s,safeAreaInsetBottom:l,show:d}=e;if(!(!d&&n))return(0,t.withDirectives)((0,t.createVNode)(`div`,(0,t.mergeProps)({ref:c,style:u.value,role:`dialog`,tabindex:0,class:[Gi({round:a,[o]:o}),{"van-safe-area-top":s,"van-safe-area-bottom":l}],onKeydown:b},r,Ri()),[i.default?.call(i),g()]),[[t.vShow,d]])}),S=()=>{let{position:n,transition:r,transitionAppear:i}=e,a=n===`center`?`van-fade`:`van-popup-slide-${n}`;return(0,t.createVNode)(t.Transition,{name:r||a,appear:i,onAfterEnter:v,onAfterLeave:y},{default:x})};return(0,t.watch)(()=>e.show,e=>{e&&!a&&(d(),r.tabindex===0&&(0,t.nextTick)(()=>{var e;(e=c.value)==null||e.focus()})),!e&&a&&(a=!1,n(`close`))}),ri({popupRef:c}),Ii(c,()=>e.show&&e.lockScroll),sr(`popstate`,()=>{e.closeOnPopstate&&(f(),o=!1)}),(0,t.onMounted)(()=>{e.show&&d()}),(0,t.onActivated)(()=>{o&&=(n(`update:show`,!0),!1)}),(0,t.onDeactivated)(()=>{e.show&&e.teleport&&(f(),o=!0)}),(0,t.provide)(ti,()=>e.show),()=>e.teleport?(0,t.createVNode)(t.Teleport,{to:e.teleport},{default:()=>[m(),S()]}):(0,t.createVNode)(t.Fragment,null,[m(),S()])}})),qi=(e,n)=>{let r=(0,t.ref)(e());return(0,t.watch)(e,e=>{e!==r.value&&(r.value=e)}),(0,t.watch)(r,t=>{t!==e()&&n(t)}),r};process.env.NODE_ENV===`production`||Object.freeze({}),process.env.NODE_ENV===`production`||Object.freeze([]);var Ji=Array.isArray,Yi=e=>typeof e==`string`,Xi=e=>typeof e==`object`&&!!e,Zi=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Qi=/\B([A-Z])/g,$i=Zi(e=>e.replace(Qi,`-$1`).toLowerCase());function ea(e){if(Ji(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=Yi(r)?ia(r):ea(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(Yi(e)||Xi(e))return e}var ta=/;(?![^(]*\))/g,na=/:([^]+)/,ra=/\/\*[^]*?\*\//g;function ia(e){let t={};return e.replace(ra,``).split(ta).forEach(e=>{if(e){let n=e.split(na);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function aa(e){if(!e)return``;if(Yi(e))return e;let t=``;for(let n in e){let r=e[n];if(Yi(r)||typeof r==`number`){let e=n.startsWith(`--`)?n:$i(n);t+=`${e}:${r};`}}return t}function oa(e){let t=``;if(Yi(e))t=e;else if(Ji(e))for(let n=0;n<e.length;n++){let r=oa(e[n]);r&&(t+=r+` `)}else if(Xi(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function sa(e,t,n){let r,i=0,a=e.scrollLeft,o=n===0?1:Math.round(n*1e3/16),s=a;function c(){Xn(r)}function l(){s+=(t-a)/o,e.scrollLeft=s,++i<o&&(r=Yn(l))}return l(),c}function ca(e,t,n,r){let i,a=vr(e),o=a<t,s=n===0?1:Math.round(n*1e3/16),c=(t-a)/s;function l(){Xn(i)}function u(){a+=c,(o&&a>t||!o&&a<t)&&(a=t),yr(e,a),o&&a<t||!o&&a>t?i=Yn(u):r&&(i=Yn(r))}return u(),l}var la=0;function ua(){let{name:e=`unknown`}=(0,t.getCurrentInstance)()?.type||{};return process.env.NODE_ENV===`test`?e:`${e}-${++la}`}function da(){let e=(0,t.ref)([]),n=[];return(0,t.onBeforeUpdate)(()=>{e.value=[]}),[e,t=>(n[t]||(n[t]=n=>{e.value[t]=n}),n[t])]}function fa(e,n){if(!Ln||!window.IntersectionObserver)return;let r=new IntersectionObserver(e=>{n(e[0].intersectionRatio>0)},{root:document.body}),i=()=>{e.value&&r.observe(e.value)},a=()=>{e.value&&r.unobserve(e.value)};(0,t.onDeactivated)(a),(0,t.onBeforeUnmount)(a),or(i)}var[pa,ma]=z(`sticky`),ha={zIndex:P,position:L(`top`),container:Object,offsetTop:I(0),offsetBottom:I(0)},ga=B((0,t.defineComponent)({name:pa,props:ha,emits:[`scroll`,`change`],setup(e,{emit:n,slots:r}){let i=(0,t.ref)(),a=hr(i),o=(0,t.reactive)({fixed:!1,width:0,height:0,transform:0}),s=(0,t.ref)(!1),c=(0,t.computed)(()=>Fr(e.position===`top`?e.offsetTop:e.offsetBottom)),l=(0,t.computed)(()=>{if(s.value)return;let{fixed:e,height:t,width:n}=o;if(e)return{width:`${n}px`,height:`${t}px`}}),u=(0,t.computed)(()=>{if(!o.fixed||s.value)return;let t=In(kr(e.zIndex),{width:`${o.width}px`,height:`${o.height}px`,[e.position]:`${c.value}px`});return o.transform&&(t.transform=`translate3d(0, ${o.transform}px, 0)`),t}),d=e=>n(`scroll`,{scrollTop:e,isFixed:o.fixed}),f=()=>{if(!i.value||Tr(i))return;let{container:t,position:n}=e,r=er(i),a=vr(window);if(o.width=r.width,o.height=r.height,n===`top`)if(t){let e=er(t),n=e.bottom-c.value-o.height;o.fixed=c.value>r.top&&e.bottom>0,o.transform=n<0?n:0}else o.fixed=c.value>r.top;else{let{clientHeight:e}=document.documentElement;if(t){let n=er(t),i=e-n.top-c.value-o.height;o.fixed=e-c.value<r.bottom&&e>n.top,o.transform=i<0?-i:0}else o.fixed=e-c.value<r.bottom}d(a)};return(0,t.watch)(()=>o.fixed,e=>n(`change`,e)),sr(`scroll`,f,{target:a,passive:!0}),fa(i,f),(0,t.watch)([Er,Dr],()=>{!i.value||Tr(i)||!o.fixed||(s.value=!0,(0,t.nextTick)(()=>{let e=er(i);o.width=e.width,o.height=e.height,s.value=!1}))}),()=>(0,t.createVNode)(`div`,{ref:i,style:l.value},[(0,t.createVNode)(`div`,{class:ma({fixed:o.fixed&&!s.value}),style:u.value},[r.default?.call(r)])])}})),[_a,va]=z(`swipe`),ya={loop:F,width:P,height:P,vertical:Boolean,autoplay:I(0),duration:I(500),touchable:F,lazyRender:Boolean,initialSwipe:I(0),indicatorColor:String,showIndicators:F,stopPropagation:F},ba=Symbol(_a),xa=B((0,t.defineComponent)({name:_a,props:ya,emits:[`change`,`dragStart`,`dragEnd`],setup(e,{emit:n,slots:r}){let i=(0,t.ref)(),a=(0,t.ref)(),o=(0,t.reactive)({rect:null,width:0,height:0,offset:0,active:0,swiping:!1}),s=!1,c=Ni(),{children:l,linkChildren:u}=ar(ba),d=(0,t.computed)(()=>l.length),f=(0,t.computed)(()=>o[e.vertical?`height`:`width`]),p=(0,t.computed)(()=>e.vertical?c.deltaY.value:c.deltaX.value),m=(0,t.computed)(()=>o.rect?(e.vertical?o.rect.height:o.rect.width)-f.value*d.value:0),h=(0,t.computed)(()=>f.value?Math.ceil(Math.abs(m.value)/f.value):d.value),g=(0,t.computed)(()=>d.value*f.value),_=(0,t.computed)(()=>(o.active+d.value)%d.value),v=(0,t.computed)(()=>{let t=e.vertical?`vertical`:`horizontal`;return c.direction.value===t}),y=(0,t.computed)(()=>{let t={transitionDuration:`${o.swiping?0:e.duration}ms`,transform:`translate${e.vertical?`Y`:`X`}(${+o.offset.toFixed(2)}px)`};if(f.value){let n=e.vertical?`height`:`width`,r=e.vertical?`width`:`height`;t[n]=`${g.value}px`,t[r]=e[r]?`${e[r]}px`:``}return t}),b=t=>{let{active:n}=o;return t?e.loop?zr(n+t,-1,d.value):zr(n+t,0,h.value):n},x=(t,n=0)=>{let r=t*f.value;e.loop||(r=Math.min(r,-m.value));let i=n-r;return e.loop||(i=zr(i,m.value,0)),i},S=({pace:t=0,offset:r=0,emitChange:i})=>{if(d.value<=1)return;let{active:a}=o,s=b(t),c=x(s,r);if(e.loop){if(l[0]&&c!==m.value){let e=c<m.value;l[0].setOffset(e?g.value:0)}if(l[d.value-1]&&c!==0){let e=c>0;l[d.value-1].setOffset(e?-g.value:0)}}o.active=s,o.offset=c,i&&s!==a&&n(`change`,_.value)},C=()=>{o.swiping=!0,o.active<=-1?S({pace:d.value}):o.active>=d.value&&S({pace:-d.value})},w=()=>{C(),c.reset(),Zn(()=>{o.swiping=!1,S({pace:-1,emitChange:!0})})},T=()=>{C(),c.reset(),Zn(()=>{o.swiping=!1,S({pace:1,emitChange:!0})})},E,D=()=>clearTimeout(E),O=()=>{D(),+e.autoplay>0&&d.value>1&&(E=setTimeout(()=>{T(),O()},+e.autoplay))},k=(n=+e.initialSwipe)=>{if(!i.value)return;let r=()=>{if(!Tr(i)){let t={width:i.value.offsetWidth,height:i.value.offsetHeight};o.rect=t,o.width=+(e.width??t.width),o.height=+(e.height??t.height)}d.value&&(n=Math.min(d.value-1,n),n===-1&&(n=d.value-1)),o.active=n,o.swiping=!0,o.offset=x(n),l.forEach(e=>{e.setOffset(0)}),O()};Tr(i)?(0,t.nextTick)().then(r):r()},ee=()=>k(o.active),te,ne=t=>{!e.touchable||t.touches.length>1||(c.start(t),s=!1,te=Date.now(),D(),C())},re=t=>{e.touchable&&o.swiping&&(c.move(t),v.value&&(!e.loop&&(o.active===0&&p.value>0||o.active===d.value-1&&p.value<0)||(wr(t,e.stopPropagation),S({offset:p.value}),s||=(n(`dragStart`,{index:_.value}),!0))))},ie=()=>{if(!e.touchable||!o.swiping)return;let t=Date.now()-te,r=p.value/t;if((Math.abs(r)>.25||Math.abs(p.value)>f.value/2)&&v.value){let t=e.vertical?c.offsetY.value:c.offsetX.value,n=0;n=e.loop?t>0?p.value>0?-1:1:0:-Math[p.value>0?`ceil`:`floor`](p.value/f.value),S({pace:n,emitChange:!0})}else p.value&&S({pace:0});s=!1,o.swiping=!1,n(`dragEnd`,{index:_.value}),O()},ae=(t,n={})=>{C(),c.reset(),Zn(()=>{let r;r=e.loop&&t===d.value?o.active===0?0:t:t%d.value,n.immediate?Zn(()=>{o.swiping=!1}):o.swiping=!1,S({pace:r-o.active,emitChange:!0})})},oe=(n,r)=>{let i=r===_.value,a=i?{backgroundColor:e.indicatorColor}:void 0;return(0,t.createVNode)(`i`,{style:a,class:va(`indicator`,{active:i})},null)},se=()=>{if(r.indicator)return r.indicator({active:_.value,total:d.value});if(e.showIndicators&&d.value>1)return(0,t.createVNode)(`div`,{class:va(`indicators`,{vertical:e.vertical})},[Array(d.value).fill(``).map(oe)])};return ri({prev:w,next:T,state:o,resize:ee,swipeTo:ae}),u({size:f,props:e,count:d,activeIndicator:_}),(0,t.watch)(()=>e.initialSwipe,e=>k(+e)),(0,t.watch)(d,()=>k(o.active)),(0,t.watch)(()=>e.autoplay,O),(0,t.watch)([Er,Dr,()=>e.width,()=>e.height],ee),(0,t.watch)(_r(),e=>{e===`visible`?O():D()}),(0,t.onMounted)(k),(0,t.onActivated)(()=>k(o.active)),ni(()=>k(o.active)),(0,t.onDeactivated)(D),(0,t.onBeforeUnmount)(D),sr(`touchmove`,re,{target:a}),()=>(0,t.createVNode)(`div`,{ref:i,class:va()},[(0,t.createVNode)(`div`,{ref:a,style:y.value,class:va(`track`,{vertical:e.vertical}),onTouchstartPassive:ne,onTouchend:ie,onTouchcancel:ie},[r.default?.call(r)]),se()])}})),[Sa,Ca]=z(`tabs`),wa=(0,t.defineComponent)({name:Sa,props:{count:Kn(Number),inited:Boolean,animated:Boolean,duration:Kn(P),swipeable:Boolean,lazyRender:Boolean,currentIndex:Kn(Number)},emits:[`change`],setup(e,{emit:n,slots:r}){let i=(0,t.ref)(),a=e=>n(`change`,e),o=()=>{let n=r.default?.call(r);return e.animated||e.swipeable?(0,t.createVNode)(xa,{ref:i,loop:!1,class:Ca(`track`),duration:e.duration*1e3,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:a},{default:()=>[n]}):n},s=t=>{let n=i.value;n&&n.state.active!==t&&n.swipeTo(t,{immediate:!e.inited})};return(0,t.watch)(()=>e.currentIndex,s),(0,t.onMounted)(()=>{s(e.currentIndex)}),ri({swipeRef:i}),()=>(0,t.createVNode)(`div`,{class:Ca(`content`,{animated:e.animated||e.swipeable})},[o()])}}),[Ta,Ea]=z(`tabs`),Da={type:L(`line`),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:I(0),duration:I(.3),animated:Boolean,ellipsis:F,swipeable:Boolean,scrollspy:Boolean,offsetTop:I(0),background:String,lazyRender:F,showHeader:F,lineWidth:P,lineHeight:P,beforeChange:Function,swipeThreshold:I(5),titleActiveColor:String,titleInactiveColor:String},Oa=Symbol(Ta),ka=(0,t.defineComponent)({name:Ta,props:Da,emits:[`change`,`scroll`,`rendered`,`clickTab`,`update:active`],setup(e,{emit:n,slots:r}){let i,a,o,s,c,l=(0,t.ref)(),u=(0,t.ref)(),d=(0,t.ref)(),f=(0,t.ref)(),p=ua(),m=hr(l),[h,g]=da(),{children:_,linkChildren:v}=ar(Oa),y=(0,t.reactive)({inited:!1,position:``,lineStyle:{},currentIndex:-1}),b=(0,t.computed)(()=>_.length>+e.swipeThreshold||!e.ellipsis||e.shrink),x=(0,t.computed)(()=>({borderColor:e.color,background:e.background})),S=(e,t)=>e.name??t,C=(0,t.computed)(()=>{let e=_[y.currentIndex];if(e)return S(e,y.currentIndex)}),w=(0,t.computed)(()=>Fr(e.offsetTop)),T=(0,t.computed)(()=>e.sticky?w.value+i:0),E=t=>{let n=u.value,r=h.value;if(!b.value||!n||!r||!r[y.currentIndex])return;let i=r[y.currentIndex].$el,a=i.offsetLeft-(n.offsetWidth-i.offsetWidth)/2;s&&s(),s=sa(n,a,t?0:+e.duration)},D=()=>{let n=y.inited;(0,t.nextTick)(()=>{let t=h.value;if(!t||!t[y.currentIndex]||e.type!==`line`||Tr(l.value))return;let r=t[y.currentIndex].$el,{lineWidth:i,lineHeight:a}=e,o=r.offsetLeft+r.offsetWidth/2,s={width:R(i),backgroundColor:e.color,transform:`translateX(${o}px) translateX(-50%)`};if(n&&(s.transitionDuration=`${e.duration}s`),zn(a)){let e=R(a);s.height=e,s.borderRadius=e}y.lineStyle=s})},O=e=>{let t=e<y.currentIndex?-1:1;for(;e>=0&&e<_.length;){if(!_[e].disabled)return e;e+=t}},k=(t,r)=>{let i=O(t);if(!zn(i))return;let a=_[i],s=S(a,i),c=y.currentIndex!==null;y.currentIndex!==i&&(y.currentIndex=i,r||E(),D()),s!==e.active&&(n(`update:active`,s),c&&n(`change`,s,a.title)),o&&!e.scrollspy&&xr(Math.ceil(Sr(l.value)-w.value))},ee=(e,t)=>{let n=_.findIndex((t,n)=>S(t,n)===e);k(n===-1?0:n,t)},te=(t=!1)=>{if(e.scrollspy){let n=_[y.currentIndex].$el;if(n&&m.value){let r=Sr(n,m.value)-T.value;a=!0,c&&c(),c=ca(m.value,r,t?0:+e.duration,()=>{a=!1})}}},ne=(t,r,i)=>{let{title:a,disabled:o}=_[r],s=S(_[r],r);o||($r(e.beforeChange,{args:[s],done:()=>{k(r),te()}}),ai(t)),n(`clickTab`,{name:s,title:a,event:i,disabled:o})},re=e=>{o=e.isFixed,n(`scroll`,e)},ie=e=>{(0,t.nextTick)(()=>{ee(e),te(!0)})},ae=()=>{for(let e=0;e<_.length;e++){let{top:t}=er(_[e].$el);if(t>T.value)return e===0?0:e-1}return _.length-1},oe=()=>{e.scrollspy&&!a&&k(ae())},se=()=>{if(e.type===`line`&&_.length)return(0,t.createVNode)(`div`,{class:Ea(`line`),style:y.lineStyle},null)},ce=()=>{let{type:n,border:i,sticky:a}=e,o=[(0,t.createVNode)(`div`,{ref:a?void 0:d,class:[Ea(`wrap`),{[Zr]:n===`line`&&i}]},[(0,t.createVNode)(`div`,{ref:u,role:`tablist`,class:Ea(`nav`,[n,{shrink:e.shrink,complete:b.value}]),style:x.value,"aria-orientation":`horizontal`},[r[`nav-left`]?.call(r),_.map(e=>e.renderTitle(ne)),se(),r[`nav-right`]?.call(r)])]),r[`nav-bottom`]?.call(r)];return a?(0,t.createVNode)(`div`,{ref:d},[o]):o},le=()=>{D(),(0,t.nextTick)(()=>{var e;E(!0),(e=f.value?.swipeRef.value)==null||e.resize()})};return(0,t.watch)(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],D),(0,t.watch)(Er,le),(0,t.watch)(()=>e.active,e=>{e!==C.value&&ee(e)}),(0,t.watch)(()=>_.length,()=>{y.inited&&(ee(e.active),D(),(0,t.nextTick)(()=>{E(!0)}))}),ri({resize:le,scrollTo:ie}),(0,t.onActivated)(D),ni(D),or(()=>{ee(e.active,!0),(0,t.nextTick)(()=>{y.inited=!0,d.value&&(i=er(d.value).height),E(!0)})}),fa(l,D),sr(`scroll`,oe,{target:m,passive:!0}),v({id:p,props:e,setLine:D,scrollable:b,onRendered:(e,t)=>n(`rendered`,e,t),currentName:C,setTitleRefs:g,scrollIntoView:E}),()=>(0,t.createVNode)(`div`,{ref:l,class:Ea([e.type])},[e.showHeader?e.sticky?(0,t.createVNode)(ga,{container:l.value,offsetTop:w.value,onScroll:re},{default:()=>[ce()]}):ce():null,(0,t.createVNode)(wa,{ref:f,count:_.length,inited:y.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:y.currentIndex,onChange:k},{default:()=>[r.default?.call(r)]})])}}),Aa=Symbol(),ja=Symbol(),Ma=()=>(0,t.inject)(ja,null),Na=e=>{let n=Ma();(0,t.provide)(Aa,e),(0,t.provide)(ja,(0,t.computed)(()=>(n==null||n.value)&&e.value))},[Pa,Fa]=z(`tab`),Ia=(0,t.defineComponent)({name:Pa,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:P,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:F},setup(e,{slots:n}){let r=(0,t.computed)(()=>{let t={},{type:n,color:r,disabled:i,isActive:a,activeColor:o,inactiveColor:s}=e;r&&n===`card`&&(t.borderColor=r,i||(a?t.backgroundColor=r:t.color=r));let c=a?o:s;return c&&(t.color=c),t}),i=()=>{let r=(0,t.createVNode)(`span`,{class:Fa(`text`,{ellipsis:!e.scrollable})},[n.title?n.title():e.title]);return e.dot||zn(e.badge)&&e.badge!==``?(0,t.createVNode)(li,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[r]}):r};return()=>(0,t.createVNode)(`div`,{id:e.id,role:`tab`,class:[Fa([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:r.value,tabindex:e.disabled?void 0:e.isActive?0:-1,"aria-selected":e.isActive,"aria-disabled":e.disabled||void 0,"aria-controls":e.controls,"data-allow-mismatch":`attribute`},[i()])}}),[La,Ra]=z(`swipe-item`),za=B((0,t.defineComponent)({name:La,setup(e,{slots:n}){let r,i=(0,t.reactive)({offset:0,inited:!1,mounted:!1}),{parent:a,index:o}=tr(ba);if(!a){process.env.NODE_ENV!==`production`&&console.error(`[Vant] <SwipeItem> must be a child component of <Swipe>.`);return}let s=(0,t.computed)(()=>{let e={},{vertical:t}=a.props;return a.size.value&&(e[t?`height`:`width`]=`${a.size.value}px`),i.offset&&(e.transform=`translate${t?`Y`:`X`}(${i.offset}px)`),e}),c=(0,t.computed)(()=>{let{loop:e,lazyRender:t}=a.props;if(!t||r)return!0;if(!i.mounted)return!1;let n=a.activeIndicator.value,s=a.count.value-1,c=n===0&&e?s:n-1,l=n===s&&e?0:n+1;return r=o.value===n||o.value===c||o.value===l,r});return(0,t.onMounted)(()=>{(0,t.nextTick)(()=>{i.mounted=!0})}),ri({setOffset:e=>{i.offset=e}}),()=>(0,t.createVNode)(`div`,{class:Ra(),style:s.value},[c.value?n.default?.call(n):null])}})),[Ba,Va]=z(`tab`),Ha=In({},ii,{dot:Boolean,name:P,badge:P,title:String,disabled:Boolean,titleClass:null,titleStyle:[String,Object],showZeroBadge:F}),Ua=B((0,t.defineComponent)({name:Ba,props:Ha,setup(e,{slots:n}){let r=ua(),i=(0,t.ref)(!1),a=(0,t.getCurrentInstance)(),{parent:o,index:s}=tr(Oa);if(!o){process.env.NODE_ENV!==`production`&&console.error(`[Vant] <Tab> must be a child component of <Tabs>.`);return}let c=()=>e.name??s.value,l=()=>{i.value=!0,o.props.lazyRender&&(0,t.nextTick)(()=>{o.onRendered(c(),e.title)})},u=(0,t.computed)(()=>{let e=c()===o.currentName.value;return e&&!i.value&&l(),e}),d=(0,t.ref)(``),f=(0,t.ref)(``);(0,t.watchEffect)(()=>{let{titleClass:t,titleStyle:n}=e;d.value=t?oa(t):``,f.value=n&&typeof n!=`string`?aa(ea(n)):n});let p=i=>(0,t.createVNode)(Ia,(0,t.mergeProps)({key:r,id:`${o.id}-${s.value}`,ref:o.setTitleRefs(s.value),style:f.value,class:d.value,isActive:u.value,controls:r,scrollable:o.scrollable.value,activeColor:o.props.titleActiveColor,inactiveColor:o.props.titleInactiveColor,onClick:e=>i(a.proxy,s.value,e)},Gn(o.props,[`type`,`color`,`shrink`]),Gn(e,[`dot`,`badge`,`title`,`disabled`,`showZeroBadge`])),{title:n.title}),m=(0,t.ref)(!u.value);return(0,t.watch)(u,e=>{e?m.value=!1:Zn(()=>{m.value=!0})}),(0,t.watch)(()=>e.title,()=>{o.setLine(),o.scrollIntoView()}),Na(u),ri({id:r,renderTitle:p}),()=>{let e=`${o.id}-${s.value}`,{animated:a,swipeable:c,scrollspy:l,lazyRender:d}=o.props;if(!n.default&&!a)return;let f=l||u.value;if(a||c)return(0,t.createVNode)(za,{id:r,role:`tabpanel`,class:Va(`panel-wrapper`,{inactive:m.value}),tabindex:u.value?0:-1,"aria-hidden":!u.value,"aria-labelledby":e,"data-allow-mismatch":`attribute`},{default:()=>[(0,t.createVNode)(`div`,{class:Va(`panel`)},[n.default?.call(n)])]});let p=i.value||l||!d?n.default?.call(n):null;return(0,t.withDirectives)((0,t.createVNode)(`div`,{id:r,role:`tabpanel`,class:Va(`panel`),tabindex:f?0:-1,"aria-labelledby":e,"data-allow-mismatch":`attribute`},[p]),[[t.vShow,f]])}}})),Wa=B(ka),Ga={height:I(0),anchors:qn(),duration:I(.3),contentDraggable:F,lockScroll:Boolean,safeAreaInsetBottom:F},[Ka,qa]=z(`floating-panel`),Ja=B((0,t.defineComponent)({name:Ka,props:Ga,emits:[`heightChange`,`update:height`],setup(e,{emit:n,slots:r}){let i=.2,a=(0,t.ref)(),o=(0,t.ref)(),s=qi(()=>+e.height,e=>n(`update:height`,e)),c=(0,t.computed)(()=>({min:e.anchors[0]??100,max:e.anchors[e.anchors.length-1]??Math.round(Dr.value*.6)})),l=(0,t.computed)(()=>e.anchors.length>=2?e.anchors:[c.value.min,c.value.max]),u=(0,t.ref)(!1),d=(0,t.computed)(()=>({height:R(c.value.max),transform:`translateY(calc(100% + ${R(-s.value)}))`,transition:u.value?`none`:`transform ${e.duration}s cubic-bezier(0.18, 0.89, 0.32, 1.28)`})),f=e=>{let t=Math.abs(e),{min:n,max:r}=c.value;return t>r?-(r+(t-r)*i):t<n?-(n-(n-t)*i):e},p,m=-1,h=Ni(),g=e=>{h.start(e),u.value=!0,p=-s.value,m=-1},_=t=>{h.move(t);let n=t.target;if(o.value===n||o.value?.contains(n)){let{scrollTop:n}=o.value;if(m=Math.max(m,n),!e.contentDraggable)return;if(-p<c.value.max)wr(t,!0);else if(!(n<=0&&h.deltaY.value>0)||m>0)return}s.value=-f(h.deltaY.value+p)},v=()=>{m=-1,u.value=!1,s.value=ei(l.value,s.value),s.value!==-p&&n(`heightChange`,{height:s.value})};(0,t.watch)(c,()=>{s.value=ei(l.value,s.value)},{immediate:!0}),Ii(a,()=>e.lockScroll||u.value),sr(`touchmove`,_,{target:a});let y=()=>r.header?r.header():(0,t.createVNode)(`div`,{class:qa(`header`)},[(0,t.createVNode)(`div`,{class:qa(`header-bar`)},null)]);return()=>(0,t.createVNode)(`div`,{class:[qa(),{"van-safe-area-bottom":e.safeAreaInsetBottom}],ref:a,style:d.value,onTouchstartPassive:g,onTouchend:v,onTouchcancel:v},[y(),(0,t.createVNode)(`div`,{class:qa(`content`),ref:o},[r.default?.call(r)])])}})),[Ya,Xa,Za]=z(`pull-refresh`),Qa=50,$a=[`pulling`,`loosing`,`success`],eo={disabled:Boolean,modelValue:Boolean,headHeight:I(Qa),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:P,successDuration:I(500),animationDuration:I(300)},to=B((0,t.defineComponent)({name:Ya,props:eo,emits:[`change`,`refresh`,`update:modelValue`],setup(e,{emit:n,slots:r}){let i,a=(0,t.ref)(),o=(0,t.ref)(),s=hr(a),c=(0,t.reactive)({status:`normal`,distance:0,duration:0}),l=Ni(),u=()=>{if(e.headHeight!==Qa)return{height:`${e.headHeight}px`}},d=()=>c.status!==`loading`&&c.status!==`success`&&!e.disabled,f=t=>{let n=+(e.pullDistance||e.headHeight);return t>n&&(t=t<n*2?n+(t-n)/2:n*1.5+(t-n*2)/4),Math.round(t)},p=(t,r)=>{let i=+(e.pullDistance||e.headHeight);c.distance=t,r?c.status=`loading`:t===0?c.status=`normal`:t<i?c.status=`pulling`:c.status=`loosing`,n(`change`,{status:c.status,distance:t})},m=()=>{let{status:t}=c;return t===`normal`?``:e[`${t}Text`]||Za(t)},h=()=>{let{status:e,distance:n}=c;if(r[e])return r[e]({distance:n});let i=[];return $a.includes(e)&&i.push((0,t.createVNode)(`div`,{class:Xa(`text`)},[m()])),e===`loading`&&i.push((0,t.createVNode)(Ai,{class:Xa(`loading`)},{default:m})),i},g=()=>{c.status=`success`,setTimeout(()=>{p(0)},+e.successDuration)},_=e=>{i=vr(s.value)===0,i&&(c.duration=0,l.start(e))},v=e=>{d()&&_(e)},y=e=>{if(d()){i||_(e);let{deltaY:t}=l;l.move(e),i&&t.value>=0&&l.isVertical()&&(wr(e),p(f(t.value)))}},b=()=>{i&&l.deltaY.value&&d()&&(c.duration=+e.animationDuration,c.status===`loosing`?(p(+e.headHeight,!0),n(`update:modelValue`,!0),(0,t.nextTick)(()=>n(`refresh`))):p(0))};return(0,t.watch)(()=>e.modelValue,t=>{c.duration=+e.animationDuration,t?p(+e.headHeight,!0):r.success||e.successText?g():p(0,!1)}),sr(`touchmove`,y,{target:o}),()=>{let e={transitionDuration:`${c.duration}ms`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:``};return(0,t.createVNode)(`div`,{ref:a,class:Xa()},[(0,t.createVNode)(`div`,{ref:o,class:Xa(`track`),style:e,onTouchstartPassive:v,onTouchend:b,onTouchcancel:b},[(0,t.createVNode)(`div`,{class:Xa(`head`),style:u()},[h()]),r.default?.call(r)])])}}})),no=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})((0,t.defineComponent)({__name:`loading`,props:{size:{},type:{},color:{},vertical:{type:Boolean},textSize:{},textColor:{}},setup(e){(0,t.useCssVars)(e=>({v4790b4ce:r.value}));let n=e,r=(0,t.computed)(()=>It(n.size)?`${n.size}px`:n.size);return(e,r)=>{let i=Ai;return(0,t.openBlock)(),(0,t.createBlock)(i,(0,t.normalizeProps)((0,t.guardReactiveProps)(n)),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{},void 0,!0)]),_:3},16)}}}),[[`__scopeId`,`data-v-7ff4601b`]]),ro=e.n({useZIndex:()=>ao}),io=A((0,t.shallowReactive)([]),`utils/layers`);const ao=e=>{let n=Symbol(`layer`),r=(0,t.watch)((0,t.toRef)(e),e=>{e?io.push(n):At(io,e=>e===n)},{immediate:!0});try{(0,t.onUnmounted)(r)}catch{}return[(0,t.computed)(()=>(io.indexOf(n)+1)*10),(0,t.computed)(()=>Et(io)===n),r]};var oo=(0,t.defineComponent)({__name:`floatPopup`,props:{anchors:{default:`high`},lockScroll:{type:Boolean,default:!1},class:{},style:{type:[Boolean,null,String,Object,Array]},overlay:{type:Boolean}},setup(e,{expose:n}){let i=(0,r.useRouter)(),a=e,o=(0,t.shallowRef)(!1),{height:s}=_e(),c=(0,t.computed)(()=>Ot(a.anchors)?a.anchors:a.anchors===`high`?[0,Math.round(.4*s.value),Math.round(.7*s.value),s.value]:[0,Math.round(.3*s.value),Math.round(.6*s.value),Math.round(.9*s.value)]),l=(0,t.shallowRef)(0),[u,d]=ao(()=>l.value>0),f=Ht;return(0,t.watch)(o,()=>{o.value?f=i.beforeEach(()=>d.value?o.value=!1:void 0):f()}),(0,r.onBeforeRouteLeave)(f),n({show(e=2){l.value=c.value[e],o.value=!0},close(){o.value=!1},isShowing:(0,t.shallowReadonly)(o),height:(0,t.shallowReadonly)(l)}),(n,r)=>{let i=Hi,a=Ja;return(0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`#popups`},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,zIndex:(0,t.unref)(u),show:o.value,onClick:r[0]||=e=>o.value=!1},null,8,[`zIndex`,`show`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(t.Transition,{onAfterLeave:r[3]||=e=>l.value=0,name:`van-slide-up`},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createVNode)(a,{onHeightChange:r[1]||=({height:e})=>e<=0&&(o.value=!1),anchors:c.value,height:l.value,"onUpdate:height":r[2]||=e=>l.value=e,"content-draggable":!1,"lock-scroll":e.lockScroll,style:(0,t.normalizeStyle)([e.style,{zIndex:(0,t.unref)(u)}]),class:(0,t.normalizeClass)([e.class,`overflow-hidden border-0 border-t border-solid border-(--van-border-color)`])},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`bg-(--van-background) w-full`,style:(0,t.normalizeStyle)({height:`calc(${l.value}px - var(--van-floating-panel-header-height))`})},[l.value==0?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(n.$slots,`default`,{key:0,height:l.value})],4)]),_:3},8,[`anchors`,`height`,`lock-scroll`,`style`,`class`]),[[t.vShow,o.value]])]),_:3})])}}}),so=e.n({showImagePreview:()=>co});const co=(e,n={})=>{let r=(0,t.shallowRef)(!0),[,,i]=ao(r),a=window.$api.showImagePreview({images:e,...n,overlayClass:`!z-2147483646`,className:`!z-2147483646`,onClose(){r.value=!1},showIndex:e.length>1,teleport:`#popups`}),o=window.$router.beforeEach(()=>r.value=!1);return k(r,()=>{o(),i(),a.show=!1}),{isShowing:(0,t.computed)(()=>a.show),close:()=>{r.value=!1}}};var lo=A((0,i.defineStore)(`core:temp`,e=>{let n=(0,t.shallowReactive)(new Map);return{$apply:(e,r)=>(e=`reactive:${e}`,n.has(e)||n.set(e,(0,t.reactive)(r())),n.get(e)),$has:e.action(e=>(e=`reactive:${e}`,n.has(e)),`has`),$onlyGet:e.action(e=>(e=`reactive:${e}`,n.get(e)),`onlyGet`),$applyRaw:e.action((e,t)=>(e=`raw:${e}`,n.has(e)||n.set(e,t()),n.get(e)),`applyRaw`),$hasRaw:e.action(e=>(e=`raw:${e}`,n.has(e)),`hasRaw`),$onlyGetRaw:e.action(e=>(e=`raw:${e}`,n.get(e)),`onlyGetRaw`)}}),`store/temp`);const uo=()=>lo(window.$api.piniaInstance);var fo=(0,t.defineComponent)({__name:`image`,props:{src:{},alt:{},previewable:{type:Boolean},retryMax:{default:2},round:{type:Boolean},fit:{},class:{},hideLoading:{type:Boolean},hideError:{type:Boolean},inline:{type:Boolean},style:{type:[Boolean,null,String,Object,Array]},imgProp:{},useList:{},fetchpriority:{default:`auto`},fallback:{}},emits:[`load`,`click`,`error`],setup(e,{expose:n,emit:r}){let i=e,a=ee(async()=>{try{return i.src?Dt(i.src)?i.src:await i.src.getUrl():``}catch(e){console.error(e)}return``},``),o=r,s=0,c=!1,l=async()=>{if(c)return d.error.add(a.value),o(`error`);if(s++,f.value=!1,s>i.retryMax){if(!Nn.resource.Resource.is(i.src)){c=!0,l();return}if(!i.src.localChangeFork()){c=!0,l();return}s=0}await(0,t.nextTick)(),f.value=!0},u=uo().$apply(`imageState`,()=>({loaded:new Set,error:new Set})),d=i.useList??u,f=(0,t.shallowRef)(!0),p=()=>{c=!1,s=0,l()};(0,t.watch)(a,p);let m=(0,t.computed)(()=>d.loaded.has(a.value)),h=ee(async()=>{try{return i.fallback?Dt(i.fallback)?i.fallback:await i.fallback.getUrl():``}catch(e){console.error(e)}return``},``),g=e=>{o(`click`),i.previewable&&(e.stopPropagation(),co([a.value],{closeable:!0}))},_=(...e)=>{o(`load`,...e),d.loaded.add(a.value)},v=(0,t.useTemplateRef)(`img`);n({isLoaded:m,imageEl:(0,t.computed)(()=>v.value?.imageRef),imageIns:v});let y=window.$api.NImage;return(n,r)=>{let s=wi;return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[f.value?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(y),(0,t.mergeProps)({key:0,onError:l},i,{"object-fit":e.fit,"preview-disabled":``,alt:e.alt,ref_key:`img`,ref:v,"img-props":{...e.imgProp??{},class:`w-full`,fetchpriority:i.fetchpriority},class:[{"rounded-full!":!!e.round},e.inline?`inline-flex`:`flex`,i.class],style:e.style,onLoad:_,onClick:g,src:(0,t.unref)(a)}),null,16,[`object-fit`,`alt`,`img-props`,`class`,`style`,`src`])),[[t.vShow,!(0,t.unref)(d).error.has((0,t.unref)(a))&&(0,t.unref)(d).loaded.has((0,t.unref)(a))]]):(0,t.createCommentVNode)(``,!0),!(0,t.unref)(d).loaded.has((0,t.unref)(a))&&!(0,t.unref)(d).error.has((0,t.unref)(a))&&!e.hideLoading?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:(0,t.normalizeClass)([`justify-center items-center`,[{"rounded-full!":!!e.round},e.inline?`inline-flex`:`flex`,i.class]]),style:(0,t.normalizeStyle)(e.style),onClick:r[0]||=e=>o(`click`)},[n.$slots.loading?(0,t.renderSlot)(n.$slots,`loading`,{key:0}):((0,t.openBlock)(),(0,t.createBlock)(no,{key:1}))],6)):(0,t.createCommentVNode)(``,!0),(0,t.unref)(d).error.has((0,t.unref)(a))&&!e.hideError?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[e.fallback?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(y),(0,t.mergeProps)({key:0,onError:l},i,{"object-fit":e.fit,"preview-disabled":``,alt:e.alt,"img-props":{...e.imgProp??{},class:`w-full`,fetchpriority:i.fetchpriority},class:[{"rounded-full!":!!e.round},e.inline?`inline-flex`:`flex`,i.class],style:e.style,src:(0,t.unref)(h)}),null,16,[`object-fit`,`alt`,`img-props`,`class`,`style`,`src`])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:(0,t.normalizeClass)([`justify-center items-center flex-col`,[{"rounded-full!":!!e.round},e.inline?`inline-flex`:`flex`,i.class]]),onClick:r[1]||=(0,t.withModifiers)(()=>{(0,t.unref)(d).error.delete((0,t.unref)(a)),p()},[`stop`])},[n.$slots.loading?(0,t.renderSlot)(n.$slots,`loading`,{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createVNode)(s,{name:`warning-o`,size:`2.5rem`,color:`var(--van-text-color-2)`}),r[2]||=(0,t.createElementVNode)(`div`,{class:`text-sm text-(--van-text-color-2)`},`点击重试`,-1)],64))],2))],64)):(0,t.createCommentVNode)(``,!0)],64)}}}),po=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],mo={value:null,addProjectionMetrics:null};function ho(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),t&&mo.value&&mo.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var go={},_o=40;function vo(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=po.reduce((e,n)=>(e[n]=ho(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=go.useManualTiming?i.timestamp:performance.now();n=!1,go.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,_o),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:po.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<po.length;t++)o[po[t]].cancel(e)},state:i,steps:o}}var V=e=>e,{schedule:H,cancel:yo,state:U,steps:bo}=vo(typeof requestAnimationFrame<`u`?requestAnimationFrame:V,!0),xo;function So(){xo=void 0}var W={now:()=>(xo===void 0&&W.set(U.isProcessing||go.useManualTiming?U.timestamp:performance.now()),xo),set:e=>{xo=e,queueMicrotask(So)}},G=e=>e*1e3,Co=e=>e/1e3;function wo(e,t){let n=W.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(yo(r),e(a-t))};return H.setup(r,!0),()=>yo(r)}var To=e=>t=>typeof t==`string`&&t.startsWith(e),Eo=To(`--`),Do=To(`var(--`),Oo=e=>Do(e)?ko.test(e.split(`/*`)[0].trim()):!1,ko=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ao={};function jo(e){for(let t in e)Ao[t]=e[t],Eo(t)&&(Ao[t].isCSSVariable=!0)}function Mo(e,n){let r=typeof e==`string`&&!n?`${e}Context`:n,i=Symbol(r);return[n=>{let r=(0,t.inject)(i,n);if(r===void 0)throw Error(`Injection \`${i.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`);return r},e=>((0,t.provide)(i,e),e)]}var[No,Po]=Mo(`Motion`),[Fo,Io]=Mo(`LayoutGroup`);function Lo(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}var Ro=class{constructor(e){this.state=e}beforeMount(){}mount(){}unmount(){}update(){}beforeUpdate(){}beforeUnmount(){}},zo=function(){},Bo=function(){};process.env.NODE_ENV!==`production`&&(zo=function(e,t){!e&&typeof console<`u`&&console.warn(t)},Bo=function(e,t){if(!e)throw Error(t)});function Vo(e,t,n){if(Array.isArray(e))return e.reduce((e,r)=>{let i=Vo(r,t,n);return i?{...e,...i}:e},{});if(typeof e==`object`)return e;if(e&&t){let r=t[e];return typeof r==`function`?r(n):r}}function Ho(e,t){return typeof e==typeof t?Array.isArray(e)&&Array.isArray(t)?!Uo(e,t):e!==t:!0}function Uo(e,t){let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Wo(e){return e?.startsWith(`--`)}var Go=e=>e;function Ko(e){return typeof e==`number`}var qo=`animate.circle.defs.desc.ellipse.g.image.line.filter.marker.mask.metadata.path.pattern.polygon.polyline.rect.stop.svg.switch.symbol.text.tspan.use.view.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.linearGradient.radialGradient.textPath`.split(`.`),Jo=new Set(qo);function Yo(e){return Jo.has(e)}var Xo=class{constructor(e){this.features=[];let{features:n=[],lazyMotionContext:r}=e.options,i=n.concat(r.features.value);this.features=i.map(t=>new t(e));let a=this.features;(0,t.watch)(r.features,t=>{t.forEach(t=>{if(!i.includes(t)){i.push(t);let n=new t(e);a.push(n),e.isMounted()&&(n.beforeMount(),n.mount())}})},{flush:`pre`})}mount(){this.features.forEach(e=>e.mount())}beforeMount(){this.features.forEach(e=>e.beforeMount?.call(e))}unmount(){this.features.forEach(e=>e.unmount())}update(){this.features.forEach(e=>e.update?.call(e))}beforeUpdate(){this.features.forEach(e=>e.beforeUpdate())}beforeUnmount(){this.features.forEach(e=>e.beforeUnmount())}},Zo=new WeakMap;function Qo(e){let t=Zo.get(e);t&&e.removeEventListener(`motioncomplete`,t),Zo.delete(e)}var[$o,es]=Mo(`AnimatePresenceContext`);function ts(e){let n={initial:e.initial,custom:e.custom};(0,t.watch)(()=>e.custom,e=>{n.custom=e},{flush:`pre`}),es(n),(0,t.onMounted)(()=>{n.initial=void 0})}function ns(e){return typeof e==`string`||e===!1||Array.isArray(e)}var rs=new WeakMap,is=0,as=class{constructor(e,t){var n;this.element=null,this.isSafeToRemove=!1,this.isVShow=!1,this.children=new Set,this.activeStates={initial:!0,animate:!0},this.currentProcess=null,this._context=null,this.animateUpdates=V,this.id=`motion-state-${is++}`,this.options=e,this.parent=t,(n=t?.children)==null||n.add(this);let r=(e.initial===void 0&&e.variants?this.context.initial:e.initial)===!1?[`initial`,`animate`]:[`initial`];this.initTarget(r),this.featureManager=new Xo(this),this.type=Yo(this.options.as)?`svg`:`html`}get context(){return this._context||=new Proxy({},{get:(e,t)=>ns(this.options[t])?this.options[t]:this.parent?.context[t]}),this._context}initTarget(e){let t=this.options.custom??this.options.animatePresenceContext?.custom;this.baseTarget=e.reduce((e,n)=>({...e,...Vo(this.options[n]||this.context[n],this.options.variants,t)}),{}),this.target={}}updateOptions(e){var t;this.options=e,(t=this.visualElement)==null||t.update({...this.options,whileTap:this.options.whilePress},{isPresent:!Zo.has(this.element)})}beforeMount(){this.featureManager.beforeMount()}mount(e,t,n=!1){var r,i;Bo(!!e,`Animation state must be mounted with valid Element`),this.element=e,this.updateOptions(t),this.options.layoutId&&((r=this.visualElement.projection.getStack())==null||r.members.length),this.featureManager.mount(),!n&&this.options.animate&&((i=this.startAnimation)==null||i.call(this))}clearAnimation(){var e;this.currentProcess&&yo(this.currentProcess),this.currentProcess=null,(e=this.visualElement?.variantChildren)==null||e.forEach(e=>{e.state.clearAnimation()})}startAnimation(){this.clearAnimation(),this.currentProcess=H.render(()=>{this.currentProcess=null,this.animateUpdates()})}beforeUnmount(){this.featureManager.beforeUnmount()}unmount(e=!1){var t,n;if(this.options.layoutId&&this.visualElement.projection?.getStack().lead===this.visualElement.projection&&this.visualElement.projection.isProjecting()){Promise.resolve().then(()=>{this.unmount(e)});return}e&&Array.from(this.children).reverse().forEach(this.unmountChild),(t=this.parent?.children)==null||t.delete(this),rs.delete(this.element),this.featureManager.unmount(),(n=this.visualElement)==null||n.unmount(),this.clearAnimation()}unmountChild(e){e.unmount(!0)}beforeUpdate(){this.featureManager.beforeUpdate()}update(e){this.updateOptions(e),this.featureManager.update(),this.startAnimation()}setActive(e,t,n=!0){var r;!this.element||this.activeStates[e]===t||(this.activeStates[e]=t,(r=this.visualElement.variantChildren)==null||r.forEach(n=>{n.state.setActive(e,t,!1)}),n&&this.animateUpdates({isExit:e===`exit`&&this.activeStates.exit}))}isMounted(){return!!this.element}willUpdate(e){var t;(this.options.layout||this.options.layoutId)&&((t=this.visualElement.projection)==null||t.willUpdate())}},os=new WeakMap;function ss(e,t,n){return new CustomEvent(e,{detail:{target:t,isExit:n}})}var cs={syntax:`<angle>`,initialValue:`0deg`,toDefaultUnit:e=>`${e}deg`},ls={translate:{syntax:`<length-percentage>`,initialValue:`0px`,toDefaultUnit:e=>`${e}px`},rotate:cs,scale:{syntax:`<number>`,initialValue:1,toDefaultUnit:Go},skew:cs},us=[`translate`,`scale`,`rotate`,`skew`],ds=[``,`X`,`Y`,`Z`],fs=new Map,ps=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`];us.forEach(e=>{ds.forEach(t=>{ps.push(e+t),fs.set(e+t,ls[e])})});var ms=new Set(ps),hs=e=>ms.has(e),gs={x:`translateX`,y:`translateY`,z:`translateZ`};function _s([e],[t]){return ps.indexOf(e)-ps.indexOf(t)}function vs(e,[t,n]){return`${e} ${t}(${n})`}function ys(e){return e.sort(_s).reduce(vs,``).trim()}var bs={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0},xs=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ss=xs(`deg`),Cs=xs(`%`),K=xs(`px`),ws=xs(`vh`),Ts=xs(`vw`),Es={...Cs,parse:e=>Cs.parse(e)/100,transform:e=>Cs.transform(e*100)},q=e=>!!(e&&e.getVelocity),Ds={get:(e,t)=>{let n=Wo(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!n&&n!==`0`){let e=fs.get(t);e&&(n=e.initialValue)}return n},set:(e,t,n)=>{Wo(t)?e.style.setProperty(t,n):e.style[t]=n}};function Os(e){let t={},n=[];for(let r in e){let i=e[r];i=q(i)?i.get():i,hs(r)&&r in gs&&(r=gs[r]);let a=Array.isArray(i)?i[0]:i,o=fs.get(r);o?(a=Ko(i)?o.toDefaultUnit?.call(o,i):i,n.push([r,a])):t[r]=a}return n.length&&(t.transform=ys(n)),Object.keys(t).length===0?null:t}var ks={fill:!0,stroke:!0,opacity:!0,"stroke-width":!0,"fill-opacity":!0,"stroke-opacity":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,cx:!0,cy:!0,r:!0,d:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,"path-length":!0,viewBox:!0,width:!0,height:!0,"preserve-aspect-ratio":!0,"clip-path":!0,filter:!0,mask:!0,"stop-color":!0,"stop-opacity":!0,"gradient-transform":!0,"gradient-units":!0,"spread-method":!0,"marker-end":!0,"marker-mid":!0,"marker-start":!0,"text-anchor":!0,"dominant-baseline":!0,"font-family":!0,"font-size":!0,"font-weight":!0,"letter-spacing":!0,"vector-effect":!0};function As(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()}function js(e,t,n=1,r=0){e.pathLength=1,delete e[`path-length`],e[`stroke-dashoffset`]=K.transform(-r),e[`stroke-dasharray`]=`${K.transform(t)} ${K.transform(n)}`}function Ms(e){let t={},n={};for(let r in e){let i=As(r);if(i in ks){let n=e[r];t[i]=q(n)?n.get():n}else n[r]=e[r]}return t[`path-length`]!==void 0&&js(t,t[`path-length`],t[`path-spacing`],t[`path-offset`]),{attrs:t,style:n}}function Ns({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ps(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Fs(e,t){return Ns(Ps(e.getBoundingClientRect(),t))}var Is={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Ls={};for(let e in Is)Ls[e]={isEnabled:t=>Is[e].some(e=>!!t[e])};var Rs=()=>({translate:0,scale:1,origin:0,originPoint:0}),zs=()=>({x:Rs(),y:Rs()}),Bs=()=>({min:0,max:0}),J=()=>({x:Bs(),y:Bs()}),Vs=typeof window<`u`,Hs={current:null},Us={current:!1};function Ws(){if(Us.current=!0,Vs)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Hs.current=e.matches;e.addEventListener(`change`,t),t()}else Hs.current=!1}function Gs(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Ks(e){return typeof e==`string`||Array.isArray(e)}var qs=[`initial`,...[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`]];function Js(e){return Gs(e.animate)||qs.some(t=>Ks(e[t]))}function Ys(e){return!!(Js(e)||e.variants)}function Xs(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var Zs=new Set;function Qs(e,t,n){e||Zs.has(t)||(console.warn(Xs(t,n)),Zs.add(t))}function $s(e,t){e.indexOf(t)===-1&&e.push(t)}function ec(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var tc=class{constructor(){this.subscriptions=[]}add(e){return $s(this.subscriptions,e),()=>ec(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function nc(e,t){return t?1e3/t*e:0}var rc=30,ic=e=>!isNaN(parseFloat(e)),ac={current:void 0},oc=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{var t;let n=W.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&((t=this.events.change)==null||t.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=W.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ic(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!==`production`&&Qs(!1,`value.onChange(callback) is deprecated. Switch to value.on("change", callback).`),this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new tc);let n=this.events[e].add(t);return e===`change`?()=>{n(),H.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return ac.current&&ac.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=W.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>rc)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,rc);return nc(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,t;(e=this.dependents)==null||e.clear(),(t=this.events.destroy)==null||t.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function sc(e,t){return new oc(e,t)}function cc(e,t,n){for(let r in t){let i=t[r],a=n[r];if(q(i))e.addValue(r,i);else if(q(a))e.addValue(r,sc(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,sc(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}function lc(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function uc(e,t,n,r){if(typeof t==`function`){let[i,a]=lc(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=lc(r);t=t(n===void 0?e.custom:n,i,a)}return t}function dc(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var fc=e=>e*180/Math.PI,pc=e=>hc(fc(Math.atan2(e[1],e[0]))),mc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:pc,rotateZ:pc,skewX:e=>fc(Math.atan(e[1])),skewY:e=>fc(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},hc=e=>(e%=360,e<0&&(e+=360),e),gc=pc,_c=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),vc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),yc={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_c,scaleY:vc,scale:e=>(_c(e)+vc(e))/2,rotateX:e=>hc(fc(Math.atan2(e[6],e[5]))),rotateY:e=>hc(fc(Math.atan2(-e[2],e[0]))),rotateZ:gc,rotate:gc,skewX:e=>fc(Math.atan(e[4])),skewY:e=>fc(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function bc(e){return e.includes(`scale`)?1:0}function xc(e,t){if(!e||e===`none`)return bc(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=yc,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=mc,i=t}if(!i)return bc(t);let a=r[t],o=i[1].split(`,`).map(Cc);return typeof a==`function`?a(o):o[a]}var Sc=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return xc(n,t)};function Cc(e){return parseFloat(e.trim())}var wc=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Tc=new Set(wc),Ec=(e,t,n)=>n>t?t:n<e?e:n,Dc={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Oc={...Dc,transform:e=>Ec(0,1,e)},kc={...Dc,default:1},Ac=e=>e===Dc||e===K,jc=new Set([`x`,`y`,`z`]),Mc=wc.filter(e=>!jc.has(e));function Nc(e){let t=[];return Mc.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(`scale`)?1:0))}),t}var Pc={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>xc(t,`x`),y:(e,{transform:t})=>xc(t,`y`)};Pc.translateX=Pc.x,Pc.translateY=Pc.y;var Fc=new Set,Ic=!1,Lc=!1,Rc=!1;function zc(){if(Lc){let e=Array.from(Fc).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Nc(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{var r;(r=e.getValue(t))==null||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Lc=!1,Ic=!1,Fc.forEach(e=>e.complete(Rc)),Fc.clear()}function Bc(){Fc.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Lc=!0)})}function Vc(){Rc=!0,Bc(),zc(),Rc=!1}var Hc=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Fc.add(this),Ic||(Ic=!0,H.read(Bc),H.resolveKeyframes(zc))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}dc(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Fc.delete(this)}cancel(){this.state===`scheduled`&&(Fc.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Uc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Wc=e=>/^0[^.\s]+$/u.test(e),Gc=e=>Math.round(e*1e5)/1e5,Kc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function qc(e){return e==null}var Jc=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Yc=(e,t)=>n=>!!(typeof n==`string`&&Jc.test(n)&&n.startsWith(e)||t&&!qc(n)&&Object.prototype.hasOwnProperty.call(n,t)),Xc=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Kc);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Zc=e=>Ec(0,255,e),Qc={...Dc,transform:e=>Math.round(Zc(e))},$c={test:Yc(`rgb`,`red`),parse:Xc(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Qc.transform(e)+`, `+Qc.transform(t)+`, `+Qc.transform(n)+`, `+Gc(Oc.transform(r))+`)`};function el(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var tl={test:Yc(`#`),parse:el,transform:$c.transform},nl={test:Yc(`hsl`,`hue`),parse:Xc(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Cs.transform(Gc(t))+`, `+Cs.transform(Gc(n))+`, `+Gc(Oc.transform(r))+`)`},Y={test:e=>$c.test(e)||tl.test(e)||nl.test(e),parse:e=>$c.test(e)?$c.parse(e):nl.test(e)?nl.parse(e):tl.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?$c.transform(e):nl.transform(e),getAnimatableNone:e=>{let t=Y.parse(e);return t.alpha=0,Y.transform(t)}},rl=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function il(e){return isNaN(e)&&typeof e==`string`&&(e.match(Kc)?.length||0)+(e.match(rl)?.length||0)>0}var al=`number`,ol=`color`,sl=`var`,cl=`var(`,ll="${}",ul=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function dl(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(ul,e=>(Y.test(e)?(r.color.push(a),i.push(ol),n.push(Y.parse(e))):e.startsWith(cl)?(r.var.push(a),i.push(sl),n.push(e)):(r.number.push(a),i.push(al),n.push(parseFloat(e))),++a,ll)).split(ll),indexes:r,types:i}}function fl(e){return dl(e).values}function pl(e){let{split:t,types:n}=dl(e),r=t.length;return e=>{let i=``;for(let a=0;a<r;a++)if(i+=t[a],e[a]!==void 0){let t=n[a];t===al?i+=Gc(e[a]):t===ol?i+=Y.transform(e[a]):i+=e[a]}return i}}var ml=e=>typeof e==`number`?0:Y.test(e)?Y.getAnimatableNone(e):e;function hl(e){let t=fl(e);return pl(e)(t.map(ml))}var gl={test:il,parse:fl,createTransformer:pl,getAnimatableNone:hl},_l={test:e=>e===`auto`,parse:e=>e},vl=e=>t=>t.test(e),yl=[Dc,K,Cs,Ss,Ts,ws,_l],bl=e=>yl.find(vl(e)),xl=[...yl,Y,gl],Sl=e=>xl.find(vl(e)),Cl=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function wl(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Kc)||[];if(!r)return e;let i=n.replace(r,``),a=Cl.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}var Tl=/\b([a-z-]*)\(.*?\)/gu,El={...gl,getAnimatableNone:e=>{let t=e.match(Tl);return t?t.map(wl).join(` `):e}},Dl={...Dc,transform:Math.round},Ol={borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,radius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,top:K,right:K,bottom:K,left:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,backgroundPositionX:K,backgroundPositionY:K,rotate:Ss,rotateX:Ss,rotateY:Ss,rotateZ:Ss,scale:kc,scaleX:kc,scaleY:kc,scaleZ:kc,skew:Ss,skewX:Ss,skewY:Ss,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:Oc,originX:Es,originY:Es,originZ:K,zIndex:Dl,fillOpacity:Oc,strokeOpacity:Oc,numOctaves:Dl},kl={...Ol,color:Y,backgroundColor:Y,outlineColor:Y,fill:Y,stroke:Y,borderColor:Y,borderTopColor:Y,borderRightColor:Y,borderBottomColor:Y,borderLeftColor:Y,filter:El,WebkitFilter:El},Al=e=>kl[e];function jl(e,t){let n=Al(e);return n!==El&&(n=gl),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var{schedule:Ml,cancel:Nl}=vo(queueMicrotask,!0),Pl=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Fl=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Hc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=W.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,H.render(this.render,!1,!0))};let{latestValues:s,renderState:c}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=Js(t),this.isVariantNode=Ys(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in u){let t=u[e];s[e]!==void 0&&q(t)&&t.set(s[e])}}mount(e){var t;this.current=e,os.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),Us.current||Ws(),this.shouldReduceMotion=this.reducedMotionConfig===`never`?!1:this.reducedMotionConfig===`always`?!0:Hs.current,process.env.NODE_ENV!==`production`&&Qs(this.shouldReduceMotion!==!0,`You have Reduced Motion enabled on your device. Animations may not appear as expected.`,`reduced-motion-disabled`),(t=this.parent)==null||t.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;for(let t in this.projection&&this.projection.unmount(),yo(this.notifyUpdate),yo(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this),this.events)this.events[t].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=Tc.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&H.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Ls){let t=Ls[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):J()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Pl.length;t++){let n=Pl[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=cc(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=sc(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Uc(n)||Wc(n))?n=parseFloat(n):!Sl(n)&&gl.test(t)&&(n=jl(e,t)),this.setBaseTarget(e,q(n)?n.get():n)),q(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=uc(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!q(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new tc),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Ml.render(this.render)}},Il=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...wc]),Ll=()=>{},Rl=()=>{};process.env.NODE_ENV!==`production`&&(Ll=(e,t,n)=>{!e&&typeof console<`u`&&console.warn(Xs(t,n))},Rl=(e,t,n)=>{if(!e)throw Error(Xs(t,n))});var zl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Bl(e){let t=zl.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var Vl=4;function Hl(e,t,n=1){Rl(n<=Vl,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=Bl(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Uc(e)?parseFloat(e):e}return Oo(i)?Hl(i,t,n+1):i}function Ul(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||Wc(e)}var Wl=new Set([`auto`,`none`,`0`]);function Gl(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Wl.has(t)&&dl(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=jl(n,i)}var Kl=class extends Hc{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Oo(r))){let i=Hl(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Il.has(n)||e.length!==2)return;let[r,i]=e,a=bl(r),o=bl(i);if(a!==o)if(Ac(a)&&Ac(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Pc[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Ul(e[t]))&&n.push(t);n.length&&Gl(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Pc[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Pc[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},ql=class extends Fl{constructor(){super(...arguments),this.KeyframeResolver=Kl}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;q(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Jl=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Yl={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Xl=wc.length;function Zl(e,t,n){let r=``,i=!0;for(let a=0;a<Xl;a++){let o=wc[a],s=e[o];if(s===void 0)continue;let c=!0;if(c=typeof s==`number`?s===(o.startsWith(`scale`)?1:0):parseFloat(s)===0,!c||n){let e=Jl(s,Ol[o]);if(!c){i=!1;let t=Yl[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Ql(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Tc.has(e)){o=!0;continue}else if(Eo(e)){i[e]=n;continue}else{let t=Jl(n,Ol[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Zl(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function $l(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function eu(e,{layout:t,layoutId:n}){return Tc.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Ao[e]||e===`opacity`)}function tu(e,t,n){let{style:r}=e,i={};for(let a in r)(q(r[a])||t.style&&q(t.style[a])||eu(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}function nu(e){return window.getComputedStyle(e)}var ru=class extends ql{constructor(){super(...arguments),this.type=`html`,this.renderInstance=$l}readValueFromInstance(e,t){if(Tc.has(t))return this.projection?.isProjecting?bc(t):Sc(e,t);{let n=nu(e),r=(Eo(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Fs(e,t)}build(e,t,n){Ql(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return tu(e,t,n)}},iu=e=>e.replace(/([a-z])([A-Z])/gu,`$1-$2`).toLowerCase(),au={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ou={offset:`strokeDashoffset`,array:`strokeDasharray`};function su(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?au:ou;e[a.offset]=K.transform(-r);let o=K.transform(t),s=K.transform(n);e[a.array]=`${o} ${s}`}function cu(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Ql(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&su(d,i,a,o,!1)}var lu=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),uu=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function du(e,t,n,r){for(let n in $l(e,t,void 0,r),t.attrs)e.setAttribute(lu.has(n)?n:iu(n),t.attrs[n])}function fu(e,t,n){let r=tu(e,t,n);for(let n in e)if(q(e[n])||q(t[n])){let t=wc.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var pu=class extends ql{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=J}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Tc.has(t)){let e=Al(t);return e&&e.default||0}return t=lu.has(t)?t:iu(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return fu(e,t,n)}build(e,t,n){cu(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){du(e,t,n,r)}mount(e){this.isSVGTag=uu(e.tagName),super.mount(e)}};function mu(e,t){return Yo(e)?new pu(t):new ru(t)}function hu(e,t,n,r=0,i=1){let a=Array.from(e),o=a.indexOf(t),s=e.size,c=(s-1)*r,l=typeof n==`function`;return o===a.length-1&&(t.parent.enteringChildren=void 0),l?n(o,s):i===1?o*r:c-o*r}function gu(e){return typeof e==`object`&&!Array.isArray(e)}function _u(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function vu(e,t,n,r){return typeof e==`string`&&gu(t)?_u(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function yu(e,t,n){return e*(t+1)}function bu(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}var X=(e,t,n)=>e+(t-e)*n,xu=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Su=e=>Array.isArray(e)&&typeof e[0]!=`number`;function Cu(e,t){return Su(e)?e[xu(0,e.length,t)]:e}function wu(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(ec(e,i),r--)}}function Tu(e,t,n,r,i,a){wu(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:X(i,a,r[o]),easing:Cu(n,o)})}function Eu(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function Du(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Ou=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r};function ku(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Ou(0,t,r);e.push(X(n,1,i))}}function Au(e){let t=[0];return ku(t,e.length-1),t}var ju=2e4;function Mu(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Nu(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Mu(r),ju);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Co(i)}}function Pu(e){return typeof e==`function`&&`applyToOptions`in e}var Fu=`easeInOut`,Iu=20;function Lu(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}else if(!Array.isArray(o)){l.set(o.name,bu(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=bu(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=Bu(e),{delay:l=0,times:u=Au(c),type:p=`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=Pu(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&Uu(c)){let t=c[1]-c[0];e=Math.abs(t)}let t={...v};b!==void 0&&(t.duration=G(b));let n=Nu(t,e,C);y=n.ease,b=n.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&ku(u,T),c.length===1&&c.unshift(null),m){Rl(m<Iu,`Repeat count too high, must be less than 20`,`repeat-count-high`),b=yu(b,m);let e=[...c],t=[...u];y=Array.isArray(y)?[...y]:[y];let n=[...y];for(let r=0;r<m;r++){c.push(...e);for(let i=0;i<e.length;i++)u.push(t[i]+(r+1)),y.push(i===0?`linear`:Cu(n,i-1))}Eu(u,m)}let E=w+b;Tu(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(q(p)){let e=Ru(p,s);_(m,h,zu(`default`,e))}else{let e=vu(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=Ru(r,s);for(let e in m)_(m[e],Vu(h,e),zu(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Du);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(Ou(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(Fu)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s,u.transition[i]={...t,duration:f,ease:l,times:c,...n}}}),o}function Ru(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function zu(e,t){return t[e]||(t[e]=[]),t[e]}function Bu(e){return Array.isArray(e)?e:[e]}function Vu(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Hu=e=>typeof e==`number`,Uu=e=>e.every(Hu),Wu=e=>Array.isArray(e);function Gu(e,t,n){let r=e.getProps();return uc(r,t,r.custom,e)}function Ku(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,sc(n))}function qu(e){return Wu(e)?e[e.length-1]||0:e}function Ju(e,t){let{transitionEnd:n={},transition:r={},...i}=Gu(e,t)||{};for(let t in i={...i,...n},i)Ku(e,t,qu(i[t]))}function Yu(e){return!!(q(e)&&e.add)}function Xu(e,t){let n=e.getValue(`willChange`);if(Yu(n))return n.add(t);if(!n&&go.WillChange){let n=new go.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}var Zu=`data-`+iu(`framerAppearId`);function Qu(e){return e.props[Zu]}var $u=e=>e!==null;function ed(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter($u),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}var td={type:`spring`,stiffness:500,damping:25,restSpeed:10},nd=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),rd={type:`keyframes`,duration:.8},id={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},ad=(e,{keyframes:t})=>t.length>2?rd:Tc.has(e)?e.startsWith(`scale`)?nd(t[1]):td:id;function od({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}function sd(e,t){return e?.[t]??e?.default??e}function cd(e){e.duration=0,e.type}var ld={layout:0,mainThread:0,waapi:0};function ud(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function dd({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=ud(s,r,e+1/3),a=ud(s,r,e),o=ud(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function fd(e,t){return n=>n>0?t:e}var pd=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},md=[tl,$c,nl],hd=e=>md.find(t=>t.test(e));function gd(e){let t=hd(e);if(Ll(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!t)return!1;let n=t.parse(e);return t===nl&&(n=dd(n)),n}var _d=(e,t)=>{let n=gd(e),r=gd(t);if(!n||!r)return fd(e,t);let i={...n};return e=>(i.red=pd(n.red,r.red,e),i.green=pd(n.green,r.green,e),i.blue=pd(n.blue,r.blue,e),i.alpha=X(n.alpha,r.alpha,e),$c.transform(i))},vd=new Set([`none`,`hidden`]);function yd(e,t){return vd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}var bd=(e,t)=>n=>t(e(n)),xd=(...e)=>e.reduce(bd);function Sd(e,t){return n=>X(e,t,n)}function Cd(e){return typeof e==`number`?Sd:typeof e==`string`?Oo(e)?fd:Y.test(e)?_d:Dd:Array.isArray(e)?wd:typeof e==`object`?Y.test(e)?_d:Td:fd}function wd(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Cd(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Td(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Cd(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Ed(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Dd=(e,t)=>{let n=gl.createTransformer(t),r=dl(e),i=dl(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?vd.has(e)&&!i.values.length||vd.has(t)&&!r.values.length?yd(e,t):xd(wd(Ed(r,i),i.values),n):(Ll(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,`complex-values-different`),fd(e,t))};function Od(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?X(e,t,n):Cd(e)(e,t)}var kd=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>H.update(t,e),stop:()=>yo(t),now:()=>U.isProcessing?U.timestamp:W.now()}},Ad=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},jd=5;function Md(e,t,n){let r=Math.max(t-jd,0);return nc(n-e(r),t-r)}var Z={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Nd=.001;function Pd({duration:e=Z.duration,bounce:t=Z.bounce,velocity:n=Z.velocity,mass:r=Z.mass}){let i,a;Ll(e<=G(Z.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=Ec(Z.minDamping,Z.maxDamping,o),e=Ec(Z.minDuration,Z.maxDuration,Co(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Ld(t,o),c=Math.exp(-i);return Nd-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Ld(t**2,o);return(-i(t)+Nd>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Nd+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Id(i,a,s);if(e=G(e),isNaN(c))return{stiffness:Z.stiffness,damping:Z.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Fd=12;function Id(e,t,n){let r=n;for(let n=1;n<Fd;n++)r-=e(r)/t(r);return r}function Ld(e,t){return e*Math.sqrt(1-t*t)}var Rd=[`duration`,`bounce`],zd=[`stiffness`,`damping`,`mass`];function Bd(e,t){return t.some(t=>e[t]!==void 0)}function Vd(e){let t={velocity:Z.velocity,stiffness:Z.stiffness,damping:Z.damping,mass:Z.mass,isResolvedFromDuration:!1,...e};if(!Bd(e,zd)&&Bd(e,Rd))if(e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Ec(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Z.mass,stiffness:i,damping:a}}else{let n=Pd(e);t={...t,...n,mass:Z.mass},t.isResolvedFromDuration=!0}return t}function Hd(e=Z.visualDuration,t=Z.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Vd({...n,velocity:-Co(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Co(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?Z.restSpeed.granular:Z.restSpeed.default,i||=v?Z.restDelta.granular:Z.restDelta.default;let y;if(h<1){let e=Ld(_,h);y=t=>o-Math.exp(-h*_*t)*((m+h*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(h===1)y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=y(e);if(p)s.done=e>=d;else{let n=e===0?m:0;h<1&&(n=e===0?G(m):Md(y,e,t));let a=Math.abs(n)<=r,c=Math.abs(o-t)<=i;s.done=a&&c}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Mu(b),ju),t=Ad(t=>b.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return b}Hd.applyToOptions=e=>{let t=Nu(e,100,Hd);return e.ease=t.ease,e.duration=G(t.duration),e.type=`keyframes`,e};function Ud({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Hd({keyframes:[f.value,m(f.value)],velocity:Md(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Wd(e,t,n){let r=[],i=n||go.mix||Od,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=xd(Array.isArray(t)?t[n]||V:t,a)),r.push(a)}return r}function Gd(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(Rl(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Wd(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Ou(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Ec(e[0],e[a-1],t)):l}function Kd(e,t){return e.map(e=>e*t)}var qd=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Jd=1e-7,Yd=12;function Xd(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=qd(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Jd&&++s<Yd);return o}function Zd(e,t,n,r){if(e===t&&n===r)return V;let i=t=>Xd(t,0,1,e,n);return e=>e===0||e===1?e:qd(i(e),t,r)}var Qd=Zd(.42,0,1,1),$d=Zd(0,0,.58,1),ef=Zd(.42,0,.58,1),tf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nf=e=>t=>1-e(1-t),rf=Zd(.33,1.53,.69,.99),af=nf(rf),of=tf(af),sf=e=>(e*=2)<1?.5*af(e):.5*(2-2**(-10*(e-1))),cf=e=>1-Math.sin(Math.acos(e)),lf=nf(cf),uf=tf(cf),df=e=>Array.isArray(e)&&typeof e[0]==`number`,ff={linear:V,easeIn:Qd,easeInOut:ef,easeOut:$d,circIn:cf,circInOut:uf,circOut:lf,backIn:af,backInOut:of,backOut:rf,anticipate:sf},pf=e=>typeof e==`string`,mf=e=>{if(df(e)){Rl(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return Zd(t,n,r,i)}else if(pf(e))return Rl(ff[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),ff[e];return e};function hf(e,t){return e.map(()=>t||ef).splice(0,e.length-1)}function gf({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Su(r)?r.map(mf):mf(r),a={done:!1,value:t[0]},o=Gd(Kd(n&&n.length===t.length?n:Au(t),e),t,{ease:Array.isArray(i)?i:hf(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var _f=e=>e!==null;function vf(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(_f),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var yf={decay:Ud,inertia:Ud,tween:gf,keyframes:gf,spring:Hd};function bf(e){typeof e.type==`string`&&(e.type=yf[e.type])}var xf=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Sf=e=>e/100,Cf=class extends xf{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var e,t;let{motionValue:n}=this.options;n&&n.updatedAt!==W.now()&&this.tick(W.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),(t=(e=this.options).onStop)==null||t.call(e))},ld.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;bf(e);let{type:t=gf,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||gf;process.env.NODE_ENV!==`production`&&s!==gf&&Rl(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,`spring-two-frames`),s!==gf&&typeof o[0]!=`number`&&(this.mixKeyframes=xd(Sf,Od(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Mu(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=Ec(0,1,n)*o}let b=_?{done:!1,value:l[0]}:y.next(v);i&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Ud&&(b.value=vf(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Co(this.calculatedDuration)}get time(){return Co(this.currentTime)}set time(e){var t;e=G(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(t=this.driver)==null||t.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(W.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Co(this.currentTime))}play(){var e,t;if(this.isStopped)return;let{driver:n=kd,startTime:r}=this.options;this.driver||=n(e=>this.tick(e)),(t=(e=this.options).onPlay)==null||t.call(e);let i=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=i):this.holdTime===null?this.startTime||=r??i:this.startTime=i-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(W.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){var e,t;this.notifyFinished(),this.teardown(),this.state=`finished`,(t=(e=this.options).onComplete)==null||t.call(e)}cancel(){var e,t;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(t=(e=this.options).onCancel)==null||t.call(e)}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,ld.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var t;return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),(t=this.driver)==null||t.stop(),e.observe(this)}},wf=e=>e.startsWith(`--`);function Tf(e,t,n){wf(t)?e.style.setProperty(t,n):e.style[t]=n}function Ef(e){let t;return()=>(t===void 0&&(t=e()),t)}var Df=Ef(()=>window.ScrollTimeline!==void 0),Of={};function kf(e,t){let n=Ef(e);return()=>Of[t]??n()}var Af=kf(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),jf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Mf={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:jf([0,.65,.55,1]),circOut:jf([.55,0,1,.45]),backIn:jf([.31,.01,.66,-.59]),backOut:jf([.33,1.53,.69,.99])};function Nf(e,t){if(e)return typeof e==`function`?Af()?Ad(e,t):`ease-out`:df(e)?jf(e):Array.isArray(e)?e.map(e=>Nf(e,t)||Mf.easeOut):Mf[e]}function Pf(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Nf(s,i);Array.isArray(d)&&(u.easing=d),mo.value&&ld.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return mo.value&&p.finished.finally(()=>{ld.waapi--}),p}function Ff({type:e,...t}){return Pu(e)&&Af()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var If=class extends xf{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,Rl(typeof e.type!=`string`,`Mini animate() doesn't support "type" as a string.`,`mini-spring`);let c=Ff(e);this.animation=Pf(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=vf(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):Tf(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,t;(t=(e=this.animation).finish)==null||t.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,t;this.isPseudoElement||(t=(e=this.animation).commitStyles)==null||t.call(e)}get duration(){var e;let t=((e=this.animation.effect)?.getComputedTiming)?.call(e).duration||0;return Co(Number(t))}get time(){return Co(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=G(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){var n;return this.allowFlatten&&((n=this.animation.effect)==null||n.updateTiming({easing:`linear`})),this.animation.onfinish=null,e&&Df()?(this.animation.timeline=e,V):t(this)}},Lf={anticipate:sf,backInOut:of,circInOut:uf};function Rf(e){return e in Lf}function zf(e){typeof e.ease==`string`&&Rf(e.ease)&&(e.ease=Lf[e.ease])}var Bf=10,Vf=class extends If{constructor(e){zf(e),bf(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Cf({...a,autoplay:!1}),s=G(this.finishedTime??this.time);t.setWithVelocity(o.sample(s-Bf).value,o.sample(s).value,Bf),o.stop()}},Hf=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(gl.test(e)||e===`0`)&&!e.startsWith(`url(`));function Uf(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Wf(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Hf(i,t),s=Hf(a,t);return Ll(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,`value-not-animatable`),!o||!s?!1:Uf(e)||(n===`spring`||Pu(n))&&r}var Gf=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Kf=Ef(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function qf(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:c}=t.owner.getProps();return Kf()&&n&&Gf.has(n)&&(n!==`transform`||!c)&&!s&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Jf=40,Yf=class extends xf{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){var d;super(),this.stop=()=>{var e,t;this._animation&&(this._animation.stop(),(e=this.stopTimeline)==null||e.call(this)),(t=this.keyframeResolver)==null||t.cancel()},this.createdAt=W.now();let f={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||Hc)(o,(e,t,n)=>this.onKeyframesResolved(e,t,f,!n),s,c,l),(d=this.keyframeResolver)==null||d.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=W.now(),Wf(e,i,a,o)||((go.instantAnimations||!s)&&l?.(vf(e,n,t)),e[0]=e[e.length-1],cd(n),n.repeat=0);let u={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Jf?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!c&&qf(u)?new Vf({...u,element:u.motionValue.owner.current}):new Cf(u);d.finished.then(()=>this.notifyFinished()).catch(V),this.pendingTimeline&&=(this.stopTimeline=d.attachTimeline(this.pendingTimeline),void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),Vc()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}},Xf=(e,t,n,r={},i,a)=>o=>{let s=sd(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=G(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};od(s)||Object.assign(u,ad(e,u)),u.duration&&=G(u.duration),u.repeatDelay&&=G(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(cd(u),u.delay===0&&(d=!0)),(go.instantAnimations||go.skipAnimations)&&(d=!0,cd(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=ed(u.keyframes,s);if(e!==void 0){H.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Cf(u):new Yf(u)};function Zf({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Qf(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);let c=[],l=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||l&&Zf(l,t))continue;let o={delay:n,...sd(a||{},t)},u=r.get();if(u!==void 0&&!r.isAnimating&&!Array.isArray(i)&&i===u&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let n=Qu(e);if(n){let e=window.MotionHandoffAnimation(n,t,H);e!==null&&(o.startTime=e,d=!0)}}Xu(e,t),r.start(Xf(t,r,i,e.shouldReduceMotion&&Il.has(t)?{type:!1}:o,e,d));let f=r.animation;f&&c.push(f)}return o&&Promise.all(c).then(()=>{H.update(()=>{o&&Ju(e,o)})}),c}function $f(e,t){return e in t}var ep=class extends Fl{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if($f(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return J()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}};function tp(e){return typeof e==`object`&&!!e}function np(e){return tp(e)&&`ownerSVGElement`in e}function rp(e){return np(e)&&e.tagName===`svg`}function ip(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=np(e)&&!rp(e)?new pu(t):new ru(t);n.mount(e),os.set(e,n)}function ap(e){let t=new ep({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),os.set(e,t)}function op(e,t,n){let r=q(e)?e:sc(e);return r.start(Xf(``,r,t,n)),r.animation}function sp(e,t){return q(e)||typeof e==`number`||typeof e==`string`&&!gu(t)}function cp(e,t,n,r){let i=[];if(sp(e,t))i.push(op(e,gu(t)&&t.default||t,n&&(n.default||n)));else{let a=vu(e,t,r),o=a.length;Rl(!!o,`No valid elements provided.`,`no-valid-elements`);for(let e=0;e<o;e++){let r=a[e];Rl(r!==null,`You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.`,`animate-null`);let s=r instanceof Element?ip:ap;os.has(r)||s(r);let c=os.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...Qf(c,{...t,transition:l},{}))}}return i}function lp(e,t,n){let r=[];return Lu(e,t,n,{spring:Hd}).forEach(({keyframes:e,transition:t},n)=>{r.push(...cp(n,e,t))}),r}var up=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}},dp=class extends up{then(e,t){return this.finished.finally(e).then(()=>{})}};function fp(e){return Array.isArray(e)&&e.some(Array.isArray)}function pp(e){function t(t,n,r){let i=[];i=fp(t)?lp(t,n,e):cp(t,n,r,e);let a=new dp(i);return e&&(e.animations.push(a),a.finished.then(()=>{ec(e.animations,a)})),a}return t}var mp=pp(),hp=[`initial`,`animate`,`whileInView`,`whileHover`,`whilePress`,`whileDrag`,`whileFocus`,`exit`],gp=class extends Ro{constructor(e){var t;super(e),this.animateUpdates=({controlActiveState:e,directAnimate:t,directTransition:n,controlDelay:r=0,isExit:i}={})=>{let{reducedMotion:a}=this.state.options.motionConfig;this.state.visualElement.shouldReduceMotion=a===`always`||a===`user`&&!!Hs.current;let o=this.state.target;this.state.target={...this.state.baseTarget};let s={};s=this.resolveStateAnimation({controlActiveState:e,directAnimate:t,directTransition:n}),this.state.finalTransition=s;let c=this.createAnimationFactories(o,s,r),{getChildAnimations:l}=this.setupChildAnimations(s,this.state.activeStates);return this.executeAnimations({factories:c,getChildAnimations:l,transition:s,controlActiveState:e,isExit:i})},this.state.visualElement=mu(this.state.options.as,{presenceContext:null,parent:this.state.parent?.visualElement,props:{...this.state.options,whileTap:this.state.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.state.baseTarget}},reducedMotionConfig:this.state.options.motionConfig.reducedMotion}),(t=this.state.visualElement.parent)==null||t.addChild(this.state.visualElement),this.state.animateUpdates=this.animateUpdates,this.state.isMounted()&&this.state.startAnimation()}updateAnimationControlsSubscription(){let{animate:e}=this.state.options;Lo(e)&&(this.unmountControls=e.subscribe(this.state))}executeAnimations({factories:e,getChildAnimations:t,transition:n,controlActiveState:r,isExit:i=!1}){let a=()=>Promise.all(e.map(e=>e()).filter(Boolean)),o={...this.state.target},s=this.state.element,c=e=>{var t,n;s.dispatchEvent(ss(`motionstart`,o)),(n=(t=this.state.options).onAnimationStart)==null||n.call(t,o),e.then(()=>{var e,t;s.dispatchEvent(ss(`motioncomplete`,o,i)),(t=(e=this.state.options).onAnimationComplete)==null||t.call(e,o)}).catch(V)},l=()=>{let e=n?.when?(n.when===`beforeChildren`?a():t()).then(()=>n.when===`beforeChildren`?t():a()):Promise.all([a(),t()]);return c(e),e};return r?l:l()}setupChildAnimations(e,t){let n=this.state.visualElement;if(!n.variantChildren?.size||!t)return{getChildAnimations:()=>Promise.resolve()};let{staggerChildren:r=0,staggerDirection:i=1,delayChildren:a=0}=e||{},o=n.variantChildren.size,s=(o-1)*r,c=typeof a==`function`,l=c?e=>a(e,o):i===1?(e=0)=>e*r:(e=0)=>s-e*r,u=Array.from(n.variantChildren).map((e,n)=>e.state.animateUpdates({controlActiveState:t,controlDelay:(c?0:a)+l(n)}));return{getChildAnimations:()=>Promise.all(u.map(e=>e()))}}createAnimationFactories(e,t,n){let r=[];return Object.keys(this.state.target).forEach(i=>{var a;if(!Ho(e[i],this.state.target[i]))return;(a=this.state.baseTarget)[i]??(a[i]=Ds.get(this.state.element,i));let o=this.state.target[i]===`none`&&d(bs[i])?bs[i]:this.state.target[i];r.push(()=>mp(this.state.element,{[i]:o},{...t?.[i]||t,delay:(t?.[i]?.delay||t?.delay||0)+n}))}),r}resolveStateAnimation({controlActiveState:e,directAnimate:t,directTransition:n}){let r=this.state.options.transition,i={},{variants:a,custom:o,transition:s,animatePresenceContext:c}=this.state.options,l=o??c?.custom;return this.state.activeStates={...this.state.activeStates,...e},hp.forEach(e=>{if(!this.state.activeStates[e]||Lo(this.state.options[e]))return;let t=this.state.options[e],n=d(t)?Vo(t,a,l):void 0;if(this.state.visualElement.isVariantNode){let t=Vo(this.state.context[e],a,l);n=t?Object.assign(t||{},n):Object.assign(i,n)}n&&(e!==`initial`&&(r=n.transition||this.state.options.transition||{}),i=Object.assign(i,n))}),t&&(i=Vo(t,a,l),r=i.transition||n||s),Object.entries(i).forEach(([e,t])=>{e!==`transition`&&(this.state.target[e]=t)}),r}mount(){let{element:e}=this.state;rs.set(e,this.state),os.get(e)||(this.state.visualElement.mount(e),os.set(e,this.state.visualElement)),this.state.visualElement.state=this.state,this.updateAnimationControlsSubscription();let t=this.state.visualElement,n=t.parent;if(t.enteringChildren=void 0,this.state.parent?.isMounted()&&!t.isControllingVariants&&(n?.enteringChildren)?.has(t)){let{delayChildren:e}=this.state.parent.finalTransition||{};this.animateUpdates({controlActiveState:this.state.parent.activeStates,controlDelay:hu(n.enteringChildren,t,e)})()}}update(){let{animate:e}=this.state.options,{animate:t}=this.state.visualElement.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;(e=this.unmountControls)==null||e.call(this)}};function _p(e){return tp(e)&&`offsetHeight`in e}var vp={x:!1,y:!1};function yp(){return vp.x||vp.y}var bp=(e,t)=>t?e===t?!0:bp(e,t.parentElement):!1,xp=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function Sp(e,t){let n=_u(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}var Cp=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function wp(e){return Cp.has(e.tagName)||e.tabIndex!==-1}var Tp=new WeakSet;function Ep(e){return t=>{t.key===`Enter`&&e(t)}}function Dp(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Op=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Ep(()=>{if(Tp.has(n))return;Dp(n,`down`);let e=Ep(()=>{Dp(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Dp(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function kp(e){return xp(e)&&!yp()}function Ap(e,t,n={}){let[r,i,a]=Sp(e,n),o=e=>{let r=e.currentTarget;if(!kp(e))return;Tp.add(r);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),Tp.has(r)&&Tp.delete(r),kp(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||bp(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),_p(e)&&(e.addEventListener(`focus`,e=>Op(e,i)),!wp(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function jp(e){return{point:{x:e.pageX,y:e.pageY}}}function Mp(e,t,n){let r=e.options;r.whilePress&&e.setActive(`whilePress`,n===`Start`);let i=r[`onPress${n===`End`?``:n}`];i&&H.postRender(()=>i(t,jp(t)))}var Np=class extends Ro{isActive(){let{whilePress:e,onPress:t,onPressCancel:n,onPressStart:r}=this.state.options;return!!(e||t||n||r)}constructor(e){super(e)}mount(){this.register()}update(){let{whilePress:e,onPress:t,onPressCancel:n,onPressStart:r}=this.state.options;e||t||n||r||this.register()}register(){let e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=Ap(e,(e,t)=>(Mp(this.state,t,`Start`),(e,{success:t})=>Mp(this.state,e,t?`End`:`Cancel`)),{useGlobalTarget:this.state.options.globalPressTarget}))}};function Pp(e){return!(e.pointerType===`touch`||yp())}function Fp(e,t,n={}){let[r,i,a]=Sp(e,n),o=e=>{if(!Pp(e))return;let{target:n}=e,r=t(n,e);if(typeof r!=`function`||!n)return;let a=e=>{Pp(e)&&(r(e),n.removeEventListener(`pointerleave`,a))};n.addEventListener(`pointerleave`,a,i)};return r.forEach(e=>{e.addEventListener(`pointerenter`,o,i)}),a}function Ip(e,t,n){let r=e.options;r.whileHover&&e.setActive(`whileHover`,n===`Start`);let i=r[`onHover${n}`];i&&H.postRender(()=>i(t,jp(t)))}var Lp=class extends Ro{isActive(){let{whileHover:e,onHoverStart:t,onHoverEnd:n}=this.state.options;return!!(e||t||n)}constructor(e){super(e)}mount(){this.register()}update(){let{whileHover:e,onHoverStart:t,onHoverEnd:n}=this.state.visualElement.prevProps;e||t||n||this.register()}register(){let e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=Fp(e,(e,t)=>(Ip(this.state,t,`Start`),e=>{Ip(this.state,e,`End`)})))}},Rp={some:0,all:1};function zp(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=_u(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n)if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:Rp[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function Bp(e,t,n){let r=e.options;r.whileInView&&e.setActive(`whileInView`,n===`Enter`);let i=r[`onViewport${n}`];i&&H.postRender(()=>i(t))}var Vp=class extends Ro{isActive(){let{whileInView:e,onViewportEnter:t,onViewportLeave:n}=this.state.options;return!!(e||t||n)}constructor(e){super(e)}startObserver(){let e=this.state.element;if(!e||!this.isActive())return;this.unmount();let{once:t,...n}=this.state.options.inViewOptions||{};this.unmount=zp(e,(e,n)=>{if(Bp(this.state,n,`Enter`),!t)return e=>{Bp(this.state,n,`Leave`)}},n)}mount(){this.startObserver()}update(){let{props:e,prevProps:t}=this.state.visualElement;[`amount`,`margin`,`root`].some(Hp(e,t))&&this.startObserver()}};function Hp({inViewOptions:e={}},{inViewOptions:t={}}={}){return n=>e[n]!==t[n]}function Up(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Wp=class extends Ro{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.state.element.matches(`:focus-visible`)}catch{e=!0}e&&(this.state.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&=(this.state.setActive(`whileFocus`,!1),!1)}mount(){this.unmount=xd(Up(this.state.element,`focus`,()=>this.onFocus()),Up(this.state.element,`blur`,()=>this.onBlur()))}},Gp=(e,t)=>e.depth-t.depth,Kp=class{constructor(){this.children=[],this.isDirty=!1}add(e){$s(this.children,e),this.isDirty=!0}remove(e){ec(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Gp),this.isDirty=!1,this.children.forEach(e)}};function qp(e){return q(e)?e.get():e}var Jp=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],Yp=Jp.length,Xp=e=>typeof e==`string`?parseFloat(e):e,Zp=e=>typeof e==`number`||K.test(e);function Qp(e,t,n,r,i,a){i?(e.opacity=X(0,n.opacity??1,em(r)),e.opacityExit=X(t.opacity??1,0,tm(r))):a&&(e.opacity=X(t.opacity??1,n.opacity??1,r));for(let i=0;i<Yp;i++){let a=`border${Jp[i]}Radius`,o=$p(t,a),s=$p(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||Zp(o)===Zp(s)?(e[a]=Math.max(X(Xp(o),Xp(s),r),0),(Cs.test(s)||Cs.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=X(t.rotate||0,n.rotate||0,r))}function $p(e,t){return e[t]===void 0?e.borderRadius:e[t]}var em=nm(0,.5,lf),tm=nm(.5,.95,V);function nm(e,t,n){return r=>r<e?0:r>t?1:n(Ou(e,t,r))}function rm(e,t){e.min=t.min,e.max=t.max}function Q(e,t){rm(e.x,t.x),rm(e.y,t.y)}function im(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function am(e){return e===void 0||e===1}function om({scale:e,scaleX:t,scaleY:n}){return!am(e)||!am(t)||!am(n)}function sm(e){return om(e)||cm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function cm(e){return lm(e.x)||lm(e.y)}function lm(e){return e&&e!==`0%`}function um(e,t,n){return n+t*(e-n)}function dm(e,t,n,r,i){return i!==void 0&&(e=um(e,i,r)),um(e,n,r)+t}function fm(e,t=0,n=1,r,i){e.min=dm(e.min,t,n,r,i),e.max=dm(e.max,t,n,r,i)}function pm(e,{x:t,y:n}){fm(e.x,t.translate,t.scale,t.originPoint),fm(e.y,n.translate,n.scale,n.originPoint)}var mm=.999999999999,hm=1.0000000000001;function gm(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&ym(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,pm(e,o)),r&&sm(a.latestValues)&&ym(e,a.latestValues))}t.x<hm&&t.x>mm&&(t.x=1),t.y<hm&&t.y>mm&&(t.y=1)}function _m(e,t){e.min+=t,e.max+=t}function vm(e,t,n,r,i=.5){fm(e,t,n,X(e.min,e.max,i),r)}function ym(e,t){vm(e.x,t.x,t.scaleX,t.scale,t.originX),vm(e.y,t.y,t.scaleY,t.scale,t.originY)}var bm=1e-4,xm=1-bm,Sm=1+bm,Cm=.01,wm=0-Cm,Tm=0+Cm;function $(e){return e.max-e.min}function Em(e,t,n){return Math.abs(e-t)<=n}function Dm(e,t,n,r=.5){e.origin=r,e.originPoint=X(t.min,t.max,e.origin),e.scale=$(n)/$(t),e.translate=X(n.min,n.max,e.origin)-e.originPoint,(e.scale>=xm&&e.scale<=Sm||isNaN(e.scale))&&(e.scale=1),(e.translate>=wm&&e.translate<=Tm||isNaN(e.translate))&&(e.translate=0)}function Om(e,t,n,r){Dm(e.x,t.x,n.x,r?r.originX:void 0),Dm(e.y,t.y,n.y,r?r.originY:void 0)}function km(e,t,n){e.min=n.min+t.min,e.max=e.min+$(t)}function Am(e,t,n){km(e.x,t.x,n.x),km(e.y,t.y,n.y)}function jm(e,t,n){e.min=t.min-n.min,e.max=e.min+$(t)}function Mm(e,t,n){jm(e.x,t.x,n.x),jm(e.y,t.y,n.y)}function Nm(e,t,n,r,i){return e-=t,e=um(e,1/n,r),i!==void 0&&(e=um(e,1/i,r)),e}function Pm(e,t=0,n=1,r=.5,i,a=e,o=e){if(Cs.test(t)&&(t=parseFloat(t),t=X(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=X(a.min,a.max,r);e===a&&(s-=t),e.min=Nm(e.min,t,n,s,i),e.max=Nm(e.max,t,n,s,i)}function Fm(e,t,[n,r,i],a,o){Pm(e,t[n],t[r],t[i],t.scale,a,o)}var Im=[`x`,`scaleX`,`originX`],Lm=[`y`,`scaleY`,`originY`];function Rm(e,t,n,r){Fm(e.x,t,Im,n?n.x:void 0,r?r.x:void 0),Fm(e.y,t,Lm,n?n.y:void 0,r?r.y:void 0)}function zm(e){return e.translate===0&&e.scale===1}function Bm(e){return zm(e.x)&&zm(e.y)}function Vm(e,t){return e.min===t.min&&e.max===t.max}function Hm(e,t){return Vm(e.x,t.x)&&Vm(e.y,t.y)}function Um(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Wm(e,t){return Um(e.x,t.x)&&Um(e.y,t.y)}function Gm(e){return $(e.x)/$(e.y)}function Km(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var qm=class{constructor(){this.members=[]}add(e){$s(this.members,e),e.scheduleRender()}remove(e){if(ec(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e];if(t.isPresent!==!1){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function Jm(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}function Ym(e){return[e(`x`),e(`y`)]}var Xm={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Zm={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Qm=[``,`X`,`Y`,`Z`],$m=1e3,eh=0;function th(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function nh(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Qu(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,H,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&nh(r)}function rh({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=eh++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,mo.value&&(Zm.nodes=Zm.calculatedTargetDeltas=Zm.calculatedProjections=0),this.nodes.forEach(oh),this.nodes.forEach(ph),this.nodes.forEach(mh),this.nodes.forEach(sh),mo.addProjectionMetrics&&mo.addProjectionMetrics(Zm)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Kp)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new tc),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=np(t)&&!rp(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;H.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=wo(i,250),Xm.hasAnimatedSinceResize&&(Xm.hasAnimatedSinceResize=!1,this.nodes.forEach(fh)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||xh,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Wm(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...sd(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||fh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),yo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(hh),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&nh(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(lh);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(uh);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(dh),this.nodes.forEach(ih),this.nodes.forEach(ah)):this.nodes.forEach(uh),this.clearAllSnapshots();let e=W.now();U.delta=Ec(0,1e3/60,e-U.timestamp),U.timestamp=e,U.isProcessing=!0,bo.update.process(U),bo.preRender.process(U),bo.render.process(U),U.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ml.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ch),this.sharedNodes.forEach(gh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,H.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){H.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$(this.snapshot.measuredBox.x)&&!$(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=J(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Bm(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||sm(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Th(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return J();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Dh))){let{scroll:e}=this.root;e&&(_m(t.x,e.offset.x),_m(t.y,e.offset.y))}return t}removeElementScroll(e){let t=J();if(Q(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Q(t,e),_m(t.x,i.offset.x),_m(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=J();Q(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&ym(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),sm(r.latestValues)&&ym(n,r.latestValues)}return sm(this.latestValues)&&ym(n,this.latestValues),n}removeTransform(e){let t=J();Q(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!sm(n.latestValues))continue;om(n.latestValues)&&n.updateSnapshot();let r=J();Q(r,n.measurePageBox()),Rm(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return sm(this.latestValues)&&Rm(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==U.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!(!this.layout||!(r||i))){if(this.resolvedRelativeTargetAt=U.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&this.animationProgress!==1?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),Mm(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Q(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=J(),this.targetWithTransforms=J()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Am(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Q(this.target,this.layout.layoutBox),pm(this.target,this.targetDelta)):Q(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&this.animationProgress!==1?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),Mm(this.relativeTargetOrigin,this.target,e.target),Q(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}mo.value&&Zm.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||om(this.parent.latestValues)||cm(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===U.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Q(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;gm(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=J());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(im(this.prevProjectionDelta.x,this.projectionDelta.x),im(this.prevProjectionDelta.y,this.projectionDelta.y)),Om(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Km(this.projectionDelta.x,this.prevProjectionDelta.x)||!Km(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),mo.value&&Zm.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if((t=this.options.visualElement)==null||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zs(),this.projectionDelta=zs(),this.projectionDeltaWithTransform=zs()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=zs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=J(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(bh));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;_h(a.x,e.x,n),_h(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mm(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),yh(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&Hm(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=J(),Q(d,this.relativeTarget)),s&&(this.animationValues=i,Qp(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){var t,n;this.notifyListeners(`animationStart`),(t=this.currentAnimation)==null||t.stop(),(n=this.resumingFrom?.currentAnimation)==null||n.stop(),this.pendingAnimation&&=(yo(this.pendingAnimation),void 0),this.pendingAnimation=H.update(()=>{Xm.hasAnimatedSinceResize=!0,ld.layout++,this.motionValue||=sc(0),this.currentAnimation=op(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{ld.layout--},onComplete:()=>{ld.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta($m),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Eh(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||J();let t=$(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=$(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Q(t,n),ym(t,i),Om(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new qm),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&th(`z`,e,r,this.animationValues);for(let t=0;t<Qm.length;t++)th(`rotate${Qm[t]}`,e,r,this.animationValues),th(`skew${Qm[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=qp(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=qp(t?.pointerEvents)||``),this.hasProjected&&!sm(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Jm(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit,Ao){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Ao[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?qp(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(lh),this.root.sharedNodes.clear()}}}function ih(e){e.updateLayout()}function ah(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?Ym(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=$(r);r.min=n[e].min,r.max=r.min+i}):Eh(i,t.layoutBox,n)&&Ym(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=$(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=zs();Om(o,n,t.layoutBox);let s=zs();a?Om(s,e.applyTransform(r,!0),t.measuredBox):Om(s,n,t.layoutBox);let c=!Bm(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=J();Mm(o,t.layoutBox,i.layoutBox);let s=J();Mm(s,n,a.layoutBox),Wm(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function oh(e){mo.value&&Zm.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function sh(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ch(e){e.clearSnapshot()}function lh(e){e.clearMeasurements()}function uh(e){e.isLayoutDirty=!1}function dh(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function fh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ph(e){e.resolveTargetDelta()}function mh(e){e.calcProjection()}function hh(e){e.resetSkewAndRotation()}function gh(e){e.removeLeadSnapshot()}function _h(e,t,n){e.translate=X(t.translate,0,n),e.scale=X(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vh(e,t,n,r){e.min=X(t.min,n.min,r),e.max=X(t.max,n.max,r)}function yh(e,t,n,r){vh(e.x,t.x,n.x,r),vh(e.y,t.y,n.y,r)}function bh(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var xh={duration:.45,ease:[.4,0,.1,1]},Sh=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ch=Sh(`applewebkit/`)&&!Sh(`chrome/`)?Math.round:V;function wh(e){e.min=Ch(e.min),e.max=Ch(e.max)}function Th(e){wh(e.x),wh(e.y)}function Eh(e,t,n){return e===`position`||e===`preserve-aspect`&&!Em(Gm(t),Gm(n),.2)}function Dh(e){return e!==e.root&&e.scroll?.wasRoot}function Oh(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var kh=rh({attachResizeListener:(e,t)=>Oh(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ah={current:void 0},jh=rh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ah.current){let e=new kh({});e.mount(window),e.setOptions({layoutScroll:!0}),Ah.current=e}return Ah.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`});function Mh(e){if(e)return e.options.allowProjection===!1?Mh(e.parent):e.projection}function Nh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Ph={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(K.test(e))e=parseFloat(e);else return e;return`${Nh(e,t.target.x)}% ${Nh(e,t.target.y)}%`}},Fh={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=gl.parse(e);if(i.length>5)return r;let a=gl.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=X(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Ih={borderRadius:{...Ph,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Ph,borderTopRightRadius:Ph,borderBottomLeftRadius:Ph,borderBottomRightRadius:Ph,boxShadow:Fh};function Lh(e){return typeof e==`object`&&!!e&&`nodeType`in e}var Rh=class extends Ro{constructor(e){super(e),jo(Ih)}initProjection(){let e=this.state.options;this.state.visualElement.projection=new jh(this.state.visualElement.latestValues,e[`data-framer-portal-id`]?void 0:Mh(this.state.visualElement.parent)),this.state.visualElement.projection.isPresent=!0,this.setOptions()}beforeMount(){this.initProjection()}setOptions(){let e=this.state.options;this.state.visualElement.projection.setOptions({layout:e.layout,layoutId:e.layoutId,alwaysMeasureLayout:!!e.drag||e.dragConstraints&&Lh(e.dragConstraints),visualElement:this.state.visualElement,animationType:typeof e.layout==`string`?e.layout:`both`,layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{if(!this.state.visualElement.projection?.isPresent){let e=Zo.get(this.state.element);this.state.isSafeToRemove=!0,e&&e({detail:{isExit:!0}},!0)}}})}update(){this.setOptions()}mount(){var e;(e=this.state.visualElement.projection)==null||e.mount(this.state.element)}};function zh(e){return e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1}function Bh(e,t=`page`){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}function Vh(e){return t=>zh(t)&&e(t,Bh(t))}function Hh(e,t,n,r){return Up(e,t,Vh(n),r)}function Uh(e){let t=null;return()=>t===null?(t=e,()=>{t=null}):!1}var Wh=Uh(`dragHorizontal`),Gh=Uh(`dragVertical`);function Kh(e){let t=!1;if(e===`y`)t=Gh();else if(e===`x`)t=Wh();else{let e=Wh(),n=Gh();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function qh(e){return e.max-e.min}function Jh(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?X(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?X(n,e,r.max):Math.min(e,n)),e}var Yh=.35;function Xh(e,{top:t,left:n,bottom:r,right:i}){return{x:Zh(e.x,n,i),y:Zh(e.y,t,r)}}function Zh(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Qh(e=Yh){return e===!1?e=0:e===!0&&(e=Yh),{x:$h(e,`left`,`right`),y:$h(e,`top`,`bottom`)}}function $h(e,t,n){return{min:eg(e,t),max:eg(e,n)}}function eg(e,t){return typeof e==`number`?e:e[t]||0}function tg(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}function ng(e,t){return{x:rg(e.x,t.x),y:rg(e.y,t.y)}}function rg(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ig(e,t){let n=.5,r=qh(e),i=qh(t);return i>r?n=Ou(t.min,t.max-r,e.min):r>i&&(n=Ou(e.min,e.max-i,t.min)),Ec(0,1,n)}var ag=(e,t)=>Math.abs(e-t);function og(e,t){let n=ag(e.x,t.x),r=ag(e.y,t.y);return Math.sqrt(n**2+r**2)}var sg=class{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=ug(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=og(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=U;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=cg(t,this.transformPagePoint),H.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=ug(e.type===`pointercancel`?this.lastMoveEventInfo:cg(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!zh(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let a=cg(Bh(e),this.transformPagePoint),{point:o}=a,{timestamp:s}=U;this.history=[{...o,timestamp:s}];let{onSessionStart:c}=t;c&&c(e,ug(a,this.history)),this.removeListeners=xd(Hh(this.contextWindow,`pointermove`,this.handlePointerMove),Hh(this.contextWindow,`pointerup`,this.handlePointerUp),Hh(this.contextWindow,`pointercancel`,this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),yo(this.updatePoint)}};function cg(e,t){return t?{point:t(e.point)}:e}function lg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ug({point:e},t){return{point:e,delta:lg(e,fg(t)),offset:lg(e,dg(t)),velocity:pg(t,.1)}}function dg(e){return e[0]}function fg(e){return e[e.length-1]}function pg(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=fg(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>G(t)));)n--;if(!r)return{x:0,y:0};let a=Co(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var mg=()=>({min:0,max:0});function hg(){return{x:mg(),y:mg()}}function gg(e){return[e(`x`),e(`y`)]}function _g(e){return!!(q(e)&&e.add)}function vg(e,t){let n=e.getValue(`willChange`);if(_g(n))return n.add(t)}function yg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function bg(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function xg({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Sg(e,t){e.min+=t,e.max+=t}function Cg(e,t){return yg(bg(e.getBoundingClientRect(),t))}function wg(e,t,n){let r=Cg(e,n),{scroll:i}=t;return i&&(Sg(r.x,i.offset.x),Sg(r.y,i.offset.y)),r}function Tg(e){return!Zo.has(e.current)}function Eg({current:e}){return e?e.ownerDocument.defaultView:null}var Dg=new WeakMap,Og=class{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=hg(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){if(!Tg(this.visualElement))return;let n=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Bh(e,`page`).point)},r=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Kh(n),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),gg(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Cs.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=qh(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&H.postRender(()=>i(e,t)),vg(this.visualElement,`transform`),this.visualElement.state.setActive(`whileDrag`,!0))},i=(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Ag(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},a=(e,t)=>this.stop(e,t),o=()=>gg(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:s}=this.getProps();this.panSession=new sg(e,{onSessionStart:n,onStart:r,onMove:i,onSessionEnd:a,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:Eg(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&H.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.visualElement.state.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!kg(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Jh(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Lh(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Xh(n.layoutBox,e):this.constraints=!1,this.elastic=Qh(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&gg(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=tg(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Lh(e))return!1;let n=e;Bo(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=wg(n,r.root,this.visualElement.getTransformPagePoint()),a=ng(r.layout.layoutBox,i);if(t){let e=t(xg(a));this.hasMutatedConstraints=!!e,e&&(a=yg(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=gg(o=>{if(!kg(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return vg(this.visualElement,e),n.start(Xf(e,n,0,t,this.visualElement,!1))}stopAnimation(){Tg(this.visualElement)&&gg(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){gg(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){gg(t=>{let{drag:n}=this.getProps();if(!kg(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-X(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Lh(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};gg(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=ig({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),gg(t=>{if(!kg(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(X(i,a,r[t]))})}addListeners(){if(!this.visualElement.current)return;Dg.set(this.visualElement,this);let e=this.visualElement.current,t=Hh(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();Lh(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),H.read(n);let a=Up(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(gg(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Yh,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function kg(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Ag(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var jg=class extends Ro{constructor(e){super(e),this.removeGroupControls=V,this.removeListeners=V,this.controls=new Og(e.visualElement)}mount(){let{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||V}unmount(){this.removeGroupControls(),this.removeListeners()}},Mg=class extends Ro{constructor(e){super(e),jo(Ih)}beforeUpdate(){this.state.willUpdate(`beforeUpdate`)}update(){this.didUpdate()}didUpdate(){var e;(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&((e=this.state.visualElement.projection?.root)==null||e.didUpdate())}mount(){var e;let t=this.state.options,n=this.state.options.layoutGroup;if(t.layout||t.layoutId){let t=this.state.visualElement.projection;t&&(t.promote(),(e=n?.group)==null||e.add(t)),Xm.hasEverUpdated=!0}this.didUpdate()}beforeUnmount(){let e=this.state.visualElement.projection;e&&(this.state.willUpdate(`beforeUnmount`),this.state.options.layoutId?(e.isPresent=!1,e.relegate()):this.state.options.layout&&(this.state.isSafeToRemove=!0))}unmount(){let e=this.state.options.layoutGroup,t=this.state.visualElement.projection;t&&(e?.group&&(this.state.options.layout||this.state.options.layoutId)&&e.group.remove(t),this.didUpdate())}};function Ng(e){return(t,n)=>{e&&H.postRender(()=>e(t,n))}}var Pg=[gp,Np,Lp,Vp,Wp,Rh,class extends Ro{constructor(){super(...arguments),this.removePointerDownListener=V}onPointerDown(e){this.session=new sg(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:Eg(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:Ng((e,t)=>{let{onPanSessionStart:n}=this.state.options;n&&n(e,t)}),onStart:Ng((e,t)=>{let{onPanStart:n}=this.state.options;n&&n(e,t)}),onMove:(e,t)=>{let{onPan:n}=this.state.options;n&&n(e,t)},onEnd:(e,t)=>{let{onPanEnd:n}=this.state.options;delete this.session,n&&H.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=Hh(this.state.element,`pointerdown`,this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},jg,Mg],Fg={reducedMotion:`never`,transition:void 0,nonce:void 0},[Ig,Lg]=Mo(`MotionConfig`);function Rg(){return Ig((0,t.computed)(()=>Fg))}function zg(e){let t=new WeakMap,n=Rg();function r(r){if(e.mode!==`popLayout`)return;let i=r.element,a=i.offsetParent,o=a instanceof HTMLElement&&a.offsetWidth||0,s={height:i.offsetHeight||0,width:i.offsetWidth||0,top:i.offsetTop,left:i.offsetLeft,right:0};s.right=o-s.width-s.left;let c=e.anchorX===`left`?`left: ${s.left}`:`right: ${s.right}`;r.element.dataset.motionPopId=r.id;let l=document.createElement(`style`);n.value.nonce&&(l.nonce=n.value.nonce),t.set(r,l),document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./chunk-FeXHwk1_.cjs`);let t=require(`vue`),n=require(`axios`);n=e.r(n);let r=require(`naive-ui`),i=require(`vue-router`),a=require(`pinia`),o=require(`vant`);var s=e.t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),c=e.r(s(),1);function l(e,n){return(0,t.getCurrentScope)()?((0,t.onScopeDispose)(e,n),!0):!1}var u=new WeakMap,d=(...e)=>{let n=e[0],r=(0,t.getCurrentInstance)()?.proxy??(0,t.getCurrentScope)();if(r==null&&!(0,t.hasInjectionContext)())throw Error(`injectLocal must be called in setup`);return r&&u.has(r)&&n in u.get(r)?u.get(r)[n]:(0,t.inject)(...e)},f=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var p=e=>e!==void 0,m=e=>e!=null,h=Object.prototype.toString,g=e=>h.call(e)===`[object Object]`,_=()=>{};function v(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}function y(e,n={}){let r,i,a=_,o=e=>{clearTimeout(e),a(),a=_},s;return c=>{let l=(0,t.toValue)(e),u=(0,t.toValue)(n.maxWait);return r&&o(r),l<=0||u!==void 0&&u<=0?(i&&=(o(i),void 0),Promise.resolve(c())):new Promise((e,t)=>{a=n.rejectOnCancel?t:e,s=c,u&&!i&&(i=setTimeout(()=>{r&&o(r),i=void 0,e(s())},u)),r=setTimeout(()=>{i&&o(i),i=void 0,e(c())},l)})}}function b(...e){let n=0,r,i=!0,a=_,o,s,c,l,u;!(0,t.isRef)(e[0])&&typeof e[0]==`object`?{delay:s,trailing:c=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[s,c=!0,l=!0,u=!1]=e;let d=()=>{r&&(clearTimeout(r),r=void 0,a(),a=_)};return e=>{let f=(0,t.toValue)(s),p=Date.now()-n,m=()=>o=e();return d(),f<=0?(n=Date.now(),m()):(p>f?(n=Date.now(),(l||!i)&&m()):c&&(o=new Promise((e,t)=>{a=u?t:e,r=setTimeout(()=>{n=Date.now(),i=!0,e(m()),d()},Math.max(0,f-p))})),!l&&!r&&(r=setTimeout(()=>i=!0,f)),i=!1,o)}}function x(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(()=>i(n),e):setTimeout(r,e)})}function S(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function C(e){return Array.isArray(e)?e:[e]}function w(e){return e||(0,t.getCurrentInstance)()}function T(e,t=200,n={}){return v(y(t,n),e)}function E(e,t=200,n=!1,r=!0,i=!1){return v(b(t,n,r,i),e)}function D(e,n=!0,r){w(r)?(0,t.onMounted)(e,r):n?e():(0,t.nextTick)(e)}function O(e,n=!1){function r(r,{flush:i=`sync`,deep:a=!1,timeout:o,throwOnTimeout:s}={}){let c=null,l=[new Promise(o=>{c=(0,t.watch)(e,e=>{r(e)!==n&&(c?c():(0,t.nextTick)(()=>c?.()),o(e))},{flush:i,deep:a,immediate:!0})})];return o!=null&&l.push(x(o,s).then(()=>(0,t.toValue)(e)).finally(()=>c?.())),Promise.race(l)}function i(i,a){if(!(0,t.isRef)(i))return r(e=>e===i,a);let{flush:o=`sync`,deep:s=!1,timeout:c,throwOnTimeout:l}=a??{},u=null,d=[new Promise(r=>{u=(0,t.watch)([e,i],([e,i])=>{n!==(e===i)&&(u?u():(0,t.nextTick)(()=>u?.()),r(e))},{flush:o,deep:s,immediate:!0})})];return c!=null&&d.push(x(c,l).then(()=>(0,t.toValue)(e)).finally(()=>(u?.(),(0,t.toValue)(e)))),Promise.race(d)}function a(e){return r(e=>!!e,e)}function o(e){return i(null,e)}function s(e){return i(void 0,e)}function c(e){return r(Number.isNaN,e)}function l(e,n){return r(n=>{let r=Array.from(n);return r.includes(e)||r.includes((0,t.toValue)(e))},n)}function u(e){return d(1,e)}function d(e=1,t){let n=-1;return r(()=>(n+=1,n>=e),t)}return Array.isArray((0,t.toValue)(e))?{toMatch:r,toContains:l,changed:u,changedTimes:d,get not(){return O(e,!n)}}:{toMatch:r,toBe:i,toBeTruthy:a,toBeNull:o,toBeNaN:c,toBeUndefined:s,changed:u,changedTimes:d,get not(){return O(e,!n)}}}function k(e){return O(e)}function ee(e,n,r){return(0,t.watch)(e,n,{...r,immediate:!0})}function te(e,n,r){return(0,t.watch)(e,n,{...r,once:!0})}function ne(e,n,r){let i;i=(0,t.isRef)(r)?{evaluating:r}:r||{};let{lazy:a=!1,flush:o=`sync`,evaluating:s=void 0,shallow:c=!0,onError:l=globalThis.reportError??_}=i,u=(0,t.shallowRef)(!a),d=c?(0,t.shallowRef)(n):(0,t.ref)(n),f=0;return(0,t.watchEffect)(async t=>{if(!u.value)return;f++;let n=f,r=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{let i=await e(e=>{t(()=>{s&&(s.value=!1),r||e()})});n===f&&(d.value=i)}catch(e){l(e)}finally{s&&n===f&&(s.value=!1),r=!0}},{flush:o}),a?(0,t.computed)(()=>(u.value=!0,d.value)):d}var re=f?window:void 0;f&&window.document,f&&window.navigator,f&&window.location;function ie(e){let n=(0,t.toValue)(e);return n?.$el??n}function ae(...e){let n=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),r=(0,t.computed)(()=>{let n=C((0,t.toValue)(e[0])).filter(e=>e!=null);return n.every(e=>typeof e!=`string`)?n:void 0});return ee(()=>[r.value?.map(e=>ie(e))??[re].filter(e=>e!=null),C((0,t.toValue)(r.value?e[1]:e[0])),C((0,t.unref)(r.value?e[2]:e[1])),(0,t.toValue)(r.value?e[3]:e[2])],([e,t,r,i],a,o)=>{if(!e?.length||!t?.length||!r?.length)return;let s=g(i)?{...i}:i,c=e.flatMap(e=>t.flatMap(t=>r.map(r=>n(e,t,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function oe(){let e=(0,t.shallowRef)(!1),n=(0,t.getCurrentInstance)();return n&&(0,t.onMounted)(()=>{e.value=!0},n),e}function se(e){let n=oe();return(0,t.computed)(()=>(n.value,!!e()))}function ce(e,n,r={}){let{window:i=re,...a}=r,o,s=se(()=>i&&`MutationObserver`in i),c=()=>{o&&=(o.disconnect(),void 0)},u=(0,t.watch)((0,t.computed)(()=>{let n=C((0,t.toValue)(e)).map(ie).filter(m);return new Set(n)}),e=>{c(),s.value&&e.size&&(o=new MutationObserver(n),e.forEach(e=>o.observe(e,a)))},{immediate:!0,flush:`post`}),d=()=>o?.takeRecords(),f=()=>{u(),c()};return l(f),{isSupported:s,stop:f,takeRecords:d}}var le=500,ue=10;function de(e,n,r){var i,a;let o=(0,t.computed)(()=>ie(e)),s,c,l,u=!1;function d(){s&&=(clearTimeout(s),void 0),c=void 0,l=void 0,u=!1}function f(e){let t=r?.delay;return typeof t==`function`?t(e):t??le}function p(e){var t,n,i;let[a,s,f]=[l,c,u];if(d(),!r?.onMouseUp||!s||!a||!(r==null||(t=r.modifiers)==null)&&t.self&&e.target!==o.value)return;!(r==null||(n=r.modifiers)==null)&&n.prevent&&e.preventDefault(),!(r==null||(i=r.modifiers)==null)&&i.stop&&e.stopPropagation();let p=e.x-s.x,m=e.y-s.y,h=Math.sqrt(p*p+m*m);r.onMouseUp(e.timeStamp-a,h,f)}function m(e){var t,i,a;!(r==null||(t=r.modifiers)==null)&&t.self&&e.target!==o.value||(d(),!(r==null||(i=r.modifiers)==null)&&i.prevent&&e.preventDefault(),!(r==null||(a=r.modifiers)==null)&&a.stop&&e.stopPropagation(),c={x:e.x,y:e.y},l=e.timeStamp,s=setTimeout(()=>{u=!0,n(e)},f(e)))}function h(e){var t,n,i;if(!(r==null||(t=r.modifiers)==null)&&t.self&&e.target!==o.value||!c||r?.distanceThreshold===!1)return;!(r==null||(n=r.modifiers)==null)&&n.prevent&&e.preventDefault(),!(r==null||(i=r.modifiers)==null)&&i.stop&&e.stopPropagation();let a=e.x-c.x,s=e.y-c.y;Math.sqrt(a*a+s*s)>=(r?.distanceThreshold??ue)&&d()}let g={capture:r==null||(i=r.modifiers)==null?void 0:i.capture,once:r==null||(a=r.modifiers)==null?void 0:a.once},_=[ae(o,`pointerdown`,m,g),ae(o,`pointermove`,h,g),ae(o,[`pointerup`,`pointerleave`],p,g)];return()=>_.forEach(e=>e())}var fe=Symbol(`vueuse-ssr-width`);function pe(){let e=(0,t.hasInjectionContext)()?d(fe,null):null;return typeof e==`number`?e:void 0}function me(e,n={}){let{window:r=re,ssrWidth:i=pe()}=n,a=se(()=>r&&`matchMedia`in r&&typeof r.matchMedia==`function`),o=(0,t.shallowRef)(typeof i==`number`),s=(0,t.shallowRef)(),c=(0,t.shallowRef)(!1);return(0,t.watchEffect)(()=>{if(o.value){o.value=!a.value,c.value=(0,t.toValue)(e).split(`,`).some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),r=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||r);return n&&a&&(a=i>=S(n[1])),r&&a&&(a=i<=S(r[1])),t?!a:a});return}a.value&&(s.value=r.matchMedia((0,t.toValue)(e)),c.value=s.value.matches)}),ae(s,`change`,e=>{c.value=e.matches},{passive:!0}),(0,t.computed)(()=>c.value)}function he(e){return me(`(prefers-color-scheme: dark)`,e)}function ge(e,n,r={}){let{window:i=re,...a}=r,o,s=se(()=>i&&`ResizeObserver`in i),c=()=>{o&&=(o.disconnect(),void 0)},u=(0,t.watch)((0,t.computed)(()=>{let n=(0,t.toValue)(e);return Array.isArray(n)?n.map(e=>ie(e)):[ie(n)]}),e=>{if(c(),s.value&&i){o=new ResizeObserver(n);for(let t of e)t&&o.observe(t,a)}},{immediate:!0,flush:`post`}),d=()=>{c(),u()};return l(d),{isSupported:s,stop:d}}var _e=1;function ve(e,n={}){let{throttle:r=0,idle:i=200,onStop:a=_,onScroll:o=_,offset:s={left:0,right:0,top:0,bottom:0},observe:c={mutation:!1},eventListenerOptions:l={capture:!1,passive:!0},behavior:u=`auto`,window:d=re,onError:f=e=>{console.error(e)}}=n,p=typeof c==`boolean`?{mutation:c}:c,m=(0,t.shallowRef)(0),h=(0,t.shallowRef)(0),g=(0,t.computed)({get(){return m.value},set(e){y(e,void 0)}}),v=(0,t.computed)({get(){return h.value},set(e){y(void 0,e)}});function y(n,r){var i,a;if(!d)return;let o=(0,t.toValue)(e);if(!o)return;(i=o instanceof Document?d.document.body:o)==null||i.scrollTo({top:(0,t.toValue)(r)??v.value,left:(0,t.toValue)(n)??g.value,behavior:(0,t.toValue)(u)});let s=(o==null||(a=o.document)==null?void 0:a.documentElement)||o?.documentElement||o;g!=null&&(m.value=s.scrollLeft),v!=null&&(h.value=s.scrollTop)}let b=(0,t.shallowRef)(!1),x=(0,t.reactive)({left:!0,right:!1,top:!0,bottom:!1}),S=(0,t.reactive)({left:!1,right:!1,top:!1,bottom:!1}),C=e=>{b.value&&(b.value=!1,S.left=!1,S.right=!1,S.top=!1,S.bottom=!1,a(e))},w=T(C,r+i),O=e=>{var t;if(!d)return;let n=(e==null||(t=e.document)==null?void 0:t.documentElement)||e?.documentElement||ie(e),{display:r,flexDirection:i,direction:a}=d.getComputedStyle(n),o=a===`rtl`?-1:1,c=n.scrollLeft;S.left=c<m.value,S.right=c>m.value;let l=Math.abs(c*o)<=(s.left||0),u=Math.abs(c*o)+n.clientWidth>=n.scrollWidth-(s.right||0)-_e;r===`flex`&&i===`row-reverse`?(x.left=u,x.right=l):(x.left=l,x.right=u),m.value=c;let f=n.scrollTop;e===d.document&&!f&&(f=d.document.body.scrollTop),S.top=f<h.value,S.bottom=f>h.value;let p=Math.abs(f)<=(s.top||0),g=Math.abs(f)+n.clientHeight>=n.scrollHeight-(s.bottom||0)-_e;r===`flex`&&i===`column-reverse`?(x.top=g,x.bottom=p):(x.top=p,x.bottom=g),h.value=f},k=e=>{d&&(O(e.target.documentElement??e.target),b.value=!0,w(e),o(e))};return ae(e,`scroll`,r?E(k,r,!0,!1):k,l),D(()=>{try{let n=(0,t.toValue)(e);if(!n)return;O(n)}catch(e){f(e)}}),p?.mutation&&e!=null&&e!==d&&e!==document&&ce(e,()=>{let n=(0,t.toValue)(e);n&&O(n)},{attributes:!0,childList:!0,subtree:!0}),ae(e,`scrollend`,C,l),{x:g,y:v,isScrolling:b,arrivedState:x,directions:S,measure(){let n=(0,t.toValue)(e);d&&n&&O(n)}}}function ye(e={}){let{window:n=re,initialWidth:r=1/0,initialHeight:i=1/0,listenOrientation:a=!0,includeScrollbar:o=!0,type:s=`inner`}=e,c=(0,t.shallowRef)(r),l=(0,t.shallowRef)(i),u=()=>{if(n)if(s===`outer`)c.value=n.outerWidth,l.value=n.outerHeight;else if(s===`visual`&&n.visualViewport){let{width:e,height:t,scale:r}=n.visualViewport;c.value=Math.round(e*r),l.value=Math.round(t*r)}else o?(c.value=n.innerWidth,l.value=n.innerHeight):(c.value=n.document.documentElement.clientWidth,l.value=n.document.documentElement.clientHeight)};u(),D(u);let d={passive:!0};return ae(`resize`,u,d),n&&s===`visual`&&n.visualViewport&&ae(n.visualViewport,`resize`,u,d),a&&(0,t.watch)(me(`(orientation: portrait)`),()=>u()),{width:c,height:l}}function be(e){return e[e.length-1]}function xe(e,t){let n=e.slice(),r=[],i=0;for(let a=0;a<e.length;a++){if(t(e[a],a,n)){r.push(e[a]);continue}if(!Object.hasOwn(e,a)){delete e[i++];continue}e[i++]=e[a]}return e.length=i,r}function Se(e,t){if(t??(t=e,e=0),e>=t)throw Error(`Invalid input: The maximum value must be greater than the minimum value.`);return Math.random()*(t-e)+e}function Ce(e,t){return Math.floor(Se(e,t))}var we=class extends Error{constructor(e=`The operation was aborted`){super(e),this.name=`AbortError`}};function Te(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function Ee(e){return e}function De(e,{signal:t}={}){return new Promise((n,r)=>{let i=()=>{r(new we)},a=()=>{clearTimeout(o),i()};if(t?.aborted)return i();let o=setTimeout(()=>{t?.removeEventListener(`abort`,a),n()},e);t?.addEventListener(`abort`,a,{once:!0})})}function Oe(e,t,n){return n==null?Math.min(e,t):Math.min(Math.max(e,t),n)}function ke(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function Ae(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function je(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Me(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Ne=`[object RegExp]`,Pe=`[object String]`,Fe=`[object Number]`,Ie=`[object Boolean]`,Le=`[object Arguments]`,Re=`[object Symbol]`,ze=`[object Date]`,Be=`[object Map]`,Ve=`[object Set]`,He=`[object Array]`,Ue=`[object ArrayBuffer]`,We=`[object Object]`,Ge=`[object DataView]`,Ke=`[object Uint8Array]`,qe=`[object Uint8ClampedArray]`,Je=`[object Uint16Array]`,Ye=`[object Uint32Array]`,Xe=`[object Int8Array]`,Ze=`[object Int16Array]`,Qe=`[object Int32Array]`,$e=`[object Float32Array]`,et=`[object Float64Array]`;function tt(e,t){return nt(e,void 0,e,new Map,t)}function nt(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(ke(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=nt(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,nt(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(nt(a,void 0,n,r,i));return t}if(typeof Buffer<`u`&&Buffer.isBuffer(e))return e.subarray();if(Ae(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=nt(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),rt(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),rt(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),rt(t,e,n,r,i),t}if(e instanceof Error){let t=new e.constructor;return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,rt(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),rt(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),rt(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),rt(t,e,n,r,i),t}if(typeof e==`object`&&it(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),rt(t,e,n,r,i),t}return e}function rt(e,t,n=e,r,i){let a=[...Object.keys(t),...je(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=nt(t[s],s,n,r,i))}}function it(e){switch(Me(e)){case Le:case He:case Ue:case Ge:case Ie:case ze:case $e:case et:case Xe:case Ze:case Qe:case Be:case Fe:case We:case Ne:case Ve:case Pe:case Re:case Ke:case qe:case Je:case Ye:return!0;default:return!1}}function at(e){return nt(e,void 0,e,new Map,void 0)}function ot(e){return e===`__proto__`}function st(e){return Array.isArray(e)}function ct(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function lt(e){return e instanceof Error}function ut(e){return Number.isSafeInteger(e)&&e>=0}function dt(e){return typeof e==`string`}function ft(e){return e===void 0}function pt(e){return Array.isArray(e)?e:Array.from(e)}function mt(e){return e!=null&&typeof e!=`function`&&ut(e.length)}function ht(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}function gt(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function _t(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(_t).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function vt(e){if(Array.isArray(e))return e.map(gt);if(typeof e==`symbol`)return[e];e=_t(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&(t.push(``),r++);r<n;){let s=e[r];a?s===`\\`&&r+1<n?(r++,i+=e[r]):s===a?a=``:i+=s:o?s===`"`||s===`'`?a=s:s===`]`?(o=!1,t.push(i),i=``):i+=s:s===`[`?(o=!0,i&&=(t.push(i),``)):s===`.`?i&&=(t.push(i),``):i+=s,r++}return i&&t.push(i),t}function yt(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(ot(t))return n;let r=e[t];return r===void 0?ht(t)?yt(e,vt(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=gt(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return bt(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),ot(t))return n;let r=e[t];return r===void 0?n:r}}}function bt(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||ot(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}function xt(e){return function(t){return yt(t,e)}}function St(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function Ct(e,t,n){return typeof n==`function`?wt(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?wt(t,r,e,s):!!c},new Map):kt(e,t)}function wt(e,t,n,r){if(t===e)return!0;switch(typeof t){case`object`:return Tt(e,t,n,r);case`function`:return Object.keys(t).length>0?wt(e,{...t},n,r):ct(e,t);default:return St(e)?typeof t==`string`?t===``:!0:ct(e,t)}}function Tt(e,t,n,r){if(t==null)return!0;if(Array.isArray(t))return Dt(e,t,n,r);if(t instanceof Map)return Et(e,t,n,r);if(t instanceof Set)return Ot(e,t,n,r);let i=Object.keys(t);if(e==null)return i.length===0;if(i.length===0)return!0;if(r&&r.has(t))return r.get(t)===e;r&&r.set(t,e);try{for(let a=0;a<i.length;a++){let o=i[a];if(!ke(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r&&r.delete(t)}}function Et(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function Dt(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function Ot(e,t,n,r){return t.size===0?!0:e instanceof Set?Dt([...e],[...t],n,r):!1}function kt(e,t){return Ct(e,t,()=>void 0)}function At(e){return e=at(e),t=>kt(t,e)}function jt(e,t){return tt(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`)switch(Object.prototype.toString.call(e)){case Fe:case Pe:case Ie:{let t=new e.constructor(e?.valueOf());return rt(t,e),t}case Le:{let t={};return rt(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}})}function Mt(e){return jt(e)}var Nt=/^(?:0|[1-9]\d*)$/;function Pt(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return Nt.test(e)}}function Ft(e){return typeof e==`object`&&!!e&&Me(e)===`[object Arguments]`}function It(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&ht(t)&&e?.[t]==null?vt(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=n[e];if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||Ft(r))&&Pt(t)&&t<r.length))return!1;r=r[t]}return!0}function Lt(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=gt(e);break}return t=Mt(t),function(n){let r=yt(n,e);return r===void 0?It(n,e):t===void 0?r===void 0:kt(r,t)}}function Rt(e){if(e==null)return Ee;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?Lt(e[0],e[1]):At(e);case`string`:case`symbol`:case`number`:return xt(e)}}function zt(e){if(mt(e))return be(pt(e))}function Bt(e){return typeof e==`string`||e instanceof String}function Vt(e,t=Ee){return xe(e,Rt(t))}function Ht(e,t,n){return Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Oe(e,t,n)}function Ut(e){return typeof e==`number`||e instanceof Number}function Wt(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=Te(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?(s=e.apply(this,t),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function Gt(e,t,n=0){if(t=Number(t),Object.is(t,-0)&&(t=`-0`),n=Math.min(Number.parseInt(n,10),292),n){let[r,i=0]=t.toString().split(`e`),a=Math[e](Number(`${r}e${Number(i)+n}`));Object.is(a,-0)&&(a=`-0`);let[o,s=0]=a.toString().split(`e`);return Number(`${o}e${Number(s)-n}`)}return Math[e](Number(t))}function Kt(e,t=0){return Gt(`ceil`,e,t)}function qt(...e){let t=0,n=1,r=!1;switch(e.length){case 1:typeof e[0]==`boolean`?r=e[0]:n=e[0];break;case 2:typeof e[1]==`boolean`?(n=e[0],r=e[1]):(t=e[0],n=e[1]);case 3:typeof e[2]==`object`&&e[2]!=null&&e[2][e[1]]===e[0]?(t=0,n=e[0],r=!1):(t=e[0],n=e[1],r=e[2])}return typeof t!=`number`&&(t=Number(t)),typeof n!=`number`&&(t=Number(n)),t||=0,n||=0,t>n&&([t,n]=[n,t]),t=Ht(t,-(2**53-1),2**53-1),n=Ht(n,-(2**53-1),2**53-1),t===n?t:r?Se(t,n+1):Ce(t,n+1)}function Jt(...e){}function Yt(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}function Xt(e){return Ae(e)}function Zt(e){if(!mt(e))return{};let t={};for(let n=0;n<e.length;n++){let[r,i]=e[n];t[r]=i}return t}function Qt(e){return typeof e==`function`}function $t(e){if(e==null)return!0;if(mt(e))return typeof e.splice!=`function`&&typeof e!=`string`&&(typeof Buffer>`u`||!Buffer.isBuffer(e))&&!Xt(e)&&!Ft(e)?!1:e.length===0;if(typeof e==`object`){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return Yt(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}function en(e){return Me(e)===`[object Error]`}function tn(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get(`*`))&&r.slice().map(function(e){e(t,n)})}}}const A=(e,t)=>(window.$api.__core_lib__??={})[t]??=e;var nn=e.n({SharedFunction:()=>an,eventBus:()=>rn});const rn=A(tn(),`utils/eventBus`);var an=class{static sharedFunctions=A(new Map,`utils/SharedFunction/sharedFunctions`);static define(e,t,n){return console.log(`[SharedFunction.define] defined new function`,t,`:`,n,`->`,e),this.sharedFunctions.set(n,[...this.sharedFunctions.get(n)??[],{fn:e,plugin:t}]),e}static call(e,...t){let n=this.sharedFunctions.get(e)?.map(e=>({result:e.fn(...t),...e}))??[],r=Promise.all(n.map(async e=>({...e,result:await e.result})));return Object.assign(n,r)}static callRandom(e,...t){let n=this.sharedFunctions.get(e)??[],r=qt(0,n.length-1),i=n[r];if(!i)throw Error(`[SharedFunction.callRandom] call ${e}, but not resigner any function.`);console.log(`[SharedFunction.callRandom] call index: ${r} in ${n.length}`,i);let a=i.fn(...t),o={result:a,...i},s=(async()=>({...i,result:await a}))();return Object.assign(o,s)}static callWitch(e,t,...n){let r=(this.sharedFunctions.get(e)??[]).filter(e=>e.plugin===t);if(!r.length)throw Error(`[SharedFunction.callWitch] not found plugin function (plugin: ${t}, name: ${e})`);let i=r.map(e=>({result:e.fn(...n),...e})),a=Promise.all(i.map(async e=>({...e,result:await e.result})));return Object.assign(i,a)}},on=e.n({SmartAbortController:()=>sn,createAxios:()=>un,requestErrorResult:()=>cn,requestType:()=>ln,utilInterceptors:()=>j}),sn=class{_controller=new AbortController;mitt=tn();get signal(){return this._controller.signal}abort(e){this._controller.abort(e),this._controller=new AbortController,this.mitt.emit(`abort`)}onAbort(e){return this.mitt.on(`abort`,e),()=>this.mitt.off(`abort`,e)}onAbortOnce(e){let t=async()=>{await e(),this.mitt.off(`abort`,t)};this.mitt.on(`abort`,t)}};const cn=(e,t)=>(rn.emit(e,t),Promise.reject(t));let ln;(function(e){e.isPost=e=>/post/gi.test(e.config.method??``),e.isPut=e=>/put/gi.test(e.config.method??``),e.isGet=e=>/get/gi.test(e.config.method??``)})(ln||={});let j;(function(e){let t=e.checkIsAxiosError=e=>`__isAxiosError`in e?e.__isAxiosError:e.__isAxiosError=!(0,n.isCancel)(e)&&(0,n.isAxiosError)(e),r=e.useUnreadableRetry=async(e,t=0)=>{try{return(await e()).data}catch(n){if(n instanceof Error&&n.message.includes(`Illegal invocation`)){if(t>20)throw n;return await r(e,t+1)}throw n}},i=e.useForceRetry=async(e,t=0)=>{try{return(await e()).data}catch(n){if(n instanceof Error){if(t>20)throw n;return await i(e,t+1)}throw n}};e.createAutoRetry=(e,t=3)=>async n=>{if(!n.config||n.config.disretry||(n.config.__retryCount??0)>=t)throw cn(`networkError_response`,n);return n.config.__retryCount=(n.config.__retryCount??0)+1,await De(500*n.config.__retryCount),e(n.config)},e.createCheckIsUnauth=(e,n)=>async r=>{if(!t(r))return Promise.reject(r);if(r?.response?.status===401){if(n){if(!await n())throw cn(`networkError_unauth`,r);return e(r.config??{})}else if(!location.pathname.includes(`auth`))throw cn(`networkError_unauth`,r)}return Promise.reject(r)},e.isClientError=e=>{if(e?.response?.status?.toString().startsWith(`4`))throw cn(`networkError_response`,e);return Promise.reject(e)},e.passCorsError=e=>{if(!t(e))return Promise.reject(e);if(e.code===`ERR_NETWORK`&&!e.response)throw cn(`networkError_request`,e);return Promise.reject(e)},e.devProxy=e=>{let t=(0,n.getAdapter)([`xhr`,`fetch`,`http`]);if(window.$isDev)return t(e);let r=e.url?.replaceAll(`/api0`,``)??``;return console.log(e),t({...e,baseURL:``,url:`http://${location.host}/api0/${URL.canParse(r)?r:`${e.baseURL}/${r}`}`})},e._=1})(j||={});const un=(e,t={},r)=>{let i=n.default.create(t);return r?.(i),i.interceptors.request.use(async t=>(t.baseURL??=await e(),t)),t.noPassClientError||i.interceptors.response.use(void 0,j.isClientError),i.interceptors.response.use(void 0,j.createAutoRetry(i,10)),{get:async(e,t={})=>j.useUnreadableRetry(()=>i.get(e,t)),post:async(e,t,n={})=>j.useUnreadableRetry(()=>i.post(e,t,n)),postForm:async(e,t,n={})=>j.useUnreadableRetry(()=>i.postForm(e,t,n)),put:async(e,t,n={})=>j.useUnreadableRetry(()=>i.put(e,t,n)),putForm:async(e,t,n={})=>j.useUnreadableRetry(()=>i.putForm(e,t,n)),delete:async(e,t={})=>j.useUnreadableRetry(()=>i.delete(e,t)),patch:async(e,t,n={})=>j.useUnreadableRetry(()=>i.patch(e,t,n)),patchForm:async(e,t,n={})=>j.useUnreadableRetry(()=>i.patchForm(e,t,n))}};var dn=e.n({PromiseContent:()=>mn,SourcedKeyMap:()=>M,SourcedValue:()=>pn,Stream:()=>N,Struct:()=>fn,callbackToPromise:()=>gn}),fn=class e{toJSON(){return JSON.parse(JSON.stringify(this.$$raw))}constructor(e){this.$$raw=e}static toRaw(t){return t instanceof e?t.toJSON():t}},pn=class{toJSON(e){return dt(e)?this.parse(e):e}parse(e){let t=e.split(this.separator);return[t[0],t.slice(1).join(this.separator)]}toString(e){return dt(e)?e:this.stringify(e)}stringify(e){return e.join(this.separator)}constructor(e=`:`){this.separator=e}},M=class extends pn{static create(e=`:`){return(0,t.shallowReactive)(new this(e))}constructor(e=`:`){super(e)}store=(0,t.shallowReactive)(new Map);get size(){return this.store.size}[Symbol.toStringTag]=`SourcedKeyMap`;clear(){this.store.clear()}delete(e){return this.store.delete(this.toString(e))}forEach(e,t){this.store.forEach((n,r)=>{e.call(t,n,r,this)})}get(e){return this.store.get(this.toString(e))}has(e){return this.store.has(this.toString(e))}set(e,t){return this.store.set(this.toString(e),t),this}entries(){return this.store.entries()}keys(){return this.store.keys()}values(){return this.store.values()}[Symbol.iterator](){return this.entries()}},mn=class e{[Symbol.toStringTag]=`PromiseContent`;static _this;static{this._this=A(this,`data/PromiseContent`)}static isPromiseContent(e){return e instanceof this._this}static fromPromise(e,n=e=>e){return(0,t.markRaw)(new this._this(e,n))}constructor(e,t=e=>e){this.promise=e,this.processor=t,this.loadPromise(e)}async loadPromise(e){this.data.value=void 0,this.isLoading.value=!0,this.isError.value=!1,this.errorCause.value=void 0,this.isEmpty.value=!0;try{let t=await e;this.data.value=this.processor(t),this.isLoading.value=!1,this.isError.value=!1,this.isEmpty.value=$t(t),this.emitter.emit(`success`,this.data.value)}catch(e){this.data.value=void 0,this.isError.value=!0,this.errorCause.value=en(e)?e:Error(String(e)),console.error(`Non-throw Error [PromiseContent]`,e),this.emitter.emit(`error`,e)}this.emitter.emit(`finial`,void 0)}emitter=tn();onError(e){return this.emitter.on(`error`,e),()=>this.emitter.off(`error`,e)}onSuccess(e){return this.emitter.on(`success`,e),()=>this.emitter.off(`success`,e)}onFinal(e){return this.emitter.on(`finial`,e),()=>this.emitter.off(`finial`,e)}setProcessor(t){return e.fromPromise(this.promise,t)}catch(e){return this.promise.catch(e)}then(e,t){return this.promise.then(e,t)}finally(e){return this.promise.finally(e)}data=(0,t.shallowRef)();isLoading=(0,t.shallowRef)(!0);isError=(0,t.shallowRef)(!1);errorCause=(0,t.shallowRef)();isEmpty=(0,t.shallowRef)(!0);static fromAsyncFunction(e){return(...t)=>this.fromPromise(e(...t))}static resolve(e){let t=this.fromPromise(Promise.resolve(e));return t.isLoading.value=!1,t}static withResolvers(e=!1){let t=Promise.withResolvers(),n=new this._this(t.promise);return n.isLoading.value=e,{content:n,reject:e=>{t.reject(e)},resolve:e=>{t.resolve(e)},reset(e=!1){t=Promise.withResolvers(),n.loadPromise(t.promise),n.isLoading.value=e}}}},hn=new Map,N=class{constructor(e){this.generator=e(this.abortController.signal,this),hn.set(this,e)}static _this;static{this._this=A(this,`data/Stream`)}static isStream(e){return e instanceof this._this}static create(e){return(0,t.markRaw)(new this._this(e))}abortController=new sn;generator;_setupData=[];setupData(e){return this._setupData.push(...e),this.data.value.unshift(...e),this}async next(e=!1){try{if(e||(await k(this.isRequesting).toBe(!1),this.isRequesting.value=!0),this._isDone)return e||(this.isRequesting.value=!1),{done:!0,value:void 0};e&&console.log(`igRequesting next`);let{value:t,done:n}=await this.generator.next(this);return this.isDone.value=n??!1,e||(this.isRequesting.value=!1),n?{done:!0,value:void 0}:(this.data.value.push(...t),{value:t,done:n})}catch(t){throw e||(this.isRequesting.value=!1),this.error.value=t,t}}async return(){return await this.generator.return?.()??{value:void 0,done:!0}}async throw(e){return await this.generator.throw?.(e)??{value:void 0,done:!0}}reset(){this.generator=hn.get(this)(this.abortController.signal,this),this.total.value=NaN,this.page.value=0,this.pageSize.value=NaN,this.data.value=this._setupData,this.isDone.value=!1,this.isRequesting.value=!1,this.error.value=void 0}async retry(){return this.page.value--,this.next()}async nextToDone(){isNaN(this._pages)&&await this.next(!0);let e=[];for(let t=this._page+1;t<=this._pages;t++)e.push(this.next(!0));return await Promise.all(e),this._data}stop(){this.abortController.abort(),this.isRequesting.value=!1}[Symbol.asyncIterator](){return this}error=(0,t.shallowRef)();data=(0,t.ref)([]);get _data(){return this.data.value}page=(0,t.shallowRef)(0);get _page(){return this.page.value}pages=(0,t.shallowRef)(NaN);get _pages(){return this.pages.value}total=(0,t.shallowRef)(NaN);get _total(){return this.total.value}pageSize=(0,t.shallowRef)(NaN);get _pageSize(){return this.pageSize.value}length=(0,t.computed)(()=>this.data.value.length);get _length(){return this.data.value.length}isRequesting=(0,t.shallowRef)(!1);get _isRequesting(){return this.isRequesting.value}isDone=(0,t.shallowRef)(!1);get _isDone(){return this.isDone.value}isNoData=(0,t.computed)(()=>this.isDone.value&&this.isEmpty.value);get _isNoData(){return this.isNoData.value}isEmpty=(0,t.computed)(()=>this.length.value===0);get _isEmpty(){return this.isEmpty.value}};const gn=e=>{let{resolve:t,promise:n}=Promise.withResolvers();return e(t),n};var _n=e.n({Comment:()=>vn}),vn=class extends fn{static commentRow=M.create();constructor(e){super(e),this.content=e.content,this.time=e.time,this.id=e.id,this.childrenCount=e.childrenCount,this.likeCount=e.likeCount,this.isLiked=e.isLiked,this.reported=e.reported,this.$$plugin=e.$$plugin,this.$$meta=e.$$meta,this.isTop=e.isTop}content;time;$time(){return(0,c.default)(this.time)}id;childrenCount;likeCount;isTop;isLiked;reported;$$plugin;$$meta},yn=e.n({ContentImagePage:()=>xn,ContentPage:()=>bn,ContentVideoPage:()=>Sn}),bn=class{static viewLayout=A(M.create(),`uni/contentPage/viewLayout`);static share=A(M.create(),`uni/contentPage/share`);static shareToken=A(M.create(),`uni/contentPage/shareToken`);static tabbar=A((0,t.shallowReactive)(new Map),`uni/contentPage/tabbar`);static addTabbar(e,...t){this.tabbar.set(e,(this.tabbar.get(e)??[]).concat(t))}static categories=A((0,t.shallowReactive)(new Map),`uni/contentPage/categories`);static addCategories(e,...t){this.categories.set(e,(this.categories.get(e)??[]).concat(t))}static contentPage=A(M.create(),`uni/contentPage/contentPage`);static barcode=A((0,t.shallowReactive)(new Map),`uni/contentPage/barcode`);static addBarcode(e,t){let n=this.barcode.get(e)??[];return n.push(t),this.barcode.set(e,n),e}static levelboard=A((0,t.shallowReactive)(new Map),`uni/contentPage/levelboard`);static addLevelboard(e,t){let n=this.levelboard.get(e)??[];return n.push(t),this.levelboard.set(e,n),e}static topButton=A((0,t.shallowReactive)(new Map),`uni/contentPage/topButton`);static addTopButton(e,t){let n=this.topButton.get(e)??[];return n.push(t),this.topButton.set(e,n),e}static mainLists=A((0,t.shallowReactive)(new Map),`uni/contentPage/mainLists`);static addMainList(e,t){let n=this.mainLists.get(e)??[];return n.push(t),this.mainLists.set(e,n),e}constructor(e,t,n){this.id=t,this.ep=n,this.preload.value=e}pid=mn.withResolvers();preload=(0,t.shallowRef)(void 0);detail=mn.withResolvers();union=(0,t.computed)(()=>this.detail.content.data.value??this.preload.value);recommends=mn.withResolvers();eps=mn.withResolvers()},xn=class extends bn{images=mn.withResolvers()},Sn=class extends bn{videos=mn.withResolvers()},Cn=e.n({Ep:()=>wn}),wn=class extends fn{name;index;$$plugin;$$meta;constructor(e){super(e),this.name=e.name,this.index=e.index,this.$$plugin=e.$$plugin,this.$$meta=e.$$meta}},Tn=e.n({Resource:()=>En}),En=class e extends fn{static processInstances=A(M.create(),`uni/resource/processInstances`);static fork=A(M.create(),`uni/resource/fork`);static precedenceFork=A(M.create(),`uni/resource/precedenceFork`);static is(e){return e instanceof this}static create(e){return new this(e)}constructor(e){super(e),this.$$plugin=e.$$plugin,this.$$meta=e.$$meta,this.pathname=e.pathname,this.type=e.type,this.processSteps=(e.processSteps??[]).map(e=>Bt(e)?{referenceName:e,ignoreExit:!1}:e)}type;pathname;processSteps;$$meta;$$plugin;async getUrl(){let t=this.pathname;for(let n of this.processSteps){let r=e.processInstances.get([this.$$plugin,n.referenceName]);if(!r){console.warn(`[Resource.getUrl] process not found, fullname: [${this.$$plugin}, ${n.referenceName}]`);continue}let i=await r(t,this);if(t=i[0],!(n.ignoreExit||!i[1]))break}return URL.canParse(t)?t:`${this.getThisFork()}/${t}`}omittedForks=(0,t.shallowReactive)(new Set);getThisFork(){let t=new Set(e.fork.get([this.$$plugin,this.type])?.urls??[]);if(this.omittedForks.size==0)var n=e.precedenceFork.get([this.$$plugin,this.type]);else var n=Array.from(t.difference(this.omittedForks).values())[0];if(!n)throw Error(`[Resource.getThisFork] fork not found, type: [${this.$$plugin}, ${this.type}]`);return n}localChangeFork(){let t=new Set(e.fork.get([this.$$plugin,this.type])?.urls??[]);this.omittedForks.add(this.getThisFork());let n=t.difference(this.omittedForks).size!=0;return n&&this.omittedForks.clear(),n}},Dn=e.n({Image:()=>On}),On=class extends En{static is(e){return e instanceof this}static create(e,t){return new this(e,t)}constructor(e,t){`forkNamespace`in e?super({$$plugin:e.$$plugin,$$meta:{...e.$$meta,...t},pathname:e.path,type:e.forkNamespace,processSteps:e.processSteps}):super(e)}get aspect(){return this.$$meta}set aspect(e){this.$$meta??={},this.$$meta.width=e.width,this.$$meta.height=e.height}},kn=e.n({Item:()=>An}),An=class extends fn{static itemTranslator=M.create();static create(e){let t=this.itemTranslator.get(e.contentType);if(!t)throw Error(`can not found itemTranslator contentType:"${bn.contentPage.toString(e.contentType)}"`);return t(e)}static authorIcon=M.create();static itemCard=A(M.create(),`uni/item/itemCard`);static is(e){return e instanceof this}cover;get $cover(){return On.create(this.cover)}title;id;categories;author;viewNumber;likeNumber;commentNumber;isLiked;description;updateTime;get $updateTime(){return(0,c.default)(this.updateTime)}contentType;length;epLength;$$plugin;$$meta;thisEp;customIsSafe;get $thisEp(){return new wn(this.thisEp)}constructor(e){super(e),this.$$plugin=e.$$plugin,this.$$meta=e.$$meta,this.thisEp=e.thisEp,this.updateTime=e.updateTime,this.cover=e.cover,this.title=e.title,this.id=e.id,this.categories=e.categories,this.author=e.author,this.viewNumber=e.viewNumber,this.likeNumber=e.likeNumber,this.commentNumber=e.commentNumber,this.isLiked=e.isLiked,this.customIsAI=e.customIsAI,this.contentType=bn.contentPage.toJSON(e.contentType),this.length=e.length,this.epLength=e.epLength,this.description=e.description,this.commentSendable=e.commentSendable,this.customIsSafe=e.customIsSafe}commentSendable;customIsAI;get $isAi(){let e=e=>/(^|[\((\[\s【])ai[】\))\]\s]?/gi.test(e);return this.customIsAI||e(this.title)||this.author.some(t=>e(`${t.label}\u1145${t.description}`))}},jn=e.n({User:()=>Mn}),Mn=class{static userBase=(0,t.shallowReactive)(new Map);static userEditorBase=(0,t.shallowReactive)(new Map);static subscribes=(0,t.shallowReactive)(M.create());static authorActions=(0,t.shallowReactive)(M.create());constructor(e){e.avatar&&(this.avatar=On.create(e.avatar)),this.name=e.name,this.id=e.id,this.$$plugin=e.$$plugin}avatar;name;id;$$plugin};let Nn;(function(e){e.user=jn,e.comment=_n,e.content=yn,e.image=Dn,e.item=kn,e.ep=Cn,e.resource=Tn})(Nn||={});var Pn=(0,t.defineComponent)({__name:`await`,props:{promise:{type:Function},autoLoad:{type:Boolean}},setup(e){let n=e,r=(0,t.shallowRef)(),i=async()=>r.value=await n.promise();return(0,t.watch)(()=>[n.promise,n.autoLoad],e=>{n.autoLoad&&i()},{immediate:!0}),(e,n)=>(0,t.renderSlot)(e.$slots,`default`,{load:i,result:r.value})}}),Fn=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],In={value:null,addProjectionMetrics:null};function Ln(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),t&&In.value&&In.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Rn={},zn=40;function Bn(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Fn.reduce((e,n)=>(e[n]=Ln(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Rn.useManualTiming?i.timestamp:performance.now();n=!1,Rn.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,zn),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Fn.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Fn.length;t++)o[Fn[t]].cancel(e)},state:i,steps:o}}var P=e=>e,{schedule:F,cancel:Vn,state:I,steps:Hn}=Bn(typeof requestAnimationFrame<`u`?requestAnimationFrame:P,!0),Un;function Wn(){Un=void 0}var L={now:()=>(Un===void 0&&L.set(I.isProcessing||Rn.useManualTiming?I.timestamp:performance.now()),Un),set:e=>{Un=e,queueMicrotask(Wn)}},R=e=>e*1e3,Gn=e=>e/1e3;function Kn(e,t){let n=L.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Vn(r),e(a-t))};return F.setup(r,!0),()=>Vn(r)}var qn=e=>t=>typeof t==`string`&&t.startsWith(e),Jn=qn(`--`),Yn=qn(`var(--`),Xn=e=>Yn(e)?Zn.test(e.split(`/*`)[0].trim()):!1,Zn=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Qn={};function $n(e){for(let t in e)Qn[t]=e[t],Jn(t)&&(Qn[t].isCSSVariable=!0)}function er(e,n){let r=typeof e==`string`&&!n?`${e}Context`:n,i=Symbol(r);return[n=>{let r=(0,t.inject)(i,n);if(r===void 0)throw Error(`Injection \`${i.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`);return r},e=>((0,t.provide)(i,e),e)]}var[tr,nr]=er(`Motion`),[rr,ir]=er(`LayoutGroup`);function ar(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}var or=class{constructor(e){this.state=e}beforeMount(){}mount(){}unmount(){}update(){}beforeUpdate(){}beforeUnmount(){}},sr=function(){},cr=function(){};process.env.NODE_ENV!==`production`&&(sr=function(e,t){!e&&typeof console<`u`&&console.warn(t)},cr=function(e,t){if(!e)throw Error(t)});function lr(e,t,n){if(Array.isArray(e))return e.reduce((e,r)=>{let i=lr(r,t,n);return i?{...e,...i}:e},{});if(typeof e==`object`)return e;if(e&&t){let r=t[e];return typeof r==`function`?r(n):r}}function ur(e,t){return typeof e==typeof t?Array.isArray(e)&&Array.isArray(t)?!dr(e,t):e!==t:!0}function dr(e,t){let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function fr(e){return e?.startsWith(`--`)}var pr=e=>e;function mr(e){return typeof e==`number`}var hr=`animate.circle.defs.desc.ellipse.g.image.line.filter.marker.mask.metadata.path.pattern.polygon.polyline.rect.stop.svg.switch.symbol.text.tspan.use.view.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.linearGradient.radialGradient.textPath`.split(`.`),gr=new Set(hr);function _r(e){return gr.has(e)}var vr=class{constructor(e){this.features=[];let{features:n=[],lazyMotionContext:r}=e.options,i=n.concat(r.features.value);this.features=i.map(t=>new t(e));let a=this.features;(0,t.watch)(r.features,t=>{t.forEach(t=>{if(!i.includes(t)){i.push(t);let n=new t(e);a.push(n),e.isMounted()&&(n.beforeMount(),n.mount())}})},{flush:`pre`})}mount(){this.features.forEach(e=>e.mount())}beforeMount(){this.features.forEach(e=>e.beforeMount?.call(e))}unmount(){this.features.forEach(e=>e.unmount())}update(){this.features.forEach(e=>e.update?.call(e))}beforeUpdate(){this.features.forEach(e=>e.beforeUpdate())}beforeUnmount(){this.features.forEach(e=>e.beforeUnmount())}},yr=new WeakMap;function br(e){let t=yr.get(e);t&&e.removeEventListener(`motioncomplete`,t),yr.delete(e)}var[xr,Sr]=er(`AnimatePresenceContext`);function Cr(e){let n={initial:e.initial,custom:e.custom};(0,t.watch)(()=>e.custom,e=>{n.custom=e},{flush:`pre`}),Sr(n),(0,t.onMounted)(()=>{n.initial=void 0})}function wr(e){return typeof e==`string`||e===!1||Array.isArray(e)}var Tr=new WeakMap,Er=0,Dr=class{constructor(e,t){var n;this.element=null,this.isSafeToRemove=!1,this.isVShow=!1,this.children=new Set,this.activeStates={initial:!0,animate:!0},this.currentProcess=null,this._context=null,this.animateUpdates=P,this.id=`motion-state-${Er++}`,this.options=e,this.parent=t,(n=t?.children)==null||n.add(this);let r=(e.initial===void 0&&e.variants?this.context.initial:e.initial)===!1?[`initial`,`animate`]:[`initial`];this.initTarget(r),this.featureManager=new vr(this),this.type=_r(this.options.as)?`svg`:`html`}get context(){return this._context||=new Proxy({},{get:(e,t)=>wr(this.options[t])?this.options[t]:this.parent?.context[t]}),this._context}initTarget(e){let t=this.options.custom??this.options.animatePresenceContext?.custom;this.baseTarget=e.reduce((e,n)=>({...e,...lr(this.options[n]||this.context[n],this.options.variants,t)}),{}),this.target={}}updateOptions(e){var t;this.options=e,(t=this.visualElement)==null||t.update({...this.options,whileTap:this.options.whilePress},{isPresent:!yr.has(this.element)})}beforeMount(){this.featureManager.beforeMount()}mount(e,t,n=!1){var r,i;cr(!!e,`Animation state must be mounted with valid Element`),this.element=e,this.updateOptions(t),this.options.layoutId&&((r=this.visualElement.projection.getStack())==null||r.members.length),this.featureManager.mount(),!n&&this.options.animate&&((i=this.startAnimation)==null||i.call(this))}clearAnimation(){var e;this.currentProcess&&Vn(this.currentProcess),this.currentProcess=null,(e=this.visualElement?.variantChildren)==null||e.forEach(e=>{e.state.clearAnimation()})}startAnimation(){this.clearAnimation(),this.currentProcess=F.render(()=>{this.currentProcess=null,this.animateUpdates()})}beforeUnmount(){this.featureManager.beforeUnmount()}unmount(e=!1){var t,n;if(this.options.layoutId&&this.visualElement.projection?.getStack().lead===this.visualElement.projection&&this.visualElement.projection.isProjecting()){Promise.resolve().then(()=>{this.unmount(e)});return}e&&Array.from(this.children).reverse().forEach(this.unmountChild),(t=this.parent?.children)==null||t.delete(this),Tr.delete(this.element),this.featureManager.unmount(),(n=this.visualElement)==null||n.unmount(),this.clearAnimation()}unmountChild(e){e.unmount(!0)}beforeUpdate(){this.featureManager.beforeUpdate()}update(e){this.updateOptions(e),this.featureManager.update(),this.startAnimation()}setActive(e,t,n=!0){var r;!this.element||this.activeStates[e]===t||(this.activeStates[e]=t,(r=this.visualElement.variantChildren)==null||r.forEach(n=>{n.state.setActive(e,t,!1)}),n&&this.animateUpdates({isExit:e===`exit`&&this.activeStates.exit}))}isMounted(){return!!this.element}willUpdate(e){var t;(this.options.layout||this.options.layoutId)&&((t=this.visualElement.projection)==null||t.willUpdate())}},Or=new WeakMap;function kr(e,t,n){return new CustomEvent(e,{detail:{target:t,isExit:n}})}var Ar={syntax:`<angle>`,initialValue:`0deg`,toDefaultUnit:e=>`${e}deg`},jr={translate:{syntax:`<length-percentage>`,initialValue:`0px`,toDefaultUnit:e=>`${e}px`},rotate:Ar,scale:{syntax:`<number>`,initialValue:1,toDefaultUnit:pr},skew:Ar},Mr=[`translate`,`scale`,`rotate`,`skew`],Nr=[``,`X`,`Y`,`Z`],Pr=new Map,Fr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`];Mr.forEach(e=>{Nr.forEach(t=>{Fr.push(e+t),Pr.set(e+t,jr[e])})});var Ir=new Set(Fr),Lr=e=>Ir.has(e),Rr={x:`translateX`,y:`translateY`,z:`translateZ`};function zr([e],[t]){return Fr.indexOf(e)-Fr.indexOf(t)}function Br(e,[t,n]){return`${e} ${t}(${n})`}function Vr(e){return e.sort(zr).reduce(Br,``).trim()}var Hr={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0},Ur=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Wr=Ur(`deg`),Gr=Ur(`%`),z=Ur(`px`),Kr=Ur(`vh`),qr=Ur(`vw`),Jr={...Gr,parse:e=>Gr.parse(e)/100,transform:e=>Gr.transform(e*100)},B=e=>!!(e&&e.getVelocity),Yr={get:(e,t)=>{let n=fr(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!n&&n!==`0`){let e=Pr.get(t);e&&(n=e.initialValue)}return n},set:(e,t,n)=>{fr(t)?e.style.setProperty(t,n):e.style[t]=n}};function Xr(e){let t={},n=[];for(let r in e){let i=e[r];i=B(i)?i.get():i,Lr(r)&&r in Rr&&(r=Rr[r]);let a=Array.isArray(i)?i[0]:i,o=Pr.get(r);o?(a=mr(i)?o.toDefaultUnit?.call(o,i):i,n.push([r,a])):t[r]=a}return n.length&&(t.transform=Vr(n)),Object.keys(t).length===0?null:t}var Zr={fill:!0,stroke:!0,opacity:!0,"stroke-width":!0,"fill-opacity":!0,"stroke-opacity":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,cx:!0,cy:!0,r:!0,d:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,"path-length":!0,viewBox:!0,width:!0,height:!0,"preserve-aspect-ratio":!0,"clip-path":!0,filter:!0,mask:!0,"stop-color":!0,"stop-opacity":!0,"gradient-transform":!0,"gradient-units":!0,"spread-method":!0,"marker-end":!0,"marker-mid":!0,"marker-start":!0,"text-anchor":!0,"dominant-baseline":!0,"font-family":!0,"font-size":!0,"font-weight":!0,"letter-spacing":!0,"vector-effect":!0};function Qr(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()}function $r(e,t,n=1,r=0){e.pathLength=1,delete e[`path-length`],e[`stroke-dashoffset`]=z.transform(-r),e[`stroke-dasharray`]=`${z.transform(t)} ${z.transform(n)}`}function ei(e){let t={},n={};for(let r in e){let i=Qr(r);if(i in Zr){let n=e[r];t[i]=B(n)?n.get():n}else n[r]=e[r]}return t[`path-length`]!==void 0&&$r(t,t[`path-length`],t[`path-spacing`],t[`path-offset`]),{attrs:t,style:n}}function ti({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ni(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ri(e,t){return ti(ni(e.getBoundingClientRect(),t))}var ii={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},ai={};for(let e in ii)ai[e]={isEnabled:t=>ii[e].some(e=>!!t[e])};var oi=()=>({translate:0,scale:1,origin:0,originPoint:0}),si=()=>({x:oi(),y:oi()}),ci=()=>({min:0,max:0}),V=()=>({x:ci(),y:ci()}),li=typeof window<`u`,ui={current:null},di={current:!1};function fi(){if(di.current=!0,li)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>ui.current=e.matches;e.addEventListener(`change`,t),t()}else ui.current=!1}function pi(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function mi(e){return typeof e==`string`||Array.isArray(e)}var hi=[`initial`,...[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`]];function gi(e){return pi(e.animate)||hi.some(t=>mi(e[t]))}function _i(e){return!!(gi(e)||e.variants)}function vi(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var yi=new Set;function bi(e,t,n){e||yi.has(t)||(console.warn(vi(t,n)),yi.add(t))}function xi(e,t){e.indexOf(t)===-1&&e.push(t)}function Si(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ci=class{constructor(){this.subscriptions=[]}add(e){return xi(this.subscriptions,e),()=>Si(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function wi(e,t){return t?1e3/t*e:0}var Ti=30,Ei=e=>!isNaN(parseFloat(e)),Di={current:void 0},Oi=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{var t;let n=L.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&((t=this.events.change)==null||t.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=L.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ei(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!==`production`&&bi(!1,`value.onChange(callback) is deprecated. Switch to value.on("change", callback).`),this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new Ci);let n=this.events[e].add(t);return e===`change`?()=>{n(),F.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Di.current&&Di.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=L.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Ti)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Ti);return wi(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,t;(e=this.dependents)==null||e.clear(),(t=this.events.destroy)==null||t.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function ki(e,t){return new Oi(e,t)}function Ai(e,t,n){for(let r in t){let i=t[r],a=n[r];if(B(i))e.addValue(r,i);else if(B(a))e.addValue(r,ki(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,ki(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}function ji(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Mi(e,t,n,r){if(typeof t==`function`){let[i,a]=ji(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=ji(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Ni(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Pi=e=>e*180/Math.PI,Fi=e=>Li(Pi(Math.atan2(e[1],e[0]))),Ii={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Fi,rotateZ:Fi,skewX:e=>Pi(Math.atan(e[1])),skewY:e=>Pi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Li=e=>(e%=360,e<0&&(e+=360),e),Ri=Fi,zi=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Bi=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Vi={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zi,scaleY:Bi,scale:e=>(zi(e)+Bi(e))/2,rotateX:e=>Li(Pi(Math.atan2(e[6],e[5]))),rotateY:e=>Li(Pi(Math.atan2(-e[2],e[0]))),rotateZ:Ri,rotate:Ri,skewX:e=>Pi(Math.atan(e[4])),skewY:e=>Pi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Hi(e){return e.includes(`scale`)?1:0}function Ui(e,t){if(!e||e===`none`)return Hi(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Vi,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Ii,i=t}if(!i)return Hi(t);let a=r[t],o=i[1].split(`,`).map(Gi);return typeof a==`function`?a(o):o[a]}var Wi=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Ui(n,t)};function Gi(e){return parseFloat(e.trim())}var Ki=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],qi=new Set(Ki),Ji=(e,t,n)=>n>t?t:n<e?e:n,Yi={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Xi={...Yi,transform:e=>Ji(0,1,e)},Zi={...Yi,default:1},Qi=e=>e===Yi||e===z,$i=new Set([`x`,`y`,`z`]),ea=Ki.filter(e=>!$i.has(e));function ta(e){let t=[];return ea.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(`scale`)?1:0))}),t}var na={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ui(t,`x`),y:(e,{transform:t})=>Ui(t,`y`)};na.translateX=na.x,na.translateY=na.y;var ra=new Set,ia=!1,aa=!1,oa=!1;function sa(){if(aa){let e=Array.from(ra).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=ta(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{var r;(r=e.getValue(t))==null||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}aa=!1,ia=!1,ra.forEach(e=>e.complete(oa)),ra.clear()}function ca(){ra.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(aa=!0)})}function la(){oa=!0,ca(),sa(),oa=!1}var ua=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(ra.add(this),ia||(ia=!0,F.read(ca),F.resolveKeyframes(sa))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Ni(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ra.delete(this)}cancel(){this.state===`scheduled`&&(ra.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},da=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),fa=e=>/^0[^.\s]+$/u.test(e),pa=e=>Math.round(e*1e5)/1e5,ma=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ha(e){return e==null}var ga=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,_a=(e,t)=>n=>!!(typeof n==`string`&&ga.test(n)&&n.startsWith(e)||t&&!ha(n)&&Object.prototype.hasOwnProperty.call(n,t)),va=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(ma);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},ya=e=>Ji(0,255,e),ba={...Yi,transform:e=>Math.round(ya(e))},xa={test:_a(`rgb`,`red`),parse:va(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+ba.transform(e)+`, `+ba.transform(t)+`, `+ba.transform(n)+`, `+pa(Xi.transform(r))+`)`};function Sa(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Ca={test:_a(`#`),parse:Sa,transform:xa.transform},wa={test:_a(`hsl`,`hue`),parse:va(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Gr.transform(pa(t))+`, `+Gr.transform(pa(n))+`, `+pa(Xi.transform(r))+`)`},H={test:e=>xa.test(e)||Ca.test(e)||wa.test(e),parse:e=>xa.test(e)?xa.parse(e):wa.test(e)?wa.parse(e):Ca.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?xa.transform(e):wa.transform(e),getAnimatableNone:e=>{let t=H.parse(e);return t.alpha=0,H.transform(t)}},Ta=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ea(e){return isNaN(e)&&typeof e==`string`&&(e.match(ma)?.length||0)+(e.match(Ta)?.length||0)>0}var Da=`number`,Oa=`color`,ka=`var`,Aa=`var(`,ja="${}",Ma=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Na(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Ma,e=>(H.test(e)?(r.color.push(a),i.push(Oa),n.push(H.parse(e))):e.startsWith(Aa)?(r.var.push(a),i.push(ka),n.push(e)):(r.number.push(a),i.push(Da),n.push(parseFloat(e))),++a,ja)).split(ja),indexes:r,types:i}}function Pa(e){return Na(e).values}function Fa(e){let{split:t,types:n}=Na(e),r=t.length;return e=>{let i=``;for(let a=0;a<r;a++)if(i+=t[a],e[a]!==void 0){let t=n[a];t===Da?i+=pa(e[a]):t===Oa?i+=H.transform(e[a]):i+=e[a]}return i}}var Ia=e=>typeof e==`number`?0:H.test(e)?H.getAnimatableNone(e):e;function La(e){let t=Pa(e);return Fa(e)(t.map(Ia))}var Ra={test:Ea,parse:Pa,createTransformer:Fa,getAnimatableNone:La},za={test:e=>e===`auto`,parse:e=>e},Ba=e=>t=>t.test(e),Va=[Yi,z,Gr,Wr,qr,Kr,za],Ha=e=>Va.find(Ba(e)),Ua=[...Va,H,Ra],Wa=e=>Ua.find(Ba(e)),Ga=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ka(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(ma)||[];if(!r)return e;let i=n.replace(r,``),a=Ga.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}var qa=/\b([a-z-]*)\(.*?\)/gu,Ja={...Ra,getAnimatableNone:e=>{let t=e.match(qa);return t?t.map(Ka).join(` `):e}},Ya={...Yi,transform:Math.round},Xa={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,radius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,top:z,right:z,bottom:z,left:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,backgroundPositionX:z,backgroundPositionY:z,rotate:Wr,rotateX:Wr,rotateY:Wr,rotateZ:Wr,scale:Zi,scaleX:Zi,scaleY:Zi,scaleZ:Zi,skew:Wr,skewX:Wr,skewY:Wr,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z,perspective:z,transformPerspective:z,opacity:Xi,originX:Jr,originY:Jr,originZ:z,zIndex:Ya,fillOpacity:Xi,strokeOpacity:Xi,numOctaves:Ya},Za={...Xa,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:Ja,WebkitFilter:Ja},Qa=e=>Za[e];function $a(e,t){let n=Qa(e);return n!==Ja&&(n=Ra),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var{schedule:eo,cancel:to}=Bn(queueMicrotask,!0),no=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],ro=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ua,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=L.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,F.render(this.render,!1,!0))};let{latestValues:s,renderState:c}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=gi(t),this.isVariantNode=_i(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in u){let t=u[e];s[e]!==void 0&&B(t)&&t.set(s[e])}}mount(e){var t;this.current=e,Or.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),di.current||fi(),this.shouldReduceMotion=this.reducedMotionConfig===`never`?!1:this.reducedMotionConfig===`always`?!0:ui.current,process.env.NODE_ENV!==`production`&&bi(this.shouldReduceMotion!==!0,`You have Reduced Motion enabled on your device. Animations may not appear as expected.`,`reduced-motion-disabled`),(t=this.parent)==null||t.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;for(let t in this.projection&&this.projection.unmount(),Vn(this.notifyUpdate),Vn(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this),this.events)this.events[t].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=qi.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&F.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in ai){let t=ai[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):V()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<no.length;t++){let n=no[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Ai(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=ki(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(da(n)||fa(n))?n=parseFloat(n):!Wa(n)&&Ra.test(t)&&(n=$a(e,t)),this.setBaseTarget(e,B(n)?n.get():n)),B(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Mi(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!B(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Ci),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){eo.render(this.render)}},io=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Ki]),ao=()=>{},oo=()=>{};process.env.NODE_ENV!==`production`&&(ao=(e,t,n)=>{!e&&typeof console<`u`&&console.warn(vi(t,n))},oo=(e,t,n)=>{if(!e)throw Error(vi(t,n))});var so=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function co(e){let t=so.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var lo=4;function uo(e,t,n=1){oo(n<=lo,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=co(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return da(e)?parseFloat(e):e}return Xn(i)?uo(i,t,n+1):i}function fo(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||fa(e)}var po=new Set([`auto`,`none`,`0`]);function mo(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!po.has(t)&&Na(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=$a(n,i)}var ho=class extends ua{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Xn(r))){let i=uo(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!io.has(n)||e.length!==2)return;let[r,i]=e,a=Ha(r),o=Ha(i);if(a!==o)if(Qi(a)&&Qi(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else na[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||fo(e[t]))&&n.push(t);n.length&&mo(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=na[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=na[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},go=class extends ro{constructor(){super(...arguments),this.KeyframeResolver=ho}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;B(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},_o=(e,t)=>t&&typeof e==`number`?t.transform(e):e,vo={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},yo=Ki.length;function bo(e,t,n){let r=``,i=!0;for(let a=0;a<yo;a++){let o=Ki[a],s=e[o];if(s===void 0)continue;let c=!0;if(c=typeof s==`number`?s===(o.startsWith(`scale`)?1:0):parseFloat(s)===0,!c||n){let e=_o(s,Xa[o]);if(!c){i=!1;let t=vo[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function xo(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(qi.has(e)){o=!0;continue}else if(Jn(e)){i[e]=n;continue}else{let t=_o(n,Xa[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=bo(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function So(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Co(e,{layout:t,layoutId:n}){return qi.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Qn[e]||e===`opacity`)}function wo(e,t,n){let{style:r}=e,i={};for(let a in r)(B(r[a])||t.style&&B(t.style[a])||Co(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}function To(e){return window.getComputedStyle(e)}var Eo=class extends go{constructor(){super(...arguments),this.type=`html`,this.renderInstance=So}readValueFromInstance(e,t){if(qi.has(t))return this.projection?.isProjecting?Hi(t):Wi(e,t);{let n=To(e),r=(Jn(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ri(e,t)}build(e,t,n){xo(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return wo(e,t,n)}},Do=e=>e.replace(/([a-z])([A-Z])/gu,`$1-$2`).toLowerCase(),Oo={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ko={offset:`strokeDashoffset`,array:`strokeDasharray`};function Ao(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Oo:ko;e[a.offset]=z.transform(-r);let o=z.transform(t),s=z.transform(n);e[a.array]=`${o} ${s}`}function jo(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(xo(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Ao(d,i,a,o,!1)}var Mo=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),No=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Po(e,t,n,r){for(let n in So(e,t,void 0,r),t.attrs)e.setAttribute(Mo.has(n)?n:Do(n),t.attrs[n])}function Fo(e,t,n){let r=wo(e,t,n);for(let n in e)if(B(e[n])||B(t[n])){let t=Ki.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Io=class extends go{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=V}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(qi.has(t)){let e=Qa(t);return e&&e.default||0}return t=Mo.has(t)?t:Do(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Fo(e,t,n)}build(e,t,n){jo(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Po(e,t,n,r)}mount(e){this.isSVGTag=No(e.tagName),super.mount(e)}};function Lo(e,t){return _r(e)?new Io(t):new Eo(t)}function Ro(e,t,n,r=0,i=1){let a=Array.from(e),o=a.indexOf(t),s=e.size,c=(s-1)*r,l=typeof n==`function`;return o===a.length-1&&(t.parent.enteringChildren=void 0),l?n(o,s):i===1?o*r:c-o*r}function zo(e){return typeof e==`object`&&!Array.isArray(e)}function Bo(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Vo(e,t,n,r){return typeof e==`string`&&zo(t)?Bo(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Ho(e,t,n){return e*(t+1)}function Uo(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}var U=(e,t,n)=>e+(t-e)*n,Wo=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Go=e=>Array.isArray(e)&&typeof e[0]!=`number`;function Ko(e,t){return Go(e)?e[Wo(0,e.length,t)]:e}function qo(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(Si(e,i),r--)}}function Jo(e,t,n,r,i,a){qo(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:U(i,a,r[o]),easing:Ko(n,o)})}function Yo(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function Xo(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Zo=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r};function Qo(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Zo(0,t,r);e.push(U(n,1,i))}}function $o(e){let t=[0];return Qo(t,e.length-1),t}var es=2e4;function ts(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function ns(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(ts(r),es);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Gn(i)}}function rs(e){return typeof e==`function`&&`applyToOptions`in e}var is=`easeInOut`,as=20;function os(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}else if(!Array.isArray(o)){l.set(o.name,Uo(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=Uo(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=ls(e),{delay:l=0,times:u=$o(c),type:p=`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=rs(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&fs(c)){let t=c[1]-c[0];e=Math.abs(t)}let t={...v};b!==void 0&&(t.duration=R(b));let n=ns(t,e,C);y=n.ease,b=n.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&Qo(u,T),c.length===1&&c.unshift(null),m){oo(m<as,`Repeat count too high, must be less than 20`,`repeat-count-high`),b=Ho(b,m);let e=[...c],t=[...u];y=Array.isArray(y)?[...y]:[y];let n=[...y];for(let r=0;r<m;r++){c.push(...e);for(let i=0;i<e.length;i++)u.push(t[i]+(r+1)),y.push(i===0?`linear`:Ko(n,i-1))}Yo(u,m)}let E=w+b;Jo(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(B(p)){let e=ss(p,s);_(m,h,cs(`default`,e))}else{let e=Vo(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=ss(r,s);for(let e in m)_(m[e],us(h,e),cs(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Xo);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(Zo(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(is)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s,u.transition[i]={...t,duration:f,ease:l,times:c,...n}}}),o}function ss(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function cs(e,t){return t[e]||(t[e]=[]),t[e]}function ls(e){return Array.isArray(e)?e:[e]}function us(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var ds=e=>typeof e==`number`,fs=e=>e.every(ds),ps=e=>Array.isArray(e);function ms(e,t,n){let r=e.getProps();return Mi(r,t,r.custom,e)}function hs(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ki(n))}function gs(e){return ps(e)?e[e.length-1]||0:e}function _s(e,t){let{transitionEnd:n={},transition:r={},...i}=ms(e,t)||{};for(let t in i={...i,...n},i)hs(e,t,gs(i[t]))}function vs(e){return!!(B(e)&&e.add)}function ys(e,t){let n=e.getValue(`willChange`);if(vs(n))return n.add(t);if(!n&&Rn.WillChange){let n=new Rn.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}var bs=`data-`+Do(`framerAppearId`);function xs(e){return e.props[bs]}var Ss=e=>e!==null;function Cs(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(Ss),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}var ws={type:`spring`,stiffness:500,damping:25,restSpeed:10},Ts=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Es={type:`keyframes`,duration:.8},Ds={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Os=(e,{keyframes:t})=>t.length>2?Es:qi.has(e)?e.startsWith(`scale`)?Ts(t[1]):ws:Ds;function ks({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}function As(e,t){return e?.[t]??e?.default??e}function js(e){e.duration=0,e.type}var Ms={layout:0,mainThread:0,waapi:0};function Ns(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ps({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Ns(s,r,e+1/3),a=Ns(s,r,e),o=Ns(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Fs(e,t){return n=>n>0?t:e}var Is=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ls=[Ca,xa,wa],Rs=e=>Ls.find(t=>t.test(e));function zs(e){let t=Rs(e);if(ao(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!t)return!1;let n=t.parse(e);return t===wa&&(n=Ps(n)),n}var Bs=(e,t)=>{let n=zs(e),r=zs(t);if(!n||!r)return Fs(e,t);let i={...n};return e=>(i.red=Is(n.red,r.red,e),i.green=Is(n.green,r.green,e),i.blue=Is(n.blue,r.blue,e),i.alpha=U(n.alpha,r.alpha,e),xa.transform(i))},Vs=new Set([`none`,`hidden`]);function Hs(e,t){return Vs.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}var Us=(e,t)=>n=>t(e(n)),Ws=(...e)=>e.reduce(Us);function Gs(e,t){return n=>U(e,t,n)}function Ks(e){return typeof e==`number`?Gs:typeof e==`string`?Xn(e)?Fs:H.test(e)?Bs:Xs:Array.isArray(e)?qs:typeof e==`object`?H.test(e)?Bs:Js:Fs}function qs(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Ks(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Js(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ks(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Ys(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Xs=(e,t)=>{let n=Ra.createTransformer(t),r=Na(e),i=Na(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Vs.has(e)&&!i.values.length||Vs.has(t)&&!r.values.length?Hs(e,t):Ws(qs(Ys(r,i),i.values),n):(ao(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,`complex-values-different`),Fs(e,t))};function Zs(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?U(e,t,n):Ks(e)(e,t)}var Qs=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>F.update(t,e),stop:()=>Vn(t),now:()=>I.isProcessing?I.timestamp:L.now()}},$s=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},ec=5;function tc(e,t,n){let r=Math.max(t-ec,0);return wi(n-e(r),t-r)}var W={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},nc=.001;function rc({duration:e=W.duration,bounce:t=W.bounce,velocity:n=W.velocity,mass:r=W.mass}){let i,a;ao(e<=R(W.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=Ji(W.minDamping,W.maxDamping,o),e=Ji(W.minDuration,W.maxDuration,Gn(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=oc(t,o),c=Math.exp(-i);return nc-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=oc(t**2,o);return(-i(t)+nc>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-nc+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=ac(i,a,s);if(e=R(e),isNaN(c))return{stiffness:W.stiffness,damping:W.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var ic=12;function ac(e,t,n){let r=n;for(let n=1;n<ic;n++)r-=e(r)/t(r);return r}function oc(e,t){return e*Math.sqrt(1-t*t)}var sc=[`duration`,`bounce`],cc=[`stiffness`,`damping`,`mass`];function lc(e,t){return t.some(t=>e[t]!==void 0)}function uc(e){let t={velocity:W.velocity,stiffness:W.stiffness,damping:W.damping,mass:W.mass,isResolvedFromDuration:!1,...e};if(!lc(e,cc)&&lc(e,sc))if(e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Ji(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:W.mass,stiffness:i,damping:a}}else{let n=rc(e);t={...t,...n,mass:W.mass},t.isResolvedFromDuration=!0}return t}function dc(e=W.visualDuration,t=W.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=uc({...n,velocity:-Gn(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Gn(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?W.restSpeed.granular:W.restSpeed.default,i||=v?W.restDelta.granular:W.restDelta.default;let y;if(h<1){let e=oc(_,h);y=t=>o-Math.exp(-h*_*t)*((m+h*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(h===1)y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=y(e);if(p)s.done=e>=d;else{let n=e===0?m:0;h<1&&(n=e===0?R(m):tc(y,e,t));let a=Math.abs(n)<=r,c=Math.abs(o-t)<=i;s.done=a&&c}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(ts(b),es),t=$s(t=>b.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return b}dc.applyToOptions=e=>{let t=ns(e,100,dc);return e.ease=t.ease,e.duration=R(t.duration),e.type=`keyframes`,e};function fc({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=dc({keyframes:[f.value,m(f.value)],velocity:tc(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function pc(e,t,n){let r=[],i=n||Rn.mix||Zs,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Ws(Array.isArray(t)?t[n]||P:t,a)),r.push(a)}return r}function mc(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(oo(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=pc(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Zo(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Ji(e[0],e[a-1],t)):l}function hc(e,t){return e.map(e=>e*t)}var gc=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_c=1e-7,vc=12;function yc(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=gc(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>_c&&++s<vc);return o}function bc(e,t,n,r){if(e===t&&n===r)return P;let i=t=>yc(t,0,1,e,n);return e=>e===0||e===1?e:gc(i(e),t,r)}var xc=bc(.42,0,1,1),Sc=bc(0,0,.58,1),Cc=bc(.42,0,.58,1),wc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Tc=e=>t=>1-e(1-t),Ec=bc(.33,1.53,.69,.99),Dc=Tc(Ec),Oc=wc(Dc),kc=e=>(e*=2)<1?.5*Dc(e):.5*(2-2**(-10*(e-1))),Ac=e=>1-Math.sin(Math.acos(e)),jc=Tc(Ac),Mc=wc(Ac),Nc=e=>Array.isArray(e)&&typeof e[0]==`number`,Pc={linear:P,easeIn:xc,easeInOut:Cc,easeOut:Sc,circIn:Ac,circInOut:Mc,circOut:jc,backIn:Dc,backInOut:Oc,backOut:Ec,anticipate:kc},Fc=e=>typeof e==`string`,Ic=e=>{if(Nc(e)){oo(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return bc(t,n,r,i)}else if(Fc(e))return oo(Pc[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),Pc[e];return e};function Lc(e,t){return e.map(()=>t||Cc).splice(0,e.length-1)}function Rc({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Go(r)?r.map(Ic):Ic(r),a={done:!1,value:t[0]},o=mc(hc(n&&n.length===t.length?n:$o(t),e),t,{ease:Array.isArray(i)?i:Lc(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var zc=e=>e!==null;function Bc(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(zc),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Vc={decay:fc,inertia:fc,tween:Rc,keyframes:Rc,spring:dc};function Hc(e){typeof e.type==`string`&&(e.type=Vc[e.type])}var Uc=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Wc=e=>e/100,Gc=class extends Uc{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var e,t;let{motionValue:n}=this.options;n&&n.updatedAt!==L.now()&&this.tick(L.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),(t=(e=this.options).onStop)==null||t.call(e))},Ms.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Hc(e);let{type:t=Rc,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Rc;process.env.NODE_ENV!==`production`&&s!==Rc&&oo(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,`spring-two-frames`),s!==Rc&&typeof o[0]!=`number`&&(this.mixKeyframes=Ws(Wc,Zs(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=ts(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=Ji(0,1,n)*o}let b=_?{done:!1,value:l[0]}:y.next(v);i&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==fc&&(b.value=Bc(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Gn(this.calculatedDuration)}get time(){return Gn(this.currentTime)}set time(e){var t;e=R(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(t=this.driver)==null||t.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(L.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Gn(this.currentTime))}play(){var e,t;if(this.isStopped)return;let{driver:n=Qs,startTime:r}=this.options;this.driver||=n(e=>this.tick(e)),(t=(e=this.options).onPlay)==null||t.call(e);let i=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=i):this.holdTime===null?this.startTime||=r??i:this.startTime=i-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(L.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){var e,t;this.notifyFinished(),this.teardown(),this.state=`finished`,(t=(e=this.options).onComplete)==null||t.call(e)}cancel(){var e,t;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(t=(e=this.options).onCancel)==null||t.call(e)}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,Ms.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var t;return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),(t=this.driver)==null||t.stop(),e.observe(this)}},Kc=e=>e.startsWith(`--`);function qc(e,t,n){Kc(t)?e.style.setProperty(t,n):e.style[t]=n}function Jc(e){let t;return()=>(t===void 0&&(t=e()),t)}var Yc=Jc(()=>window.ScrollTimeline!==void 0),Xc={};function Zc(e,t){let n=Jc(e);return()=>Xc[t]??n()}var Qc=Zc(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),$c=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,el={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:$c([0,.65,.55,1]),circOut:$c([.55,0,1,.45]),backIn:$c([.31,.01,.66,-.59]),backOut:$c([.33,1.53,.69,.99])};function tl(e,t){if(e)return typeof e==`function`?Qc()?$s(e,t):`ease-out`:Nc(e)?$c(e):Array.isArray(e)?e.map(e=>tl(e,t)||el.easeOut):el[e]}function nl(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=tl(s,i);Array.isArray(d)&&(u.easing=d),In.value&&Ms.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return In.value&&p.finished.finally(()=>{Ms.waapi--}),p}function rl({type:e,...t}){return rs(e)&&Qc()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var il=class extends Uc{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,oo(typeof e.type!=`string`,`Mini animate() doesn't support "type" as a string.`,`mini-spring`);let c=rl(e);this.animation=nl(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Bc(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):qc(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,t;(t=(e=this.animation).finish)==null||t.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,t;this.isPseudoElement||(t=(e=this.animation).commitStyles)==null||t.call(e)}get duration(){var e;let t=((e=this.animation.effect)?.getComputedTiming)?.call(e).duration||0;return Gn(Number(t))}get time(){return Gn(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=R(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){var n;return this.allowFlatten&&((n=this.animation.effect)==null||n.updateTiming({easing:`linear`})),this.animation.onfinish=null,e&&Yc()?(this.animation.timeline=e,P):t(this)}},al={anticipate:kc,backInOut:Oc,circInOut:Mc};function ol(e){return e in al}function sl(e){typeof e.ease==`string`&&ol(e.ease)&&(e.ease=al[e.ease])}var cl=10,ll=class extends il{constructor(e){sl(e),Hc(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Gc({...a,autoplay:!1}),s=R(this.finishedTime??this.time);t.setWithVelocity(o.sample(s-cl).value,o.sample(s).value,cl),o.stop()}},ul=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Ra.test(e)||e===`0`)&&!e.startsWith(`url(`));function dl(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function fl(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=ul(i,t),s=ul(a,t);return ao(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,`value-not-animatable`),!o||!s?!1:dl(e)||(n===`spring`||rs(n))&&r}var pl=new Set([`opacity`,`clipPath`,`filter`,`transform`]),ml=Jc(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function hl(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:c}=t.owner.getProps();return ml()&&n&&pl.has(n)&&(n!==`transform`||!c)&&!s&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var gl=40,_l=class extends Uc{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){var d;super(),this.stop=()=>{var e,t;this._animation&&(this._animation.stop(),(e=this.stopTimeline)==null||e.call(this)),(t=this.keyframeResolver)==null||t.cancel()},this.createdAt=L.now();let f={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u};this.keyframeResolver=new(l?.KeyframeResolver||ua)(o,(e,t,n)=>this.onKeyframesResolved(e,t,f,!n),s,c,l),(d=this.keyframeResolver)==null||d.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=L.now(),fl(e,i,a,o)||((Rn.instantAnimations||!s)&&l?.(Bc(e,n,t)),e[0]=e[e.length-1],js(n),n.repeat=0);let u={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>gl?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!c&&hl(u)?new ll({...u,element:u.motionValue.owner.current}):new Gc(u);d.finished.then(()=>this.notifyFinished()).catch(P),this.pendingTimeline&&=(this.stopTimeline=d.attachTimeline(this.pendingTimeline),void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),la()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}},vl=(e,t,n,r={},i,a)=>o=>{let s=As(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=R(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};ks(s)||Object.assign(u,Os(e,u)),u.duration&&=R(u.duration),u.repeatDelay&&=R(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(js(u),u.delay===0&&(d=!0)),(Rn.instantAnimations||Rn.skipAnimations)&&(d=!0,js(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Cs(u.keyframes,s);if(e!==void 0){F.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Gc(u):new _l(u)};function yl({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function bl(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);let c=[],l=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||l&&yl(l,t))continue;let o={delay:n,...As(a||{},t)},u=r.get();if(u!==void 0&&!r.isAnimating&&!Array.isArray(i)&&i===u&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let n=xs(e);if(n){let e=window.MotionHandoffAnimation(n,t,F);e!==null&&(o.startTime=e,d=!0)}}ys(e,t),r.start(vl(t,r,i,e.shouldReduceMotion&&io.has(t)?{type:!1}:o,e,d));let f=r.animation;f&&c.push(f)}return o&&Promise.all(c).then(()=>{F.update(()=>{o&&_s(e,o)})}),c}function xl(e,t){return e in t}var Sl=class extends ro{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(xl(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return V()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}};function Cl(e){return typeof e==`object`&&!!e}function wl(e){return Cl(e)&&`ownerSVGElement`in e}function Tl(e){return wl(e)&&e.tagName===`svg`}function El(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=wl(e)&&!Tl(e)?new Io(t):new Eo(t);n.mount(e),Or.set(e,n)}function Dl(e){let t=new Sl({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),Or.set(e,t)}function Ol(e,t,n){let r=B(e)?e:ki(e);return r.start(vl(``,r,t,n)),r.animation}function kl(e,t){return B(e)||typeof e==`number`||typeof e==`string`&&!zo(t)}function Al(e,t,n,r){let i=[];if(kl(e,t))i.push(Ol(e,zo(t)&&t.default||t,n&&(n.default||n)));else{let a=Vo(e,t,r),o=a.length;oo(!!o,`No valid elements provided.`,`no-valid-elements`);for(let e=0;e<o;e++){let r=a[e];oo(r!==null,`You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.`,`animate-null`);let s=r instanceof Element?El:Dl;Or.has(r)||s(r);let c=Or.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...bl(c,{...t,transition:l},{}))}}return i}function jl(e,t,n){let r=[];return os(e,t,n,{spring:dc}).forEach(({keyframes:e,transition:t},n)=>{r.push(...Al(n,e,t))}),r}var Ml=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}},Nl=class extends Ml{then(e,t){return this.finished.finally(e).then(()=>{})}};function Pl(e){return Array.isArray(e)&&e.some(Array.isArray)}function Fl(e){function t(t,n,r){let i=[];i=Pl(t)?jl(t,n,e):Al(t,n,r,e);let a=new Nl(i);return e&&(e.animations.push(a),a.finished.then(()=>{Si(e.animations,a)})),a}return t}var Il=Fl(),Ll=[`initial`,`animate`,`whileInView`,`whileHover`,`whilePress`,`whileDrag`,`whileFocus`,`exit`],Rl=class extends or{constructor(e){var t;super(e),this.animateUpdates=({controlActiveState:e,directAnimate:t,directTransition:n,controlDelay:r=0,isExit:i}={})=>{let{reducedMotion:a}=this.state.options.motionConfig;this.state.visualElement.shouldReduceMotion=a===`always`||a===`user`&&!!ui.current;let o=this.state.target;this.state.target={...this.state.baseTarget};let s={};s=this.resolveStateAnimation({controlActiveState:e,directAnimate:t,directTransition:n}),this.state.finalTransition=s;let c=this.createAnimationFactories(o,s,r),{getChildAnimations:l}=this.setupChildAnimations(s,this.state.activeStates);return this.executeAnimations({factories:c,getChildAnimations:l,transition:s,controlActiveState:e,isExit:i})},this.state.visualElement=Lo(this.state.options.as,{presenceContext:null,parent:this.state.parent?.visualElement,props:{...this.state.options,whileTap:this.state.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.state.baseTarget}},reducedMotionConfig:this.state.options.motionConfig.reducedMotion}),(t=this.state.visualElement.parent)==null||t.addChild(this.state.visualElement),this.state.animateUpdates=this.animateUpdates,this.state.isMounted()&&this.state.startAnimation()}updateAnimationControlsSubscription(){let{animate:e}=this.state.options;ar(e)&&(this.unmountControls=e.subscribe(this.state))}executeAnimations({factories:e,getChildAnimations:t,transition:n,controlActiveState:r,isExit:i=!1}){let a=()=>Promise.all(e.map(e=>e()).filter(Boolean)),o={...this.state.target},s=this.state.element,c=e=>{var t,n;s.dispatchEvent(kr(`motionstart`,o)),(n=(t=this.state.options).onAnimationStart)==null||n.call(t,o),e.then(()=>{var e,t;s.dispatchEvent(kr(`motioncomplete`,o,i)),(t=(e=this.state.options).onAnimationComplete)==null||t.call(e,o)}).catch(P)},l=()=>{let e=n?.when?(n.when===`beforeChildren`?a():t()).then(()=>n.when===`beforeChildren`?t():a()):Promise.all([a(),t()]);return c(e),e};return r?l:l()}setupChildAnimations(e,t){let n=this.state.visualElement;if(!n.variantChildren?.size||!t)return{getChildAnimations:()=>Promise.resolve()};let{staggerChildren:r=0,staggerDirection:i=1,delayChildren:a=0}=e||{},o=n.variantChildren.size,s=(o-1)*r,c=typeof a==`function`,l=c?e=>a(e,o):i===1?(e=0)=>e*r:(e=0)=>s-e*r,u=Array.from(n.variantChildren).map((e,n)=>e.state.animateUpdates({controlActiveState:t,controlDelay:(c?0:a)+l(n)}));return{getChildAnimations:()=>Promise.all(u.map(e=>e()))}}createAnimationFactories(e,t,n){let r=[];return Object.keys(this.state.target).forEach(i=>{var a;if(!ur(e[i],this.state.target[i]))return;(a=this.state.baseTarget)[i]??(a[i]=Yr.get(this.state.element,i));let o=this.state.target[i]===`none`&&p(Hr[i])?Hr[i]:this.state.target[i];r.push(()=>Il(this.state.element,{[i]:o},{...t?.[i]||t,delay:(t?.[i]?.delay||t?.delay||0)+n}))}),r}resolveStateAnimation({controlActiveState:e,directAnimate:t,directTransition:n}){let r=this.state.options.transition,i={},{variants:a,custom:o,transition:s,animatePresenceContext:c}=this.state.options,l=o??c?.custom;return this.state.activeStates={...this.state.activeStates,...e},Ll.forEach(e=>{if(!this.state.activeStates[e]||ar(this.state.options[e]))return;let t=this.state.options[e],n=p(t)?lr(t,a,l):void 0;if(this.state.visualElement.isVariantNode){let t=lr(this.state.context[e],a,l);n=t?Object.assign(t||{},n):Object.assign(i,n)}n&&(e!==`initial`&&(r=n.transition||this.state.options.transition||{}),i=Object.assign(i,n))}),t&&(i=lr(t,a,l),r=i.transition||n||s),Object.entries(i).forEach(([e,t])=>{e!==`transition`&&(this.state.target[e]=t)}),r}mount(){let{element:e}=this.state;Tr.set(e,this.state),Or.get(e)||(this.state.visualElement.mount(e),Or.set(e,this.state.visualElement)),this.state.visualElement.state=this.state,this.updateAnimationControlsSubscription();let t=this.state.visualElement,n=t.parent;if(t.enteringChildren=void 0,this.state.parent?.isMounted()&&!t.isControllingVariants&&(n?.enteringChildren)?.has(t)){let{delayChildren:e}=this.state.parent.finalTransition||{};this.animateUpdates({controlActiveState:this.state.parent.activeStates,controlDelay:Ro(n.enteringChildren,t,e)})()}}update(){let{animate:e}=this.state.options,{animate:t}=this.state.visualElement.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;(e=this.unmountControls)==null||e.call(this)}};function zl(e){return Cl(e)&&`offsetHeight`in e}var Bl={x:!1,y:!1};function Vl(){return Bl.x||Bl.y}var Hl=(e,t)=>t?e===t?!0:Hl(e,t.parentElement):!1,Ul=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function Wl(e,t){let n=Bo(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}var Gl=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Kl(e){return Gl.has(e.tagName)||e.tabIndex!==-1}var ql=new WeakSet;function Jl(e){return t=>{t.key===`Enter`&&e(t)}}function Yl(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Xl=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Jl(()=>{if(ql.has(n))return;Yl(n,`down`);let e=Jl(()=>{Yl(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Yl(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Zl(e){return Ul(e)&&!Vl()}function Ql(e,t,n={}){let[r,i,a]=Wl(e,n),o=e=>{let r=e.currentTarget;if(!Zl(e))return;ql.add(r);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),ql.has(r)&&ql.delete(r),Zl(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||Hl(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),zl(e)&&(e.addEventListener(`focus`,e=>Xl(e,i)),!Kl(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function $l(e){return{point:{x:e.pageX,y:e.pageY}}}function eu(e,t,n){let r=e.options;r.whilePress&&e.setActive(`whilePress`,n===`Start`);let i=r[`onPress${n===`End`?``:n}`];i&&F.postRender(()=>i(t,$l(t)))}var tu=class extends or{isActive(){let{whilePress:e,onPress:t,onPressCancel:n,onPressStart:r}=this.state.options;return!!(e||t||n||r)}constructor(e){super(e)}mount(){this.register()}update(){let{whilePress:e,onPress:t,onPressCancel:n,onPressStart:r}=this.state.options;e||t||n||r||this.register()}register(){let e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=Ql(e,(e,t)=>(eu(this.state,t,`Start`),(e,{success:t})=>eu(this.state,e,t?`End`:`Cancel`)),{useGlobalTarget:this.state.options.globalPressTarget}))}};function nu(e){return!(e.pointerType===`touch`||Vl())}function ru(e,t,n={}){let[r,i,a]=Wl(e,n),o=e=>{if(!nu(e))return;let{target:n}=e,r=t(n,e);if(typeof r!=`function`||!n)return;let a=e=>{nu(e)&&(r(e),n.removeEventListener(`pointerleave`,a))};n.addEventListener(`pointerleave`,a,i)};return r.forEach(e=>{e.addEventListener(`pointerenter`,o,i)}),a}function iu(e,t,n){let r=e.options;r.whileHover&&e.setActive(`whileHover`,n===`Start`);let i=r[`onHover${n}`];i&&F.postRender(()=>i(t,$l(t)))}var au=class extends or{isActive(){let{whileHover:e,onHoverStart:t,onHoverEnd:n}=this.state.options;return!!(e||t||n)}constructor(e){super(e)}mount(){this.register()}update(){let{whileHover:e,onHoverStart:t,onHoverEnd:n}=this.state.visualElement.prevProps;e||t||n||this.register()}register(){let e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=ru(e,(e,t)=>(iu(this.state,t,`Start`),e=>{iu(this.state,e,`End`)})))}},ou={some:0,all:1};function su(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=Bo(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n)if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:ou[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function cu(e,t,n){let r=e.options;r.whileInView&&e.setActive(`whileInView`,n===`Enter`);let i=r[`onViewport${n}`];i&&F.postRender(()=>i(t))}var lu=class extends or{isActive(){let{whileInView:e,onViewportEnter:t,onViewportLeave:n}=this.state.options;return!!(e||t||n)}constructor(e){super(e)}startObserver(){let e=this.state.element;if(!e||!this.isActive())return;this.unmount();let{once:t,...n}=this.state.options.inViewOptions||{};this.unmount=su(e,(e,n)=>{if(cu(this.state,n,`Enter`),!t)return e=>{cu(this.state,n,`Leave`)}},n)}mount(){this.startObserver()}update(){let{props:e,prevProps:t}=this.state.visualElement;[`amount`,`margin`,`root`].some(uu(e,t))&&this.startObserver()}};function uu({inViewOptions:e={}},{inViewOptions:t={}}={}){return n=>e[n]!==t[n]}function du(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var fu=class extends or{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.state.element.matches(`:focus-visible`)}catch{e=!0}e&&(this.state.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&=(this.state.setActive(`whileFocus`,!1),!1)}mount(){this.unmount=Ws(du(this.state.element,`focus`,()=>this.onFocus()),du(this.state.element,`blur`,()=>this.onBlur()))}},pu=(e,t)=>e.depth-t.depth,mu=class{constructor(){this.children=[],this.isDirty=!1}add(e){xi(this.children,e),this.isDirty=!0}remove(e){Si(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(pu),this.isDirty=!1,this.children.forEach(e)}};function hu(e){return B(e)?e.get():e}var gu=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],_u=gu.length,vu=e=>typeof e==`string`?parseFloat(e):e,yu=e=>typeof e==`number`||z.test(e);function bu(e,t,n,r,i,a){i?(e.opacity=U(0,n.opacity??1,Su(r)),e.opacityExit=U(t.opacity??1,0,Cu(r))):a&&(e.opacity=U(t.opacity??1,n.opacity??1,r));for(let i=0;i<_u;i++){let a=`border${gu[i]}Radius`,o=xu(t,a),s=xu(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||yu(o)===yu(s)?(e[a]=Math.max(U(vu(o),vu(s),r),0),(Gr.test(s)||Gr.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=U(t.rotate||0,n.rotate||0,r))}function xu(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Su=wu(0,.5,jc),Cu=wu(.5,.95,P);function wu(e,t,n){return r=>r<e?0:r>t?1:n(Zo(e,t,r))}function Tu(e,t){e.min=t.min,e.max=t.max}function G(e,t){Tu(e.x,t.x),Tu(e.y,t.y)}function Eu(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Du(e){return e===void 0||e===1}function Ou({scale:e,scaleX:t,scaleY:n}){return!Du(e)||!Du(t)||!Du(n)}function ku(e){return Ou(e)||Au(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Au(e){return ju(e.x)||ju(e.y)}function ju(e){return e&&e!==`0%`}function Mu(e,t,n){return n+t*(e-n)}function Nu(e,t,n,r,i){return i!==void 0&&(e=Mu(e,i,r)),Mu(e,n,r)+t}function Pu(e,t=0,n=1,r,i){e.min=Nu(e.min,t,n,r,i),e.max=Nu(e.max,t,n,r,i)}function Fu(e,{x:t,y:n}){Pu(e.x,t.translate,t.scale,t.originPoint),Pu(e.y,n.translate,n.scale,n.originPoint)}var Iu=.999999999999,Lu=1.0000000000001;function Ru(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Vu(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Fu(e,o)),r&&ku(a.latestValues)&&Vu(e,a.latestValues))}t.x<Lu&&t.x>Iu&&(t.x=1),t.y<Lu&&t.y>Iu&&(t.y=1)}function zu(e,t){e.min+=t,e.max+=t}function Bu(e,t,n,r,i=.5){Pu(e,t,n,U(e.min,e.max,i),r)}function Vu(e,t){Bu(e.x,t.x,t.scaleX,t.scale,t.originX),Bu(e.y,t.y,t.scaleY,t.scale,t.originY)}var Hu=1e-4,Uu=1-Hu,Wu=1+Hu,Gu=.01,Ku=0-Gu,qu=0+Gu;function K(e){return e.max-e.min}function Ju(e,t,n){return Math.abs(e-t)<=n}function Yu(e,t,n,r=.5){e.origin=r,e.originPoint=U(t.min,t.max,e.origin),e.scale=K(n)/K(t),e.translate=U(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Uu&&e.scale<=Wu||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ku&&e.translate<=qu||isNaN(e.translate))&&(e.translate=0)}function Xu(e,t,n,r){Yu(e.x,t.x,n.x,r?r.originX:void 0),Yu(e.y,t.y,n.y,r?r.originY:void 0)}function Zu(e,t,n){e.min=n.min+t.min,e.max=e.min+K(t)}function Qu(e,t,n){Zu(e.x,t.x,n.x),Zu(e.y,t.y,n.y)}function $u(e,t,n){e.min=t.min-n.min,e.max=e.min+K(t)}function ed(e,t,n){$u(e.x,t.x,n.x),$u(e.y,t.y,n.y)}function td(e,t,n,r,i){return e-=t,e=Mu(e,1/n,r),i!==void 0&&(e=Mu(e,1/i,r)),e}function nd(e,t=0,n=1,r=.5,i,a=e,o=e){if(Gr.test(t)&&(t=parseFloat(t),t=U(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=U(a.min,a.max,r);e===a&&(s-=t),e.min=td(e.min,t,n,s,i),e.max=td(e.max,t,n,s,i)}function rd(e,t,[n,r,i],a,o){nd(e,t[n],t[r],t[i],t.scale,a,o)}var id=[`x`,`scaleX`,`originX`],ad=[`y`,`scaleY`,`originY`];function od(e,t,n,r){rd(e.x,t,id,n?n.x:void 0,r?r.x:void 0),rd(e.y,t,ad,n?n.y:void 0,r?r.y:void 0)}function sd(e){return e.translate===0&&e.scale===1}function cd(e){return sd(e.x)&&sd(e.y)}function ld(e,t){return e.min===t.min&&e.max===t.max}function ud(e,t){return ld(e.x,t.x)&&ld(e.y,t.y)}function dd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function fd(e,t){return dd(e.x,t.x)&&dd(e.y,t.y)}function pd(e){return K(e.x)/K(e.y)}function md(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var hd=class{constructor(){this.members=[]}add(e){xi(this.members,e),e.scheduleRender()}remove(e){if(Si(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e];if(t.isPresent!==!1){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function gd(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}function _d(e){return[e(`x`),e(`y`)]}var vd={hasAnimatedSinceResize:!0,hasEverUpdated:!1},yd={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},bd=[``,`X`,`Y`,`Z`],xd=1e3,Sd=0;function Cd(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function wd(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=xs(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,F,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&wd(r)}function Td({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Sd++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,In.value&&(yd.nodes=yd.calculatedTargetDeltas=yd.calculatedProjections=0),this.nodes.forEach(Od),this.nodes.forEach(Fd),this.nodes.forEach(Id),this.nodes.forEach(kd),In.addProjectionMetrics&&In.addProjectionMetrics(yd)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new mu)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ci),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=wl(t)&&!Tl(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;F.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Kn(i,250),vd.hasAnimatedSinceResize&&(vd.hasAnimatedSinceResize=!1,this.nodes.forEach(Pd)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Ud,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!fd(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...As(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||Pd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Vn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ld),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&wd(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(jd);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Md);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Nd),this.nodes.forEach(Ed),this.nodes.forEach(Dd)):this.nodes.forEach(Md),this.clearAllSnapshots();let e=L.now();I.delta=Ji(0,1e3/60,e-I.timestamp),I.timestamp=e,I.isProcessing=!0,Hn.update.process(I),Hn.preRender.process(I),Hn.render.process(I),I.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eo.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ad),this.sharedNodes.forEach(Rd)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,F.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){F.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!K(this.snapshot.measuredBox.x)&&!K(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=V(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!cd(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||ku(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),qd(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return V();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Yd))){let{scroll:e}=this.root;e&&(zu(t.x,e.offset.x),zu(t.y,e.offset.y))}return t}removeElementScroll(e){let t=V();if(G(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&G(t,e),zu(t.x,i.offset.x),zu(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=V();G(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Vu(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),ku(r.latestValues)&&Vu(n,r.latestValues)}return ku(this.latestValues)&&Vu(n,this.latestValues),n}removeTransform(e){let t=V();G(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!ku(n.latestValues))continue;Ou(n.latestValues)&&n.updateSnapshot();let r=V();G(r,n.measurePageBox()),od(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return ku(this.latestValues)&&od(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==I.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!(!this.layout||!(r||i))){if(this.resolvedRelativeTargetAt=I.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&this.animationProgress!==1?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=V(),this.relativeTargetOrigin=V(),ed(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),G(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=V(),this.targetWithTransforms=V()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Qu(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):G(this.target,this.layout.layoutBox),Fu(this.target,this.targetDelta)):G(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&this.animationProgress!==1?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=V(),this.relativeTargetOrigin=V(),ed(this.relativeTargetOrigin,this.target,e.target),G(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}In.value&&yd.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ou(this.parent.latestValues)||Au(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===I.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;G(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Ru(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=V());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Eu(this.prevProjectionDelta.x,this.projectionDelta.x),Eu(this.prevProjectionDelta.y,this.projectionDelta.y)),Xu(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!md(this.projectionDelta.x,this.prevProjectionDelta.x)||!md(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),In.value&&yd.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if((t=this.options.visualElement)==null||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=si(),this.projectionDelta=si(),this.projectionDeltaWithTransform=si()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=si();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=V(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(Hd));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;zd(a.x,e.x,n),zd(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ed(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Vd(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&ud(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=V(),G(d,this.relativeTarget)),s&&(this.animationValues=i,bu(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){var t,n;this.notifyListeners(`animationStart`),(t=this.currentAnimation)==null||t.stop(),(n=this.resumingFrom?.currentAnimation)==null||n.stop(),this.pendingAnimation&&=(Vn(this.pendingAnimation),void 0),this.pendingAnimation=F.update(()=>{vd.hasAnimatedSinceResize=!0,Ms.layout++,this.motionValue||=ki(0),this.currentAnimation=Ol(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{Ms.layout--},onComplete:()=>{Ms.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(xd),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Jd(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||V();let t=K(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=K(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}G(t,n),Vu(t,i),Xu(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new hd),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Cd(`z`,e,r,this.animationValues);for(let t=0;t<bd.length;t++)Cd(`rotate${bd[t]}`,e,r,this.animationValues),Cd(`skew${bd[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=hu(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=hu(t?.pointerEvents)||``),this.hasProjected&&!ku(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=gd(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit,Qn){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Qn[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?hu(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(jd),this.root.sharedNodes.clear()}}}function Ed(e){e.updateLayout()}function Dd(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?_d(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=K(r);r.min=n[e].min,r.max=r.min+i}):Jd(i,t.layoutBox,n)&&_d(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=K(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=si();Xu(o,n,t.layoutBox);let s=si();a?Xu(s,e.applyTransform(r,!0),t.measuredBox):Xu(s,n,t.layoutBox);let c=!cd(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=V();ed(o,t.layoutBox,i.layoutBox);let s=V();ed(s,n,a.layoutBox),fd(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Od(e){In.value&&yd.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function kd(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ad(e){e.clearSnapshot()}function jd(e){e.clearMeasurements()}function Md(e){e.isLayoutDirty=!1}function Nd(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Pd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Fd(e){e.resolveTargetDelta()}function Id(e){e.calcProjection()}function Ld(e){e.resetSkewAndRotation()}function Rd(e){e.removeLeadSnapshot()}function zd(e,t,n){e.translate=U(t.translate,0,n),e.scale=U(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Bd(e,t,n,r){e.min=U(t.min,n.min,r),e.max=U(t.max,n.max,r)}function Vd(e,t,n,r){Bd(e.x,t.x,n.x,r),Bd(e.y,t.y,n.y,r)}function Hd(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Ud={duration:.45,ease:[.4,0,.1,1]},Wd=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Gd=Wd(`applewebkit/`)&&!Wd(`chrome/`)?Math.round:P;function Kd(e){e.min=Gd(e.min),e.max=Gd(e.max)}function qd(e){Kd(e.x),Kd(e.y)}function Jd(e,t,n){return e===`position`||e===`preserve-aspect`&&!Ju(pd(t),pd(n),.2)}function Yd(e){return e!==e.root&&e.scroll?.wasRoot}function Xd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Zd=Td({attachResizeListener:(e,t)=>Xd(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Qd={current:void 0},$d=Td({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Qd.current){let e=new Zd({});e.mount(window),e.setOptions({layoutScroll:!0}),Qd.current=e}return Qd.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`});function ef(e){if(e)return e.options.allowProjection===!1?ef(e.parent):e.projection}function tf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var nf={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(z.test(e))e=parseFloat(e);else return e;return`${tf(e,t.target.x)}% ${tf(e,t.target.y)}%`}},rf={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Ra.parse(e);if(i.length>5)return r;let a=Ra.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=U(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},af={borderRadius:{...nf,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:nf,borderTopRightRadius:nf,borderBottomLeftRadius:nf,borderBottomRightRadius:nf,boxShadow:rf};function of(e){return typeof e==`object`&&!!e&&`nodeType`in e}var sf=class extends or{constructor(e){super(e),$n(af)}initProjection(){let e=this.state.options;this.state.visualElement.projection=new $d(this.state.visualElement.latestValues,e[`data-framer-portal-id`]?void 0:ef(this.state.visualElement.parent)),this.state.visualElement.projection.isPresent=!0,this.setOptions()}beforeMount(){this.initProjection()}setOptions(){let e=this.state.options;this.state.visualElement.projection.setOptions({layout:e.layout,layoutId:e.layoutId,alwaysMeasureLayout:!!e.drag||e.dragConstraints&&of(e.dragConstraints),visualElement:this.state.visualElement,animationType:typeof e.layout==`string`?e.layout:`both`,layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{if(!this.state.visualElement.projection?.isPresent){let e=yr.get(this.state.element);this.state.isSafeToRemove=!0,e&&e({detail:{isExit:!0}},!0)}}})}update(){this.setOptions()}mount(){var e;(e=this.state.visualElement.projection)==null||e.mount(this.state.element)}};function cf(e){return e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1}function lf(e,t=`page`){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}function uf(e){return t=>cf(t)&&e(t,lf(t))}function df(e,t,n,r){return du(e,t,uf(n),r)}function ff(e){let t=null;return()=>t===null?(t=e,()=>{t=null}):!1}var pf=ff(`dragHorizontal`),mf=ff(`dragVertical`);function hf(e){let t=!1;if(e===`y`)t=mf();else if(e===`x`)t=pf();else{let e=pf(),n=mf();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function gf(e){return e.max-e.min}function _f(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?U(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?U(n,e,r.max):Math.min(e,n)),e}var vf=.35;function yf(e,{top:t,left:n,bottom:r,right:i}){return{x:bf(e.x,n,i),y:bf(e.y,t,r)}}function bf(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function xf(e=vf){return e===!1?e=0:e===!0&&(e=vf),{x:Sf(e,`left`,`right`),y:Sf(e,`top`,`bottom`)}}function Sf(e,t,n){return{min:Cf(e,t),max:Cf(e,n)}}function Cf(e,t){return typeof e==`number`?e:e[t]||0}function wf(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}function Tf(e,t){return{x:Ef(e.x,t.x),y:Ef(e.y,t.y)}}function Ef(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Df(e,t){let n=.5,r=gf(e),i=gf(t);return i>r?n=Zo(t.min,t.max-r,e.min):r>i&&(n=Zo(e.min,e.max-i,t.min)),Ji(0,1,n)}var Of=(e,t)=>Math.abs(e-t);function kf(e,t){let n=Of(e.x,t.x),r=Of(e.y,t.y);return Math.sqrt(n**2+r**2)}var Af=class{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=Nf(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=kf(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=I;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=jf(t,this.transformPagePoint),F.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Nf(e.type===`pointercancel`?this.lastMoveEventInfo:jf(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!cf(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let a=jf(lf(e),this.transformPagePoint),{point:o}=a,{timestamp:s}=I;this.history=[{...o,timestamp:s}];let{onSessionStart:c}=t;c&&c(e,Nf(a,this.history)),this.removeListeners=Ws(df(this.contextWindow,`pointermove`,this.handlePointerMove),df(this.contextWindow,`pointerup`,this.handlePointerUp),df(this.contextWindow,`pointercancel`,this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Vn(this.updatePoint)}};function jf(e,t){return t?{point:t(e.point)}:e}function Mf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nf({point:e},t){return{point:e,delta:Mf(e,Ff(t)),offset:Mf(e,Pf(t)),velocity:If(t,.1)}}function Pf(e){return e[0]}function Ff(e){return e[e.length-1]}function If(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Ff(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>R(t)));)n--;if(!r)return{x:0,y:0};let a=Gn(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var Lf=()=>({min:0,max:0});function Rf(){return{x:Lf(),y:Lf()}}function zf(e){return[e(`x`),e(`y`)]}function Bf(e){return!!(B(e)&&e.add)}function Vf(e,t){let n=e.getValue(`willChange`);if(Bf(n))return n.add(t)}function Hf({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Uf(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Wf({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Gf(e,t){e.min+=t,e.max+=t}function Kf(e,t){return Hf(Uf(e.getBoundingClientRect(),t))}function qf(e,t,n){let r=Kf(e,n),{scroll:i}=t;return i&&(Gf(r.x,i.offset.x),Gf(r.y,i.offset.y)),r}function Jf(e){return!yr.has(e.current)}function Yf({current:e}){return e?e.ownerDocument.defaultView:null}var Xf=new WeakMap,Zf=class{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Rf(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){if(!Jf(this.visualElement))return;let n=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(lf(e,`page`).point)},r=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=hf(n),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),zf(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Gr.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=gf(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&F.postRender(()=>i(e,t)),Vf(this.visualElement,`transform`),this.visualElement.state.setActive(`whileDrag`,!0))},i=(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=$f(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},a=(e,t)=>this.stop(e,t),o=()=>zf(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:s}=this.getProps();this.panSession=new Af(e,{onSessionStart:n,onStart:r,onMove:i,onSessionEnd:a,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:Yf(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&F.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.visualElement.state.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Qf(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=_f(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&of(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=yf(n.layoutBox,e):this.constraints=!1,this.elastic=xf(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&zf(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=wf(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!of(e))return!1;let n=e;cr(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=qf(n,r.root,this.visualElement.getTransformPagePoint()),a=Tf(r.layout.layoutBox,i);if(t){let e=t(Wf(a));this.hasMutatedConstraints=!!e,e&&(a=Hf(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=zf(o=>{if(!Qf(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Vf(this.visualElement,e),n.start(vl(e,n,0,t,this.visualElement,!1))}stopAnimation(){Jf(this.visualElement)&&zf(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){zf(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){zf(t=>{let{drag:n}=this.getProps();if(!Qf(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-U(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!of(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};zf(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Df({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),zf(t=>{if(!Qf(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(U(i,a,r[t]))})}addListeners(){if(!this.visualElement.current)return;Xf.set(this.visualElement,this);let e=this.visualElement.current,t=df(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();of(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),F.read(n);let a=du(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(zf(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=vf,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Qf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function $f(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var ep=class extends or{constructor(e){super(e),this.removeGroupControls=P,this.removeListeners=P,this.controls=new Zf(e.visualElement)}mount(){let{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||P}unmount(){this.removeGroupControls(),this.removeListeners()}},tp=class extends or{constructor(e){super(e),$n(af)}beforeUpdate(){this.state.willUpdate(`beforeUpdate`)}update(){this.didUpdate()}didUpdate(){var e;(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&((e=this.state.visualElement.projection?.root)==null||e.didUpdate())}mount(){var e;let t=this.state.options,n=this.state.options.layoutGroup;if(t.layout||t.layoutId){let t=this.state.visualElement.projection;t&&(t.promote(),(e=n?.group)==null||e.add(t)),vd.hasEverUpdated=!0}this.didUpdate()}beforeUnmount(){let e=this.state.visualElement.projection;e&&(this.state.willUpdate(`beforeUnmount`),this.state.options.layoutId?(e.isPresent=!1,e.relegate()):this.state.options.layout&&(this.state.isSafeToRemove=!0))}unmount(){let e=this.state.options.layoutGroup,t=this.state.visualElement.projection;t&&(e?.group&&(this.state.options.layout||this.state.options.layoutId)&&e.group.remove(t),this.didUpdate())}};function np(e){return(t,n)=>{e&&F.postRender(()=>e(t,n))}}var rp=[Rl,tu,au,lu,fu,sf,class extends or{constructor(){super(...arguments),this.removePointerDownListener=P}onPointerDown(e){this.session=new Af(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:Yf(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:np((e,t)=>{let{onPanSessionStart:n}=this.state.options;n&&n(e,t)}),onStart:np((e,t)=>{let{onPanStart:n}=this.state.options;n&&n(e,t)}),onMove:(e,t)=>{let{onPan:n}=this.state.options;n&&n(e,t)},onEnd:(e,t)=>{let{onPanEnd:n}=this.state.options;delete this.session,n&&F.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=df(this.state.element,`pointerdown`,this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},ep,tp],ip={reducedMotion:`never`,transition:void 0,nonce:void 0},[ap,op]=er(`MotionConfig`);function sp(){return ap((0,t.computed)(()=>ip))}function cp(e){let t=new WeakMap,n=sp();function r(r){if(e.mode!==`popLayout`)return;let i=r.element,a=i.offsetParent,o=a instanceof HTMLElement&&a.offsetWidth||0,s={height:i.offsetHeight||0,width:i.offsetWidth||0,top:i.offsetTop,left:i.offsetLeft,right:0};s.right=o-s.width-s.left;let c=e.anchorX===`left`?`left: ${s.left}`:`right: ${s.right}`;r.element.dataset.motionPopId=r.id;let l=document.createElement(`style`);n.value.nonce&&(l.nonce=n.value.nonce),t.set(r,l),document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
2
2
  [data-motion-pop-id="${r.id}"] {
3
3
  position: absolute !important;
4
4
  width: ${s.width}px !important;
@@ -6,6 +6,6 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
6
6
  top: ${s.top}px !important;
7
7
  ${c}px !important;
8
8
  }
9
- `)}function i(e){let n=t.get(e);n&&(t.delete(e),H.render(()=>{document.head.removeChild(n)}))}return{addPopStyle:r,removePopStyle:i,styles:t}}function Bg(e){return Promise.resolve().then(()=>{e()})}var Vg=(0,t.defineComponent)({name:`AnimatePresence`,inheritAttrs:!0,__name:`AnimatePresence`,props:{mode:{default:`sync`},initial:{type:Boolean,default:!0},as:{},custom:{},onExitComplete:{},anchorX:{default:`left`}},setup(e){let n=e;ts(n);let{addPopStyle:r,removePopStyle:i,styles:a}=zg(n);function o(e){let t=e;for(;t;){if(rs.get(t))return t;t=t.firstElementChild}return null}function s(e){let t=rs.get(e);t&&(i(t),t.isVShow=!0,Qo(e),Bg(()=>{t.setActive(`exit`,!1)}))}let c=new Map;(0,t.onUnmounted)(()=>{c.clear()});function l(e,t){var s;let l=o(e),u=rs.get(l);if(!l||!u){t(),c.size===0&&((s=n.onExitComplete)==null||s.call(n));return}c.set(l,!0),Qo(l),r(u);function d(e){var r;if(e?.detail?.isExit){if(u.visualElement.projection?.animationProgress>0&&!u.isSafeToRemove&&!u.isVShow)return;Qo(l),c.delete(l),c.size===0&&((r=n.onExitComplete)==null||r.call(n)),a.has(u)?i(u):u.willUpdate(`done`),t(),l.isConnected||u.unmount(!0)}}Bg(()=>{u.setActive(`exit`,!0),Zo.set(l,d),l.addEventListener(`motioncomplete`,d)})}let u=(0,t.computed)(()=>n.mode===`wait`?{mode:n.mode===`wait`?`out-in`:void 0}:{tag:n.as});return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.mode===`wait`?t.Transition:t.TransitionGroup),(0,t.mergeProps)({css:!1},u.value,{appear:``,onEnter:s,onLeave:l}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},16))}});function Hg(e){if(e)return e.nodeType===3||e.nodeType===8?Hg(e.nextSibling):e}var[Ug,Wg]=Mo(`LazyMotionContext`);function Gg(e){let n=No(null),r=Fo({}),i=Rg(),a=$o({}),o=Ug({features:(0,t.ref)([]),strict:!1});if(process.env.NODE_ENV!==`production`&&e.features?.length&&o.strict){let t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?zo(!1,t):Bo(!1,t)}let s=(0,t.useAttrs)();function c(){return r.id&&e.layoutId?`${r.id}-${e.layoutId}`:e.layoutId||void 0}function l(){return{...e,lazyMotionContext:o,layoutId:c(),transition:e.transition??i.value.transition,layoutGroup:r,motionConfig:i.value,inViewOptions:e.inViewOptions??i.value.inViewOptions,animatePresenceContext:a,initial:a.initial===!1?a.initial:e.initial===!0?void 0:e.initial}}function u(){return{...s,...l()}}let d=new as(u(),n);Po(d);function f(){let t=d.type===`svg`,n={...s};Object.keys(s).forEach(e=>{q(s[e])&&(n[e]=s[e].get())});let r={...e.style,...t?{}:d.visualElement?.latestValues||d.baseTarget};if(t){let{attrs:e,style:t}=Ms({...d.isMounted()?d.target:d.baseTarget,...r});(t.transform||e.transformOrigin)&&(t.transformOrigin=e.transformOrigin??`50% 50%`,delete e.transformOrigin),t.transform&&(t.transformBox=t.transformBox??`fill-box`,delete e.transformBox),Object.assign(n,e),r=t}e.drag&&e.dragListener!==!1&&Object.assign(r,{userSelect:`none`,WebkitUserSelect:`none`,WebkitTouchCallout:`none`,touchAction:e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`});let i=Os(r);return i&&(n.style=i),n}let p=(0,t.getCurrentInstance)().proxy;return(0,t.onBeforeMount)(()=>{d.beforeMount()}),(0,t.onMounted)(()=>{d.mount(Hg(p.$el),u(),qg(p))}),(0,t.onBeforeUnmount)(()=>d.beforeUnmount()),(0,t.onUnmounted)(()=>{Hg(p.$el)?.isConnected||d.unmount()}),(0,t.onBeforeUpdate)(()=>{d.beforeUpdate()}),(0,t.onUpdated)(()=>{d.update(u())}),{getProps:l,getAttrs:f,layoutGroup:r,state:d}}var Kg={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},hover:{type:[String,Array,Object]},press:{type:[String,Array,Object]},inView:{type:[String,Array,Object]},focus:{type:[String,Array,Object]},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object],default:({hover:e})=>(process.env.NODE_ENV===`development`&&e&&zo(!0,`hover is deprecated. Use whileHover instead.`),e)},whilePress:{type:[String,Array,Object],default:({press:e})=>(process.env.NODE_ENV===`development`&&e&&zo(!0,`press is deprecated. Use whilePress instead.`),e)},whileInView:{type:[String,Array,Object],default:({inView:e})=>(process.env.NODE_ENV===`development`&&e&&zo(!0,`inView is deprecated. Use whileInView instead.`),e)},whileFocus:{type:[String,Array,Object],default:({focus:e})=>(process.env.NODE_ENV===`development`&&e&&zo(!0,`focus is deprecated. Use whileFocus instead.`),e)},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},layoutGroup:{type:Object},motionConfig:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:null},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}};function qg(e){let t=Hg(e.$el)?.style.display===`none`;return e.$.vnode.transition&&t}var Jg=new Map,Yg=new Map;function Xg(e){if(!Array.isArray(e))return[e];let t=[];for(let n of e)Array.isArray(n)?t.push(...n):t.push(n);return t}var Zg=[`area`,`img`,`input`];function Qg(e,n,r){var i;if(typeof e==`string`&&Zg.includes(e))return(0,t.h)(e,n);if(e===`template`){if(!r.default)return null;let e=Xg(r.default()),a=e.findIndex(e=>e.type!==t.Comment);if(a===-1)return e;let o=e[a];(i=o.props)==null||delete i.ref;let s=o.props?(0,t.mergeProps)(n,o.props):n;n.class&&o.props?.class&&delete o.props.class;let c=(0,t.cloneVNode)(o,s);for(let e in s)e.startsWith(`on`)&&(c.props||={},c.props[e]=s[e]);return e.length===1?c:(e[a]=c,e)}return null}function $g(e,n={}){let r=typeof e==`string`,i=r?e:e.name||``,a=n.features?.length>0?Jg:Yg;if(r&&a?.has(e))return a.get(e);let o=(0,t.defineComponent)({inheritAttrs:!1,props:{...Kg,features:{type:Object,default:()=>n.features||[]},as:{type:[String,Object],default:e||`div`}},name:i?`motion.${i}`:`Motion`,setup(e,{slots:r}){let{getProps:i,getAttrs:a,state:o}=Gg(e);function s(){let t=o.element;if((typeof e.as!=`object`||e.asChild)&&t){let{style:e}=a();if(e)for(let[n,r]of Object.entries(e))t.style[n]=r}}return()=>{let o=i(),c=a(),l=e.asChild?`template`:e.as,u={...n.forwardMotionProps||e.forwardMotionProps?o:{},...c,onVnodeUpdated:s},d=Qg(l,u,r);return d===null?(0,t.h)(l,{...u},r):d}}});return r&&a?.set(e,o),o}function e_(e=[]){return new Proxy({},{get(t,n){return n===`create`?(t,n)=>$g(t,{...n,features:e}):$g(n,{features:e})}})}var t_=e_(Pg);t_.create(`div`);const n_=()=>(0,t.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 1024 1024`},[(0,t.createVNode)(`path`,{d:`M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92C290 92 102.3 279.5 102 511.5C101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1c1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 0 0-10.1 4.8c-1.8 5-3.8 10-5.9 14.9c-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 0 1 655.9 829c-42.3 17.9-87.4 27-133.8 27c-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 0 1 279 755.2a342.16 342.16 0 0 1-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4c31.6-31.6 68.4-56.4 109.3-73.8c42.3-17.9 87.4-27 133.8-27c46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 0 1 109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z`,fill:`currentColor`},null)]),r_=()=>(0,t.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},[(0,t.createVNode)(`path`,{d:`M10.66 7.14c-2.24.48-4.04 2.3-4.52 4.54c-.37 1.75.02 3.38.89 4.66c.34.51 1.08.55 1.51.11c.35-.35.37-.88.1-1.28c-.5-.76-.75-1.71-.61-2.73c.23-1.74 1.67-3.17 3.41-3.4A4.003 4.003 0 0 1 16 13c0 .8-.24 1.54-.64 2.16c-.27.41-.25.95.1 1.29c.43.43 1.17.4 1.51-.11C17.62 15.4 18 14.25 18 13c0-3.75-3.45-6.7-7.34-5.86zm-.41-3.99c-4.05.69-7.19 3.69-8.03 7.72c-.66 3.17.2 6.16 1.97 8.38c.37.46 1.07.49 1.49.07c.36-.36.39-.93.07-1.32a8.004 8.004 0 0 1-1.66-6.28c.55-3.47 3.42-6.24 6.92-6.65c2.76-.33 5.27.74 6.93 2.59c.2.21.47.34.76.34c.85 0 1.34-1.01.77-1.65c-2.19-2.45-5.56-3.82-9.22-3.2zM12 11c-1.1 0-2 .9-2 2c0 .55.23 1.05.59 1.41c.36.36.86.59 1.41.59s1.05-.23 1.41-.59c.36-.36.59-.86.59-1.41c0-1.1-.9-2-2-2zm9-1c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1s-1-.45-1-1v-4c0-.55.45-1 1-1zm0 8c.55 0 1 .45 1 1s-.45 1-1 1s-1-.45-1-1s.45-1 1-1z`,fill:`currentColor`},null)]),i_=()=>(0,t.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},[(0,t.createVNode)(`path`,{d:`M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59L7.11 5.7A.996.996 0 1 0 5.7 7.11L10.59 12L5.7 16.89a.996.996 0 1 0 1.41 1.41L12 13.41l4.89 4.89a.996.996 0 1 0 1.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z`,fill:`currentColor`},null)]),a_=()=>(0,t.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},[(0,t.createVNode)(`path`,{d:`M9 16.2l-3.5-3.5a.984.984 0 0 0-1.4 0a.984.984 0 0 0 0 1.4l4.19 4.19c.39.39 1.02.39 1.41 0L20.3 7.7a.984.984 0 0 0 0-1.4a.984.984 0 0 0-1.4 0L9 16.2z`,fill:`currentColor`},null)]),o_=()=>(0,t.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},[(0,t.createVNode)(`path`,{d:`M16.59 9H15V4c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v5H7.41c-.89 0-1.34 1.08-.71 1.71l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.63-.63.19-1.71-.7-1.71zM5 19c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1z`,fill:`currentColor`},null)]);var s_={class:`relative size-full overflow-hidden`},c_={key:2},l_={key:3,class:`size-full`},u_={key:4,class:`flex items-center gap-3 justify-around`},d_={class:`flex gap-2 flex-col justify-center text-white`},f_={class:`text-xs text-wrap`},p_=(0,t.defineComponent)({__name:`content`,props:{retriable:{type:Boolean},hideError:{type:Boolean},hideEmpty:{type:Boolean},hideLoading:{type:Boolean},source:{},class:{},classError:{},classEmpty:{},classLoading:{},style:{type:[Boolean,null,String,Object,Array]},styleError:{type:[Boolean,null,String,Object,Array]},styleEmpty:{type:[Boolean,null,String,Object,Array]},styleLoading:{type:[Boolean,null,String,Object,Array]}},emits:[`retry`,`resetRetry`],setup(e,{expose:n}){let r=e,i=(0,t.computed)(()=>N.isStream(r.source)?{isLoading:r.source.isRequesting.value,isError:r.source.error.value,errorCause:r.source.error.value?.message,isEmpty:r.source.isEmpty.value,data:r.source.data.value,isNoResult:r.source.isNoData.value}:fn.isPromiseContent(r.source)?{isLoading:r.source.isLoading.value,isError:r.source.isError.value,errorCause:r.source.errorCause.value?.message,isEmpty:r.source.isEmpty.value,data:r.source.data.value,isNoResult:r.source.isEmpty.value}:{isLoading:!1,isError:!1,errorCause:void 0,isEmpty:qt(r.source),data:r.source,isNoResult:qt(r.source)}),o={isLoadingNoData:{opacity:1,translateY:0,width:`2.5rem`,height:`2.5rem`,paddingBlock:`2px`,paddingInline:`2px`,left:`50%`,top:`8px`,translateX:`-50%`,backgroundColor:`var(--van-background-2)`,borderRadius:`100%`},isErrorNoData:{opacity:1,translateY:`-50%`,width:`70%`,minHeight:r.retriable?`22rem`:`20rem`,paddingBlock:`2px`,paddingInline:`2px`,left:`50%`,top:`50%`,translateX:`-50%`,backgroundColor:`var(--van-background-2)`,borderRadius:`4px`},isLoadingData:{opacity:.7,translateY:`0%`,width:`4rem`,height:`1.3rem`,paddingBlock:`2px`,paddingInline:`8px`,left:`4px`,top:`calc(100% - 8px - 1rem)`,translateX:`0%`,backgroundColor:`var(--p-color)`,borderRadius:`1.3rem`},isErrorData:{opacity:.7,translateY:`0%`,width:`fit-content`,height:`4rem`,paddingBlock:`2px`,paddingInline:`8px`,left:`4px`,top:`calc(100% - 8px - 4rem)`,translateX:`0%`,backgroundColor:`var(--p-color)`,borderRadius:`4px`},isEmpty:{opacity:1,translateY:`-50%`,width:`90%`,height:`10rem`,paddingBlock:`2px`,paddingInline:`2px`,left:`50%`,top:`50%`,translateX:`-50%`,backgroundColor:`var(--van-background-2)`,borderRadius:`4px`},done:{width:`4rem`,height:`1.3rem`,opacity:0,translateY:`100%`,paddingBlock:`0px`,paddingInline:`0px`,left:`4px`,top:`calc(100% - 8px - 1rem)`,translateX:`0%`,backgroundColor:`var(--p-color)`,borderRadius:`4px`}},s=(0,t.computed)(()=>!r.hideLoading&&i.value.isLoading?i.value.isEmpty?`isLoadingNoData`:`isLoadingData`:!r.hideError&&i.value.isError?i.value.isEmpty?`isErrorNoData`:`isErrorData`:!r.hideEmpty&&i.value.isNoResult?`isEmpty`:`done`),c=(0,t.useTemplateRef)(`cont`);return n({cont:c}),(n,l)=>{let u=Ai,d=a.NEmpty,f=a.NButton,p=a.NIcon,m=a.NResult,h=Vg;return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,s_,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`relative size-full`,[r.class]]),ref_key:`cont`,ref:c},[i.value.isEmpty?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(n.$slots,`default`,{key:0,data:i.value.data})],2),(0,t.createVNode)(h,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(t_).div,{initial:{opacity:0,translateY:`-100%`,left:`50%`,translateX:`-50%`},variants:o,animate:s.value,class:`shadow flex justify-center items-center scale-100 absolute whitespace-nowrap`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(t.Transition,{name:`van-fade`},{default:(0,t.withCtx)(()=>[s.value===`isLoadingNoData`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,size:`25px`,color:`var(--p-color)`})):s.value===`isLoadingData`?((0,t.openBlock)(),(0,t.createBlock)(no,{key:1,size:`10px`,color:`white`},{default:(0,t.withCtx)(()=>[...l[2]||=[(0,t.createTextVNode)(`加载中`,-1)]]),_:1})):s.value===`isEmpty`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,c_,[(0,t.createVNode)(d,{description:`无结果`,class:(0,t.normalizeClass)([`w-full justify-center!`,[e.classEmpty]]),style:(0,t.normalizeStyle)([e.style,e.styleEmpty])},null,8,[`class`,`style`])])):s.value===`isErrorNoData`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,l_,[(0,t.createVNode)(m,{class:(0,t.normalizeClass)([`items-center! justify-center! flex flex-col size-full! *:w-full text-wrap`,[e.classError]]),status:`error`,title:`网络错误`,style:(0,t.normalizeStyle)([e.style,e.styleError]),description:i.value.errorCause??`未知原因`},{footer:(0,t.withCtx)(()=>[e.retriable?((0,t.openBlock)(),(0,t.createBlock)(f,{key:0,onClick:l[0]||=e=>n.$emit(`resetRetry`),type:`primary`},{default:(0,t.withCtx)(()=>[...l[3]||=[(0,t.createTextVNode)(`重试`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0)]),icon:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{size:`10rem`,color:`var(--nui-error-color)`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(r_))]),_:1})]),_:1},8,[`class`,`style`,`description`])])):s.value===`isErrorData`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,u_,[(0,t.createVNode)(p,{size:`3rem`,color:`white`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(r_))]),_:1}),(0,t.createElementVNode)(`div`,d_,[l[4]||=(0,t.createElementVNode)(`div`,{class:`text-sm`},`网络错误`,-1),(0,t.createElementVNode)(`div`,f_,(0,t.toDisplayString)(i.value.errorCause??`未知原因`),1)]),(0,t.createVNode)(f,{circle:``,type:`error`,size:`large`,onClick:l[1]||=e=>n.$emit(`retry`)},{icon:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{color:`white`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(n_))]),_:1})]),_:1})])):(0,t.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`animate`])]),_:1})])}}}),m_=(0,t.defineComponent)({__name:`var`,props:{value:{}},setup(e){let n=e;return(e,r)=>(0,t.renderSlot)(e.$slots,`default`,{value:n.value})}}),h_=(0,t.defineComponent)({__name:`list`,props:{source:{},itemHeight:{},listProp:{},goBottom:{type:Boolean},itemResizable:{type:Boolean},dataProcessor:{},unReloadable:{type:Boolean},style:{type:[Boolean,null,String,Object,Array]},class:{}},emits:[`next`,`reset`,`retry`],setup(e,{expose:n,emit:r}){let i=e,o=r,s=e=>i.dataProcessor?.(e)??e,c=(0,t.computed)(()=>({...N.isStream(i.source)?{data:s(i.source.data.value),isDone:i.source.isDone.value,isRequesting:i.source.isRequesting.value,isError:!!i.source.error.value,length:s(i.source.data.value).length,isEmpty:i.source.isEmpty.value,source:i.source}:Ot(i.source)?{data:s(i.source),isDone:!0,isRequesting:!1,isError:!1,length:s(i.source).length,isEmpty:qt(i.source),source:i.source}:{data:s(i.source.data.data.value??[]),isDone:i.source.isEnd,isRequesting:i.source.data.isLoading.value,isError:i.source.data.isError.value,length:s(i.source.data.data.value??[]).length,isEmpty:i.source.data.isEmpty.value,source:i.source.data},next:()=>N.isStream(i.source)?i.source.next():mn(e=>o(`next`,e)),retry:()=>N.isStream(i.source)?i.source.retry():mn(e=>o(`retry`,e)),reset:()=>N.isStream(i.source)?i.source.reset():o(`reset`)}));(0,t.watch)(()=>c.value.data,()=>{i.goBottom&&l.value?.scrollTo({position:`bottom`,behavior:`instant`})},{flush:`post`,deep:!0,immediate:!0}),(0,t.watch)(c,e=>{e.isRequesting||Bt(window.innerHeight/i.itemHeight)+2>e.length&&!e.isDone&&(e.isError?e.retry():e.next())},{immediate:!0});let l=(0,t.useTemplateRef)(`vList`),{y:u}=ge(()=>l.value?.getScrollContainer()),d=Rt(async()=>{let e=l.value?.virtualListInstRef?.itemsElRef?.querySelector(` .v-vl-visible-items`);if(!e)return;let{itemHeight:t}=i,{data:n,isDone:r,isError:a,isRequesting:o,retry:s,next:d,length:f}=c.value;n&&!o&&!r&&t*(f-2)<u.value+(e?.children?.length??window.innerHeight/t)*t&&(a?s():d())},200),f=(0,t.shallowRef)(!1),p=(0,t.shallowRef)(!1),m=async()=>{c.value.reset(),console.log(`reset done`),await c.value.next(),p.value=!1};return n({scrollTop:u,listInstance:l}),(n,r)=>{let o=a.NVirtualList,s=to;return(0,t.openBlock)(),(0,t.createBlock)(s,{modelValue:p.value,"onUpdate:modelValue":r[1]||=e=>p.value=e,class:(0,t.normalizeClass)([`relative`,i.class]),onRefresh:m,disabled:e.unReloadable||((0,t.unref)(N).isStream(e.source)?!1:(0,t.unref)(Ot)(e.source)?!0:e.source.reloadable??!0)||c.value.isError||c.value.isRequesting||!!(0,t.unref)(u)&&!f.value,onChange:r[2]||=({distance:e})=>f.value=!!e,style:(0,t.normalizeStyle)(e.style)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p_,{retriable:``,source:(0,t.unref)(N).isStream(e.source)||(0,t.unref)(Ot)(e.source)?e.source:e.source.data,"class-loading":`mt-2 !h-[24px]`,"class-empty":`!h-full`,"class-error":`!h-full`,onResetRetry:m,"hide-loading":f.value&&c.value.isRequesting,onRetry:r[0]||=e=>c.value.retry()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(m_,{value:c.value.data},{default:(0,t.withCtx)(({value:r})=>[(0,t.createVNode)(o,(0,t.mergeProps)(e.listProp??{},{"item-resizable":e.itemResizable,"item-size":e.itemHeight,onScroll:(0,t.unref)(d),class:[`overflow-x-hidden h-full`,[f.value?`overflow-y-hidden`:`overflow-y-auto`]],items:r,ref_key:`vList`,ref:l}),{default:(0,t.withCtx)(({item:i})=>[(0,t.renderSlot)(n.$slots,`default`,{height:e.itemHeight,data:{item:i,index:r.indexOf(i)}})]),_:2},1040,[`item-resizable`,`item-size`,`onScroll`,`items`,`class`])]),_:3},8,[`value`])]),_:3},8,[`source`,`hide-loading`])]),_:3},8,[`modelValue`,`class`,`disabled`,`style`])}}}),g_=(0,t.defineComponent)({__name:`popup`,props:(0,t.mergeModels)({show:{type:Boolean},zIndex:{},overlay:{type:Boolean},duration:{},teleport:{},lockScroll:{type:Boolean},lazyRender:{type:Boolean},beforeClose:{},overlayProps:{},overlayStyle:{},overlayClass:{},transitionAppear:{type:Boolean},closeOnClickOverlay:{type:Boolean},round:{type:Boolean},position:{default:`center`},closeIcon:{},closeable:{type:Boolean},transition:{},iconPrefix:{},closeOnPopstate:{type:Boolean},closeIconPosition:{},destroyOnClose:{type:Boolean},safeAreaInsetTop:{type:Boolean},safeAreaInsetBottom:{type:Boolean},noBorder:{type:Boolean,default:!1},useTrulyShow:{type:Boolean},style:{type:[Boolean,null,String,Object,Array]}},{show:{type:Boolean,required:!0},showModifiers:{}}),emits:(0,t.mergeModels)([`closed`],[`update:show`]),setup(e,{expose:n}){let i=(0,r.useRouter)(),a=e,o=(0,t.useModel)(e,`show`),s=(0,t.shallowRef)(o.value),[c,l]=ao((0,t.computed)(()=>a.useTrulyShow?s.value:o.value)),u=Ht;return(0,t.watch)(o,e=>{e?u=i.beforeEach(()=>{if(console.log(`popup:
10
- `,`isLast:`,l.value,`show:`,o.value),l.value)return o.value?o.value=!1:void 0}):u()},{immediate:!0}),n({zIndex:c,trulyShow:s}),(n,r)=>{let i=Ki;return(0,t.openBlock)(),(0,t.createBlock)(i,(0,t.mergeProps)(a,{show:o.value,"onUpdate:show":r[0]||=e=>o.value=e,"z-index":(0,t.unref)(c),teleport:`#popups`,onOpen:r[1]||=e=>s.value=!0,onClosed:r[2]||=()=>{s.value=!1,n.$emit(`closed`)},class:[`max-h-screen !overflow-y-auto overflow-hidden`,!e.noBorder&&`border-0 border-t border-solid border-(--van-border-color)`],overlay:``,"close-on-click-overlay":``}),{default:(0,t.withCtx)(()=>[s.value?(0,t.renderSlot)(n.$slots,`default`,{key:0}):(0,t.createCommentVNode)(``,!0)]),_:3},16,[`show`,`z-index`,`class`])}}}),__=(0,t.defineComponent)({__name:`routerTab`,props:{items:{},routerBase:{}},setup(e){let n=e,i=(0,r.useRoute)(),a=(0,t.ref)(decodeURI(i.path.replaceAll(n.routerBase+`/`,``).split(`/`)[0])),o=(0,r.useRouter)(),s=(0,t.useTemplateRef)(`tab`),c=async e=>{let t=`?`,r=n.items.find(t=>t.name==e);for(let e in r.queries??{})if(Object.prototype.hasOwnProperty.call(r.queries??{},e)){let n=(r.queries??{})[e];t+=`${e}=${n}&`}return t=t.replace(/&$/,``),await o.force.replace(`${n.routerBase}/${e.split(`/`).map(encodeURI).join(`/`)}${t}`),!0};(0,t.watch)(()=>n.items,e=>{e.find(e=>e.name.startsWith(a.value))||console.log(a.value,e)});let l=o.afterEach(e=>{if(e.path.startsWith(n.routerBase)){let t=e.path.replaceAll(n.routerBase+`/`,``).split(`/`)[0];t!==a.value&&(a.value=t)}});return(0,t.onUnmounted)(()=>{l()}),(n,r)=>{let i=Ua,o=Wa;return(0,t.openBlock)(),(0,t.createBlock)(o,{ref_key:`tab`,ref:s,shrink:``,active:a.value,"onUpdate:active":r[0]||=e=>a.value=e,beforeChange:c,class:`w-full`},{"nav-left":(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`left`)]),"nav-right":(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`right`)]),"nav-bottom":(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`bottom`)]),default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.items,e=>((0,t.openBlock)(),(0,t.createBlock)(i,{title:e.title,onClick:t=>a.value=e.name,name:e.name},null,8,[`title`,`onClick`,`name`]))),256))]),_:3},8,[`active`])}}}),v_=(0,t.defineComponent)({__name:`text`,props:{text:{default:``},ellipsis:{}},setup(e){let n=e,r=(0,t.computed)(()=>n.text.replace(/(http(s?):\/\/)?([\w-]+\.)+(\.?[a-z]+)+(:\d+)?(\/[\w-.\/?%&=]*)?/gi,e=>`\u1145[[${e}]]\u1145`).split(`ᅅ`).filter(Boolean).map(e=>/\[\[[^\[\]]+\]\]/g.test(e)?{value:e.substring(2,e.length-2),mode:`link`}:{value:e,mode:`text`}));return(n,i)=>{let o=a.NButton;return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([[(0,t.unref)(It)(e.ellipsis)&&`overflow-ellipsis overflow-hidden`],`whitespace-pre-wrap text-(--van-text-color)`]),style:(0,t.normalizeStyle)([(0,t.unref)(It)(e.ellipsis)&&`line-break: anywhere;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: ${e.ellipsis};`])},[(0,t.renderSlot)(n.$slots,`default`),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.mode===`link`?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,tag:`a`,class:`underline`,onClick:i[0]||=(0,t.withModifiers)(()=>{},[`stop`]),text:``,type:`primary`,target:`_blank`,href:/http(s?):\/\/.+/.test(e.value)?e.value:`https://${e.value}`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)]),_:2},1032,[`href`])):e.mode===`text`?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)],64)):(0,t.createCommentVNode)(``,!0)],64))),256))],6)}}}),y_={class:`mt-1 text-(--van-text-color-2) text-xs`},b_=(0,t.defineComponent)({__name:`toggleIcon`,props:(0,t.mergeModels)({icon:{},size:{},disChanged:{type:Boolean},rowMode:{type:Boolean},padding:{type:Boolean}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:(0,t.mergeModels)([`change`,`click`,`longClick`],[`update:modelValue`]),setup(e,{emit:n}){let r=e,i=n,o=(0,t.useModel)(e,`modelValue`);(0,t.watch)(o,e=>i(`change`,e));let s=()=>{i(`click`,!o.value),r.disChanged||(o.value=!o.value)},c=(0,t.useTemplateRef)(`htmlRefHook`);return le(c,()=>{i(`longClick`)},{modifiers:{prevent:!0}}),(n,r)=>{let i=a.NIcon;return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`flex items-center justify-center **:!transition-colors`,[e.rowMode||`flex-col`,e.padding&&`px-4`]]),onClick:(0,t.withModifiers)(s,[`stop`]),ref_key:`htmlRefHook`,ref:c},[(0,t.createVNode)(i,{size:e.size,color:o.value?`var(--p-color)`:`var(--van-gray-7)`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.icon)))]),_:1},8,[`size`,`color`]),(0,t.createElementVNode)(`span`,y_,[(0,t.renderSlot)(n.$slots,`default`)])],2)}}}),x_=Object.defineProperty,S_=Object.defineProperties,C_=Object.getOwnPropertyDescriptors,w_=Object.getOwnPropertySymbols,T_=Object.prototype.hasOwnProperty,E_=Object.prototype.propertyIsEnumerable,D_=(e,t,n)=>t in e?x_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O_=(e,t)=>{for(var n in t||={})T_.call(t,n)&&D_(e,n,t[n]);if(w_)for(var n of w_(t))E_.call(t,n)&&D_(e,n,t[n]);return e},k_=(e,t)=>S_(e,C_(t)),A_=(e,t)=>{var n={};for(var r in e)T_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&w_)for(var r of w_(e))t.indexOf(r)<0&&E_.call(e,r)&&(n[r]=e[r]);return n};function j_(e){return(0,t.getCurrentScope)()?((0,t.onScopeDispose)(e),!0):!1}var M_=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var N_=e=>e!=null,P_=Object.prototype.toString,F_=e=>P_.call(e)===`[object Object]`;function I_(e){return Array.isArray(e)?e:[e]}function L_(e){return(0,t.getCurrentInstance)()}function R_(e,n=!0,r){L_()?(0,t.onMounted)(e,r):n?e():(0,t.nextTick)(e)}function z_(e,n,r){return(0,t.watch)(e,n,k_(O_({},r),{immediate:!0}))}var B_=M_?window:void 0;function V_(e){let n=(0,t.toValue)(e);return n?.$el??n}function H_(...e){let n=[],r=()=>{n.forEach(e=>e()),n.length=0},i=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),a=(0,t.computed)(()=>{let n=I_((0,t.toValue)(e[0])).filter(e=>e!=null);return n.every(e=>typeof e!=`string`)?n:void 0}),o=z_(()=>[a.value?.map(e=>V_(e))??[B_].filter(e=>e!=null),I_((0,t.toValue)(a.value?e[1]:e[0])),I_((0,t.unref)(a.value?e[2]:e[1])),(0,t.toValue)(a.value?e[3]:e[2])],([e,t,a,o])=>{if(r(),!(e!=null&&e.length)||!(t!=null&&t.length)||!(a!=null&&a.length))return;let s=F_(o)?O_({},o):o;n.push(...e.flatMap(e=>t.flatMap(t=>a.map(n=>i(e,t,n,s)))))},{flush:`post`});return j_(r),()=>{o(),r()}}function U_(){let e=(0,t.shallowRef)(!1),n=(0,t.getCurrentInstance)();return n&&(0,t.onMounted)(()=>{e.value=!0},n),e}function W_(e){let n=U_();return(0,t.computed)(()=>(n.value,!!e()))}function G_(e,n,r={}){let i=r,{window:a=B_}=i,o=A_(i,[`window`]),s,c=W_(()=>a&&`MutationObserver`in a),l=()=>{s&&=(s.disconnect(),void 0)},u=(0,t.computed)(()=>{let n=I_((0,t.toValue)(e)).map(V_).filter(N_);return new Set(n)}),d=(0,t.watch)(()=>u.value,e=>{l(),c.value&&e.size&&(s=new MutationObserver(n),e.forEach(e=>s.observe(e,o)))},{immediate:!0,flush:`post`}),f=()=>s?.takeRecords(),p=()=>{d(),l()};return j_(p),{isSupported:c,stop:p,takeRecords:f}}function K_(e,n,r={}){let i=r,{window:a=B_}=i,o=A_(i,[`window`]),s,c=W_(()=>a&&`ResizeObserver`in a),l=()=>{s&&=(s.disconnect(),void 0)},u=(0,t.watch)((0,t.computed)(()=>{let n=(0,t.toValue)(e);return Array.isArray(n)?n.map(e=>V_(e)):[V_(n)]}),e=>{if(l(),c.value&&a){s=new ResizeObserver(n);for(let t of e)t&&s.observe(t,o)}},{immediate:!0,flush:`post`}),d=()=>{l(),u()};return j_(d),{isSupported:c,stop:d}}function q_(e,n={}){let{reset:r=!0,windowResize:i=!0,windowScroll:a=!0,immediate:o=!0,updateTiming:s=`sync`}=n,c=(0,t.shallowRef)(0),l=(0,t.shallowRef)(0),u=(0,t.shallowRef)(0),d=(0,t.shallowRef)(0),f=(0,t.shallowRef)(0),p=(0,t.shallowRef)(0),m=(0,t.shallowRef)(0),h=(0,t.shallowRef)(0);function g(){let t=V_(e);if(!t){r&&(c.value=0,l.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0,h.value=0);return}let n=t.getBoundingClientRect();c.value=n.height,l.value=n.bottom,u.value=n.left,d.value=n.right,f.value=n.top,p.value=n.width,m.value=n.x,h.value=n.y}function _(){s===`sync`?g():s===`next-frame`&&requestAnimationFrame(()=>g())}return K_(e,_),(0,t.watch)(()=>V_(e),e=>!e&&_()),G_(e,_,{attributeFilter:[`style`,`class`]}),a&&H_(`scroll`,_,{capture:!0,passive:!0}),i&&H_(`resize`,_,{passive:!0}),R_(()=>{o&&_()}),{height:c,bottom:l,left:u,right:d,top:f,width:p,x:m,y:h,update:_}}function J_(e,n={width:0,height:0},r={}){let{window:i=B_,box:a=`content-box`}=r,o=(0,t.computed)(()=>(V_(e)?.namespaceURI)?.includes(`svg`)),s=(0,t.shallowRef)(n.width),c=(0,t.shallowRef)(n.height),{stop:l}=K_(e,([t])=>{let n=a===`border-box`?t.borderBoxSize:a===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(i&&o.value){let t=V_(e);if(t){let e=t.getBoundingClientRect();s.value=e.width,c.value=e.height}}else if(n){let e=I_(n);s.value=e.reduce((e,{inlineSize:t})=>e+t,0),c.value=e.reduce((e,{blockSize:t})=>e+t,0)}else s.value=t.contentRect.width,c.value=t.contentRect.height},r);R_(()=>{let t=V_(e);t&&(s.value=`offsetWidth`in t?t.offsetWidth:n.width,c.value=`offsetHeight`in t?t.offsetHeight:n.height)});let u=(0,t.watch)(()=>V_(e),e=>{s.value=e?n.width:0,c.value=e?n.height:0});function d(){l(),u()}return{width:s,height:c,stop:d}}var Y_=[`data-index`],X_=(0,t.defineComponent)({name:`VirtualWaterfall`,__name:`virtual-waterfall`,props:{virtual:{type:Boolean,default:!0},rowKey:{default:`id`},enableCache:{type:Boolean,default:!0},gap:{default:15},padding:{default:15},preloadScreenCount:{default:()=>[0,0]},itemMinWidth:{default:220},maxColumnCount:{default:10},minColumnCount:{default:2},items:{default:()=>[]},calcItemHeight:{type:Function,default:(e,t)=>250}},setup(e,{expose:n}){let r=e,i=(0,t.ref)(),{width:a}=J_(i),{top:o}=q_(i);(0,t.onMounted)(()=>{a.value===0&&(a.value=Number.parseInt(window.getComputedStyle(i.value).width))});function s(e){return Object.prototype.toString.call(e)===`[object Number]`}let c=(0,t.computed)(()=>{if(!a.value)return 0;let e=a.value;if(e>=r.itemMinWidth*2){let t=Math.floor(e/r.itemMinWidth);return r.maxColumnCount&&t>r.maxColumnCount?r.maxColumnCount:t}return r.minColumnCount}),l=(0,t.ref)(Array(c.value).fill(0)),u=(0,t.computed)(()=>{if(!a.value||c.value<=0)return 0;let e=(c.value-1)*r.gap;return Math.ceil((a.value-e)/c.value)}),d=(0,t.shallowRef)([]);n({withItemSpaces:e=>{e((0,t.readonly)(d).value)}}),(0,t.watchEffect)(()=>{let e=r.items.length;if(!c.value||!e){d.value=[];return}let t=Array(e),n=0,i=r.enableCache&&d.value.length&&e>d.value.length;i?n=d.value.length:l.value=Array(c.value).fill(0);for(let a=0;a<e;a++){if(i&&a<n){t[a]=d.value[a];continue}let e=p(),o=r.calcItemHeight(r.items[a],u.value),s=l.value[e],c=(u.value+r.gap)*e,f={index:a,item:r.items[a],column:e,top:s,left:c,bottom:s+o,height:o};l.value[e]+=o+r.gap,t[a]=f}d.value=t});let f=(0,t.computed)(()=>{let e=d.value.length;if(!e)return[];if(!r.virtual)return d.value;let t=i.value.parentElement.offsetTop,n=-o.value+t,[a,s]=r.preloadScreenCount,c=i.value.parentElement.clientHeight,l=n-a*c,u=n+(s+1)*c,f=[];for(let t=0;t<e;t++){let e=d.value[t],n=e.top,r=e.bottom;(n>=l&&n<=u||r>=l&&r<=u||n<l&&r>u)&&f.push(e)}return f}),p=()=>l.value.indexOf(Math.min(...l.value));return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`content`,ref:i,style:(0,t.normalizeStyle)({position:`relative`,willChange:`height`,height:`${Math.max(...l.value)}px`,padding:`${s(e.padding)?e.padding+`px`:e.padding}`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(f.value,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n.item[e.rowKey]??n.index,style:(0,t.normalizeStyle)({position:`absolute`,contentVisibility:`auto`,width:`${u.value}px`,height:`${n.height}px`,transform:`translate(${n.left}px, ${n.top}px)`,containIntrinsicSize:`${u.value}px ${n.height}px`}),"data-index":n.index},[(0,t.renderSlot)(e.$slots,`default`,{item:n.item,index:n.index})],12,Y_))),128))],4))}}),Z_=(0,t.defineComponent)({__name:`waterfall`,props:{source:{},style:{type:[Boolean,null,String,Object,Array]},class:{},col:{default:2},padding:{default:4},gap:{default:4},minHeight:{default:0},dataProcessor:{},unReloadable:{type:Boolean}},emits:[`next`,`reset`,`retry`,`col`],setup(e,{expose:n,emit:r}){let i=e,a=r,o=e=>i.dataProcessor?.(e)??e,s=(0,t.computed)(()=>Ot(i.col)?i.col:[i.col,i.col]),c=(0,t.computed)(()=>({...N.isStream(i.source)?{data:o(i.source.data.value),isDone:i.source.isDone.value,isRequesting:i.source.isRequesting.value,isError:!!i.source.error.value,length:o(i.source.data.value).length,isEmpty:i.source.isEmpty.value,source:i.source}:{data:o(i.source.data.data.value??[]),isDone:i.source.isEnd,isRequesting:i.source.data.isLoading.value,isError:i.source.data.isError.value,length:o(i.source.data.data.value??[]).length,isEmpty:i.source.data.isEmpty.value,source:i.source.data},next:()=>N.isStream(i.source)?i.source.next():mn(e=>a(`next`,e)),retry:()=>N.isStream(i.source)?i.source.retry():mn(e=>a(`retry`,e)),reset:()=>N.isStream(i.source)?i.source.reset():a(`reset`)})),l=(0,t.shallowRef)(!1),u=(0,t.shallowRef)(!1),d=async()=>{c.value.reset(),console.log(`reset done`),await c.value.next(),u.value=!1},f=(0,t.useTemplateRef)(`content`),p=(0,t.computed)(()=>f.value?.cont),{y:m}=ge(p);sr(`scroll`,()=>{let{isDone:e,isError:t,isRequesting:n,retry:r,next:i}=c.value;if(n||e)return;let a=p.value;if(!a)return;let o=a.scrollHeight,s=a.scrollTop,l=a.clientHeight;o-s-l<=100&&(t?r():i())},{target:p}),(0,t.watch)(()=>i.source,()=>{let{isError:e,retry:t,next:n,isEmpty:r}=c.value;r&&(e?t():n())},{deep:1,immediate:!0});let h=(0,t.useTemplateRef)(`waterfallEl`),g=uo().$apply(`waterfall`,()=>({top:0})),_=g.top++,v=uo().$applyRaw(`waterfall:${_}`,()=>(0,t.shallowReactive)(new Map)),y=[],b=new MutationObserver(([e])=>{for(let e of y)e();if(!(e.target instanceof HTMLDivElement)||!c.value.data)return;let t=[...e.target.children];for(let e of t){let t=Number(e.dataset.index),n=c.value.data[t],r=()=>{let t=e.firstElementChild?.getBoundingClientRect();v.set(n,t?.height??i.minHeight)},a=me(e.firstElementChild,r);r(),y.push(()=>a.stop())}});(0,t.watch)(h,e=>{if(!e)return b.disconnect();b.observe(e.$el,{childList:!0})}),(0,t.onUnmounted)(()=>{b.disconnect();for(let e of y)e()});let x=(0,t.shallowRef)(!0);return n({scrollTop:m,scrollParent:p,async reloadList(){x.value=!1,v.clear(),await(0,t.nextTick)(),x.value=!0}}),(n,r)=>{let a=to;return x.value?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,modelValue:u.value,"onUpdate:modelValue":r[1]||=e=>u.value=e,class:(0,t.normalizeClass)([`relative h-full`,i.class]),disabled:e.unReloadable||c.value.isRequesting||!!(0,t.unref)(m)&&!l.value,onRefresh:d,onChange:r[2]||=({distance:e})=>l.value=!!e,style:(0,t.normalizeStyle)(e.style)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p_,{retriable:``,source:(0,t.unref)(N).isStream(e.source)?e.source:e.source.data,"class-loading":`mt-2 !h-[24px]`,"class-empty":`h-full!`,"class-error":`h-full!`,class:`h-full overflow-auto w-full`,onRetry:r[0]||=e=>c.value.retry(),onResetRetry:d,"hide-loading":l.value&&c.value.isRequesting,ref_key:`content`,ref:f},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(X_),{items:c.value.data,gap:e.gap,padding:e.padding,"preload-screen-count":[0,1],ref_key:`waterfallEl`,ref:h,"calc-item-height":n=>(0,t.unref)(v).get(n)??e.minHeight,class:`waterfall`,"min-column-count":s.value[0],"max-column-count":s.value[1]},{default:(0,t.withCtx)(({item:r,index:i})=>[(0,t.renderSlot)(n.$slots,`default`,{item:r,index:i,height:(0,t.unref)(v).get(r),length:c.value.length,minHeight:e.minHeight})]),_:3},8,[`items`,`gap`,`padding`,`calc-item-height`,`min-column-count`,`max-column-count`])]),_:3},8,[`source`,`hide-loading`])]),_:3},8,[`modelValue`,`class`,`disabled`,`style`])):(0,t.createCommentVNode)(``,!0)}}}),Q_=e.n({createDateString:()=>$_});const $_=(e=(0,bn.default)())=>{let t=(0,bn.default)(),n=e.isSame(t,`year`),r=n&&e.isSame(t,`month`),i=r&&e.date()===t.date(),a=r&&e.date()===t.date()-1,o=``;return n||(o+=`YYYY年 `),i?o+=`今天 `:a?o+=`昨天 `:o+=`M月D日 `,o+=`HH:mm`,e.format(o)};var ev=e.n({createDialog:()=>rv,createDownloadMessage:()=>av,createLoadingMessage:()=>nv});function tv(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!(0,t.isVNode)(e)}const nv=(e=`加载中`,n=window.$message)=>{let r=(0,t.computed)(()=>(0,t.isRef)(e)?e.value:Kt(e)?e():e),i=n.loading(r.value,{duration:0}),a=(0,t.watch)(r,e=>{i.content=e}),o=!1;async function s(e,t=!0,n,r){try{let t=await e;return c.success(n),t}catch(e){if(c.fail(r),t)throw e;return}}let c={bind:s,async success(e=`成功!`,t=500){a(),!(o||!i)&&(o=!0,i.type=`success`,i.content=e,await en(t),i.destroy())},async fail(e=`失败!`,t=500){a(),!(o||!i)&&(o=!0,i.type=`error`,i.content=e,await en(t),i.destroy())},async info(e,t=500){a(),!(o||!i)&&(o=!0,i.type=`info`,i.content=e,await en(t),i.destroy())},destroy(){a(),!(o||!i)&&(o=!0,i.destroy())},[Symbol.dispose](){this.destroy()},instance:i};return c},rv=e=>{let n=h,r=h,i=new Promise((e,t)=>{n=e,r=t}),a=(0,t.shallowRef)(!0),[o,s,c]=ao(a),l=(0,t.watch)(o,e=>m.style.zIndex=e),u=window.$router.beforeEach(()=>s?f():!0),d=()=>(l(),c(),u(),m.destroy(),a.value=!1),f=()=>(r(),d(),!1),p=()=>{n(),d()},m=window.$dialog.create({positiveText:`确定`,negativeText:`取消`,...e,style:{...e.style??{},zIndex:o.value},async onClose(){if(await e.onClose?.()===!1)return!1;a.value=!1,f()},async onPositiveClick(t){if(await(e.onPositiveClick??h)(t)===!1)return!1;p()},async onNegativeClick(t){let n=await(e.onNegativeClick??h)(t);if(n)return n;f()},onEsc(){e.onEsc?.(),f()},onMaskClick(t){e.onMaskClick?.(t),f()},onAfterLeave(){e.onAfterLeave?.(),d()}});return i.ins=m,i};var iv=A((0,t.reactive)([]),`utils/message/allDownloadMessagesIsMinsize`);const av=async(e,n)=>{let r=iv.length;iv[r]=!1;let i=(0,t.ref)(!1),s=(0,t.reactive)([]),c=(0,t.ref)(!1),l=(0,t.watch)(c,e=>{e?iv[r]=!0:iv[r]=!1},{immediate:!0}),u=(0,t.computed)(()=>iv.slice(0,r).filter(e=>e).length),d=window.$message.create(e,{render:e=>{let n;return(0,t.createVNode)(t_.div,{drag:`y`,dragConstraints:{top:0,right:0,bottom:0,left:0},dragTransition:{bounceStiffness:500,bounceDamping:15},variants:{minsize:{borderRadius:`100%`,width:`30px`,height:`30px`,paddingInline:`2px`,paddingBlock:`2px`,position:`fixed`,left:`${u.value*40+8}px`,top:`calc(var(--safe-area-inset-top) + 4px)`},maxsize:{borderRadius:`8px`,width:`90vw`,paddingInline:`8px`,paddingBlock:`12px`,height:`fit-content`}},onDragEnd:(e,{offset:t})=>t.y<-30&&(c.value=!0),animate:c.value?`minsize`:`maxsize`,class:`bg-(--n-color) overflow-hidden`,style:{boxShadow:`var(--n-box-shadow)`}},{default:()=>[(0,t.createVNode)(t.Transition,{name:`van-fade`},{default:()=>[c.value?(0,t.createVNode)(`div`,{class:`size-full relative`,onClick:()=>c.value=!1},[(0,t.createVNode)(o.Loading,{class:`absolute top-0 left-0 size-full`,color:`var(--p-color)`},null),(0,t.createVNode)(a.NIcon,{class:`absolute! top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 `,size:`18px`,color:`var(--p-color)`},{default:()=>[s.some(e=>e.state==`error`)?(0,t.createVNode)(o.Icon,{name:`cross`},null):(0,t.createVNode)(o_,null,null)]})]):(0,t.createVNode)(`div`,{class:`w-full relative`},[(0,t.createVNode)(`div`,{class:`font-semibold text-base flex items-center gap-2`},[(0,t.createVNode)(`span`,null,[e.content]),i.value&&(0,t.createVNode)(a.NIconWrapper,{size:18,color:`var(--nui-success-color)`,borderRadius:114514},{default:()=>[(0,t.createVNode)(a.NIcon,{size:12},{default:()=>[(0,t.createVNode)(a_,null,null)]})]})]),(0,t.createVNode)(t.TransitionGroup,{name:`list`,tag:`ul`,class:`w-full! h-fit ml-1!`},tv(n=s.map((e,n)=>{let r;return(0,t.createVNode)(`div`,{class:`w-full py-1 van-hairline--bottom`,key:n},[(0,t.createVNode)(`span`,{class:`font-semibold text-sm`},[e.title]),(0,t.createVNode)(`div`,{class:`w-full h-fit relative`},[(0,t.createVNode)(a.NProgress,{percentage:It(e.progress)?e.progress:100,indicatorPlacement:`inside`,processing:Ft(e.state),type:`line`,showIndicator:!1,"show-indicator":!1,class:[`**:in-[.n-progress-graph-line-fill]:hidden! transition-all`,e.state==`error`&&e.retry?`w-[60%]!`:`w-[95%]!`],height:7,status:e.state},null),(0,t.createVNode)(t.Transition,{name:`van-slide-right`},tv(r=(0,t.withDirectives)((0,t.createVNode)(`div`,{class:`absolute! ease-in-out! right-[4%] top-1/2 -translate-y-1/2 flex gap-3`},[(0,t.createVNode)(a.NButton,{tertiary:!0,circle:!0,onClick:()=>{e.state==`error`&&(e.retry=void 0,e.pc.reject(e.error))},class:`size-10!`},{icon:()=>(0,t.createVNode)(a.NIcon,null,{default:()=>[(0,t.createVNode)(i_,null,null)]})}),(0,t.createVNode)(a.NButton,{tertiary:!0,circle:!0,onClick:e.retry,class:`size-10!`},{icon:()=>(0,t.createVNode)(a.NIcon,null,{default:()=>[(0,t.createVNode)(n_,null,null)]})})]),[[t.vShow,e.state==`error`&&e.retry]]))?r:{default:()=>[r]})]),(0,t.createVNode)(`div`,{class:`text-xs text-(--van-text-color-2) h-4!`},[e.state==`error`&&`${e.error.name}: ${e.error.message}`||e.description||`...`])])}))?n:{default:()=>[n]}),(0,t.createVNode)(`div`,{class:`rounded-lg w-10 bg-(--nui-divider-color) h-1 absolute -bottom-2 left-1/2 -translate-x-1/2`},null)])]})]})},duration:0}),f=(e,n,r)=>{let i=Promise.withResolvers(),a=(0,t.ref)(),o=(0,t.reactive)({description:``,retryable:!1,...n}),c=Error(),l=s.length,u=(0,t.watch)([o,a],([,t])=>{s[l]={title:e,state:t,error:c,pc:i,retry:o.retryable?d:void 0,...o}},{immediate:!0}),d=async()=>{for(let e in a.value=void 0,o.description=``,o.retryable=!1,n)Object.hasOwn(n,e)&&(o[e]=n[e]);try{let e=await r(o);a.value=`success`,await(0,t.nextTick)(),u.stop(),i.resolve(e)}catch(e){c=tn(e)?e:Error(Te(e)),a.value=`error`,await(0,t.nextTick)(),o.retryable||(u.stop(),i.reject(e))}};return d(),i.promise},p=n({createProgress:(e,t)=>f(e,{progress:0},t),createLoading:(e,t)=>f(e,{},t)}),m=Promise.withResolvers();return p.then(async e=>{c.value=!1,i.value=!0;let n=s.find(e=>e.state==`error`);if(n)throw n.error;m.resolve(e),en(3e3).then(()=>{c.value=!0}),await(0,t.nextTick)(),await D(c).toBeTruthy(),l.stop(),d.destroy(),iv[r]=void 0}),p.catch(async e=>{m.reject(e),c.value=!1,en(3e3).then(()=>{c.value=!0}),await(0,t.nextTick)(),await D(c).toBeTruthy(),l.stop(),d.destroy(),iv[r]=void 0}),m.promise};var ov=class{constructor(e,t){this.pluginName=e,this.config=t,this.key=Symbol.for(`config:${e}`)}key};const sv=new ov(`core`,{recordHistory:{type:`switch`,defaultValue:!0,info:`记录历史记录`},showAIProject:{type:`switch`,defaultValue:!0,info:`展示AI作品`},darkMode:{type:`radio`,defaultValue:`system`,info:`暗色模式配置`,comp:`select`,selects:[{label:`浅色`,value:`light`},{label:`暗色`,value:`dark`},{label:`跟随系统`,value:`system`}]},easilyTitle:{type:`switch`,defaultValue:!1,info:`简化标题(实验)`}}),cv=(0,i.defineStore)(`config`,e=>{let n=(0,t.shallowReactive)(new Map),r=e.action(e=>{let t=n.get(e.key);if(!t)throw Error(`not found config by plugin "${e.pluginName}"`);return t.value},`load`),i=pe(),a=(0,t.computed)(()=>{if(!o(sv))return i.value;switch(r(sv).value.darkMode){case`light`:return!1;case`dark`:return!0;case`system`:return i.value;default:return!1}}),o=e.action(e=>n.has(e.key),`isExistConfig`);return{isDark:a,form:n,$load:r,$isExistConfig:o,$resignerConfig:e.action(e=>{let t=window.$api.useNativeStore,n=cv(),r=t(e.pluginName,`config`,Gt(Object.entries(e.config).map(([e,t])=>[e,t.defaultValue])));n.form.set(e.key,{form:e.config,value:r})},`resignerConfig`)}}),lv=async e=>{if(Kt(e))var t=e(window.$$safe$$);else var t=e;return console.log(`[definePlugin] new plugin defining...`,t),await Qt.call(`addPlugin`,t),t},uv=e=>({name:{display:e[`name:display`],id:e[`name:id`]},author:e.author??``,description:e.description,require:(e.require?nn(e.require)?[e.require]:e.require:[]).map(e=>{let[t,...n]=e.split(`:`);if(t.startsWith(`dc|`))return{id:t.replace(/^dc\|/,``),download:n.join(`:`)}}).filter(e=>!Ft(e)),version:{plugin:e.version.split(`/`)[0],supportCore:(()=>{let t=e.version.split(`/`)[1];return e.version.split(`/`)[2]?t.replaceAll(`>=`,`^`):t})()}}),dv=e=>Symbol.for(`expose:${e}`),fv=e=>pv.get(e),pv=new Map,mv=dv(`core`);var hv={name:`delta-comic-core`,version:`0.5.13`,description:`空阙虱楼`,homepage:`https://github.com/delta-comic/delta-comic-core`,repository:{type:`git`,url:`https://github.com/delta-comic/delta-comic-core.git`},author:{email:`wenxinguo12@gmail.com`,name:`wenxig`},readme:`./README.md`,license:`AGPL-3.0-only`,type:`module`,scripts:{build:`vite build && pnpm pack --out ./dist/pack.tgz`},dependencies:{"@lhlyu/vue-virtual-waterfall":`^1.0.8`,"@vant/use":`^1.6.0`,"@vueuse/core":`14.1.0`,axios:`^1.12.2`,dayjs:`^1.11.19`,"es-toolkit":`^1.40.0`,mitt:`^3.0.1`,"motion-v":`1.7.3`,"naive-ui":`2.43.1`,pinia:`^3.0.3`,"tailwindcss-safe-area-capacitor":`^0.5.1`,vant:`4.9.21`,vidstack:`^1.12.13`,"vite-plugin-external":`^6.2.2`,"vite-plugin-monkey":`^7.1.8`,"vue-router":`4.6.3`},peerDependencies:{axios:`^1.12.2`,kysely:`^0.28.9`,"naive-ui":`2.43.2`,pinia:`^3.0.4`,vant:`4.9.22`,vue:`3.5.26`,"vue-router":`4.6.4`},devDependencies:{"@tailwindcss/vite":`^4.1.18`,"@types/node":`^25.0.6`,"@vitejs/plugin-vue":`^6.0.3`,"@vitejs/plugin-vue-jsx":`^5.1.3`,browserslist:`^4.28.1`,lightningcss:`^1.30.2`,tailwindcss:`^4.1.18`,"unplugin-vue-components":`31.0.0`,vite:`^8.0.0-beta.11`,"vite-plugin-dts":`^4.5.4`,"vue-component-type-helpers":`^3.2.2`},files:[`dist`],main:`./dist/bundle.js`,module:`./dist/bundle.js`,exports:{".":{import:`./dist/bundle.js`,require:`./dist/bundle.cjs`,types:`./dist/lib/index.d.ts`},"./vite":{import:`./dist/bundle2.js`,require:`./dist/bundle2.cjs`,types:`./dist/vite/index.d.ts`},"./style.css":`./dist/bundle.css`},types:`./dist/lib/index.d.ts`,pnpm:{overrides:{vite:`^8.0.0-beta.11`},onlyBuiltDependencies:[`@parcel/watcher`,`@tailwindcss/oxide`,`esbuild`]}};const gv={Await:Pn,Loading:no,Content:p_,FloatPopup:oo,Image:fo,List:h_,Popup:g_,RouterTab:__,Text:v_,ToggleIcon:b_,Var:m_,Waterfall:Z_};let _v;(function(e){e.data=ln,e.eventBus=Xt,e.image=so,e.layout=ro,e.request=rn,e.translate=Q_,e.message=ev})(_v||={});const vv={useTemp:uo,useConfig:cv,appConfig:sv,ConfigPointer:ov},yv=hv.version;exports.Comp=gv,exports.Store=vv,Object.defineProperty(exports,`Utils`,{enumerable:!0,get:function(){return _v}}),exports._=void 0,exports._pluginExposes=pv,exports.coreModule=mv,exports.declareDependType=dv,exports.decodePluginMeta=uv,exports.definePlugin=lv,exports.requireDepend=fv,Object.defineProperty(exports,`uni`,{enumerable:!0,get:function(){return Nn}}),exports.version=yv;
9
+ `)}function i(e){let n=t.get(e);n&&(t.delete(e),F.render(()=>{document.head.removeChild(n)}))}return{addPopStyle:r,removePopStyle:i,styles:t}}function lp(e){return Promise.resolve().then(()=>{e()})}var up=(0,t.defineComponent)({name:`AnimatePresence`,inheritAttrs:!0,__name:`AnimatePresence`,props:{mode:{default:`sync`},initial:{type:Boolean,default:!0},as:{},custom:{},onExitComplete:{},anchorX:{default:`left`}},setup(e){let n=e;Cr(n);let{addPopStyle:r,removePopStyle:i,styles:a}=cp(n);function o(e){let t=e;for(;t;){if(Tr.get(t))return t;t=t.firstElementChild}return null}function s(e){let t=Tr.get(e);t&&(i(t),t.isVShow=!0,br(e),lp(()=>{t.setActive(`exit`,!1)}))}let c=new Map;(0,t.onUnmounted)(()=>{c.clear()});function l(e,t){var s;let l=o(e),u=Tr.get(l);if(!l||!u){t(),c.size===0&&((s=n.onExitComplete)==null||s.call(n));return}c.set(l,!0),br(l),r(u);function d(e){var r;if(e?.detail?.isExit){if(u.visualElement.projection?.animationProgress>0&&!u.isSafeToRemove&&!u.isVShow)return;br(l),c.delete(l),c.size===0&&((r=n.onExitComplete)==null||r.call(n)),a.has(u)?i(u):u.willUpdate(`done`),t(),l.isConnected||u.unmount(!0)}}lp(()=>{u.setActive(`exit`,!0),yr.set(l,d),l.addEventListener(`motioncomplete`,d)})}let u=(0,t.computed)(()=>n.mode===`wait`?{mode:n.mode===`wait`?`out-in`:void 0}:{tag:n.as});return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.mode===`wait`?t.Transition:t.TransitionGroup),(0,t.mergeProps)({css:!1},u.value,{appear:``,onEnter:s,onLeave:l}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`)]),_:3},16))}});function dp(e){if(e)return e.nodeType===3||e.nodeType===8?dp(e.nextSibling):e}var[fp,pp]=er(`LazyMotionContext`);function mp(e){let n=tr(null),r=rr({}),i=sp(),a=xr({}),o=fp({features:(0,t.ref)([]),strict:!1});if(process.env.NODE_ENV!==`production`&&e.features?.length&&o.strict){let t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?sr(!1,t):cr(!1,t)}let s=(0,t.useAttrs)();function c(){return r.id&&e.layoutId?`${r.id}-${e.layoutId}`:e.layoutId||void 0}function l(){return{...e,lazyMotionContext:o,layoutId:c(),transition:e.transition??i.value.transition,layoutGroup:r,motionConfig:i.value,inViewOptions:e.inViewOptions??i.value.inViewOptions,animatePresenceContext:a,initial:a.initial===!1?a.initial:e.initial===!0?void 0:e.initial}}function u(){return{...s,...l()}}let d=new Dr(u(),n);nr(d);function f(){let t=d.type===`svg`,n={...s};Object.keys(s).forEach(e=>{B(s[e])&&(n[e]=s[e].get())});let r={...e.style,...t?{}:d.visualElement?.latestValues||d.baseTarget};if(t){let{attrs:e,style:t}=ei({...d.isMounted()?d.target:d.baseTarget,...r});(t.transform||e.transformOrigin)&&(t.transformOrigin=e.transformOrigin??`50% 50%`,delete e.transformOrigin),t.transform&&(t.transformBox=t.transformBox??`fill-box`,delete e.transformBox),Object.assign(n,e),r=t}e.drag&&e.dragListener!==!1&&Object.assign(r,{userSelect:`none`,WebkitUserSelect:`none`,WebkitTouchCallout:`none`,touchAction:e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`});let i=Xr(r);return i&&(n.style=i),n}let p=(0,t.getCurrentInstance)().proxy;return(0,t.onBeforeMount)(()=>{d.beforeMount()}),(0,t.onMounted)(()=>{d.mount(dp(p.$el),u(),gp(p))}),(0,t.onBeforeUnmount)(()=>d.beforeUnmount()),(0,t.onUnmounted)(()=>{dp(p.$el)?.isConnected||d.unmount()}),(0,t.onBeforeUpdate)(()=>{d.beforeUpdate()}),(0,t.onUpdated)(()=>{d.update(u())}),{getProps:l,getAttrs:f,layoutGroup:r,state:d}}var hp={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},hover:{type:[String,Array,Object]},press:{type:[String,Array,Object]},inView:{type:[String,Array,Object]},focus:{type:[String,Array,Object]},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object],default:({hover:e})=>(process.env.NODE_ENV===`development`&&e&&sr(!0,`hover is deprecated. Use whileHover instead.`),e)},whilePress:{type:[String,Array,Object],default:({press:e})=>(process.env.NODE_ENV===`development`&&e&&sr(!0,`press is deprecated. Use whilePress instead.`),e)},whileInView:{type:[String,Array,Object],default:({inView:e})=>(process.env.NODE_ENV===`development`&&e&&sr(!0,`inView is deprecated. Use whileInView instead.`),e)},whileFocus:{type:[String,Array,Object],default:({focus:e})=>(process.env.NODE_ENV===`development`&&e&&sr(!0,`focus is deprecated. Use whileFocus instead.`),e)},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},layoutGroup:{type:Object},motionConfig:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:null},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}};function gp(e){let t=dp(e.$el)?.style.display===`none`;return e.$.vnode.transition&&t}var _p=new Map,vp=new Map;function yp(e){if(!Array.isArray(e))return[e];let t=[];for(let n of e)Array.isArray(n)?t.push(...n):t.push(n);return t}var bp=[`area`,`img`,`input`];function xp(e,n,r){var i;if(typeof e==`string`&&bp.includes(e))return(0,t.h)(e,n);if(e===`template`){if(!r.default)return null;let e=yp(r.default()),a=e.findIndex(e=>e.type!==t.Comment);if(a===-1)return e;let o=e[a];(i=o.props)==null||delete i.ref;let s=o.props?(0,t.mergeProps)(n,o.props):n;n.class&&o.props?.class&&delete o.props.class;let c=(0,t.cloneVNode)(o,s);for(let e in s)e.startsWith(`on`)&&(c.props||={},c.props[e]=s[e]);return e.length===1?c:(e[a]=c,e)}return null}function Sp(e,n={}){let r=typeof e==`string`,i=r?e:e.name||``,a=n.features?.length>0?_p:vp;if(r&&a?.has(e))return a.get(e);let o=(0,t.defineComponent)({inheritAttrs:!1,props:{...hp,features:{type:Object,default:()=>n.features||[]},as:{type:[String,Object],default:e||`div`}},name:i?`motion.${i}`:`Motion`,setup(e,{slots:r}){let{getProps:i,getAttrs:a,state:o}=mp(e);function s(){let t=o.element;if((typeof e.as!=`object`||e.asChild)&&t){let{style:e}=a();if(e)for(let[n,r]of Object.entries(e))t.style[n]=r}}return()=>{let o=i(),c=a(),l=e.asChild?`template`:e.as,u={...n.forwardMotionProps||e.forwardMotionProps?o:{},...c,onVnodeUpdated:s},d=xp(l,u,r);return d===null?(0,t.h)(l,{...u},r):d}}});return r&&a?.set(e,o),o}function Cp(e=[]){return new Proxy({},{get(t,n){return n===`create`?(t,n)=>Sp(t,{...n,features:e}):Sp(n,{features:e})}})}var wp=Cp(rp);wp.create(`div`);function Tp(){}var Ep=Object.assign,Dp=typeof window<`u`,Op=e=>typeof e==`object`&&!!e,kp=e=>e!=null,Ap=e=>typeof e==`function`,jp=e=>Op(e)&&Ap(e.then)&&Ap(e.catch),Mp=e=>typeof e==`number`||/^\d+(\.\d+)?$/.test(e),Np=()=>Dp?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function Pp(e,t){let n=t.split(`.`),r=e;return n.forEach(e=>{r=Op(r)?r[e]??``:``}),r}function Fp(e,t,n){return t.reduce((t,r)=>((!n||e[r]!==void 0)&&(t[r]=e[r]),t),{})}var q=[Number,String],J={type:Boolean,default:!0},Ip=e=>({type:e,required:!0}),Lp=()=>({type:Array,default:()=>[]}),Y=e=>({type:q,default:e}),X=e=>({type:String,default:e}),Rp=typeof window<`u`;function zp(e){return Rp?requestAnimationFrame(e):-1}function Bp(e){Rp&&cancelAnimationFrame(e)}function Vp(e){zp(()=>zp(e))}var Hp=e=>e===window,Up=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),Wp=e=>{let n=(0,t.unref)(e);if(Hp(n)){let e=n.innerWidth,t=n.innerHeight;return Up(e,t)}return n?.getBoundingClientRect?n.getBoundingClientRect():Up(0,0)};function Gp(e){let n=(0,t.inject)(e,null);if(n){let e=(0,t.getCurrentInstance)(),{link:r,unlink:i,internalChildren:a}=n;return r(e),(0,t.onUnmounted)(()=>i(e)),{parent:n,index:(0,t.computed)(()=>a.indexOf(e))}}return{parent:null,index:(0,t.ref)(-1)}}function Kp(e){let n=[],r=e=>{Array.isArray(e)&&e.forEach(e=>{(0,t.isVNode)(e)&&(n.push(e),e.component?.subTree&&(n.push(e.component.subTree),r(e.component.subTree.children)),e.children&&r(e.children))})};return r(e),n}var qp=(e,t)=>{let n=e.indexOf(t);return n===-1?e.findIndex(e=>t.key!==void 0&&t.key!==null&&e.type===t.type&&e.key===t.key):n};function Jp(e,t,n){let r=Kp(e.subTree.children);n.sort((e,t)=>qp(r,e.vnode)-qp(r,t.vnode));let i=n.map(e=>e.proxy);t.sort((e,t)=>i.indexOf(e)-i.indexOf(t))}function Yp(e){let n=(0,t.reactive)([]),r=(0,t.reactive)([]),i=(0,t.getCurrentInstance)();return{children:n,linkChildren:a=>{(0,t.provide)(e,Object.assign({link:e=>{e.proxy&&(r.push(e),n.push(e.proxy),Jp(i,n,r))},unlink:e=>{let t=r.indexOf(e);n.splice(t,1),r.splice(t,1)},children:n,internalChildren:r},a))}}}function Xp(e){let n;(0,t.onMounted)(()=>{e(),(0,t.nextTick)(()=>{n=!0})}),(0,t.onActivated)(()=>{n&&e()})}function Zp(e,n,r={}){if(!Rp)return;let{target:i=window,passive:a=!1,capture:o=!1}=r,s=!1,c,l=r=>{if(s)return;let i=(0,t.unref)(r);i&&!c&&(i.addEventListener(e,n,{capture:o,passive:a}),c=!0)},u=r=>{if(s)return;let i=(0,t.unref)(r);i&&c&&(i.removeEventListener(e,n,o),c=!1)};(0,t.onUnmounted)(()=>u(i)),(0,t.onDeactivated)(()=>u(i)),Xp(()=>l(i));let d;return(0,t.isRef)(i)&&(d=(0,t.watch)(i,(e,t)=>{u(t),l(e)})),()=>{d?.(),u(i),s=!0}}var Qp,$p;function em(){if(!Qp&&(Qp=(0,t.ref)(0),$p=(0,t.ref)(0),Rp)){let e=()=>{Qp.value=window.innerWidth,$p.value=window.innerHeight};e(),window.addEventListener(`resize`,e,{passive:!0}),window.addEventListener(`orientationchange`,e,{passive:!0})}return{width:Qp,height:$p}}var tm=/scroll|auto|overlay/i,nm=Rp?window:void 0;function rm(e){return e.tagName!==`HTML`&&e.tagName!==`BODY`&&e.nodeType===1}function im(e,t=nm){let n=e;for(;n&&n!==t&&rm(n);){let{overflowY:e}=window.getComputedStyle(n);if(tm.test(e))return n;n=n.parentNode}return t}function am(e,n=nm){let r=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(r.value=im(e.value,n))}),r}var om;function sm(){if(!om&&(om=(0,t.ref)(`visible`),Rp)){let e=()=>{om.value=document.hidden?`hidden`:`visible`};e(),window.addEventListener(`visibilitychange`,e)}return om}function cm(e){let t=`scrollTop`in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function lm(e,t){`scrollTop`in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function um(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function dm(e){lm(window,e),lm(document.body,e)}function fm(e,t){if(e===window)return 0;let n=t?cm(t):um();return Wp(e).top+n}Np();var pm=e=>e.stopPropagation();function mm(e,t){(typeof e.cancelable!=`boolean`||e.cancelable)&&e.preventDefault(),t&&pm(e)}function hm(e){let n=(0,t.unref)(e);if(!n)return!1;let r=window.getComputedStyle(n),i=r.display===`none`,a=n.offsetParent===null&&r.position!==`fixed`;return i||a}var{width:gm,height:_m}=em();function Z(e){if(kp(e))return Mp(e)?`${e}px`:String(e)}function vm(e){if(kp(e)){if(Array.isArray(e))return{width:Z(e[0]),height:Z(e[1])};let t=Z(e);return{width:t,height:t}}}function ym(e){let t={};return e!==void 0&&(t.zIndex=+e),t}var bm;function xm(){if(!bm){let e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;bm=parseFloat(t)}return bm}function Sm(e){return e=e.replace(/rem/g,``),+e*xm()}function Cm(e){return e=e.replace(/vw/g,``),+e*gm.value/100}function wm(e){return e=e.replace(/vh/g,``),+e*_m.value/100}function Tm(e){if(typeof e==`number`)return e;if(Dp){if(e.includes(`rem`))return Sm(e);if(e.includes(`vw`))return Cm(e);if(e.includes(`vh`))return wm(e)}return parseFloat(e)}var Em=/-(\w)/g,Dm=e=>e.replace(Em,(e,t)=>t.toUpperCase()),Om=e=>e.replace(/([A-Z])/g,`-$1`).toLowerCase().replace(/^-/,``),km=(e,t,n)=>Math.min(Math.max(e,t),n),{hasOwnProperty:Am}=Object.prototype;function jm(e,t,n){let r=t[n];kp(r)&&(!Am.call(e,n)||!Op(r)?e[n]=r:e[n]=Mm(Object(e[n]),r))}function Mm(e,t){return Object.keys(t).forEach(n=>{jm(e,t,n)}),e}var Nm={name:`姓名`,tel:`电话`,save:`保存`,clear:`清空`,cancel:`取消`,confirm:`确认`,delete:`删除`,loading:`加载中...`,noCoupon:`暂无优惠券`,nameEmpty:`请填写姓名`,addContact:`添加联系人`,telInvalid:`请填写正确的电话`,vanCalendar:{end:`结束`,start:`开始`,title:`日期选择`,weekdays:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],monthTitle:(e,t)=>`${e}\u5E74${t}\u6708`,rangePrompt:e=>`\u6700\u591A\u9009\u62E9 ${e} \u5929`},vanCascader:{select:`请选择`},vanPagination:{prev:`上一页`,next:`下一页`},vanPullRefresh:{pulling:`下拉即可刷新...`,loosing:`释放即可刷新...`},vanSubmitBar:{label:`合计:`},vanCoupon:{unlimited:`无门槛`,discount:e=>`${e}\u6298`,condition:e=>`\u6EE1${e}\u5143\u53EF\u7528`},vanCouponCell:{title:`优惠券`,count:e=>`${e}\u5F20\u53EF\u7528`},vanCouponList:{exchange:`兑换`,close:`不使用`,enable:`可用`,disabled:`不可用`,placeholder:`输入优惠码`},vanAddressEdit:{area:`地区`,areaEmpty:`请选择地区`,addressEmpty:`请填写详细地址`,addressDetail:`详细地址`,defaultAddress:`设为默认收货地址`},vanAddressList:{add:`新增地址`}},Pm=(0,t.ref)(`zh-CN`),Fm=(0,t.reactive)({"zh-CN":Nm}),Im={messages(){return Fm[Pm.value]},use(e,t){Pm.value=e,this.add({[e]:t})},add(e={}){Mm(Fm,e)}};function Lm(e){let t=Dm(e)+`.`;return(e,...n)=>{let r=Im.messages(),i=Pp(r,t+e)||Pp(r,e);return Ap(i)?i(...n):i}}function Rm(e,t){return t?typeof t==`string`?` ${e}--${t}`:Array.isArray(t)?t.reduce((t,n)=>t+Rm(e,n),``):Object.keys(t).reduce((n,r)=>n+(t[r]?Rm(e,r):``),``):``}function zm(e){return(t,n)=>(t&&typeof t!=`string`&&(n=t,t=``),t=t?`${e}__${t}`:e,`${t}${Rm(t,n)}`)}function Q(e){let t=`van-${e}`;return[t,zm(t),Lm(t)]}var Bm=`van-hairline`;`${Bm}`,`${Bm}`,`${Bm}`,`${Bm}`,`${Bm}`;var Vm=`${Bm}--top-bottom`;`${Bm}`;var Hm=`van-haptics-feedback`;function Um(e,{args:t=[],done:n,canceled:r,error:i}){if(e){let a=e.apply(null,t);jp(a)?a.then(e=>{e?n():r&&r()}).catch(i||Tp):a?n():r&&r()}else n()}function $(e){return e.install=t=>{let{name:n}=e;n&&(t.component(n,e),t.component(Dm(`-${n}`),e))},e}function Wm(e,t){return e.reduce((e,n)=>Math.abs(e-t)<Math.abs(n-t)?e:n)}var Gm=Symbol();function Km(e){let n=(0,t.inject)(Gm,null);n&&(0,t.watch)(n,t=>{t&&e()})}function qm(e){let n=(0,t.getCurrentInstance)();n&&Ep(n.proxy,e)}var Jm={to:[String,Object],url:String,replace:Boolean};function Ym({to:e,url:t,replace:n,$router:r}){e&&r?r[n?`replace`:`push`](e):t&&(n?location.replace(t):location.href=t)}var[Xm,Zm]=Q(`badge`),Qm={dot:Boolean,max:q,tag:X(`div`),color:String,offset:Array,content:q,showZero:J,position:X(`top-right`)},$m=$((0,t.defineComponent)({name:Xm,props:Qm,setup(e,{slots:n}){let r=()=>{if(n.content)return!0;let{content:t,showZero:r}=e;return kp(t)&&t!==``&&(r||t!==0&&t!==`0`)},i=()=>{let{dot:t,max:i,content:a}=e;if(!t&&r())return n.content?n.content():kp(i)&&Mp(a)&&+a>+i?`${i}+`:a},a=e=>e.startsWith(`-`)?e.replace(`-`,``):`-${e}`,o=(0,t.computed)(()=>{let t={background:e.color};if(e.offset){let[r,i]=e.offset,{position:o}=e,[s,c]=o.split(`-`);n.default?(typeof i==`number`?t[s]=Z(s===`top`?i:-i):t[s]=s===`top`?Z(i):a(i),typeof r==`number`?t[c]=Z(c===`left`?r:-r):t[c]=c===`left`?Z(r):a(r)):(t.marginTop=Z(i),t.marginLeft=Z(r))}return t}),s=()=>{if(r()||e.dot)return(0,t.createVNode)(`div`,{class:Zm([e.position,{dot:e.dot,fixed:!!n.default}]),style:o.value},[i()])};return()=>{if(n.default){let{tag:r}=e;return(0,t.createVNode)(r,{class:Zm(`wrapper`)},{default:()=>[n.default(),s()]})}return s()}}})),eh=2e3,th=()=>++eh,nh=e=>{eh=e},[rh,ih]=Q(`config-provider`),ah=Symbol(rh),oh={tag:X(`div`),theme:X(`light`),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:X(`local`),iconPrefix:String};function sh(e){return e.replace(/([a-zA-Z])(\d)/g,`$1-$2`)}function ch(e){let t={};return Object.keys(e).forEach(n=>{let r=sh(Om(n));t[`--van-${r}`]=e[n]}),t}function lh(e={},t={}){Object.keys(e).forEach(n=>{e[n]!==t[n]&&document.documentElement.style.setProperty(n,e[n])}),Object.keys(t).forEach(t=>{e[t]||document.documentElement.style.removeProperty(t)})}(0,t.defineComponent)({name:rh,props:oh,setup(e,{slots:n}){let r=(0,t.computed)(()=>ch(Ep({},e.themeVars,e.theme===`dark`?e.themeVarsDark:e.themeVarsLight)));if(Dp){let n=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},i=(t=e.theme)=>{document.documentElement.classList.remove(`van-theme-${t}`)};(0,t.watch)(()=>e.theme,(e,t)=>{t&&i(t),n()},{immediate:!0}),(0,t.onActivated)(n),(0,t.onDeactivated)(i),(0,t.onBeforeUnmount)(i),(0,t.watch)(r,(t,n)=>{e.themeVarsScope===`global`&&lh(t,n)}),(0,t.watch)(()=>e.themeVarsScope,(e,t)=>{t===`global`&&lh({},r.value),e===`global`&&lh(r.value,{})}),e.themeVarsScope===`global`&&lh(r.value,{})}return(0,t.provide)(ah,e),(0,t.watchEffect)(()=>{e.zIndex!==void 0&&nh(e.zIndex)}),()=>(0,t.createVNode)(e.tag,{class:ih(),style:e.themeVarsScope===`local`?r.value:void 0},{default:()=>[n.default?.call(n)]})}});var[uh,dh]=Q(`icon`),fh=e=>e?.includes(`/`),ph={dot:Boolean,tag:X(`i`),name:String,size:q,badge:q,color:String,badgeProps:Object,classPrefix:String},mh=$((0,t.defineComponent)({name:uh,props:ph,setup(e,{slots:n}){let r=(0,t.inject)(ah,null),i=(0,t.computed)(()=>e.classPrefix||r?.iconPrefix||dh());return()=>{let{tag:r,dot:a,name:o,size:s,badge:c,color:l}=e,u=fh(o);return(0,t.createVNode)($m,(0,t.mergeProps)({dot:a,tag:r,class:[i.value,u?``:`${i.value}-${o}`],style:{color:l,fontSize:Z(s)},content:c},e.badgeProps),{default:()=>[n.default?.call(n),u&&(0,t.createVNode)(`img`,{class:dh(`image`),src:o},null)]})}}})),[hh,gh]=Q(`loading`),_h=Array(12).fill(null).map((e,n)=>(0,t.createVNode)(`i`,{class:gh(`line`,String(n+1))},null)),vh=(0,t.createVNode)(`svg`,{class:gh(`circular`),viewBox:`25 25 50 50`},[(0,t.createVNode)(`circle`,{cx:`50`,cy:`50`,r:`20`,fill:`none`},null)]),yh={size:q,type:X(`circular`),color:String,vertical:Boolean,textSize:q,textColor:String},bh=$((0,t.defineComponent)({name:hh,props:yh,setup(e,{slots:n}){let r=(0,t.computed)(()=>Ep({color:e.color},vm(e.size))),i=()=>{let i=e.type===`spinner`?_h:vh;return(0,t.createVNode)(`span`,{class:gh(`spinner`,e.type),style:r.value},[n.icon?n.icon():i])},a=()=>{if(n.default)return(0,t.createVNode)(`span`,{class:gh(`text`),style:{fontSize:Z(e.textSize),color:e.textColor??e.color}},[n.default()])};return()=>{let{type:n,vertical:r}=e;return(0,t.createVNode)(`div`,{class:gh([n,{vertical:r}]),"aria-live":`polite`,"aria-busy":!0},[i(),a()])}}})),xh={show:Boolean,zIndex:q,overlay:J,duration:q,teleport:[String,Object],lockScroll:J,lazyRender:J,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:null,transitionAppear:Boolean,closeOnClickOverlay:J};function Sh(e,t){return e>t?`horizontal`:t>e?`vertical`:``}function Ch(){let e=(0,t.ref)(0),n=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(0),a=(0,t.ref)(0),o=(0,t.ref)(0),s=(0,t.ref)(``),c=(0,t.ref)(!0),l=()=>s.value===`vertical`,u=()=>s.value===`horizontal`,d=()=>{r.value=0,i.value=0,a.value=0,o.value=0,s.value=``,c.value=!0};return{move:(t=>{let l=t.touches[0];r.value=(l.clientX<0?0:l.clientX)-e.value,i.value=l.clientY-n.value,a.value=Math.abs(r.value),o.value=Math.abs(i.value),(!s.value||a.value<10&&o.value<10)&&(s.value=Sh(a.value,o.value)),c.value&&(a.value>5||o.value>5)&&(c.value=!1)}),start:(t=>{d(),e.value=t.touches[0].clientX,n.value=t.touches[0].clientY}),reset:d,startX:e,startY:n,deltaX:r,deltaY:i,offsetX:a,offsetY:o,direction:s,isVertical:l,isHorizontal:u,isTap:c}}var wh=0,Th=`van-overflow-hidden`;function Eh(e,n){let r=Ch(),i=t=>{r.move(t);let n=r.deltaY.value>0?`10`:`01`,{scrollHeight:i,offsetHeight:a,scrollTop:o}=im(t.target,e.value),s=`11`;o===0?s=a>=i?`00`:`01`:o+a>=i&&(s=`10`),s!==`11`&&r.isVertical()&&!(parseInt(s,2)&parseInt(n,2))&&mm(t,!0)},a=()=>{document.addEventListener(`touchstart`,r.start),document.addEventListener(`touchmove`,i,{passive:!1}),wh||document.body.classList.add(Th),wh++},o=()=>{wh&&(document.removeEventListener(`touchstart`,r.start),document.removeEventListener(`touchmove`,i),wh--,wh||document.body.classList.remove(Th))},s=()=>n()&&a(),c=()=>n()&&o();Xp(s),(0,t.onDeactivated)(c),(0,t.onBeforeUnmount)(c),(0,t.watch)(n,e=>{e?a():o()})}function Dh(e){let n=(0,t.ref)(!1);return(0,t.watch)(e,e=>{e&&(n.value=e)},{immediate:!0}),e=>()=>n.value?e():null}var Oh=()=>{let{scopeId:e}=(0,t.getCurrentInstance)()?.vnode||{};return e?{[e]:``}:null},[kh,Ah]=Q(`overlay`),jh={show:Boolean,zIndex:q,duration:q,className:null,lockScroll:J,lazyRender:J,customStyle:Object,teleport:[String,Object]},Mh=$((0,t.defineComponent)({name:kh,inheritAttrs:!1,props:jh,setup(e,{attrs:n,slots:r}){let i=(0,t.ref)(),a=Dh(()=>e.show||!e.lazyRender),o=t=>{e.lockScroll&&mm(t,!0)},s=a(()=>{let a=Ep(ym(e.zIndex),e.customStyle);return kp(e.duration)&&(a.animationDuration=`${e.duration}s`),(0,t.withDirectives)((0,t.createVNode)(`div`,(0,t.mergeProps)({ref:i,style:a,class:[Ah(),e.className]},n),[r.default?.call(r)]),[[t.vShow,e.show]])});return Zp(`touchmove`,o,{target:i}),()=>{let n=(0,t.createVNode)(t.Transition,{name:`van-fade`,appear:!0},{default:s});return e.teleport?(0,t.createVNode)(t.Teleport,{to:e.teleport},{default:()=>[n]}):n}}})),Nh=Ep({},xh,{round:Boolean,position:X(`center`),closeIcon:X(`cross`),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:X(`top-right`),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[Ph,Fh]=Q(`popup`),Ih=$((0,t.defineComponent)({name:Ph,inheritAttrs:!1,props:Nh,emits:[`open`,`close`,`opened`,`closed`,`keydown`,`update:show`,`clickOverlay`,`clickCloseIcon`],setup(e,{emit:n,attrs:r,slots:i}){let a,o,s=(0,t.ref)(),c=(0,t.ref)(),l=Dh(()=>e.show||!e.lazyRender),u=(0,t.computed)(()=>{let t={zIndex:s.value};if(kp(e.duration)){let n=e.position===`center`?`animationDuration`:`transitionDuration`;t[n]=`${e.duration}s`}return t}),d=()=>{a||(a=!0,s.value=e.zIndex===void 0?th():+e.zIndex,n(`open`))},f=()=>{a&&Um(e.beforeClose,{done(){a=!1,n(`close`),n(`update:show`,!1)}})},p=t=>{n(`clickOverlay`,t),e.closeOnClickOverlay&&f()},m=()=>{if(e.overlay)return(0,t.createVNode)(Mh,(0,t.mergeProps)(Ep({show:e.show,class:e.overlayClass,zIndex:s.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?`button`:void 0,tabindex:e.closeOnClickOverlay?0:void 0},e.overlayProps),Oh(),{onClick:p}),{default:i[`overlay-content`]})},h=e=>{n(`clickCloseIcon`,e),f()},g=()=>{if(e.closeable)return(0,t.createVNode)(mh,{role:`button`,tabindex:0,name:e.closeIcon,class:[Fh(`close-icon`,e.closeIconPosition),Hm],classPrefix:e.iconPrefix,onClick:h},null)},_,v=()=>{_&&clearTimeout(_),_=setTimeout(()=>{n(`opened`)})},y=()=>n(`closed`),b=e=>n(`keydown`,e),x=l(()=>{let{destroyOnClose:n,round:a,position:o,safeAreaInsetTop:s,safeAreaInsetBottom:l,show:d}=e;if(!(!d&&n))return(0,t.withDirectives)((0,t.createVNode)(`div`,(0,t.mergeProps)({ref:c,style:u.value,role:`dialog`,tabindex:0,class:[Fh({round:a,[o]:o}),{"van-safe-area-top":s,"van-safe-area-bottom":l}],onKeydown:b},r,Oh()),[i.default?.call(i),g()]),[[t.vShow,d]])}),S=()=>{let{position:n,transition:r,transitionAppear:i}=e,a=n===`center`?`van-fade`:`van-popup-slide-${n}`;return(0,t.createVNode)(t.Transition,{name:r||a,appear:i,onAfterEnter:v,onAfterLeave:y},{default:x})};return(0,t.watch)(()=>e.show,e=>{e&&!a&&(d(),r.tabindex===0&&(0,t.nextTick)(()=>{var e;(e=c.value)==null||e.focus()})),!e&&a&&(a=!1,n(`close`))}),qm({popupRef:c}),Eh(c,()=>e.show&&e.lockScroll),Zp(`popstate`,()=>{e.closeOnPopstate&&(f(),o=!1)}),(0,t.onMounted)(()=>{e.show&&d()}),(0,t.onActivated)(()=>{o&&=(n(`update:show`,!0),!1)}),(0,t.onDeactivated)(()=>{e.show&&e.teleport&&(f(),o=!0)}),(0,t.provide)(Gm,()=>e.show),()=>e.teleport?(0,t.createVNode)(t.Teleport,{to:e.teleport},{default:()=>[m(),S()]}):(0,t.createVNode)(t.Fragment,null,[m(),S()])}})),Lh=(e,n)=>{let r=(0,t.ref)(e());return(0,t.watch)(e,e=>{e!==r.value&&(r.value=e)}),(0,t.watch)(r,t=>{t!==e()&&n(t)}),r};process.env.NODE_ENV===`production`||Object.freeze({}),process.env.NODE_ENV===`production`||Object.freeze([]);var Rh=Array.isArray,zh=e=>typeof e==`string`,Bh=e=>typeof e==`object`&&!!e,Vh=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Hh=/\B([A-Z])/g,Uh=Vh(e=>e.replace(Hh,`-$1`).toLowerCase());function Wh(e){if(Rh(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=zh(r)?Jh(r):Wh(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(zh(e)||Bh(e))return e}var Gh=/;(?![^(]*\))/g,Kh=/:([^]+)/,qh=/\/\*[^]*?\*\//g;function Jh(e){let t={};return e.replace(qh,``).split(Gh).forEach(e=>{if(e){let n=e.split(Kh);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Yh(e){if(!e)return``;if(zh(e))return e;let t=``;for(let n in e){let r=e[n];if(zh(r)||typeof r==`number`){let e=n.startsWith(`--`)?n:Uh(n);t+=`${e}:${r};`}}return t}function Xh(e){let t=``;if(zh(e))t=e;else if(Rh(e))for(let n=0;n<e.length;n++){let r=Xh(e[n]);r&&(t+=r+` `)}else if(Bh(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function Zh(e,t,n){let r,i=0,a=e.scrollLeft,o=n===0?1:Math.round(n*1e3/16),s=a;function c(){Bp(r)}function l(){s+=(t-a)/o,e.scrollLeft=s,++i<o&&(r=zp(l))}return l(),c}function Qh(e,t,n,r){let i,a=cm(e),o=a<t,s=n===0?1:Math.round(n*1e3/16),c=(t-a)/s;function l(){Bp(i)}function u(){a+=c,(o&&a>t||!o&&a<t)&&(a=t),lm(e,a),o&&a<t||!o&&a>t?i=zp(u):r&&(i=zp(r))}return u(),l}var $h=0;function eg(){let{name:e=`unknown`}=(0,t.getCurrentInstance)()?.type||{};return process.env.NODE_ENV===`test`?e:`${e}-${++$h}`}function tg(){let e=(0,t.ref)([]),n=[];return(0,t.onBeforeUpdate)(()=>{e.value=[]}),[e,t=>(n[t]||(n[t]=n=>{e.value[t]=n}),n[t])]}function ng(e,n){if(!Dp||!window.IntersectionObserver)return;let r=new IntersectionObserver(e=>{n(e[0].intersectionRatio>0)},{root:document.body}),i=()=>{e.value&&r.observe(e.value)},a=()=>{e.value&&r.unobserve(e.value)};(0,t.onDeactivated)(a),(0,t.onBeforeUnmount)(a),Xp(i)}var[rg,ig]=Q(`sticky`),ag={zIndex:q,position:X(`top`),container:Object,offsetTop:Y(0),offsetBottom:Y(0)},og=$((0,t.defineComponent)({name:rg,props:ag,emits:[`scroll`,`change`],setup(e,{emit:n,slots:r}){let i=(0,t.ref)(),a=am(i),o=(0,t.reactive)({fixed:!1,width:0,height:0,transform:0}),s=(0,t.ref)(!1),c=(0,t.computed)(()=>Tm(e.position===`top`?e.offsetTop:e.offsetBottom)),l=(0,t.computed)(()=>{if(s.value)return;let{fixed:e,height:t,width:n}=o;if(e)return{width:`${n}px`,height:`${t}px`}}),u=(0,t.computed)(()=>{if(!o.fixed||s.value)return;let t=Ep(ym(e.zIndex),{width:`${o.width}px`,height:`${o.height}px`,[e.position]:`${c.value}px`});return o.transform&&(t.transform=`translate3d(0, ${o.transform}px, 0)`),t}),d=e=>n(`scroll`,{scrollTop:e,isFixed:o.fixed}),f=()=>{if(!i.value||hm(i))return;let{container:t,position:n}=e,r=Wp(i),a=cm(window);if(o.width=r.width,o.height=r.height,n===`top`)if(t){let e=Wp(t),n=e.bottom-c.value-o.height;o.fixed=c.value>r.top&&e.bottom>0,o.transform=n<0?n:0}else o.fixed=c.value>r.top;else{let{clientHeight:e}=document.documentElement;if(t){let n=Wp(t),i=e-n.top-c.value-o.height;o.fixed=e-c.value<r.bottom&&e>n.top,o.transform=i<0?-i:0}else o.fixed=e-c.value<r.bottom}d(a)};return(0,t.watch)(()=>o.fixed,e=>n(`change`,e)),Zp(`scroll`,f,{target:a,passive:!0}),ng(i,f),(0,t.watch)([gm,_m],()=>{!i.value||hm(i)||!o.fixed||(s.value=!0,(0,t.nextTick)(()=>{let e=Wp(i);o.width=e.width,o.height=e.height,s.value=!1}))}),()=>(0,t.createVNode)(`div`,{ref:i,style:l.value},[(0,t.createVNode)(`div`,{class:ig({fixed:o.fixed&&!s.value}),style:u.value},[r.default?.call(r)])])}})),[sg,cg]=Q(`swipe`),lg={loop:J,width:q,height:q,vertical:Boolean,autoplay:Y(0),duration:Y(500),touchable:J,lazyRender:Boolean,initialSwipe:Y(0),indicatorColor:String,showIndicators:J,stopPropagation:J},ug=Symbol(sg),dg=$((0,t.defineComponent)({name:sg,props:lg,emits:[`change`,`dragStart`,`dragEnd`],setup(e,{emit:n,slots:r}){let i=(0,t.ref)(),a=(0,t.ref)(),o=(0,t.reactive)({rect:null,width:0,height:0,offset:0,active:0,swiping:!1}),s=!1,c=Ch(),{children:l,linkChildren:u}=Yp(ug),d=(0,t.computed)(()=>l.length),f=(0,t.computed)(()=>o[e.vertical?`height`:`width`]),p=(0,t.computed)(()=>e.vertical?c.deltaY.value:c.deltaX.value),m=(0,t.computed)(()=>o.rect?(e.vertical?o.rect.height:o.rect.width)-f.value*d.value:0),h=(0,t.computed)(()=>f.value?Math.ceil(Math.abs(m.value)/f.value):d.value),g=(0,t.computed)(()=>d.value*f.value),_=(0,t.computed)(()=>(o.active+d.value)%d.value),v=(0,t.computed)(()=>{let t=e.vertical?`vertical`:`horizontal`;return c.direction.value===t}),y=(0,t.computed)(()=>{let t={transitionDuration:`${o.swiping?0:e.duration}ms`,transform:`translate${e.vertical?`Y`:`X`}(${+o.offset.toFixed(2)}px)`};if(f.value){let n=e.vertical?`height`:`width`,r=e.vertical?`width`:`height`;t[n]=`${g.value}px`,t[r]=e[r]?`${e[r]}px`:``}return t}),b=t=>{let{active:n}=o;return t?e.loop?km(n+t,-1,d.value):km(n+t,0,h.value):n},x=(t,n=0)=>{let r=t*f.value;e.loop||(r=Math.min(r,-m.value));let i=n-r;return e.loop||(i=km(i,m.value,0)),i},S=({pace:t=0,offset:r=0,emitChange:i})=>{if(d.value<=1)return;let{active:a}=o,s=b(t),c=x(s,r);if(e.loop){if(l[0]&&c!==m.value){let e=c<m.value;l[0].setOffset(e?g.value:0)}if(l[d.value-1]&&c!==0){let e=c>0;l[d.value-1].setOffset(e?-g.value:0)}}o.active=s,o.offset=c,i&&s!==a&&n(`change`,_.value)},C=()=>{o.swiping=!0,o.active<=-1?S({pace:d.value}):o.active>=d.value&&S({pace:-d.value})},w=()=>{C(),c.reset(),Vp(()=>{o.swiping=!1,S({pace:-1,emitChange:!0})})},T=()=>{C(),c.reset(),Vp(()=>{o.swiping=!1,S({pace:1,emitChange:!0})})},E,D=()=>clearTimeout(E),O=()=>{D(),+e.autoplay>0&&d.value>1&&(E=setTimeout(()=>{T(),O()},+e.autoplay))},k=(n=+e.initialSwipe)=>{if(!i.value)return;let r=()=>{if(!hm(i)){let t={width:i.value.offsetWidth,height:i.value.offsetHeight};o.rect=t,o.width=+(e.width??t.width),o.height=+(e.height??t.height)}d.value&&(n=Math.min(d.value-1,n),n===-1&&(n=d.value-1)),o.active=n,o.swiping=!0,o.offset=x(n),l.forEach(e=>{e.setOffset(0)}),O()};hm(i)?(0,t.nextTick)().then(r):r()},ee=()=>k(o.active),te,ne=t=>{!e.touchable||t.touches.length>1||(c.start(t),s=!1,te=Date.now(),D(),C())},re=t=>{e.touchable&&o.swiping&&(c.move(t),v.value&&(!e.loop&&(o.active===0&&p.value>0||o.active===d.value-1&&p.value<0)||(mm(t,e.stopPropagation),S({offset:p.value}),s||=(n(`dragStart`,{index:_.value}),!0))))},ie=()=>{if(!e.touchable||!o.swiping)return;let t=Date.now()-te,r=p.value/t;if((Math.abs(r)>.25||Math.abs(p.value)>f.value/2)&&v.value){let t=e.vertical?c.offsetY.value:c.offsetX.value,n=0;n=e.loop?t>0?p.value>0?-1:1:0:-Math[p.value>0?`ceil`:`floor`](p.value/f.value),S({pace:n,emitChange:!0})}else p.value&&S({pace:0});s=!1,o.swiping=!1,n(`dragEnd`,{index:_.value}),O()},ae=(t,n={})=>{C(),c.reset(),Vp(()=>{let r;r=e.loop&&t===d.value?o.active===0?0:t:t%d.value,n.immediate?Vp(()=>{o.swiping=!1}):o.swiping=!1,S({pace:r-o.active,emitChange:!0})})},oe=(n,r)=>{let i=r===_.value,a=i?{backgroundColor:e.indicatorColor}:void 0;return(0,t.createVNode)(`i`,{style:a,class:cg(`indicator`,{active:i})},null)},se=()=>{if(r.indicator)return r.indicator({active:_.value,total:d.value});if(e.showIndicators&&d.value>1)return(0,t.createVNode)(`div`,{class:cg(`indicators`,{vertical:e.vertical})},[Array(d.value).fill(``).map(oe)])};return qm({prev:w,next:T,state:o,resize:ee,swipeTo:ae}),u({size:f,props:e,count:d,activeIndicator:_}),(0,t.watch)(()=>e.initialSwipe,e=>k(+e)),(0,t.watch)(d,()=>k(o.active)),(0,t.watch)(()=>e.autoplay,O),(0,t.watch)([gm,_m,()=>e.width,()=>e.height],ee),(0,t.watch)(sm(),e=>{e===`visible`?O():D()}),(0,t.onMounted)(k),(0,t.onActivated)(()=>k(o.active)),Km(()=>k(o.active)),(0,t.onDeactivated)(D),(0,t.onBeforeUnmount)(D),Zp(`touchmove`,re,{target:a}),()=>(0,t.createVNode)(`div`,{ref:i,class:cg()},[(0,t.createVNode)(`div`,{ref:a,style:y.value,class:cg(`track`,{vertical:e.vertical}),onTouchstartPassive:ne,onTouchend:ie,onTouchcancel:ie},[r.default?.call(r)]),se()])}})),[fg,pg]=Q(`tabs`),mg=(0,t.defineComponent)({name:fg,props:{count:Ip(Number),inited:Boolean,animated:Boolean,duration:Ip(q),swipeable:Boolean,lazyRender:Boolean,currentIndex:Ip(Number)},emits:[`change`],setup(e,{emit:n,slots:r}){let i=(0,t.ref)(),a=e=>n(`change`,e),o=()=>{let n=r.default?.call(r);return e.animated||e.swipeable?(0,t.createVNode)(dg,{ref:i,loop:!1,class:pg(`track`),duration:e.duration*1e3,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:a},{default:()=>[n]}):n},s=t=>{let n=i.value;n&&n.state.active!==t&&n.swipeTo(t,{immediate:!e.inited})};return(0,t.watch)(()=>e.currentIndex,s),(0,t.onMounted)(()=>{s(e.currentIndex)}),qm({swipeRef:i}),()=>(0,t.createVNode)(`div`,{class:pg(`content`,{animated:e.animated||e.swipeable})},[o()])}}),[hg,gg]=Q(`tabs`),_g={type:X(`line`),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:Y(0),duration:Y(.3),animated:Boolean,ellipsis:J,swipeable:Boolean,scrollspy:Boolean,offsetTop:Y(0),background:String,lazyRender:J,showHeader:J,lineWidth:q,lineHeight:q,beforeChange:Function,swipeThreshold:Y(5),titleActiveColor:String,titleInactiveColor:String},vg=Symbol(hg),yg=(0,t.defineComponent)({name:hg,props:_g,emits:[`change`,`scroll`,`rendered`,`clickTab`,`update:active`],setup(e,{emit:n,slots:r}){let i,a,o,s,c,l=(0,t.ref)(),u=(0,t.ref)(),d=(0,t.ref)(),f=(0,t.ref)(),p=eg(),m=am(l),[h,g]=tg(),{children:_,linkChildren:v}=Yp(vg),y=(0,t.reactive)({inited:!1,position:``,lineStyle:{},currentIndex:-1}),b=(0,t.computed)(()=>_.length>+e.swipeThreshold||!e.ellipsis||e.shrink),x=(0,t.computed)(()=>({borderColor:e.color,background:e.background})),S=(e,t)=>e.name??t,C=(0,t.computed)(()=>{let e=_[y.currentIndex];if(e)return S(e,y.currentIndex)}),w=(0,t.computed)(()=>Tm(e.offsetTop)),T=(0,t.computed)(()=>e.sticky?w.value+i:0),E=t=>{let n=u.value,r=h.value;if(!b.value||!n||!r||!r[y.currentIndex])return;let i=r[y.currentIndex].$el,a=i.offsetLeft-(n.offsetWidth-i.offsetWidth)/2;s&&s(),s=Zh(n,a,t?0:+e.duration)},D=()=>{let n=y.inited;(0,t.nextTick)(()=>{let t=h.value;if(!t||!t[y.currentIndex]||e.type!==`line`||hm(l.value))return;let r=t[y.currentIndex].$el,{lineWidth:i,lineHeight:a}=e,o=r.offsetLeft+r.offsetWidth/2,s={width:Z(i),backgroundColor:e.color,transform:`translateX(${o}px) translateX(-50%)`};if(n&&(s.transitionDuration=`${e.duration}s`),kp(a)){let e=Z(a);s.height=e,s.borderRadius=e}y.lineStyle=s})},O=e=>{let t=e<y.currentIndex?-1:1;for(;e>=0&&e<_.length;){if(!_[e].disabled)return e;e+=t}},k=(t,r)=>{let i=O(t);if(!kp(i))return;let a=_[i],s=S(a,i),c=y.currentIndex!==null;y.currentIndex!==i&&(y.currentIndex=i,r||E(),D()),s!==e.active&&(n(`update:active`,s),c&&n(`change`,s,a.title)),o&&!e.scrollspy&&dm(Math.ceil(fm(l.value)-w.value))},ee=(e,t)=>{let n=_.findIndex((t,n)=>S(t,n)===e);k(n===-1?0:n,t)},te=(t=!1)=>{if(e.scrollspy){let n=_[y.currentIndex].$el;if(n&&m.value){let r=fm(n,m.value)-T.value;a=!0,c&&c(),c=Qh(m.value,r,t?0:+e.duration,()=>{a=!1})}}},ne=(t,r,i)=>{let{title:a,disabled:o}=_[r],s=S(_[r],r);o||(Um(e.beforeChange,{args:[s],done:()=>{k(r),te()}}),Ym(t)),n(`clickTab`,{name:s,title:a,event:i,disabled:o})},re=e=>{o=e.isFixed,n(`scroll`,e)},ie=e=>{(0,t.nextTick)(()=>{ee(e),te(!0)})},ae=()=>{for(let e=0;e<_.length;e++){let{top:t}=Wp(_[e].$el);if(t>T.value)return e===0?0:e-1}return _.length-1},oe=()=>{e.scrollspy&&!a&&k(ae())},se=()=>{if(e.type===`line`&&_.length)return(0,t.createVNode)(`div`,{class:gg(`line`),style:y.lineStyle},null)},ce=()=>{let{type:n,border:i,sticky:a}=e,o=[(0,t.createVNode)(`div`,{ref:a?void 0:d,class:[gg(`wrap`),{[Vm]:n===`line`&&i}]},[(0,t.createVNode)(`div`,{ref:u,role:`tablist`,class:gg(`nav`,[n,{shrink:e.shrink,complete:b.value}]),style:x.value,"aria-orientation":`horizontal`},[r[`nav-left`]?.call(r),_.map(e=>e.renderTitle(ne)),se(),r[`nav-right`]?.call(r)])]),r[`nav-bottom`]?.call(r)];return a?(0,t.createVNode)(`div`,{ref:d},[o]):o},le=()=>{D(),(0,t.nextTick)(()=>{var e;E(!0),(e=f.value?.swipeRef.value)==null||e.resize()})};return(0,t.watch)(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],D),(0,t.watch)(gm,le),(0,t.watch)(()=>e.active,e=>{e!==C.value&&ee(e)}),(0,t.watch)(()=>_.length,()=>{y.inited&&(ee(e.active),D(),(0,t.nextTick)(()=>{E(!0)}))}),qm({resize:le,scrollTo:ie}),(0,t.onActivated)(D),Km(D),Xp(()=>{ee(e.active,!0),(0,t.nextTick)(()=>{y.inited=!0,d.value&&(i=Wp(d.value).height),E(!0)})}),ng(l,D),Zp(`scroll`,oe,{target:m,passive:!0}),v({id:p,props:e,setLine:D,scrollable:b,onRendered:(e,t)=>n(`rendered`,e,t),currentName:C,setTitleRefs:g,scrollIntoView:E}),()=>(0,t.createVNode)(`div`,{ref:l,class:gg([e.type])},[e.showHeader?e.sticky?(0,t.createVNode)(og,{container:l.value,offsetTop:w.value,onScroll:re},{default:()=>[ce()]}):ce():null,(0,t.createVNode)(mg,{ref:f,count:_.length,inited:y.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:y.currentIndex,onChange:k},{default:()=>[r.default?.call(r)]})])}}),bg=Symbol(),xg=Symbol(),Sg=()=>(0,t.inject)(xg,null),Cg=e=>{let n=Sg();(0,t.provide)(bg,e),(0,t.provide)(xg,(0,t.computed)(()=>(n==null||n.value)&&e.value))},[wg,Tg]=Q(`tab`),Eg=(0,t.defineComponent)({name:wg,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:q,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:J},setup(e,{slots:n}){let r=(0,t.computed)(()=>{let t={},{type:n,color:r,disabled:i,isActive:a,activeColor:o,inactiveColor:s}=e;r&&n===`card`&&(t.borderColor=r,i||(a?t.backgroundColor=r:t.color=r));let c=a?o:s;return c&&(t.color=c),t}),i=()=>{let r=(0,t.createVNode)(`span`,{class:Tg(`text`,{ellipsis:!e.scrollable})},[n.title?n.title():e.title]);return e.dot||kp(e.badge)&&e.badge!==``?(0,t.createVNode)($m,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[r]}):r};return()=>(0,t.createVNode)(`div`,{id:e.id,role:`tab`,class:[Tg([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:r.value,tabindex:e.disabled?void 0:e.isActive?0:-1,"aria-selected":e.isActive,"aria-disabled":e.disabled||void 0,"aria-controls":e.controls,"data-allow-mismatch":`attribute`},[i()])}}),[Dg,Og]=Q(`swipe-item`),kg=$((0,t.defineComponent)({name:Dg,setup(e,{slots:n}){let r,i=(0,t.reactive)({offset:0,inited:!1,mounted:!1}),{parent:a,index:o}=Gp(ug);if(!a){process.env.NODE_ENV!==`production`&&console.error(`[Vant] <SwipeItem> must be a child component of <Swipe>.`);return}let s=(0,t.computed)(()=>{let e={},{vertical:t}=a.props;return a.size.value&&(e[t?`height`:`width`]=`${a.size.value}px`),i.offset&&(e.transform=`translate${t?`Y`:`X`}(${i.offset}px)`),e}),c=(0,t.computed)(()=>{let{loop:e,lazyRender:t}=a.props;if(!t||r)return!0;if(!i.mounted)return!1;let n=a.activeIndicator.value,s=a.count.value-1,c=n===0&&e?s:n-1,l=n===s&&e?0:n+1;return r=o.value===n||o.value===c||o.value===l,r});return(0,t.onMounted)(()=>{(0,t.nextTick)(()=>{i.mounted=!0})}),qm({setOffset:e=>{i.offset=e}}),()=>(0,t.createVNode)(`div`,{class:Og(),style:s.value},[c.value?n.default?.call(n):null])}})),[Ag,jg]=Q(`tab`),Mg=Ep({},Jm,{dot:Boolean,name:q,badge:q,title:String,disabled:Boolean,titleClass:null,titleStyle:[String,Object],showZeroBadge:J}),Ng=$((0,t.defineComponent)({name:Ag,props:Mg,setup(e,{slots:n}){let r=eg(),i=(0,t.ref)(!1),a=(0,t.getCurrentInstance)(),{parent:o,index:s}=Gp(vg);if(!o){process.env.NODE_ENV!==`production`&&console.error(`[Vant] <Tab> must be a child component of <Tabs>.`);return}let c=()=>e.name??s.value,l=()=>{i.value=!0,o.props.lazyRender&&(0,t.nextTick)(()=>{o.onRendered(c(),e.title)})},u=(0,t.computed)(()=>{let e=c()===o.currentName.value;return e&&!i.value&&l(),e}),d=(0,t.ref)(``),f=(0,t.ref)(``);(0,t.watchEffect)(()=>{let{titleClass:t,titleStyle:n}=e;d.value=t?Xh(t):``,f.value=n&&typeof n!=`string`?Yh(Wh(n)):n});let p=i=>(0,t.createVNode)(Eg,(0,t.mergeProps)({key:r,id:`${o.id}-${s.value}`,ref:o.setTitleRefs(s.value),style:f.value,class:d.value,isActive:u.value,controls:r,scrollable:o.scrollable.value,activeColor:o.props.titleActiveColor,inactiveColor:o.props.titleInactiveColor,onClick:e=>i(a.proxy,s.value,e)},Fp(o.props,[`type`,`color`,`shrink`]),Fp(e,[`dot`,`badge`,`title`,`disabled`,`showZeroBadge`])),{title:n.title}),m=(0,t.ref)(!u.value);return(0,t.watch)(u,e=>{e?m.value=!1:Vp(()=>{m.value=!0})}),(0,t.watch)(()=>e.title,()=>{o.setLine(),o.scrollIntoView()}),Cg(u),qm({id:r,renderTitle:p}),()=>{let e=`${o.id}-${s.value}`,{animated:a,swipeable:c,scrollspy:l,lazyRender:d}=o.props;if(!n.default&&!a)return;let f=l||u.value;if(a||c)return(0,t.createVNode)(kg,{id:r,role:`tabpanel`,class:jg(`panel-wrapper`,{inactive:m.value}),tabindex:u.value?0:-1,"aria-hidden":!u.value,"aria-labelledby":e,"data-allow-mismatch":`attribute`},{default:()=>[(0,t.createVNode)(`div`,{class:jg(`panel`)},[n.default?.call(n)])]});let p=i.value||l||!d?n.default?.call(n):null;return(0,t.withDirectives)((0,t.createVNode)(`div`,{id:r,role:`tabpanel`,class:jg(`panel`),tabindex:f?0:-1,"aria-labelledby":e,"data-allow-mismatch":`attribute`},[p]),[[t.vShow,f]])}}})),Pg=$(yg),Fg={height:Y(0),anchors:Lp(),duration:Y(.3),magnetic:J,contentDraggable:J,lockScroll:Boolean,safeAreaInsetBottom:J},[Ig,Lg]=Q(`floating-panel`),Rg=$((0,t.defineComponent)({name:Ig,props:Fg,emits:[`heightChange`,`update:height`],setup(e,{emit:n,slots:r}){let i=.2,a=(0,t.ref)(),o=(0,t.ref)(),s=Lh(()=>+e.height,e=>n(`update:height`,e)),c=(0,t.computed)(()=>({min:e.anchors[0]??100,max:e.anchors[e.anchors.length-1]??Math.round(_m.value*.6)})),l=(0,t.computed)(()=>e.anchors.length>=2?e.anchors:[c.value.min,c.value.max]),u=(0,t.ref)(!1),d=(0,t.computed)(()=>({height:Z(c.value.max),transform:`translateY(calc(100% + ${Z(-s.value)}))`,transition:u.value?`none`:`transform ${e.duration}s cubic-bezier(0.18, 0.89, 0.32, 1.28)`})),f=e=>{let t=Math.abs(e),{min:n,max:r}=c.value;return t>r?-(r+(t-r)*i):t<n?-(n-(n-t)*i):e},p,m=-1,h=Ch(),g=e=>{h.start(e),u.value=!0,p=-s.value,m=-1},_=t=>{h.move(t);let n=t.target;if(o.value===n||o.value?.contains(n)){let{scrollTop:n}=o.value;if(m=Math.max(m,n),!e.contentDraggable)return;if(-p<c.value.max)mm(t,!0);else if(!(n<=0&&h.deltaY.value>0)||m>0)return}s.value=-f(h.deltaY.value+p)},v=()=>{if(m=-1,u.value=!1,e.magnetic)s.value=Wm(l.value,s.value);else{let{min:e,max:t}=c.value;s.value=Math.max(e,Math.min(t,s.value))}s.value!==-p&&n(`heightChange`,{height:s.value})};(0,t.watch)(c,()=>{s.value=Wm(l.value,s.value)},{immediate:!0}),Eh(a,()=>e.lockScroll||u.value),Zp(`touchmove`,_,{target:a});let y=()=>r.header?r.header():(0,t.createVNode)(`div`,{class:Lg(`header`)},[(0,t.createVNode)(`div`,{class:Lg(`header-bar`)},null)]);return()=>(0,t.createVNode)(`div`,{class:[Lg(),{"van-safe-area-bottom":e.safeAreaInsetBottom}],ref:a,style:d.value,onTouchstartPassive:g,onTouchend:v,onTouchcancel:v},[y(),(0,t.createVNode)(`div`,{class:Lg(`content`),ref:o,style:{paddingBottom:Z(c.value.max-s.value)}},[r.default?.call(r)])])}})),[zg,Bg,Vg]=Q(`pull-refresh`),Hg=50,Ug=[`pulling`,`loosing`,`success`],Wg={disabled:Boolean,modelValue:Boolean,headHeight:Y(Hg),successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:q,successDuration:Y(500),animationDuration:Y(300)},Gg=$((0,t.defineComponent)({name:zg,props:Wg,emits:[`change`,`refresh`,`update:modelValue`],setup(e,{emit:n,slots:r}){let i,a=(0,t.ref)(),o=(0,t.ref)(),s=am(a),c=(0,t.reactive)({status:`normal`,distance:0,duration:0}),l=Ch(),u=()=>{if(e.headHeight!==Hg)return{height:`${e.headHeight}px`}},d=()=>c.status!==`loading`&&c.status!==`success`&&!e.disabled,f=t=>{let n=+(e.pullDistance||e.headHeight);return t>n&&(t=t<n*2?n+(t-n)/2:n*1.5+(t-n*2)/4),Math.round(t)},p=(t,r)=>{let i=+(e.pullDistance||e.headHeight);c.distance=t,r?c.status=`loading`:t===0?c.status=`normal`:t<i?c.status=`pulling`:c.status=`loosing`,n(`change`,{status:c.status,distance:t})},m=()=>{let{status:t}=c;return t===`normal`?``:e[`${t}Text`]||Vg(t)},h=()=>{let{status:e,distance:n}=c;if(r[e])return r[e]({distance:n});let i=[];return Ug.includes(e)&&i.push((0,t.createVNode)(`div`,{class:Bg(`text`)},[m()])),e===`loading`&&i.push((0,t.createVNode)(bh,{class:Bg(`loading`)},{default:m})),i},g=()=>{c.status=`success`,setTimeout(()=>{p(0)},+e.successDuration)},_=e=>{i=cm(s.value)===0,i&&(c.duration=0,l.start(e))},v=e=>{d()&&_(e)},y=e=>{if(d()){i||_(e);let{deltaY:t}=l;l.move(e),i&&t.value>=0&&l.isVertical()&&(mm(e),p(f(t.value)))}},b=()=>{i&&l.deltaY.value&&d()&&(c.duration=+e.animationDuration,c.status===`loosing`?(p(+e.headHeight,!0),n(`update:modelValue`,!0),(0,t.nextTick)(()=>n(`refresh`))):p(0))};return(0,t.watch)(()=>e.modelValue,t=>{c.duration=+e.animationDuration,t?p(+e.headHeight,!0):r.success||e.successText?g():p(0,!1)}),Zp(`touchmove`,y,{target:o}),()=>{let e={transitionDuration:`${c.duration}ms`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:``};return(0,t.createVNode)(`div`,{ref:a,class:Bg()},[(0,t.createVNode)(`div`,{ref:o,class:Bg(`track`),style:e,onTouchstartPassive:v,onTouchend:b,onTouchcancel:b},[(0,t.createVNode)(`div`,{class:Bg(`head`),style:u()},[h()]),r.default?.call(r)])])}}})),Kg=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})((0,t.defineComponent)({__name:`loading`,props:{size:{},type:{},color:{},vertical:{type:Boolean},textSize:{},textColor:{}},setup(e){(0,t.useCssVars)(e=>({v303af93a:r.value}));let n=e,r=(0,t.computed)(()=>Ut(n.size)?`${n.size}px`:n.size);return(e,r)=>{let i=bh;return(0,t.openBlock)(),(0,t.createBlock)(i,(0,t.normalizeProps)((0,t.guardReactiveProps)(n)),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`default`,{},void 0,!0)]),_:3},16)}}}),[[`__scopeId`,`data-v-31146189`]]);const qg=()=>(0,t.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 1024 1024`},[(0,t.createVNode)(`path`,{d:`M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92C290 92 102.3 279.5 102 511.5C101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1c1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 0 0-10.1 4.8c-1.8 5-3.8 10-5.9 14.9c-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 0 1 655.9 829c-42.3 17.9-87.4 27-133.8 27c-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 0 1 279 755.2a342.16 342.16 0 0 1-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4c31.6-31.6 68.4-56.4 109.3-73.8c42.3-17.9 87.4-27 133.8-27c46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 0 1 109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z`,fill:`currentColor`},null)]),Jg=()=>(0,t.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},[(0,t.createVNode)(`path`,{d:`M10.66 7.14c-2.24.48-4.04 2.3-4.52 4.54c-.37 1.75.02 3.38.89 4.66c.34.51 1.08.55 1.51.11c.35-.35.37-.88.1-1.28c-.5-.76-.75-1.71-.61-2.73c.23-1.74 1.67-3.17 3.41-3.4A4.003 4.003 0 0 1 16 13c0 .8-.24 1.54-.64 2.16c-.27.41-.25.95.1 1.29c.43.43 1.17.4 1.51-.11C17.62 15.4 18 14.25 18 13c0-3.75-3.45-6.7-7.34-5.86zm-.41-3.99c-4.05.69-7.19 3.69-8.03 7.72c-.66 3.17.2 6.16 1.97 8.38c.37.46 1.07.49 1.49.07c.36-.36.39-.93.07-1.32a8.004 8.004 0 0 1-1.66-6.28c.55-3.47 3.42-6.24 6.92-6.65c2.76-.33 5.27.74 6.93 2.59c.2.21.47.34.76.34c.85 0 1.34-1.01.77-1.65c-2.19-2.45-5.56-3.82-9.22-3.2zM12 11c-1.1 0-2 .9-2 2c0 .55.23 1.05.59 1.41c.36.36.86.59 1.41.59s1.05-.23 1.41-.59c.36-.36.59-.86.59-1.41c0-1.1-.9-2-2-2zm9-1c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1s-1-.45-1-1v-4c0-.55.45-1 1-1zm0 8c.55 0 1 .45 1 1s-.45 1-1 1s-1-.45-1-1s.45-1 1-1z`,fill:`currentColor`},null)]),Yg=()=>(0,t.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},[(0,t.createVNode)(`path`,{d:`M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59L7.11 5.7A.996.996 0 1 0 5.7 7.11L10.59 12L5.7 16.89a.996.996 0 1 0 1.41 1.41L12 13.41l4.89 4.89a.996.996 0 1 0 1.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z`,fill:`currentColor`},null)]),Xg=()=>(0,t.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},[(0,t.createVNode)(`path`,{d:`M9 16.2l-3.5-3.5a.984.984 0 0 0-1.4 0a.984.984 0 0 0 0 1.4l4.19 4.19c.39.39 1.02.39 1.41 0L20.3 7.7a.984.984 0 0 0 0-1.4a.984.984 0 0 0-1.4 0L9 16.2z`,fill:`currentColor`},null)]),Zg=()=>(0,t.createVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},[(0,t.createVNode)(`path`,{d:`M16.59 9H15V4c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v5H7.41c-.89 0-1.34 1.08-.71 1.71l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.63-.63.19-1.71-.7-1.71zM5 19c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1z`,fill:`currentColor`},null)]);var Qg={class:`relative size-full overflow-hidden`},$g={key:2},e_={key:3,class:`size-full`},t_={key:4,class:`flex items-center justify-around gap-3`},n_={class:`flex flex-col justify-center gap-2 text-white`},r_={class:`text-xs text-wrap`},i_=(0,t.defineComponent)({__name:`content`,props:{retriable:{type:Boolean},hideError:{type:Boolean},hideEmpty:{type:Boolean},hideLoading:{type:Boolean},source:{},class:{},classError:{},classEmpty:{},classLoading:{},style:{type:[Boolean,null,String,Object,Array]},styleError:{type:[Boolean,null,String,Object,Array]},styleEmpty:{type:[Boolean,null,String,Object,Array]},styleLoading:{type:[Boolean,null,String,Object,Array]}},emits:[`retry`,`resetRetry`],setup(e,{expose:n}){let i=e,a=(0,t.computed)(()=>N.isStream(i.source)?{isLoading:i.source.isRequesting.value,isError:i.source.error.value,errorCause:i.source.error.value?.message,isEmpty:i.source.isEmpty.value,data:i.source.data.value,isNoResult:i.source.isNoData.value}:mn.isPromiseContent(i.source)?{isLoading:i.source.isLoading.value,isError:i.source.isError.value,errorCause:i.source.errorCause.value?.message,isEmpty:i.source.isEmpty.value,data:i.source.data.value,isNoResult:i.source.isEmpty.value}:{isLoading:!1,isError:!1,errorCause:void 0,isEmpty:$t(i.source),data:i.source,isNoResult:$t(i.source)}),o={isLoadingNoData:{opacity:1,translateY:0,width:`2.5rem`,height:`2.5rem`,paddingBlock:`2px`,paddingInline:`2px`,left:`50%`,top:`8px`,translateX:`-50%`,backgroundColor:`var(--van-background-2)`,borderRadius:`100%`},isErrorNoData:{opacity:1,translateY:`-50%`,width:`70%`,minHeight:i.retriable?`22rem`:`20rem`,paddingBlock:`2px`,paddingInline:`2px`,left:`50%`,top:`50%`,translateX:`-50%`,backgroundColor:`var(--van-background-2)`,borderRadius:`4px`},isLoadingData:{opacity:.7,translateY:`0%`,width:`4rem`,height:`1.3rem`,paddingBlock:`2px`,paddingInline:`8px`,left:`4px`,top:`calc(100% - 8px - 1rem)`,translateX:`0%`,backgroundColor:`var(--p-color)`,borderRadius:`1.3rem`},isErrorData:{opacity:.7,translateY:`0%`,width:`fit-content`,height:`4rem`,paddingBlock:`2px`,paddingInline:`8px`,left:`4px`,top:`calc(100% - 8px - 4rem)`,translateX:`0%`,backgroundColor:`var(--p-color)`,borderRadius:`4px`},isEmpty:{opacity:1,translateY:`-50%`,width:`90%`,height:`10rem`,paddingBlock:`2px`,paddingInline:`2px`,left:`50%`,top:`50%`,translateX:`-50%`,backgroundColor:`var(--van-background-2)`,borderRadius:`4px`},done:{width:`4rem`,height:`1.3rem`,opacity:0,translateY:`100%`,paddingBlock:`0px`,paddingInline:`0px`,left:`4px`,top:`calc(100% - 8px - 1rem)`,translateX:`0%`,backgroundColor:`var(--p-color)`,borderRadius:`4px`}},s=(0,t.computed)(()=>!i.hideLoading&&a.value.isLoading?a.value.isEmpty?`isLoadingNoData`:`isLoadingData`:!i.hideError&&a.value.isError?a.value.isEmpty?`isErrorNoData`:`isErrorData`:!i.hideEmpty&&a.value.isNoResult?`isEmpty`:`done`),c=(0,t.useTemplateRef)(`cont`);return n({cont:c}),(n,l)=>{let u=bh,d=r.NEmpty,f=r.NButton,p=r.NIcon,m=r.NResult,h=up;return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,Qg,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`relative size-full`,[i.class]]),ref_key:`cont`,ref:c},[a.value.isEmpty?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(n.$slots,`default`,{key:0,data:a.value.data})],2),(0,t.createVNode)(h,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(wp).div,{initial:{opacity:0,translateY:`-100%`,left:`50%`,translateX:`-50%`},variants:o,animate:s.value,class:`absolute flex scale-100 items-center justify-center whitespace-nowrap shadow`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(t.Transition,{name:`van-fade`},{default:(0,t.withCtx)(()=>[s.value===`isLoadingNoData`?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,size:`25px`,color:`var(--p-color)`})):s.value===`isLoadingData`?((0,t.openBlock)(),(0,t.createBlock)(Kg,{key:1,size:`10px`,color:`white`},{default:(0,t.withCtx)(()=>[...l[2]||=[(0,t.createTextVNode)(`加载中`,-1)]]),_:1})):s.value===`isEmpty`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,$g,[(0,t.createVNode)(d,{description:`无结果`,class:(0,t.normalizeClass)([`w-full justify-center!`,[e.classEmpty]]),style:(0,t.normalizeStyle)([e.style,e.styleEmpty])},null,8,[`class`,`style`])])):s.value===`isErrorNoData`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,e_,[(0,t.createVNode)(m,{class:(0,t.normalizeClass)([`flex size-full! flex-col items-center! justify-center! text-wrap *:w-full`,[e.classError]]),status:`error`,title:`网络错误`,style:(0,t.normalizeStyle)([e.style,e.styleError]),description:a.value.errorCause??`未知原因`},{footer:(0,t.withCtx)(()=>[e.retriable?((0,t.openBlock)(),(0,t.createBlock)(f,{key:0,onClick:l[0]||=e=>n.$emit(`resetRetry`),type:`primary`},{default:(0,t.withCtx)(()=>[...l[3]||=[(0,t.createTextVNode)(`重试`,-1)]]),_:1})):(0,t.createCommentVNode)(``,!0)]),icon:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{size:`10rem`,color:`var(--nui-error-color)`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Jg))]),_:1})]),_:1},8,[`class`,`style`,`description`])])):s.value===`isErrorData`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,t_,[(0,t.createVNode)(p,{size:`3rem`,color:`white`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Jg))]),_:1}),(0,t.createElementVNode)(`div`,n_,[l[4]||=(0,t.createElementVNode)(`div`,{class:`text-sm`},`网络错误`,-1),(0,t.createElementVNode)(`div`,r_,(0,t.toDisplayString)(a.value.errorCause??`未知原因`),1)]),(0,t.createVNode)(f,{circle:``,type:`error`,size:`large`,onClick:l[1]||=e=>n.$emit(`retry`)},{icon:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{color:`white`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(qg))]),_:1})]),_:1})])):(0,t.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`animate`])]),_:1})])}}}),a_=e.n({useZIndex:()=>s_}),o_=A((0,t.shallowReactive)([]),`utils/layers`);const s_=e=>{let n=Symbol(`layer`),r=(0,t.watch)((0,t.toRef)(e),e=>{e?o_.push(n):Vt(o_,e=>e===n)},{immediate:!0});try{(0,t.onUnmounted)(r)}catch{}return[(0,t.computed)(()=>(o_.indexOf(n)+1)*10),(0,t.computed)(()=>zt(o_)===n),r]};var c_=(0,t.defineComponent)({__name:`floatPopup`,props:{anchors:{default:`high`},lockScroll:{type:Boolean,default:!1},class:{},style:{type:[Boolean,null,String,Object,Array]},overlay:{type:Boolean}},setup(e,{expose:n}){let r=(0,i.useRouter)(),a=e,o=(0,t.shallowRef)(!1),{height:s}=ye(),c=(0,t.computed)(()=>st(a.anchors)?a.anchors:a.anchors===`high`?[0,Math.round(.4*s.value),Math.round(.7*s.value),s.value]:[0,Math.round(.3*s.value),Math.round(.6*s.value),Math.round(.9*s.value)]),l=(0,t.shallowRef)(0),[u,d]=s_(()=>l.value>0),f=Jt;return(0,t.watch)(o,()=>{o.value?f=r.beforeEach(()=>d.value?o.value=!1:void 0):f()}),(0,i.onBeforeRouteLeave)(f),n({show(e=2){l.value=c.value[e],o.value=!0},close(){o.value=!1},isShowing:(0,t.shallowReadonly)(o),height:(0,t.shallowReadonly)(l)}),(n,r)=>{let i=Mh,a=Rg;return(0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`#popups`},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,zIndex:(0,t.unref)(u),show:o.value,onClick:r[0]||=e=>o.value=!1},null,8,[`zIndex`,`show`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(t.Transition,{onAfterLeave:r[3]||=e=>l.value=0,name:`van-slide-up`},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createVNode)(a,{onHeightChange:r[1]||=({height:e})=>e<=0&&(o.value=!1),anchors:c.value,height:l.value,"onUpdate:height":r[2]||=e=>l.value=e,"content-draggable":!1,"lock-scroll":e.lockScroll,style:(0,t.normalizeStyle)([e.style,{zIndex:(0,t.unref)(u)}]),class:(0,t.normalizeClass)([e.class,`overflow-hidden border-0 border-t border-solid border-(--van-border-color)`])},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`w-full bg-(--van-background)`,style:(0,t.normalizeStyle)({height:`calc(${l.value}px - var(--van-floating-panel-header-height))`})},[l.value==0?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(n.$slots,`default`,{key:0,height:l.value})],4)]),_:3},8,[`anchors`,`height`,`lock-scroll`,`style`,`class`]),[[t.vShow,o.value]])]),_:3})])}}}),l_=e.n({showImagePreview:()=>u_});const u_=(e,n={})=>{let r=(0,t.shallowRef)(!0),[,,i]=s_(r),a=window.$api.showImagePreview({images:e,...n,overlayClass:`!z-2147483646`,className:`!z-2147483646`,onClose(){r.value=!1},showIndex:e.length>1,teleport:`#popups`}),o=window.$router.beforeEach(()=>r.value=!1);return te(r,()=>{o(),i(),a.show=!1}),{isShowing:(0,t.computed)(()=>a.show),close:()=>{r.value=!1}}};var d_=A((0,a.defineStore)(`core:temp`,e=>{let n=(0,t.shallowReactive)(new Map);return{$apply:(e,r)=>(e=`reactive:${e}`,n.has(e)||n.set(e,(0,t.reactive)(r())),n.get(e)),$has:e.action(e=>(e=`reactive:${e}`,n.has(e)),`has`),$onlyGet:e.action(e=>(e=`reactive:${e}`,n.get(e)),`onlyGet`),$applyRaw:e.action((e,t)=>(e=`raw:${e}`,n.has(e)||n.set(e,t()),n.get(e)),`applyRaw`),$hasRaw:e.action(e=>(e=`raw:${e}`,n.has(e)),`hasRaw`),$onlyGetRaw:e.action(e=>(e=`raw:${e}`,n.get(e)),`onlyGetRaw`)}}),`store/temp`);const f_=()=>d_(window.$api.piniaInstance);var p_=(0,t.defineComponent)({__name:`image`,props:{src:{},alt:{},previewable:{type:Boolean},retryMax:{default:2},round:{type:Boolean},fit:{},class:{},hideLoading:{type:Boolean},hideError:{type:Boolean},inline:{type:Boolean},style:{type:[Boolean,null,String,Object,Array]},imgProp:{},useList:{},fetchpriority:{default:`auto`},fallback:{}},emits:[`load`,`click`,`error`],setup(e,{expose:n,emit:r}){let i=e,a=ne(async()=>{try{return i.src?Bt(i.src)?i.src:await i.src.getUrl():``}catch(e){console.error(e)}return``},``),o=r,s=0,c=!1,l=async()=>{if(c)return d.error.add(a.value),o(`error`);if(s++,f.value=!1,s>i.retryMax){if(!Nn.resource.Resource.is(i.src)){c=!0,l();return}if(!i.src.localChangeFork()){c=!0,l();return}s=0}await(0,t.nextTick)(),f.value=!0},u=f_().$apply(`imageState`,()=>({loaded:new Set,error:new Set})),d=i.useList??u,f=(0,t.shallowRef)(!0),p=()=>{c=!1,s=0,l()};(0,t.watch)(a,p);let m=(0,t.computed)(()=>d.loaded.has(a.value)),h=ne(async()=>{try{return i.fallback?Bt(i.fallback)?i.fallback:await i.fallback.getUrl():``}catch(e){console.error(e)}return``},``),g=e=>{o(`click`),i.previewable&&(e.stopPropagation(),u_([a.value],{closeable:!0}))},_=(...e)=>{o(`load`,...e),d.loaded.add(a.value)},v=(0,t.useTemplateRef)(`img`);n({isLoaded:m,imageEl:(0,t.computed)(()=>v.value?.imageRef),imageIns:v});let y=window.$api.NImage;return(n,r)=>{let s=mh;return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[f.value?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(y),(0,t.mergeProps)({key:0,onError:l},i,{"object-fit":e.fit,"preview-disabled":``,alt:e.alt,ref_key:`img`,ref:v,"img-props":{...e.imgProp??{},class:`w-full`,fetchpriority:i.fetchpriority},class:[{"rounded-full!":!!e.round},e.inline?`inline-flex`:`flex`,i.class],style:e.style,onLoad:_,onClick:g,src:(0,t.unref)(a)}),null,16,[`object-fit`,`alt`,`img-props`,`class`,`style`,`src`])),[[t.vShow,!(0,t.unref)(d).error.has((0,t.unref)(a))&&(0,t.unref)(d).loaded.has((0,t.unref)(a))]]):(0,t.createCommentVNode)(``,!0),!(0,t.unref)(d).loaded.has((0,t.unref)(a))&&!(0,t.unref)(d).error.has((0,t.unref)(a))&&!e.hideLoading?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:(0,t.normalizeClass)([`items-center justify-center`,[{"rounded-full!":!!e.round},e.inline?`inline-flex`:`flex`,i.class]]),style:(0,t.normalizeStyle)(e.style),onClick:r[0]||=e=>o(`click`)},[n.$slots.loading?(0,t.renderSlot)(n.$slots,`loading`,{key:0}):((0,t.openBlock)(),(0,t.createBlock)(Kg,{key:1}))],6)):(0,t.createCommentVNode)(``,!0),(0,t.unref)(d).error.has((0,t.unref)(a))&&!e.hideError?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[e.fallback?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(y),(0,t.mergeProps)({key:0,onError:l},i,{"object-fit":e.fit,"preview-disabled":``,alt:e.alt,"img-props":{...e.imgProp??{},class:`w-full`,fetchpriority:i.fetchpriority},class:[{"rounded-full!":!!e.round},e.inline?`inline-flex`:`flex`,i.class],style:e.style,src:(0,t.unref)(h)}),null,16,[`object-fit`,`alt`,`img-props`,`class`,`style`,`src`])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:(0,t.normalizeClass)([`flex-col items-center justify-center`,[{"rounded-full!":!!e.round},e.inline?`inline-flex`:`flex`,i.class]]),onClick:r[1]||=(0,t.withModifiers)(()=>{(0,t.unref)(d).error.delete((0,t.unref)(a)),p()},[`stop`])},[n.$slots.loading?(0,t.renderSlot)(n.$slots,`loading`,{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createVNode)(s,{name:`warning-o`,size:`2.5rem`,color:`var(--van-text-color-2)`}),r[2]||=(0,t.createElementVNode)(`div`,{class:`text-sm text-(--van-text-color-2)`},`点击重试`,-1)],64))],2))],64)):(0,t.createCommentVNode)(``,!0)],64)}}}),m_=(0,t.defineComponent)({__name:`var`,props:{value:{}},setup(e){let n=e;return(e,r)=>(0,t.renderSlot)(e.$slots,`default`,{value:n.value})}}),h_=(0,t.defineComponent)({__name:`list`,props:{source:{},itemHeight:{},listProp:{},goBottom:{type:Boolean},itemResizable:{type:Boolean},dataProcessor:{},unReloadable:{type:Boolean},style:{type:[Boolean,null,String,Object,Array]},class:{}},emits:[`next`,`reset`,`retry`],setup(e,{expose:n,emit:i}){let a=e,o=i,s=e=>a.dataProcessor?.(e)??e,c=(0,t.computed)(()=>({...N.isStream(a.source)?{data:s(a.source.data.value),isDone:a.source.isDone.value,isRequesting:a.source.isRequesting.value,isError:!!a.source.error.value,length:s(a.source.data.value).length,isEmpty:a.source.isEmpty.value,source:a.source}:st(a.source)?{data:s(a.source),isDone:!0,isRequesting:!1,isError:!1,length:s(a.source).length,isEmpty:$t(a.source),source:a.source}:{data:s(a.source.data.data.value??[]),isDone:a.source.isEnd,isRequesting:a.source.data.isLoading.value,isError:a.source.data.isError.value,length:s(a.source.data.data.value??[]).length,isEmpty:a.source.data.isEmpty.value,source:a.source.data},next:()=>N.isStream(a.source)?a.source.next():gn(e=>o(`next`,e)),retry:()=>N.isStream(a.source)?a.source.retry():gn(e=>o(`retry`,e)),reset:()=>N.isStream(a.source)?a.source.reset():o(`reset`)}));(0,t.watch)(()=>c.value.data,()=>{a.goBottom&&l.value?.scrollTo({position:`bottom`,behavior:`instant`})},{flush:`post`,deep:!0,immediate:!0}),(0,t.watch)(c,e=>{e.isRequesting||Kt(window.innerHeight/a.itemHeight)+2>e.length&&!e.isDone&&(e.isError?e.retry():e.next())},{immediate:!0});let l=(0,t.useTemplateRef)(`vList`),{y:u}=ve(()=>l.value?.getScrollContainer()),d=Wt(async()=>{let e=l.value?.virtualListInstRef?.itemsElRef?.querySelector(` .v-vl-visible-items`);if(!e)return;let{itemHeight:t}=a,{data:n,isDone:r,isError:i,isRequesting:o,retry:s,next:d,length:f}=c.value;n&&!o&&!r&&t*(f-2)<u.value+(e?.children?.length??window.innerHeight/t)*t&&(i?s():d())},200),f=(0,t.shallowRef)(!1),p=(0,t.shallowRef)(!1),m=async()=>{c.value.reset(),console.log(`reset done`),await c.value.next(),p.value=!1};return n({scrollTop:u,listInstance:l}),(n,i)=>{let o=r.NVirtualList,s=Gg;return(0,t.openBlock)(),(0,t.createBlock)(s,{modelValue:p.value,"onUpdate:modelValue":i[1]||=e=>p.value=e,class:(0,t.normalizeClass)([`relative`,a.class]),onRefresh:m,disabled:e.unReloadable||((0,t.unref)(N).isStream(e.source)?!1:(0,t.unref)(st)(e.source)?!0:e.source.reloadable??!0)||c.value.isError||c.value.isRequesting||!!(0,t.unref)(u)&&!f.value,onChange:i[2]||=({distance:e})=>f.value=!!e,style:(0,t.normalizeStyle)(e.style)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(i_,{retriable:``,source:(0,t.unref)(N).isStream(e.source)||(0,t.unref)(st)(e.source)?e.source:e.source.data,"class-loading":`mt-2 !h-[24px]`,"class-empty":`!h-full`,"class-error":`!h-full`,onResetRetry:m,"hide-loading":f.value&&c.value.isRequesting,onRetry:i[0]||=e=>c.value.retry()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(m_,{value:c.value.data},{default:(0,t.withCtx)(({value:r})=>[(0,t.createVNode)(o,(0,t.mergeProps)(e.listProp??{},{"item-resizable":e.itemResizable,"item-size":e.itemHeight,onScroll:(0,t.unref)(d),class:[`h-full overflow-x-hidden`,[f.value?`overflow-y-hidden`:`overflow-y-auto`]],items:r,ref_key:`vList`,ref:l}),{default:(0,t.withCtx)(({item:i})=>[(0,t.renderSlot)(n.$slots,`default`,{height:e.itemHeight,data:{item:i,index:r.indexOf(i)}})]),_:2},1040,[`item-resizable`,`item-size`,`onScroll`,`items`,`class`])]),_:3},8,[`value`])]),_:3},8,[`source`,`hide-loading`])]),_:3},8,[`modelValue`,`class`,`disabled`,`style`])}}}),g_=(0,t.defineComponent)({__name:`popup`,props:(0,t.mergeModels)({show:{type:Boolean},zIndex:{},overlay:{type:Boolean},duration:{},teleport:{},lockScroll:{type:Boolean},lazyRender:{type:Boolean},beforeClose:{},overlayProps:{},overlayStyle:{},overlayClass:{},transitionAppear:{type:Boolean},closeOnClickOverlay:{type:Boolean},round:{type:Boolean},position:{default:`center`},closeIcon:{},closeable:{type:Boolean},transition:{},iconPrefix:{},closeOnPopstate:{type:Boolean},closeIconPosition:{},destroyOnClose:{type:Boolean},safeAreaInsetTop:{type:Boolean},safeAreaInsetBottom:{type:Boolean},noBorder:{type:Boolean,default:!1},useTrulyShow:{type:Boolean},style:{type:[Boolean,null,String,Object,Array]}},{show:{type:Boolean,required:!0},showModifiers:{}}),emits:(0,t.mergeModels)([`closed`],[`update:show`]),setup(e,{expose:n}){let r=(0,i.useRouter)(),a=e,o=(0,t.useModel)(e,`show`),s=(0,t.shallowRef)(o.value),[c,l]=s_((0,t.computed)(()=>a.useTrulyShow?s.value:o.value)),u=Jt;return(0,t.watch)(o,e=>{e?u=r.beforeEach(()=>{if(console.log(`popup:
10
+ `,`isLast:`,l.value,`show:`,o.value),l.value)return o.value?o.value=!1:void 0}):u()},{immediate:!0}),n({zIndex:c,trulyShow:s}),(n,r)=>{let i=Ih;return(0,t.openBlock)(),(0,t.createBlock)(i,(0,t.mergeProps)(a,{show:o.value,"onUpdate:show":r[0]||=e=>o.value=e,"z-index":(0,t.unref)(c),teleport:`#popups`,onOpen:r[1]||=e=>s.value=!0,onClosed:r[2]||=()=>{s.value=!1,n.$emit(`closed`)},class:[`max-h-screen overflow-hidden overflow-y-auto!`,!e.noBorder&&`border-0 border-t border-solid border-(--van-border-color)`],overlay:``,"close-on-click-overlay":``}),{default:(0,t.withCtx)(()=>[s.value?(0,t.renderSlot)(n.$slots,`default`,{key:0}):(0,t.createCommentVNode)(``,!0)]),_:3},16,[`show`,`z-index`,`class`])}}}),__=(0,t.defineComponent)({__name:`routerTab`,props:{items:{},routerBase:{}},setup(e){let n=e,r=(0,i.useRoute)(),a=(0,t.ref)(decodeURI(r.path.replaceAll(n.routerBase+`/`,``).split(`/`)[0])),o=(0,i.useRouter)(),s=(0,t.useTemplateRef)(`tab`),c=async e=>{let t=`?`,r=n.items.find(t=>t.name==e);for(let e in r.queries??{})if(Object.prototype.hasOwnProperty.call(r.queries??{},e)){let n=(r.queries??{})[e];t+=`${e}=${n}&`}return t=t.replace(/&$/,``),await o.force.replace(`${n.routerBase}/${e.split(`/`).map(encodeURI).join(`/`)}${t}`),!0};(0,t.watch)(()=>n.items,e=>{e.find(e=>e.name.startsWith(a.value))||console.log(a.value,e)});let l=o.afterEach(e=>{if(e.path.startsWith(n.routerBase)){let t=e.path.replaceAll(n.routerBase+`/`,``).split(`/`)[0];t!==a.value&&(a.value=t)}});return(0,t.onUnmounted)(()=>{l()}),(n,r)=>{let i=Ng,o=Pg;return(0,t.openBlock)(),(0,t.createBlock)(o,{ref_key:`tab`,ref:s,shrink:``,active:a.value,"onUpdate:active":r[0]||=e=>a.value=e,beforeChange:c,class:`w-full`},{"nav-left":(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`left`)]),"nav-right":(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`right`)]),"nav-bottom":(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`bottom`)]),default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.items,e=>((0,t.openBlock)(),(0,t.createBlock)(i,{title:e.title,onClick:t=>a.value=e.name,name:e.name},null,8,[`title`,`onClick`,`name`]))),256))]),_:3},8,[`active`])}}}),v_=(0,t.defineComponent)({__name:`text`,props:{text:{default:``},ellipsis:{}},setup(e){let n=e,i=(0,t.computed)(()=>n.text.replace(/(http(s?):\/\/)?([\w-]+\.)+(\.?[a-z]+)+(:\d+)?(\/[\w-.\/?%&=]*)?/gi,e=>`\u1145[[${e}]]\u1145`).split(`ᅅ`).filter(Boolean).map(e=>/\[\[[^\[\]]+\]\]/g.test(e)?{value:e.substring(2,e.length-2),mode:`link`}:{value:e,mode:`text`}));return(n,a)=>{let o=r.NButton;return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([[(0,t.unref)(Ut)(e.ellipsis)&&`overflow-hidden overflow-ellipsis`],`whitespace-pre-wrap text-(--van-text-color)`]),style:(0,t.normalizeStyle)([(0,t.unref)(Ut)(e.ellipsis)&&`line-break: anywhere;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: ${e.ellipsis};`])},[(0,t.renderSlot)(n.$slots,`default`),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.mode===`link`?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,tag:`a`,class:`underline`,onClick:a[0]||=(0,t.withModifiers)(()=>{},[`stop`]),text:``,type:`primary`,target:`_blank`,href:/http(s?):\/\/.+/.test(e.value)?e.value:`https://${e.value}`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)]),_:2},1032,[`href`])):e.mode===`text`?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.value),1)],64)):(0,t.createCommentVNode)(``,!0)],64))),256))],6)}}}),y_={class:`mt-1 text-xs text-(--van-text-color-2)`},b_=(0,t.defineComponent)({__name:`toggleIcon`,props:(0,t.mergeModels)({icon:{},size:{},disChanged:{type:Boolean},rowMode:{type:Boolean},padding:{type:Boolean}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:(0,t.mergeModels)([`change`,`click`,`longClick`],[`update:modelValue`]),setup(e,{emit:n}){let i=e,a=n,o=(0,t.useModel)(e,`modelValue`);(0,t.watch)(o,e=>a(`change`,e));let s=()=>{a(`click`,!o.value),i.disChanged||(o.value=!o.value)},c=(0,t.useTemplateRef)(`htmlRefHook`);return de(c,()=>{a(`longClick`)},{modifiers:{prevent:!0}}),(n,i)=>{let a=r.NIcon;return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`flex items-center justify-center **:transition-colors!`,[e.rowMode||`flex-col`,e.padding&&`px-4`]]),onClick:(0,t.withModifiers)(s,[`stop`]),ref_key:`htmlRefHook`,ref:c},[(0,t.createVNode)(a,{size:e.size,color:o.value?`var(--p-color)`:`var(--van-gray-7)`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.icon)))]),_:1},8,[`size`,`color`]),(0,t.createElementVNode)(`span`,y_,[(0,t.renderSlot)(n.$slots,`default`)])],2)}}}),x_=Object.defineProperty,S_=Object.defineProperties,C_=Object.getOwnPropertyDescriptors,w_=Object.getOwnPropertySymbols,T_=Object.prototype.hasOwnProperty,E_=Object.prototype.propertyIsEnumerable,D_=(e,t,n)=>t in e?x_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O_=(e,t)=>{for(var n in t||={})T_.call(t,n)&&D_(e,n,t[n]);if(w_)for(var n of w_(t))E_.call(t,n)&&D_(e,n,t[n]);return e},k_=(e,t)=>S_(e,C_(t)),A_=(e,t)=>{var n={};for(var r in e)T_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&w_)for(var r of w_(e))t.indexOf(r)<0&&E_.call(e,r)&&(n[r]=e[r]);return n};function j_(e){return(0,t.getCurrentScope)()?((0,t.onScopeDispose)(e),!0):!1}var M_=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var N_=e=>e!=null,P_=Object.prototype.toString,F_=e=>P_.call(e)===`[object Object]`;function I_(e){return Array.isArray(e)?e:[e]}function L_(e){return(0,t.getCurrentInstance)()}function R_(e,n=!0,r){L_()?(0,t.onMounted)(e,r):n?e():(0,t.nextTick)(e)}function z_(e,n,r){return(0,t.watch)(e,n,k_(O_({},r),{immediate:!0}))}var B_=M_?window:void 0;function V_(e){let n=(0,t.toValue)(e);return n?.$el??n}function H_(...e){let n=[],r=()=>{n.forEach(e=>e()),n.length=0},i=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),a=(0,t.computed)(()=>{let n=I_((0,t.toValue)(e[0])).filter(e=>e!=null);return n.every(e=>typeof e!=`string`)?n:void 0}),o=z_(()=>[a.value?.map(e=>V_(e))??[B_].filter(e=>e!=null),I_((0,t.toValue)(a.value?e[1]:e[0])),I_((0,t.unref)(a.value?e[2]:e[1])),(0,t.toValue)(a.value?e[3]:e[2])],([e,t,a,o])=>{if(r(),!(e!=null&&e.length)||!(t!=null&&t.length)||!(a!=null&&a.length))return;let s=F_(o)?O_({},o):o;n.push(...e.flatMap(e=>t.flatMap(t=>a.map(n=>i(e,t,n,s)))))},{flush:`post`});return j_(r),()=>{o(),r()}}function U_(){let e=(0,t.shallowRef)(!1),n=(0,t.getCurrentInstance)();return n&&(0,t.onMounted)(()=>{e.value=!0},n),e}function W_(e){let n=U_();return(0,t.computed)(()=>(n.value,!!e()))}function G_(e,n,r={}){let i=r,{window:a=B_}=i,o=A_(i,[`window`]),s,c=W_(()=>a&&`MutationObserver`in a),l=()=>{s&&=(s.disconnect(),void 0)},u=(0,t.computed)(()=>{let n=I_((0,t.toValue)(e)).map(V_).filter(N_);return new Set(n)}),d=(0,t.watch)(()=>u.value,e=>{l(),c.value&&e.size&&(s=new MutationObserver(n),e.forEach(e=>s.observe(e,o)))},{immediate:!0,flush:`post`}),f=()=>s?.takeRecords(),p=()=>{d(),l()};return j_(p),{isSupported:c,stop:p,takeRecords:f}}function K_(e,n,r={}){let i=r,{window:a=B_}=i,o=A_(i,[`window`]),s,c=W_(()=>a&&`ResizeObserver`in a),l=()=>{s&&=(s.disconnect(),void 0)},u=(0,t.watch)((0,t.computed)(()=>{let n=(0,t.toValue)(e);return Array.isArray(n)?n.map(e=>V_(e)):[V_(n)]}),e=>{if(l(),c.value&&a){s=new ResizeObserver(n);for(let t of e)t&&s.observe(t,o)}},{immediate:!0,flush:`post`}),d=()=>{l(),u()};return j_(d),{isSupported:c,stop:d}}function q_(e,n={}){let{reset:r=!0,windowResize:i=!0,windowScroll:a=!0,immediate:o=!0,updateTiming:s=`sync`}=n,c=(0,t.shallowRef)(0),l=(0,t.shallowRef)(0),u=(0,t.shallowRef)(0),d=(0,t.shallowRef)(0),f=(0,t.shallowRef)(0),p=(0,t.shallowRef)(0),m=(0,t.shallowRef)(0),h=(0,t.shallowRef)(0);function g(){let t=V_(e);if(!t){r&&(c.value=0,l.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0,h.value=0);return}let n=t.getBoundingClientRect();c.value=n.height,l.value=n.bottom,u.value=n.left,d.value=n.right,f.value=n.top,p.value=n.width,m.value=n.x,h.value=n.y}function _(){s===`sync`?g():s===`next-frame`&&requestAnimationFrame(()=>g())}return K_(e,_),(0,t.watch)(()=>V_(e),e=>!e&&_()),G_(e,_,{attributeFilter:[`style`,`class`]}),a&&H_(`scroll`,_,{capture:!0,passive:!0}),i&&H_(`resize`,_,{passive:!0}),R_(()=>{o&&_()}),{height:c,bottom:l,left:u,right:d,top:f,width:p,x:m,y:h,update:_}}function J_(e,n={width:0,height:0},r={}){let{window:i=B_,box:a=`content-box`}=r,o=(0,t.computed)(()=>(V_(e)?.namespaceURI)?.includes(`svg`)),s=(0,t.shallowRef)(n.width),c=(0,t.shallowRef)(n.height),{stop:l}=K_(e,([t])=>{let n=a===`border-box`?t.borderBoxSize:a===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(i&&o.value){let t=V_(e);if(t){let e=t.getBoundingClientRect();s.value=e.width,c.value=e.height}}else if(n){let e=I_(n);s.value=e.reduce((e,{inlineSize:t})=>e+t,0),c.value=e.reduce((e,{blockSize:t})=>e+t,0)}else s.value=t.contentRect.width,c.value=t.contentRect.height},r);R_(()=>{let t=V_(e);t&&(s.value=`offsetWidth`in t?t.offsetWidth:n.width,c.value=`offsetHeight`in t?t.offsetHeight:n.height)});let u=(0,t.watch)(()=>V_(e),e=>{s.value=e?n.width:0,c.value=e?n.height:0});function d(){l(),u()}return{width:s,height:c,stop:d}}var Y_=[`data-index`],X_=(0,t.defineComponent)({name:`VirtualWaterfall`,__name:`virtual-waterfall`,props:{virtual:{type:Boolean,default:!0},rowKey:{default:`id`},enableCache:{type:Boolean,default:!0},gap:{default:15},padding:{default:15},preloadScreenCount:{default:()=>[0,0]},itemMinWidth:{default:220},maxColumnCount:{default:10},minColumnCount:{default:2},items:{default:()=>[]},calcItemHeight:{type:Function,default:(e,t)=>250}},setup(e,{expose:n}){let r=e,i=(0,t.ref)(),{width:a}=J_(i),{top:o}=q_(i);(0,t.onMounted)(()=>{a.value===0&&(a.value=Number.parseInt(window.getComputedStyle(i.value).width))});function s(e){return Object.prototype.toString.call(e)===`[object Number]`}let c=(0,t.computed)(()=>{if(!a.value)return 0;let e=a.value;if(e>=r.itemMinWidth*2){let t=Math.floor(e/r.itemMinWidth);return r.maxColumnCount&&t>r.maxColumnCount?r.maxColumnCount:t}return r.minColumnCount}),l=(0,t.ref)(Array(c.value).fill(0)),u=(0,t.computed)(()=>{if(!a.value||c.value<=0)return 0;let e=(c.value-1)*r.gap;return Math.ceil((a.value-e)/c.value)}),d=(0,t.shallowRef)([]);n({withItemSpaces:e=>{e((0,t.readonly)(d).value)}}),(0,t.watchEffect)(()=>{let e=r.items.length;if(!c.value||!e){d.value=[];return}let t=Array(e),n=0,i=r.enableCache&&d.value.length&&e>d.value.length;i?n=d.value.length:l.value=Array(c.value).fill(0);for(let a=0;a<e;a++){if(i&&a<n){t[a]=d.value[a];continue}let e=p(),o=r.calcItemHeight(r.items[a],u.value),s=l.value[e],c=(u.value+r.gap)*e,f={index:a,item:r.items[a],column:e,top:s,left:c,bottom:s+o,height:o};l.value[e]+=o+r.gap,t[a]=f}d.value=t});let f=(0,t.computed)(()=>{let e=d.value.length;if(!e)return[];if(!r.virtual)return d.value;let t=i.value.parentElement.offsetTop,n=-o.value+t,[a,s]=r.preloadScreenCount,c=i.value.parentElement.clientHeight,l=n-a*c,u=n+(s+1)*c,f=[];for(let t=0;t<e;t++){let e=d.value[t],n=e.top,r=e.bottom;(n>=l&&n<=u||r>=l&&r<=u||n<l&&r>u)&&f.push(e)}return f}),p=()=>l.value.indexOf(Math.min(...l.value));return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`content`,ref:i,style:(0,t.normalizeStyle)({position:`relative`,willChange:`height`,height:`${Math.max(...l.value)}px`,padding:`${s(e.padding)?e.padding+`px`:e.padding}`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(f.value,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n.item[e.rowKey]??n.index,style:(0,t.normalizeStyle)({position:`absolute`,contentVisibility:`auto`,width:`${u.value}px`,height:`${n.height}px`,transform:`translate(${n.left}px, ${n.top}px)`,containIntrinsicSize:`${u.value}px ${n.height}px`}),"data-index":n.index},[(0,t.renderSlot)(e.$slots,`default`,{item:n.item,index:n.index})],12,Y_))),128))],4))}}),Z_=(0,t.defineComponent)({__name:`waterfall`,props:{source:{},style:{type:[Boolean,null,String,Object,Array]},class:{},col:{default:2},padding:{default:4},gap:{default:4},minHeight:{default:0},dataProcessor:{},unReloadable:{type:Boolean}},emits:[`next`,`reset`,`retry`,`col`],setup(e,{expose:n,emit:r}){let i=e,a=r,o=e=>i.dataProcessor?.(e)??e,s=(0,t.computed)(()=>st(i.col)?i.col:[i.col,i.col]),c=(0,t.computed)(()=>({...N.isStream(i.source)?{data:o(i.source.data.value),isDone:i.source.isDone.value,isRequesting:i.source.isRequesting.value,isError:!!i.source.error.value,length:o(i.source.data.value).length,isEmpty:i.source.isEmpty.value,source:i.source}:{data:o(i.source.data.data.value??[]),isDone:i.source.isEnd,isRequesting:i.source.data.isLoading.value,isError:i.source.data.isError.value,length:o(i.source.data.data.value??[]).length,isEmpty:i.source.data.isEmpty.value,source:i.source.data},next:()=>N.isStream(i.source)?i.source.next():gn(e=>a(`next`,e)),retry:()=>N.isStream(i.source)?i.source.retry():gn(e=>a(`retry`,e)),reset:()=>N.isStream(i.source)?i.source.reset():a(`reset`)})),l=(0,t.shallowRef)(!1),u=(0,t.shallowRef)(!1),d=async()=>{c.value.reset(),console.log(`reset done`),await c.value.next(),u.value=!1},f=(0,t.useTemplateRef)(`content`),p=(0,t.computed)(()=>f.value?.cont),{y:m}=ve(p);Zp(`scroll`,()=>{let{isDone:e,isError:t,isRequesting:n,retry:r,next:i}=c.value;if(n||e)return;let a=p.value;if(!a)return;let o=a.scrollHeight,s=a.scrollTop,l=a.clientHeight;o-s-l<=100&&(t?r():i())},{target:p}),(0,t.watch)(()=>i.source,()=>{let{isError:e,retry:t,next:n,isEmpty:r}=c.value;r&&(e?t():n())},{deep:1,immediate:!0});let h=(0,t.useTemplateRef)(`waterfallEl`),g=f_().$apply(`waterfall`,()=>({top:0})),_=g.top++,v=f_().$applyRaw(`waterfall:${_}`,()=>(0,t.shallowReactive)(new Map)),y=[],b=new MutationObserver(([e])=>{for(let e of y)e();if(!(e.target instanceof HTMLDivElement)||!c.value.data)return;let t=[...e.target.children];for(let e of t){let t=Number(e.dataset.index),n=c.value.data[t],r=()=>{let t=e.firstElementChild?.getBoundingClientRect();v.set(n,t?.height??i.minHeight)},a=ge(e.firstElementChild,r);r(),y.push(()=>a.stop())}});(0,t.watch)(h,e=>{if(!e)return b.disconnect();b.observe(e.$el,{childList:!0})}),(0,t.onUnmounted)(()=>{b.disconnect();for(let e of y)e()});let x=(0,t.shallowRef)(!0);return n({scrollTop:m,scrollParent:p,async reloadList(){x.value=!1,v.clear(),await(0,t.nextTick)(),x.value=!0}}),(n,r)=>{let a=Gg;return x.value?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,modelValue:u.value,"onUpdate:modelValue":r[1]||=e=>u.value=e,class:(0,t.normalizeClass)([`relative h-full`,i.class]),disabled:e.unReloadable||c.value.isRequesting||!!(0,t.unref)(m)&&!l.value,onRefresh:d,onChange:r[2]||=({distance:e})=>l.value=!!e,style:(0,t.normalizeStyle)(e.style)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(i_,{retriable:``,source:(0,t.unref)(N).isStream(e.source)?e.source:e.source.data,"class-loading":`mt-2 !h-[24px]`,"class-empty":`h-full!`,"class-error":`h-full!`,class:`h-full w-full overflow-auto`,onRetry:r[0]||=e=>c.value.retry(),onResetRetry:d,"hide-loading":l.value&&c.value.isRequesting,ref_key:`content`,ref:f},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(X_),{items:c.value.data,gap:e.gap,padding:e.padding,"preload-screen-count":[0,1],ref_key:`waterfallEl`,ref:h,"calc-item-height":n=>(0,t.unref)(v).get(n)??e.minHeight,class:`waterfall`,"min-column-count":s.value[0],"max-column-count":s.value[1]},{default:(0,t.withCtx)(({item:r,index:i})=>[(0,t.renderSlot)(n.$slots,`default`,{item:r,index:i,height:(0,t.unref)(v).get(r),length:c.value.length,minHeight:e.minHeight})]),_:3},8,[`items`,`gap`,`padding`,`calc-item-height`,`min-column-count`,`max-column-count`])]),_:3},8,[`source`,`hide-loading`])]),_:3},8,[`modelValue`,`class`,`disabled`,`style`])):(0,t.createCommentVNode)(``,!0)}}}),Q_=e.n({createDialog:()=>tv,createDownloadMessage:()=>rv,createLoadingMessage:()=>ev});function $_(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!(0,t.isVNode)(e)}const ev=(e=`加载中`,n=window.$message)=>{let r=(0,t.computed)(()=>(0,t.isRef)(e)?e.value:Qt(e)?e():e),i=n.loading(r.value,{duration:0}),a=(0,t.watch)(r,e=>{i.content=e}),o=!1;async function s(e,t=!0,n,r){try{let t=await e;return c.success(n),t}catch(e){if(c.fail(r),t)throw e;return}}let c={bind:s,async success(e=`成功!`,t=500){a(),!(o||!i)&&(o=!0,i.type=`success`,i.content=e,await De(t),i.destroy())},async fail(e=`失败!`,t=500){a(),!(o||!i)&&(o=!0,i.type=`error`,i.content=e,await De(t),i.destroy())},async info(e,t=500){a(),!(o||!i)&&(o=!0,i.type=`info`,i.content=e,await De(t),i.destroy())},destroy(){a(),!(o||!i)&&(o=!0,i.destroy())},[Symbol.dispose](){this.destroy()},instance:i};return c},tv=e=>{let n=_,r=_,i=new Promise((e,t)=>{n=e,r=t}),a=(0,t.shallowRef)(!0),[o,s,c]=s_(a),l=(0,t.watch)(o,e=>m.style.zIndex=e),u=window.$router.beforeEach(()=>s?f():!0),d=()=>(l(),c(),u(),m.destroy(),a.value=!1),f=()=>(r(),d(),!1),p=()=>{n(),d()},m=window.$dialog.create({positiveText:`确定`,negativeText:`取消`,...e,style:{...e.style,zIndex:o.value},async onClose(){if(await e.onClose?.()===!1)return!1;a.value=!1,f()},async onPositiveClick(t){if(await(e.onPositiveClick??_)(t)===!1)return!1;p()},async onNegativeClick(t){let n=await(e.onNegativeClick??_)(t);if(n)return n;f()},onEsc(){e.onEsc?.(),f()},onMaskClick(t){e.onMaskClick?.(t),f()},onAfterLeave(){e.onAfterLeave?.(),d()}});return i.ins=m,i};var nv=A((0,t.reactive)([]),`utils/message/allDownloadMessagesIsMinsize`);const rv=async(e,n)=>{let i=nv.length;nv[i]=!1;let a=(0,t.ref)(!1),s=(0,t.reactive)([]),c=(0,t.ref)(!1),l=(0,t.watch)(c,e=>{e?nv[i]=!0:nv[i]=!1},{immediate:!0}),u=(0,t.computed)(()=>nv.slice(0,i).filter(e=>e).length),d=window.$message.create(e,{render:e=>{let n;return(0,t.createVNode)(wp.div,{drag:`y`,dragConstraints:{top:0,right:0,bottom:0,left:0},dragTransition:{bounceStiffness:500,bounceDamping:15},variants:{minsize:{borderRadius:`100%`,width:`30px`,height:`30px`,paddingInline:`2px`,paddingBlock:`2px`,position:`fixed`,left:`${u.value*40+8}px`,top:`calc(var(--safe-area-inset-top) + 4px)`},maxsize:{borderRadius:`8px`,width:`90vw`,paddingInline:`8px`,paddingBlock:`12px`,height:`fit-content`}},onDragEnd:(e,{offset:t})=>t.y<-30&&(c.value=!0),animate:c.value?`minsize`:`maxsize`,class:`overflow-hidden bg-(--n-color)`,style:{boxShadow:`var(--n-box-shadow)`}},{default:()=>[(0,t.createVNode)(t.Transition,{name:`van-fade`},{default:()=>[c.value?(0,t.createVNode)(`div`,{class:`relative size-full`,onClick:()=>c.value=!1},[(0,t.createVNode)(o.Loading,{class:`absolute top-0 left-0 size-full`,color:`var(--p-color)`},null),(0,t.createVNode)(r.NIcon,{class:`absolute! top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2`,size:`18px`,color:`var(--p-color)`},{default:()=>[s.some(e=>e.state==`error`)?(0,t.createVNode)(o.Icon,{name:`cross`},null):(0,t.createVNode)(Zg,null,null)]})]):(0,t.createVNode)(`div`,{class:`relative w-full`},[(0,t.createVNode)(`div`,{class:`flex items-center gap-2 text-base font-semibold`},[(0,t.createVNode)(`span`,null,[e.content]),a.value&&(0,t.createVNode)(r.NIconWrapper,{size:18,color:`var(--nui-success-color)`,borderRadius:114514},{default:()=>[(0,t.createVNode)(r.NIcon,{size:12},{default:()=>[(0,t.createVNode)(Xg,null,null)]})]})]),(0,t.createVNode)(t.TransitionGroup,{name:`list`,tag:`ul`,class:`ml-1! h-fit w-full!`},$_(n=s.map((e,n)=>{let i;return(0,t.createVNode)(`div`,{class:`van-hairline--bottom w-full py-1`,key:n},[(0,t.createVNode)(`span`,{class:`text-sm font-semibold`},[e.title]),(0,t.createVNode)(`div`,{class:`relative h-fit w-full`},[(0,t.createVNode)(r.NProgress,{percentage:Ut(e.progress)?e.progress:100,indicatorPlacement:`inside`,processing:ft(e.state),type:`line`,showIndicator:!1,"show-indicator":!1,class:[`transition-all **:in-[.n-progress-graph-line-fill]:hidden!`,e.state==`error`&&e.retry?`w-[60%]!`:`w-[95%]!`],height:7,status:e.state},null),(0,t.createVNode)(t.Transition,{name:`van-slide-right`},$_(i=(0,t.withDirectives)((0,t.createVNode)(`div`,{class:`absolute! top-1/2 right-[4%] flex -translate-y-1/2 gap-3 ease-in-out!`},[(0,t.createVNode)(r.NButton,{tertiary:!0,circle:!0,onClick:()=>{e.state==`error`&&(e.retry=void 0,e.pc.reject(e.error))},class:`size-10!`},{icon:()=>(0,t.createVNode)(r.NIcon,null,{default:()=>[(0,t.createVNode)(Yg,null,null)]})}),(0,t.createVNode)(r.NButton,{tertiary:!0,circle:!0,onClick:e.retry,class:`size-10!`},{icon:()=>(0,t.createVNode)(r.NIcon,null,{default:()=>[(0,t.createVNode)(qg,null,null)]})})]),[[t.vShow,e.state==`error`&&e.retry]]))?i:{default:()=>[i]})]),(0,t.createVNode)(`div`,{class:`h-4! text-xs text-(--van-text-color-2)`},[e.state==`error`&&`${e.error.name}: ${e.error.message}`||e.description||`...`])])}))?n:{default:()=>[n]}),(0,t.createVNode)(`div`,{class:`absolute -bottom-2 left-1/2 h-1 w-10 -translate-x-1/2 rounded-lg bg-(--nui-divider-color)`},null)])]})]})},duration:0}),f=(e,n,r)=>{let i=Promise.withResolvers(),a=(0,t.ref)(),o=(0,t.reactive)({description:``,retryable:!1,...n}),c=Error(),l=s.length,u=(0,t.watch)([o,a],([,t])=>{s[l]={title:e,state:t,error:c,pc:i,retry:o.retryable?d:void 0,...o}},{immediate:!0}),d=async()=>{for(let e in a.value=void 0,o.description=``,o.retryable=!1,n)Object.hasOwn(n,e)&&(o[e]=n[e]);try{let e=await r(o);a.value=`success`,await(0,t.nextTick)(),u.stop(),i.resolve(e)}catch(e){c=lt(e)?e:Error(_t(e)),a.value=`error`,await(0,t.nextTick)(),o.retryable||(u.stop(),i.reject(e))}};return d(),i.promise},p=n({createProgress:(e,t)=>f(e,{progress:0},t),createLoading:(e,t)=>f(e,{},t)}),m=Promise.withResolvers();return p.then(async e=>{c.value=!1,a.value=!0;let n=s.find(e=>e.state==`error`);if(n)throw n.error;m.resolve(e),De(3e3).then(()=>{c.value=!0}),await(0,t.nextTick)(),await k(c).toBeTruthy(),l.stop(),d.destroy(),nv[i]=void 0}),p.catch(async e=>{m.reject(e),c.value=!1,De(3e3).then(()=>{c.value=!0}),await(0,t.nextTick)(),await k(c).toBeTruthy(),l.stop(),d.destroy(),nv[i]=void 0}),m.promise};var iv=e.n({createDateString:()=>av});const av=(e=(0,c.default)())=>{let t=(0,c.default)(),n=e.isSame(t,`year`),r=n&&e.isSame(t,`month`),i=r&&e.date()===t.date(),a=r&&e.date()===t.date()-1,o=``;return n||(o+=`YYYY年 `),i?o+=`今天 `:a?o+=`昨天 `:o+=`M月D日 `,o+=`HH:mm`,e.format(o)};var ov=class{constructor(e,t){this.pluginName=e,this.config=t,this.key=Symbol.for(`config:${e}`)}key};const sv=new ov(`core`,{recordHistory:{type:`switch`,defaultValue:!0,info:`记录历史记录`},showAIProject:{type:`switch`,defaultValue:!0,info:`展示AI作品`},darkMode:{type:`radio`,defaultValue:`system`,info:`暗色模式配置`,comp:`select`,selects:[{label:`浅色`,value:`light`},{label:`暗色`,value:`dark`},{label:`跟随系统`,value:`system`}]},easilyTitle:{type:`switch`,defaultValue:!1,info:`简化标题(实验)`}}),cv=(0,a.defineStore)(`config`,e=>{let n=(0,t.shallowReactive)(new Map),r=e.action(e=>{let t=n.get(e.key);if(!t)throw Error(`not found config by plugin "${e.pluginName}"`);return t.value},`load`),i=he(),a=(0,t.computed)(()=>{if(!o(sv))return i.value;switch(r(sv).value.darkMode){case`light`:return!1;case`dark`:return!0;case`system`:return i.value;default:return!1}}),o=e.action(e=>n.has(e.key),`isExistConfig`);return{isDark:a,form:n,$load:r,$isExistConfig:o,$resignerConfig:e.action(e=>{let t=window.$api.useNativeStore,n=cv(),r=t(e.pluginName,`config`,Zt(Object.entries(e.config).map(([e,t])=>[e,t.defaultValue])));n.form.set(e.key,{form:e.config,value:r})},`resignerConfig`)}}),lv=async e=>{if(Qt(e))var t=e(window.$$safe$$);else var t=e;return console.log(`[definePlugin] new plugin defining...`,t),await an.call(`addPlugin`,t),t},uv=e=>({name:{display:e[`name:display`],id:e[`name:id`]},author:e.author??``,description:e.description,require:(e.require?dt(e.require)?[e.require]:e.require:[]).map(e=>{let[t,...n]=e.split(`:`);if(t.startsWith(`dc|`))return{id:t.replace(/^dc\|/,``),download:n.join(`:`)}}).filter(e=>!ft(e)),version:{plugin:e.version.split(`/`)[0],supportCore:(()=>{let t=e.version.split(`/`)[1];return e.version.split(`/`)[2]?t.replaceAll(`>=`,`^`):t})()}}),dv=e=>Symbol.for(`expose:${e}`),fv=e=>pv.get(e),pv=new Map,mv=dv(`core`);var hv={name:`delta-comic-core`,version:`0.6.0`,description:`空阙虱楼`,homepage:`https://github.com/delta-comic/delta-comic-core`,license:`AGPL-3.0-only`,author:{name:`wenxig`,email:`wenxinguo12@gmail.com`},repository:{type:`git`,url:`https://github.com/delta-comic/delta-comic-core.git`},files:[`dist`],type:`module`,main:`./dist/bundle.js`,module:`./dist/bundle.js`,types:`./dist/lib/index.d.ts`,exports:{".":{types:`./dist/lib/index.d.ts`,import:`./dist/bundle.js`,require:`./dist/bundle.cjs`},"./vite":{types:`./dist/vite/index.d.ts`,import:`./dist/bundle2.js`,require:`./dist/bundle2.cjs`},"./style.css":`./dist/bundle.css`},scripts:{build:`vite build && pnpm pack --out ./dist/pack.tgz`,lint:`oxlint --type-aware`,"lint:fix":`oxlint --fix --type-aware`,prepare:`husky`,"lint-staged":`lint-staged`},dependencies:{"@lhlyu/vue-virtual-waterfall":`^1.0.8`,"@vant/use":`^1.6.0`,"@vueuse/core":`14.1.0`,dayjs:`^1.11.19`,"es-toolkit":`^1.40.0`,mitt:`^3.0.1`,"motion-v":`1.7.3`,semver:`^7.7.3`,"tailwindcss-safe-area-capacitor":`^0.5.1`,vidstack:`^1.12.13`,"vite-plugin-external":`^6.2.2`,"vite-plugin-monkey":`^7.1.8`},devDependencies:{"@commitlint/cli":`^20.4.0`,"@commitlint/config-conventional":`^20.4.0`,"@commitlint/types":`^20.4.0`,"@cspell/dict-npm":`^5.2.31`,"@cspell/dict-rust":`^4.1.1`,"@semantic-release/changelog":`^6.0.3`,"@semantic-release/git":`^10.0.1`,"@semantic-release/github":`^12.0.3`,"@semantic-release/npm":`^13.1.3`,"@semantic-release/release-notes-generator":`^14.1.0`,"@tailwindcss/vite":`^4.1.18`,"@types/conventional-recommended-bump":`^10.0.3`,"@types/node":`^25.0.6`,"@vitejs/plugin-vue":`^6.0.3`,"@vitejs/plugin-vue-jsx":`^5.1.3`,browserslist:`^4.28.1`,"commitlint-plugin-cspell":`^0.4.0`,"conventional-recommended-bump":`^11.2.0`,cspell:`^9.6.2`,husky:`^9.1.7`,lightningcss:`^1.30.2`,"lint-staged":`^16.2.7`,oxfmt:`^0.27.0`,oxlint:`^1.42.0`,"oxlint-tsgolint":`^0.11.4`,"semantic-release":`^25.0.3`,tailwindcss:`^4.1.18`,"unplugin-vue-components":`31.0.0`,vite:`^8.0.0-beta.11`,"vite-plugin-dts":`^4.5.4`,"vue-component-type-helpers":`^3.2.2`},peerDependencies:{axios:`^1.13.4`,kysely:`^0.28.10`,"naive-ui":`2.43.2`,pinia:`^3.0.4`,vant:`4.9.22`,vue:`3.5.27`,"vue-router":`5.0.1`},pnpm:{overrides:{vite:`^8.0.0-beta.11`},onlyBuiltDependencies:[`@parcel/watcher`,`@tailwindcss/oxide`,`esbuild`]},dist:{tarball:`./dist/pack.tgz`},readme:`./README.md`};const gv={Await:Pn,Loading:Kg,Content:i_,FloatPopup:c_,Image:p_,List:h_,Popup:g_,RouterTab:__,Text:v_,ToggleIcon:b_,Var:m_,Waterfall:Z_};let _v;(function(e){e.data=dn,e.eventBus=nn,e.image=l_,e.layout=a_,e.request=on,e.translate=iv,e.message=Q_})(_v||={});const vv={useTemp:f_,useConfig:cv,appConfig:sv,ConfigPointer:ov},yv=hv.version;exports.Comp=gv,exports.Store=vv,Object.defineProperty(exports,`Utils`,{enumerable:!0,get:function(){return _v}}),exports._=void 0,exports._pluginExposes=pv,exports.coreModule=mv,exports.declareDependType=dv,exports.decodePluginMeta=uv,exports.definePlugin=lv,exports.requireDepend=fv,Object.defineProperty(exports,`uni`,{enumerable:!0,get:function(){return Nn}}),exports.version=yv;
11
11
  //# sourceMappingURL=bundle.cjs.map