lumina-slides 8.4.1 → 8.5.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.
@@ -1,75 +1,58 @@
1
- (function(se,me){typeof exports=="object"&&typeof module<"u"?me(exports):typeof define=="function"&&define.amd?define(["exports"],me):(se=typeof globalThis<"u"?globalThis:se||self,me(se.LuminaSlides={}))})(this,function(se){"use strict";var xz=Object.defineProperty;var vz=(se,me,ft)=>me in se?xz(se,me,{enumerable:!0,configurable:!0,writable:!0,value:ft}):se[me]=ft;var $=(se,me,ft)=>vz(se,typeof me!="symbol"?me+"":me,ft);/**
1
+ (function(Le,Ke){typeof exports=="object"&&typeof module<"u"?Ke(exports):typeof define=="function"&&define.amd?define(["exports"],Ke):(Le=typeof globalThis<"u"?globalThis:Le||self,Ke(Le.LuminaSlides={}))})(this,function(Le){"use strict";var Z1=Object.defineProperty;var L1=(Le,Ke,oe)=>Ke in Le?Z1(Le,Ke,{enumerable:!0,configurable:!0,writable:!0,value:oe}):Le[Ke]=oe;var nt=(Le,Ke,oe)=>L1(Le,typeof Ke!="symbol"?Ke+"":Ke,oe);/**
2
2
  * @vue/shared v3.5.26
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/var qa;function me(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ft={},ds=[],dn=()=>{},Du=()=>!1,fo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ga=e=>e.startsWith("onUpdate:"),qt=Object.assign,Qa=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},R_=Object.prototype.hasOwnProperty,dt=(e,t)=>R_.call(e,t),Q=Array.isArray,ps=e=>ho(e)==="[object Map]",Eu=e=>ho(e)==="[object Set]",et=e=>typeof e=="function",It=e=>typeof e=="string",En=e=>typeof e=="symbol",vt=e=>e!==null&&typeof e=="object",Iu=e=>(vt(e)||et(e))&&et(e.then)&&et(e.catch),Ru=Object.prototype.toString,ho=e=>Ru.call(e),L_=e=>ho(e).slice(8,-1),Lu=e=>ho(e)==="[object Object]",tl=e=>It(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Js=me(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),po=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},F_=/-\w/g,Xe=po(e=>e.replace(F_,t=>t.slice(1).toUpperCase())),$_=/\B([A-Z])/g,Di=po(e=>e.replace($_,"-$1").toLowerCase()),go=po(e=>e.charAt(0).toUpperCase()+e.slice(1)),el=po(e=>e?`on${go(e)}`:""),ni=(e,t)=>!Object.is(e,t),nl=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Fu=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},N_=e=>{const t=parseFloat(e);return isNaN(t)?e:t},B_=e=>{const t=It(e)?Number(e):NaN;return isNaN(t)?e:t};let $u;const mo=()=>$u||($u=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function pn(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],s=It(i)?H_(i):pn(i);if(s)for(const r in s)t[r]=s[r]}return t}else if(It(e)||vt(e))return e}const j_=/;(?![^(]*\))/g,V_=/:([^]+)/,W_=/\/\*[^]*?\*\//g;function H_(e){const t={};return e.replace(W_,"").split(j_).forEach(n=>{if(n){const i=n.split(V_);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function it(e){let t="";if(It(e))t=e;else if(Q(e))for(let n=0;n<e.length;n++){const i=it(e[n]);i&&(t+=i+" ")}else if(vt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Z_=me("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Nu(e){return!!e||e===""}const Bu=e=>!!(e&&e.__v_isRef===!0),ht=e=>It(e)?e:e==null?"":Q(e)||vt(e)&&(e.toString===Ru||!et(e.toString))?Bu(e)?ht(e.value):JSON.stringify(e,ju,2):String(e),ju=(e,t)=>Bu(t)?ju(e,t.value):ps(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,s],r)=>(n[il(i,r)+" =>"]=s,n),{})}:Eu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>il(n))}:En(t)?il(t):vt(t)&&!Q(t)&&!Lu(t)?String(t):t,il=(e,t="")=>{var n;return En(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
5
+ **/function Ke(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const oe={},cr=[],Zt=()=>{},wa=()=>!1,Pi=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Is=t=>t.startsWith("onUpdate:"),De=Object.assign,Ds=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},od=Object.prototype.hasOwnProperty,le=(t,e)=>od.call(t,e),J=Array.isArray,ur=t=>Ai(t)==="[object Map]",Sa=t=>Ai(t)==="[object Set]",q=t=>typeof t=="function",we=t=>typeof t=="string",rn=t=>typeof t=="symbol",pe=t=>t!==null&&typeof t=="object",ka=t=>(pe(t)||q(t))&&q(t.then)&&q(t.catch),Ta=Object.prototype.toString,Ai=t=>Ta.call(t),ad=t=>Ai(t).slice(8,-1),za=t=>Ai(t)==="[object Object]",Ms=t=>we(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,jr=Ke(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ii=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},ld=/-\w/g,Tt=Ii(t=>t.replace(ld,e=>e.slice(1).toUpperCase())),cd=/\B([A-Z])/g,Ln=Ii(t=>t.replace(cd,"-$1").toLowerCase()),Di=Ii(t=>t.charAt(0).toUpperCase()+t.slice(1)),Ns=Ii(t=>t?`on${Di(t)}`:""),yn=(t,e)=>!Object.is(t,e),Rs=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},Ca=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},ud=t=>{const e=parseFloat(t);return isNaN(e)?t:e},fd=t=>{const e=we(t)?Number(t):NaN;return isNaN(e)?t:e};let Oa;const Mi=()=>Oa||(Oa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Lt(t){if(J(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],i=we(r)?_d(r):Lt(r);if(i)for(const s in i)e[s]=i[s]}return e}else if(we(t)||pe(t))return t}const dd=/;(?![^(]*\))/g,hd=/:([^]+)/,pd=/\/\*[^]*?\*\//g;function _d(t){const e={};return t.replace(pd,"").split(dd).forEach(n=>{if(n){const r=n.split(hd);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function X(t){let e="";if(we(t))e=t;else if(J(t))for(let n=0;n<t.length;n++){const r=X(t[n]);r&&(e+=r+" ")}else if(pe(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const md=Ke("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ea(t){return!!t||t===""}const $a=t=>!!(t&&t.__v_isRef===!0),ae=t=>we(t)?t:t==null?"":J(t)||pe(t)&&(t.toString===Ta||!q(t.toString))?$a(t)?ae(t.value):JSON.stringify(t,Pa,2):String(t),Pa=(t,e)=>$a(e)?Pa(t,e.value):ur(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i],s)=>(n[Fs(r,s)+" =>"]=i,n),{})}:Sa(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Fs(n))}:rn(e)?Fs(e):pe(e)&&!J(e)&&!za(e)?String(e):e,Fs=(t,e="")=>{var n;return rn(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
6
6
  * @vue/reactivity v3.5.26
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/let Te;class U_{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Te,!t&&Te&&(this.index=(Te.scopes||(Te.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Te;try{return Te=this,t()}finally{Te=n}}}on(){++this._on===1&&(this.prevScope=Te,Te=this)}off(){this._on>0&&--this._on===0&&(Te=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(this.effects.length=0,n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Y_(){return Te}let wt;const sl=new WeakSet;class Vu{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Te&&Te.active&&Te.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,sl.has(this)&&(sl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Hu(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Xu(this),Zu(this);const t=wt,n=on;wt=this,on=!0;try{return this.fn()}finally{Uu(this),wt=t,on=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ll(t);this.deps=this.depsTail=void 0,Xu(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?sl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){al(this)&&this.run()}get dirty(){return al(this)}}let Wu=0,Gs,Qs;function Hu(e,t=!1){if(e.flags|=8,t){e.next=Qs,Qs=e;return}e.next=Gs,Gs=e}function rl(){Wu++}function ol(){if(--Wu>0)return;if(Qs){let t=Qs;for(Qs=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Gs;){let t=Gs;for(Gs=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=n}}if(e)throw e}function Zu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Uu(e){let t,n=e.depsTail,i=n;for(;i;){const s=i.prevDep;i.version===-1?(i===n&&(n=s),ll(i),K_(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=s}e.deps=t,e.depsTail=n}function al(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Yu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Yu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===tr)||(e.globalVersion=tr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!al(e))))return;e.flags|=2;const t=e.dep,n=wt,i=on;wt=e,on=!0;try{Zu(e);const s=e.fn(e._value);(t.version===0||ni(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{wt=n,on=i,Uu(e),e.flags&=-3}}function ll(e,t=!1){const{dep:n,prevSub:i,nextSub:s}=e;if(i&&(i.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)ll(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function K_(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let on=!0;const Ku=[];function gn(){Ku.push(on),on=!1}function mn(){const e=Ku.pop();on=e===void 0?!0:e}function Xu(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=wt;wt=void 0;try{t()}finally{wt=n}}}let tr=0;class X_{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class cl{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!wt||!on||wt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==wt)n=this.activeLink=new X_(wt,this),wt.deps?(n.prevDep=wt.depsTail,wt.depsTail.nextDep=n,wt.depsTail=n):wt.deps=wt.depsTail=n,qu(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=wt.depsTail,n.nextDep=void 0,wt.depsTail.nextDep=n,wt.depsTail=n,wt.deps===n&&(wt.deps=i)}return n}trigger(t){this.version++,tr++,this.notify(t)}notify(t){rl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ol()}}}function qu(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)qu(i)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ul=new WeakMap,Ei=Symbol(""),fl=Symbol(""),er=Symbol("");function re(e,t,n){if(on&&wt){let i=ul.get(e);i||ul.set(e,i=new Map);let s=i.get(n);s||(i.set(n,s=new cl),s.map=i,s.key=n),s.track()}}function In(e,t,n,i,s,r){const o=ul.get(e);if(!o){tr++;return}const a=l=>{l&&l.trigger()};if(rl(),t==="clear")o.forEach(a);else{const l=Q(e),c=l&&tl(n);if(l&&n==="length"){const u=Number(i);o.forEach((f,h)=>{(h==="length"||h===er||!En(h)&&h>=u)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),c&&a(o.get(er)),t){case"add":l?c&&a(o.get("length")):(a(o.get(Ei)),ps(e)&&a(o.get(fl)));break;case"delete":l||(a(o.get(Ei)),ps(e)&&a(o.get(fl)));break;case"set":ps(e)&&a(o.get(Ei));break}}ol()}function gs(e){const t=ct(e);return t===e?t:(re(t,"iterate",er),qe(e)?t:t.map(an))}function _o(e){return re(e=ct(e),"iterate",er),e}function ii(e,t){return Ln(e)?Ii(e)?ms(an(t)):ms(t):an(t)}const q_={__proto__:null,[Symbol.iterator](){return hl(this,Symbol.iterator,e=>ii(this,e))},concat(...e){return gs(this).concat(...e.map(t=>Q(t)?gs(t):t))},entries(){return hl(this,"entries",e=>(e[1]=ii(this,e[1]),e))},every(e,t){return Rn(this,"every",e,t,void 0,arguments)},filter(e,t){return Rn(this,"filter",e,t,n=>n.map(i=>ii(this,i)),arguments)},find(e,t){return Rn(this,"find",e,t,n=>ii(this,n),arguments)},findIndex(e,t){return Rn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Rn(this,"findLast",e,t,n=>ii(this,n),arguments)},findLastIndex(e,t){return Rn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Rn(this,"forEach",e,t,void 0,arguments)},includes(...e){return dl(this,"includes",e)},indexOf(...e){return dl(this,"indexOf",e)},join(e){return gs(this).join(e)},lastIndexOf(...e){return dl(this,"lastIndexOf",e)},map(e,t){return Rn(this,"map",e,t,void 0,arguments)},pop(){return nr(this,"pop")},push(...e){return nr(this,"push",e)},reduce(e,...t){return Ju(this,"reduce",e,t)},reduceRight(e,...t){return Ju(this,"reduceRight",e,t)},shift(){return nr(this,"shift")},some(e,t){return Rn(this,"some",e,t,void 0,arguments)},splice(...e){return nr(this,"splice",e)},toReversed(){return gs(this).toReversed()},toSorted(e){return gs(this).toSorted(e)},toSpliced(...e){return gs(this).toSpliced(...e)},unshift(...e){return nr(this,"unshift",e)},values(){return hl(this,"values",e=>ii(this,e))}};function hl(e,t,n){const i=_o(e),s=i[t]();return i!==e&&!qe(e)&&(s._next=s.next,s.next=()=>{const r=s._next();return r.done||(r.value=n(r.value)),r}),s}const J_=Array.prototype;function Rn(e,t,n,i,s,r){const o=_o(e),a=o!==e&&!qe(e),l=o[t];if(l!==J_[t]){const f=l.apply(e,r);return a?an(f):f}let c=n;o!==e&&(a?c=function(f,h){return n.call(this,ii(e,f),h,e)}:n.length>2&&(c=function(f,h){return n.call(this,f,h,e)}));const u=l.call(o,c,i);return a&&s?s(u):u}function Ju(e,t,n,i){const s=_o(e);let r=n;return s!==e&&(qe(e)?n.length>3&&(r=function(o,a,l){return n.call(this,o,a,l,e)}):r=function(o,a,l){return n.call(this,o,ii(e,a),l,e)}),s[t](r,...i)}function dl(e,t,n){const i=ct(e);re(i,"iterate",er);const s=i[t](...n);return(s===-1||s===!1)&&gl(n[0])?(n[0]=ct(n[0]),i[t](...n)):s}function nr(e,t,n=[]){gn(),rl();const i=ct(e)[t].apply(e,n);return ol(),mn(),i}const G_=me("__proto__,__v_isRef,__isVue"),Gu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(En));function Q_(e){En(e)||(e=String(e));const t=ct(this);return re(t,"has",e),t.hasOwnProperty(e)}class Qu{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return r;if(n==="__v_raw")return i===(s?r?of:rf:r?sf:nf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const o=Q(t);if(!s){let l;if(o&&(l=q_[n]))return l;if(n==="hasOwnProperty")return Q_}const a=Reflect.get(t,n,te(t)?t:i);if((En(n)?Gu.has(n):G_(n))||(s||re(t,"get",n),r))return a;if(te(a)){const l=o&&tl(n)?a:a.value;return s&&vt(l)?wo(l):l}return vt(a)?s?wo(a):vo(a):a}}class tf extends Qu{constructor(t=!1){super(!1,t)}set(t,n,i,s){let r=t[n];const o=Q(t)&&tl(n);if(!this._isShallow){const c=Ln(r);if(!qe(i)&&!Ln(i)&&(r=ct(r),i=ct(i)),!o&&te(r)&&!te(i))return c||(r.value=i),!0}const a=o?Number(n)<t.length:dt(t,n),l=Reflect.set(t,n,i,te(t)?t:s);return t===ct(s)&&(a?ni(i,r)&&In(t,"set",n,i):In(t,"add",n,i)),l}deleteProperty(t,n){const i=dt(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&i&&In(t,"delete",n,void 0),s}has(t,n){const i=Reflect.has(t,n);return(!En(n)||!Gu.has(n))&&re(t,"has",n),i}ownKeys(t){return re(t,"iterate",Q(t)?"length":Ei),Reflect.ownKeys(t)}}class ef extends Qu{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const tb=new tf,eb=new ef,nb=new tf(!0),ib=new ef(!0),pl=e=>e,bo=e=>Reflect.getPrototypeOf(e);function sb(e,t,n){return function(...i){const s=this.__v_raw,r=ct(s),o=ps(r),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=s[e](...i),u=n?pl:t?ms:an;return!t&&re(r,"iterate",l?fl:Ei),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:a?[u(f[0]),u(f[1])]:u(f),done:h}},[Symbol.iterator](){return this}}}}function yo(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function rb(e,t){const n={get(s){const r=this.__v_raw,o=ct(r),a=ct(s);e||(ni(s,a)&&re(o,"get",s),re(o,"get",a));const{has:l}=bo(o),c=t?pl:e?ms:an;if(l.call(o,s))return c(r.get(s));if(l.call(o,a))return c(r.get(a));r!==o&&r.get(s)},get size(){const s=this.__v_raw;return!e&&re(ct(s),"iterate",Ei),s.size},has(s){const r=this.__v_raw,o=ct(r),a=ct(s);return e||(ni(s,a)&&re(o,"has",s),re(o,"has",a)),s===a?r.has(s):r.has(s)||r.has(a)},forEach(s,r){const o=this,a=o.__v_raw,l=ct(a),c=t?pl:e?ms:an;return!e&&re(l,"iterate",Ei),a.forEach((u,f)=>s.call(r,c(u),c(f),o))}};return qt(n,e?{add:yo("add"),set:yo("set"),delete:yo("delete"),clear:yo("clear")}:{add(s){!t&&!qe(s)&&!Ln(s)&&(s=ct(s));const r=ct(this);return bo(r).has.call(r,s)||(r.add(s),In(r,"add",s,s)),this},set(s,r){!t&&!qe(r)&&!Ln(r)&&(r=ct(r));const o=ct(this),{has:a,get:l}=bo(o);let c=a.call(o,s);c||(s=ct(s),c=a.call(o,s));const u=l.call(o,s);return o.set(s,r),c?ni(r,u)&&In(o,"set",s,r):In(o,"add",s,r),this},delete(s){const r=ct(this),{has:o,get:a}=bo(r);let l=o.call(r,s);l||(s=ct(s),l=o.call(r,s)),a&&a.call(r,s);const c=r.delete(s);return l&&In(r,"delete",s,void 0),c},clear(){const s=ct(this),r=s.size!==0,o=s.clear();return r&&In(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=sb(s,e,t)}),n}function xo(e,t){const n=rb(e,t);return(i,s,r)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?i:Reflect.get(dt(n,s)&&s in i?n:i,s,r)}const ob={get:xo(!1,!1)},ab={get:xo(!1,!0)},lb={get:xo(!0,!1)},cb={get:xo(!0,!0)},nf=new WeakMap,sf=new WeakMap,rf=new WeakMap,of=new WeakMap;function ub(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fb(e){return e.__v_skip||!Object.isExtensible(e)?0:ub(L_(e))}function vo(e){return Ln(e)?e:So(e,!1,tb,ob,nf)}function hb(e){return So(e,!1,nb,ab,sf)}function wo(e){return So(e,!0,eb,lb,rf)}function Sz(e){return So(e,!0,ib,cb,of)}function So(e,t,n,i,s){if(!vt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=fb(e);if(r===0)return e;const o=s.get(e);if(o)return o;const a=new Proxy(e,r===2?i:n);return s.set(e,a),a}function Ii(e){return Ln(e)?Ii(e.__v_raw):!!(e&&e.__v_isReactive)}function Ln(e){return!!(e&&e.__v_isReadonly)}function qe(e){return!!(e&&e.__v_isShallow)}function gl(e){return e?!!e.__v_raw:!1}function ct(e){const t=e&&e.__v_raw;return t?ct(t):e}function db(e){return!dt(e,"__v_skip")&&Object.isExtensible(e)&&Fu(e,"__v_skip",!0),e}const an=e=>vt(e)?vo(e):e,ms=e=>vt(e)?wo(e):e;function te(e){return e?e.__v_isRef===!0:!1}function Je(e){return pb(e,!1)}function pb(e,t){return te(e)?e:new gb(e,t)}class gb{constructor(t,n){this.dep=new cl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ct(t),this._value=n?t:an(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,i=this.__v_isShallow||qe(t)||Ln(t);t=i?t:ct(t),ni(t,n)&&(this._rawValue=t,this._value=i?t:an(t),this.dep.trigger())}}function _n(e){return te(e)?e.value:e}const mb={get:(e,t,n)=>t==="__v_raw"?e:_n(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const s=e[t];return te(s)&&!te(n)?(s.value=n,!0):Reflect.set(e,t,n,i)}};function af(e){return Ii(e)?e:new Proxy(e,mb)}class _b{constructor(t,n,i){this.fn=t,this.setter=n,this._value=void 0,this.dep=new cl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=tr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&wt!==this)return Hu(this,!0),!0}get value(){const t=this.dep.track();return Yu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function bb(e,t,n=!1){let i,s;return et(e)?i=e:(i=e.get,s=e.set),new _b(i,s,n)}const ko={},To=new WeakMap;let Ri;function yb(e,t=!1,n=Ri){if(n){let i=To.get(n);i||To.set(n,i=[]),i.push(e)}}function xb(e,t,n=ft){const{immediate:i,deep:s,once:r,scheduler:o,augmentJob:a,call:l}=n,c=x=>s?x:qe(x)||s===!1||s===0?si(x,1):si(x);let u,f,h,d,g=!1,p=!1;if(te(e)?(f=()=>e.value,g=qe(e)):Ii(e)?(f=()=>c(e),g=!0):Q(e)?(p=!0,g=e.some(x=>Ii(x)||qe(x)),f=()=>e.map(x=>{if(te(x))return x.value;if(Ii(x))return c(x);if(et(x))return l?l(x,2):x()})):et(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){gn();try{h()}finally{mn()}}const x=Ri;Ri=u;try{return l?l(e,3,[d]):e(d)}finally{Ri=x}}:f=dn,t&&s){const x=f,b=s===!0?1/0:s;f=()=>si(x(),b)}const m=Y_(),_=()=>{u.stop(),m&&m.active&&Qa(m.effects,u)};if(r&&t){const x=t;t=(...b)=>{x(...b),_()}}let y=p?new Array(e.length).fill(ko):ko;const w=x=>{if(!(!(u.flags&1)||!u.dirty&&!x))if(t){const b=u.run();if(s||g||(p?b.some((k,M)=>ni(k,y[M])):ni(b,y))){h&&h();const k=Ri;Ri=u;try{const M=[b,y===ko?void 0:p&&y[0]===ko?[]:y,d];y=b,l?l(t,3,M):t(...M)}finally{Ri=k}}}else u.run()};return a&&a(w),u=new Vu(f),u.scheduler=o?()=>o(w,!1):w,d=x=>yb(x,!1,u),h=u.onStop=()=>{const x=To.get(u);if(x){if(l)l(x,4);else for(const b of x)b();To.delete(u)}},t?i?w(!0):y=u.run():o?o(w.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function si(e,t=1/0,n){if(t<=0||!vt(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,te(e))si(e.value,t,n);else if(Q(e))for(let i=0;i<e.length;i++)si(e[i],t,n);else if(Eu(e)||ps(e))e.forEach(i=>{si(i,t,n)});else if(Lu(e)){for(const i in e)si(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&si(e[i],t,n)}return e}/**
9
+ **/let rt;class gd{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=rt,!e&&rt&&(this.index=(rt.scopes||(rt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=rt;try{return rt=this,e()}finally{rt=n}}}on(){++this._on===1&&(this.prevScope=rt,rt=this)}off(){this._on>0&&--this._on===0&&(rt=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function vd(){return rt}let _e;const Zs=new WeakSet;class Aa{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,rt&&rt.active&&rt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Zs.has(this)&&(Zs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Da(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Za(this),Ma(this);const e=_e,n=Dt;_e=this,Dt=!0;try{return this.fn()}finally{Na(this),_e=e,Dt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Bs(e);this.deps=this.depsTail=void 0,Za(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Zs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Us(this)&&this.run()}get dirty(){return Us(this)}}let Ia=0,Ur,Br;function Da(t,e=!1){if(t.flags|=8,e){t.next=Br,Br=t;return}t.next=Ur,Ur=t}function Ls(){Ia++}function js(){if(--Ia>0)return;if(Br){let e=Br;for(Br=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Ur;){let e=Ur;for(Ur=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function Ma(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Na(t){let e,n=t.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Bs(r),yd(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}t.deps=e,t.depsTail=n}function Us(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Ra(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Ra(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Vr)||(t.globalVersion=Vr,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Us(t))))return;t.flags|=2;const e=t.dep,n=_e,r=Dt;_e=t,Dt=!0;try{Ma(t);const i=t.fn(t._value);(e.version===0||yn(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{_e=n,Dt=r,Na(t),t.flags&=-3}}function Bs(t,e=!1){const{dep:n,prevSub:r,nextSub:i}=t;if(r&&(r.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Bs(s,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function yd(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let Dt=!0;const Fa=[];function jt(){Fa.push(Dt),Dt=!1}function Ut(){const t=Fa.pop();Dt=t===void 0?!0:t}function Za(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=_e;_e=void 0;try{e()}finally{_e=n}}}let Vr=0;class bd{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Vs{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!_e||!Dt||_e===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==_e)n=this.activeLink=new bd(_e,this),_e.deps?(n.prevDep=_e.depsTail,_e.depsTail.nextDep=n,_e.depsTail=n):_e.deps=_e.depsTail=n,La(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=_e.depsTail,n.nextDep=void 0,_e.depsTail.nextDep=n,_e.depsTail=n,_e.deps===n&&(_e.deps=r)}return n}trigger(e){this.version++,Vr++,this.notify(e)}notify(e){Ls();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{js()}}}function La(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)La(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const Hs=new WeakMap,jn=Symbol(""),Ws=Symbol(""),Hr=Symbol("");function je(t,e,n){if(Dt&&_e){let r=Hs.get(t);r||Hs.set(t,r=new Map);let i=r.get(n);i||(r.set(n,i=new Vs),i.map=r,i.key=n),i.track()}}function sn(t,e,n,r,i,s){const o=Hs.get(t);if(!o){Vr++;return}const a=l=>{l&&l.trigger()};if(Ls(),e==="clear")o.forEach(a);else{const l=J(t),u=l&&Ms(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===Hr||!rn(d)&&d>=c)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(Hr)),e){case"add":l?u&&a(o.get("length")):(a(o.get(jn)),ur(t)&&a(o.get(Ws)));break;case"delete":l||(a(o.get(jn)),ur(t)&&a(o.get(Ws)));break;case"set":ur(t)&&a(o.get(jn));break}}js()}function fr(t){const e=ie(t);return e===t?e:(je(e,"iterate",Hr),zt(t)?e:e.map(Mt))}function Ni(t){return je(t=ie(t),"iterate",Hr),t}function bn(t,e){return an(t)?Un(t)?dr(Mt(e)):dr(e):Mt(e)}const xd={__proto__:null,[Symbol.iterator](){return Js(this,Symbol.iterator,t=>bn(this,t))},concat(...t){return fr(this).concat(...t.map(e=>J(e)?fr(e):e))},entries(){return Js(this,"entries",t=>(t[1]=bn(this,t[1]),t))},every(t,e){return on(this,"every",t,e,void 0,arguments)},filter(t,e){return on(this,"filter",t,e,n=>n.map(r=>bn(this,r)),arguments)},find(t,e){return on(this,"find",t,e,n=>bn(this,n),arguments)},findIndex(t,e){return on(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return on(this,"findLast",t,e,n=>bn(this,n),arguments)},findLastIndex(t,e){return on(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return on(this,"forEach",t,e,void 0,arguments)},includes(...t){return Ks(this,"includes",t)},indexOf(...t){return Ks(this,"indexOf",t)},join(t){return fr(this).join(t)},lastIndexOf(...t){return Ks(this,"lastIndexOf",t)},map(t,e){return on(this,"map",t,e,void 0,arguments)},pop(){return Wr(this,"pop")},push(...t){return Wr(this,"push",t)},reduce(t,...e){return ja(this,"reduce",t,e)},reduceRight(t,...e){return ja(this,"reduceRight",t,e)},shift(){return Wr(this,"shift")},some(t,e){return on(this,"some",t,e,void 0,arguments)},splice(...t){return Wr(this,"splice",t)},toReversed(){return fr(this).toReversed()},toSorted(t){return fr(this).toSorted(t)},toSpliced(...t){return fr(this).toSpliced(...t)},unshift(...t){return Wr(this,"unshift",t)},values(){return Js(this,"values",t=>bn(this,t))}};function Js(t,e,n){const r=Ni(t),i=r[e]();return r!==t&&!zt(t)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.done||(s.value=n(s.value)),s}),i}const wd=Array.prototype;function on(t,e,n,r,i,s){const o=Ni(t),a=o!==t&&!zt(t),l=o[e];if(l!==wd[e]){const f=l.apply(t,s);return a?Mt(f):f}let u=n;o!==t&&(a?u=function(f,d){return n.call(this,bn(t,f),d,t)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,t)}));const c=l.call(o,u,r);return a&&i?i(c):c}function ja(t,e,n,r){const i=Ni(t);let s=n;return i!==t&&(zt(t)?n.length>3&&(s=function(o,a,l){return n.call(this,o,a,l,t)}):s=function(o,a,l){return n.call(this,o,bn(t,a),l,t)}),i[e](s,...r)}function Ks(t,e,n){const r=ie(t);je(r,"iterate",Hr);const i=r[e](...n);return(i===-1||i===!1)&&Ys(n[0])?(n[0]=ie(n[0]),r[e](...n)):i}function Wr(t,e,n=[]){jt(),Ls();const r=ie(t)[e].apply(t,n);return js(),Ut(),r}const Sd=Ke("__proto__,__v_isRef,__isVue"),Ua=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(rn));function kd(t){rn(t)||(t=String(t));const e=ie(this);return je(e,"has",t),e.hasOwnProperty(t)}class Ba{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?qa:Ka:s?Ja:Wa).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=J(e);if(!i){let l;if(o&&(l=xd[n]))return l;if(n==="hasOwnProperty")return kd}const a=Reflect.get(e,n,Re(e)?e:r);if((rn(n)?Ua.has(n):Sd(n))||(i||je(e,"get",n),s))return a;if(Re(a)){const l=o&&Ms(n)?a:a.value;return i&&pe(l)?ji(l):l}return pe(a)?i?ji(a):Li(a):a}}class Va extends Ba{constructor(e=!1){super(!1,e)}set(e,n,r,i){let s=e[n];const o=J(e)&&Ms(n);if(!this._isShallow){const u=an(s);if(!zt(r)&&!an(r)&&(s=ie(s),r=ie(r)),!o&&Re(s)&&!Re(r))return u||(s.value=r),!0}const a=o?Number(n)<e.length:le(e,n),l=Reflect.set(e,n,r,Re(e)?e:i);return e===ie(i)&&(a?yn(r,s)&&sn(e,"set",n,r):sn(e,"add",n,r)),l}deleteProperty(e,n){const r=le(e,n);e[n];const i=Reflect.deleteProperty(e,n);return i&&r&&sn(e,"delete",n,void 0),i}has(e,n){const r=Reflect.has(e,n);return(!rn(n)||!Ua.has(n))&&je(e,"has",n),r}ownKeys(e){return je(e,"iterate",J(e)?"length":jn),Reflect.ownKeys(e)}}class Ha extends Ba{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const Td=new Va,zd=new Ha,Cd=new Va(!0),Od=new Ha(!0),qs=t=>t,Ri=t=>Reflect.getPrototypeOf(t);function Ed(t,e,n){return function(...r){const i=this.__v_raw,s=ie(i),o=ur(s),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=i[t](...r),c=n?qs:e?dr:Mt;return!e&&je(s,"iterate",l?Ws:jn),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Fi(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function $d(t,e){const n={get(i){const s=this.__v_raw,o=ie(s),a=ie(i);t||(yn(i,a)&&je(o,"get",i),je(o,"get",a));const{has:l}=Ri(o),u=e?qs:t?dr:Mt;if(l.call(o,i))return u(s.get(i));if(l.call(o,a))return u(s.get(a));s!==o&&s.get(i)},get size(){const i=this.__v_raw;return!t&&je(ie(i),"iterate",jn),i.size},has(i){const s=this.__v_raw,o=ie(s),a=ie(i);return t||(yn(i,a)&&je(o,"has",i),je(o,"has",a)),i===a?s.has(i):s.has(i)||s.has(a)},forEach(i,s){const o=this,a=o.__v_raw,l=ie(a),u=e?qs:t?dr:Mt;return!t&&je(l,"iterate",jn),a.forEach((c,f)=>i.call(s,u(c),u(f),o))}};return De(n,t?{add:Fi("add"),set:Fi("set"),delete:Fi("delete"),clear:Fi("clear")}:{add(i){!e&&!zt(i)&&!an(i)&&(i=ie(i));const s=ie(this);return Ri(s).has.call(s,i)||(s.add(i),sn(s,"add",i,i)),this},set(i,s){!e&&!zt(s)&&!an(s)&&(s=ie(s));const o=ie(this),{has:a,get:l}=Ri(o);let u=a.call(o,i);u||(i=ie(i),u=a.call(o,i));const c=l.call(o,i);return o.set(i,s),u?yn(s,c)&&sn(o,"set",i,s):sn(o,"add",i,s),this},delete(i){const s=ie(this),{has:o,get:a}=Ri(s);let l=o.call(s,i);l||(i=ie(i),l=o.call(s,i)),a&&a.call(s,i);const u=s.delete(i);return l&&sn(s,"delete",i,void 0),u},clear(){const i=ie(this),s=i.size!==0,o=i.clear();return s&&sn(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Ed(i,t,e)}),n}function Zi(t,e){const n=$d(t,e);return(r,i,s)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(le(n,i)&&i in r?n:r,i,s)}const Pd={get:Zi(!1,!1)},Ad={get:Zi(!1,!0)},Id={get:Zi(!0,!1)},Dd={get:Zi(!0,!0)},Wa=new WeakMap,Ja=new WeakMap,Ka=new WeakMap,qa=new WeakMap;function Md(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Nd(t){return t.__v_skip||!Object.isExtensible(t)?0:Md(ad(t))}function Li(t){return an(t)?t:Ui(t,!1,Td,Pd,Wa)}function Rd(t){return Ui(t,!1,Cd,Ad,Ja)}function ji(t){return Ui(t,!0,zd,Id,Ka)}function U1(t){return Ui(t,!0,Od,Dd,qa)}function Ui(t,e,n,r,i){if(!pe(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=Nd(t);if(s===0)return t;const o=i.get(t);if(o)return o;const a=new Proxy(t,s===2?r:n);return i.set(t,a),a}function Un(t){return an(t)?Un(t.__v_raw):!!(t&&t.__v_isReactive)}function an(t){return!!(t&&t.__v_isReadonly)}function zt(t){return!!(t&&t.__v_isShallow)}function Ys(t){return t?!!t.__v_raw:!1}function ie(t){const e=t&&t.__v_raw;return e?ie(e):t}function Fd(t){return!le(t,"__v_skip")&&Object.isExtensible(t)&&Ca(t,"__v_skip",!0),t}const Mt=t=>pe(t)?Li(t):t,dr=t=>pe(t)?ji(t):t;function Re(t){return t?t.__v_isRef===!0:!1}function it(t){return Zd(t,!1)}function Zd(t,e){return Re(t)?t:new Ld(t,e)}class Ld{constructor(e,n){this.dep=new Vs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:ie(e),this._value=n?e:Mt(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||zt(e)||an(e);e=r?e:ie(e),yn(e,n)&&(this._rawValue=e,this._value=r?e:Mt(e),this.dep.trigger())}}function Bt(t){return Re(t)?t.value:t}const jd={get:(t,e,n)=>e==="__v_raw"?t:Bt(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return Re(i)&&!Re(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function Ya(t){return Un(t)?t:new Proxy(t,jd)}class Ud{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new Vs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Vr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&_e!==this)return Da(this,!0),!0}get value(){const e=this.dep.track();return Ra(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Bd(t,e,n=!1){let r,i;return q(t)?r=t:(r=t.get,i=t.set),new Ud(r,i,n)}const Bi={},Vi=new WeakMap;let Bn;function Vd(t,e=!1,n=Bn){if(n){let r=Vi.get(n);r||Vi.set(n,r=[]),r.push(t)}}function Hd(t,e,n=oe){const{immediate:r,deep:i,once:s,scheduler:o,augmentJob:a,call:l}=n,u=x=>i?x:zt(x)||i===!1||i===0?xn(x,1):xn(x);let c,f,d,h,_=!1,p=!1;if(Re(t)?(f=()=>t.value,_=zt(t)):Un(t)?(f=()=>u(t),_=!0):J(t)?(p=!0,_=t.some(x=>Un(x)||zt(x)),f=()=>t.map(x=>{if(Re(x))return x.value;if(Un(x))return u(x);if(q(x))return l?l(x,2):x()})):q(t)?e?f=l?()=>l(t,2):t:f=()=>{if(d){jt();try{d()}finally{Ut()}}const x=Bn;Bn=c;try{return l?l(t,3,[h]):t(h)}finally{Bn=x}}:f=Zt,e&&i){const x=f,y=i===!0?1/0:i;f=()=>xn(x(),y)}const b=vd(),w=()=>{c.stop(),b&&b.active&&Ds(b.effects,c)};if(s&&e){const x=e;e=(...y)=>{x(...y),w()}}let k=p?new Array(t.length).fill(Bi):Bi;const T=x=>{if(!(!(c.flags&1)||!c.dirty&&!x))if(e){const y=c.run();if(i||_||(p?y.some((E,P)=>yn(E,k[P])):yn(y,k))){d&&d();const E=Bn;Bn=c;try{const P=[y,k===Bi?void 0:p&&k[0]===Bi?[]:k,h];k=y,l?l(e,3,P):e(...P)}finally{Bn=E}}}else c.run()};return a&&a(T),c=new Aa(f),c.scheduler=o?()=>o(T,!1):T,h=x=>Vd(x,!1,c),d=c.onStop=()=>{const x=Vi.get(c);if(x){if(l)l(x,4);else for(const y of x)y();Vi.delete(c)}},e?r?T(!0):k=c.run():o?o(T.bind(null,!0),!0):c.run(),w.pause=c.pause.bind(c),w.resume=c.resume.bind(c),w.stop=w,w}function xn(t,e=1/0,n){if(e<=0||!pe(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,Re(t))xn(t.value,e,n);else if(J(t))for(let r=0;r<t.length;r++)xn(t[r],e,n);else if(Sa(t)||ur(t))t.forEach(r=>{xn(r,e,n)});else if(za(t)){for(const r in t)xn(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&xn(t[r],e,n)}return t}/**
10
10
  * @vue/runtime-core v3.5.26
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
- **/const ir=[];let ml=!1;function kz(e,...t){if(ml)return;ml=!0,gn();const n=ir.length?ir[ir.length-1].component:null,i=n&&n.appContext.config.warnHandler,s=vb();if(i)_s(i,n,11,[e+t.map(r=>{var o,a;return(a=(o=r.toString)==null?void 0:o.call(r))!=null?a:JSON.stringify(r)}).join(""),n&&n.proxy,s.map(({vnode:r})=>`at <${hh(n,r.type)}>`).join(`
14
- `),s]);else{const r=[`[Vue warn]: ${e}`,...t];s.length&&r.push(`
15
- `,...wb(s)),console.warn(...r)}mn(),ml=!1}function vb(){let e=ir[ir.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const i=e.component&&e.component.parent;e=i&&i.vnode}return t}function wb(e){const t=[];return e.forEach((n,i)=>{t.push(...i===0?[]:[`
16
- `],...Sb(n))}),t}function Sb({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",i=e.component?e.component.parent==null:!1,s=` at <${hh(e.component,e.type,i)}`,r=">"+n;return e.props?[s,...kb(e.props),r]:[s+r]}function kb(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(i=>{t.push(...lf(i,e[i]))}),n.length>3&&t.push(" ..."),t}function lf(e,t,n){return It(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:te(t)?(t=lf(e,ct(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):et(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ct(t),n?t:[`${e}=`,t])}function _s(e,t,n,i){try{return i?e(...i):e()}catch(s){Mo(s,t,n)}}function ln(e,t,n,i){if(et(e)){const s=_s(e,t,n,i);return s&&Iu(s)&&s.catch(r=>{Mo(r,t,n)}),s}if(Q(e)){const s=[];for(let r=0;r<e.length;r++)s.push(ln(e[r],t,n,i));return s}}function Mo(e,t,n,i=!0){const s=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||ft;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,l,c)===!1)return}a=a.parent}if(r){gn(),_s(r,null,10,[e,l,c]),mn();return}}Tb(e,n,s,i,o)}function Tb(e,t,n,i=!0,s=!1){if(s)throw e;console.error(e)}const _e=[];let bn=-1;const bs=[];let ri=null,ys=0;const cf=Promise.resolve();let Co=null;function uf(e){const t=Co||cf;return e?t.then(this?e.bind(this):e):t}function Mb(e){let t=bn+1,n=_e.length;for(;t<n;){const i=t+n>>>1,s=_e[i],r=sr(s);r<e||r===e&&s.flags&2?t=i+1:n=i}return t}function _l(e){if(!(e.flags&1)){const t=sr(e),n=_e[_e.length-1];!n||!(e.flags&2)&&t>=sr(n)?_e.push(e):_e.splice(Mb(t),0,e),e.flags|=1,ff()}}function ff(){Co||(Co=cf.then(pf))}function Cb(e){Q(e)?bs.push(...e):ri&&e.id===-1?ri.splice(ys+1,0,e):e.flags&1||(bs.push(e),e.flags|=1),ff()}function hf(e,t,n=bn+1){for(;n<_e.length;n++){const i=_e[n];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;_e.splice(n,1),n--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function df(e){if(bs.length){const t=[...new Set(bs)].sort((n,i)=>sr(n)-sr(i));if(bs.length=0,ri){ri.push(...t);return}for(ri=t,ys=0;ys<ri.length;ys++){const n=ri[ys];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}ri=null,ys=0}}const sr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function pf(e){try{for(bn=0;bn<_e.length;bn++){const t=_e[bn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),_s(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;bn<_e.length;bn++){const t=_e[bn];t&&(t.flags&=-2)}bn=-1,_e.length=0,df(),Co=null,(_e.length||bs.length)&&pf()}}let be=null,gf=null;function Po(e){const t=be;return be=e,gf=e&&e.type.__scopeId||null,t}function cn(e,t=be,n){if(!t||e._n)return e;const i=(...s)=>{i._d&&$o(-1);const r=Po(t);let o;try{o=e(...s)}finally{Po(r),i._d&&$o(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function Li(e,t,n,i){const s=e.dirs,r=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];r&&(a.oldValue=r[o].value);let l=a.dir[i];l&&(gn(),ln(l,n,8,[e.el,a,e,t]),mn())}}function Pb(e,t){if(ae){let n=ae.provides;const i=ae.parent&&ae.parent.provides;i===n&&(n=ae.provides=Object.create(i)),n[e]=t}}function oi(e,t,n=!1){const i=oh();if(i||Ss){let s=Ss?Ss._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&et(t)?t.call(i&&i.proxy):t}}const Ob=Symbol.for("v-scx"),Ab=()=>oi(Ob);function xs(e,t,n){return mf(e,t,n)}function mf(e,t,n=ft){const{immediate:i,deep:s,flush:r,once:o}=n,a=qt({},n),l=t&&i||!t&&r!=="post";let c;if(dr){if(r==="sync"){const d=Ab();c=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=dn,d.resume=dn,d.pause=dn,d}}const u=ae;a.call=(d,g,p)=>ln(d,u,g,p);let f=!1;r==="post"?a.scheduler=d=>{Le(d,u&&u.suspense)}:r!=="sync"&&(f=!0,a.scheduler=(d,g)=>{g?d():_l(d)}),a.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,u&&(d.id=u.uid,d.i=u))};const h=xb(e,t,a);return dr&&(c?c.push(h):l&&h()),h}function zb(e,t,n){const i=this.proxy,s=It(e)?e.includes(".")?_f(i,e):()=>i[e]:e.bind(i,i);let r;et(t)?r=t:(r=t.handler,n=t);const o=hr(this),a=mf(s,r.bind(i),n);return o(),a}function _f(e,t){const n=t.split(".");return()=>{let i=e;for(let s=0;s<n.length&&i;s++)i=i[n[s]];return i}}const Db=Symbol("_vte"),bf=e=>e.__isTeleport,Fn=Symbol("_leaveCb"),Oo=Symbol("_enterCb");function Eb(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Fi(()=>{e.isMounted=!0}),Pf(()=>{e.isUnmounting=!0}),e}const Ge=[Function,Array],yf={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ge,onEnter:Ge,onAfterEnter:Ge,onEnterCancelled:Ge,onBeforeLeave:Ge,onLeave:Ge,onAfterLeave:Ge,onLeaveCancelled:Ge,onBeforeAppear:Ge,onAppear:Ge,onAfterAppear:Ge,onAppearCancelled:Ge},xf=e=>{const t=e.subTree;return t.component?xf(t.component):t},Ib={name:"BaseTransition",props:yf,setup(e,{slots:t}){const n=oh(),i=Eb();return()=>{const s=t.default&&kf(t.default(),!0);if(!s||!s.length)return;const r=vf(s),o=ct(e),{mode:a}=o;if(i.isLeaving)return yl(r);const l=Sf(r);if(!l)return yl(r);let c=bl(l,o,i,n,f=>c=f);l.type!==oe&&rr(l,c);let u=n.subTree&&Sf(n.subTree);if(u&&u.type!==oe&&!Bi(u,l)&&xf(n).type!==oe){let f=bl(u,o,i,n);if(rr(u,f),a==="out-in"&&l.type!==oe)return i.isLeaving=!0,f.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},yl(r);a==="in-out"&&l.type!==oe?f.delayLeave=(h,d,g)=>{const p=wf(i,u);p[String(u.key)]=u,h[Fn]=()=>{d(),h[Fn]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{g(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return r}}};function vf(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==oe){t=n;break}}return t}const Rb=Ib;function wf(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function bl(e,t,n,i,s){const{appear:r,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:h,onLeave:d,onAfterLeave:g,onLeaveCancelled:p,onBeforeAppear:m,onAppear:_,onAfterAppear:y,onAppearCancelled:w}=t,x=String(e.key),b=wf(n,e),k=(v,C)=>{v&&ln(v,i,9,C)},M=(v,C)=>{const A=C[1];k(v,C),Q(v)?v.every(O=>O.length<=1)&&A():v.length<=1&&A()},P={mode:o,persisted:a,beforeEnter(v){let C=l;if(!n.isMounted)if(r)C=m||l;else return;v[Fn]&&v[Fn](!0);const A=b[x];A&&Bi(e,A)&&A.el[Fn]&&A.el[Fn](),k(C,[v])},enter(v){let C=c,A=u,O=f;if(!n.isMounted)if(r)C=_||c,A=y||u,O=w||f;else return;let j=!1;const K=v[Oo]=U=>{j||(j=!0,U?k(O,[v]):k(A,[v]),P.delayedLeave&&P.delayedLeave(),v[Oo]=void 0)};C?M(C,[v,K]):K()},leave(v,C){const A=String(e.key);if(v[Oo]&&v[Oo](!0),n.isUnmounting)return C();k(h,[v]);let O=!1;const j=v[Fn]=K=>{O||(O=!0,C(),K?k(p,[v]):k(g,[v]),v[Fn]=void 0,b[A]===e&&delete b[A])};b[A]=e,d?M(d,[v,j]):j()},clone(v){const C=bl(v,t,n,i,s);return s&&s(C),C}};return P}function yl(e){if(zo(e))return e=ai(e),e.children=null,e}function Sf(e){if(!zo(e))return bf(e.type)&&e.children?vf(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&et(n.default))return n.default()}}function rr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,rr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function kf(e,t=!1,n){let i=[],s=0;for(let r=0;r<e.length;r++){let o=e[r];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:r);o.type===Vt?(o.patchFlag&128&&s++,i=i.concat(kf(o.children,t,a))):(t||o.type!==oe)&&i.push(a!=null?ai(o,{key:a}):o)}if(s>1)for(let r=0;r<i.length;r++)i[r].patchFlag=-2;return i}function Zt(e,t){return et(e)?qt({name:e.name},t,{setup:e}):e}function Tf(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Ao=new WeakMap;function or(e,t,n,i,s=!1){if(Q(e)){e.forEach((g,p)=>or(g,t&&(Q(t)?t[p]:t),n,i,s));return}if(vs(i)&&!s){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&or(e,t,n,i.component.subTree);return}const r=i.shapeFlag&4?zl(i.component):i.el,o=s?null:r,{i:a,r:l}=e,c=t&&t.r,u=a.refs===ft?a.refs={}:a.refs,f=a.setupState,h=ct(f),d=f===ft?Du:g=>dt(h,g);if(c!=null&&c!==l){if(Mf(t),It(c))u[c]=null,d(c)&&(f[c]=null);else if(te(c)){c.value=null;const g=t;g.k&&(u[g.k]=null)}}if(et(l))_s(l,a,12,[o,u]);else{const g=It(l),p=te(l);if(g||p){const m=()=>{if(e.f){const _=g?d(l)?f[l]:u[l]:l.value;if(s)Q(_)&&Qa(_,r);else if(Q(_))_.includes(r)||_.push(r);else if(g)u[l]=[r],d(l)&&(f[l]=u[l]);else{const y=[r];l.value=y,e.k&&(u[e.k]=y)}}else g?(u[l]=o,d(l)&&(f[l]=o)):p&&(l.value=o,e.k&&(u[e.k]=o))};if(o){const _=()=>{m(),Ao.delete(e)};_.id=-1,Ao.set(e,_),Le(_,n)}else Mf(e),m()}}}function Mf(e){const t=Ao.get(e);t&&(t.flags|=8,Ao.delete(e))}mo().requestIdleCallback,mo().cancelIdleCallback;const vs=e=>!!e.type.__asyncLoader,zo=e=>e.type.__isKeepAlive;function Lb(e,t){Cf(e,"a",t)}function Fb(e,t){Cf(e,"da",t)}function Cf(e,t,n=ae){const i=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Do(t,i,n),n){let s=n.parent;for(;s&&s.parent;)zo(s.parent.vnode)&&$b(i,t,n,s),s=s.parent}}function $b(e,t,n,i){const s=Do(t,e,i,!0);$i(()=>{Qa(i[t],s)},n)}function Do(e,t,n=ae,i=!1){if(n){const s=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{gn();const a=hr(n),l=ln(t,n,e,o);return a(),mn(),l});return i?s.unshift(r):s.push(r),r}}const $n=e=>(t,n=ae)=>{(!dr||e==="sp")&&Do(e,(...i)=>t(...i),n)},Nb=$n("bm"),Fi=$n("m"),Bb=$n("bu"),jb=$n("u"),Pf=$n("bum"),$i=$n("um"),Vb=$n("sp"),Wb=$n("rtg"),Hb=$n("rtc");function Zb(e,t=ae){Do("ec",e,t)}const Ub="components",Of=Symbol.for("v-ndc");function Eo(e){return It(e)?Yb(Ub,e,!1)||e:e||Of}function Yb(e,t,n=!0,i=!1){const s=be||ae;if(s){const r=s.type;{const a=fh(r,!1);if(a&&(a===t||a===Xe(t)||a===go(Xe(t))))return r}const o=Af(s[e]||r[e],t)||Af(s.appContext[e],t);return!o&&i?r:o}}function Af(e,t){return e&&(e[t]||e[Xe(t)]||e[go(Xe(t))])}function ws(e,t,n,i){let s;const r=n,o=Q(e);if(o||It(e)){const a=o&&Ii(e);let l=!1,c=!1;a&&(l=!qe(e),c=Ln(e),e=_o(e)),s=new Array(e.length);for(let u=0,f=e.length;u<f;u++)s[u]=t(l?c?ms(an(e[u])):an(e[u]):e[u],u,void 0,r)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,r)}else if(vt(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,r));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];s[l]=t(e[u],u,l,r)}}else s=[];return s}function zf(e,t,n={},i,s){if(be.ce||be.parent&&vs(be.parent)&&be.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),q(),xe(Vt,null,[ee("slot",n,i)],c?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),q();const o=r&&Df(r(n)),a=n.key||o&&o.key,l=xe(Vt,{key:(a&&!En(a)?a:`_${t}`)+(!o&&i?"_fb":"")},o||[],o&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function Df(e){return e.some(t=>fr(t)?!(t.type===oe||t.type===Vt&&!Df(t.children)):!0)?e:null}const xl=e=>e?lh(e)?zl(e):xl(e.parent):null,ar=qt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>xl(e.parent),$root:e=>xl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Lf(e),$forceUpdate:e=>e.f||(e.f=()=>{_l(e.update)}),$nextTick:e=>e.n||(e.n=uf.bind(e.proxy)),$watch:e=>zb.bind(e)}),vl=(e,t)=>e!==ft&&!e.__isScriptSetup&&dt(e,t),Kb={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:s,props:r,accessCache:o,type:a,appContext:l}=e;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return r[t]}else{if(vl(i,t))return o[t]=1,i[t];if(s!==ft&&dt(s,t))return o[t]=2,s[t];if(dt(r,t))return o[t]=3,r[t];if(n!==ft&&dt(n,t))return o[t]=4,n[t];wl&&(o[t]=0)}}const c=ar[t];let u,f;if(c)return t==="$attrs"&&re(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==ft&&dt(n,t))return o[t]=4,n[t];if(f=l.config.globalProperties,dt(f,t))return f[t]},set({_:e},t,n){const{data:i,setupState:s,ctx:r}=e;return vl(s,t)?(s[t]=n,!0):i!==ft&&dt(i,t)?(i[t]=n,!0):dt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:s,props:r,type:o}},a){let l;return!!(n[a]||e!==ft&&a[0]!=="$"&&dt(e,a)||vl(t,a)||dt(r,a)||dt(i,a)||dt(ar,a)||dt(s.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:dt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ef(e){return Q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let wl=!0;function Xb(e){const t=Lf(e),n=e.proxy,i=e.ctx;wl=!1,t.beforeCreate&&If(t.beforeCreate,e,"bc");const{data:s,computed:r,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:d,updated:g,activated:p,deactivated:m,beforeDestroy:_,beforeUnmount:y,destroyed:w,unmounted:x,render:b,renderTracked:k,renderTriggered:M,errorCaptured:P,serverPrefetch:v,expose:C,inheritAttrs:A,components:O,directives:j,filters:K}=t;if(c&&qb(c,i,null),o)for(const Z in o){const J=o[Z];et(J)&&(i[Z]=J.bind(n))}if(s){const Z=s.call(n,n);vt(Z)&&(e.data=vo(Z))}if(wl=!0,r)for(const Z in r){const J=r[Z],mt=et(J)?J.bind(n,n):et(J.get)?J.get.bind(n,n):dn,ie=!et(J)&&et(J.set)?J.set.bind(n):dn,Qt=Nt({get:mt,set:ie});Object.defineProperty(i,Z,{enumerable:!0,configurable:!0,get:()=>Qt.value,set:Ot=>Qt.value=Ot})}if(a)for(const Z in a)Rf(a[Z],i,n,Z);if(l){const Z=et(l)?l.call(n):l;Reflect.ownKeys(Z).forEach(J=>{Pb(J,Z[J])})}u&&If(u,e,"c");function H(Z,J){Q(J)?J.forEach(mt=>Z(mt.bind(n))):J&&Z(J.bind(n))}if(H(Nb,f),H(Fi,h),H(Bb,d),H(jb,g),H(Lb,p),H(Fb,m),H(Zb,P),H(Hb,k),H(Wb,M),H(Pf,y),H($i,x),H(Vb,v),Q(C))if(C.length){const Z=e.exposed||(e.exposed={});C.forEach(J=>{Object.defineProperty(Z,J,{get:()=>n[J],set:mt=>n[J]=mt,enumerable:!0})})}else e.exposed||(e.exposed={});b&&e.render===dn&&(e.render=b),A!=null&&(e.inheritAttrs=A),O&&(e.components=O),j&&(e.directives=j),v&&Tf(e)}function qb(e,t,n=dn){Q(e)&&(e=Sl(e));for(const i in e){const s=e[i];let r;vt(s)?"default"in s?r=oi(s.from||i,s.default,!0):r=oi(s.from||i):r=oi(s),te(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[i]=r}}function If(e,t,n){ln(Q(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Rf(e,t,n,i){let s=i.includes(".")?_f(n,i):()=>n[i];if(It(e)){const r=t[e];et(r)&&xs(s,r)}else if(et(e))xs(s,e.bind(n));else if(vt(e))if(Q(e))e.forEach(r=>Rf(r,t,n,i));else{const r=et(e.handler)?e.handler.bind(n):t[e.handler];et(r)&&xs(s,r,e)}}function Lf(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,a=r.get(t);let l;return a?l=a:!s.length&&!n&&!i?l=t:(l={},s.length&&s.forEach(c=>Io(l,c,o,!0)),Io(l,t,o)),vt(t)&&r.set(t,l),l}function Io(e,t,n,i=!1){const{mixins:s,extends:r}=t;r&&Io(e,r,n,!0),s&&s.forEach(o=>Io(e,o,n,!0));for(const o in t)if(!(i&&o==="expose")){const a=Jb[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Jb={data:Ff,props:$f,emits:$f,methods:lr,computed:lr,beforeCreate:ye,created:ye,beforeMount:ye,mounted:ye,beforeUpdate:ye,updated:ye,beforeDestroy:ye,beforeUnmount:ye,destroyed:ye,unmounted:ye,activated:ye,deactivated:ye,errorCaptured:ye,serverPrefetch:ye,components:lr,directives:lr,watch:Qb,provide:Ff,inject:Gb};function Ff(e,t){return t?e?function(){return qt(et(e)?e.call(this,this):e,et(t)?t.call(this,this):t)}:t:e}function Gb(e,t){return lr(Sl(e),Sl(t))}function Sl(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ye(e,t){return e?[...new Set([].concat(e,t))]:t}function lr(e,t){return e?qt(Object.create(null),e,t):t}function $f(e,t){return e?Q(e)&&Q(t)?[...new Set([...e,...t])]:qt(Object.create(null),Ef(e),Ef(t??{})):t}function Qb(e,t){if(!e)return t;if(!t)return e;const n=qt(Object.create(null),e);for(const i in t)n[i]=ye(e[i],t[i]);return n}function Nf(){return{app:null,config:{isNativeTag:Du,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let t0=0;function e0(e,t){return function(i,s=null){et(i)||(i=qt({},i)),s!=null&&!vt(s)&&(s=null);const r=Nf(),o=new WeakSet,a=[];let l=!1;const c=r.app={_uid:t0++,_component:i,_props:s,_container:null,_context:r,_instance:null,version:I0,get config(){return r.config},set config(u){},use(u,...f){return o.has(u)||(u&&et(u.install)?(o.add(u),u.install(c,...f)):et(u)&&(o.add(u),u(c,...f))),c},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),c},component(u,f){return f?(r.components[u]=f,c):r.components[u]},directive(u,f){return f?(r.directives[u]=f,c):r.directives[u]},mount(u,f,h){if(!l){const d=c._ceVNode||ee(i,s);return d.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),e(d,u,h),l=!0,c._container=u,u.__vue_app__=c,zl(d.component)}},onUnmount(u){a.push(u)},unmount(){l&&(ln(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return r.provides[u]=f,c},runWithContext(u){const f=Ss;Ss=c;try{return u()}finally{Ss=f}}};return c}}let Ss=null;const n0=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Xe(t)}Modifiers`]||e[`${Di(t)}Modifiers`];function i0(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||ft;let s=n;const r=t.startsWith("update:"),o=r&&n0(i,t.slice(7));o&&(o.trim&&(s=n.map(u=>It(u)?u.trim():u)),o.number&&(s=n.map(N_)));let a,l=i[a=el(t)]||i[a=el(Xe(t))];!l&&r&&(l=i[a=el(Di(t))]),l&&ln(l,e,6,s);const c=i[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ln(c,e,6,s)}}const s0=new WeakMap;function Bf(e,t,n=!1){const i=n?s0:t.emitsCache,s=i.get(e);if(s!==void 0)return s;const r=e.emits;let o={},a=!1;if(!et(e)){const l=c=>{const u=Bf(c,t,!0);u&&(a=!0,qt(o,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(vt(e)&&i.set(e,null),null):(Q(r)?r.forEach(l=>o[l]=null):qt(o,r),vt(e)&&i.set(e,o),o)}function Ro(e,t){return!e||!fo(t)?!1:(t=t.slice(2).replace(/Once$/,""),dt(e,t[0].toLowerCase()+t.slice(1))||dt(e,Di(t))||dt(e,t))}function Tz(){}function jf(e){const{type:t,vnode:n,proxy:i,withProxy:s,propsOptions:[r],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:f,data:h,setupState:d,ctx:g,inheritAttrs:p}=e,m=Po(e);let _,y;try{if(n.shapeFlag&4){const x=s||i,b=x;_=yn(c.call(b,x,u,f,d,h,g)),y=a}else{const x=t;_=yn(x.length>1?x(f,{attrs:a,slots:o,emit:l}):x(f,null)),y=t.props?a:r0(a)}}catch(x){cr.length=0,Mo(x,e,1),_=ee(oe)}let w=_;if(y&&p!==!1){const x=Object.keys(y),{shapeFlag:b}=w;x.length&&b&7&&(r&&x.some(Ga)&&(y=o0(y,r)),w=ai(w,y,!1,!0))}return n.dirs&&(w=ai(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&rr(w,n.transition),_=w,Po(m),_}const r0=e=>{let t;for(const n in e)(n==="class"||n==="style"||fo(n))&&((t||(t={}))[n]=e[n]);return t},o0=(e,t)=>{const n={};for(const i in e)(!Ga(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function a0(e,t,n){const{props:i,children:s,component:r}=e,{props:o,children:a,patchFlag:l}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?Vf(i,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const h=u[f];if(o[h]!==i[h]&&!Ro(c,h))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:i===o?!1:i?o?Vf(i,o,c):!0:!!o;return!1}function Vf(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let s=0;s<i.length;s++){const r=i[s];if(t[r]!==e[r]&&!Ro(n,r))return!0}return!1}function l0({vnode:e,parent:t},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i===e)(e=t.vnode).el=n,t=t.parent;else break}}const Wf={},Hf=()=>Object.create(Wf),Zf=e=>Object.getPrototypeOf(e)===Wf;function c0(e,t,n,i=!1){const s={},r=Hf();e.propsDefaults=Object.create(null),Uf(e,t,s,r);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=i?s:hb(s):e.type.props?e.props=s:e.props=r,e.attrs=r}function u0(e,t,n,i){const{props:s,attrs:r,vnode:{patchFlag:o}}=e,a=ct(s),[l]=e.propsOptions;let c=!1;if((i||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let h=u[f];if(Ro(e.emitsOptions,h))continue;const d=t[h];if(l)if(dt(r,h))d!==r[h]&&(r[h]=d,c=!0);else{const g=Xe(h);s[g]=kl(l,a,g,d,e,!1)}else d!==r[h]&&(r[h]=d,c=!0)}}}else{Uf(e,t,s,r)&&(c=!0);let u;for(const f in a)(!t||!dt(t,f)&&((u=Di(f))===f||!dt(t,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=kl(l,a,f,void 0,e,!0)):delete s[f]);if(r!==a)for(const f in r)(!t||!dt(t,f))&&(delete r[f],c=!0)}c&&In(e.attrs,"set","")}function Uf(e,t,n,i){const[s,r]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(Js(l))continue;const c=t[l];let u;s&&dt(s,u=Xe(l))?!r||!r.includes(u)?n[u]=c:(a||(a={}))[u]=c:Ro(e.emitsOptions,l)||(!(l in i)||c!==i[l])&&(i[l]=c,o=!0)}if(r){const l=ct(n),c=a||ft;for(let u=0;u<r.length;u++){const f=r[u];n[f]=kl(s,l,f,c[f],e,!dt(c,f))}}return o}function kl(e,t,n,i,s,r){const o=e[n];if(o!=null){const a=dt(o,"default");if(a&&i===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&et(l)){const{propsDefaults:c}=s;if(n in c)i=c[n];else{const u=hr(s);i=c[n]=l.call(null,t),u()}}else i=l;s.ce&&s.ce._setProp(n,i)}o[0]&&(r&&!a?i=!1:o[1]&&(i===""||i===Di(n))&&(i=!0))}return i}const f0=new WeakMap;function Yf(e,t,n=!1){const i=n?f0:t.propsCache,s=i.get(e);if(s)return s;const r=e.props,o={},a=[];let l=!1;if(!et(e)){const u=f=>{l=!0;const[h,d]=Yf(f,t,!0);qt(o,h),d&&a.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!l)return vt(e)&&i.set(e,ds),ds;if(Q(r))for(let u=0;u<r.length;u++){const f=Xe(r[u]);Kf(f)&&(o[f]=ft)}else if(r)for(const u in r){const f=Xe(u);if(Kf(f)){const h=r[u],d=o[f]=Q(h)||et(h)?{type:h}:qt({},h),g=d.type;let p=!1,m=!0;if(Q(g))for(let _=0;_<g.length;++_){const y=g[_],w=et(y)&&y.name;if(w==="Boolean"){p=!0;break}else w==="String"&&(m=!1)}else p=et(g)&&g.name==="Boolean";d[0]=p,d[1]=m,(p||dt(d,"default"))&&a.push(f)}}const c=[o,a];return vt(e)&&i.set(e,c),c}function Kf(e){return e[0]!=="$"&&!Js(e)}const Tl=e=>e==="_"||e==="_ctx"||e==="$stable",Ml=e=>Q(e)?e.map(yn):[yn(e)],h0=(e,t,n)=>{if(t._n)return t;const i=cn((...s)=>Ml(t(...s)),n);return i._c=!1,i},Xf=(e,t,n)=>{const i=e._ctx;for(const s in e){if(Tl(s))continue;const r=e[s];if(et(r))t[s]=h0(s,r,i);else if(r!=null){const o=Ml(r);t[s]=()=>o}}},qf=(e,t)=>{const n=Ml(t);e.slots.default=()=>n},Jf=(e,t,n)=>{for(const i in t)(n||!Tl(i))&&(e[i]=t[i])},d0=(e,t,n)=>{const i=e.slots=Hf();if(e.vnode.shapeFlag&32){const s=t._;s?(Jf(i,t,n),n&&Fu(i,"_",s,!0)):Xf(t,i)}else t&&qf(e,t)},p0=(e,t,n)=>{const{vnode:i,slots:s}=e;let r=!0,o=ft;if(i.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:Jf(s,t,n):(r=!t.$stable,Xf(t,s)),o=t}else t&&(qf(e,t),o={default:1});if(r)for(const a in s)!Tl(a)&&o[a]==null&&delete s[a]},Le=y0;function g0(e){return m0(e)}function m0(e,t){const n=mo();n.__VUE__=!0;const{insert:i,remove:s,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:d=dn,insertStaticContent:g}=e,p=(S,T,D,F=null,I=null,R=null,V=void 0,B=null,N=!!T.dynamicChildren)=>{if(S===T)return;S&&!Bi(S,T)&&(F=Ja(S),Ot(S,I,R,!0),S=null),T.patchFlag===-2&&(N=!1,T.dynamicChildren=null);const{type:L,ref:G,shapeFlag:W}=T;switch(L){case Lo:m(S,T,D,F);break;case oe:_(S,T,D,F);break;case Fo:S==null&&y(T,D,F,V);break;case Vt:O(S,T,D,F,I,R,V,B,N);break;default:W&1?b(S,T,D,F,I,R,V,B,N):W&6?j(S,T,D,F,I,R,V,B,N):(W&64||W&128)&&L.process(S,T,D,F,I,R,V,B,N,co)}G!=null&&I?or(G,S&&S.ref,R,T||S,!T):G==null&&S&&S.ref!=null&&or(S.ref,null,R,S,!0)},m=(S,T,D,F)=>{if(S==null)i(T.el=a(T.children),D,F);else{const I=T.el=S.el;T.children!==S.children&&c(I,T.children)}},_=(S,T,D,F)=>{S==null?i(T.el=l(T.children||""),D,F):T.el=S.el},y=(S,T,D,F)=>{[S.el,S.anchor]=g(S.children,T,D,F,S.el,S.anchor)},w=({el:S,anchor:T},D,F)=>{let I;for(;S&&S!==T;)I=h(S),i(S,D,F),S=I;i(T,D,F)},x=({el:S,anchor:T})=>{let D;for(;S&&S!==T;)D=h(S),s(S),S=D;s(T)},b=(S,T,D,F,I,R,V,B,N)=>{if(T.type==="svg"?V="svg":T.type==="math"&&(V="mathml"),S==null)k(T,D,F,I,R,V,B,N);else{const L=S.el&&S.el._isVueCE?S.el:null;try{L&&L._beginPatch(),v(S,T,I,R,V,B,N)}finally{L&&L._endPatch()}}},k=(S,T,D,F,I,R,V,B)=>{let N,L;const{props:G,shapeFlag:W,transition:X,dirs:tt}=S;if(N=S.el=o(S.type,R,G&&G.is,G),W&8?u(N,S.children):W&16&&P(S.children,N,null,F,I,Cl(S,R),V,B),tt&&Li(S,null,F,"created"),M(N,S,S.scopeId,V,F),G){for(const Mt in G)Mt!=="value"&&!Js(Mt)&&r(N,Mt,null,G[Mt],R,F);"value"in G&&r(N,"value",null,G.value,R),(L=G.onVnodeBeforeMount)&&xn(L,F,S)}tt&&Li(S,null,F,"beforeMount");const lt=_0(I,X);lt&&X.beforeEnter(N),i(N,T,D),((L=G&&G.onVnodeMounted)||lt||tt)&&Le(()=>{L&&xn(L,F,S),lt&&X.enter(N),tt&&Li(S,null,F,"mounted")},I)},M=(S,T,D,F,I)=>{if(D&&d(S,D),F)for(let R=0;R<F.length;R++)d(S,F[R]);if(I){let R=I.subTree;if(T===R||nh(R.type)&&(R.ssContent===T||R.ssFallback===T)){const V=I.vnode;M(S,V,V.scopeId,V.slotScopeIds,I.parent)}}},P=(S,T,D,F,I,R,V,B,N=0)=>{for(let L=N;L<S.length;L++){const G=S[L]=B?li(S[L]):yn(S[L]);p(null,G,T,D,F,I,R,V,B)}},v=(S,T,D,F,I,R,V)=>{const B=T.el=S.el;let{patchFlag:N,dynamicChildren:L,dirs:G}=T;N|=S.patchFlag&16;const W=S.props||ft,X=T.props||ft;let tt;if(D&&Ni(D,!1),(tt=X.onVnodeBeforeUpdate)&&xn(tt,D,T,S),G&&Li(T,S,D,"beforeUpdate"),D&&Ni(D,!0),(W.innerHTML&&X.innerHTML==null||W.textContent&&X.textContent==null)&&u(B,""),L?C(S.dynamicChildren,L,B,D,F,Cl(T,I),R):V||J(S,T,B,null,D,F,Cl(T,I),R,!1),N>0){if(N&16)A(B,W,X,D,I);else if(N&2&&W.class!==X.class&&r(B,"class",null,X.class,I),N&4&&r(B,"style",W.style,X.style,I),N&8){const lt=T.dynamicProps;for(let Mt=0;Mt<lt.length;Mt++){const _t=lt[Mt],Ie=W[_t],Re=X[_t];(Re!==Ie||_t==="value")&&r(B,_t,Ie,Re,I,D)}}N&1&&S.children!==T.children&&u(B,T.children)}else!V&&L==null&&A(B,W,X,D,I);((tt=X.onVnodeUpdated)||G)&&Le(()=>{tt&&xn(tt,D,T,S),G&&Li(T,S,D,"updated")},F)},C=(S,T,D,F,I,R,V)=>{for(let B=0;B<T.length;B++){const N=S[B],L=T[B],G=N.el&&(N.type===Vt||!Bi(N,L)||N.shapeFlag&198)?f(N.el):D;p(N,L,G,null,F,I,R,V,!0)}},A=(S,T,D,F,I)=>{if(T!==D){if(T!==ft)for(const R in T)!Js(R)&&!(R in D)&&r(S,R,T[R],null,I,F);for(const R in D){if(Js(R))continue;const V=D[R],B=T[R];V!==B&&R!=="value"&&r(S,R,B,V,I,F)}"value"in D&&r(S,"value",T.value,D.value,I)}},O=(S,T,D,F,I,R,V,B,N)=>{const L=T.el=S?S.el:a(""),G=T.anchor=S?S.anchor:a("");let{patchFlag:W,dynamicChildren:X,slotScopeIds:tt}=T;tt&&(B=B?B.concat(tt):tt),S==null?(i(L,D,F),i(G,D,F),P(T.children||[],D,G,I,R,V,B,N)):W>0&&W&64&&X&&S.dynamicChildren&&S.dynamicChildren.length===X.length?(C(S.dynamicChildren,X,D,I,R,V,B),(T.key!=null||I&&T===I.subTree)&&Gf(S,T,!0)):J(S,T,D,G,I,R,V,B,N)},j=(S,T,D,F,I,R,V,B,N)=>{T.slotScopeIds=B,S==null?T.shapeFlag&512?I.ctx.activate(T,D,F,V,N):K(T,D,F,I,R,V,N):U(S,T,N)},K=(S,T,D,F,I,R,V)=>{const B=S.component=M0(S,F,I);if(zo(S)&&(B.ctx.renderer=co),C0(B,!1,V),B.asyncDep){if(I&&I.registerDep(B,H,V),!S.el){const N=B.subTree=ee(oe);_(null,N,T,D),S.placeholder=N.el}}else H(B,S,T,D,I,R,V)},U=(S,T,D)=>{const F=T.component=S.component;if(a0(S,T,D))if(F.asyncDep&&!F.asyncResolved){Z(F,T,D);return}else F.next=T,F.update();else T.el=S.el,F.vnode=T},H=(S,T,D,F,I,R,V)=>{const B=()=>{if(S.isMounted){let{next:W,bu:X,u:tt,parent:lt,vnode:Mt}=S;{const zn=Qf(S);if(zn){W&&(W.el=Mt.el,Z(S,W,V)),zn.asyncDep.then(()=>{S.isUnmounted||B()});return}}let _t=W,Ie;Ni(S,!1),W?(W.el=Mt.el,Z(S,W,V)):W=Mt,X&&nl(X),(Ie=W.props&&W.props.onVnodeBeforeUpdate)&&xn(Ie,lt,W,Mt),Ni(S,!0);const Re=jf(S),An=S.subTree;S.subTree=Re,p(An,Re,f(An.el),Ja(An),S,I,R),W.el=Re.el,_t===null&&l0(S,Re.el),tt&&Le(tt,I),(Ie=W.props&&W.props.onVnodeUpdated)&&Le(()=>xn(Ie,lt,W,Mt),I)}else{let W;const{el:X,props:tt}=T,{bm:lt,m:Mt,parent:_t,root:Ie,type:Re}=S,An=vs(T);Ni(S,!1),lt&&nl(lt),!An&&(W=tt&&tt.onVnodeBeforeMount)&&xn(W,_t,T),Ni(S,!0);{Ie.ce&&Ie.ce._def.shadowRoot!==!1&&Ie.ce._injectChildStyle(Re);const zn=S.subTree=jf(S);p(null,zn,D,F,S,I,R),T.el=zn.el}if(Mt&&Le(Mt,I),!An&&(W=tt&&tt.onVnodeMounted)){const zn=T;Le(()=>xn(W,_t,zn),I)}(T.shapeFlag&256||_t&&vs(_t.vnode)&&_t.vnode.shapeFlag&256)&&S.a&&Le(S.a,I),S.isMounted=!0,T=D=F=null}};S.scope.on();const N=S.effect=new Vu(B);S.scope.off();const L=S.update=N.run.bind(N),G=S.job=N.runIfDirty.bind(N);G.i=S,G.id=S.uid,N.scheduler=()=>_l(G),Ni(S,!0),L()},Z=(S,T,D)=>{T.component=S;const F=S.vnode.props;S.vnode=T,S.next=null,u0(S,T.props,F,D),p0(S,T.children,D),gn(),hf(S),mn()},J=(S,T,D,F,I,R,V,B,N=!1)=>{const L=S&&S.children,G=S?S.shapeFlag:0,W=T.children,{patchFlag:X,shapeFlag:tt}=T;if(X>0){if(X&128){ie(L,W,D,F,I,R,V,B,N);return}else if(X&256){mt(L,W,D,F,I,R,V,B,N);return}}tt&8?(G&16&&Ye(L,I,R),W!==L&&u(D,W)):G&16?tt&16?ie(L,W,D,F,I,R,V,B,N):Ye(L,I,R,!0):(G&8&&u(D,""),tt&16&&P(W,D,F,I,R,V,B,N))},mt=(S,T,D,F,I,R,V,B,N)=>{S=S||ds,T=T||ds;const L=S.length,G=T.length,W=Math.min(L,G);let X;for(X=0;X<W;X++){const tt=T[X]=N?li(T[X]):yn(T[X]);p(S[X],tt,D,null,I,R,V,B,N)}L>G?Ye(S,I,R,!0,!1,W):P(T,D,F,I,R,V,B,N,W)},ie=(S,T,D,F,I,R,V,B,N)=>{let L=0;const G=T.length;let W=S.length-1,X=G-1;for(;L<=W&&L<=X;){const tt=S[L],lt=T[L]=N?li(T[L]):yn(T[L]);if(Bi(tt,lt))p(tt,lt,D,null,I,R,V,B,N);else break;L++}for(;L<=W&&L<=X;){const tt=S[W],lt=T[X]=N?li(T[X]):yn(T[X]);if(Bi(tt,lt))p(tt,lt,D,null,I,R,V,B,N);else break;W--,X--}if(L>W){if(L<=X){const tt=X+1,lt=tt<G?T[tt].el:F;for(;L<=X;)p(null,T[L]=N?li(T[L]):yn(T[L]),D,lt,I,R,V,B,N),L++}}else if(L>X)for(;L<=W;)Ot(S[L],I,R,!0),L++;else{const tt=L,lt=L,Mt=new Map;for(L=lt;L<=X;L++){const Ke=T[L]=N?li(T[L]):yn(T[L]);Ke.key!=null&&Mt.set(Ke.key,L)}let _t,Ie=0;const Re=X-lt+1;let An=!1,zn=0;const uo=new Array(Re);for(L=0;L<Re;L++)uo[L]=0;for(L=tt;L<=W;L++){const Ke=S[L];if(Ie>=Re){Ot(Ke,I,R,!0);continue}let Dn;if(Ke.key!=null)Dn=Mt.get(Ke.key);else for(_t=lt;_t<=X;_t++)if(uo[_t-lt]===0&&Bi(Ke,T[_t])){Dn=_t;break}Dn===void 0?Ot(Ke,I,R,!0):(uo[Dn-lt]=L+1,Dn>=zn?zn=Dn:An=!0,p(Ke,T[Dn],D,null,I,R,V,B,N),Ie++)}const D_=An?b0(uo):ds;for(_t=D_.length-1,L=Re-1;L>=0;L--){const Ke=lt+L,Dn=T[Ke],E_=T[Ke+1],I_=Ke+1<G?E_.el||eh(E_):F;uo[L]===0?p(null,Dn,D,I_,I,R,V,B,N):An&&(_t<0||L!==D_[_t]?Qt(Dn,D,I_,2):_t--)}}},Qt=(S,T,D,F,I=null)=>{const{el:R,type:V,transition:B,children:N,shapeFlag:L}=S;if(L&6){Qt(S.component.subTree,T,D,F);return}if(L&128){S.suspense.move(T,D,F);return}if(L&64){V.move(S,T,D,co);return}if(V===Vt){i(R,T,D);for(let W=0;W<N.length;W++)Qt(N[W],T,D,F);i(S.anchor,T,D);return}if(V===Fo){w(S,T,D);return}if(F!==2&&L&1&&B)if(F===0)B.beforeEnter(R),i(R,T,D),Le(()=>B.enter(R),I);else{const{leave:W,delayLeave:X,afterLeave:tt}=B,lt=()=>{S.ctx.isUnmounted?s(R):i(R,T,D)},Mt=()=>{R._isLeaving&&R[Fn](!0),W(R,()=>{lt(),tt&&tt()})};X?X(R,lt,Mt):Mt()}else i(R,T,D)},Ot=(S,T,D,F=!1,I=!1)=>{const{type:R,props:V,ref:B,children:N,dynamicChildren:L,shapeFlag:G,patchFlag:W,dirs:X,cacheIndex:tt}=S;if(W===-2&&(I=!1),B!=null&&(gn(),or(B,null,D,S,!0),mn()),tt!=null&&(T.renderCache[tt]=void 0),G&256){T.ctx.deactivate(S);return}const lt=G&1&&X,Mt=!vs(S);let _t;if(Mt&&(_t=V&&V.onVnodeBeforeUnmount)&&xn(_t,T,S),G&6)ke(S.component,D,F);else{if(G&128){S.suspense.unmount(D,F);return}lt&&Li(S,null,T,"beforeUnmount"),G&64?S.type.remove(S,T,D,co,F):L&&!L.hasOnce&&(R!==Vt||W>0&&W&64)?Ye(L,T,D,!1,!0):(R===Vt&&W&384||!I&&G&16)&&Ye(N,T,D),F&&hn(S)}(Mt&&(_t=V&&V.onVnodeUnmounted)||lt)&&Le(()=>{_t&&xn(_t,T,S),lt&&Li(S,null,T,"unmounted")},D)},hn=S=>{const{type:T,el:D,anchor:F,transition:I}=S;if(T===Vt){Xt(D,F);return}if(T===Fo){x(S);return}const R=()=>{s(D),I&&!I.persisted&&I.afterLeave&&I.afterLeave()};if(S.shapeFlag&1&&I&&!I.persisted){const{leave:V,delayLeave:B}=I,N=()=>V(D,R);B?B(S.el,R,N):N()}else R()},Xt=(S,T)=>{let D;for(;S!==T;)D=h(S),s(S),S=D;s(T)},ke=(S,T,D)=>{const{bum:F,scope:I,job:R,subTree:V,um:B,m:N,a:L}=S;th(N),th(L),F&&nl(F),I.stop(),R&&(R.flags|=8,Ot(V,S,T,D)),B&&Le(B,T),Le(()=>{S.isUnmounted=!0},T)},Ye=(S,T,D,F=!1,I=!1,R=0)=>{for(let V=R;V<S.length;V++)Ot(S[V],T,D,F,I)},Ja=S=>{if(S.shapeFlag&6)return Ja(S.component.subTree);if(S.shapeFlag&128)return S.suspense.next();const T=h(S.anchor||S.el),D=T&&T[Db];return D?h(D):T};let zu=!1;const z_=(S,T,D)=>{let F;S==null?T._vnode&&(Ot(T._vnode,null,null,!0),F=T._vnode.component):p(T._vnode||null,S,T,null,null,null,D),T._vnode=S,zu||(zu=!0,hf(F),df(),zu=!1)},co={p,um:Ot,m:Qt,r:hn,mt:K,mc:P,pc:J,pbc:C,n:Ja,o:e};return{render:z_,hydrate:void 0,createApp:e0(z_)}}function Cl({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ni({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function _0(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Gf(e,t,n=!1){const i=e.children,s=t.children;if(Q(i)&&Q(s))for(let r=0;r<i.length;r++){const o=i[r];let a=s[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[r]=li(s[r]),a.el=o.el),!n&&a.patchFlag!==-2&&Gf(o,a)),a.type===Lo&&(a.patchFlag!==-1?a.el=o.el:a.__elIndex=r+(e.type===Vt?1:0)),a.type===oe&&!a.el&&(a.el=o.el)}}function b0(e){const t=e.slice(),n=[0];let i,s,r,o,a;const l=e.length;for(i=0;i<l;i++){const c=e[i];if(c!==0){if(s=n[n.length-1],e[s]<c){t[i]=s,n.push(i);continue}for(r=0,o=n.length-1;r<o;)a=r+o>>1,e[n[a]]<c?r=a+1:o=a;c<e[n[r]]&&(r>0&&(t[i]=n[r-1]),n[r]=i)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=t[o];return n}function Qf(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Qf(t)}function th(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function eh(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?eh(t.subTree):null}const nh=e=>e.__isSuspense;function y0(e,t){t&&t.pendingBranch?Q(e)?t.effects.push(...e):t.effects.push(e):Cb(e)}const Vt=Symbol.for("v-fgt"),Lo=Symbol.for("v-txt"),oe=Symbol.for("v-cmt"),Fo=Symbol.for("v-stc"),cr=[];let Fe=null;function q(e=!1){cr.push(Fe=e?null:[])}function x0(){cr.pop(),Fe=cr[cr.length-1]||null}let ur=1;function $o(e,t=!1){ur+=e,e<0&&Fe&&t&&(Fe.hasOnce=!0)}function ih(e){return e.dynamicChildren=ur>0?Fe||ds:null,x0(),ur>0&&Fe&&Fe.push(e),e}function ot(e,t,n,i,s,r){return ih(E(e,t,n,i,s,r,!0))}function xe(e,t,n,i,s){return ih(ee(e,t,n,i,s,!0))}function fr(e){return e?e.__v_isVNode===!0:!1}function Bi(e,t){return e.type===t.type&&e.key===t.key}const sh=({key:e})=>e??null,No=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?It(e)||te(e)||et(e)?{i:be,r:e,k:t,f:!!n}:e:null);function E(e,t=null,n=null,i=0,s=null,r=e===Vt?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&sh(t),ref:t&&No(t),scopeId:gf,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:be};return a?(Pl(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=It(n)?8:16),ur>0&&!o&&Fe&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Fe.push(l),l}const ee=v0;function v0(e,t=null,n=null,i=0,s=null,r=!1){if((!e||e===Of)&&(e=oe),fr(e)){const a=ai(e,t,!0);return n&&Pl(a,n),ur>0&&!r&&Fe&&(a.shapeFlag&6?Fe[Fe.indexOf(e)]=a:Fe.push(a)),a.patchFlag=-2,a}if(E0(e)&&(e=e.__vccOpts),t){t=w0(t);let{class:a,style:l}=t;a&&!It(a)&&(t.class=it(a)),vt(l)&&(gl(l)&&!Q(l)&&(l=qt({},l)),t.style=pn(l))}const o=It(e)?1:nh(e)?128:bf(e)?64:vt(e)?4:et(e)?2:0;return E(e,t,n,i,s,o,r,!0)}function w0(e){return e?gl(e)||Zf(e)?qt({},e):e:null}function ai(e,t,n=!1,i=!1){const{props:s,ref:r,patchFlag:o,children:a,transition:l}=e,c=t?Ol(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&sh(c),ref:t&&t.ref?n&&r?Q(r)?r.concat(No(t)):[r,No(t)]:No(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Vt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ai(e.ssContent),ssFallback:e.ssFallback&&ai(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&rr(u,l.clone(u)),u}function rh(e=" ",t=0){return ee(Lo,null,e,t)}function S0(e,t){const n=ee(Fo,null,e);return n.staticCount=t,n}function ve(e="",t=!1){return t?(q(),xe(oe,null,e)):ee(oe,null,e)}function yn(e){return e==null||typeof e=="boolean"?ee(oe):Q(e)?ee(Vt,null,e.slice()):fr(e)?li(e):ee(Lo,null,String(e))}function li(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ai(e)}function Pl(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Q(t))n=16;else if(typeof t=="object")if(i&65){const s=t.default;s&&(s._c&&(s._d=!1),Pl(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Zf(t)?t._ctx=be:s===3&&be&&(be.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else et(t)?(t={default:t,_ctx:be},n=32):(t=String(t),i&64?(n=16,t=[rh(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ol(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const s in i)if(s==="class")t.class!==i.class&&(t.class=it([t.class,i.class]));else if(s==="style")t.style=pn([t.style,i.style]);else if(fo(s)){const r=t[s],o=i[s];o&&r!==o&&!(Q(r)&&r.includes(o))&&(t[s]=r?[].concat(r,o):o)}else s!==""&&(t[s]=i[s])}return t}function xn(e,t,n,i=null){ln(e,t,7,[n,i])}const k0=Nf();let T0=0;function M0(e,t,n){const i=e.type,s=(t?t.appContext:e.appContext)||k0,r={uid:T0++,vnode:e,type:i,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new U_(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Yf(i,s),emitsOptions:Bf(i,s),emit:null,emitted:null,propsDefaults:ft,inheritAttrs:i.inheritAttrs,ctx:ft,data:ft,props:ft,attrs:ft,slots:ft,refs:ft,setupState:ft,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=i0.bind(null,r),e.ce&&e.ce(r),r}let ae=null;const oh=()=>ae||be;let Bo,Al;{const e=mo(),t=(n,i)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(i),r=>{s.length>1?s.forEach(o=>o(r)):s[0](r)}};Bo=t("__VUE_INSTANCE_SETTERS__",n=>ae=n),Al=t("__VUE_SSR_SETTERS__",n=>dr=n)}const hr=e=>{const t=ae;return Bo(e),e.scope.on(),()=>{e.scope.off(),Bo(t)}},ah=()=>{ae&&ae.scope.off(),Bo(null)};function lh(e){return e.vnode.shapeFlag&4}let dr=!1;function C0(e,t=!1,n=!1){t&&Al(t);const{props:i,children:s}=e.vnode,r=lh(e);c0(e,i,r,t),d0(e,s,n||t);const o=r?P0(e,t):void 0;return t&&Al(!1),o}function P0(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Kb);const{setup:i}=n;if(i){gn();const s=e.setupContext=i.length>1?A0(e):null,r=hr(e),o=_s(i,e,0,[e.props,s]),a=Iu(o);if(mn(),r(),(a||e.sp)&&!vs(e)&&Tf(e),a){if(o.then(ah,ah),t)return o.then(l=>{ch(e,l)}).catch(l=>{Mo(l,e,0)});e.asyncDep=o}else ch(e,o)}else uh(e)}function ch(e,t,n){et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:vt(t)&&(e.setupState=af(t)),uh(e)}function uh(e,t,n){const i=e.type;e.render||(e.render=i.render||dn);{const s=hr(e);gn();try{Xb(e)}finally{mn(),s()}}}const O0={get(e,t){return re(e,"get",""),e[t]}};function A0(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,O0),slots:e.slots,emit:e.emit,expose:t}}function zl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(af(db(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ar)return ar[n](e)},has(t,n){return n in t||n in ar}})):e.proxy}const z0=/(?:^|[-_])\w/g,D0=e=>e.replace(z0,t=>t.toUpperCase()).replace(/[-_]/g,"");function fh(e,t=!0){return et(e)?e.displayName||e.name:e.name||t&&e.__name}function hh(e,t,n=!1){let i=fh(t);if(!i&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(i=s[1])}if(!i&&e){const s=r=>{for(const o in r)if(r[o]===t)return o};i=s(e.components)||e.parent&&s(e.parent.type.components)||s(e.appContext.components)}return i?D0(i):n?"App":"Anonymous"}function E0(e){return et(e)&&"__vccOpts"in e}const Nt=(e,t)=>bb(e,t,dr);function St(e,t,n){try{$o(-1);const i=arguments.length;return i===2?vt(t)&&!Q(t)?fr(t)?ee(e,null,[t]):ee(e,t):ee(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&fr(n)&&(n=[n]),ee(e,t,n))}finally{$o(1)}}const I0="3.5.26";/**
13
+ **/const Jr=[];let Gs=!1;function B1(t,...e){if(Gs)return;Gs=!0,jt();const n=Jr.length?Jr[Jr.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=Wd();if(r)hr(r,n,11,[t+e.map(s=>{var o,a;return(a=(o=s.toString)==null?void 0:o.call(s))!=null?a:JSON.stringify(s)}).join(""),n&&n.proxy,i.map(({vnode:s})=>`at <${tc(n,s.type)}>`).join(`
14
+ `),i]);else{const s=[`[Vue warn]: ${t}`,...e];i.length&&s.push(`
15
+ `,...Jd(i)),console.warn(...s)}Ut(),Gs=!1}function Wd(){let t=Jr[Jr.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const r=t.component&&t.component.parent;t=r&&r.vnode}return e}function Jd(t){const e=[];return t.forEach((n,r)=>{e.push(...r===0?[]:[`
16
+ `],...Kd(n))}),e}function Kd({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",r=t.component?t.component.parent==null:!1,i=` at <${tc(t.component,t.type,r)}`,s=">"+n;return t.props?[i,...qd(t.props),s]:[i+s]}function qd(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(r=>{e.push(...Ga(r,t[r]))}),n.length>3&&e.push(" ..."),e}function Ga(t,e,n){return we(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:Re(e)?(e=Ga(t,ie(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):q(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=ie(e),n?e:[`${t}=`,e])}function hr(t,e,n,r){try{return r?t(...r):t()}catch(i){Hi(i,e,n)}}function Nt(t,e,n,r){if(q(t)){const i=hr(t,e,n,r);return i&&ka(i)&&i.catch(s=>{Hi(s,e,n)}),i}if(J(t)){const i=[];for(let s=0;s<t.length;s++)i.push(Nt(t[s],e,n,r));return i}}function Hi(t,e,n,r=!0){const i=e?e.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||oe;if(e){let a=e.parent;const l=e.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](t,l,u)===!1)return}a=a.parent}if(s){jt(),hr(s,null,10,[t,l,u]),Ut();return}}Yd(t,n,i,r,o)}function Yd(t,e,n,r=!0,i=!1){if(i)throw t;console.error(t)}const qe=[];let Vt=-1;const pr=[];let wn=null,_r=0;const Xa=Promise.resolve();let Wi=null;function Qa(t){const e=Wi||Xa;return t?e.then(this?t.bind(this):t):e}function Gd(t){let e=Vt+1,n=qe.length;for(;e<n;){const r=e+n>>>1,i=qe[r],s=Kr(i);s<t||s===t&&i.flags&2?e=r+1:n=r}return e}function Xs(t){if(!(t.flags&1)){const e=Kr(t),n=qe[qe.length-1];!n||!(t.flags&2)&&e>=Kr(n)?qe.push(t):qe.splice(Gd(e),0,t),t.flags|=1,el()}}function el(){Wi||(Wi=Xa.then(rl))}function Xd(t){J(t)?pr.push(...t):wn&&t.id===-1?wn.splice(_r+1,0,t):t.flags&1||(pr.push(t),t.flags|=1),el()}function tl(t,e,n=Vt+1){for(;n<qe.length;n++){const r=qe[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;qe.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function nl(t){if(pr.length){const e=[...new Set(pr)].sort((n,r)=>Kr(n)-Kr(r));if(pr.length=0,wn){wn.push(...e);return}for(wn=e,_r=0;_r<wn.length;_r++){const n=wn[_r];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}wn=null,_r=0}}const Kr=t=>t.id==null?t.flags&2?-1:1/0:t.id;function rl(t){try{for(Vt=0;Vt<qe.length;Vt++){const e=qe[Vt];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),hr(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Vt<qe.length;Vt++){const e=qe[Vt];e&&(e.flags&=-2)}Vt=-1,qe.length=0,nl(),Wi=null,(qe.length||pr.length)&&rl()}}let Ye=null,il=null;function Ji(t){const e=Ye;return Ye=t,il=t&&t.type.__scopeId||null,e}function Rt(t,e=Ye,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&rs(-1);const s=Ji(e);let o;try{o=t(...i)}finally{Ji(s),r._d&&rs(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Vn(t,e,n,r){const i=t.dirs,s=e&&e.dirs;for(let o=0;o<i.length;o++){const a=i[o];s&&(a.oldValue=s[o].value);let l=a.dir[r];l&&(jt(),Nt(l,n,8,[t.el,a,t,e]),Ut())}}function Qd(t,e){if(Be){let n=Be.provides;const r=Be.parent&&Be.parent.provides;r===n&&(n=Be.provides=Object.create(r)),n[t]=e}}function Sn(t,e,n=!1){const r=ql();if(r||yr){let i=yr?yr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return n&&q(e)?e.call(r&&r.proxy):e}}const eh=Symbol.for("v-scx"),th=()=>Sn(eh);function mr(t,e,n){return sl(t,e,n)}function sl(t,e,n=oe){const{immediate:r,deep:i,flush:s,once:o}=n,a=De({},n),l=e&&r||!e&&s!=="post";let u;if(ri){if(s==="sync"){const h=th();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Zt,h.resume=Zt,h.pause=Zt,h}}const c=Be;a.call=(h,_,p)=>Nt(h,c,_,p);let f=!1;s==="post"?a.scheduler=h=>{ht(h,c&&c.suspense)}:s!=="sync"&&(f=!0,a.scheduler=(h,_)=>{_?h():Xs(h)}),a.augmentJob=h=>{e&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=Hd(t,e,a);return ri&&(u?u.push(d):l&&d()),d}function nh(t,e,n){const r=this.proxy,i=we(t)?t.includes(".")?ol(r,t):()=>r[t]:t.bind(r,r);let s;q(e)?s=e:(s=e.handler,n=e);const o=ni(this),a=sl(i,s.bind(r),n);return o(),a}function ol(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const rh=Symbol("_vte"),al=t=>t.__isTeleport,ln=Symbol("_leaveCb"),Ki=Symbol("_enterCb");function ih(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Hn(()=>{t.isMounted=!0}),gl(()=>{t.isUnmounting=!0}),t}const Ct=[Function,Array],ll={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ct,onEnter:Ct,onAfterEnter:Ct,onEnterCancelled:Ct,onBeforeLeave:Ct,onLeave:Ct,onAfterLeave:Ct,onLeaveCancelled:Ct,onBeforeAppear:Ct,onAppear:Ct,onAfterAppear:Ct,onAppearCancelled:Ct},cl=t=>{const e=t.subTree;return e.component?cl(e.component):e},sh={name:"BaseTransition",props:ll,setup(t,{slots:e}){const n=ql(),r=ih();return()=>{const i=e.default&&hl(e.default(),!0);if(!i||!i.length)return;const s=ul(i),o=ie(t),{mode:a}=o;if(r.isLeaving)return eo(s);const l=dl(s);if(!l)return eo(s);let u=Qs(l,o,r,n,f=>u=f);l.type!==Ue&&qr(l,u);let c=n.subTree&&dl(n.subTree);if(c&&c.type!==Ue&&!Kn(c,l)&&cl(n).type!==Ue){let f=Qs(c,o,r,n);if(qr(c,f),a==="out-in"&&l.type!==Ue)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},eo(s);a==="in-out"&&l.type!==Ue?f.delayLeave=(d,h,_)=>{const p=fl(r,c);p[String(c.key)]=c,d[ln]=()=>{h(),d[ln]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{_(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return s}}};function ul(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==Ue){e=n;break}}return e}const oh=sh;function fl(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Qs(t,e,n,r,i){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:_,onLeaveCancelled:p,onBeforeAppear:b,onAppear:w,onAfterAppear:k,onAppearCancelled:T}=e,x=String(t.key),y=fl(n,t),E=(v,S)=>{v&&Nt(v,r,9,S)},P=(v,S)=>{const N=S[1];E(v,S),J(v)?v.every(O=>O.length<=1)&&N():v.length<=1&&N()},D={mode:o,persisted:a,beforeEnter(v){let S=l;if(!n.isMounted)if(s)S=b||l;else return;v[ln]&&v[ln](!0);const N=y[x];N&&Kn(t,N)&&N.el[ln]&&N.el[ln](),E(S,[v])},enter(v){let S=u,N=c,O=f;if(!n.isMounted)if(s)S=w||u,N=k||c,O=T||f;else return;let B=!1;const Y=v[Ki]=se=>{B||(B=!0,se?E(O,[v]):E(N,[v]),D.delayedLeave&&D.delayedLeave(),v[Ki]=void 0)};S?P(S,[v,Y]):Y()},leave(v,S){const N=String(t.key);if(v[Ki]&&v[Ki](!0),n.isUnmounting)return S();E(d,[v]);let O=!1;const B=v[ln]=Y=>{O||(O=!0,S(),Y?E(p,[v]):E(_,[v]),v[ln]=void 0,y[N]===t&&delete y[N])};y[N]=t,h?P(h,[v,B]):B()},clone(v){const S=Qs(v,e,n,r,i);return i&&i(S),S}};return D}function eo(t){if(Yi(t))return t=kn(t),t.children=null,t}function dl(t){if(!Yi(t))return al(t.type)&&t.children?ul(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&q(n.default))return n.default()}}function qr(t,e){t.shapeFlag&6&&t.component?(t.transition=e,qr(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function hl(t,e=!1,n){let r=[],i=0;for(let s=0;s<t.length;s++){let o=t[s];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:s);o.type===Ee?(o.patchFlag&128&&i++,r=r.concat(hl(o.children,e,a))):(e||o.type!==Ue)&&r.push(a!=null?kn(o,{key:a}):o)}if(i>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function Pe(t,e){return q(t)?De({name:t.name},e,{setup:t}):t}function pl(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}const qi=new WeakMap;function Yr(t,e,n,r,i=!1){if(J(t)){t.forEach((_,p)=>Yr(_,e&&(J(e)?e[p]:e),n,r,i));return}if(gr(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Yr(t,e,n,r.component.subTree);return}const s=r.shapeFlag&4?ho(r.component):r.el,o=i?null:s,{i:a,r:l}=t,u=e&&e.r,c=a.refs===oe?a.refs={}:a.refs,f=a.setupState,d=ie(f),h=f===oe?wa:_=>le(d,_);if(u!=null&&u!==l){if(_l(e),we(u))c[u]=null,h(u)&&(f[u]=null);else if(Re(u)){u.value=null;const _=e;_.k&&(c[_.k]=null)}}if(q(l))hr(l,a,12,[o,c]);else{const _=we(l),p=Re(l);if(_||p){const b=()=>{if(t.f){const w=_?h(l)?f[l]:c[l]:l.value;if(i)J(w)&&Ds(w,s);else if(J(w))w.includes(s)||w.push(s);else if(_)c[l]=[s],h(l)&&(f[l]=c[l]);else{const k=[s];l.value=k,t.k&&(c[t.k]=k)}}else _?(c[l]=o,h(l)&&(f[l]=o)):p&&(l.value=o,t.k&&(c[t.k]=o))};if(o){const w=()=>{b(),qi.delete(t)};w.id=-1,qi.set(t,w),ht(w,n)}else _l(t),b()}}}function _l(t){const e=qi.get(t);e&&(e.flags|=8,qi.delete(t))}Mi().requestIdleCallback,Mi().cancelIdleCallback;const gr=t=>!!t.type.__asyncLoader,Yi=t=>t.type.__isKeepAlive;function ah(t,e){ml(t,"a",e)}function lh(t,e){ml(t,"da",e)}function ml(t,e,n=Be){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Gi(e,r,n),n){let i=n.parent;for(;i&&i.parent;)Yi(i.parent.vnode)&&ch(r,e,n,i),i=i.parent}}function ch(t,e,n,r){const i=Gi(e,t,r,!0);Wn(()=>{Ds(r[e],i)},n)}function Gi(t,e,n=Be,r=!1){if(n){const i=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...o)=>{jt();const a=ni(n),l=Nt(e,n,t,o);return a(),Ut(),l});return r?i.unshift(s):i.push(s),s}}const cn=t=>(e,n=Be)=>{(!ri||t==="sp")&&Gi(t,(...r)=>e(...r),n)},uh=cn("bm"),Hn=cn("m"),fh=cn("bu"),dh=cn("u"),gl=cn("bum"),Wn=cn("um"),hh=cn("sp"),ph=cn("rtg"),_h=cn("rtc");function mh(t,e=Be){Gi("ec",t,e)}const gh="components",vl=Symbol.for("v-ndc");function Xi(t){return we(t)?vh(gh,t,!1)||t:t||vl}function vh(t,e,n=!0,r=!1){const i=Ye||Be;if(i){const s=i.type;{const a=ec(s,!1);if(a&&(a===e||a===Tt(e)||a===Di(Tt(e))))return s}const o=yl(i[t]||s[t],e)||yl(i.appContext[t],e);return!o&&r?s:o}}function yl(t,e){return t&&(t[e]||t[Tt(e)]||t[Di(Tt(e))])}function vr(t,e,n,r){let i;const s=n,o=J(t);if(o||we(t)){const a=o&&Un(t);let l=!1,u=!1;a&&(l=!zt(t),u=an(t),t=Ni(t)),i=new Array(t.length);for(let c=0,f=t.length;c<f;c++)i[c]=e(l?u?dr(Mt(t[c])):Mt(t[c]):t[c],c,void 0,s)}else if(typeof t=="number"){i=new Array(t);for(let a=0;a<t;a++)i[a]=e(a+1,a,void 0,s)}else if(pe(t))if(t[Symbol.iterator])i=Array.from(t,(a,l)=>e(a,l,void 0,s));else{const a=Object.keys(t);i=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];i[l]=e(t[c],c,l,s)}}else i=[];return i}function bl(t,e,n={},r,i){if(Ye.ce||Ye.parent&&gr(Ye.parent)&&Ye.parent.ce){const u=Object.keys(n).length>0;return e!=="default"&&(n.name=e),V(),Xe(Ee,null,[Fe("slot",n,r)],u?-2:64)}let s=t[e];s&&s._c&&(s._d=!1),V();const o=s&&xl(s(n)),a=n.key||o&&o.key,l=Xe(Ee,{key:(a&&!rn(a)?a:`_${e}`)+(!o&&r?"_fb":"")},o||[],o&&t._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function xl(t){return t.some(e=>ti(e)?!(e.type===Ue||e.type===Ee&&!xl(e.children)):!0)?t:null}const to=t=>t?Gl(t)?ho(t):to(t.parent):null,Gr=De(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>to(t.parent),$root:t=>to(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Tl(t),$forceUpdate:t=>t.f||(t.f=()=>{Xs(t.update)}),$nextTick:t=>t.n||(t.n=Qa.bind(t.proxy)),$watch:t=>nh.bind(t)}),no=(t,e)=>t!==oe&&!t.__isScriptSetup&&le(t,e),yh={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:l}=t;if(e[0]!=="$"){const d=o[e];if(d!==void 0)switch(d){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return s[e]}else{if(no(r,e))return o[e]=1,r[e];if(i!==oe&&le(i,e))return o[e]=2,i[e];if(le(s,e))return o[e]=3,s[e];if(n!==oe&&le(n,e))return o[e]=4,n[e];ro&&(o[e]=0)}}const u=Gr[e];let c,f;if(u)return e==="$attrs"&&je(t.attrs,"get",""),u(t);if((c=a.__cssModules)&&(c=c[e]))return c;if(n!==oe&&le(n,e))return o[e]=4,n[e];if(f=l.config.globalProperties,le(f,e))return f[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:s}=t;return no(i,e)?(i[e]=n,!0):r!==oe&&le(r,e)?(r[e]=n,!0):le(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,props:s,type:o}},a){let l;return!!(n[a]||t!==oe&&a[0]!=="$"&&le(t,a)||no(e,a)||le(s,a)||le(r,a)||le(Gr,a)||le(i.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:le(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function wl(t){return J(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let ro=!0;function bh(t){const e=Tl(t),n=t.proxy,r=t.ctx;ro=!1,e.beforeCreate&&Sl(e.beforeCreate,t,"bc");const{data:i,computed:s,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:_,activated:p,deactivated:b,beforeDestroy:w,beforeUnmount:k,destroyed:T,unmounted:x,render:y,renderTracked:E,renderTriggered:P,errorCaptured:D,serverPrefetch:v,expose:S,inheritAttrs:N,components:O,directives:B,filters:Y}=e;if(u&&xh(u,r,null),o)for(const G in o){const te=o[G];q(te)&&(r[G]=te.bind(n))}if(i){const G=i.call(n,n);pe(G)&&(t.data=Li(G))}if(ro=!0,s)for(const G in s){const te=s[G],It=q(te)?te.bind(n,n):q(te.get)?te.get.bind(n,n):Zt,Qt=!q(te)&&q(te.set)?te.set.bind(n):Zt,St=Ce({get:It,set:Qt});Object.defineProperty(r,G,{enumerable:!0,configurable:!0,get:()=>St.value,set:Ne=>St.value=Ne})}if(a)for(const G in a)kl(a[G],r,n,G);if(l){const G=q(l)?l.call(n):l;Reflect.ownKeys(G).forEach(te=>{Qd(te,G[te])})}c&&Sl(c,t,"c");function Q(G,te){J(te)?te.forEach(It=>G(It.bind(n))):te&&G(te.bind(n))}if(Q(uh,f),Q(Hn,d),Q(fh,h),Q(dh,_),Q(ah,p),Q(lh,b),Q(mh,D),Q(_h,E),Q(ph,P),Q(gl,k),Q(Wn,x),Q(hh,v),J(S))if(S.length){const G=t.exposed||(t.exposed={});S.forEach(te=>{Object.defineProperty(G,te,{get:()=>n[te],set:It=>n[te]=It,enumerable:!0})})}else t.exposed||(t.exposed={});y&&t.render===Zt&&(t.render=y),N!=null&&(t.inheritAttrs=N),O&&(t.components=O),B&&(t.directives=B),v&&pl(t)}function xh(t,e,n=Zt){J(t)&&(t=io(t));for(const r in t){const i=t[r];let s;pe(i)?"default"in i?s=Sn(i.from||r,i.default,!0):s=Sn(i.from||r):s=Sn(i),Re(s)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):e[r]=s}}function Sl(t,e,n){Nt(J(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function kl(t,e,n,r){let i=r.includes(".")?ol(n,r):()=>n[r];if(we(t)){const s=e[t];q(s)&&mr(i,s)}else if(q(t))mr(i,t.bind(n));else if(pe(t))if(J(t))t.forEach(s=>kl(s,e,n,r));else{const s=q(t.handler)?t.handler.bind(n):e[t.handler];q(s)&&mr(i,s,t)}}function Tl(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=t.appContext,a=s.get(e);let l;return a?l=a:!i.length&&!n&&!r?l=e:(l={},i.length&&i.forEach(u=>Qi(l,u,o,!0)),Qi(l,e,o)),pe(e)&&s.set(e,l),l}function Qi(t,e,n,r=!1){const{mixins:i,extends:s}=e;s&&Qi(t,s,n,!0),i&&i.forEach(o=>Qi(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const a=wh[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const wh={data:zl,props:Cl,emits:Cl,methods:Xr,computed:Xr,beforeCreate:Ge,created:Ge,beforeMount:Ge,mounted:Ge,beforeUpdate:Ge,updated:Ge,beforeDestroy:Ge,beforeUnmount:Ge,destroyed:Ge,unmounted:Ge,activated:Ge,deactivated:Ge,errorCaptured:Ge,serverPrefetch:Ge,components:Xr,directives:Xr,watch:kh,provide:zl,inject:Sh};function zl(t,e){return e?t?function(){return De(q(t)?t.call(this,this):t,q(e)?e.call(this,this):e)}:e:t}function Sh(t,e){return Xr(io(t),io(e))}function io(t){if(J(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Ge(t,e){return t?[...new Set([].concat(t,e))]:e}function Xr(t,e){return t?De(Object.create(null),t,e):e}function Cl(t,e){return t?J(t)&&J(e)?[...new Set([...t,...e])]:De(Object.create(null),wl(t),wl(e??{})):e}function kh(t,e){if(!t)return e;if(!e)return t;const n=De(Object.create(null),t);for(const r in e)n[r]=Ge(t[r],e[r]);return n}function Ol(){return{app:null,config:{isNativeTag:wa,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Th=0;function zh(t,e){return function(r,i=null){q(r)||(r=De({},r)),i!=null&&!pe(i)&&(i=null);const s=Ol(),o=new WeakSet,a=[];let l=!1;const u=s.app={_uid:Th++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:sp,get config(){return s.config},set config(c){},use(c,...f){return o.has(c)||(c&&q(c.install)?(o.add(c),c.install(u,...f)):q(c)&&(o.add(c),c(u,...f))),u},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),u},component(c,f){return f?(s.components[c]=f,u):s.components[c]},directive(c,f){return f?(s.directives[c]=f,u):s.directives[c]},mount(c,f,d){if(!l){const h=u._ceVNode||Fe(r,i);return h.appContext=s,d===!0?d="svg":d===!1&&(d=void 0),t(h,c,d),l=!0,u._container=c,c.__vue_app__=u,ho(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&(Nt(a,u._instance,16),t(null,u._container),delete u._container.__vue_app__)},provide(c,f){return s.provides[c]=f,u},runWithContext(c){const f=yr;yr=u;try{return c()}finally{yr=f}}};return u}}let yr=null;const Ch=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Tt(e)}Modifiers`]||t[`${Ln(e)}Modifiers`];function Oh(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||oe;let i=n;const s=e.startsWith("update:"),o=s&&Ch(r,e.slice(7));o&&(o.trim&&(i=n.map(c=>we(c)?c.trim():c)),o.number&&(i=n.map(ud)));let a,l=r[a=Ns(e)]||r[a=Ns(Tt(e))];!l&&s&&(l=r[a=Ns(Ln(e))]),l&&Nt(l,t,6,i);const u=r[a+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Nt(u,t,6,i)}}const Eh=new WeakMap;function El(t,e,n=!1){const r=n?Eh:e.emitsCache,i=r.get(t);if(i!==void 0)return i;const s=t.emits;let o={},a=!1;if(!q(t)){const l=u=>{const c=El(u,e,!0);c&&(a=!0,De(o,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!s&&!a?(pe(t)&&r.set(t,null),null):(J(s)?s.forEach(l=>o[l]=null):De(o,s),pe(t)&&r.set(t,o),o)}function es(t,e){return!t||!Pi(e)?!1:(e=e.slice(2).replace(/Once$/,""),le(t,e[0].toLowerCase()+e.slice(1))||le(t,Ln(e))||le(t,e))}function V1(){}function $l(t){const{type:e,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:f,data:d,setupState:h,ctx:_,inheritAttrs:p}=t,b=Ji(t);let w,k;try{if(n.shapeFlag&4){const x=i||r,y=x;w=Ht(u.call(y,x,c,f,h,d,_)),k=a}else{const x=e;w=Ht(x.length>1?x(f,{attrs:a,slots:o,emit:l}):x(f,null)),k=e.props?a:$h(a)}}catch(x){Qr.length=0,Hi(x,t,1),w=Fe(Ue)}let T=w;if(k&&p!==!1){const x=Object.keys(k),{shapeFlag:y}=T;x.length&&y&7&&(s&&x.some(Is)&&(k=Ph(k,s)),T=kn(T,k,!1,!0))}return n.dirs&&(T=kn(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&qr(T,n.transition),w=T,Ji(b),w}const $h=t=>{let e;for(const n in t)(n==="class"||n==="style"||Pi(n))&&((e||(e={}))[n]=t[n]);return e},Ph=(t,e)=>{const n={};for(const r in t)(!Is(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function Ah(t,e,n){const{props:r,children:i,component:s}=t,{props:o,children:a,patchFlag:l}=e,u=s.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Pl(r,o,u):!!o;if(l&8){const c=e.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(o[d]!==r[d]&&!es(u,d))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?Pl(r,o,u):!0:!!o;return!1}function Pl(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(e[s]!==t[s]&&!es(n,s))return!0}return!1}function Ih({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const Al={},Il=()=>Object.create(Al),Dl=t=>Object.getPrototypeOf(t)===Al;function Dh(t,e,n,r=!1){const i={},s=Il();t.propsDefaults=Object.create(null),Ml(t,e,i,s);for(const o in t.propsOptions[0])o in i||(i[o]=void 0);n?t.props=r?i:Rd(i):t.type.props?t.props=i:t.props=s,t.attrs=s}function Mh(t,e,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=t,a=ie(i),[l]=t.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=t.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(es(t.emitsOptions,d))continue;const h=e[d];if(l)if(le(s,d))h!==s[d]&&(s[d]=h,u=!0);else{const _=Tt(d);i[_]=so(l,a,_,h,t,!1)}else h!==s[d]&&(s[d]=h,u=!0)}}}else{Ml(t,e,i,s)&&(u=!0);let c;for(const f in a)(!e||!le(e,f)&&((c=Ln(f))===f||!le(e,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(i[f]=so(l,a,f,void 0,t,!0)):delete i[f]);if(s!==a)for(const f in s)(!e||!le(e,f))&&(delete s[f],u=!0)}u&&sn(t.attrs,"set","")}function Ml(t,e,n,r){const[i,s]=t.propsOptions;let o=!1,a;if(e)for(let l in e){if(jr(l))continue;const u=e[l];let c;i&&le(i,c=Tt(l))?!s||!s.includes(c)?n[c]=u:(a||(a={}))[c]=u:es(t.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(s){const l=ie(n),u=a||oe;for(let c=0;c<s.length;c++){const f=s[c];n[f]=so(i,l,f,u[f],t,!le(u,f))}}return o}function so(t,e,n,r,i,s){const o=t[n];if(o!=null){const a=le(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&q(l)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=ni(i);r=u[n]=l.call(null,e),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}o[0]&&(s&&!a?r=!1:o[1]&&(r===""||r===Ln(n))&&(r=!0))}return r}const Nh=new WeakMap;function Nl(t,e,n=!1){const r=n?Nh:e.propsCache,i=r.get(t);if(i)return i;const s=t.props,o={},a=[];let l=!1;if(!q(t)){const c=f=>{l=!0;const[d,h]=Nl(f,e,!0);De(o,d),h&&a.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!s&&!l)return pe(t)&&r.set(t,cr),cr;if(J(s))for(let c=0;c<s.length;c++){const f=Tt(s[c]);Rl(f)&&(o[f]=oe)}else if(s)for(const c in s){const f=Tt(c);if(Rl(f)){const d=s[c],h=o[f]=J(d)||q(d)?{type:d}:De({},d),_=h.type;let p=!1,b=!0;if(J(_))for(let w=0;w<_.length;++w){const k=_[w],T=q(k)&&k.name;if(T==="Boolean"){p=!0;break}else T==="String"&&(b=!1)}else p=q(_)&&_.name==="Boolean";h[0]=p,h[1]=b,(p||le(h,"default"))&&a.push(f)}}const u=[o,a];return pe(t)&&r.set(t,u),u}function Rl(t){return t[0]!=="$"&&!jr(t)}const oo=t=>t==="_"||t==="_ctx"||t==="$stable",ao=t=>J(t)?t.map(Ht):[Ht(t)],Rh=(t,e,n)=>{if(e._n)return e;const r=Rt((...i)=>ao(e(...i)),n);return r._c=!1,r},Fl=(t,e,n)=>{const r=t._ctx;for(const i in t){if(oo(i))continue;const s=t[i];if(q(s))e[i]=Rh(i,s,r);else if(s!=null){const o=ao(s);e[i]=()=>o}}},Zl=(t,e)=>{const n=ao(e);t.slots.default=()=>n},Ll=(t,e,n)=>{for(const r in e)(n||!oo(r))&&(t[r]=e[r])},Fh=(t,e,n)=>{const r=t.slots=Il();if(t.vnode.shapeFlag&32){const i=e._;i?(Ll(r,e,n),n&&Ca(r,"_",i,!0)):Fl(e,r)}else e&&Zl(t,e)},Zh=(t,e,n)=>{const{vnode:r,slots:i}=t;let s=!0,o=oe;if(r.shapeFlag&32){const a=e._;a?n&&a===1?s=!1:Ll(i,e,n):(s=!e.$stable,Fl(e,i)),o=e}else e&&(Zl(t,e),o={default:1});if(s)for(const a in i)!oo(a)&&o[a]==null&&delete i[a]},ht=Vh;function Lh(t){return jh(t)}function jh(t,e){const n=Mi();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=Zt,insertStaticContent:_}=t,p=(m,g,C,R=null,A=null,I=null,L=void 0,Z=null,F=!!g.dynamicChildren)=>{if(m===g)return;m&&!Kn(m,g)&&(R=As(m),Ne(m,A,I,!0),m=null),g.patchFlag===-2&&(F=!1,g.dynamicChildren=null);const{type:M,ref:W,shapeFlag:j}=g;switch(M){case ts:b(m,g,C,R);break;case Ue:w(m,g,C,R);break;case ns:m==null&&k(g,C,R,L);break;case Ee:O(m,g,C,R,A,I,L,Z,F);break;default:j&1?y(m,g,C,R,A,I,L,Z,F):j&6?B(m,g,C,R,A,I,L,Z,F):(j&64||j&128)&&M.process(m,g,C,R,A,I,L,Z,F,Ei)}W!=null&&A?Yr(W,m&&m.ref,I,g||m,!g):W==null&&m&&m.ref!=null&&Yr(m.ref,null,I,m,!0)},b=(m,g,C,R)=>{if(m==null)r(g.el=a(g.children),C,R);else{const A=g.el=m.el;g.children!==m.children&&u(A,g.children)}},w=(m,g,C,R)=>{m==null?r(g.el=l(g.children||""),C,R):g.el=m.el},k=(m,g,C,R)=>{[m.el,m.anchor]=_(m.children,g,C,R,m.el,m.anchor)},T=({el:m,anchor:g},C,R)=>{let A;for(;m&&m!==g;)A=d(m),r(m,C,R),m=A;r(g,C,R)},x=({el:m,anchor:g})=>{let C;for(;m&&m!==g;)C=d(m),i(m),m=C;i(g)},y=(m,g,C,R,A,I,L,Z,F)=>{if(g.type==="svg"?L="svg":g.type==="math"&&(L="mathml"),m==null)E(g,C,R,A,I,L,Z,F);else{const M=m.el&&m.el._isVueCE?m.el:null;try{M&&M._beginPatch(),v(m,g,A,I,L,Z,F)}finally{M&&M._endPatch()}}},E=(m,g,C,R,A,I,L,Z)=>{let F,M;const{props:W,shapeFlag:j,transition:H,dirs:K}=m;if(F=m.el=o(m.type,I,W&&W.is,W),j&8?c(F,m.children):j&16&&D(m.children,F,null,R,A,lo(m,I),L,Z),K&&Vn(m,null,R,"created"),P(F,m,m.scopeId,L,R),W){for(const ve in W)ve!=="value"&&!jr(ve)&&s(F,ve,null,W[ve],I,R);"value"in W&&s(F,"value",null,W.value,I),(M=W.onVnodeBeforeMount)&&Wt(M,R,m)}K&&Vn(m,null,R,"beforeMount");const re=Uh(A,H);re&&H.beforeEnter(F),r(F,g,C),((M=W&&W.onVnodeMounted)||re||K)&&ht(()=>{M&&Wt(M,R,m),re&&H.enter(F),K&&Vn(m,null,R,"mounted")},A)},P=(m,g,C,R,A)=>{if(C&&h(m,C),R)for(let I=0;I<R.length;I++)h(m,R[I]);if(A){let I=A.subTree;if(g===I||Hl(I.type)&&(I.ssContent===g||I.ssFallback===g)){const L=A.vnode;P(m,L,L.scopeId,L.slotScopeIds,A.parent)}}},D=(m,g,C,R,A,I,L,Z,F=0)=>{for(let M=F;M<m.length;M++){const W=m[M]=Z?Tn(m[M]):Ht(m[M]);p(null,W,g,C,R,A,I,L,Z)}},v=(m,g,C,R,A,I,L)=>{const Z=g.el=m.el;let{patchFlag:F,dynamicChildren:M,dirs:W}=g;F|=m.patchFlag&16;const j=m.props||oe,H=g.props||oe;let K;if(C&&Jn(C,!1),(K=H.onVnodeBeforeUpdate)&&Wt(K,C,g,m),W&&Vn(g,m,C,"beforeUpdate"),C&&Jn(C,!0),(j.innerHTML&&H.innerHTML==null||j.textContent&&H.textContent==null)&&c(Z,""),M?S(m.dynamicChildren,M,Z,C,R,lo(g,A),I):L||te(m,g,Z,null,C,R,lo(g,A),I,!1),F>0){if(F&16)N(Z,j,H,C,A);else if(F&2&&j.class!==H.class&&s(Z,"class",null,H.class,A),F&4&&s(Z,"style",j.style,H.style,A),F&8){const re=g.dynamicProps;for(let ve=0;ve<re.length;ve++){const ue=re[ve],ft=j[ue],dt=H[ue];(dt!==ft||ue==="value")&&s(Z,ue,ft,dt,A,C)}}F&1&&m.children!==g.children&&c(Z,g.children)}else!L&&M==null&&N(Z,j,H,C,A);((K=H.onVnodeUpdated)||W)&&ht(()=>{K&&Wt(K,C,g,m),W&&Vn(g,m,C,"updated")},R)},S=(m,g,C,R,A,I,L)=>{for(let Z=0;Z<g.length;Z++){const F=m[Z],M=g[Z],W=F.el&&(F.type===Ee||!Kn(F,M)||F.shapeFlag&198)?f(F.el):C;p(F,M,W,null,R,A,I,L,!0)}},N=(m,g,C,R,A)=>{if(g!==C){if(g!==oe)for(const I in g)!jr(I)&&!(I in C)&&s(m,I,g[I],null,A,R);for(const I in C){if(jr(I))continue;const L=C[I],Z=g[I];L!==Z&&I!=="value"&&s(m,I,Z,L,A,R)}"value"in C&&s(m,"value",g.value,C.value,A)}},O=(m,g,C,R,A,I,L,Z,F)=>{const M=g.el=m?m.el:a(""),W=g.anchor=m?m.anchor:a("");let{patchFlag:j,dynamicChildren:H,slotScopeIds:K}=g;K&&(Z=Z?Z.concat(K):K),m==null?(r(M,C,R),r(W,C,R),D(g.children||[],C,W,A,I,L,Z,F)):j>0&&j&64&&H&&m.dynamicChildren&&m.dynamicChildren.length===H.length?(S(m.dynamicChildren,H,C,A,I,L,Z),(g.key!=null||A&&g===A.subTree)&&jl(m,g,!0)):te(m,g,C,W,A,I,L,Z,F)},B=(m,g,C,R,A,I,L,Z,F)=>{g.slotScopeIds=Z,m==null?g.shapeFlag&512?A.ctx.activate(g,C,R,L,F):Y(g,C,R,A,I,L,F):se(m,g,F)},Y=(m,g,C,R,A,I,L)=>{const Z=m.component=Gh(m,R,A);if(Yi(m)&&(Z.ctx.renderer=Ei),Xh(Z,!1,L),Z.asyncDep){if(A&&A.registerDep(Z,Q,L),!m.el){const F=Z.subTree=Fe(Ue);w(null,F,g,C),m.placeholder=F.el}}else Q(Z,m,g,C,A,I,L)},se=(m,g,C)=>{const R=g.component=m.component;if(Ah(m,g,C))if(R.asyncDep&&!R.asyncResolved){G(R,g,C);return}else R.next=g,R.update();else g.el=m.el,R.vnode=g},Q=(m,g,C,R,A,I,L)=>{const Z=()=>{if(m.isMounted){let{next:j,bu:H,u:K,parent:re,vnode:ve}=m;{const tn=Ul(m);if(tn){j&&(j.el=ve.el,G(m,j,L)),tn.asyncDep.then(()=>{m.isUnmounted||Z()});return}}let ue=j,ft;Jn(m,!1),j?(j.el=ve.el,G(m,j,L)):j=ve,H&&Rs(H),(ft=j.props&&j.props.onVnodeBeforeUpdate)&&Wt(ft,re,j,ve),Jn(m,!0);const dt=$l(m),en=m.subTree;m.subTree=dt,p(en,dt,f(en.el),As(en),m,A,I),j.el=dt.el,ue===null&&Ih(m,dt.el),K&&ht(K,A),(ft=j.props&&j.props.onVnodeUpdated)&&ht(()=>Wt(ft,re,j,ve),A)}else{let j;const{el:H,props:K}=g,{bm:re,m:ve,parent:ue,root:ft,type:dt}=m,en=gr(g);Jn(m,!1),re&&Rs(re),!en&&(j=K&&K.onVnodeBeforeMount)&&Wt(j,ue,g),Jn(m,!0);{ft.ce&&ft.ce._def.shadowRoot!==!1&&ft.ce._injectChildStyle(dt);const tn=m.subTree=$l(m);p(null,tn,C,R,m,A,I),g.el=tn.el}if(ve&&ht(ve,A),!en&&(j=K&&K.onVnodeMounted)){const tn=g;ht(()=>Wt(j,ue,tn),A)}(g.shapeFlag&256||ue&&gr(ue.vnode)&&ue.vnode.shapeFlag&256)&&m.a&&ht(m.a,A),m.isMounted=!0,g=C=R=null}};m.scope.on();const F=m.effect=new Aa(Z);m.scope.off();const M=m.update=F.run.bind(F),W=m.job=F.runIfDirty.bind(F);W.i=m,W.id=m.uid,F.scheduler=()=>Xs(W),Jn(m,!0),M()},G=(m,g,C)=>{g.component=m;const R=m.vnode.props;m.vnode=g,m.next=null,Mh(m,g.props,R,C),Zh(m,g.children,C),jt(),tl(m),Ut()},te=(m,g,C,R,A,I,L,Z,F=!1)=>{const M=m&&m.children,W=m?m.shapeFlag:0,j=g.children,{patchFlag:H,shapeFlag:K}=g;if(H>0){if(H&128){Qt(M,j,C,R,A,I,L,Z,F);return}else if(H&256){It(M,j,C,R,A,I,L,Z,F);return}}K&8?(W&16&&Oi(M,A,I),j!==M&&c(C,j)):W&16?K&16?Qt(M,j,C,R,A,I,L,Z,F):Oi(M,A,I,!0):(W&8&&c(C,""),K&16&&D(j,C,R,A,I,L,Z,F))},It=(m,g,C,R,A,I,L,Z,F)=>{m=m||cr,g=g||cr;const M=m.length,W=g.length,j=Math.min(M,W);let H;for(H=0;H<j;H++){const K=g[H]=F?Tn(g[H]):Ht(g[H]);p(m[H],K,C,null,A,I,L,Z,F)}M>W?Oi(m,A,I,!0,!1,j):D(g,C,R,A,I,L,Z,F,j)},Qt=(m,g,C,R,A,I,L,Z,F)=>{let M=0;const W=g.length;let j=m.length-1,H=W-1;for(;M<=j&&M<=H;){const K=m[M],re=g[M]=F?Tn(g[M]):Ht(g[M]);if(Kn(K,re))p(K,re,C,null,A,I,L,Z,F);else break;M++}for(;M<=j&&M<=H;){const K=m[j],re=g[H]=F?Tn(g[H]):Ht(g[H]);if(Kn(K,re))p(K,re,C,null,A,I,L,Z,F);else break;j--,H--}if(M>j){if(M<=H){const K=H+1,re=K<W?g[K].el:R;for(;M<=H;)p(null,g[M]=F?Tn(g[M]):Ht(g[M]),C,re,A,I,L,Z,F),M++}}else if(M>H)for(;M<=j;)Ne(m[M],A,I,!0),M++;else{const K=M,re=M,ve=new Map;for(M=re;M<=H;M++){const kt=g[M]=F?Tn(g[M]):Ht(g[M]);kt.key!=null&&ve.set(kt.key,M)}let ue,ft=0;const dt=H-re+1;let en=!1,tn=0;const $i=new Array(dt);for(M=0;M<dt;M++)$i[M]=0;for(M=K;M<=j;M++){const kt=m[M];if(ft>=dt){Ne(kt,A,I,!0);continue}let nn;if(kt.key!=null)nn=ve.get(kt.key);else for(ue=re;ue<=H;ue++)if($i[ue-re]===0&&Kn(kt,g[ue])){nn=ue;break}nn===void 0?Ne(kt,A,I,!0):($i[nn-re]=M+1,nn>=tn?tn=nn:en=!0,p(kt,g[nn],C,null,A,I,L,Z,F),ft++)}const rd=en?Bh($i):cr;for(ue=rd.length-1,M=dt-1;M>=0;M--){const kt=re+M,nn=g[kt],id=g[kt+1],sd=kt+1<W?id.el||Vl(id):R;$i[M]===0?p(null,nn,C,sd,A,I,L,Z,F):en&&(ue<0||M!==rd[ue]?St(nn,C,sd,2):ue--)}}},St=(m,g,C,R,A=null)=>{const{el:I,type:L,transition:Z,children:F,shapeFlag:M}=m;if(M&6){St(m.component.subTree,g,C,R);return}if(M&128){m.suspense.move(g,C,R);return}if(M&64){L.move(m,g,C,Ei);return}if(L===Ee){r(I,g,C);for(let j=0;j<F.length;j++)St(F[j],g,C,R);r(m.anchor,g,C);return}if(L===ns){T(m,g,C);return}if(R!==2&&M&1&&Z)if(R===0)Z.beforeEnter(I),r(I,g,C),ht(()=>Z.enter(I),A);else{const{leave:j,delayLeave:H,afterLeave:K}=Z,re=()=>{m.ctx.isUnmounted?i(I):r(I,g,C)},ve=()=>{I._isLeaving&&I[ln](!0),j(I,()=>{re(),K&&K()})};H?H(I,re,ve):ve()}else r(I,g,C)},Ne=(m,g,C,R=!1,A=!1)=>{const{type:I,props:L,ref:Z,children:F,dynamicChildren:M,shapeFlag:W,patchFlag:j,dirs:H,cacheIndex:K}=m;if(j===-2&&(A=!1),Z!=null&&(jt(),Yr(Z,null,C,m,!0),Ut()),K!=null&&(g.renderCache[K]=void 0),W&256){g.ctx.deactivate(m);return}const re=W&1&&H,ve=!gr(m);let ue;if(ve&&(ue=L&&L.onVnodeBeforeUnmount)&&Wt(ue,g,m),W&6)vn(m.component,C,R);else{if(W&128){m.suspense.unmount(C,R);return}re&&Vn(m,null,g,"beforeUnmount"),W&64?m.type.remove(m,g,C,Ei,R):M&&!M.hasOnce&&(I!==Ee||j>0&&j&64)?Oi(M,g,C,!1,!0):(I===Ee&&j&384||!A&&W&16)&&Oi(F,g,C),R&&Ci(m)}(ve&&(ue=L&&L.onVnodeUnmounted)||re)&&ht(()=>{ue&&Wt(ue,g,m),re&&Vn(m,null,g,"unmounted")},C)},Ci=m=>{const{type:g,el:C,anchor:R,transition:A}=m;if(g===Ee){Ft(C,R);return}if(g===ns){x(m);return}const I=()=>{i(C),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(m.shapeFlag&1&&A&&!A.persisted){const{leave:L,delayLeave:Z}=A,F=()=>L(C,I);Z?Z(m.el,I,F):F()}else I()},Ft=(m,g)=>{let C;for(;m!==g;)C=d(m),i(m),m=C;i(g)},vn=(m,g,C)=>{const{bum:R,scope:A,job:I,subTree:L,um:Z,m:F,a:M}=m;Bl(F),Bl(M),R&&Rs(R),A.stop(),I&&(I.flags|=8,Ne(L,m,g,C)),Z&&ht(Z,g),ht(()=>{m.isUnmounted=!0},g)},Oi=(m,g,C,R=!1,A=!1,I=0)=>{for(let L=I;L<m.length;L++)Ne(m[L],g,C,R,A)},As=m=>{if(m.shapeFlag&6)return As(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const g=d(m.anchor||m.el),C=g&&g[rh];return C?d(C):g};let xa=!1;const nd=(m,g,C)=>{let R;m==null?g._vnode&&(Ne(g._vnode,null,null,!0),R=g._vnode.component):p(g._vnode||null,m,g,null,null,null,C),g._vnode=m,xa||(xa=!0,tl(R),nl(),xa=!1)},Ei={p,um:Ne,m:St,r:Ci,mt:Y,mc:D,pc:te,pbc:S,n:As,o:t};return{render:nd,hydrate:void 0,createApp:zh(nd)}}function lo({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Jn({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Uh(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function jl(t,e,n=!1){const r=t.children,i=e.children;if(J(r)&&J(i))for(let s=0;s<r.length;s++){const o=r[s];let a=i[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[s]=Tn(i[s]),a.el=o.el),!n&&a.patchFlag!==-2&&jl(o,a)),a.type===ts&&(a.patchFlag!==-1?a.el=o.el:a.__elIndex=s+(t.type===Ee?1:0)),a.type===Ue&&!a.el&&(a.el=o.el)}}function Bh(t){const e=t.slice(),n=[0];let r,i,s,o,a;const l=t.length;for(r=0;r<l;r++){const u=t[r];if(u!==0){if(i=n[n.length-1],t[i]<u){e[r]=i,n.push(r);continue}for(s=0,o=n.length-1;s<o;)a=s+o>>1,t[n[a]]<u?s=a+1:o=a;u<t[n[s]]&&(s>0&&(e[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=e[o];return n}function Ul(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Ul(e)}function Bl(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function Vl(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?Vl(e.subTree):null}const Hl=t=>t.__isSuspense;function Vh(t,e){e&&e.pendingBranch?J(t)?e.effects.push(...t):e.effects.push(t):Xd(t)}const Ee=Symbol.for("v-fgt"),ts=Symbol.for("v-txt"),Ue=Symbol.for("v-cmt"),ns=Symbol.for("v-stc"),Qr=[];let pt=null;function V(t=!1){Qr.push(pt=t?null:[])}function Hh(){Qr.pop(),pt=Qr[Qr.length-1]||null}let ei=1;function rs(t,e=!1){ei+=t,t<0&&pt&&e&&(pt.hasOnce=!0)}function Wl(t){return t.dynamicChildren=ei>0?pt||cr:null,Hh(),ei>0&&pt&&pt.push(t),t}function ee(t,e,n,r,i,s){return Wl($(t,e,n,r,i,s,!0))}function Xe(t,e,n,r,i){return Wl(Fe(t,e,n,r,i,!0))}function ti(t){return t?t.__v_isVNode===!0:!1}function Kn(t,e){return t.type===e.type&&t.key===e.key}const Jl=({key:t})=>t??null,is=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?we(t)||Re(t)||q(t)?{i:Ye,r:t,k:e,f:!!n}:t:null);function $(t,e=null,n=null,r=0,i=null,s=t===Ee?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Jl(e),ref:e&&is(e),scopeId:il,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ye};return a?(co(l,n),s&128&&t.normalize(l)):n&&(l.shapeFlag|=we(n)?8:16),ei>0&&!o&&pt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&pt.push(l),l}const Fe=Wh;function Wh(t,e=null,n=null,r=0,i=null,s=!1){if((!t||t===vl)&&(t=Ue),ti(t)){const a=kn(t,e,!0);return n&&co(a,n),ei>0&&!s&&pt&&(a.shapeFlag&6?pt[pt.indexOf(t)]=a:pt.push(a)),a.patchFlag=-2,a}if(ip(t)&&(t=t.__vccOpts),e){e=Jh(e);let{class:a,style:l}=e;a&&!we(a)&&(e.class=X(a)),pe(l)&&(Ys(l)&&!J(l)&&(l=De({},l)),e.style=Lt(l))}const o=we(t)?1:Hl(t)?128:al(t)?64:pe(t)?4:q(t)?2:0;return $(t,e,n,r,i,o,s,!0)}function Jh(t){return t?Ys(t)||Dl(t)?De({},t):t:null}function kn(t,e,n=!1,r=!1){const{props:i,ref:s,patchFlag:o,children:a,transition:l}=t,u=e?uo(i||{},e):i,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&Jl(u),ref:e&&e.ref?n&&s?J(s)?s.concat(is(e)):[s,is(e)]:is(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ee?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&kn(t.ssContent),ssFallback:t.ssFallback&&kn(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&qr(c,l.clone(c)),c}function Kl(t=" ",e=0){return Fe(ts,null,t,e)}function Kh(t,e){const n=Fe(ns,null,t);return n.staticCount=e,n}function Qe(t="",e=!1){return e?(V(),Xe(Ue,null,t)):Fe(Ue,null,t)}function Ht(t){return t==null||typeof t=="boolean"?Fe(Ue):J(t)?Fe(Ee,null,t.slice()):ti(t)?Tn(t):Fe(ts,null,String(t))}function Tn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:kn(t)}function co(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(J(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),co(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!Dl(e)?e._ctx=Ye:i===3&&Ye&&(Ye.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else q(e)?(e={default:e,_ctx:Ye},n=32):(e=String(e),r&64?(n=16,e=[Kl(e)]):n=8);t.children=e,t.shapeFlag|=n}function uo(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const i in r)if(i==="class")e.class!==r.class&&(e.class=X([e.class,r.class]));else if(i==="style")e.style=Lt([e.style,r.style]);else if(Pi(i)){const s=e[i],o=r[i];o&&s!==o&&!(J(s)&&s.includes(o))&&(e[i]=s?[].concat(s,o):o)}else i!==""&&(e[i]=r[i])}return e}function Wt(t,e,n,r=null){Nt(t,e,7,[n,r])}const qh=Ol();let Yh=0;function Gh(t,e,n){const r=t.type,i=(e?e.appContext:t.appContext)||qh,s={uid:Yh++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new gd(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Nl(r,i),emitsOptions:El(r,i),emit:null,emitted:null,propsDefaults:oe,inheritAttrs:r.inheritAttrs,ctx:oe,data:oe,props:oe,attrs:oe,slots:oe,refs:oe,setupState:oe,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=e?e.root:s,s.emit=Oh.bind(null,s),t.ce&&t.ce(s),s}let Be=null;const ql=()=>Be||Ye;let ss,fo;{const t=Mi(),e=(n,r)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(r),s=>{i.length>1?i.forEach(o=>o(s)):i[0](s)}};ss=e("__VUE_INSTANCE_SETTERS__",n=>Be=n),fo=e("__VUE_SSR_SETTERS__",n=>ri=n)}const ni=t=>{const e=Be;return ss(t),t.scope.on(),()=>{t.scope.off(),ss(e)}},Yl=()=>{Be&&Be.scope.off(),ss(null)};function Gl(t){return t.vnode.shapeFlag&4}let ri=!1;function Xh(t,e=!1,n=!1){e&&fo(e);const{props:r,children:i}=t.vnode,s=Gl(t);Dh(t,r,s,e),Fh(t,i,n||e);const o=s?Qh(t,e):void 0;return e&&fo(!1),o}function Qh(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,yh);const{setup:r}=n;if(r){jt();const i=t.setupContext=r.length>1?tp(t):null,s=ni(t),o=hr(r,t,0,[t.props,i]),a=ka(o);if(Ut(),s(),(a||t.sp)&&!gr(t)&&pl(t),a){if(o.then(Yl,Yl),e)return o.then(l=>{Xl(t,l)}).catch(l=>{Hi(l,t,0)});t.asyncDep=o}else Xl(t,o)}else Ql(t)}function Xl(t,e,n){q(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:pe(e)&&(t.setupState=Ya(e)),Ql(t)}function Ql(t,e,n){const r=t.type;t.render||(t.render=r.render||Zt);{const i=ni(t);jt();try{bh(t)}finally{Ut(),i()}}}const ep={get(t,e){return je(t,"get",""),t[e]}};function tp(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,ep),slots:t.slots,emit:t.emit,expose:e}}function ho(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Ya(Fd(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Gr)return Gr[n](t)},has(e,n){return n in e||n in Gr}})):t.proxy}const np=/(?:^|[-_])\w/g,rp=t=>t.replace(np,e=>e.toUpperCase()).replace(/[-_]/g,"");function ec(t,e=!0){return q(t)?t.displayName||t.name:t.name||e&&t.__name}function tc(t,e,n=!1){let r=ec(e);if(!r&&e.__file){const i=e.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&t){const i=s=>{for(const o in s)if(s[o]===e)return o};r=i(t.components)||t.parent&&i(t.parent.type.components)||i(t.appContext.components)}return r?rp(r):n?"App":"Anonymous"}function ip(t){return q(t)&&"__vccOpts"in t}const Ce=(t,e)=>Bd(t,e,ri);function me(t,e,n){try{rs(-1);const r=arguments.length;return r===2?pe(e)&&!J(e)?ti(e)?Fe(t,null,[e]):Fe(t,e):Fe(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ti(n)&&(n=[n]),Fe(t,e,n))}finally{rs(1)}}const sp="3.5.26";/**
17
17
  * @vue/runtime-dom v3.5.26
18
18
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
19
  * @license MIT
20
- **/let Dl;const dh=typeof window<"u"&&window.trustedTypes;if(dh)try{Dl=dh.createPolicy("vue",{createHTML:e=>e})}catch{}const ph=Dl?e=>Dl.createHTML(e):e=>e,R0="http://www.w3.org/2000/svg",L0="http://www.w3.org/1998/Math/MathML",Nn=typeof document<"u"?document:null,gh=Nn&&Nn.createElement("template"),F0={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const s=t==="svg"?Nn.createElementNS(R0,e):t==="mathml"?Nn.createElementNS(L0,e):n?Nn.createElement(e,{is:n}):Nn.createElement(e);return e==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:e=>Nn.createTextNode(e),createComment:e=>Nn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,s,r){const o=n?n.previousSibling:t.lastChild;if(s&&(s===r||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===r||!(s=s.nextSibling)););else{gh.innerHTML=ph(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const a=gh.content;if(i==="svg"||i==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ci="transition",pr="animation",gr=Symbol("_vtc"),mh={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},$0=qt({},yf,mh),_h=(e=>(e.displayName="Transition",e.props=$0,e))((e,{slots:t})=>St(Rb,N0(e),t)),ji=(e,t=[])=>{Q(e)?e.forEach(n=>n(...t)):e&&e(...t)},bh=e=>e?Q(e)?e.some(t=>t.length>1):e.length>1:!1;function N0(e){const t={};for(const O in e)O in mh||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:i,duration:s,enterFromClass:r=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=e,g=B0(s),p=g&&g[0],m=g&&g[1],{onBeforeEnter:_,onEnter:y,onEnterCancelled:w,onLeave:x,onLeaveCancelled:b,onBeforeAppear:k=_,onAppear:M=y,onAppearCancelled:P=w}=t,v=(O,j,K,U)=>{O._enterCancelled=U,Vi(O,j?u:a),Vi(O,j?c:o),K&&K()},C=(O,j)=>{O._isLeaving=!1,Vi(O,f),Vi(O,d),Vi(O,h),j&&j()},A=O=>(j,K)=>{const U=O?M:y,H=()=>v(j,O,K);ji(U,[j,H]),yh(()=>{Vi(j,O?l:r),Bn(j,O?u:a),bh(U)||xh(j,i,p,H)})};return qt(t,{onBeforeEnter(O){ji(_,[O]),Bn(O,r),Bn(O,o)},onBeforeAppear(O){ji(k,[O]),Bn(O,l),Bn(O,c)},onEnter:A(!1),onAppear:A(!0),onLeave(O,j){O._isLeaving=!0;const K=()=>C(O,j);Bn(O,f),O._enterCancelled?(Bn(O,h),Sh(O)):(Sh(O),Bn(O,h)),yh(()=>{O._isLeaving&&(Vi(O,f),Bn(O,d),bh(x)||xh(O,i,m,K))}),ji(x,[O,K])},onEnterCancelled(O){v(O,!1,void 0,!0),ji(w,[O])},onAppearCancelled(O){v(O,!0,void 0,!0),ji(P,[O])},onLeaveCancelled(O){C(O),ji(b,[O])}})}function B0(e){if(e==null)return null;if(vt(e))return[El(e.enter),El(e.leave)];{const t=El(e);return[t,t]}}function El(e){return B_(e)}function Bn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[gr]||(e[gr]=new Set)).add(t)}function Vi(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[gr];n&&(n.delete(t),n.size||(e[gr]=void 0))}function yh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let j0=0;function xh(e,t,n,i){const s=e._endId=++j0,r=()=>{s===e._endId&&i()};if(n!=null)return setTimeout(r,n);const{type:o,timeout:a,propCount:l}=V0(e,t);if(!o)return i();const c=o+"end";let u=0;const f=()=>{e.removeEventListener(c,h),r()},h=d=>{d.target===e&&++u>=l&&f()};setTimeout(()=>{u<l&&f()},a+1),e.addEventListener(c,h)}function V0(e,t){const n=window.getComputedStyle(e),i=g=>(n[g]||"").split(", "),s=i(`${ci}Delay`),r=i(`${ci}Duration`),o=vh(s,r),a=i(`${pr}Delay`),l=i(`${pr}Duration`),c=vh(a,l);let u=null,f=0,h=0;t===ci?o>0&&(u=ci,f=o,h=r.length):t===pr?c>0&&(u=pr,f=c,h=l.length):(f=Math.max(o,c),u=f>0?o>c?ci:pr:null,h=u?u===ci?r.length:l.length:0);const d=u===ci&&/\b(?:transform|all)(?:,|$)/.test(i(`${ci}Property`).toString());return{type:u,timeout:f,propCount:h,hasTransform:d}}function vh(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>wh(n)+wh(e[i])))}function wh(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Sh(e){return(e?e.ownerDocument:document).body.offsetHeight}function W0(e,t,n){const i=e[gr];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const kh=Symbol("_vod"),H0=Symbol("_vsh"),Z0=Symbol(""),U0=/(?:^|;)\s*display\s*:/;function Y0(e,t,n){const i=e.style,s=It(n);let r=!1;if(n&&!s){if(t)if(It(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&jo(i,a,"")}else for(const o in t)n[o]==null&&jo(i,o,"");for(const o in n)o==="display"&&(r=!0),jo(i,o,n[o])}else if(s){if(t!==n){const o=i[Z0];o&&(n+=";"+o),i.cssText=n,r=U0.test(n)}}else t&&e.removeAttribute("style");kh in e&&(e[kh]=r?i.display:"",e[H0]&&(i.display="none"))}const Th=/\s*!important$/;function jo(e,t,n){if(Q(n))n.forEach(i=>jo(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=K0(e,t);Th.test(n)?e.setProperty(Di(i),n.replace(Th,""),"important"):e[i]=n}}const Mh=["Webkit","Moz","ms"],Il={};function K0(e,t){const n=Il[t];if(n)return n;let i=Xe(t);if(i!=="filter"&&i in e)return Il[t]=i;i=go(i);for(let s=0;s<Mh.length;s++){const r=Mh[s]+i;if(r in e)return Il[t]=r}return t}const Ch="http://www.w3.org/1999/xlink";function Ph(e,t,n,i,s,r=Z_(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ch,t.slice(6,t.length)):e.setAttributeNS(Ch,t,n):n==null||r&&!Nu(n)?e.removeAttribute(t):e.setAttribute(t,r?"":En(n)?String(n):n)}function Oh(e,t,n,i,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ph(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Nu(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function X0(e,t,n,i){e.addEventListener(t,n,i)}function q0(e,t,n,i){e.removeEventListener(t,n,i)}const Ah=Symbol("_vei");function J0(e,t,n,i,s=null){const r=e[Ah]||(e[Ah]={}),o=r[t];if(i&&o)o.value=i;else{const[a,l]=G0(t);if(i){const c=r[t]=ey(i,s);X0(e,a,c,l)}else o&&(q0(e,a,o,l),r[t]=void 0)}}const zh=/(?:Once|Passive|Capture)$/;function G0(e){let t;if(zh.test(e)){t={};let i;for(;i=e.match(zh);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Di(e.slice(2)),t]}let Rl=0;const Q0=Promise.resolve(),ty=()=>Rl||(Q0.then(()=>Rl=0),Rl=Date.now());function ey(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;ln(ny(i,n.value),t,5,[i])};return n.value=e,n.attached=ty(),n}function ny(e,t){if(Q(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>s=>!s._stopped&&i&&i(s))}else return t}const Dh=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,iy=(e,t,n,i,s,r)=>{const o=s==="svg";t==="class"?W0(e,i,o):t==="style"?Y0(e,n,i):fo(t)?Ga(t)||J0(e,t,n,i,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):sy(e,t,i,o))?(Oh(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ph(e,t,i,o,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!It(i))?Oh(e,Xe(t),i,r,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Ph(e,t,i,o))};function sy(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Dh(t)&&et(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Dh(t)&&It(n)?!1:t in e}const ry=["ctrl","shift","alt","meta"],oy={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ry.some(n=>e[`${n}Key`]&&!t.includes(n))},Eh=(e,t)=>{const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=(s,...r)=>{for(let o=0;o<t.length;o++){const a=oy[t[o]];if(a&&a(s,t))return}return e(s,...r)})},ay=qt({patchProp:iy},F0);let Ih;function ly(){return Ih||(Ih=g0(ay))}const Rh=(...e)=>{const t=ly().createApp(...e),{mount:n}=t;return t.mount=i=>{const s=uy(i);if(!s)return;const r=t._component;!et(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,cy(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function cy(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function uy(e){return It(e)?document.querySelector(e):e}const Lh={"i:s":"star","i:u":"users","i:c":"check","i:a":"arrow-right","c:p":"#6366f1","c:s":"#10b981","c:d":"#ef4444","v:g":"gradient","v:o":"outlined","v:s":"soft"};function fy(e){return e in Lh?Lh[e]:e}function z(e,t,n){function i(a,l){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:l,constr:o,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,l);const c=o.prototype,u=Object.keys(c);for(let f=0;f<u.length;f++){const h=u[f];h in a||(a[h]=c[h].bind(a))}}const s=(n==null?void 0:n.Parent)??Object;class r extends s{}Object.defineProperty(r,"name",{value:e});function o(a){var l;const c=n!=null&&n.Parent?new r:this;i(c,a),(l=c._zod).deferred??(l.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(o,"init",{value:i}),Object.defineProperty(o,Symbol.hasInstance,{value:a=>{var l,c;return n!=null&&n.Parent&&a instanceof n.Parent?!0:(c=(l=a==null?void 0:a._zod)==null?void 0:l.traits)==null?void 0:c.has(e)}}),Object.defineProperty(o,"name",{value:e}),o}class ks extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Fh extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const $h={};function ui(e){return $h}function Nh(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,s])=>t.indexOf(+i)===-1).map(([i,s])=>s)}function Ll(e,t){return typeof t=="bigint"?t.toString():t}function Vo(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Fl(e){return e==null}function $l(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function hy(e,t){const n=(e.toString().split(".")[1]||"").length,i=t.toString();let s=(i.split(".")[1]||"").length;if(s===0&&/\d?e-\d?/.test(i)){const l=i.match(/\d?e-(\d?)/);l!=null&&l[1]&&(s=Number.parseInt(l[1]))}const r=n>s?n:s,o=Number.parseInt(e.toFixed(r).replace(".","")),a=Number.parseInt(t.toFixed(r).replace(".",""));return o%a/10**r}const Bh=Symbol("evaluating");function bt(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==Bh)return i===void 0&&(i=Bh,i=n()),i},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function Wi(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Hi(...e){const t={};for(const n of e){const i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function jh(e){return JSON.stringify(e)}function dy(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Vh="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function mr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const py=Vo(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Ts(e){if(mr(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(mr(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Wh(e){return Ts(e)?{...e}:Array.isArray(e)?[...e]:e}const gy=new Set(["string","number","symbol"]);function Ms(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function fi(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(i._zod.parent=e),i}function Y(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function my(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const _y={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function by(e,t){const n=e._zod.def,i=Hi(e._zod.def,{get shape(){const s={};for(const r in t){if(!(r in n.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&(s[r]=n.shape[r])}return Wi(this,"shape",s),s},checks:[]});return fi(e,i)}function yy(e,t){const n=e._zod.def,i=Hi(e._zod.def,{get shape(){const s={...e._zod.def.shape};for(const r in t){if(!(r in n.shape))throw new Error(`Unrecognized key: "${r}"`);t[r]&&delete s[r]}return Wi(this,"shape",s),s},checks:[]});return fi(e,i)}function xy(e,t){if(!Ts(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const s=Hi(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Wi(this,"shape",r),r},checks:[]});return fi(e,s)}function vy(e,t){if(!Ts(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const i={...e._zod.def.shape,...t};return Wi(this,"shape",i),i},checks:e._zod.def.checks};return fi(e,n)}function wy(e,t){const n=Hi(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return Wi(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return fi(e,n)}function Sy(e,t,n){const i=Hi(t._zod.def,{get shape(){const s=t._zod.def.shape,r={...s};if(n)for(const o in n){if(!(o in s))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(r[o]=e?new e({type:"optional",innerType:s[o]}):s[o])}else for(const o in s)r[o]=e?new e({type:"optional",innerType:s[o]}):s[o];return Wi(this,"shape",r),r},checks:[]});return fi(t,i)}function ky(e,t,n){const i=Hi(t._zod.def,{get shape(){const s=t._zod.def.shape,r={...s};if(n)for(const o in n){if(!(o in r))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(r[o]=new e({type:"nonoptional",innerType:s[o]}))}else for(const o in s)r[o]=new e({type:"nonoptional",innerType:s[o]});return Wi(this,"shape",r),r},checks:[]});return fi(t,i)}function Cs(e,t=0){var n;if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(((n=e.issues[i])==null?void 0:n.continue)!==!0)return!0;return!1}function Ps(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Wo(e){return typeof e=="string"?e:e==null?void 0:e.message}function hi(e,t,n){var s,r,o,a,l,c;const i={...e,path:e.path??[]};if(!e.message){const u=Wo((o=(r=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:r.error)==null?void 0:o.call(r,e))??Wo((a=t==null?void 0:t.error)==null?void 0:a.call(t,e))??Wo((l=n.customError)==null?void 0:l.call(n,e))??Wo((c=n.localeError)==null?void 0:c.call(n,e))??"Invalid input";i.message=u}return delete i.inst,delete i.continue,t!=null&&t.reportInput||delete i.input,i}function Nl(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function _r(...e){const[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}const Hh=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ll,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Zh=z("$ZodError",Hh),Uh=z("$ZodError",Hh,{Parent:Error});function Ty(e,t=n=>n.message){const n={},i=[];for(const s of e.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):i.push(t(s));return{formErrors:i,fieldErrors:n}}function My(e,t=n=>n.message){const n={_errors:[]},i=s=>{for(const r of s.issues)if(r.code==="invalid_union"&&r.errors.length)r.errors.map(o=>i({issues:o}));else if(r.code==="invalid_key")i({issues:r.issues});else if(r.code==="invalid_element")i({issues:r.issues});else if(r.path.length===0)n._errors.push(t(r));else{let o=n,a=0;for(;a<r.path.length;){const l=r.path[a];a===r.path.length-1?(o[l]=o[l]||{_errors:[]},o[l]._errors.push(t(r))):o[l]=o[l]||{_errors:[]},o=o[l],a++}}};return i(e),n}const Bl=e=>(t,n,i,s)=>{const r=i?Object.assign(i,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new ks;if(o.issues.length){const a=new((s==null?void 0:s.Err)??e)(o.issues.map(l=>hi(l,r,ui())));throw Vh(a,s==null?void 0:s.callee),a}return o.value},jl=e=>async(t,n,i,s)=>{const r=i?Object.assign(i,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise&&(o=await o),o.issues.length){const a=new((s==null?void 0:s.Err)??e)(o.issues.map(l=>hi(l,r,ui())));throw Vh(a,s==null?void 0:s.callee),a}return o.value},Ho=e=>(t,n,i)=>{const s=i?{...i,async:!1}:{async:!1},r=t._zod.run({value:n,issues:[]},s);if(r instanceof Promise)throw new ks;return r.issues.length?{success:!1,error:new(e??Zh)(r.issues.map(o=>hi(o,s,ui())))}:{success:!0,data:r.value}},Cy=Ho(Uh),Zo=e=>async(t,n,i)=>{const s=i?Object.assign(i,{async:!0}):{async:!0};let r=t._zod.run({value:n,issues:[]},s);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new e(r.issues.map(o=>hi(o,s,ui())))}:{success:!0,data:r.value}},Py=Zo(Uh),Oy=e=>(t,n,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Bl(e)(t,n,s)},Ay=e=>(t,n,i)=>Bl(e)(t,n,i),zy=e=>async(t,n,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return jl(e)(t,n,s)},Dy=e=>async(t,n,i)=>jl(e)(t,n,i),Ey=e=>(t,n,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ho(e)(t,n,s)},Iy=e=>(t,n,i)=>Ho(e)(t,n,i),Ry=e=>async(t,n,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Zo(e)(t,n,s)},Ly=e=>async(t,n,i)=>Zo(e)(t,n,i),Fy=/^[cC][^\s-]{8,}$/,$y=/^[0-9a-z]+$/,Ny=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,By=/^[0-9a-vA-V]{20}$/,jy=/^[A-Za-z0-9]{27}$/,Vy=/^[a-zA-Z0-9_-]{21}$/,Wy=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Hy=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Yh=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Zy=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Uy="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Yy(){return new RegExp(Uy,"u")}const Ky=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Xy=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,qy=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Jy=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Gy=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Kh=/^[A-Za-z0-9_-]*$/,Qy=/^\+(?:[0-9]){6,14}[0-9]$/,Xh="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",tx=new RegExp(`^${Xh}$`);function qh(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ex(e){return new RegExp(`^${qh(e)}$`)}function nx(e){const t=qh({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${n.join("|")})`;return new RegExp(`^${Xh}T(?:${i})$`)}const ix=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},sx=/^-?\d+$/,rx=/^-?\d+(?:\.\d+)?/,ox=/^(?:true|false)$/i,ax=/^null$/i,lx=/^undefined$/i,cx=/^[^A-Z]*$/,ux=/^[^a-z]*$/,Me=z("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Jh={number:"number",bigint:"bigint",object:"date"},Gh=z("$ZodCheckLessThan",(e,t)=>{Me.init(e,t);const n=Jh[typeof t.value];e._zod.onattach.push(i=>{const s=i._zod.bag,r=(t.inclusive?s.maximum:s.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<r&&(t.inclusive?s.maximum=t.value:s.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Qh=z("$ZodCheckGreaterThan",(e,t)=>{Me.init(e,t);const n=Jh[typeof t.value];e._zod.onattach.push(i=>{const s=i._zod.bag,r=(t.inclusive?s.minimum:s.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>r&&(t.inclusive?s.minimum=t.value:s.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),fx=z("$ZodCheckMultipleOf",(e,t)=>{Me.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):hy(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),hx=z("$ZodCheckNumberFormat",(e,t)=>{var o;Me.init(e,t),t.format=t.format||"float64";const n=(o=t.format)==null?void 0:o.includes("int"),i=n?"int":"number",[s,r]=_y[t.format];e._zod.onattach.push(a=>{const l=a._zod.bag;l.format=t.format,l.minimum=s,l.maximum=r,n&&(l.pattern=sx)}),e._zod.check=a=>{const l=a.value;if(n){if(!Number.isInteger(l)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}l<s&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:s,inclusive:!0,inst:e,continue:!t.abort}),l>r&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:r,inst:e})}}),dx=z("$ZodCheckMaxLength",(e,t)=>{var n;Me.init(e,t),(n=e._zod.def).when??(n.when=i=>{const s=i.value;return!Fl(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const s=i.value;if(s.length<=t.maximum)return;const o=Nl(s);i.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),px=z("$ZodCheckMinLength",(e,t)=>{var n;Me.init(e,t),(n=e._zod.def).when??(n.when=i=>{const s=i.value;return!Fl(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const s=i.value;if(s.length>=t.minimum)return;const o=Nl(s);i.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),gx=z("$ZodCheckLengthEquals",(e,t)=>{var n;Me.init(e,t),(n=e._zod.def).when??(n.when=i=>{const s=i.value;return!Fl(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=i=>{const s=i.value,r=s.length;if(r===t.length)return;const o=Nl(s),a=r>t.length;i.issues.push({origin:o,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Uo=z("$ZodCheckStringFormat",(e,t)=>{var n,i;Me.init(e,t),e._zod.onattach.push(s=>{const r=s._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=s=>{t.pattern.lastIndex=0,!t.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:t.format,input:s.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),mx=z("$ZodCheckRegex",(e,t)=>{Uo.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),_x=z("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=cx),Uo.init(e,t)}),bx=z("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ux),Uo.init(e,t)}),yx=z("$ZodCheckIncludes",(e,t)=>{Me.init(e,t);const n=Ms(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(s=>{const r=s._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(i)}),e._zod.check=s=>{s.value.includes(t.includes,t.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:s.value,inst:e,continue:!t.abort})}}),xx=z("$ZodCheckStartsWith",(e,t)=>{Me.init(e,t);const n=new RegExp(`^${Ms(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),vx=z("$ZodCheckEndsWith",(e,t)=>{Me.init(e,t);const n=new RegExp(`.*${Ms(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}}),wx=z("$ZodCheckOverwrite",(e,t)=>{Me.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Sx{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const i=t.split(`
21
- `).filter(o=>o),s=Math.min(...i.map(o=>o.length-o.trimStart().length)),r=i.map(o=>o.slice(s)).map(o=>" ".repeat(this.indent*2)+o);for(const o of r)this.content.push(o)}compile(){const t=Function,n=this==null?void 0:this.args,s=[...((this==null?void 0:this.content)??[""]).map(r=>` ${r}`)];return new t(...n,s.join(`
22
- `))}}const kx={major:4,minor:2,patch:1},kt=z("$ZodType",(e,t)=>{var s;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=kx;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const r of i)for(const o of r._zod.onattach)o(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),(s=e._zod.deferred)==null||s.push(()=>{e._zod.run=e._zod.parse});else{const r=(a,l,c)=>{let u=Cs(a),f;for(const h of l){if(h._zod.def.when){if(!h._zod.def.when(a))continue}else if(u)continue;const d=a.issues.length,g=h._zod.check(a);if(g instanceof Promise&&(c==null?void 0:c.async)===!1)throw new ks;if(f||g instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await g,a.issues.length!==d&&(u||(u=Cs(a,d)))});else{if(a.issues.length===d)continue;u||(u=Cs(a,d))}}return f?f.then(()=>a):a},o=(a,l,c)=>{if(Cs(a))return a.aborted=!0,a;const u=r(l,i,c);if(u instanceof Promise){if(c.async===!1)throw new ks;return u.then(f=>e._zod.parse(f,c))}return e._zod.parse(u,c)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){const u=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return u instanceof Promise?u.then(f=>o(f,a,l)):o(u,a,l)}const c=e._zod.parse(a,l);if(c instanceof Promise){if(l.async===!1)throw new ks;return c.then(u=>r(u,i,l))}return r(c,i,l)}}e["~standard"]={validate:r=>{var o;try{const a=Cy(e,r);return a.success?{value:a.data}:{issues:(o=a.error)==null?void 0:o.issues}}catch{return Py(e,r).then(l=>{var c;return l.success?{value:l.data}:{issues:(c=l.error)==null?void 0:c.issues}})}},vendor:"zod",version:1}}),Vl=z("$ZodString",(e,t)=>{var n;kt.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??ix(e._zod.bag),e._zod.parse=(i,s)=>{if(t.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),At=z("$ZodStringFormat",(e,t)=>{Uo.init(e,t),Vl.init(e,t)}),Tx=z("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Hy),At.init(e,t)}),Mx=z("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Yh(i))}else t.pattern??(t.pattern=Yh());At.init(e,t)}),Cx=z("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Zy),At.init(e,t)}),Px=z("$ZodURL",(e,t)=>{At.init(e,t),e._zod.check=n=>{try{const i=n.value.trim(),s=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(s.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=s.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Ox=z("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Yy()),At.init(e,t)}),Ax=z("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Vy),At.init(e,t)}),zx=z("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Fy),At.init(e,t)}),Dx=z("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=$y),At.init(e,t)}),Ex=z("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Ny),At.init(e,t)}),Ix=z("$ZodXID",(e,t)=>{t.pattern??(t.pattern=By),At.init(e,t)}),Rx=z("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=jy),At.init(e,t)}),Lx=z("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=nx(t)),At.init(e,t)}),Fx=z("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=tx),At.init(e,t)}),$x=z("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ex(t)),At.init(e,t)}),Nx=z("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Wy),At.init(e,t)}),Bx=z("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ky),At.init(e,t),e._zod.bag.format="ipv4"}),jx=z("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Xy),At.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Vx=z("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=qy),At.init(e,t)}),Wx=z("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Jy),At.init(e,t),e._zod.check=n=>{const i=n.value.split("/");try{if(i.length!==2)throw new Error;const[s,r]=i;if(!r)throw new Error;const o=Number(r);if(`${o}`!==r)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${s}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function td(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Hx=z("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Gy),At.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{td(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Zx(e){if(!Kh.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return td(n)}const Ux=z("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Kh),At.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Zx(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Yx=z("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Qy),At.init(e,t)});function Kx(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[i]=n;if(!i)return!1;const s=JSON.parse(atob(i));return!("typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&(!("alg"in s)||s.alg!==t))}catch{return!1}}const Xx=z("$ZodJWT",(e,t)=>{At.init(e,t),e._zod.check=n=>{Kx(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),ed=z("$ZodNumber",(e,t)=>{kt.init(e,t),e._zod.pattern=e._zod.bag.pattern??rx,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const s=n.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return n;const r=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:s,inst:e,...r?{received:r}:{}}),n}}),qx=z("$ZodNumberFormat",(e,t)=>{hx.init(e,t),ed.init(e,t)}),Jx=z("$ZodBoolean",(e,t)=>{kt.init(e,t),e._zod.pattern=ox,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}const s=n.value;return typeof s=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:s,inst:e}),n}}),Gx=z("$ZodUndefined",(e,t)=>{kt.init(e,t),e._zod.pattern=lx,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,i)=>{const s=n.value;return typeof s>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:s,inst:e}),n}}),Qx=z("$ZodNull",(e,t)=>{kt.init(e,t),e._zod.pattern=ax,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{const s=n.value;return s===null||n.issues.push({expected:"null",code:"invalid_type",input:s,inst:e}),n}}),tv=z("$ZodAny",(e,t)=>{kt.init(e,t),e._zod.parse=n=>n}),ev=z("$ZodUnknown",(e,t)=>{kt.init(e,t),e._zod.parse=n=>n}),nv=z("$ZodNever",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function nd(e,t,n){e.issues.length&&t.issues.push(...Ps(n,e.issues)),t.value[n]=e.value}const iv=z("$ZodArray",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>{const s=n.value;if(!Array.isArray(s))return n.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),n;n.value=Array(s.length);const r=[];for(let o=0;o<s.length;o++){const a=s[o],l=t.element._zod.run({value:a,issues:[]},i);l instanceof Promise?r.push(l.then(c=>nd(c,n,o))):nd(l,n,o)}return r.length?Promise.all(r).then(()=>n):n}});function Yo(e,t,n,i){e.issues.length&&t.issues.push(...Ps(n,e.issues)),e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function id(e){var i,s,r,o;const t=Object.keys(e.shape);for(const a of t)if(!((o=(r=(s=(i=e.shape)==null?void 0:i[a])==null?void 0:s._zod)==null?void 0:r.traits)!=null&&o.has("$ZodType")))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const n=my(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function sd(e,t,n,i,s,r){const o=[],a=s.keySet,l=s.catchall._zod,c=l.def.type;for(const u in t){if(a.has(u))continue;if(c==="never"){o.push(u);continue}const f=l.run({value:t[u],issues:[]},i);f instanceof Promise?e.push(f.then(h=>Yo(h,n,u,t))):Yo(f,n,u,t)}return o.length&&n.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:r}),e.length?Promise.all(e).then(()=>n):n}const sv=z("$ZodObject",(e,t)=>{kt.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...a};return Object.defineProperty(t,"shape",{value:l}),l}})}const i=Vo(()=>id(t));bt(e._zod,"propValues",()=>{const a=t.shape,l={};for(const c in a){const u=a[c]._zod;if(u.values){l[c]??(l[c]=new Set);for(const f of u.values)l[c].add(f)}}return l});const s=mr,r=t.catchall;let o;e._zod.parse=(a,l)=>{o??(o=i.value);const c=a.value;if(!s(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),a;a.value={};const u=[],f=o.shape;for(const h of o.keys){const g=f[h]._zod.run({value:c[h],issues:[]},l);g instanceof Promise?u.push(g.then(p=>Yo(p,a,h,c))):Yo(g,a,h,c)}return r?sd(u,c,a,l,i.value,e):u.length?Promise.all(u).then(()=>a):a}}),rv=z("$ZodObjectJIT",(e,t)=>{sv.init(e,t);const n=e._zod.parse,i=Vo(()=>id(t)),s=h=>{const d=new Sx(["shape","payload","ctx"]),g=i.value,p=w=>{const x=jh(w);return`shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`};d.write("const input = payload.value;");const m=Object.create(null);let _=0;for(const w of g.keys)m[w]=`key_${_++}`;d.write("const newResult = {};");for(const w of g.keys){const x=m[w],b=jh(w);d.write(`const ${x} = ${p(w)};`),d.write(`
20
+ **/let po;const nc=typeof window<"u"&&window.trustedTypes;if(nc)try{po=nc.createPolicy("vue",{createHTML:t=>t})}catch{}const rc=po?t=>po.createHTML(t):t=>t,op="http://www.w3.org/2000/svg",ap="http://www.w3.org/1998/Math/MathML",un=typeof document<"u"?document:null,ic=un&&un.createElement("template"),lp={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e==="svg"?un.createElementNS(op,t):e==="mathml"?un.createElementNS(ap,t):n?un.createElement(t,{is:n}):un.createElement(t);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>un.createTextNode(t),createComment:t=>un.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>un.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,s){const o=n?n.previousSibling:e.lastChild;if(i&&(i===s||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{ic.innerHTML=rc(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const a=ic.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},zn="transition",ii="animation",si=Symbol("_vtc"),sc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},cp=De({},ll,sc),oc=(t=>(t.displayName="Transition",t.props=cp,t))((t,{slots:e})=>me(oh,up(t),e)),qn=(t,e=[])=>{J(t)?t.forEach(n=>n(...e)):t&&t(...e)},ac=t=>t?J(t)?t.some(e=>e.length>1):t.length>1:!1;function up(t){const e={};for(const O in t)O in sc||(e[O]=t[O]);if(t.css===!1)return e;const{name:n="v",type:r,duration:i,enterFromClass:s=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,_=fp(i),p=_&&_[0],b=_&&_[1],{onBeforeEnter:w,onEnter:k,onEnterCancelled:T,onLeave:x,onLeaveCancelled:y,onBeforeAppear:E=w,onAppear:P=k,onAppearCancelled:D=T}=e,v=(O,B,Y,se)=>{O._enterCancelled=se,Yn(O,B?c:a),Yn(O,B?u:o),Y&&Y()},S=(O,B)=>{O._isLeaving=!1,Yn(O,f),Yn(O,h),Yn(O,d),B&&B()},N=O=>(B,Y)=>{const se=O?P:k,Q=()=>v(B,O,Y);qn(se,[B,Q]),lc(()=>{Yn(B,O?l:s),fn(B,O?c:a),ac(se)||cc(B,r,p,Q)})};return De(e,{onBeforeEnter(O){qn(w,[O]),fn(O,s),fn(O,o)},onBeforeAppear(O){qn(E,[O]),fn(O,l),fn(O,u)},onEnter:N(!1),onAppear:N(!0),onLeave(O,B){O._isLeaving=!0;const Y=()=>S(O,B);fn(O,f),O._enterCancelled?(fn(O,d),dc(O)):(dc(O),fn(O,d)),lc(()=>{O._isLeaving&&(Yn(O,f),fn(O,h),ac(x)||cc(O,r,b,Y))}),qn(x,[O,Y])},onEnterCancelled(O){v(O,!1,void 0,!0),qn(T,[O])},onAppearCancelled(O){v(O,!0,void 0,!0),qn(D,[O])},onLeaveCancelled(O){S(O),qn(y,[O])}})}function fp(t){if(t==null)return null;if(pe(t))return[_o(t.enter),_o(t.leave)];{const e=_o(t);return[e,e]}}function _o(t){return fd(t)}function fn(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[si]||(t[si]=new Set)).add(e)}function Yn(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[si];n&&(n.delete(e),n.size||(t[si]=void 0))}function lc(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let dp=0;function cc(t,e,n,r){const i=t._endId=++dp,s=()=>{i===t._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:o,timeout:a,propCount:l}=hp(t,e);if(!o)return r();const u=o+"end";let c=0;const f=()=>{t.removeEventListener(u,d),s()},d=h=>{h.target===t&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},a+1),t.addEventListener(u,d)}function hp(t,e){const n=window.getComputedStyle(t),r=_=>(n[_]||"").split(", "),i=r(`${zn}Delay`),s=r(`${zn}Duration`),o=uc(i,s),a=r(`${ii}Delay`),l=r(`${ii}Duration`),u=uc(a,l);let c=null,f=0,d=0;e===zn?o>0&&(c=zn,f=o,d=s.length):e===ii?u>0&&(c=ii,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?zn:ii:null,d=c?c===zn?s.length:l.length:0);const h=c===zn&&/\b(?:transform|all)(?:,|$)/.test(r(`${zn}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function uc(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>fc(n)+fc(t[r])))}function fc(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function dc(t){return(t?t.ownerDocument:document).body.offsetHeight}function pp(t,e,n){const r=t[si];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const hc=Symbol("_vod"),_p=Symbol("_vsh"),mp=Symbol(""),gp=/(?:^|;)\s*display\s*:/;function vp(t,e,n){const r=t.style,i=we(n);let s=!1;if(n&&!i){if(e)if(we(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&os(r,a,"")}else for(const o in e)n[o]==null&&os(r,o,"");for(const o in n)o==="display"&&(s=!0),os(r,o,n[o])}else if(i){if(e!==n){const o=r[mp];o&&(n+=";"+o),r.cssText=n,s=gp.test(n)}}else e&&t.removeAttribute("style");hc in t&&(t[hc]=s?r.display:"",t[_p]&&(r.display="none"))}const pc=/\s*!important$/;function os(t,e,n){if(J(n))n.forEach(r=>os(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=yp(t,e);pc.test(n)?t.setProperty(Ln(r),n.replace(pc,""),"important"):t[r]=n}}const _c=["Webkit","Moz","ms"],mo={};function yp(t,e){const n=mo[e];if(n)return n;let r=Tt(e);if(r!=="filter"&&r in t)return mo[e]=r;r=Di(r);for(let i=0;i<_c.length;i++){const s=_c[i]+r;if(s in t)return mo[e]=s}return e}const mc="http://www.w3.org/1999/xlink";function gc(t,e,n,r,i,s=md(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(mc,e.slice(6,e.length)):t.setAttributeNS(mc,e,n):n==null||s&&!Ea(n)?t.removeAttribute(e):t.setAttribute(e,s?"":rn(n)?String(n):n)}function vc(t,e,n,r,i){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?rc(n):n);return}const s=t.tagName;if(e==="value"&&s!=="PROGRESS"&&!s.includes("-")){const a=s==="OPTION"?t.getAttribute("value")||"":t.value,l=n==null?t.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in t))&&(t.value=l),n==null&&t.removeAttribute(e),t._value=n;return}let o=!1;if(n===""||n==null){const a=typeof t[e];a==="boolean"?n=Ea(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{t[e]=n}catch{}o&&t.removeAttribute(i||e)}function bp(t,e,n,r){t.addEventListener(e,n,r)}function xp(t,e,n,r){t.removeEventListener(e,n,r)}const yc=Symbol("_vei");function wp(t,e,n,r,i=null){const s=t[yc]||(t[yc]={}),o=s[e];if(r&&o)o.value=r;else{const[a,l]=Sp(e);if(r){const u=s[e]=zp(r,i);bp(t,a,u,l)}else o&&(xp(t,a,o,l),s[e]=void 0)}}const bc=/(?:Once|Passive|Capture)$/;function Sp(t){let e;if(bc.test(t)){e={};let r;for(;r=t.match(bc);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Ln(t.slice(2)),e]}let go=0;const kp=Promise.resolve(),Tp=()=>go||(kp.then(()=>go=0),go=Date.now());function zp(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Nt(Cp(r,n.value),e,5,[r])};return n.value=t,n.attached=Tp(),n}function Cp(t,e){if(J(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const xc=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Op=(t,e,n,r,i,s)=>{const o=i==="svg";e==="class"?pp(t,r,o):e==="style"?vp(t,n,r):Pi(e)?Is(e)||wp(t,e,n,r,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Ep(t,e,r,o))?(vc(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&gc(t,e,r,o,s,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!we(r))?vc(t,Tt(e),r,s,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),gc(t,e,r,o))};function Ep(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&xc(e)&&q(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return xc(e)&&we(n)?!1:e in t}const $p=["ctrl","shift","alt","meta"],Pp={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>$p.some(n=>t[`${n}Key`]&&!e.includes(n))},wc=(t,e)=>{const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=(i,...s)=>{for(let o=0;o<e.length;o++){const a=Pp[e[o]];if(a&&a(i,e))return}return t(i,...s)})},Ap=De({patchProp:Op},lp);let Sc;function Ip(){return Sc||(Sc=Lh(Ap))}const kc=(...t)=>{const e=Ip().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=Mp(r);if(!i)return;const s=e._component;!q(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=n(i,!1,Dp(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e};function Dp(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Mp(t){return we(t)?document.querySelector(t):t}const Tc={"i:s":"star","i:u":"users","i:c":"check","i:a":"arrow-right","c:p":"#6366f1","c:s":"#10b981","c:d":"#ef4444","v:g":"gradient","v:o":"outlined","v:s":"soft"};function Np(t){return t in Tc?Tc[t]:t}function z(t,e,n){function r(a,l){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:l,constr:o,traits:new Set},enumerable:!1}),a._zod.traits.has(t))return;a._zod.traits.add(t),e(a,l);const u=o.prototype,c=Object.keys(u);for(let f=0;f<c.length;f++){const d=c[f];d in a||(a[d]=u[d].bind(a))}}const i=(n==null?void 0:n.Parent)??Object;class s extends i{}Object.defineProperty(s,"name",{value:t});function o(a){var l;const u=n!=null&&n.Parent?new s:this;r(u,a),(l=u._zod).deferred??(l.deferred=[]);for(const c of u._zod.deferred)c();return u}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:a=>{var l,u;return n!=null&&n.Parent&&a instanceof n.Parent?!0:(u=(l=a==null?void 0:a._zod)==null?void 0:l.traits)==null?void 0:u.has(t)}}),Object.defineProperty(o,"name",{value:t}),o}class br extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class zc extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}const Cc={};function Cn(t){return Cc}function Oc(t){const e=Object.values(t).filter(r=>typeof r=="number");return Object.entries(t).filter(([r,i])=>e.indexOf(+r)===-1).map(([r,i])=>i)}function vo(t,e){return typeof e=="bigint"?e.toString():e}function as(t){return{get value(){{const e=t();return Object.defineProperty(this,"value",{value:e}),e}}}}function yo(t){return t==null}function bo(t){const e=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(e,n)}function Rp(t,e){const n=(t.toString().split(".")[1]||"").length,r=e.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const l=r.match(/\d?e-(\d?)/);l!=null&&l[1]&&(i=Number.parseInt(l[1]))}const s=n>i?n:i,o=Number.parseInt(t.toFixed(s).replace(".","")),a=Number.parseInt(e.toFixed(s).replace(".",""));return o%a/10**s}const Ec=Symbol("evaluating");function fe(t,e,n){let r;Object.defineProperty(t,e,{get(){if(r!==Ec)return r===void 0&&(r=Ec,r=n()),r},set(i){Object.defineProperty(t,e,{value:i})},configurable:!0})}function Gn(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Xn(...t){const e={};for(const n of t){const r=Object.getOwnPropertyDescriptors(n);Object.assign(e,r)}return Object.defineProperties({},e)}function $c(t){return JSON.stringify(t)}function Fp(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Pc="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function oi(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}const Zp=as(()=>{var t;if(typeof navigator<"u"&&((t=navigator==null?void 0:navigator.userAgent)!=null&&t.includes("Cloudflare")))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function xr(t){if(oi(t)===!1)return!1;const e=t.constructor;if(e===void 0||typeof e!="function")return!0;const n=e.prototype;return!(oi(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Ac(t){return xr(t)?{...t}:Array.isArray(t)?[...t]:t}const Lp=new Set(["string","number","symbol"]);function wr(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function On(t,e,n){const r=new t._zod.constr(e??t._zod.def);return(!e||n!=null&&n.parent)&&(r._zod.parent=t),r}function U(t){const e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if((e==null?void 0:e.message)!==void 0){if((e==null?void 0:e.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function jp(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}const Up={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Bp(t,e){const n=t._zod.def,r=Xn(t._zod.def,{get shape(){const i={};for(const s in e){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);e[s]&&(i[s]=n.shape[s])}return Gn(this,"shape",i),i},checks:[]});return On(t,r)}function Vp(t,e){const n=t._zod.def,r=Xn(t._zod.def,{get shape(){const i={...t._zod.def.shape};for(const s in e){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);e[s]&&delete i[s]}return Gn(this,"shape",i),i},checks:[]});return On(t,r)}function Hp(t,e){if(!xr(e))throw new Error("Invalid input to extend: expected a plain object");const n=t._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const i=Xn(t._zod.def,{get shape(){const s={...t._zod.def.shape,...e};return Gn(this,"shape",s),s},checks:[]});return On(t,i)}function Wp(t,e){if(!xr(e))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...t._zod.def,get shape(){const r={...t._zod.def.shape,...e};return Gn(this,"shape",r),r},checks:t._zod.def.checks};return On(t,n)}function Jp(t,e){const n=Xn(t._zod.def,{get shape(){const r={...t._zod.def.shape,...e._zod.def.shape};return Gn(this,"shape",r),r},get catchall(){return e._zod.def.catchall},checks:[]});return On(t,n)}function Kp(t,e,n){const r=Xn(e._zod.def,{get shape(){const i=e._zod.def.shape,s={...i};if(n)for(const o in n){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(s[o]=t?new t({type:"optional",innerType:i[o]}):i[o])}else for(const o in i)s[o]=t?new t({type:"optional",innerType:i[o]}):i[o];return Gn(this,"shape",s),s},checks:[]});return On(e,r)}function qp(t,e,n){const r=Xn(e._zod.def,{get shape(){const i=e._zod.def.shape,s={...i};if(n)for(const o in n){if(!(o in s))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(s[o]=new t({type:"nonoptional",innerType:i[o]}))}else for(const o in i)s[o]=new t({type:"nonoptional",innerType:i[o]});return Gn(this,"shape",s),s},checks:[]});return On(e,r)}function Sr(t,e=0){var n;if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(((n=t.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function kr(t,e){return e.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(t),n})}function ls(t){return typeof t=="string"?t:t==null?void 0:t.message}function En(t,e,n){var i,s,o,a,l,u;const r={...t,path:t.path??[]};if(!t.message){const c=ls((o=(s=(i=t.inst)==null?void 0:i._zod.def)==null?void 0:s.error)==null?void 0:o.call(s,t))??ls((a=e==null?void 0:e.error)==null?void 0:a.call(e,t))??ls((l=n.customError)==null?void 0:l.call(n,t))??ls((u=n.localeError)==null?void 0:u.call(n,t))??"Invalid input";r.message=c}return delete r.inst,delete r.continue,e!=null&&e.reportInput||delete r.input,r}function xo(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function ai(...t){const[e,n,r]=t;return typeof e=="string"?{message:e,code:"custom",input:n,inst:r}:{...e}}const Ic=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,vo,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},Dc=z("$ZodError",Ic),Mc=z("$ZodError",Ic,{Parent:Error});function Yp(t,e=n=>n.message){const n={},r=[];for(const i of t.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(e(i))):r.push(e(i));return{formErrors:r,fieldErrors:n}}function Gp(t,e=n=>n.message){const n={_errors:[]},r=i=>{for(const s of i.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(o=>r({issues:o}));else if(s.code==="invalid_key")r({issues:s.issues});else if(s.code==="invalid_element")r({issues:s.issues});else if(s.path.length===0)n._errors.push(e(s));else{let o=n,a=0;for(;a<s.path.length;){const l=s.path[a];a===s.path.length-1?(o[l]=o[l]||{_errors:[]},o[l]._errors.push(e(s))):o[l]=o[l]||{_errors:[]},o=o[l],a++}}};return r(t),n}const wo=t=>(e,n,r,i)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},o=e._zod.run({value:n,issues:[]},s);if(o instanceof Promise)throw new br;if(o.issues.length){const a=new((i==null?void 0:i.Err)??t)(o.issues.map(l=>En(l,s,Cn())));throw Pc(a,i==null?void 0:i.callee),a}return o.value},So=t=>async(e,n,r,i)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let o=e._zod.run({value:n,issues:[]},s);if(o instanceof Promise&&(o=await o),o.issues.length){const a=new((i==null?void 0:i.Err)??t)(o.issues.map(l=>En(l,s,Cn())));throw Pc(a,i==null?void 0:i.callee),a}return o.value},cs=t=>(e,n,r)=>{const i=r?{...r,async:!1}:{async:!1},s=e._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new br;return s.issues.length?{success:!1,error:new(t??Dc)(s.issues.map(o=>En(o,i,Cn())))}:{success:!0,data:s.value}},Xp=cs(Mc),us=t=>async(e,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let s=e._zod.run({value:n,issues:[]},i);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new t(s.issues.map(o=>En(o,i,Cn())))}:{success:!0,data:s.value}},Qp=us(Mc),e_=t=>(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return wo(t)(e,n,i)},t_=t=>(e,n,r)=>wo(t)(e,n,r),n_=t=>async(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return So(t)(e,n,i)},r_=t=>async(e,n,r)=>So(t)(e,n,r),i_=t=>(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return cs(t)(e,n,i)},s_=t=>(e,n,r)=>cs(t)(e,n,r),o_=t=>async(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return us(t)(e,n,i)},a_=t=>async(e,n,r)=>us(t)(e,n,r),l_=/^[cC][^\s-]{8,}$/,c_=/^[0-9a-z]+$/,u_=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,f_=/^[0-9a-vA-V]{20}$/,d_=/^[A-Za-z0-9]{27}$/,h_=/^[a-zA-Z0-9_-]{21}$/,p_=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,__=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Nc=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,m_=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,g_="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function v_(){return new RegExp(g_,"u")}const y_=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,b_=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,x_=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,w_=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,S_=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Rc=/^[A-Za-z0-9_-]*$/,k_=/^\+(?:[0-9]){6,14}[0-9]$/,Fc="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",T_=new RegExp(`^${Fc}$`);function Zc(t){const e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function z_(t){return new RegExp(`^${Zc(t)}$`)}function C_(t){const e=Zc({precision:t.precision}),n=["Z"];t.local&&n.push(""),t.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${e}(?:${n.join("|")})`;return new RegExp(`^${Fc}T(?:${r})$`)}const O_=t=>{const e=t?`[\\s\\S]{${(t==null?void 0:t.minimum)??0},${(t==null?void 0:t.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},E_=/^-?\d+$/,$_=/^-?\d+(?:\.\d+)?/,P_=/^(?:true|false)$/i,A_=/^null$/i,I_=/^undefined$/i,D_=/^[^A-Z]*$/,M_=/^[^a-z]*$/,st=z("$ZodCheck",(t,e)=>{var n;t._zod??(t._zod={}),t._zod.def=e,(n=t._zod).onattach??(n.onattach=[])}),Lc={number:"number",bigint:"bigint",object:"date"},jc=z("$ZodCheckLessThan",(t,e)=>{st.init(t,e);const n=Lc[typeof e.value];t._zod.onattach.push(r=>{const i=r._zod.bag,s=(e.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<s&&(e.inclusive?i.maximum=e.value:i.exclusiveMaximum=e.value)}),t._zod.check=r=>{(e.inclusive?r.value<=e.value:r.value<e.value)||r.issues.push({origin:n,code:"too_big",maximum:e.value,input:r.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),Uc=z("$ZodCheckGreaterThan",(t,e)=>{st.init(t,e);const n=Lc[typeof e.value];t._zod.onattach.push(r=>{const i=r._zod.bag,s=(e.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>s&&(e.inclusive?i.minimum=e.value:i.exclusiveMinimum=e.value)}),t._zod.check=r=>{(e.inclusive?r.value>=e.value:r.value>e.value)||r.issues.push({origin:n,code:"too_small",minimum:e.value,input:r.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),N_=z("$ZodCheckMultipleOf",(t,e)=>{st.init(t,e),t._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=e.value)}),t._zod.check=n=>{if(typeof n.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%e.value===BigInt(0):Rp(n.value,e.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:e.value,input:n.value,inst:t,continue:!e.abort})}}),R_=z("$ZodCheckNumberFormat",(t,e)=>{var o;st.init(t,e),e.format=e.format||"float64";const n=(o=e.format)==null?void 0:o.includes("int"),r=n?"int":"number",[i,s]=Up[e.format];t._zod.onattach.push(a=>{const l=a._zod.bag;l.format=e.format,l.minimum=i,l.maximum=s,n&&(l.pattern=E_)}),t._zod.check=a=>{const l=a.value;if(n){if(!Number.isInteger(l)){a.issues.push({expected:r,format:e.format,code:"invalid_type",continue:!1,input:l,inst:t});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:r,continue:!e.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:r,continue:!e.abort});return}}l<i&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:i,inclusive:!0,inst:t,continue:!e.abort}),l>s&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:s,inst:t})}}),F_=z("$ZodCheckMaxLength",(t,e)=>{var n;st.init(t,e),(n=t._zod.def).when??(n.when=r=>{const i=r.value;return!yo(i)&&i.length!==void 0}),t._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<i&&(r._zod.bag.maximum=e.maximum)}),t._zod.check=r=>{const i=r.value;if(i.length<=e.maximum)return;const o=xo(i);r.issues.push({origin:o,code:"too_big",maximum:e.maximum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),Z_=z("$ZodCheckMinLength",(t,e)=>{var n;st.init(t,e),(n=t._zod.def).when??(n.when=r=>{const i=r.value;return!yo(i)&&i.length!==void 0}),t._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>i&&(r._zod.bag.minimum=e.minimum)}),t._zod.check=r=>{const i=r.value;if(i.length>=e.minimum)return;const o=xo(i);r.issues.push({origin:o,code:"too_small",minimum:e.minimum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),L_=z("$ZodCheckLengthEquals",(t,e)=>{var n;st.init(t,e),(n=t._zod.def).when??(n.when=r=>{const i=r.value;return!yo(i)&&i.length!==void 0}),t._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=e.length,i.maximum=e.length,i.length=e.length}),t._zod.check=r=>{const i=r.value,s=i.length;if(s===e.length)return;const o=xo(i),a=s>e.length;r.issues.push({origin:o,...a?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:r.value,inst:t,continue:!e.abort})}}),fs=z("$ZodCheckStringFormat",(t,e)=>{var n,r;st.init(t,e),t._zod.onattach.push(i=>{const s=i._zod.bag;s.format=e.format,e.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(e.pattern))}),e.pattern?(n=t._zod).check??(n.check=i=>{e.pattern.lastIndex=0,!e.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:e.format,input:i.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(r=t._zod).check??(r.check=()=>{})}),j_=z("$ZodCheckRegex",(t,e)=>{fs.init(t,e),t._zod.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),U_=z("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=D_),fs.init(t,e)}),B_=z("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=M_),fs.init(t,e)}),V_=z("$ZodCheckIncludes",(t,e)=>{st.init(t,e);const n=wr(e.includes),r=new RegExp(typeof e.position=="number"?`^.{${e.position}}${n}`:n);e.pattern=r,t._zod.onattach.push(i=>{const s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),t._zod.check=i=>{i.value.includes(e.includes,e.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:i.value,inst:t,continue:!e.abort})}}),H_=z("$ZodCheckStartsWith",(t,e)=>{st.init(t,e);const n=new RegExp(`^${wr(e.prefix)}.*`);e.pattern??(e.pattern=n),t._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),t._zod.check=r=>{r.value.startsWith(e.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:r.value,inst:t,continue:!e.abort})}}),W_=z("$ZodCheckEndsWith",(t,e)=>{st.init(t,e);const n=new RegExp(`.*${wr(e.suffix)}$`);e.pattern??(e.pattern=n),t._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),t._zod.check=r=>{r.value.endsWith(e.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:r.value,inst:t,continue:!e.abort})}}),J_=z("$ZodCheckOverwrite",(t,e)=>{st.init(t,e),t._zod.check=n=>{n.value=e.tx(n.value)}});class K_{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const r=e.split(`
21
+ `).filter(o=>o),i=Math.min(...r.map(o=>o.length-o.trimStart().length)),s=r.map(o=>o.slice(i)).map(o=>" ".repeat(this.indent*2)+o);for(const o of s)this.content.push(o)}compile(){const e=Function,n=this==null?void 0:this.args,i=[...((this==null?void 0:this.content)??[""]).map(s=>` ${s}`)];return new e(...n,i.join(`
22
+ `))}}const q_={major:4,minor:2,patch:1},ge=z("$ZodType",(t,e)=>{var i;var n;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=q_;const r=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&r.unshift(t);for(const s of r)for(const o of s._zod.onattach)o(t);if(r.length===0)(n=t._zod).deferred??(n.deferred=[]),(i=t._zod.deferred)==null||i.push(()=>{t._zod.run=t._zod.parse});else{const s=(a,l,u)=>{let c=Sr(a),f;for(const d of l){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(c)continue;const h=a.issues.length,_=d._zod.check(a);if(_ instanceof Promise&&(u==null?void 0:u.async)===!1)throw new br;if(f||_ instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await _,a.issues.length!==h&&(c||(c=Sr(a,h)))});else{if(a.issues.length===h)continue;c||(c=Sr(a,h))}}return f?f.then(()=>a):a},o=(a,l,u)=>{if(Sr(a))return a.aborted=!0,a;const c=s(l,r,u);if(c instanceof Promise){if(u.async===!1)throw new br;return c.then(f=>t._zod.parse(f,u))}return t._zod.parse(c,u)};t._zod.run=(a,l)=>{if(l.skipChecks)return t._zod.parse(a,l);if(l.direction==="backward"){const c=t._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return c instanceof Promise?c.then(f=>o(f,a,l)):o(c,a,l)}const u=t._zod.parse(a,l);if(u instanceof Promise){if(l.async===!1)throw new br;return u.then(c=>s(c,r,l))}return s(u,r,l)}}t["~standard"]={validate:s=>{var o;try{const a=Xp(t,s);return a.success?{value:a.data}:{issues:(o=a.error)==null?void 0:o.issues}}catch{return Qp(t,s).then(l=>{var u;return l.success?{value:l.data}:{issues:(u=l.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}}),ko=z("$ZodString",(t,e)=>{var n;ge.init(t,e),t._zod.pattern=[...((n=t==null?void 0:t._zod.bag)==null?void 0:n.patterns)??[]].pop()??O_(t._zod.bag),t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:t}),r}}),be=z("$ZodStringFormat",(t,e)=>{fs.init(t,e),ko.init(t,e)}),Y_=z("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=__),be.init(t,e)}),G_=z("$ZodUUID",(t,e)=>{if(e.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(r===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Nc(r))}else e.pattern??(e.pattern=Nc());be.init(t,e)}),X_=z("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=m_),be.init(t,e)}),Q_=z("$ZodURL",(t,e)=>{be.init(t,e),t._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:n.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:n.value,inst:t,continue:!e.abort})),e.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:t,continue:!e.abort})}}}),em=z("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=v_()),be.init(t,e)}),tm=z("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=h_),be.init(t,e)}),nm=z("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=l_),be.init(t,e)}),rm=z("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=c_),be.init(t,e)}),im=z("$ZodULID",(t,e)=>{e.pattern??(e.pattern=u_),be.init(t,e)}),sm=z("$ZodXID",(t,e)=>{e.pattern??(e.pattern=f_),be.init(t,e)}),om=z("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=d_),be.init(t,e)}),am=z("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=C_(e)),be.init(t,e)}),lm=z("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=T_),be.init(t,e)}),cm=z("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=z_(e)),be.init(t,e)}),um=z("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=p_),be.init(t,e)}),fm=z("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=y_),be.init(t,e),t._zod.bag.format="ipv4"}),dm=z("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=b_),be.init(t,e),t._zod.bag.format="ipv6",t._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:t,continue:!e.abort})}}}),hm=z("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=x_),be.init(t,e)}),pm=z("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=w_),be.init(t,e),t._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,s]=r;if(!s)throw new Error;const o=Number(s);if(`${o}`!==s)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:t,continue:!e.abort})}}});function Bc(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}const _m=z("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=S_),be.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=n=>{Bc(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:t,continue:!e.abort})}});function mm(t){if(!Rc.test(t))return!1;const e=t.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=e.padEnd(Math.ceil(e.length/4)*4,"=");return Bc(n)}const gm=z("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=Rc),be.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=n=>{mm(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:t,continue:!e.abort})}}),vm=z("$ZodE164",(t,e)=>{e.pattern??(e.pattern=k_),be.init(t,e)});function ym(t,e=null){try{const n=t.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||e&&(!("alg"in i)||i.alg!==e))}catch{return!1}}const bm=z("$ZodJWT",(t,e)=>{be.init(t,e),t._zod.check=n=>{ym(n.value,e.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:t,continue:!e.abort})}}),Vc=z("$ZodNumber",(t,e)=>{ge.init(t,e),t._zod.pattern=t._zod.bag.pattern??$_,t._zod.parse=(n,r)=>{if(e.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const s=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:t,...s?{received:s}:{}}),n}}),xm=z("$ZodNumberFormat",(t,e)=>{R_.init(t,e),Vc.init(t,e)}),wm=z("$ZodBoolean",(t,e)=>{ge.init(t,e),t._zod.pattern=P_,t._zod.parse=(n,r)=>{if(e.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:t}),n}}),Sm=z("$ZodUndefined",(t,e)=>{ge.init(t,e),t._zod.pattern=I_,t._zod.values=new Set([void 0]),t._zod.optin="optional",t._zod.optout="optional",t._zod.parse=(n,r)=>{const i=n.value;return typeof i>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:t}),n}}),km=z("$ZodNull",(t,e)=>{ge.init(t,e),t._zod.pattern=A_,t._zod.values=new Set([null]),t._zod.parse=(n,r)=>{const i=n.value;return i===null||n.issues.push({expected:"null",code:"invalid_type",input:i,inst:t}),n}}),Tm=z("$ZodAny",(t,e)=>{ge.init(t,e),t._zod.parse=n=>n}),zm=z("$ZodUnknown",(t,e)=>{ge.init(t,e),t._zod.parse=n=>n}),Cm=z("$ZodNever",(t,e)=>{ge.init(t,e),t._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:t}),n)});function Hc(t,e,n){t.issues.length&&e.issues.push(...kr(n,t.issues)),e.value[n]=t.value}const Om=z("$ZodArray",(t,e)=>{ge.init(t,e),t._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:t}),n;n.value=Array(i.length);const s=[];for(let o=0;o<i.length;o++){const a=i[o],l=e.element._zod.run({value:a,issues:[]},r);l instanceof Promise?s.push(l.then(u=>Hc(u,n,o))):Hc(l,n,o)}return s.length?Promise.all(s).then(()=>n):n}});function ds(t,e,n,r){t.issues.length&&e.issues.push(...kr(n,t.issues)),t.value===void 0?n in r&&(e.value[n]=void 0):e.value[n]=t.value}function Wc(t){var r,i,s,o;const e=Object.keys(t.shape);for(const a of e)if(!((o=(s=(i=(r=t.shape)==null?void 0:r[a])==null?void 0:i._zod)==null?void 0:s.traits)!=null&&o.has("$ZodType")))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const n=jp(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(n)}}function Jc(t,e,n,r,i,s){const o=[],a=i.keySet,l=i.catchall._zod,u=l.def.type;for(const c in e){if(a.has(c))continue;if(u==="never"){o.push(c);continue}const f=l.run({value:e[c],issues:[]},r);f instanceof Promise?t.push(f.then(d=>ds(d,n,c,e))):ds(f,n,c,e)}return o.length&&n.issues.push({code:"unrecognized_keys",keys:o,input:e,inst:s}),t.length?Promise.all(t).then(()=>n):n}const Em=z("$ZodObject",(t,e)=>{ge.init(t,e);const n=Object.getOwnPropertyDescriptor(e,"shape");if(!(n!=null&&n.get)){const a=e.shape;Object.defineProperty(e,"shape",{get:()=>{const l={...a};return Object.defineProperty(e,"shape",{value:l}),l}})}const r=as(()=>Wc(e));fe(t._zod,"propValues",()=>{const a=e.shape,l={};for(const u in a){const c=a[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(const f of c.values)l[u].add(f)}}return l});const i=oi,s=e.catchall;let o;t._zod.parse=(a,l)=>{o??(o=r.value);const u=a.value;if(!i(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:t}),a;a.value={};const c=[],f=o.shape;for(const d of o.keys){const _=f[d]._zod.run({value:u[d],issues:[]},l);_ instanceof Promise?c.push(_.then(p=>ds(p,a,d,u))):ds(_,a,d,u)}return s?Jc(c,u,a,l,r.value,t):c.length?Promise.all(c).then(()=>a):a}}),$m=z("$ZodObjectJIT",(t,e)=>{Em.init(t,e);const n=t._zod.parse,r=as(()=>Wc(e)),i=d=>{const h=new K_(["shape","payload","ctx"]),_=r.value,p=T=>{const x=$c(T);return`shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`};h.write("const input = payload.value;");const b=Object.create(null);let w=0;for(const T of _.keys)b[T]=`key_${w++}`;h.write("const newResult = {};");for(const T of _.keys){const x=b[T],y=$c(T);h.write(`const ${x} = ${p(T)};`),h.write(`
23
23
  if (${x}.issues.length) {
24
24
  payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
25
25
  ...iss,
26
- path: iss.path ? [${b}, ...iss.path] : [${b}]
26
+ path: iss.path ? [${y}, ...iss.path] : [${y}]
27
27
  })));
28
28
  }
29
29
 
30
30
 
31
31
  if (${x}.value === undefined) {
32
- if (${b} in input) {
33
- newResult[${b}] = undefined;
32
+ if (${y} in input) {
33
+ newResult[${y}] = undefined;
34
34
  }
35
35
  } else {
36
- newResult[${b}] = ${x}.value;
36
+ newResult[${y}] = ${x}.value;
37
37
  }
38
38
 
39
- `)}d.write("payload.value = newResult;"),d.write("return payload;");const y=d.compile();return(w,x)=>y(h,w,x)};let r;const o=mr,a=!$h.jitless,c=a&&py.value,u=t.catchall;let f;e._zod.parse=(h,d)=>{f??(f=i.value);const g=h.value;return o(g)?a&&c&&(d==null?void 0:d.async)===!1&&d.jitless!==!0?(r||(r=s(t.shape)),h=r(h,d),u?sd([],g,h,d,f,e):h):n(h,d):(h.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),h)}});function rd(e,t,n,i){for(const r of e)if(r.issues.length===0)return t.value=r.value,t;const s=e.filter(r=>!Cs(r));return s.length===1?(t.value=s[0].value,s[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(r=>r.issues.map(o=>hi(o,i,ui())))}),t)}const od=z("$ZodUnion",(e,t)=>{kt.init(e,t),bt(e._zod,"optin",()=>t.options.some(s=>s._zod.optin==="optional")?"optional":void 0),bt(e._zod,"optout",()=>t.options.some(s=>s._zod.optout==="optional")?"optional":void 0),bt(e._zod,"values",()=>{if(t.options.every(s=>s._zod.values))return new Set(t.options.flatMap(s=>Array.from(s._zod.values)))}),bt(e._zod,"pattern",()=>{if(t.options.every(s=>s._zod.pattern)){const s=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${s.map(r=>$l(r.source)).join("|")})$`)}});const n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(s,r)=>{if(n)return i(s,r);let o=!1;const a=[];for(const l of t.options){const c=l._zod.run({value:s.value,issues:[]},r);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(l=>rd(l,s,e,r)):rd(a,s,e,r)}}),ov=z("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,od.init(e,t);const n=e._zod.parse;bt(e._zod,"propValues",()=>{const s={};for(const r of t.options){const o=r._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(const[a,l]of Object.entries(o)){s[a]||(s[a]=new Set);for(const c of l)s[a].add(c)}}return s});const i=Vo(()=>{var o;const s=t.options,r=new Map;for(const a of s){const l=(o=a._zod.propValues)==null?void 0:o[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const c of l){if(r.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);r.set(c,a)}}return r});e._zod.parse=(s,r)=>{const o=s.value;if(!mr(o))return s.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),s;const a=i.value.get(o==null?void 0:o[t.discriminator]);return a?a._zod.run(s,r):t.unionFallback?n(s,r):(s.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),s)}}),av=z("$ZodIntersection",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>{const s=n.value,r=t.left._zod.run({value:s,issues:[]},i),o=t.right._zod.run({value:s,issues:[]},i);return r instanceof Promise||o instanceof Promise?Promise.all([r,o]).then(([l,c])=>ad(n,l,c)):ad(n,r,o)}});function Wl(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ts(e)&&Ts(t)){const n=Object.keys(t),i=Object.keys(e).filter(r=>n.indexOf(r)!==-1),s={...e,...t};for(const r of i){const o=Wl(e[r],t[r]);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};s[r]=o.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let i=0;i<e.length;i++){const s=e[i],r=t[i],o=Wl(s,r);if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function ad(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Cs(e))return e;const i=Wl(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const lv=z("$ZodRecord",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>{const s=n.value;if(!Ts(s))return n.issues.push({expected:"record",code:"invalid_type",input:s,inst:e}),n;const r=[],o=t.keyType._zod.values;if(o){n.value={};const a=new Set;for(const c of o)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){a.add(typeof c=="number"?c.toString():c);const u=t.valueType._zod.run({value:s[c],issues:[]},i);u instanceof Promise?r.push(u.then(f=>{f.issues.length&&n.issues.push(...Ps(c,f.issues)),n.value[c]=f.value})):(u.issues.length&&n.issues.push(...Ps(c,u.issues)),n.value[c]=u.value)}let l;for(const c in s)a.has(c)||(l=l??[],l.push(c));l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:s,inst:e,keys:l})}else{n.value={};for(const a of Reflect.ownKeys(s)){if(a==="__proto__")continue;const l=t.keyType._zod.run({value:a,issues:[]},i);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){t.mode==="loose"?n.value[a]=s[a]:n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(u=>hi(u,i,ui())),input:a,path:[a],inst:e});continue}const c=t.valueType._zod.run({value:s[a],issues:[]},i);c instanceof Promise?r.push(c.then(u=>{u.issues.length&&n.issues.push(...Ps(a,u.issues)),n.value[l.value]=u.value})):(c.issues.length&&n.issues.push(...Ps(a,c.issues)),n.value[l.value]=c.value)}}return r.length?Promise.all(r).then(()=>n):n}}),cv=z("$ZodEnum",(e,t)=>{kt.init(e,t);const n=Nh(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(s=>gy.has(typeof s)).map(s=>typeof s=="string"?Ms(s):s.toString()).join("|")})$`),e._zod.parse=(s,r)=>{const o=s.value;return i.has(o)||s.issues.push({code:"invalid_value",values:n,input:o,inst:e}),s}}),uv=z("$ZodLiteral",(e,t)=>{if(kt.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?Ms(i):i?Ms(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,s)=>{const r=i.value;return n.has(r)||i.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),i}}),fv=z("$ZodTransform",(e,t)=>{kt.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Fh(e.constructor.name);const s=t.transform(n.value,n);if(i.async)return(s instanceof Promise?s:Promise.resolve(s)).then(o=>(n.value=o,n));if(s instanceof Promise)throw new ks;return n.value=s,n}});function ld(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const hv=z("$ZodOptional",(e,t)=>{kt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",bt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),bt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${$l(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){const s=t.innerType._zod.run(n,i);return s instanceof Promise?s.then(r=>ld(r,n.value)):ld(s,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),dv=z("$ZodNullable",(e,t)=>{kt.init(e,t),bt(e._zod,"optin",()=>t.innerType._zod.optin),bt(e._zod,"optout",()=>t.innerType._zod.optout),bt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${$l(n.source)}|null)$`):void 0}),bt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),pv=z("$ZodDefault",(e,t)=>{kt.init(e,t),e._zod.optin="optional",bt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;const s=t.innerType._zod.run(n,i);return s instanceof Promise?s.then(r=>cd(r,t)):cd(s,t)}});function cd(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const gv=z("$ZodPrefault",(e,t)=>{kt.init(e,t),e._zod.optin="optional",bt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),mv=z("$ZodNonOptional",(e,t)=>{kt.init(e,t),bt(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{const s=t.innerType._zod.run(n,i);return s instanceof Promise?s.then(r=>ud(r,e)):ud(s,e)}});function ud(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const _v=z("$ZodCatch",(e,t)=>{kt.init(e,t),bt(e._zod,"optin",()=>t.innerType._zod.optin),bt(e._zod,"optout",()=>t.innerType._zod.optout),bt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const s=t.innerType._zod.run(n,i);return s instanceof Promise?s.then(r=>(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=>hi(o,i,ui()))},input:n.value}),n.issues=[]),n)):(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(r=>hi(r,i,ui()))},input:n.value}),n.issues=[]),n)}}),bv=z("$ZodPipe",(e,t)=>{kt.init(e,t),bt(e._zod,"values",()=>t.in._zod.values),bt(e._zod,"optin",()=>t.in._zod.optin),bt(e._zod,"optout",()=>t.out._zod.optout),bt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){const r=t.out._zod.run(n,i);return r instanceof Promise?r.then(o=>Ko(o,t.in,i)):Ko(r,t.in,i)}const s=t.in._zod.run(n,i);return s instanceof Promise?s.then(r=>Ko(r,t.out,i)):Ko(s,t.out,i)}});function Ko(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const yv=z("$ZodReadonly",(e,t)=>{kt.init(e,t),bt(e._zod,"propValues",()=>t.innerType._zod.propValues),bt(e._zod,"values",()=>t.innerType._zod.values),bt(e._zod,"optin",()=>{var n,i;return(i=(n=t.innerType)==null?void 0:n._zod)==null?void 0:i.optin}),bt(e._zod,"optout",()=>{var n,i;return(i=(n=t.innerType)==null?void 0:n._zod)==null?void 0:i.optout}),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const s=t.innerType._zod.run(n,i);return s instanceof Promise?s.then(fd):fd(s)}});function fd(e){return e.value=Object.freeze(e.value),e}const xv=z("$ZodCustom",(e,t)=>{Me.init(e,t),kt.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{const i=n.value,s=t.fn(i);if(s instanceof Promise)return s.then(r=>hd(r,n,i,e));hd(s,n,i,e)}});function hd(e,t,n,i){if(!e){const s={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(s.params=i._zod.def.params),t.issues.push(_r(s))}}var dd;class vv{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const i=n[0];if(this._map.set(t,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const i={...this.get(n)??{}};delete i.id;const s={...i,...this._map.get(t)};return Object.keys(s).length?s:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function wv(){return new vv}(dd=globalThis).__zod_globalRegistry??(dd.__zod_globalRegistry=wv());const br=globalThis.__zod_globalRegistry;function Sv(e,t){return new e({type:"string",...Y(t)})}function kv(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Y(t)})}function pd(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Y(t)})}function Tv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Y(t)})}function Mv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Y(t)})}function Cv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Y(t)})}function Pv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Y(t)})}function Ov(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Y(t)})}function Av(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Y(t)})}function zv(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Y(t)})}function Dv(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Y(t)})}function Ev(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Y(t)})}function Iv(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Y(t)})}function Rv(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Y(t)})}function Lv(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Y(t)})}function Fv(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Y(t)})}function $v(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Y(t)})}function Nv(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Y(t)})}function Bv(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Y(t)})}function jv(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Y(t)})}function Vv(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Y(t)})}function Wv(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Y(t)})}function Hv(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Y(t)})}function Zv(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Y(t)})}function Uv(e,t){return new e({type:"string",format:"date",check:"string_format",...Y(t)})}function Yv(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Y(t)})}function Kv(e,t){return new e({type:"string",format:"duration",check:"string_format",...Y(t)})}function Xv(e,t){return new e({type:"number",checks:[],...Y(t)})}function qv(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Y(t)})}function Jv(e,t){return new e({type:"boolean",...Y(t)})}function Gv(e,t){return new e({type:"undefined",...Y(t)})}function Qv(e,t){return new e({type:"null",...Y(t)})}function tw(e){return new e({type:"any"})}function ew(e){return new e({type:"unknown"})}function nw(e,t){return new e({type:"never",...Y(t)})}function gd(e,t){return new Gh({check:"less_than",...Y(t),value:e,inclusive:!1})}function Hl(e,t){return new Gh({check:"less_than",...Y(t),value:e,inclusive:!0})}function md(e,t){return new Qh({check:"greater_than",...Y(t),value:e,inclusive:!1})}function Zl(e,t){return new Qh({check:"greater_than",...Y(t),value:e,inclusive:!0})}function _d(e,t){return new fx({check:"multiple_of",...Y(t),value:e})}function bd(e,t){return new dx({check:"max_length",...Y(t),maximum:e})}function Xo(e,t){return new px({check:"min_length",...Y(t),minimum:e})}function yd(e,t){return new gx({check:"length_equals",...Y(t),length:e})}function iw(e,t){return new mx({check:"string_format",format:"regex",...Y(t),pattern:e})}function sw(e){return new _x({check:"string_format",format:"lowercase",...Y(e)})}function rw(e){return new bx({check:"string_format",format:"uppercase",...Y(e)})}function ow(e,t){return new yx({check:"string_format",format:"includes",...Y(t),includes:e})}function aw(e,t){return new xx({check:"string_format",format:"starts_with",...Y(t),prefix:e})}function lw(e,t){return new vx({check:"string_format",format:"ends_with",...Y(t),suffix:e})}function Os(e){return new wx({check:"overwrite",tx:e})}function cw(e){return Os(t=>t.normalize(e))}function uw(){return Os(e=>e.trim())}function fw(){return Os(e=>e.toLowerCase())}function hw(){return Os(e=>e.toUpperCase())}function dw(){return Os(e=>dy(e))}function pw(e,t,n){return new e({type:"array",element:t,...Y(n)})}function gw(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Y(n)})}function mw(e){const t=_w(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(_r(i,n.value,t._zod.def));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=t),s.continue??(s.continue=!t._zod.def.abort),n.issues.push(_r(s))}},e(n.value,n)));return t}function _w(e,t){const n=new Me({check:"custom",...Y(t)});return n._zod.check=e,n}function xd(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??br,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function Yt(e,t,n={path:[],schemaPath:[]}){var u,f;var i;const s=e._zod.def,r=t.seen.get(e);if(r)return r.count++,n.schemaPath.includes(e)&&(r.cycle=n.path),r.schema;const o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);const a=(f=(u=e._zod).toJSONSchema)==null?void 0:f.call(u);if(a)o.schema=a;else{const h={...n,schemaPath:[...n.schemaPath,e],path:n.path},d=e._zod.parent;if(d)o.ref=d,Yt(d,t,h),t.seen.get(d).isParent=!0;else if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,h);else{const g=o.schema,p=t.processors[s.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);p(e,t,g,h)}}const l=t.metadataRegistry.get(e);return l&&Object.assign(o.schema,l),t.io==="input"&&we(e)&&(delete o.schema.examples,delete o.schema.default),t.io==="input"&&o.schema._prefault&&((i=o.schema).default??(i.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function vd(e,t){var r,o,a;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=l=>{var d;const c=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const g=(d=e.external.registry.get(l[0]))==null?void 0:d.id,p=e.external.uri??(_=>_);if(g)return{ref:p(g)};const m=l[1].defId??l[1].schema.id??`schema${e.counter++}`;return l[1].defId=m,{defId:m,ref:`${p("__shared")}#/${c}/${m}`}}if(l[1]===n)return{ref:"#"};const f=`#/${c}/`,h=l[1].schema.id??`__schema${e.counter++}`;return{defId:h,ref:f+h}},s=l=>{if(l[1].schema.$ref)return;const c=l[1],{ref:u,defId:f}=i(l);c.def={...c.schema},f&&(c.defId=f);const h=c.schema;for(const d in h)delete h[d];h.$ref=u};if(e.cycles==="throw")for(const l of e.seen.entries()){const c=l[1];if(c.cycle)throw new Error(`Cycle detected: #/${(r=c.cycle)==null?void 0:r.join("/")}/<root>
39
+ `)}h.write("payload.value = newResult;"),h.write("return payload;");const k=h.compile();return(T,x)=>k(d,T,x)};let s;const o=oi,a=!Cc.jitless,u=a&&Zp.value,c=e.catchall;let f;t._zod.parse=(d,h)=>{f??(f=r.value);const _=d.value;return o(_)?a&&u&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(s||(s=i(e.shape)),d=s(d,h),c?Jc([],_,d,h,f,t):d):n(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:_,inst:t}),d)}});function Kc(t,e,n,r){for(const s of t)if(s.issues.length===0)return e.value=s.value,e;const i=t.filter(s=>!Sr(s));return i.length===1?(e.value=i[0].value,i[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:n,errors:t.map(s=>s.issues.map(o=>En(o,r,Cn())))}),e)}const qc=z("$ZodUnion",(t,e)=>{ge.init(t,e),fe(t._zod,"optin",()=>e.options.some(i=>i._zod.optin==="optional")?"optional":void 0),fe(t._zod,"optout",()=>e.options.some(i=>i._zod.optout==="optional")?"optional":void 0),fe(t._zod,"values",()=>{if(e.options.every(i=>i._zod.values))return new Set(e.options.flatMap(i=>Array.from(i._zod.values)))}),fe(t._zod,"pattern",()=>{if(e.options.every(i=>i._zod.pattern)){const i=e.options.map(s=>s._zod.pattern);return new RegExp(`^(${i.map(s=>bo(s.source)).join("|")})$`)}});const n=e.options.length===1,r=e.options[0]._zod.run;t._zod.parse=(i,s)=>{if(n)return r(i,s);let o=!1;const a=[];for(const l of e.options){const u=l._zod.run({value:i.value,issues:[]},s);if(u instanceof Promise)a.push(u),o=!0;else{if(u.issues.length===0)return u;a.push(u)}}return o?Promise.all(a).then(l=>Kc(l,i,t,s)):Kc(a,i,t,s)}}),Pm=z("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,qc.init(t,e);const n=t._zod.parse;fe(t._zod,"propValues",()=>{const i={};for(const s of e.options){const o=s._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(const[a,l]of Object.entries(o)){i[a]||(i[a]=new Set);for(const u of l)i[a].add(u)}}return i});const r=as(()=>{var o;const i=e.options,s=new Map;for(const a of i){const l=(o=a._zod.propValues)==null?void 0:o[e.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(a)}"`);for(const u of l){if(s.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);s.set(u,a)}}return s});t._zod.parse=(i,s)=>{const o=i.value;if(!oi(o))return i.issues.push({code:"invalid_type",expected:"object",input:o,inst:t}),i;const a=r.value.get(o==null?void 0:o[e.discriminator]);return a?a._zod.run(i,s):e.unionFallback?n(i,s):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:o,path:[e.discriminator],inst:t}),i)}}),Am=z("$ZodIntersection",(t,e)=>{ge.init(t,e),t._zod.parse=(n,r)=>{const i=n.value,s=e.left._zod.run({value:i,issues:[]},r),o=e.right._zod.run({value:i,issues:[]},r);return s instanceof Promise||o instanceof Promise?Promise.all([s,o]).then(([l,u])=>Yc(n,l,u)):Yc(n,s,o)}});function To(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(xr(t)&&xr(e)){const n=Object.keys(e),r=Object.keys(t).filter(s=>n.indexOf(s)!==-1),i={...t,...e};for(const s of r){const o=To(t[s],e[s]);if(!o.valid)return{valid:!1,mergeErrorPath:[s,...o.mergeErrorPath]};i[s]=o.data}return{valid:!0,data:i}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<t.length;r++){const i=t[r],s=e[r],o=To(i,s);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Yc(t,e,n){if(e.issues.length&&t.issues.push(...e.issues),n.issues.length&&t.issues.push(...n.issues),Sr(t))return t;const r=To(e.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return t.value=r.data,t}const Im=z("$ZodRecord",(t,e)=>{ge.init(t,e),t._zod.parse=(n,r)=>{const i=n.value;if(!xr(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:t}),n;const s=[],o=e.keyType._zod.values;if(o){n.value={};const a=new Set;for(const u of o)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){a.add(typeof u=="number"?u.toString():u);const c=e.valueType._zod.run({value:i[u],issues:[]},r);c instanceof Promise?s.push(c.then(f=>{f.issues.length&&n.issues.push(...kr(u,f.issues)),n.value[u]=f.value})):(c.issues.length&&n.issues.push(...kr(u,c.issues)),n.value[u]=c.value)}let l;for(const u in i)a.has(u)||(l=l??[],l.push(u));l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:t,keys:l})}else{n.value={};for(const a of Reflect.ownKeys(i)){if(a==="__proto__")continue;const l=e.keyType._zod.run({value:a,issues:[]},r);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){e.mode==="loose"?n.value[a]=i[a]:n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(c=>En(c,r,Cn())),input:a,path:[a],inst:t});continue}const u=e.valueType._zod.run({value:i[a],issues:[]},r);u instanceof Promise?s.push(u.then(c=>{c.issues.length&&n.issues.push(...kr(a,c.issues)),n.value[l.value]=c.value})):(u.issues.length&&n.issues.push(...kr(a,u.issues)),n.value[l.value]=u.value)}}return s.length?Promise.all(s).then(()=>n):n}}),Dm=z("$ZodEnum",(t,e)=>{ge.init(t,e);const n=Oc(e.entries),r=new Set(n);t._zod.values=r,t._zod.pattern=new RegExp(`^(${n.filter(i=>Lp.has(typeof i)).map(i=>typeof i=="string"?wr(i):i.toString()).join("|")})$`),t._zod.parse=(i,s)=>{const o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:n,input:o,inst:t}),i}}),Mm=z("$ZodLiteral",(t,e)=>{if(ge.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(e.values);t._zod.values=n,t._zod.pattern=new RegExp(`^(${e.values.map(r=>typeof r=="string"?wr(r):r?wr(r.toString()):String(r)).join("|")})$`),t._zod.parse=(r,i)=>{const s=r.value;return n.has(s)||r.issues.push({code:"invalid_value",values:e.values,input:s,inst:t}),r}}),Nm=z("$ZodTransform",(t,e)=>{ge.init(t,e),t._zod.parse=(n,r)=>{if(r.direction==="backward")throw new zc(t.constructor.name);const i=e.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(n.value=o,n));if(i instanceof Promise)throw new br;return n.value=i,n}});function Gc(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}const Rm=z("$ZodOptional",(t,e)=>{ge.init(t,e),t._zod.optin="optional",t._zod.optout="optional",fe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),fe(t._zod,"pattern",()=>{const n=e.innerType._zod.pattern;return n?new RegExp(`^(${bo(n.source)})?$`):void 0}),t._zod.parse=(n,r)=>{if(e.innerType._zod.optin==="optional"){const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(s=>Gc(s,n.value)):Gc(i,n.value)}return n.value===void 0?n:e.innerType._zod.run(n,r)}}),Fm=z("$ZodNullable",(t,e)=>{ge.init(t,e),fe(t._zod,"optin",()=>e.innerType._zod.optin),fe(t._zod,"optout",()=>e.innerType._zod.optout),fe(t._zod,"pattern",()=>{const n=e.innerType._zod.pattern;return n?new RegExp(`^(${bo(n.source)}|null)$`):void 0}),fe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(n,r)=>n.value===null?n:e.innerType._zod.run(n,r)}),Zm=z("$ZodDefault",(t,e)=>{ge.init(t,e),t._zod.optin="optional",fe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,r)=>{if(r.direction==="backward")return e.innerType._zod.run(n,r);if(n.value===void 0)return n.value=e.defaultValue,n;const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(s=>Xc(s,e)):Xc(i,e)}});function Xc(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}const Lm=z("$ZodPrefault",(t,e)=>{ge.init(t,e),t._zod.optin="optional",fe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=e.defaultValue),e.innerType._zod.run(n,r))}),jm=z("$ZodNonOptional",(t,e)=>{ge.init(t,e),fe(t._zod,"values",()=>{const n=e.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),t._zod.parse=(n,r)=>{const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(s=>Qc(s,t)):Qc(i,t)}});function Qc(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}const Um=z("$ZodCatch",(t,e)=>{ge.init(t,e),fe(t._zod,"optin",()=>e.innerType._zod.optin),fe(t._zod,"optout",()=>e.innerType._zod.optout),fe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,r)=>{if(r.direction==="backward")return e.innerType._zod.run(n,r);const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(s=>(n.value=s.value,s.issues.length&&(n.value=e.catchValue({...n,error:{issues:s.issues.map(o=>En(o,r,Cn()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=e.catchValue({...n,error:{issues:i.issues.map(s=>En(s,r,Cn()))},input:n.value}),n.issues=[]),n)}}),Bm=z("$ZodPipe",(t,e)=>{ge.init(t,e),fe(t._zod,"values",()=>e.in._zod.values),fe(t._zod,"optin",()=>e.in._zod.optin),fe(t._zod,"optout",()=>e.out._zod.optout),fe(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(n,r)=>{if(r.direction==="backward"){const s=e.out._zod.run(n,r);return s instanceof Promise?s.then(o=>hs(o,e.in,r)):hs(s,e.in,r)}const i=e.in._zod.run(n,r);return i instanceof Promise?i.then(s=>hs(s,e.out,r)):hs(i,e.out,r)}});function hs(t,e,n){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},n)}const Vm=z("$ZodReadonly",(t,e)=>{ge.init(t,e),fe(t._zod,"propValues",()=>e.innerType._zod.propValues),fe(t._zod,"values",()=>e.innerType._zod.values),fe(t._zod,"optin",()=>{var n,r;return(r=(n=e.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),fe(t._zod,"optout",()=>{var n,r;return(r=(n=e.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),t._zod.parse=(n,r)=>{if(r.direction==="backward")return e.innerType._zod.run(n,r);const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(eu):eu(i)}});function eu(t){return t.value=Object.freeze(t.value),t}const Hm=z("$ZodCustom",(t,e)=>{st.init(t,e),ge.init(t,e),t._zod.parse=(n,r)=>n,t._zod.check=n=>{const r=n.value,i=e.fn(r);if(i instanceof Promise)return i.then(s=>tu(s,n,r,t));tu(i,n,r,t)}});function tu(t,e,n,r){if(!t){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),e.issues.push(ai(i))}}var nu;class Wm{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...n){const r=n[0];if(this._map.set(e,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,e)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const n=this._map.get(e);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(e),this}get(e){const n=e._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function Jm(){return new Wm}(nu=globalThis).__zod_globalRegistry??(nu.__zod_globalRegistry=Jm());const li=globalThis.__zod_globalRegistry;function Km(t,e){return new t({type:"string",...U(e)})}function qm(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...U(e)})}function ru(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...U(e)})}function Ym(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...U(e)})}function Gm(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...U(e)})}function Xm(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...U(e)})}function Qm(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...U(e)})}function eg(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...U(e)})}function tg(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...U(e)})}function ng(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...U(e)})}function rg(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...U(e)})}function ig(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...U(e)})}function sg(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...U(e)})}function og(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...U(e)})}function ag(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...U(e)})}function lg(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...U(e)})}function cg(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...U(e)})}function ug(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...U(e)})}function fg(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...U(e)})}function dg(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...U(e)})}function hg(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...U(e)})}function pg(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...U(e)})}function _g(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...U(e)})}function mg(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...U(e)})}function gg(t,e){return new t({type:"string",format:"date",check:"string_format",...U(e)})}function vg(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...U(e)})}function yg(t,e){return new t({type:"string",format:"duration",check:"string_format",...U(e)})}function bg(t,e){return new t({type:"number",checks:[],...U(e)})}function xg(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...U(e)})}function wg(t,e){return new t({type:"boolean",...U(e)})}function Sg(t,e){return new t({type:"undefined",...U(e)})}function kg(t,e){return new t({type:"null",...U(e)})}function Tg(t){return new t({type:"any"})}function zg(t){return new t({type:"unknown"})}function Cg(t,e){return new t({type:"never",...U(e)})}function iu(t,e){return new jc({check:"less_than",...U(e),value:t,inclusive:!1})}function zo(t,e){return new jc({check:"less_than",...U(e),value:t,inclusive:!0})}function su(t,e){return new Uc({check:"greater_than",...U(e),value:t,inclusive:!1})}function Co(t,e){return new Uc({check:"greater_than",...U(e),value:t,inclusive:!0})}function ou(t,e){return new N_({check:"multiple_of",...U(e),value:t})}function au(t,e){return new F_({check:"max_length",...U(e),maximum:t})}function ps(t,e){return new Z_({check:"min_length",...U(e),minimum:t})}function lu(t,e){return new L_({check:"length_equals",...U(e),length:t})}function Og(t,e){return new j_({check:"string_format",format:"regex",...U(e),pattern:t})}function Eg(t){return new U_({check:"string_format",format:"lowercase",...U(t)})}function $g(t){return new B_({check:"string_format",format:"uppercase",...U(t)})}function Pg(t,e){return new V_({check:"string_format",format:"includes",...U(e),includes:t})}function Ag(t,e){return new H_({check:"string_format",format:"starts_with",...U(e),prefix:t})}function Ig(t,e){return new W_({check:"string_format",format:"ends_with",...U(e),suffix:t})}function Tr(t){return new J_({check:"overwrite",tx:t})}function Dg(t){return Tr(e=>e.normalize(t))}function Mg(){return Tr(t=>t.trim())}function Ng(){return Tr(t=>t.toLowerCase())}function Rg(){return Tr(t=>t.toUpperCase())}function Fg(){return Tr(t=>Fp(t))}function Zg(t,e,n){return new t({type:"array",element:e,...U(n)})}function Lg(t,e,n){return new t({type:"custom",check:"custom",fn:e,...U(n)})}function jg(t){const e=Ug(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(ai(r,n.value,e._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),i.continue??(i.continue=!e._zod.def.abort),n.issues.push(ai(i))}},t(n.value,n)));return e}function Ug(t,e){const n=new st({check:"custom",...U(e)});return n._zod.check=t,n}function cu(t){let e=(t==null?void 0:t.target)??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:(t==null?void 0:t.metadata)??li,target:e,unrepresentable:(t==null?void 0:t.unrepresentable)??"throw",override:(t==null?void 0:t.override)??(()=>{}),io:(t==null?void 0:t.io)??"output",counter:0,seen:new Map,cycles:(t==null?void 0:t.cycles)??"ref",reused:(t==null?void 0:t.reused)??"inline",external:(t==null?void 0:t.external)??void 0}}function Ie(t,e,n={path:[],schemaPath:[]}){var c,f;var r;const i=t._zod.def,s=e.seen.get(t);if(s)return s.count++,n.schemaPath.includes(t)&&(s.cycle=n.path),s.schema;const o={schema:{},count:1,cycle:void 0,path:n.path};e.seen.set(t,o);const a=(f=(c=t._zod).toJSONSchema)==null?void 0:f.call(c);if(a)o.schema=a;else{const d={...n,schemaPath:[...n.schemaPath,t],path:n.path},h=t._zod.parent;if(h)o.ref=h,Ie(h,e,d),e.seen.get(h).isParent=!0;else if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,o.schema,d);else{const _=o.schema,p=e.processors[i.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);p(t,e,_,d)}}const l=e.metadataRegistry.get(t);return l&&Object.assign(o.schema,l),e.io==="input"&&et(t)&&(delete o.schema.examples,delete o.schema.default),e.io==="input"&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,e.seen.get(t).schema}function uu(t,e){var s,o,a;const n=t.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=l=>{var h;const u=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){const _=(h=t.external.registry.get(l[0]))==null?void 0:h.id,p=t.external.uri??(w=>w);if(_)return{ref:p(_)};const b=l[1].defId??l[1].schema.id??`schema${t.counter++}`;return l[1].defId=b,{defId:b,ref:`${p("__shared")}#/${u}/${b}`}}if(l[1]===n)return{ref:"#"};const f=`#/${u}/`,d=l[1].schema.id??`__schema${t.counter++}`;return{defId:d,ref:f+d}},i=l=>{if(l[1].schema.$ref)return;const u=l[1],{ref:c,defId:f}=r(l);u.def={...u.schema},f&&(u.defId=f);const d=u.schema;for(const h in d)delete d[h];d.$ref=c};if(t.cycles==="throw")for(const l of t.seen.entries()){const u=l[1];if(u.cycle)throw new Error(`Cycle detected: #/${(s=u.cycle)==null?void 0:s.join("/")}/<root>
40
40
 
41
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of e.seen.entries()){const c=l[1];if(t===l[0]){s(l);continue}if(e.external){const f=(o=e.external.registry.get(l[0]))==null?void 0:o.id;if(t!==l[0]&&f){s(l);continue}}if((a=e.metadataRegistry.get(l[0]))==null?void 0:a.id){s(l);continue}if(c.cycle){s(l);continue}if(c.count>1&&e.reused==="ref"){s(l);continue}}}function wd(e,t){var o,a,l;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=c=>{const u=e.seen.get(c),f=u.def??u.schema,h={...f};if(u.ref===null)return;const d=u.ref;if(u.ref=null,d){i(d);const g=e.seen.get(d).schema;g.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(g)):(Object.assign(f,g),Object.assign(f,h))}u.isParent||e.override({zodSchema:c,jsonSchema:f,path:u.path??[]})};for(const c of[...e.seen.entries()].reverse())i(c[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,(o=e.external)!=null&&o.uri){const c=(a=e.external.registry.get(t))==null?void 0:a.id;if(!c)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(c)}Object.assign(s,n.def??n.schema);const r=((l=e.external)==null?void 0:l.defs)??{};for(const c of e.seen.entries()){const u=c[1];u.def&&u.defId&&(r[u.defId]=u.def)}e.external||Object.keys(r).length>0&&(e.target==="draft-2020-12"?s.$defs=r:s.definitions=r);try{const c=JSON.parse(JSON.stringify(s));return Object.defineProperty(c,"~standard",{value:{...t["~standard"],jsonSchema:{input:qo(t,"input"),output:qo(t,"output")}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}function we(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return we(i.element,n);if(i.type==="set")return we(i.valueType,n);if(i.type==="lazy")return we(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return we(i.innerType,n);if(i.type==="intersection")return we(i.left,n)||we(i.right,n);if(i.type==="record"||i.type==="map")return we(i.keyType,n)||we(i.valueType,n);if(i.type==="pipe")return we(i.in,n)||we(i.out,n);if(i.type==="object"){for(const s in i.shape)if(we(i.shape[s],n))return!0;return!1}if(i.type==="union"){for(const s of i.options)if(we(s,n))return!0;return!1}if(i.type==="tuple"){for(const s of i.items)if(we(s,n))return!0;return!!(i.rest&&we(i.rest,n))}return!1}const bw=(e,t={})=>n=>{const i=xd({...n,processors:t});return Yt(e,i),vd(i,e),wd(i,e)},qo=(e,t)=>n=>{const{libraryOptions:i,target:s}=n??{},r=xd({...i??{},target:s,io:t,processors:{}});return Yt(e,r),vd(r,e),wd(r,e)},yw={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},xw=(e,t,n,i)=>{const s=n;s.type="string";const{minimum:r,maximum:o,format:a,patterns:l,contentEncoding:c}=e._zod.bag;if(typeof r=="number"&&(s.minLength=r),typeof o=="number"&&(s.maxLength=o),a&&(s.format=yw[a]??a,s.format===""&&delete s.format),c&&(s.contentEncoding=c),l&&l.size>0){const u=[...l];u.length===1?s.pattern=u[0].source:u.length>1&&(s.allOf=[...u.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},vw=(e,t,n,i)=>{const s=n,{minimum:r,maximum:o,format:a,multipleOf:l,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof a=="string"&&a.includes("int")?s.type="integer":s.type="number",typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(s.minimum=u,s.exclusiveMinimum=!0):s.exclusiveMinimum=u),typeof r=="number"&&(s.minimum=r,typeof u=="number"&&t.target!=="draft-04"&&(u>=r?delete s.minimum:delete s.exclusiveMinimum)),typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(s.maximum=c,s.exclusiveMaximum=!0):s.exclusiveMaximum=c),typeof o=="number"&&(s.maximum=o,typeof c=="number"&&t.target!=="draft-04"&&(c<=o?delete s.maximum:delete s.exclusiveMaximum)),typeof l=="number"&&(s.multipleOf=l)},ww=(e,t,n,i)=>{n.type="boolean"},Sw=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},kw=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Tw=(e,t,n,i)=>{n.not={}},Mw=(e,t,n,i)=>{},Cw=(e,t,n,i)=>{},Pw=(e,t,n,i)=>{const s=e._zod.def,r=Nh(s.entries);r.every(o=>typeof o=="number")&&(n.type="number"),r.every(o=>typeof o=="string")&&(n.type="string"),n.enum=r},Ow=(e,t,n,i)=>{const s=e._zod.def,r=[];for(const o of s.values)if(o===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof o=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(o))}else r.push(o);if(r.length!==0)if(r.length===1){const o=r[0];n.type=o===null?"null":typeof o,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[o]:n.const=o}else r.every(o=>typeof o=="number")&&(n.type="number"),r.every(o=>typeof o=="string")&&(n.type="string"),r.every(o=>typeof o=="boolean")&&(n.type="boolean"),r.every(o=>o===null)&&(n.type="null"),n.enum=r},Aw=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},zw=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Dw=(e,t,n,i)=>{const s=n,r=e._zod.def,{minimum:o,maximum:a}=e._zod.bag;typeof o=="number"&&(s.minItems=o),typeof a=="number"&&(s.maxItems=a),s.type="array",s.items=Yt(r.element,t,{...i,path:[...i.path,"items"]})},Ew=(e,t,n,i)=>{var c;const s=n,r=e._zod.def;s.type="object",s.properties={};const o=r.shape;for(const u in o)s.properties[u]=Yt(o[u],t,{...i,path:[...i.path,"properties",u]});const a=new Set(Object.keys(o)),l=new Set([...a].filter(u=>{const f=r.shape[u]._zod;return t.io==="input"?f.optin===void 0:f.optout===void 0}));l.size>0&&(s.required=Array.from(l)),((c=r.catchall)==null?void 0:c._zod.def.type)==="never"?s.additionalProperties=!1:r.catchall?r.catchall&&(s.additionalProperties=Yt(r.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(s.additionalProperties=!1)},Iw=(e,t,n,i)=>{const s=e._zod.def,r=s.inclusive===!1,o=s.options.map((a,l)=>Yt(a,t,{...i,path:[...i.path,r?"oneOf":"anyOf",l]}));r?n.oneOf=o:n.anyOf=o},Rw=(e,t,n,i)=>{const s=e._zod.def,r=Yt(s.left,t,{...i,path:[...i.path,"allOf",0]}),o=Yt(s.right,t,{...i,path:[...i.path,"allOf",1]}),a=c=>"allOf"in c&&Object.keys(c).length===1,l=[...a(r)?r.allOf:[r],...a(o)?o.allOf:[o]];n.allOf=l},Lw=(e,t,n,i)=>{const s=n,r=e._zod.def;s.type="object",(t.target==="draft-07"||t.target==="draft-2020-12")&&(s.propertyNames=Yt(r.keyType,t,{...i,path:[...i.path,"propertyNames"]})),s.additionalProperties=Yt(r.valueType,t,{...i,path:[...i.path,"additionalProperties"]})},Fw=(e,t,n,i)=>{const s=e._zod.def,r=Yt(s.innerType,t,i),o=t.seen.get(e);t.target==="openapi-3.0"?(o.ref=s.innerType,n.nullable=!0):n.anyOf=[r,{type:"null"}]},$w=(e,t,n,i)=>{const s=e._zod.def;Yt(s.innerType,t,i);const r=t.seen.get(e);r.ref=s.innerType},Nw=(e,t,n,i)=>{const s=e._zod.def;Yt(s.innerType,t,i);const r=t.seen.get(e);r.ref=s.innerType,n.default=JSON.parse(JSON.stringify(s.defaultValue))},Bw=(e,t,n,i)=>{const s=e._zod.def;Yt(s.innerType,t,i);const r=t.seen.get(e);r.ref=s.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},jw=(e,t,n,i)=>{const s=e._zod.def;Yt(s.innerType,t,i);const r=t.seen.get(e);r.ref=s.innerType;let o;try{o=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=o},Vw=(e,t,n,i)=>{const s=e._zod.def,r=t.io==="input"?s.in._zod.def.type==="transform"?s.out:s.in:s.out;Yt(r,t,i);const o=t.seen.get(e);o.ref=r},Ww=(e,t,n,i)=>{const s=e._zod.def;Yt(s.innerType,t,i);const r=t.seen.get(e);r.ref=s.innerType,n.readOnly=!0},Hw=(e,t,n,i)=>{const s=e._zod.def;Yt(s.innerType,t,i);const r=t.seen.get(e);r.ref=s.innerType},Zw=z("ZodISODateTime",(e,t)=>{Lx.init(e,t),Rt.init(e,t)});function Uw(e){return Zv(Zw,e)}const Yw=z("ZodISODate",(e,t)=>{Fx.init(e,t),Rt.init(e,t)});function Kw(e){return Uv(Yw,e)}const Xw=z("ZodISOTime",(e,t)=>{$x.init(e,t),Rt.init(e,t)});function qw(e){return Yv(Xw,e)}const Jw=z("ZodISODuration",(e,t)=>{Nx.init(e,t),Rt.init(e,t)});function Gw(e){return Kv(Jw,e)}const Qe=z("ZodError",(e,t)=>{Zh.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>My(e,n)},flatten:{value:n=>Ty(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Ll,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Ll,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),Qw=Bl(Qe),t1=jl(Qe),e1=Ho(Qe),n1=Zo(Qe),i1=Oy(Qe),s1=Ay(Qe),r1=zy(Qe),o1=Dy(Qe),a1=Ey(Qe),l1=Iy(Qe),c1=Ry(Qe),u1=Ly(Qe),Ct=z("ZodType",(e,t)=>(kt.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:qo(e,"input"),output:qo(e,"output")}}),e.toJSONSchema=bw(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Hi(t,{checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]})),e.clone=(n,i)=>fi(e,n,i),e.brand=()=>e,e.register=(n,i)=>(n.add(e,i),e),e.parse=(n,i)=>Qw(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>e1(e,n,i),e.parseAsync=async(n,i)=>t1(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>n1(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>i1(e,n,i),e.decode=(n,i)=>s1(e,n,i),e.encodeAsync=async(n,i)=>r1(e,n,i),e.decodeAsync=async(n,i)=>o1(e,n,i),e.safeEncode=(n,i)=>a1(e,n,i),e.safeDecode=(n,i)=>l1(e,n,i),e.safeEncodeAsync=async(n,i)=>c1(e,n,i),e.safeDecodeAsync=async(n,i)=>u1(e,n,i),e.refine=(n,i)=>e.check(oS(n,i)),e.superRefine=n=>e.check(aS(n)),e.overwrite=n=>e.check(Os(n)),e.optional=()=>Ed(e),e.nullable=()=>Id(e),e.nullish=()=>Ed(Id(e)),e.nonoptional=n=>Q1(e,n),e.array=()=>Ul(e),e.or=n=>Yl([e,n]),e.and=n=>W1(e,n),e.transform=n=>ql(e,zd(n)),e.default=n=>q1(e,n),e.prefault=n=>G1(e,n),e.catch=n=>eS(e,n),e.pipe=n=>ql(e,n),e.readonly=()=>sS(e),e.describe=n=>{const i=e.clone();return br.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){var n;return(n=br.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return br.get(e);const i=e.clone();return br.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Sd=z("_ZodString",(e,t)=>{Vl.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(i,s,r)=>xw(e,i,s);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check(iw(...i)),e.includes=(...i)=>e.check(ow(...i)),e.startsWith=(...i)=>e.check(aw(...i)),e.endsWith=(...i)=>e.check(lw(...i)),e.min=(...i)=>e.check(Xo(...i)),e.max=(...i)=>e.check(bd(...i)),e.length=(...i)=>e.check(yd(...i)),e.nonempty=(...i)=>e.check(Xo(1,...i)),e.lowercase=i=>e.check(sw(i)),e.uppercase=i=>e.check(rw(i)),e.trim=()=>e.check(uw()),e.normalize=(...i)=>e.check(cw(...i)),e.toLowerCase=()=>e.check(fw()),e.toUpperCase=()=>e.check(hw()),e.slugify=()=>e.check(dw())}),f1=z("ZodString",(e,t)=>{Vl.init(e,t),Sd.init(e,t),e.email=n=>e.check(kv(h1,n)),e.url=n=>e.check(Ov(d1,n)),e.jwt=n=>e.check(Hv(P1,n)),e.emoji=n=>e.check(Av(p1,n)),e.guid=n=>e.check(pd(kd,n)),e.uuid=n=>e.check(Tv(Jo,n)),e.uuidv4=n=>e.check(Mv(Jo,n)),e.uuidv6=n=>e.check(Cv(Jo,n)),e.uuidv7=n=>e.check(Pv(Jo,n)),e.nanoid=n=>e.check(zv(g1,n)),e.guid=n=>e.check(pd(kd,n)),e.cuid=n=>e.check(Dv(m1,n)),e.cuid2=n=>e.check(Ev(_1,n)),e.ulid=n=>e.check(Iv(b1,n)),e.base64=n=>e.check(jv(T1,n)),e.base64url=n=>e.check(Vv(M1,n)),e.xid=n=>e.check(Rv(y1,n)),e.ksuid=n=>e.check(Lv(x1,n)),e.ipv4=n=>e.check(Fv(v1,n)),e.ipv6=n=>e.check($v(w1,n)),e.cidrv4=n=>e.check(Nv(S1,n)),e.cidrv6=n=>e.check(Bv(k1,n)),e.e164=n=>e.check(Wv(C1,n)),e.datetime=n=>e.check(Uw(n)),e.date=n=>e.check(Kw(n)),e.time=n=>e.check(qw(n)),e.duration=n=>e.check(Gw(n))});function Zi(e){return Sv(f1,e)}const Rt=z("ZodStringFormat",(e,t)=>{At.init(e,t),Sd.init(e,t)}),h1=z("ZodEmail",(e,t)=>{Cx.init(e,t),Rt.init(e,t)}),kd=z("ZodGUID",(e,t)=>{Tx.init(e,t),Rt.init(e,t)}),Jo=z("ZodUUID",(e,t)=>{Mx.init(e,t),Rt.init(e,t)}),d1=z("ZodURL",(e,t)=>{Px.init(e,t),Rt.init(e,t)}),p1=z("ZodEmoji",(e,t)=>{Ox.init(e,t),Rt.init(e,t)}),g1=z("ZodNanoID",(e,t)=>{Ax.init(e,t),Rt.init(e,t)}),m1=z("ZodCUID",(e,t)=>{zx.init(e,t),Rt.init(e,t)}),_1=z("ZodCUID2",(e,t)=>{Dx.init(e,t),Rt.init(e,t)}),b1=z("ZodULID",(e,t)=>{Ex.init(e,t),Rt.init(e,t)}),y1=z("ZodXID",(e,t)=>{Ix.init(e,t),Rt.init(e,t)}),x1=z("ZodKSUID",(e,t)=>{Rx.init(e,t),Rt.init(e,t)}),v1=z("ZodIPv4",(e,t)=>{Bx.init(e,t),Rt.init(e,t)}),w1=z("ZodIPv6",(e,t)=>{jx.init(e,t),Rt.init(e,t)}),S1=z("ZodCIDRv4",(e,t)=>{Vx.init(e,t),Rt.init(e,t)}),k1=z("ZodCIDRv6",(e,t)=>{Wx.init(e,t),Rt.init(e,t)}),T1=z("ZodBase64",(e,t)=>{Hx.init(e,t),Rt.init(e,t)}),M1=z("ZodBase64URL",(e,t)=>{Ux.init(e,t),Rt.init(e,t)}),C1=z("ZodE164",(e,t)=>{Yx.init(e,t),Rt.init(e,t)}),P1=z("ZodJWT",(e,t)=>{Xx.init(e,t),Rt.init(e,t)}),Td=z("ZodNumber",(e,t)=>{ed.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(i,s,r)=>vw(e,i,s),e.gt=(i,s)=>e.check(md(i,s)),e.gte=(i,s)=>e.check(Zl(i,s)),e.min=(i,s)=>e.check(Zl(i,s)),e.lt=(i,s)=>e.check(gd(i,s)),e.lte=(i,s)=>e.check(Hl(i,s)),e.max=(i,s)=>e.check(Hl(i,s)),e.int=i=>e.check(Md(i)),e.safe=i=>e.check(Md(i)),e.positive=i=>e.check(md(0,i)),e.nonnegative=i=>e.check(Zl(0,i)),e.negative=i=>e.check(gd(0,i)),e.nonpositive=i=>e.check(Hl(0,i)),e.multipleOf=(i,s)=>e.check(_d(i,s)),e.step=(i,s)=>e.check(_d(i,s)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function O1(e){return Xv(Td,e)}const A1=z("ZodNumberFormat",(e,t)=>{qx.init(e,t),Td.init(e,t)});function Md(e){return qv(A1,e)}const z1=z("ZodBoolean",(e,t)=>{Jx.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>ww(e,n,i)});function yr(e){return Jv(z1,e)}const D1=z("ZodUndefined",(e,t)=>{Gx.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>kw(e,n)});function Cd(e){return Gv(D1,e)}const E1=z("ZodNull",(e,t)=>{Qx.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>Sw(e,n,i)});function Pd(e){return Qv(E1,e)}const I1=z("ZodAny",(e,t)=>{tv.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>Mw()});function R1(){return tw(I1)}const L1=z("ZodUnknown",(e,t)=>{ev.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>Cw()});function Od(){return ew(L1)}const F1=z("ZodNever",(e,t)=>{nv.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>Tw(e,n,i)});function $1(e){return nw(F1,e)}const N1=z("ZodArray",(e,t)=>{iv.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>Dw(e,n,i,s),e.element=t.element,e.min=(n,i)=>e.check(Xo(n,i)),e.nonempty=n=>e.check(Xo(1,n)),e.max=(n,i)=>e.check(bd(n,i)),e.length=(n,i)=>e.check(yd(n,i)),e.unwrap=()=>e.element});function Ul(e,t){return pw(N1,e,t)}const B1=z("ZodObject",(e,t)=>{rv.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>Ew(e,n,i,s),bt(e,"shape",()=>t.shape),e.keyof=()=>$e(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Od()}),e.loose=()=>e.clone({...e._zod.def,catchall:Od()}),e.strict=()=>e.clone({...e._zod.def,catchall:$1()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>xy(e,n),e.safeExtend=n=>vy(e,n),e.merge=n=>wy(e,n),e.pick=n=>by(e,n),e.omit=n=>yy(e,n),e.partial=(...n)=>Sy(Dd,e,n[0]),e.required=(...n)=>ky(Rd,e,n[0])});function le(e,t){const n={type:"object",shape:e??{},...Y(t)};return new B1(n)}const Ad=z("ZodUnion",(e,t)=>{od.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>Iw(e,n,i,s),e.options=t.options});function Yl(e,t){return new Ad({type:"union",options:e,...Y(t)})}const j1=z("ZodDiscriminatedUnion",(e,t)=>{Ad.init(e,t),ov.init(e,t)});function Kl(e,t,n){return new j1({type:"union",options:t,discriminator:e,...Y(n)})}const V1=z("ZodIntersection",(e,t)=>{av.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>Rw(e,n,i,s)});function W1(e,t){return new V1({type:"intersection",left:e,right:t})}const H1=z("ZodRecord",(e,t)=>{lv.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>Lw(e,n,i,s),e.keyType=t.keyType,e.valueType=t.valueType});function Z1(e,t,n){return new H1({type:"record",keyType:e,valueType:t,...Y(n)})}const Xl=z("ZodEnum",(e,t)=>{cv.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(i,s,r)=>Pw(e,i,s),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(i,s)=>{const r={};for(const o of i)if(n.has(o))r[o]=t.entries[o];else throw new Error(`Key ${o} not found in enum`);return new Xl({...t,checks:[],...Y(s),entries:r})},e.exclude=(i,s)=>{const r={...t.entries};for(const o of i)if(n.has(o))delete r[o];else throw new Error(`Key ${o} not found in enum`);return new Xl({...t,checks:[],...Y(s),entries:r})}});function $e(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Xl({type:"enum",entries:n,...Y(t)})}const U1=z("ZodLiteral",(e,t)=>{uv.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>Ow(e,n,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function ce(e,t){return new U1({type:"literal",values:Array.isArray(e)?e:[e],...Y(t)})}const Y1=z("ZodTransform",(e,t)=>{fv.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>zw(e,n),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Fh(e.constructor.name);n.addIssue=r=>{if(typeof r=="string")n.issues.push(_r(r,n.value,t));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=e),n.issues.push(_r(o))}};const s=t.transform(n.value,n);return s instanceof Promise?s.then(r=>(n.value=r,n)):(n.value=s,n)}});function zd(e){return new Y1({type:"transform",transform:e})}const Dd=z("ZodOptional",(e,t)=>{hv.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>Hw(e,n,i,s),e.unwrap=()=>e._zod.def.innerType});function Ed(e){return new Dd({type:"optional",innerType:e})}const K1=z("ZodNullable",(e,t)=>{dv.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>Fw(e,n,i,s),e.unwrap=()=>e._zod.def.innerType});function Id(e){return new K1({type:"nullable",innerType:e})}const X1=z("ZodDefault",(e,t)=>{pv.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>Nw(e,n,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function q1(e,t){return new X1({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Wh(t)}})}const J1=z("ZodPrefault",(e,t)=>{gv.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>Bw(e,n,i,s),e.unwrap=()=>e._zod.def.innerType});function G1(e,t){return new J1({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Wh(t)}})}const Rd=z("ZodNonOptional",(e,t)=>{mv.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>$w(e,n,i,s),e.unwrap=()=>e._zod.def.innerType});function Q1(e,t){return new Rd({type:"nonoptional",innerType:e,...Y(t)})}const tS=z("ZodCatch",(e,t)=>{_v.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>jw(e,n,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function eS(e,t){return new tS({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const nS=z("ZodPipe",(e,t)=>{bv.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>Vw(e,n,i,s),e.in=t.in,e.out=t.out});function ql(e,t){return new nS({type:"pipe",in:e,out:t})}const iS=z("ZodReadonly",(e,t)=>{yv.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>Ww(e,n,i,s),e.unwrap=()=>e._zod.def.innerType});function sS(e){return new iS({type:"readonly",innerType:e})}const rS=z("ZodCustom",(e,t)=>{xv.init(e,t),Ct.init(e,t),e._zod.processJSONSchema=(n,i,s)=>Aw(e,n)});function oS(e,t={}){return gw(rS,e,t)}function aS(e){return mw(e)}function lS(e,t){return ql(zd(e),t)}const Go=e=>{if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(i=>Go(i));const t={t:"title",s:"subtitle",d:"description",desc:"description",bg:"background",img:"image",fs:"features",tl:"timeline",st:"steps"},n={};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const s=t[i]||i,r=e[i];n[s]=Go(r)}return n},vn=e=>Yl([e,Ul(e),Pd(),Cd()]).transform(t=>t==null?[]:Array.isArray(t)?t:[t]),pt=Yl([Zi(),O1(),Pd(),Cd()]).transform(e=>e==null?"":String(e)),Jl=Zi().describe("Icon name (e.g. 'star', 'users', 'arrow-right'). Use standard Lucide/FontAwesome names."),As=le({id:Zi().optional().describe("Unique ID for the slide. Useful for navigation."),sizing:$e(["viewport","container"]).optional().describe("How the slide fits the screen. Default: 'viewport'."),meta:Z1(Zi(),R1()).optional().describe("Arbitrary metadata for custom behavior.")}),cS=As.extend({type:ce("statement").describe("Use for high-impact titles, covers, or quotes."),title:pt.describe("Main headline. Keep it punchy (3-6 words)."),subtitle:pt.optional().describe("Supporting text or attribution."),tag:pt.optional().describe("Small eyebrow tag above the title.")}),uS=le({title:pt.describe("Feature name."),description:pt.describe("Short benefit description."),icon:Jl.optional().describe("Visual icon for the feature.")}),fS=As.extend({type:ce("features").describe("Use for lists of benefits, stats, or grid items."),title:pt.describe("Section header."),description:pt.optional().describe("Contextual description."),features:vn(uS).describe("Array of feature cards.")}),Ld=le({date:pt.describe("Time marker (Year, Date, or 'Now')."),title:pt.describe("Event title."),description:pt.describe("Event details (1-2 sentences)."),icon:Jl.optional().describe("Optional marker icon.")}),hS=As.extend({type:ce("timeline").describe("Use for history, roadmaps, or chronological steps."),title:pt.describe("Timeline header."),subtitle:pt.optional(),timeline:vn(Ld).describe("Ordered events.")}),Fd=le({step:pt.describe("Step number/label (e.g., '01', 'A')."),title:pt.describe("Action title."),description:pt.optional().describe("Action details."),icon:Jl.optional()}),dS=As.extend({type:ce("steps").describe("Use for tutorials, 'how-to' guides, or process flows."),title:pt.describe("Process header."),subtitle:pt.optional(),steps:vn(Fd).describe("Sequential steps.")}),pS=As.extend({type:ce("half").describe("Use when you have a strong visual + explanations."),imageSide:$e(["left","right"]).default("left").describe("Which side the image goes on."),image:pt.describe("URL to the image."),title:pt.describe("Headline."),tag:pt.optional(),paragraphs:vn(Zi()).describe("Array of text blocks/paragraphs."),cta:pt.optional().describe("Call to Action label (button).")}),xr=$e(["none","xs","sm","md","lg","xl","2xl"]).describe("Spacing size token."),jn=$e(["auto","quarter","third","half","two-thirds","three-quarters","full"]).describe("Element size in container."),gS=$e(["top","center","bottom"]).describe("Vertical alignment."),mS=$e(["left","center","right"]).describe("Horizontal alignment."),$d=$e(["left","center","right"]).describe("Text alignment."),Nd=le({type:ce("title").describe("Large heading text."),text:pt.describe("The heading text."),size:$e(["lg","xl","2xl","3xl"]).optional().describe("Heading size. Default: 'xl'."),align:$d.optional().describe("Text alignment. Default: 'left'.")}),Bd=le({type:ce("text").describe("Body paragraph text."),text:pt.describe("The paragraph text."),align:$d.optional().describe("Text alignment. Default: 'left'."),muted:yr().optional().describe("Muted/subtle appearance. Default: false.")}),jd=le({type:ce("bullets").describe("Unordered bullet list."),items:vn(Zi()).describe("List items.")}),Vd=le({type:ce("ordered").describe("Numbered list."),items:vn(Zi()).describe("List items.")}),_S=le({type:ce("image").describe("Visual media element."),src:pt.describe("Image URL."),alt:pt.optional().describe("Alt text for accessibility."),fill:yr().optional().describe("Fill container edge-to-edge. Default: true."),fit:$e(["cover","contain"]).optional().describe("Object-fit when fill. Default: 'cover'."),rounded:$e(["none","sm","md","lg","xl","full"]).optional().describe("Border radius.")}),Wd=le({type:ce("button").describe("Call-to-action button."),label:pt.describe("Button label text."),action:pt.optional().describe("Action identifier emitted on click."),variant:$e(["primary","secondary","outline","ghost"]).optional().describe("Visual variant. Default: 'primary'."),fullWidth:yr().optional().describe("Full width button. Default: false.")}),Hd=le({type:ce("timeline").describe("Embedded timeline with events."),items:vn(Ld).describe("Timeline events."),compact:yr().optional().describe("Compact display mode. Default: false.")}),Zd=le({type:ce("stepper").describe("Embedded step-by-step process."),items:vn(Fd).describe("Step items."),compact:yr().optional().describe("Compact display mode. Default: false.")}),bS=le({type:ce("spacer").describe("Adds visual spacing."),size:xr.optional().describe("Size of the space. Default: 'md'.")}),yS=Kl("type",[Nd,Bd,jd,Vd,Wd,Hd,Zd,bS]),xS=le({type:ce("content").describe("Groups child elements vertically with alignment control."),elements:vn(yS).describe("Child elements."),valign:gS.optional().describe("Vertical alignment. Default: 'center'."),halign:mS.optional().describe("Horizontal alignment. Default: 'left'."),gap:xr.optional().describe("Gap between children. Default: 'md'."),padding:xr.optional().describe("Internal padding. Default: 'lg'."),size:jn.optional().describe("Size in parent flex container.")}),vS=Kl("type",[_S.extend({size:jn.optional()}),xS,Nd.extend({size:jn.optional()}),Bd.extend({size:jn.optional()}),jd.extend({size:jn.optional()}),Vd.extend({size:jn.optional()}),Wd.extend({size:jn.optional()}),Hd.extend({size:jn.optional()}),Zd.extend({size:jn.optional()})]),wS=As.extend({type:ce("flex").describe("Flow-based layout. Elements flow in order with semantic sizing."),direction:$e(["horizontal","vertical"]).optional().describe("Main flow direction. Default: 'horizontal'."),gap:xr.optional().describe("Gap between elements. Default: 'none'."),padding:xr.optional().describe("Container padding. Default: 'none'."),elements:vn(vS).describe("Flex elements in flow order.")}),SS=Kl("type",[cS,fS,hS,dS,pS,wS]),kS=le({title:pt.describe("Title of the entire presentation."),author:pt.optional(),date:pt.optional()}).passthrough();le({meta:kS.describe("Global deck settings."),slides:Ul(lS(Go,SS)).describe("Ordered array of slide definitions.")});const vr=Symbol("LuminaStore"),TS={loop:!1,navigation:!0,keyboard:!0,touch:!0,debug:!1,theme:"default",ui:{visible:!0,showProgressBar:!0,showSlideCount:!0,showControls:!0},keys:{next:["ArrowRight"," ","Enter"],prev:["ArrowLeft","Backspace"]},animation:{enabled:!0,type:"cascade",durationIn:1,durationOut:.5,stagger:.1,ease:"power3.out"}};function zs(e){if(typeof e=="string")return fy(e);if(Array.isArray(e))return e.map(zs);if(e&&typeof e=="object"){const t={};for(const n in e)t[n]=zs(e[n]);return t}return e}function Ud(e,t){if(typeof e!="object"||e===null||typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(zs);const n={...e};for(const i in t)t[i]===Object(t[i])?i in e?n[i]=Ud(e[i],t[i]):Object.assign(n,{[i]:zs(t[i])}):Object.assign(n,{[i]:zs(t[i])});return n}function MS(e={}){const t=vo({deck:null,currentIndex:0,options:{...TS,...e},isReady:!1,actionHistory:[]}),n=()=>!t.deck||t.deck.slides.length===0?null:t.deck.slides[t.currentIndex]||null,i=()=>t.deck?t.options.loop?!0:t.currentIndex<t.deck.slides.length-1:!1,s=()=>t.deck?t.options.loop?!0:t.currentIndex>0:!1,r=()=>!t.deck||t.deck.slides.length<=1?0:t.currentIndex/(t.deck.slides.length-1);function o(d){t.options={...t.options,...d},d.theme&&(d.theme,t.options.theme=d.theme),d.ui&&(t.options.ui={...t.options.ui,...d.ui}),d.keys&&(t.options.keys={...t.options.keys,...d.keys}),d.animation&&(t.options.animation={...t.options.animation,...d.animation})}function a(d){if(!d||!Array.isArray(d.slides)){console.error("[LuminaStore] Invalid deck format");return}const g=Go(d);t.deck=zs(g),t.currentIndex=0,t.isReady=!0,t.actionHistory=[]}function l(d){t.deck&&(t.deck=Ud(t.deck,d))}function c(d){t.actionHistory.push(d),t.actionHistory.length>50&&t.actionHistory.shift()}function u(){var p;if(!i())return;const d=((p=t.deck)==null?void 0:p.slides.length)||0;let g=t.currentIndex;t.options.loop?g=(t.currentIndex+1)%d:g++,g!==t.currentIndex&&(t.currentIndex=g)}function f(){var p;if(!s())return;const d=((p=t.deck)==null?void 0:p.slides.length)||0;let g=t.currentIndex;t.options.loop?g=(t.currentIndex-1+d)%d:g--,g!==t.currentIndex&&(t.currentIndex=g)}function h(d){t.deck&&d>=0&&d<t.deck.slides.length&&t.currentIndex!==d&&(t.currentIndex=d)}return{state:wo(t),currentSlide:n,hasNext:i,hasPrev:s,progress:r,setOptions:o,loadDeck:a,patchDeck:l,recordAction:c,next:u,prev:f,goto:h}}function CS(){const e=oi(vr);if(!e)throw new Error("Lumina: Component must be used within a Lumina instance.");return{slide:Nt(()=>e.currentSlide()),index:Nt(()=>e.state.currentIndex),total:Nt(()=>{var t;return((t=e.state.deck)==null?void 0:t.slides.length)||0}),next:e.next,prev:e.prev,goto:e.goto,options:e.state.options}}function PS(){const e=oi(vr);if(!e)return;let t=0;const n=300,i=s=>{var c,u;const{options:r}=e.state;if(!r.keyboard||!r.navigation)return;const o=Date.now();if(o-t<n)return;const a=((c=r.keys)==null?void 0:c.next)||[],l=((u=r.keys)==null?void 0:u.prev)||[];a.includes(s.key)?(e.next(),t=o):l.includes(s.key)&&(e.prev(),t=o)};Fi(()=>{window.addEventListener("keydown",i)}),$i(()=>{window.removeEventListener("keydown",i)})}class Yd{constructor(){$(this,"handlers",new Map)}on(t,n){this.handlers.has(t)||this.handlers.set(t,new Set),this.handlers.get(t).add(n)}off(t,n){const i=this.handlers.get(t);i&&i.delete(n)}emit(t,n){const i=this.handlers.get(t);i&&i.forEach(s=>{try{s(n)}catch(r){console.error(`[LuminaBus] Error in handler for event "${t}":`,r)}})}clear(){this.handlers.clear()}}const Vn=new Yd;function Wn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}/*!
41
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of t.seen.entries()){const u=l[1];if(e===l[0]){i(l);continue}if(t.external){const f=(o=t.external.registry.get(l[0]))==null?void 0:o.id;if(e!==l[0]&&f){i(l);continue}}if((a=t.metadataRegistry.get(l[0]))==null?void 0:a.id){i(l);continue}if(u.cycle){i(l);continue}if(u.count>1&&t.reused==="ref"){i(l);continue}}}function fu(t,e){var o,a,l;const n=t.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=u=>{const c=t.seen.get(u),f=c.def??c.schema,d={...f};if(c.ref===null)return;const h=c.ref;if(c.ref=null,h){r(h);const _=t.seen.get(h).schema;_.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(_)):(Object.assign(f,_),Object.assign(f,d))}c.isParent||t.override({zodSchema:u,jsonSchema:f,path:c.path??[]})};for(const u of[...t.seen.entries()].reverse())r(u[0]);const i={};if(t.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":t.target,(o=t.external)!=null&&o.uri){const u=(a=t.external.registry.get(e))==null?void 0:a.id;if(!u)throw new Error("Schema is missing an `id` property");i.$id=t.external.uri(u)}Object.assign(i,n.def??n.schema);const s=((l=t.external)==null?void 0:l.defs)??{};for(const u of t.seen.entries()){const c=u[1];c.def&&c.defId&&(s[c.defId]=c.def)}t.external||Object.keys(s).length>0&&(t.target==="draft-2020-12"?i.$defs=s:i.definitions=s);try{const u=JSON.parse(JSON.stringify(i));return Object.defineProperty(u,"~standard",{value:{...e["~standard"],jsonSchema:{input:_s(e,"input"),output:_s(e,"output")}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function et(t,e){const n=e??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);const r=t._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return et(r.element,n);if(r.type==="set")return et(r.valueType,n);if(r.type==="lazy")return et(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return et(r.innerType,n);if(r.type==="intersection")return et(r.left,n)||et(r.right,n);if(r.type==="record"||r.type==="map")return et(r.keyType,n)||et(r.valueType,n);if(r.type==="pipe")return et(r.in,n)||et(r.out,n);if(r.type==="object"){for(const i in r.shape)if(et(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(et(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(et(i,n))return!0;return!!(r.rest&&et(r.rest,n))}return!1}const Bg=(t,e={})=>n=>{const r=cu({...n,processors:e});return Ie(t,r),uu(r,t),fu(r,t)},_s=(t,e)=>n=>{const{libraryOptions:r,target:i}=n??{},s=cu({...r??{},target:i,io:e,processors:{}});return Ie(t,s),uu(s,t),fu(s,t)},Vg={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Hg=(t,e,n,r)=>{const i=n;i.type="string";const{minimum:s,maximum:o,format:a,patterns:l,contentEncoding:u}=t._zod.bag;if(typeof s=="number"&&(i.minLength=s),typeof o=="number"&&(i.maxLength=o),a&&(i.format=Vg[a]??a,i.format===""&&delete i.format),u&&(i.contentEncoding=u),l&&l.size>0){const c=[...l];c.length===1?i.pattern=c[0].source:c.length>1&&(i.allOf=[...c.map(f=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},Wg=(t,e,n,r)=>{const i=n,{minimum:s,maximum:o,format:a,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=t._zod.bag;typeof a=="string"&&a.includes("int")?i.type="integer":i.type="number",typeof c=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(i.minimum=c,i.exclusiveMinimum=!0):i.exclusiveMinimum=c),typeof s=="number"&&(i.minimum=s,typeof c=="number"&&e.target!=="draft-04"&&(c>=s?delete i.minimum:delete i.exclusiveMinimum)),typeof u=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(i.maximum=u,i.exclusiveMaximum=!0):i.exclusiveMaximum=u),typeof o=="number"&&(i.maximum=o,typeof u=="number"&&e.target!=="draft-04"&&(u<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof l=="number"&&(i.multipleOf=l)},Jg=(t,e,n,r)=>{n.type="boolean"},Kg=(t,e,n,r)=>{e.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},qg=(t,e,n,r)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Yg=(t,e,n,r)=>{n.not={}},Gg=(t,e,n,r)=>{},Xg=(t,e,n,r)=>{},Qg=(t,e,n,r)=>{const i=t._zod.def,s=Oc(i.entries);s.every(o=>typeof o=="number")&&(n.type="number"),s.every(o=>typeof o=="string")&&(n.type="string"),n.enum=s},e0=(t,e,n,r)=>{const i=t._zod.def,s=[];for(const o of i.values)if(o===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof o=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(o))}else s.push(o);if(s.length!==0)if(s.length===1){const o=s[0];n.type=o===null?"null":typeof o,e.target==="draft-04"||e.target==="openapi-3.0"?n.enum=[o]:n.const=o}else s.every(o=>typeof o=="number")&&(n.type="number"),s.every(o=>typeof o=="string")&&(n.type="string"),s.every(o=>typeof o=="boolean")&&(n.type="boolean"),s.every(o=>o===null)&&(n.type="null"),n.enum=s},t0=(t,e,n,r)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},n0=(t,e,n,r)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},r0=(t,e,n,r)=>{const i=n,s=t._zod.def,{minimum:o,maximum:a}=t._zod.bag;typeof o=="number"&&(i.minItems=o),typeof a=="number"&&(i.maxItems=a),i.type="array",i.items=Ie(s.element,e,{...r,path:[...r.path,"items"]})},i0=(t,e,n,r)=>{var u;const i=n,s=t._zod.def;i.type="object",i.properties={};const o=s.shape;for(const c in o)i.properties[c]=Ie(o[c],e,{...r,path:[...r.path,"properties",c]});const a=new Set(Object.keys(o)),l=new Set([...a].filter(c=>{const f=s.shape[c]._zod;return e.io==="input"?f.optin===void 0:f.optout===void 0}));l.size>0&&(i.required=Array.from(l)),((u=s.catchall)==null?void 0:u._zod.def.type)==="never"?i.additionalProperties=!1:s.catchall?s.catchall&&(i.additionalProperties=Ie(s.catchall,e,{...r,path:[...r.path,"additionalProperties"]})):e.io==="output"&&(i.additionalProperties=!1)},s0=(t,e,n,r)=>{const i=t._zod.def,s=i.inclusive===!1,o=i.options.map((a,l)=>Ie(a,e,{...r,path:[...r.path,s?"oneOf":"anyOf",l]}));s?n.oneOf=o:n.anyOf=o},o0=(t,e,n,r)=>{const i=t._zod.def,s=Ie(i.left,e,{...r,path:[...r.path,"allOf",0]}),o=Ie(i.right,e,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,l=[...a(s)?s.allOf:[s],...a(o)?o.allOf:[o]];n.allOf=l},a0=(t,e,n,r)=>{const i=n,s=t._zod.def;i.type="object",(e.target==="draft-07"||e.target==="draft-2020-12")&&(i.propertyNames=Ie(s.keyType,e,{...r,path:[...r.path,"propertyNames"]})),i.additionalProperties=Ie(s.valueType,e,{...r,path:[...r.path,"additionalProperties"]})},l0=(t,e,n,r)=>{const i=t._zod.def,s=Ie(i.innerType,e,r),o=e.seen.get(t);e.target==="openapi-3.0"?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[s,{type:"null"}]},c0=(t,e,n,r)=>{const i=t._zod.def;Ie(i.innerType,e,r);const s=e.seen.get(t);s.ref=i.innerType},u0=(t,e,n,r)=>{const i=t._zod.def;Ie(i.innerType,e,r);const s=e.seen.get(t);s.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},f0=(t,e,n,r)=>{const i=t._zod.def;Ie(i.innerType,e,r);const s=e.seen.get(t);s.ref=i.innerType,e.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},d0=(t,e,n,r)=>{const i=t._zod.def;Ie(i.innerType,e,r);const s=e.seen.get(t);s.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=o},h0=(t,e,n,r)=>{const i=t._zod.def,s=e.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;Ie(s,e,r);const o=e.seen.get(t);o.ref=s},p0=(t,e,n,r)=>{const i=t._zod.def;Ie(i.innerType,e,r);const s=e.seen.get(t);s.ref=i.innerType,n.readOnly=!0},_0=(t,e,n,r)=>{const i=t._zod.def;Ie(i.innerType,e,r);const s=e.seen.get(t);s.ref=i.innerType},m0=z("ZodISODateTime",(t,e)=>{am.init(t,e),Se.init(t,e)});function g0(t){return mg(m0,t)}const v0=z("ZodISODate",(t,e)=>{lm.init(t,e),Se.init(t,e)});function y0(t){return gg(v0,t)}const b0=z("ZodISOTime",(t,e)=>{cm.init(t,e),Se.init(t,e)});function x0(t){return vg(b0,t)}const w0=z("ZodISODuration",(t,e)=>{um.init(t,e),Se.init(t,e)});function S0(t){return yg(w0,t)}const Ot=z("ZodError",(t,e)=>{Dc.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:n=>Gp(t,n)},flatten:{value:n=>Yp(t,n)},addIssue:{value:n=>{t.issues.push(n),t.message=JSON.stringify(t.issues,vo,2)}},addIssues:{value:n=>{t.issues.push(...n),t.message=JSON.stringify(t.issues,vo,2)}},isEmpty:{get(){return t.issues.length===0}}})},{Parent:Error}),k0=wo(Ot),T0=So(Ot),z0=cs(Ot),C0=us(Ot),O0=e_(Ot),E0=t_(Ot),$0=n_(Ot),P0=r_(Ot),A0=i_(Ot),I0=s_(Ot),D0=o_(Ot),M0=a_(Ot),ye=z("ZodType",(t,e)=>(ge.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:_s(t,"input"),output:_s(t,"output")}}),t.toJSONSchema=Bg(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.check=(...n)=>t.clone(Xn(e,{checks:[...e.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),t.clone=(n,r)=>On(t,n,r),t.brand=()=>t,t.register=(n,r)=>(n.add(t,r),t),t.parse=(n,r)=>k0(t,n,r,{callee:t.parse}),t.safeParse=(n,r)=>z0(t,n,r),t.parseAsync=async(n,r)=>T0(t,n,r,{callee:t.parseAsync}),t.safeParseAsync=async(n,r)=>C0(t,n,r),t.spa=t.safeParseAsync,t.encode=(n,r)=>O0(t,n,r),t.decode=(n,r)=>E0(t,n,r),t.encodeAsync=async(n,r)=>$0(t,n,r),t.decodeAsync=async(n,r)=>P0(t,n,r),t.safeEncode=(n,r)=>A0(t,n,r),t.safeDecode=(n,r)=>I0(t,n,r),t.safeEncodeAsync=async(n,r)=>D0(t,n,r),t.safeDecodeAsync=async(n,r)=>M0(t,n,r),t.refine=(n,r)=>t.check(Pv(n,r)),t.superRefine=n=>t.check(Av(n)),t.overwrite=n=>t.check(Tr(n)),t.optional=()=>wu(t),t.nullable=()=>Su(t),t.nullish=()=>wu(Su(t)),t.nonoptional=n=>kv(t,n),t.array=()=>Oo(t),t.or=n=>Eo([t,n]),t.and=n=>pv(t,n),t.transform=n=>Ao(t,bu(n)),t.default=n=>xv(t,n),t.prefault=n=>Sv(t,n),t.catch=n=>zv(t,n),t.pipe=n=>Ao(t,n),t.readonly=()=>Ev(t),t.describe=n=>{const r=t.clone();return li.add(r,{description:n}),r},Object.defineProperty(t,"description",{get(){var n;return(n=li.get(t))==null?void 0:n.description},configurable:!0}),t.meta=(...n)=>{if(n.length===0)return li.get(t);const r=t.clone();return li.add(r,n[0]),r},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t)),du=z("_ZodString",(t,e)=>{ko.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(r,i,s)=>Hg(t,r,i);const n=t._zod.bag;t.format=n.format??null,t.minLength=n.minimum??null,t.maxLength=n.maximum??null,t.regex=(...r)=>t.check(Og(...r)),t.includes=(...r)=>t.check(Pg(...r)),t.startsWith=(...r)=>t.check(Ag(...r)),t.endsWith=(...r)=>t.check(Ig(...r)),t.min=(...r)=>t.check(ps(...r)),t.max=(...r)=>t.check(au(...r)),t.length=(...r)=>t.check(lu(...r)),t.nonempty=(...r)=>t.check(ps(1,...r)),t.lowercase=r=>t.check(Eg(r)),t.uppercase=r=>t.check($g(r)),t.trim=()=>t.check(Mg()),t.normalize=(...r)=>t.check(Dg(...r)),t.toLowerCase=()=>t.check(Ng()),t.toUpperCase=()=>t.check(Rg()),t.slugify=()=>t.check(Fg())}),N0=z("ZodString",(t,e)=>{ko.init(t,e),du.init(t,e),t.email=n=>t.check(qm(R0,n)),t.url=n=>t.check(eg(F0,n)),t.jwt=n=>t.check(_g(Q0,n)),t.emoji=n=>t.check(tg(Z0,n)),t.guid=n=>t.check(ru(hu,n)),t.uuid=n=>t.check(Ym(ms,n)),t.uuidv4=n=>t.check(Gm(ms,n)),t.uuidv6=n=>t.check(Xm(ms,n)),t.uuidv7=n=>t.check(Qm(ms,n)),t.nanoid=n=>t.check(ng(L0,n)),t.guid=n=>t.check(ru(hu,n)),t.cuid=n=>t.check(rg(j0,n)),t.cuid2=n=>t.check(ig(U0,n)),t.ulid=n=>t.check(sg(B0,n)),t.base64=n=>t.check(dg(Y0,n)),t.base64url=n=>t.check(hg(G0,n)),t.xid=n=>t.check(og(V0,n)),t.ksuid=n=>t.check(ag(H0,n)),t.ipv4=n=>t.check(lg(W0,n)),t.ipv6=n=>t.check(cg(J0,n)),t.cidrv4=n=>t.check(ug(K0,n)),t.cidrv6=n=>t.check(fg(q0,n)),t.e164=n=>t.check(pg(X0,n)),t.datetime=n=>t.check(g0(n)),t.date=n=>t.check(y0(n)),t.time=n=>t.check(x0(n)),t.duration=n=>t.check(S0(n))});function Qn(t){return Km(N0,t)}const Se=z("ZodStringFormat",(t,e)=>{be.init(t,e),du.init(t,e)}),R0=z("ZodEmail",(t,e)=>{X_.init(t,e),Se.init(t,e)}),hu=z("ZodGUID",(t,e)=>{Y_.init(t,e),Se.init(t,e)}),ms=z("ZodUUID",(t,e)=>{G_.init(t,e),Se.init(t,e)}),F0=z("ZodURL",(t,e)=>{Q_.init(t,e),Se.init(t,e)}),Z0=z("ZodEmoji",(t,e)=>{em.init(t,e),Se.init(t,e)}),L0=z("ZodNanoID",(t,e)=>{tm.init(t,e),Se.init(t,e)}),j0=z("ZodCUID",(t,e)=>{nm.init(t,e),Se.init(t,e)}),U0=z("ZodCUID2",(t,e)=>{rm.init(t,e),Se.init(t,e)}),B0=z("ZodULID",(t,e)=>{im.init(t,e),Se.init(t,e)}),V0=z("ZodXID",(t,e)=>{sm.init(t,e),Se.init(t,e)}),H0=z("ZodKSUID",(t,e)=>{om.init(t,e),Se.init(t,e)}),W0=z("ZodIPv4",(t,e)=>{fm.init(t,e),Se.init(t,e)}),J0=z("ZodIPv6",(t,e)=>{dm.init(t,e),Se.init(t,e)}),K0=z("ZodCIDRv4",(t,e)=>{hm.init(t,e),Se.init(t,e)}),q0=z("ZodCIDRv6",(t,e)=>{pm.init(t,e),Se.init(t,e)}),Y0=z("ZodBase64",(t,e)=>{_m.init(t,e),Se.init(t,e)}),G0=z("ZodBase64URL",(t,e)=>{gm.init(t,e),Se.init(t,e)}),X0=z("ZodE164",(t,e)=>{vm.init(t,e),Se.init(t,e)}),Q0=z("ZodJWT",(t,e)=>{bm.init(t,e),Se.init(t,e)}),pu=z("ZodNumber",(t,e)=>{Vc.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(r,i,s)=>Wg(t,r,i),t.gt=(r,i)=>t.check(su(r,i)),t.gte=(r,i)=>t.check(Co(r,i)),t.min=(r,i)=>t.check(Co(r,i)),t.lt=(r,i)=>t.check(iu(r,i)),t.lte=(r,i)=>t.check(zo(r,i)),t.max=(r,i)=>t.check(zo(r,i)),t.int=r=>t.check(_u(r)),t.safe=r=>t.check(_u(r)),t.positive=r=>t.check(su(0,r)),t.nonnegative=r=>t.check(Co(0,r)),t.negative=r=>t.check(iu(0,r)),t.nonpositive=r=>t.check(zo(0,r)),t.multipleOf=(r,i)=>t.check(ou(r,i)),t.step=(r,i)=>t.check(ou(r,i)),t.finite=()=>t;const n=t._zod.bag;t.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),t.isFinite=!0,t.format=n.format??null});function ev(t){return bg(pu,t)}const tv=z("ZodNumberFormat",(t,e)=>{xm.init(t,e),pu.init(t,e)});function _u(t){return xg(tv,t)}const nv=z("ZodBoolean",(t,e)=>{wm.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>Jg(t,n,r)});function ci(t){return wg(nv,t)}const rv=z("ZodUndefined",(t,e)=>{Sm.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>qg(t,n)});function mu(t){return Sg(rv,t)}const iv=z("ZodNull",(t,e)=>{km.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>Kg(t,n,r)});function gu(t){return kg(iv,t)}const sv=z("ZodAny",(t,e)=>{Tm.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>Gg()});function ov(){return Tg(sv)}const av=z("ZodUnknown",(t,e)=>{zm.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>Xg()});function vu(){return zg(av)}const lv=z("ZodNever",(t,e)=>{Cm.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>Yg(t,n,r)});function cv(t){return Cg(lv,t)}const uv=z("ZodArray",(t,e)=>{Om.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>r0(t,n,r,i),t.element=e.element,t.min=(n,r)=>t.check(ps(n,r)),t.nonempty=n=>t.check(ps(1,n)),t.max=(n,r)=>t.check(au(n,r)),t.length=(n,r)=>t.check(lu(n,r)),t.unwrap=()=>t.element});function Oo(t,e){return Zg(uv,t,e)}const fv=z("ZodObject",(t,e)=>{$m.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>i0(t,n,r,i),fe(t,"shape",()=>e.shape),t.keyof=()=>_t(Object.keys(t._zod.def.shape)),t.catchall=n=>t.clone({...t._zod.def,catchall:n}),t.passthrough=()=>t.clone({...t._zod.def,catchall:vu()}),t.loose=()=>t.clone({...t._zod.def,catchall:vu()}),t.strict=()=>t.clone({...t._zod.def,catchall:cv()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=n=>Hp(t,n),t.safeExtend=n=>Wp(t,n),t.merge=n=>Jp(t,n),t.pick=n=>Bp(t,n),t.omit=n=>Vp(t,n),t.partial=(...n)=>Kp(xu,t,n[0]),t.required=(...n)=>qp(ku,t,n[0])});function Ve(t,e){const n={type:"object",shape:t??{},...U(e)};return new fv(n)}const yu=z("ZodUnion",(t,e)=>{qc.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>s0(t,n,r,i),t.options=e.options});function Eo(t,e){return new yu({type:"union",options:t,...U(e)})}const dv=z("ZodDiscriminatedUnion",(t,e)=>{yu.init(t,e),Pm.init(t,e)});function $o(t,e,n){return new dv({type:"union",options:e,discriminator:t,...U(n)})}const hv=z("ZodIntersection",(t,e)=>{Am.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>o0(t,n,r,i)});function pv(t,e){return new hv({type:"intersection",left:t,right:e})}const _v=z("ZodRecord",(t,e)=>{Im.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>a0(t,n,r,i),t.keyType=e.keyType,t.valueType=e.valueType});function mv(t,e,n){return new _v({type:"record",keyType:t,valueType:e,...U(n)})}const Po=z("ZodEnum",(t,e)=>{Dm.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(r,i,s)=>Qg(t,r,i),t.enum=e.entries,t.options=Object.values(e.entries);const n=new Set(Object.keys(e.entries));t.extract=(r,i)=>{const s={};for(const o of r)if(n.has(o))s[o]=e.entries[o];else throw new Error(`Key ${o} not found in enum`);return new Po({...e,checks:[],...U(i),entries:s})},t.exclude=(r,i)=>{const s={...e.entries};for(const o of r)if(n.has(o))delete s[o];else throw new Error(`Key ${o} not found in enum`);return new Po({...e,checks:[],...U(i),entries:s})}});function _t(t,e){const n=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new Po({type:"enum",entries:n,...U(e)})}const gv=z("ZodLiteral",(t,e)=>{Mm.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>e0(t,n,r),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function He(t,e){return new gv({type:"literal",values:Array.isArray(t)?t:[t],...U(e)})}const vv=z("ZodTransform",(t,e)=>{Nm.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>n0(t,n),t._zod.parse=(n,r)=>{if(r.direction==="backward")throw new zc(t.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(ai(s,n.value,e));else{const o=s;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),n.issues.push(ai(o))}};const i=e.transform(n.value,n);return i instanceof Promise?i.then(s=>(n.value=s,n)):(n.value=i,n)}});function bu(t){return new vv({type:"transform",transform:t})}const xu=z("ZodOptional",(t,e)=>{Rm.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>_0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function wu(t){return new xu({type:"optional",innerType:t})}const yv=z("ZodNullable",(t,e)=>{Fm.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>l0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function Su(t){return new yv({type:"nullable",innerType:t})}const bv=z("ZodDefault",(t,e)=>{Zm.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>u0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function xv(t,e){return new bv({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():Ac(e)}})}const wv=z("ZodPrefault",(t,e)=>{Lm.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>f0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function Sv(t,e){return new wv({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():Ac(e)}})}const ku=z("ZodNonOptional",(t,e)=>{jm.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>c0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function kv(t,e){return new ku({type:"nonoptional",innerType:t,...U(e)})}const Tv=z("ZodCatch",(t,e)=>{Um.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>d0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function zv(t,e){return new Tv({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}const Cv=z("ZodPipe",(t,e)=>{Bm.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>h0(t,n,r,i),t.in=e.in,t.out=e.out});function Ao(t,e){return new Cv({type:"pipe",in:t,out:e})}const Ov=z("ZodReadonly",(t,e)=>{Vm.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>p0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function Ev(t){return new Ov({type:"readonly",innerType:t})}const $v=z("ZodCustom",(t,e)=>{Hm.init(t,e),ye.init(t,e),t._zod.processJSONSchema=(n,r,i)=>t0(t,n)});function Pv(t,e={}){return Lg($v,t,e)}function Av(t){return jg(t)}function Iv(t,e){return Ao(bu(t),e)}const gs=t=>{if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(r=>gs(r));const e={t:"title",s:"subtitle",d:"description",desc:"description",bg:"background",img:"image",fs:"features",tl:"timeline",st:"steps"},n={};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const i=e[r]||r,s=t[r];n[i]=gs(s)}return n},Jt=t=>Eo([t,Oo(t),gu(),mu()]).transform(e=>e==null?[]:Array.isArray(e)?e:[e]),ce=Eo([Qn(),ev(),gu(),mu()]).transform(t=>t==null?"":String(t)),Io=Qn().describe("Icon name (e.g. 'star', 'users', 'arrow-right'). Use standard Lucide/FontAwesome names."),zr=Ve({id:Qn().optional().describe("Unique ID for the slide. Useful for navigation."),sizing:_t(["viewport","container"]).optional().describe("How the slide fits the screen. Default: 'viewport'."),meta:mv(Qn(),ov()).optional().describe("Arbitrary metadata for custom behavior.")}),Dv=zr.extend({type:He("statement").describe("Use for high-impact titles, covers, or quotes."),title:ce.describe("Main headline. Keep it punchy (3-6 words)."),subtitle:ce.optional().describe("Supporting text or attribution."),tag:ce.optional().describe("Small eyebrow tag above the title.")}),Mv=Ve({title:ce.describe("Feature name."),description:ce.describe("Short benefit description."),icon:Io.optional().describe("Visual icon for the feature.")}),Nv=zr.extend({type:He("features").describe("Use for lists of benefits, stats, or grid items."),title:ce.describe("Section header."),description:ce.optional().describe("Contextual description."),features:Jt(Mv).describe("Array of feature cards.")}),Tu=Ve({date:ce.describe("Time marker (Year, Date, or 'Now')."),title:ce.describe("Event title."),description:ce.describe("Event details (1-2 sentences)."),icon:Io.optional().describe("Optional marker icon.")}),Rv=zr.extend({type:He("timeline").describe("Use for history, roadmaps, or chronological steps."),title:ce.describe("Timeline header."),subtitle:ce.optional(),timeline:Jt(Tu).describe("Ordered events.")}),zu=Ve({step:ce.describe("Step number/label (e.g., '01', 'A')."),title:ce.describe("Action title."),description:ce.optional().describe("Action details."),icon:Io.optional()}),Fv=zr.extend({type:He("steps").describe("Use for tutorials, 'how-to' guides, or process flows."),title:ce.describe("Process header."),subtitle:ce.optional(),steps:Jt(zu).describe("Sequential steps.")}),Zv=zr.extend({type:He("half").describe("Use when you have a strong visual + explanations."),imageSide:_t(["left","right"]).default("left").describe("Which side the image goes on."),image:ce.describe("URL to the image."),title:ce.describe("Headline."),tag:ce.optional(),paragraphs:Jt(Qn()).describe("Array of text blocks/paragraphs."),cta:ce.optional().describe("Call to Action label (button).")}),ui=_t(["none","xs","sm","md","lg","xl","2xl"]).describe("Spacing size token."),dn=_t(["auto","quarter","third","half","two-thirds","three-quarters","full"]).describe("Element size in container."),Lv=_t(["top","center","bottom"]).describe("Vertical alignment."),jv=_t(["left","center","right"]).describe("Horizontal alignment."),Cu=_t(["left","center","right"]).describe("Text alignment."),Ou=Ve({type:He("title").describe("Large heading text."),text:ce.describe("The heading text."),size:_t(["lg","xl","2xl","3xl"]).optional().describe("Heading size. Default: 'xl'."),align:Cu.optional().describe("Text alignment. Default: 'left'.")}),Eu=Ve({type:He("text").describe("Body paragraph text."),text:ce.describe("The paragraph text."),align:Cu.optional().describe("Text alignment. Default: 'left'."),muted:ci().optional().describe("Muted/subtle appearance. Default: false.")}),$u=Ve({type:He("bullets").describe("Unordered bullet list."),items:Jt(Qn()).describe("List items.")}),Pu=Ve({type:He("ordered").describe("Numbered list."),items:Jt(Qn()).describe("List items.")}),Uv=Ve({type:He("image").describe("Visual media element."),src:ce.describe("Image URL."),alt:ce.optional().describe("Alt text for accessibility."),fill:ci().optional().describe("Fill container edge-to-edge. Default: true."),fit:_t(["cover","contain"]).optional().describe("Object-fit when fill. Default: 'cover'."),rounded:_t(["none","sm","md","lg","xl","full"]).optional().describe("Border radius.")}),Au=Ve({type:He("button").describe("Call-to-action button."),label:ce.describe("Button label text."),action:ce.optional().describe("Action identifier emitted on click."),variant:_t(["primary","secondary","outline","ghost"]).optional().describe("Visual variant. Default: 'primary'."),fullWidth:ci().optional().describe("Full width button. Default: false.")}),Iu=Ve({type:He("timeline").describe("Embedded timeline with events."),items:Jt(Tu).describe("Timeline events."),compact:ci().optional().describe("Compact display mode. Default: false.")}),Du=Ve({type:He("stepper").describe("Embedded step-by-step process."),items:Jt(zu).describe("Step items."),compact:ci().optional().describe("Compact display mode. Default: false.")}),Bv=Ve({type:He("spacer").describe("Adds visual spacing."),size:ui.optional().describe("Size of the space. Default: 'md'.")}),Vv=$o("type",[Ou,Eu,$u,Pu,Au,Iu,Du,Bv]),Hv=Ve({type:He("content").describe("Groups child elements vertically with alignment control."),elements:Jt(Vv).describe("Child elements."),valign:Lv.optional().describe("Vertical alignment. Default: 'center'."),halign:jv.optional().describe("Horizontal alignment. Default: 'left'."),gap:ui.optional().describe("Gap between children. Default: 'md'."),padding:ui.optional().describe("Internal padding. Default: 'lg'."),size:dn.optional().describe("Size in parent flex container.")}),Wv=$o("type",[Uv.extend({size:dn.optional()}),Hv,Ou.extend({size:dn.optional()}),Eu.extend({size:dn.optional()}),$u.extend({size:dn.optional()}),Pu.extend({size:dn.optional()}),Au.extend({size:dn.optional()}),Iu.extend({size:dn.optional()}),Du.extend({size:dn.optional()})]),Jv=zr.extend({type:He("flex").describe("Flow-based layout. Elements flow in order with semantic sizing."),direction:_t(["horizontal","vertical"]).optional().describe("Main flow direction. Default: 'horizontal'."),gap:ui.optional().describe("Gap between elements. Default: 'none'."),padding:ui.optional().describe("Container padding. Default: 'none'."),elements:Jt(Wv).describe("Flex elements in flow order.")}),Kv=$o("type",[Dv,Nv,Rv,Fv,Zv,Jv]),qv=Ve({title:ce.describe("Title of the entire presentation."),author:ce.optional(),date:ce.optional()}).passthrough();Ve({meta:qv.describe("Global deck settings."),slides:Oo(Iv(gs,Kv)).describe("Ordered array of slide definitions.")});const fi=Symbol("LuminaStore"),Yv={loop:!1,navigation:!0,keyboard:!0,touch:!0,debug:!1,theme:"default",ui:{visible:!0,showProgressBar:!0,showSlideCount:!0,showControls:!0},keys:{next:["ArrowRight"," ","Enter"],prev:["ArrowLeft","Backspace"]},animation:{enabled:!0,type:"cascade",durationIn:1,durationOut:.5,stagger:.1,ease:"power3.out"}};function Cr(t){if(typeof t=="string")return Np(t);if(Array.isArray(t))return t.map(Cr);if(t&&typeof t=="object"){const e={};for(const n in t)e[n]=Cr(t[n]);return e}return t}function Mu(t,e){if(typeof t!="object"||t===null||typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(Cr);const n={...t};for(const r in e)e[r]===Object(e[r])?r in t?n[r]=Mu(t[r],e[r]):Object.assign(n,{[r]:Cr(e[r])}):Object.assign(n,{[r]:Cr(e[r])});return n}function Gv(t={}){const e=Li({deck:null,currentIndex:0,options:{...Yv,...t},isReady:!1,actionHistory:[]}),n=()=>!e.deck||e.deck.slides.length===0?null:e.deck.slides[e.currentIndex]||null,r=()=>e.deck?e.options.loop?!0:e.currentIndex<e.deck.slides.length-1:!1,i=()=>e.deck?e.options.loop?!0:e.currentIndex>0:!1,s=()=>!e.deck||e.deck.slides.length<=1?0:e.currentIndex/(e.deck.slides.length-1);function o(h){e.options={...e.options,...h},h.theme&&(h.theme,e.options.theme=h.theme),h.ui&&(e.options.ui={...e.options.ui,...h.ui}),h.keys&&(e.options.keys={...e.options.keys,...h.keys}),h.animation&&(e.options.animation={...e.options.animation,...h.animation})}function a(h){if(!h||!Array.isArray(h.slides)){console.error("[LuminaStore] Invalid deck format");return}const _=gs(h);e.deck=Cr(_),e.currentIndex=0,e.isReady=!0,e.actionHistory=[]}function l(h){e.deck&&(e.deck=Mu(e.deck,h))}function u(h){e.actionHistory.push(h),e.actionHistory.length>50&&e.actionHistory.shift()}function c(){var p;if(!r())return;const h=((p=e.deck)==null?void 0:p.slides.length)||0;let _=e.currentIndex;e.options.loop?_=(e.currentIndex+1)%h:_++,_!==e.currentIndex&&(e.currentIndex=_)}function f(){var p;if(!i())return;const h=((p=e.deck)==null?void 0:p.slides.length)||0;let _=e.currentIndex;e.options.loop?_=(e.currentIndex-1+h)%h:_--,_!==e.currentIndex&&(e.currentIndex=_)}function d(h){e.deck&&h>=0&&h<e.deck.slides.length&&e.currentIndex!==h&&(e.currentIndex=h)}return{state:ji(e),currentSlide:n,hasNext:r,hasPrev:i,progress:s,setOptions:o,loadDeck:a,patchDeck:l,recordAction:u,next:c,prev:f,goto:d}}function Xv(){const t=Sn(fi);if(!t)throw new Error("Lumina: Component must be used within a Lumina instance.");return{slide:Ce(()=>t.currentSlide()),index:Ce(()=>t.state.currentIndex),total:Ce(()=>{var e;return((e=t.state.deck)==null?void 0:e.slides.length)||0}),next:t.next,prev:t.prev,goto:t.goto,options:t.state.options}}function Qv(){const t=Sn(fi);if(!t)return;let e=0;const n=300,r=i=>{var u,c;const{options:s}=t.state;if(!s.keyboard||!s.navigation)return;const o=Date.now();if(o-e<n)return;const a=((u=s.keys)==null?void 0:u.next)||[],l=((c=s.keys)==null?void 0:c.prev)||[];a.includes(i.key)?(t.next(),e=o):l.includes(i.key)&&(t.prev(),e=o)};Hn(()=>{window.addEventListener("keydown",r)}),Wn(()=>{window.removeEventListener("keydown",r)})}class Nu{constructor(){nt(this,"handlers",new Map)}on(e,n){this.handlers.has(e)||this.handlers.set(e,new Set),this.handlers.get(e).add(n)}off(e,n){const r=this.handlers.get(e);r&&r.delete(n)}emit(e,n){const r=this.handlers.get(e);r&&r.forEach(i=>{try{i(n)}catch(s){console.error(`[LuminaBus] Error in handler for event "${e}":`,s)}})}clear(){this.handlers.clear()}}const hn=new Nu;function pn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ru(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*!
42
42
  * GSAP 3.14.2
43
43
  * https://gsap.com
44
44
  *
45
45
  * @license Copyright 2008-2025, GreenSock. All rights reserved.
46
46
  * Subject to the terms at https://gsap.com/standard-license
47
47
  * @author: Jack Doyle, jack@greensock.com
48
- */var Ne={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Ds={duration:.5,overwrite:!1,delay:0},Gl,ne,zt,tn=1e8,yt=1/tn,Ql=Math.PI*2,OS=Ql/4,AS=0,Xd=Math.sqrt,zS=Math.cos,DS=Math.sin,Jt=function(t){return typeof t=="string"},Bt=function(t){return typeof t=="function"},Hn=function(t){return typeof t=="number"},tc=function(t){return typeof t>"u"},wn=function(t){return typeof t=="object"},Ce=function(t){return t!==!1},ec=function(){return typeof window<"u"},Qo=function(t){return Bt(t)||Jt(t)},qd=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ue=Array.isArray,ES=/random\([^)]+\)/g,IS=/,\s*/g,Jd=/(?:-?\.?\d|\.)+/gi,Gd=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Es=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,nc=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Qd=/[+-]=-?[.\d]+/,RS=/[^,'"\[\]\s]+/gi,LS=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Lt,Sn,ic,sc,Be={},ta={},tp,ep=function(t){return(ta=Rs(t,Be))&&Ae},rc=function(t,n){return console.warn("Invalid property",t,"set to",n,"Missing plugin? gsap.registerPlugin()")},wr=function(t,n){return!n&&console.warn(t)},np=function(t,n){return t&&(Be[t]=n)&&ta&&(ta[t]=n)||Be},Sr=function(){return 0},FS={suppressEvents:!0,isStart:!0,kill:!1},ea={suppressEvents:!0,kill:!1},$S={suppressEvents:!0},oc={},di=[],ac={},ip,je={},lc={},sp=30,na=[],cc="",uc=function(t){var n=t[0],i,s;if(wn(n)||Bt(n)||(t=[t]),!(i=(n._gsap||{}).harness)){for(s=na.length;s--&&!na[s].targetTest(n););i=na[s]}for(s=t.length;s--;)t[s]&&(t[s]._gsap||(t[s]._gsap=new Ep(t[s],i)))||t.splice(s,1);return t},Ui=function(t){return t._gsap||uc(nn(t))[0]._gsap},rp=function(t,n,i){return(i=t[n])&&Bt(i)?t[n]():tc(i)&&t.getAttribute&&t.getAttribute(n)||i},Pe=function(t,n){return(t=t.split(",")).forEach(n)||t},Wt=function(t){return Math.round(t*1e5)/1e5||0},Ft=function(t){return Math.round(t*1e7)/1e7||0},Is=function(t,n){var i=n.charAt(0),s=parseFloat(n.substr(2));return t=parseFloat(t),i==="+"?t+s:i==="-"?t-s:i==="*"?t*s:t/s},NS=function(t,n){for(var i=n.length,s=0;t.indexOf(n[s])<0&&++s<i;);return s<i},ia=function(){var t=di.length,n=di.slice(0),i,s;for(ac={},di.length=0,i=0;i<t;i++)s=n[i],s&&s._lazy&&(s.render(s._lazy[0],s._lazy[1],!0)._lazy=0)},fc=function(t){return!!(t._initted||t._startAt||t.add)},op=function(t,n,i,s){di.length&&!ne&&ia(),t.render(n,i,!!(ne&&n<0&&fc(t))),di.length&&!ne&&ia()},ap=function(t){var n=parseFloat(t);return(n||n===0)&&(t+"").match(RS).length<2?n:Jt(t)?t.trim():t},lp=function(t){return t},Ve=function(t,n){for(var i in n)i in t||(t[i]=n[i]);return t},BS=function(t){return function(n,i){for(var s in i)s in n||s==="duration"&&t||s==="ease"||(n[s]=i[s])}},Rs=function(t,n){for(var i in n)t[i]=n[i];return t},cp=function e(t,n){for(var i in n)i!=="__proto__"&&i!=="constructor"&&i!=="prototype"&&(t[i]=wn(n[i])?e(t[i]||(t[i]={}),n[i]):n[i]);return t},sa=function(t,n){var i={},s;for(s in t)s in n||(i[s]=t[s]);return i},kr=function(t){var n=t.parent||Lt,i=t.keyframes?BS(ue(t.keyframes)):Ve;if(Ce(t.inherit))for(;n;)i(t,n.vars.defaults),n=n.parent||n._dp;return t},jS=function(t,n){for(var i=t.length,s=i===n.length;s&&i--&&t[i]===n[i];);return i<0},up=function(t,n,i,s,r){var o=t[s],a;if(r)for(a=n[r];o&&o[r]>a;)o=o._prev;return o?(n._next=o._next,o._next=n):(n._next=t[i],t[i]=n),n._next?n._next._prev=n:t[s]=n,n._prev=o,n.parent=n._dp=t,n},ra=function(t,n,i,s){i===void 0&&(i="_first"),s===void 0&&(s="_last");var r=n._prev,o=n._next;r?r._next=o:t[i]===n&&(t[i]=o),o?o._prev=r:t[s]===n&&(t[s]=r),n._next=n._prev=n.parent=null},pi=function(t,n){t.parent&&(!n||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Yi=function(t,n){if(t&&(!n||n._end>t._dur||n._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t},VS=function(t){for(var n=t.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return t},hc=function(t,n,i,s){return t._startAt&&(ne?t._startAt.revert(ea):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(n,!0,s))},WS=function e(t){return!t||t._ts&&e(t.parent)},fp=function(t){return t._repeat?Ls(t._tTime,t=t.duration()+t._rDelay)*t:0},Ls=function(t,n){var i=Math.floor(t=Ft(t/n));return t&&i===t?i-1:i},oa=function(t,n){return(t-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},aa=function(t){return t._end=Ft(t._start+(t._tDur/Math.abs(t._ts||t._rts||yt)||0))},la=function(t,n){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=Ft(i._time-(t._ts>0?n/t._ts:((t._dirty?t.totalDuration():t._tDur)-n)/-t._ts)),aa(t),i._dirty||Yi(i,t)),t},hp=function(t,n){var i;if((n._time||!n._dur&&n._initted||n._start<t._time&&(n._dur||!n.add))&&(i=oa(t.rawTime(),n),(!n._dur||Mr(0,n.totalDuration(),i)-n._tTime>yt)&&n.render(i,!0)),Yi(t,n)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(i=t;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-yt}},kn=function(t,n,i,s){return n.parent&&pi(n),n._start=Ft((Hn(i)?i:i||t!==Lt?en(t,i,n):t._time)+n._delay),n._end=Ft(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),up(t,n,"_first","_last",t._sort?"_start":0),dc(n)||(t._recent=n),s||hp(t,n),t._ts<0&&la(t,t._tTime),t},dp=function(t,n){return(Be.ScrollTrigger||rc("scrollTrigger",n))&&Be.ScrollTrigger.create(n,t)},pp=function(t,n,i,s,r){if(wc(t,n,r),!t._initted)return 1;if(!i&&t._pt&&!ne&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&ip!==He.frame)return di.push(t),t._lazy=[r,s],1},HS=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},dc=function(t){var n=t.data;return n==="isFromStart"||n==="isStart"},ZS=function(t,n,i,s){var r=t.ratio,o=n<0||!n&&(!t._start&&HS(t)&&!(!t._initted&&dc(t))||(t._ts<0||t._dp._ts<0)&&!dc(t))?0:1,a=t._rDelay,l=0,c,u,f;if(a&&t._repeat&&(l=Mr(0,t._tDur,n),u=Ls(l,a),t._yoyo&&u&1&&(o=1-o),u!==Ls(t._tTime,a)&&(r=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==r||ne||s||t._zTime===yt||!n&&t._zTime){if(!t._initted&&pp(t,n,s,i,l))return;for(f=t._zTime,t._zTime=n||(i?yt:0),i||(i=n&&!f),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=l,c=t._pt;c;)c.r(o,c.d),c=c._next;n<0&&hc(t,n,i,!0),t._onUpdate&&!i&&We(t,"onUpdate"),l&&t._repeat&&!i&&t.parent&&We(t,"onRepeat"),(n>=t._tDur||n<0)&&t.ratio===o&&(o&&pi(t,1),!i&&!ne&&(We(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=n)},US=function(t,n,i){var s;if(i>n)for(s=t._first;s&&s._start<=i;){if(s.data==="isPause"&&s._start>n)return s;s=s._next}else for(s=t._last;s&&s._start>=i;){if(s.data==="isPause"&&s._start<n)return s;s=s._prev}},Fs=function(t,n,i,s){var r=t._repeat,o=Ft(n)||0,a=t._tTime/t._tDur;return a&&!s&&(t._time*=o/t._dur),t._dur=o,t._tDur=r?r<0?1e10:Ft(o*(r+1)+t._rDelay*r):o,a>0&&!s&&la(t,t._tTime=t._tDur*a),t.parent&&aa(t),i||Yi(t.parent,t),t},gp=function(t){return t instanceof Se?Yi(t):Fs(t,t._dur)},YS={_start:0,endTime:Sr,totalDuration:Sr},en=function e(t,n,i){var s=t.labels,r=t._recent||YS,o=t.duration()>=tn?r.endTime(!1):t._dur,a,l,c;return Jt(n)&&(isNaN(n)||n in s)?(l=n.charAt(0),c=n.substr(-1)==="%",a=n.indexOf("="),l==="<"||l===">"?(a>=0&&(n=n.replace(/=/,"")),(l==="<"?r._start:r.endTime(r._repeat>=0))+(parseFloat(n.substr(1))||0)*(c?(a<0?r:i).totalDuration()/100:1)):a<0?(n in s||(s[n]=o),s[n]):(l=parseFloat(n.charAt(a-1)+n.substr(a+1)),c&&i&&(l=l/100*(ue(i)?i[0]:i).totalDuration()),a>1?e(t,n.substr(0,a-1),i)+l:o+l)):n==null?o:+n},Tr=function(t,n,i){var s=Hn(n[1]),r=(s?2:1)+(t<2?0:1),o=n[r],a,l;if(s&&(o.duration=n[1]),o.parent=i,t){for(a=o,l=i;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=Ce(l.vars.inherit)&&l.parent;o.immediateRender=Ce(a.immediateRender),t<2?o.runBackwards=1:o.startAt=n[r-1]}return new Ut(n[0],o,n[r+1])},gi=function(t,n){return t||t===0?n(t):n},Mr=function(t,n,i){return i<t?t:i>n?n:i},fe=function(t,n){return!Jt(t)||!(n=LS.exec(t))?"":n[1]},KS=function(t,n,i){return gi(i,function(s){return Mr(t,n,s)})},pc=[].slice,mp=function(t,n){return t&&wn(t)&&"length"in t&&(!n&&!t.length||t.length-1 in t&&wn(t[0]))&&!t.nodeType&&t!==Sn},XS=function(t,n,i){return i===void 0&&(i=[]),t.forEach(function(s){var r;return Jt(s)&&!n||mp(s,1)?(r=i).push.apply(r,nn(s)):i.push(s)})||i},nn=function(t,n,i){return zt&&!n&&zt.selector?zt.selector(t):Jt(t)&&!i&&(ic||!Ns())?pc.call((n||sc).querySelectorAll(t),0):ue(t)?XS(t,i):mp(t)?pc.call(t,0):t?[t]:[]},gc=function(t){return t=nn(t)[0]||wr("Invalid scope")||{},function(n){var i=t.current||t.nativeElement||t;return nn(n,i.querySelectorAll?i:i===t?wr("Invalid scope")||sc.createElement("div"):t)}},_p=function(t){return t.sort(function(){return .5-Math.random()})},bp=function(t){if(Bt(t))return t;var n=wn(t)?t:{each:t},i=Ki(n.ease),s=n.from||0,r=parseFloat(n.base)||0,o={},a=s>0&&s<1,l=isNaN(s)||a,c=n.axis,u=s,f=s;return Jt(s)?u=f={center:.5,edges:.5,end:1}[s]||0:!a&&l&&(u=s[0],f=s[1]),function(h,d,g){var p=(g||n).length,m=o[p],_,y,w,x,b,k,M,P,v;if(!m){if(v=n.grid==="auto"?0:(n.grid||[1,tn])[1],!v){for(M=-tn;M<(M=g[v++].getBoundingClientRect().left)&&v<p;);v<p&&v--}for(m=o[p]=[],_=l?Math.min(v,p)*u-.5:s%v,y=v===tn?0:l?p*f/v-.5:s/v|0,M=0,P=tn,k=0;k<p;k++)w=k%v-_,x=y-(k/v|0),m[k]=b=c?Math.abs(c==="y"?x:w):Xd(w*w+x*x),b>M&&(M=b),b<P&&(P=b);s==="random"&&_p(m),m.max=M-P,m.min=P,m.v=p=(parseFloat(n.amount)||parseFloat(n.each)*(v>p?p-1:c?c==="y"?p/v:v:Math.max(v,p/v))||0)*(s==="edges"?-1:1),m.b=p<0?r-p:r,m.u=fe(n.amount||n.each)||0,i=i&&p<0?Ap(i):i}return p=(m[h]-m.min)/m.max||0,Ft(m.b+(i?i(p):p)*m.v)+m.u}},mc=function(t){var n=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var s=Ft(Math.round(parseFloat(i)/t)*t*n);return(s-s%1)/n+(Hn(i)?0:fe(i))}},yp=function(t,n){var i=ue(t),s,r;return!i&&wn(t)&&(s=i=t.radius||tn,t.values?(t=nn(t.values),(r=!Hn(t[0]))&&(s*=s)):t=mc(t.increment)),gi(n,i?Bt(t)?function(o){return r=t(o),Math.abs(r-o)<=s?r:o}:function(o){for(var a=parseFloat(r?o.x:o),l=parseFloat(r?o.y:0),c=tn,u=0,f=t.length,h,d;f--;)r?(h=t[f].x-a,d=t[f].y-l,h=h*h+d*d):h=Math.abs(t[f]-a),h<c&&(c=h,u=f);return u=!s||c<=s?t[u]:o,r||u===o||Hn(o)?u:u+fe(o)}:mc(t))},xp=function(t,n,i,s){return gi(ue(t)?!n:i===!0?!!(i=0):!s,function(){return ue(t)?t[~~(Math.random()*t.length)]:(i=i||1e-5)&&(s=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((t-i/2+Math.random()*(n-t+i*.99))/i)*i*s)/s})},qS=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return function(s){return n.reduce(function(r,o){return o(r)},s)}},JS=function(t,n){return function(i){return t(parseFloat(i))+(n||fe(i))}},GS=function(t,n,i){return wp(t,n,0,1,i)},vp=function(t,n,i){return gi(i,function(s){return t[~~n(s)]})},QS=function e(t,n,i){var s=n-t;return ue(t)?vp(t,e(0,t.length),n):gi(i,function(r){return(s+(r-t)%s)%s+t})},tk=function e(t,n,i){var s=n-t,r=s*2;return ue(t)?vp(t,e(0,t.length-1),n):gi(i,function(o){return o=(r+(o-t)%r)%r||0,t+(o>s?r-o:o)})},Cr=function(t){return t.replace(ES,function(n){var i=n.indexOf("[")+1,s=n.substring(i||7,i?n.indexOf("]"):n.length-1).split(IS);return xp(i?s:+s[0],i?0:+s[1],+s[2]||1e-5)})},wp=function(t,n,i,s,r){var o=n-t,a=s-i;return gi(r,function(l){return i+((l-t)/o*a||0)})},ek=function e(t,n,i,s){var r=isNaN(t+n)?0:function(d){return(1-d)*t+d*n};if(!r){var o=Jt(t),a={},l,c,u,f,h;if(i===!0&&(s=1)&&(i=null),o)t={p:t},n={p:n};else if(ue(t)&&!ue(n)){for(u=[],f=t.length,h=f-2,c=1;c<f;c++)u.push(e(t[c-1],t[c]));f--,r=function(g){g*=f;var p=Math.min(h,~~g);return u[p](g-p)},i=n}else s||(t=Rs(ue(t)?[]:{},t));if(!u){for(l in n)xc.call(a,t,l,"get",n[l]);r=function(g){return Tc(g,a)||(o?t.p:t)}}}return gi(i,r)},Sp=function(t,n,i){var s=t.labels,r=tn,o,a,l;for(o in s)a=s[o]-n,a<0==!!i&&a&&r>(a=Math.abs(a))&&(l=o,r=a);return l},We=function(t,n,i){var s=t.vars,r=s[n],o=zt,a=t._ctx,l,c,u;if(r)return l=s[n+"Params"],c=s.callbackScope||t,i&&di.length&&ia(),a&&(zt=a),u=l?r.apply(c,l):r.call(c),zt=o,u},Pr=function(t){return pi(t),t.scrollTrigger&&t.scrollTrigger.kill(!!ne),t.progress()<1&&We(t,"onInterrupt"),t},$s,kp=[],Tp=function(t){if(t)if(t=!t.name&&t.default||t,ec()||t.headless){var n=t.name,i=Bt(t),s=n&&!i&&t.init?function(){this._props=[]}:t,r={init:Sr,render:Tc,add:xc,kill:_k,modifier:mk,rawVars:0},o={targetTest:0,get:0,getSetter:kc,aliases:{},register:0};if(Ns(),t!==s){if(je[n])return;Ve(s,Ve(sa(t,r),o)),Rs(s.prototype,Rs(r,sa(t,o))),je[s.prop=n]=s,t.targetTest&&(na.push(s),oc[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}np(n,s),t.register&&t.register(Ae,s,Oe)}else kp.push(t)},xt=255,Or={aqua:[0,xt,xt],lime:[0,xt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,xt],navy:[0,0,128],white:[xt,xt,xt],olive:[128,128,0],yellow:[xt,xt,0],orange:[xt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[xt,0,0],pink:[xt,192,203],cyan:[0,xt,xt],transparent:[xt,xt,xt,0]},_c=function(t,n,i){return t+=t<0?1:t>1?-1:0,(t*6<1?n+(i-n)*t*6:t<.5?i:t*3<2?n+(i-n)*(2/3-t)*6:n)*xt+.5|0},Mp=function(t,n,i){var s=t?Hn(t)?[t>>16,t>>8&xt,t&xt]:0:Or.black,r,o,a,l,c,u,f,h,d,g;if(!s){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),Or[t])s=Or[t];else if(t.charAt(0)==="#"){if(t.length<6&&(r=t.charAt(1),o=t.charAt(2),a=t.charAt(3),t="#"+r+r+o+o+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return s=parseInt(t.substr(1,6),16),[s>>16,s>>8&xt,s&xt,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),s=[t>>16,t>>8&xt,t&xt]}else if(t.substr(0,3)==="hsl"){if(s=g=t.match(Jd),!n)l=+s[0]%360/360,c=+s[1]/100,u=+s[2]/100,o=u<=.5?u*(c+1):u+c-u*c,r=u*2-o,s.length>3&&(s[3]*=1),s[0]=_c(l+1/3,r,o),s[1]=_c(l,r,o),s[2]=_c(l-1/3,r,o);else if(~t.indexOf("="))return s=t.match(Gd),i&&s.length<4&&(s[3]=1),s}else s=t.match(Jd)||Or.transparent;s=s.map(Number)}return n&&!g&&(r=s[0]/xt,o=s[1]/xt,a=s[2]/xt,f=Math.max(r,o,a),h=Math.min(r,o,a),u=(f+h)/2,f===h?l=c=0:(d=f-h,c=u>.5?d/(2-f-h):d/(f+h),l=f===r?(o-a)/d+(o<a?6:0):f===o?(a-r)/d+2:(r-o)/d+4,l*=60),s[0]=~~(l+.5),s[1]=~~(c*100+.5),s[2]=~~(u*100+.5)),i&&s.length<4&&(s[3]=1),s},Cp=function(t){var n=[],i=[],s=-1;return t.split(mi).forEach(function(r){var o=r.match(Es)||[];n.push.apply(n,o),i.push(s+=o.length+1)}),n.c=i,n},Pp=function(t,n,i){var s="",r=(t+s).match(mi),o=n?"hsla(":"rgba(",a=0,l,c,u,f;if(!r)return t;if(r=r.map(function(h){return(h=Mp(h,n,1))&&o+(n?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),i&&(u=Cp(t),l=i.c,l.join(s)!==u.c.join(s)))for(c=t.replace(mi,"1").split(Es),f=c.length-1;a<f;a++)s+=c[a]+(~l.indexOf(a)?r.shift()||o+"0,0,0,0)":(u.length?u:r.length?r:i).shift());if(!c)for(c=t.split(mi),f=c.length-1;a<f;a++)s+=c[a]+r[a];return s+c[f]},mi=function(){var e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in Or)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),nk=/hsl[a]?\(/,Op=function(t){var n=t.join(" "),i;if(mi.lastIndex=0,mi.test(n))return i=nk.test(n),t[1]=Pp(t[1],i),t[0]=Pp(t[0],i,Cp(t[1])),!0},Ar,He=function(){var e=Date.now,t=500,n=33,i=e(),s=i,r=1e3/240,o=r,a=[],l,c,u,f,h,d,g=function p(m){var _=e()-s,y=m===!0,w,x,b,k;if((_>t||_<0)&&(i+=_-n),s+=_,b=s-i,w=b-o,(w>0||y)&&(k=++f.frame,h=b-f.time*1e3,f.time=b=b/1e3,o+=w+(w>=r?4:r-w),x=1),y||(l=c(p)),x)for(d=0;d<a.length;d++)a[d](b,h,k,m)};return f={time:0,frame:0,tick:function(){g(!0)},deltaRatio:function(m){return h/(1e3/(m||60))},wake:function(){tp&&(!ic&&ec()&&(Sn=ic=window,sc=Sn.document||{},Be.gsap=Ae,(Sn.gsapVersions||(Sn.gsapVersions=[])).push(Ae.version),ep(ta||Sn.GreenSockGlobals||!Sn.gsap&&Sn||{}),kp.forEach(Tp)),u=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),c=u||function(m){return setTimeout(m,o-f.time*1e3+1|0)},Ar=1,g(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(l),Ar=0,c=Sr},lagSmoothing:function(m,_){t=m||1/0,n=Math.min(_||33,t)},fps:function(m){r=1e3/(m||240),o=f.time*1e3+r},add:function(m,_,y){var w=_?function(x,b,k,M){m(x,b,k,M),f.remove(w)}:m;return f.remove(m),a[y?"unshift":"push"](w),Ns(),w},remove:function(m,_){~(_=a.indexOf(m))&&a.splice(_,1)&&d>=_&&d--},_listeners:a},f}(),Ns=function(){return!Ar&&He.wake()},at={},ik=/^[\d.\-M][\d.\-,\s]/,sk=/["']/g,rk=function(t){for(var n={},i=t.substr(1,t.length-3).split(":"),s=i[0],r=1,o=i.length,a,l,c;r<o;r++)l=i[r],a=r!==o-1?l.lastIndexOf(","):l.length,c=l.substr(0,a),n[s]=isNaN(c)?c.replace(sk,"").trim():+c,s=l.substr(a+1).trim();return n},ok=function(t){var n=t.indexOf("(")+1,i=t.indexOf(")"),s=t.indexOf("(",n);return t.substring(n,~s&&s<i?t.indexOf(")",i+1):i)},ak=function(t){var n=(t+"").split("("),i=at[n[0]];return i&&n.length>1&&i.config?i.config.apply(null,~t.indexOf("{")?[rk(n[1])]:ok(t).split(",").map(ap)):at._CE&&ik.test(t)?at._CE("",t):i},Ap=function(t){return function(n){return 1-t(1-n)}},zp=function e(t,n){for(var i=t._first,s;i;)i instanceof Se?e(i,n):i.vars.yoyoEase&&(!i._yoyo||!i._repeat)&&i._yoyo!==n&&(i.timeline?e(i.timeline,n):(s=i._ease,i._ease=i._yEase,i._yEase=s,i._yoyo=n)),i=i._next},Ki=function(t,n){return t&&(Bt(t)?t:at[t]||ak(t))||n},Xi=function(t,n,i,s){i===void 0&&(i=function(l){return 1-n(1-l)}),s===void 0&&(s=function(l){return l<.5?n(l*2)/2:1-n((1-l)*2)/2});var r={easeIn:n,easeOut:i,easeInOut:s},o;return Pe(t,function(a){at[a]=Be[a]=r,at[o=a.toLowerCase()]=i;for(var l in r)at[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=at[a+"."+l]=r[l]}),r},Dp=function(t){return function(n){return n<.5?(1-t(1-n*2))/2:.5+t((n-.5)*2)/2}},bc=function e(t,n,i){var s=n>=1?n:1,r=(i||(t?.3:.45))/(n<1?n:1),o=r/Ql*(Math.asin(1/s)||0),a=function(u){return u===1?1:s*Math.pow(2,-10*u)*DS((u-o)*r)+1},l=t==="out"?a:t==="in"?function(c){return 1-a(1-c)}:Dp(a);return r=Ql/r,l.config=function(c,u){return e(t,c,u)},l},yc=function e(t,n){n===void 0&&(n=1.70158);var i=function(o){return o?--o*o*((n+1)*o+n)+1:0},s=t==="out"?i:t==="in"?function(r){return 1-i(1-r)}:Dp(i);return s.config=function(r){return e(t,r)},s};Pe("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var n=t<5?t+1:t;Xi(e+",Power"+(n-1),t?function(i){return Math.pow(i,n)}:function(i){return i},function(i){return 1-Math.pow(1-i,n)},function(i){return i<.5?Math.pow(i*2,n)/2:1-Math.pow((1-i)*2,n)/2})}),at.Linear.easeNone=at.none=at.Linear.easeIn,Xi("Elastic",bc("in"),bc("out"),bc()),function(e,t){var n=1/t,i=2*n,s=2.5*n,r=function(a){return a<n?e*a*a:a<i?e*Math.pow(a-1.5/t,2)+.75:a<s?e*(a-=2.25/t)*a+.9375:e*Math.pow(a-2.625/t,2)+.984375};Xi("Bounce",function(o){return 1-r(1-o)},r)}(7.5625,2.75),Xi("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)}),Xi("Circ",function(e){return-(Xd(1-e*e)-1)}),Xi("Sine",function(e){return e===1?1:-zS(e*OS)+1}),Xi("Back",yc("in"),yc("out"),yc()),at.SteppedEase=at.steps=Be.SteppedEase={config:function(t,n){t===void 0&&(t=1);var i=1/t,s=t+(n?0:1),r=n?1:0,o=1-yt;return function(a){return((s*Mr(0,o,a)|0)+r)*i}}},Ds.ease=at["quad.out"],Pe("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return cc+=e+","+e+"Params,"});var Ep=function(t,n){this.id=AS++,t._gsap=this,this.target=t,this.harness=n,this.get=n?n.get:rp,this.set=n?n.getSetter:kc},zr=function(){function e(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,Fs(this,+n.duration,1,1),this.data=n.data,zt&&(this._ctx=zt,zt.data.push(this)),Ar||He.wake()}var t=e.prototype;return t.delay=function(i){return i||i===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+i-this._delay),this._delay=i,this):this._delay},t.duration=function(i){return arguments.length?this.totalDuration(this._repeat>0?i+(i+this._rDelay)*this._repeat:i):this.totalDuration()&&this._dur},t.totalDuration=function(i){return arguments.length?(this._dirty=0,Fs(this,this._repeat<0?i:(i-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(i,s){if(Ns(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(la(this,i),!r._dp||r.parent||hp(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&i<this._tDur||this._ts<0&&i>0||!this._tDur&&!i)&&kn(this._dp,this,this._start-this._delay)}return(this._tTime!==i||!this._dur&&!s||this._initted&&Math.abs(this._zTime)===yt||!this._initted&&this._dur&&i||!i&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=i),op(this,i,s)),this},t.time=function(i,s){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+fp(this))%(this._dur+this._rDelay)||(i?this._dur:0),s):this._time},t.totalProgress=function(i,s){return arguments.length?this.totalTime(this.totalDuration()*i,s):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(i,s){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+fp(this),s):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(i,s){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*r,s):this._repeat?Ls(this._tTime,r)+1:1},t.timeScale=function(i,s){if(!arguments.length)return this._rts===-yt?0:this._rts;if(this._rts===i)return this;var r=this.parent&&this._ts?oa(this.parent._time,this):this._tTime;return this._rts=+i||0,this._ts=this._ps||i===-yt?0:this._rts,this.totalTime(Mr(-Math.abs(this._delay),this.totalDuration(),r),s!==!1),aa(this),VS(this)},t.paused=function(i){return arguments.length?(this._ps!==i&&(this._ps=i,i?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ns(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==yt&&(this._tTime-=yt)))),this):this._ps},t.startTime=function(i){if(arguments.length){this._start=Ft(i);var s=this.parent||this._dp;return s&&(s._sort||!this.parent)&&kn(s,this,this._start-this._delay),this}return this._start},t.endTime=function(i){return this._start+(Ce(i)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(i){var s=this.parent||this._dp;return s?i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?oa(s.rawTime(i),this):this._tTime:this._tTime},t.revert=function(i){i===void 0&&(i=$S);var s=ne;return ne=i,fc(this)&&(this.timeline&&this.timeline.revert(i),this.totalTime(-.01,i.suppressEvents)),this.data!=="nested"&&i.kill!==!1&&this.kill(),ne=s,this},t.globalTime=function(i){for(var s=this,r=arguments.length?i:s.rawTime();s;)r=s._start+r/(Math.abs(s._ts)||1),s=s._dp;return!this.parent&&this._sat?this._sat.globalTime(i):r},t.repeat=function(i){return arguments.length?(this._repeat=i===1/0?-2:i,gp(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(i){if(arguments.length){var s=this._time;return this._rDelay=i,gp(this),s?this.time(s):this}return this._rDelay},t.yoyo=function(i){return arguments.length?(this._yoyo=i,this):this._yoyo},t.seek=function(i,s){return this.totalTime(en(this,i),Ce(s))},t.restart=function(i,s){return this.play().totalTime(i?-this._delay:0,Ce(s)),this._dur||(this._zTime=-yt),this},t.play=function(i,s){return i!=null&&this.seek(i,s),this.reversed(!1).paused(!1)},t.reverse=function(i,s){return i!=null&&this.seek(i||this.totalDuration(),s),this.reversed(!0).paused(!1)},t.pause=function(i,s){return i!=null&&this.seek(i,s),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(i){return arguments.length?(!!i!==this.reversed()&&this.timeScale(-this._rts||(i?-yt:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-yt,this},t.isActive=function(){var i=this.parent||this._dp,s=this._start,r;return!!(!i||this._ts&&this._initted&&i.isActive()&&(r=i.rawTime(!0))>=s&&r<this.endTime(!0)-yt)},t.eventCallback=function(i,s,r){var o=this.vars;return arguments.length>1?(s?(o[i]=s,r&&(o[i+"Params"]=r),i==="onUpdate"&&(this._onUpdate=s)):delete o[i],this):o[i]},t.then=function(i){var s=this,r=s._prom;return new Promise(function(o){var a=Bt(i)?i:lp,l=function(){var u=s.then;s.then=null,r&&r(),Bt(a)&&(a=a(s))&&(a.then||a===s)&&(s.then=u),o(a),s.then=u};s._initted&&s.totalProgress()===1&&s._ts>=0||!s._tTime&&s._ts<0?l():s._prom=l})},t.kill=function(){Pr(this)},e}();Ve(zr.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-yt,_prom:0,_ps:!1,_rts:1});var Se=function(e){Kd(t,e);function t(i,s){var r;return i===void 0&&(i={}),r=e.call(this,i)||this,r.labels={},r.smoothChildTiming=!!i.smoothChildTiming,r.autoRemoveChildren=!!i.autoRemoveChildren,r._sort=Ce(i.sortChildren),Lt&&kn(i.parent||Lt,Wn(r),s),i.reversed&&r.reverse(),i.paused&&r.paused(!0),i.scrollTrigger&&dp(Wn(r),i.scrollTrigger),r}var n=t.prototype;return n.to=function(s,r,o){return Tr(0,arguments,this),this},n.from=function(s,r,o){return Tr(1,arguments,this),this},n.fromTo=function(s,r,o,a){return Tr(2,arguments,this),this},n.set=function(s,r,o){return r.duration=0,r.parent=this,kr(r).repeatDelay||(r.repeat=0),r.immediateRender=!!r.immediateRender,new Ut(s,r,en(this,o),1),this},n.call=function(s,r,o){return kn(this,Ut.delayedCall(0,s,r),o)},n.staggerTo=function(s,r,o,a,l,c,u){return o.duration=r,o.stagger=o.stagger||a,o.onComplete=c,o.onCompleteParams=u,o.parent=this,new Ut(s,o,en(this,l)),this},n.staggerFrom=function(s,r,o,a,l,c,u){return o.runBackwards=1,kr(o).immediateRender=Ce(o.immediateRender),this.staggerTo(s,r,o,a,l,c,u)},n.staggerFromTo=function(s,r,o,a,l,c,u,f){return a.startAt=o,kr(a).immediateRender=Ce(a.immediateRender),this.staggerTo(s,r,a,l,c,u,f)},n.render=function(s,r,o){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,u=s<=0?0:Ft(s),f=this._zTime<0!=s<0&&(this._initted||!c),h,d,g,p,m,_,y,w,x,b,k,M;if(this!==Lt&&u>l&&s>=0&&(u=l),u!==this._tTime||o||f){if(a!==this._time&&c&&(u+=this._time-a,s+=this._time-a),h=u,x=this._start,w=this._ts,_=!w,f&&(c||(a=this._zTime),(s||!r)&&(this._zTime=s)),this._repeat){if(k=this._yoyo,m=c+this._rDelay,this._repeat<-1&&s<0)return this.totalTime(m*100+s,r,o);if(h=Ft(u%m),u===l?(p=this._repeat,h=c):(b=Ft(u/m),p=~~b,p&&p===b&&(h=c,p--),h>c&&(h=c)),b=Ls(this._tTime,m),!a&&this._tTime&&b!==p&&this._tTime-b*m-this._dur<=0&&(b=p),k&&p&1&&(h=c-h,M=1),p!==b&&!this._lock){var P=k&&b&1,v=P===(k&&p&1);if(p<b&&(P=!P),a=P?0:u%c?c:u,this._lock=1,this.render(a||(M?0:Ft(p*m)),r,!c)._lock=0,this._tTime=u,!r&&this.parent&&We(this,"onRepeat"),this.vars.repeatRefresh&&!M&&(this.invalidate()._lock=1,b=p),a&&a!==this._time||_!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,l=this._tDur,v&&(this._lock=2,a=P?c:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!M&&this.invalidate()),this._lock=0,!this._ts&&!_)return this;zp(this,M)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(y=US(this,Ft(a),Ft(h)),y&&(u-=h-(h=y._start))),this._tTime=u,this._time=h,this._act=!w,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=s,a=0),!a&&u&&c&&!r&&!b&&(We(this,"onStart"),this._tTime!==u))return this;if(h>=a&&s>=0)for(d=this._first;d;){if(g=d._next,(d._act||h>=d._start)&&d._ts&&y!==d){if(d.parent!==this)return this.render(s,r,o);if(d.render(d._ts>0?(h-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(h-d._start)*d._ts,r,o),h!==this._time||!this._ts&&!_){y=0,g&&(u+=this._zTime=-yt);break}}d=g}else{d=this._last;for(var C=s<0?s:h;d;){if(g=d._prev,(d._act||C<=d._end)&&d._ts&&y!==d){if(d.parent!==this)return this.render(s,r,o);if(d.render(d._ts>0?(C-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(C-d._start)*d._ts,r,o||ne&&fc(d)),h!==this._time||!this._ts&&!_){y=0,g&&(u+=this._zTime=C?-yt:yt);break}}d=g}}if(y&&!r&&(this.pause(),y.render(h>=a?0:-yt)._zTime=h>=a?1:-1,this._ts))return this._start=x,aa(this),this.render(s,r,o);this._onUpdate&&!r&&We(this,"onUpdate",!0),(u===l&&this._tTime>=this.totalDuration()||!u&&a)&&(x===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((s||!c)&&(u===l&&this._ts>0||!u&&this._ts<0)&&pi(this,1),!r&&!(s<0&&!a)&&(u||a||!l)&&(We(this,u===l&&s>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u<l&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(s,r){var o=this;if(Hn(r)||(r=en(this,r,s)),!(s instanceof zr)){if(ue(s))return s.forEach(function(a){return o.add(a,r)}),this;if(Jt(s))return this.addLabel(s,r);if(Bt(s))s=Ut.delayedCall(0,s);else return this}return this!==s?kn(this,s,r):this},n.getChildren=function(s,r,o,a){s===void 0&&(s=!0),r===void 0&&(r=!0),o===void 0&&(o=!0),a===void 0&&(a=-tn);for(var l=[],c=this._first;c;)c._start>=a&&(c instanceof Ut?r&&l.push(c):(o&&l.push(c),s&&l.push.apply(l,c.getChildren(!0,r,o)))),c=c._next;return l},n.getById=function(s){for(var r=this.getChildren(1,1,1),o=r.length;o--;)if(r[o].vars.id===s)return r[o]},n.remove=function(s){return Jt(s)?this.removeLabel(s):Bt(s)?this.killTweensOf(s):(s.parent===this&&ra(this,s),s===this._recent&&(this._recent=this._last),Yi(this))},n.totalTime=function(s,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Ft(He.time-(this._ts>0?s/this._ts:(this.totalDuration()-s)/-this._ts))),e.prototype.totalTime.call(this,s,r),this._forcing=0,this):this._tTime},n.addLabel=function(s,r){return this.labels[s]=en(this,r),this},n.removeLabel=function(s){return delete this.labels[s],this},n.addPause=function(s,r,o){var a=Ut.delayedCall(0,r||Sr,o);return a.data="isPause",this._hasPause=1,kn(this,a,en(this,s))},n.removePause=function(s){var r=this._first;for(s=en(this,s);r;)r._start===s&&r.data==="isPause"&&pi(r),r=r._next},n.killTweensOf=function(s,r,o){for(var a=this.getTweensOf(s,o),l=a.length;l--;)_i!==a[l]&&a[l].kill(s,r);return this},n.getTweensOf=function(s,r){for(var o=[],a=nn(s),l=this._first,c=Hn(r),u;l;)l instanceof Ut?NS(l._targets,a)&&(c?(!_i||l._initted&&l._ts)&&l.globalTime(0)<=r&&l.globalTime(l.totalDuration())>r:!r||l.isActive())&&o.push(l):(u=l.getTweensOf(a,r)).length&&o.push.apply(o,u),l=l._next;return o},n.tweenTo=function(s,r){r=r||{};var o=this,a=en(o,s),l=r,c=l.startAt,u=l.onStart,f=l.onStartParams,h=l.immediateRender,d,g=Ut.to(o,Ve({ease:r.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:r.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale())||yt,onStart:function(){if(o.pause(),!d){var m=r.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale());g._dur!==m&&Fs(g,m,0,1).render(g._time,!0,!0),d=1}u&&u.apply(g,f||[])}},r));return h?g.render(0):g},n.tweenFromTo=function(s,r,o){return this.tweenTo(r,Ve({startAt:{time:en(this,s)}},o))},n.recent=function(){return this._recent},n.nextLabel=function(s){return s===void 0&&(s=this._time),Sp(this,en(this,s))},n.previousLabel=function(s){return s===void 0&&(s=this._time),Sp(this,en(this,s),1)},n.currentLabel=function(s){return arguments.length?this.seek(s,!0):this.previousLabel(this._time+yt)},n.shiftChildren=function(s,r,o){o===void 0&&(o=0);var a=this._first,l=this.labels,c;for(s=Ft(s);a;)a._start>=o&&(a._start+=s,a._end+=s),a=a._next;if(r)for(c in l)l[c]>=o&&(l[c]+=s);return Yi(this)},n.invalidate=function(s){var r=this._first;for(this._lock=0;r;)r.invalidate(s),r=r._next;return e.prototype.invalidate.call(this,s)},n.clear=function(s){s===void 0&&(s=!0);for(var r=this._first,o;r;)o=r._next,this.remove(r),r=o;return this._dp&&(this._time=this._tTime=this._pTime=0),s&&(this.labels={}),Yi(this)},n.totalDuration=function(s){var r=0,o=this,a=o._last,l=tn,c,u,f;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-s:s));if(o._dirty){for(f=o.parent;a;)c=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>l&&o._sort&&a._ts&&!o._lock?(o._lock=1,kn(o,a,u-a._delay,1)._lock=0):l=u,u<0&&a._ts&&(r-=u,(!f&&!o._dp||f&&f.smoothChildTiming)&&(o._start+=Ft(u/o._ts),o._time-=u,o._tTime-=u),o.shiftChildren(-u,!1,-1/0),l=0),a._end>r&&a._ts&&(r=a._end),a=c;Fs(o,o===Lt&&o._time>r?o._time:r,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(s){if(Lt._ts&&(op(Lt,oa(s,Lt)),ip=He.frame),He.frame>=sp){sp+=Ne.autoSleep||120;var r=Lt._first;if((!r||!r._ts)&&Ne.autoSleep&&He._listeners.length<2){for(;r&&!r._ts;)r=r._next;r||He.sleep()}}},t}(zr);Ve(Se.prototype,{_lock:0,_hasPause:0,_forcing:0});var lk=function(t,n,i,s,r,o,a){var l=new Oe(this._pt,t,n,0,1,Np,null,r),c=0,u=0,f,h,d,g,p,m,_,y;for(l.b=i,l.e=s,i+="",s+="",(_=~s.indexOf("random("))&&(s=Cr(s)),o&&(y=[i,s],o(y,t,n),i=y[0],s=y[1]),h=i.match(nc)||[];f=nc.exec(s);)g=f[0],p=s.substring(c,f.index),d?d=(d+1)%5:p.substr(-5)==="rgba("&&(d=1),g!==h[u++]&&(m=parseFloat(h[u-1])||0,l._pt={_next:l._pt,p:p||u===1?p:",",s:m,c:g.charAt(1)==="="?Is(m,g)-m:parseFloat(g)-m,m:d&&d<4?Math.round:0},c=nc.lastIndex);return l.c=c<s.length?s.substring(c,s.length):"",l.fp=a,(Qd.test(s)||_)&&(l.e=0),this._pt=l,l},xc=function(t,n,i,s,r,o,a,l,c,u){Bt(s)&&(s=s(r||0,t,o));var f=t[n],h=i!=="get"?i:Bt(f)?c?t[n.indexOf("set")||!Bt(t["get"+n.substr(3)])?n:"get"+n.substr(3)](c):t[n]():f,d=Bt(f)?c?dk:Fp:Sc,g;if(Jt(s)&&(~s.indexOf("random(")&&(s=Cr(s)),s.charAt(1)==="="&&(g=Is(h,s)+(fe(h)||0),(g||g===0)&&(s=g))),!u||h!==s||vc)return!isNaN(h*s)&&s!==""?(g=new Oe(this._pt,t,n,+h||0,s-(h||0),typeof f=="boolean"?gk:$p,0,d),c&&(g.fp=c),a&&g.modifier(a,this,t),this._pt=g):(!f&&!(n in t)&&rc(n,s),lk.call(this,t,n,h,s,d,l||Ne.stringFilter,c))},ck=function(t,n,i,s,r){if(Bt(t)&&(t=Dr(t,r,n,i,s)),!wn(t)||t.style&&t.nodeType||ue(t)||qd(t))return Jt(t)?Dr(t,r,n,i,s):t;var o={},a;for(a in t)o[a]=Dr(t[a],r,n,i,s);return o},Ip=function(t,n,i,s,r,o){var a,l,c,u;if(je[t]&&(a=new je[t]).init(r,a.rawVars?n[t]:ck(n[t],s,r,o,i),i,s,o)!==!1&&(i._pt=l=new Oe(i._pt,r,t,0,1,a.render,a,0,a.priority),i!==$s))for(c=i._ptLookup[i._targets.indexOf(r)],u=a._props.length;u--;)c[a._props[u]]=l;return a},_i,vc,wc=function e(t,n,i){var s=t.vars,r=s.ease,o=s.startAt,a=s.immediateRender,l=s.lazy,c=s.onUpdate,u=s.runBackwards,f=s.yoyoEase,h=s.keyframes,d=s.autoRevert,g=t._dur,p=t._startAt,m=t._targets,_=t.parent,y=_&&_.data==="nested"?_.vars.targets:m,w=t._overwrite==="auto"&&!Gl,x=t.timeline,b,k,M,P,v,C,A,O,j,K,U,H,Z;if(x&&(!h||!r)&&(r="none"),t._ease=Ki(r,Ds.ease),t._yEase=f?Ap(Ki(f===!0?r:f,Ds.ease)):0,f&&t._yoyo&&!t._repeat&&(f=t._yEase,t._yEase=t._ease,t._ease=f),t._from=!x&&!!s.runBackwards,!x||h&&!s.stagger){if(O=m[0]?Ui(m[0]).harness:0,H=O&&s[O.prop],b=sa(s,oc),p&&(p._zTime<0&&p.progress(1),n<0&&u&&a&&!d?p.render(-1,!0):p.revert(u&&g?ea:FS),p._lazy=0),o){if(pi(t._startAt=Ut.set(m,Ve({data:"isStart",overwrite:!1,parent:_,immediateRender:!0,lazy:!p&&Ce(l),startAt:null,delay:0,onUpdate:c&&function(){return We(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(ne||!a&&!d)&&t._startAt.revert(ea),a&&g&&n<=0&&i<=0){n&&(t._zTime=n);return}}else if(u&&g&&!p){if(n&&(a=!1),M=Ve({overwrite:!1,data:"isFromStart",lazy:a&&!p&&Ce(l),immediateRender:a,stagger:0,parent:_},b),H&&(M[O.prop]=H),pi(t._startAt=Ut.set(m,M)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(ne?t._startAt.revert(ea):t._startAt.render(-1,!0)),t._zTime=n,!a)e(t._startAt,yt,yt);else if(!n)return}for(t._pt=t._ptCache=0,l=g&&Ce(l)||l&&!g,k=0;k<m.length;k++){if(v=m[k],A=v._gsap||uc(m)[k]._gsap,t._ptLookup[k]=K={},ac[A.id]&&di.length&&ia(),U=y===m?k:y.indexOf(v),O&&(j=new O).init(v,H||b,t,U,y)!==!1&&(t._pt=P=new Oe(t._pt,v,j.name,0,1,j.render,j,0,j.priority),j._props.forEach(function(J){K[J]=P}),j.priority&&(C=1)),!O||H)for(M in b)je[M]&&(j=Ip(M,b,t,U,v,y))?j.priority&&(C=1):K[M]=P=xc.call(t,v,M,"get",b[M],U,y,0,s.stringFilter);t._op&&t._op[k]&&t.kill(v,t._op[k]),w&&t._pt&&(_i=t,Lt.killTweensOf(v,K,t.globalTime(n)),Z=!t.parent,_i=0),t._pt&&l&&(ac[A.id]=1)}C&&Bp(t),t._onInit&&t._onInit(t)}t._onUpdate=c,t._initted=(!t._op||t._pt)&&!Z,h&&n<=0&&x.render(tn,!0,!0)},uk=function(t,n,i,s,r,o,a,l){var c=(t._pt&&t._ptCache||(t._ptCache={}))[n],u,f,h,d;if(!c)for(c=t._ptCache[n]=[],h=t._ptLookup,d=t._targets.length;d--;){if(u=h[d][n],u&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==n&&u.fp!==n;)u=u._next;if(!u)return vc=1,t.vars[n]="+=0",wc(t,a),vc=0,l?wr(n+" not eligible for reset"):1;c.push(u)}for(d=c.length;d--;)f=c[d],u=f._pt||f,u.s=(s||s===0)&&!r?s:u.s+(s||0)+o*u.c,u.c=i-u.s,f.e&&(f.e=Wt(i)+fe(f.e)),f.b&&(f.b=u.s+fe(f.b))},fk=function(t,n){var i=t[0]?Ui(t[0]).harness:0,s=i&&i.aliases,r,o,a,l;if(!s)return n;r=Rs({},n);for(o in s)if(o in r)for(l=s[o].split(","),a=l.length;a--;)r[l[a]]=r[o];return r},hk=function(t,n,i,s){var r=n.ease||s||"power1.inOut",o,a;if(ue(n))a=i[t]||(i[t]=[]),n.forEach(function(l,c){return a.push({t:c/(n.length-1)*100,v:l,e:r})});else for(o in n)a=i[o]||(i[o]=[]),o==="ease"||a.push({t:parseFloat(t),v:n[o],e:r})},Dr=function(t,n,i,s,r){return Bt(t)?t.call(n,i,s,r):Jt(t)&&~t.indexOf("random(")?Cr(t):t},Rp=cc+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Lp={};Pe(Rp+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return Lp[e]=1});var Ut=function(e){Kd(t,e);function t(i,s,r,o){var a;typeof s=="number"&&(r.duration=s,s=r,r=null),a=e.call(this,o?s:kr(s))||this;var l=a.vars,c=l.duration,u=l.delay,f=l.immediateRender,h=l.stagger,d=l.overwrite,g=l.keyframes,p=l.defaults,m=l.scrollTrigger,_=l.yoyoEase,y=s.parent||Lt,w=(ue(i)||qd(i)?Hn(i[0]):"length"in s)?[i]:nn(i),x,b,k,M,P,v,C,A;if(a._targets=w.length?uc(w):wr("GSAP target "+i+" not found. https://gsap.com",!Ne.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,g||h||Qo(c)||Qo(u)){if(s=a.vars,x=a.timeline=new Se({data:"nested",defaults:p||{},targets:y&&y.data==="nested"?y.vars.targets:w}),x.kill(),x.parent=x._dp=Wn(a),x._start=0,h||Qo(c)||Qo(u)){if(M=w.length,C=h&&bp(h),wn(h))for(P in h)~Rp.indexOf(P)&&(A||(A={}),A[P]=h[P]);for(b=0;b<M;b++)k=sa(s,Lp),k.stagger=0,_&&(k.yoyoEase=_),A&&Rs(k,A),v=w[b],k.duration=+Dr(c,Wn(a),b,v,w),k.delay=(+Dr(u,Wn(a),b,v,w)||0)-a._delay,!h&&M===1&&k.delay&&(a._delay=u=k.delay,a._start+=u,k.delay=0),x.to(v,k,C?C(b,v,w):0),x._ease=at.none;x.duration()?c=u=0:a.timeline=0}else if(g){kr(Ve(x.vars.defaults,{ease:"none"})),x._ease=Ki(g.ease||s.ease||"none");var O=0,j,K,U;if(ue(g))g.forEach(function(H){return x.to(w,H,">")}),x.duration();else{k={};for(P in g)P==="ease"||P==="easeEach"||hk(P,g[P],k,g.easeEach);for(P in k)for(j=k[P].sort(function(H,Z){return H.t-Z.t}),O=0,b=0;b<j.length;b++)K=j[b],U={ease:K.e,duration:(K.t-(b?j[b-1].t:0))/100*c},U[P]=K.v,x.to(w,U,O),O+=U.duration;x.duration()<c&&x.to({},{duration:c-x.duration()})}}c||a.duration(c=x.duration())}else a.timeline=0;return d===!0&&!Gl&&(_i=Wn(a),Lt.killTweensOf(w),_i=0),kn(y,Wn(a),r),s.reversed&&a.reverse(),s.paused&&a.paused(!0),(f||!c&&!g&&a._start===Ft(y._time)&&Ce(f)&&WS(Wn(a))&&y.data!=="nested")&&(a._tTime=-yt,a.render(Math.max(0,-u)||0)),m&&dp(Wn(a),m),a}var n=t.prototype;return n.render=function(s,r,o){var a=this._time,l=this._tDur,c=this._dur,u=s<0,f=s>l-yt&&!u?l:s<yt?0:s,h,d,g,p,m,_,y,w,x;if(!c)ZS(this,s,r,o);else if(f!==this._tTime||!s||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==u||this._lazy){if(h=f,w=this.timeline,this._repeat){if(p=c+this._rDelay,this._repeat<-1&&u)return this.totalTime(p*100+s,r,o);if(h=Ft(f%p),f===l?(g=this._repeat,h=c):(m=Ft(f/p),g=~~m,g&&g===m?(h=c,g--):h>c&&(h=c)),_=this._yoyo&&g&1,_&&(x=this._yEase,h=c-h),m=Ls(this._tTime,p),h===a&&!o&&this._initted&&g===m)return this._tTime=f,this;g!==m&&(w&&this._yEase&&zp(w,_),this.vars.repeatRefresh&&!_&&!this._lock&&h!==p&&this._initted&&(this._lock=o=1,this.render(Ft(p*g),!0).invalidate()._lock=0))}if(!this._initted){if(pp(this,u?s:h,o,r,f))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&g!==m))return this;if(c!==this._dur)return this.render(s,r,o)}if(this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=y=(x||this._ease)(h/c),this._from&&(this.ratio=y=1-y),!a&&f&&!r&&!m&&(We(this,"onStart"),this._tTime!==f))return this;for(d=this._pt;d;)d.r(y,d.d),d=d._next;w&&w.render(s<0?s:w._dur*w._ease(h/this._dur),r,o)||this._startAt&&(this._zTime=s),this._onUpdate&&!r&&(u&&hc(this,s,r,o),We(this,"onUpdate")),this._repeat&&g!==m&&this.vars.onRepeat&&!r&&this.parent&&We(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(u&&!this._onUpdate&&hc(this,s,!0,!0),(s||!c)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&pi(this,1),!r&&!(u&&!a)&&(f||a||_)&&(We(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(s){return(!s||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(s),e.prototype.invalidate.call(this,s)},n.resetTo=function(s,r,o,a,l){Ar||He.wake(),this._ts||this.play();var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||wc(this,c),u=this._ease(c/this._dur),uk(this,s,r,o,a,u,c,l)?this.resetTo(s,r,o,a,1):(la(this,0),this.parent||up(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(s,r){if(r===void 0&&(r="all"),!s&&(!r||r==="all"))return this._lazy=this._pt=0,this.parent?Pr(this):this.scrollTrigger&&this.scrollTrigger.kill(!!ne),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(s,r,_i&&_i.vars.overwrite!==!0)._first||Pr(this),this.parent&&o!==this.timeline.totalDuration()&&Fs(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,l=s?nn(s):a,c=this._ptLookup,u=this._pt,f,h,d,g,p,m,_;if((!r||r==="all")&&jS(a,l))return r==="all"&&(this._pt=0),Pr(this);for(f=this._op=this._op||[],r!=="all"&&(Jt(r)&&(p={},Pe(r,function(y){return p[y]=1}),r=p),r=fk(a,r)),_=a.length;_--;)if(~l.indexOf(a[_])){h=c[_],r==="all"?(f[_]=r,g=h,d={}):(d=f[_]=f[_]||{},g=r);for(p in g)m=h&&h[p],m&&((!("kill"in m.d)||m.d.kill(p)===!0)&&ra(this,m,"_pt"),delete h[p]),d!=="all"&&(d[p]=1)}return this._initted&&!this._pt&&u&&Pr(this),this},t.to=function(s,r){return new t(s,r,arguments[2])},t.from=function(s,r){return Tr(1,arguments)},t.delayedCall=function(s,r,o,a){return new t(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:s,onComplete:r,onReverseComplete:r,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},t.fromTo=function(s,r,o){return Tr(2,arguments)},t.set=function(s,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new t(s,r)},t.killTweensOf=function(s,r,o){return Lt.killTweensOf(s,r,o)},t}(zr);Ve(Ut.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Pe("staggerTo,staggerFrom,staggerFromTo",function(e){Ut[e]=function(){var t=new Se,n=pc.call(arguments,0);return n.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,n)}});var Sc=function(t,n,i){return t[n]=i},Fp=function(t,n,i){return t[n](i)},dk=function(t,n,i,s){return t[n](s.fp,i)},pk=function(t,n,i){return t.setAttribute(n,i)},kc=function(t,n){return Bt(t[n])?Fp:tc(t[n])&&t.setAttribute?pk:Sc},$p=function(t,n){return n.set(n.t,n.p,Math.round((n.s+n.c*t)*1e6)/1e6,n)},gk=function(t,n){return n.set(n.t,n.p,!!(n.s+n.c*t),n)},Np=function(t,n){var i=n._pt,s="";if(!t&&n.b)s=n.b;else if(t===1&&n.e)s=n.e;else{for(;i;)s=i.p+(i.m?i.m(i.s+i.c*t):Math.round((i.s+i.c*t)*1e4)/1e4)+s,i=i._next;s+=n.c}n.set(n.t,n.p,s,n)},Tc=function(t,n){for(var i=n._pt;i;)i.r(t,i.d),i=i._next},mk=function(t,n,i,s){for(var r=this._pt,o;r;)o=r._next,r.p===s&&r.modifier(t,n,i),r=o},_k=function(t){for(var n=this._pt,i,s;n;)s=n._next,n.p===t&&!n.op||n.op===t?ra(this,n,"_pt"):n.dep||(i=1),n=s;return!i},bk=function(t,n,i,s){s.mSet(t,n,s.m.call(s.tween,i,s.mt),s)},Bp=function(t){for(var n=t._pt,i,s,r,o;n;){for(i=n._next,s=r;s&&s.pr>n.pr;)s=s._next;(n._prev=s?s._prev:o)?n._prev._next=n:r=n,(n._next=s)?s._prev=n:o=n,n=i}t._pt=r},Oe=function(){function e(n,i,s,r,o,a,l,c,u){this.t=i,this.s=r,this.c=o,this.p=s,this.r=a||$p,this.d=l||this,this.set=c||Sc,this.pr=u||0,this._next=n,n&&(n._prev=this)}var t=e.prototype;return t.modifier=function(i,s,r){this.mSet=this.mSet||this.set,this.set=bk,this.m=i,this.mt=r,this.tween=s},e}();Pe(cc+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return oc[e]=1}),Be.TweenMax=Be.TweenLite=Ut,Be.TimelineLite=Be.TimelineMax=Se,Lt=new Se({sortChildren:!1,defaults:Ds,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Ne.stringFilter=Op;var qi=[],ca={},yk=[],jp=0,xk=0,Mc=function(t){return(ca[t]||yk).map(function(n){return n()})},Cc=function(){var t=Date.now(),n=[];t-jp>2&&(Mc("matchMediaInit"),qi.forEach(function(i){var s=i.queries,r=i.conditions,o,a,l,c;for(a in s)o=Sn.matchMedia(s[a]).matches,o&&(l=1),o!==r[a]&&(r[a]=o,c=1);c&&(i.revert(),l&&n.push(i))}),Mc("matchMediaRevert"),n.forEach(function(i){return i.onMatch(i,function(s){return i.add(null,s)})}),jp=t,Mc("matchMedia"))},Vp=function(){function e(n,i){this.selector=i&&gc(i),this.data=[],this._r=[],this.isReverted=!1,this.id=xk++,n&&this.add(n)}var t=e.prototype;return t.add=function(i,s,r){Bt(i)&&(r=s,s=i,i=Bt);var o=this,a=function(){var c=zt,u=o.selector,f;return c&&c!==o&&c.data.push(o),r&&(o.selector=gc(r)),zt=o,f=s.apply(o,arguments),Bt(f)&&o._r.push(f),zt=c,o.selector=u,o.isReverted=!1,f};return o.last=a,i===Bt?a(o,function(l){return o.add(null,l)}):i?o[i]=a:a},t.ignore=function(i){var s=zt;zt=null,i(this),zt=s},t.getTweens=function(){var i=[];return this.data.forEach(function(s){return s instanceof e?i.push.apply(i,s.getTweens()):s instanceof Ut&&!(s.parent&&s.parent.data==="nested")&&i.push(s)}),i},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(i,s){var r=this;if(i?function(){for(var a=r.getTweens(),l=r.data.length,c;l--;)c=r.data[l],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,f){return f.g-u.g||-1/0}).forEach(function(u){return u.t.revert(i)}),l=r.data.length;l--;)c=r.data[l],c instanceof Se?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof Ut)&&c.revert&&c.revert(i);r._r.forEach(function(u){return u(i,r)}),r.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),s)for(var o=qi.length;o--;)qi[o].id===this.id&&qi.splice(o,1)},t.revert=function(i){this.kill(i||{})},e}(),vk=function(){function e(n){this.contexts=[],this.scope=n,zt&&zt.data.push(this)}var t=e.prototype;return t.add=function(i,s,r){wn(i)||(i={matches:i});var o=new Vp(0,r||this.scope),a=o.conditions={},l,c,u;zt&&!o.selector&&(o.selector=zt.selector),this.contexts.push(o),s=o.add("onMatch",s),o.queries=i;for(c in i)c==="all"?u=1:(l=Sn.matchMedia(i[c]),l&&(qi.indexOf(o)<0&&qi.push(o),(a[c]=l.matches)&&(u=1),l.addListener?l.addListener(Cc):l.addEventListener("change",Cc)));return u&&s(o,function(f){return o.add(null,f)}),this},t.revert=function(i){this.kill(i||{})},t.kill=function(i){this.contexts.forEach(function(s){return s.kill(i,!0)})},e}(),ua={registerPlugin:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];n.forEach(function(s){return Tp(s)})},timeline:function(t){return new Se(t)},getTweensOf:function(t,n){return Lt.getTweensOf(t,n)},getProperty:function(t,n,i,s){Jt(t)&&(t=nn(t)[0]);var r=Ui(t||{}).get,o=i?lp:ap;return i==="native"&&(i=""),t&&(n?o((je[n]&&je[n].get||r)(t,n,i,s)):function(a,l,c){return o((je[a]&&je[a].get||r)(t,a,l,c))})},quickSetter:function(t,n,i){if(t=nn(t),t.length>1){var s=t.map(function(u){return Ae.quickSetter(u,n,i)}),r=s.length;return function(u){for(var f=r;f--;)s[f](u)}}t=t[0]||{};var o=je[n],a=Ui(t),l=a.harness&&(a.harness.aliases||{})[n]||n,c=o?function(u){var f=new o;$s._pt=0,f.init(t,i?u+i:u,$s,0,[t]),f.render(1,f),$s._pt&&Tc(1,$s)}:a.set(t,l);return o?c:function(u){return c(t,l,i?u+i:u,a,1)}},quickTo:function(t,n,i){var s,r=Ae.to(t,Ve((s={},s[n]="+=0.1",s.paused=!0,s.stagger=0,s),i||{})),o=function(l,c,u){return r.resetTo(n,l,c,u)};return o.tween=r,o},isTweening:function(t){return Lt.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ki(t.ease,Ds.ease)),cp(Ds,t||{})},config:function(t){return cp(Ne,t||{})},registerEffect:function(t){var n=t.name,i=t.effect,s=t.plugins,r=t.defaults,o=t.extendTimeline;(s||"").split(",").forEach(function(a){return a&&!je[a]&&!Be[a]&&wr(n+" effect requires "+a+" plugin.")}),lc[n]=function(a,l,c){return i(nn(a),Ve(l||{},r),c)},o&&(Se.prototype[n]=function(a,l,c){return this.add(lc[n](a,wn(l)?l:(c=l)&&{},this),c)})},registerEase:function(t,n){at[t]=Ki(n)},parseEase:function(t,n){return arguments.length?Ki(t,n):at},getById:function(t){return Lt.getById(t)},exportRoot:function(t,n){t===void 0&&(t={});var i=new Se(t),s,r;for(i.smoothChildTiming=Ce(t.smoothChildTiming),Lt.remove(i),i._dp=0,i._time=i._tTime=Lt._time,s=Lt._first;s;)r=s._next,(n||!(!s._dur&&s instanceof Ut&&s.vars.onComplete===s._targets[0]))&&kn(i,s,s._start-s._delay),s=r;return kn(Lt,i,0),i},context:function(t,n){return t?new Vp(t,n):zt},matchMedia:function(t){return new vk(t)},matchMediaRefresh:function(){return qi.forEach(function(t){var n=t.conditions,i,s;for(s in n)n[s]&&(n[s]=!1,i=1);i&&t.revert()})||Cc()},addEventListener:function(t,n){var i=ca[t]||(ca[t]=[]);~i.indexOf(n)||i.push(n)},removeEventListener:function(t,n){var i=ca[t],s=i&&i.indexOf(n);s>=0&&i.splice(s,1)},utils:{wrap:QS,wrapYoyo:tk,distribute:bp,random:xp,snap:yp,normalize:GS,getUnit:fe,clamp:KS,splitColor:Mp,toArray:nn,selector:gc,mapRange:wp,pipe:qS,unitize:JS,interpolate:ek,shuffle:_p},install:ep,effects:lc,ticker:He,updateRoot:Se.updateRoot,plugins:je,globalTimeline:Lt,core:{PropTween:Oe,globals:np,Tween:Ut,Timeline:Se,Animation:zr,getCache:Ui,_removeLinkedListItem:ra,reverting:function(){return ne},context:function(t){return t&&zt&&(zt.data.push(t),t._ctx=zt),zt},suppressOverwrites:function(t){return Gl=t}}};Pe("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return ua[e]=Ut[e]}),He.add(Se.updateRoot),$s=ua.to({},{duration:0});var wk=function(t,n){for(var i=t._pt;i&&i.p!==n&&i.op!==n&&i.fp!==n;)i=i._next;return i},Sk=function(t,n){var i=t._targets,s,r,o;for(s in n)for(r=i.length;r--;)o=t._ptLookup[r][s],o&&(o=o.d)&&(o._pt&&(o=wk(o,s)),o&&o.modifier&&o.modifier(n[s],t,i[r],s))},Pc=function(t,n){return{name:t,headless:1,rawVars:1,init:function(s,r,o){o._onInit=function(a){var l,c;if(Jt(r)&&(l={},Pe(r,function(u){return l[u]=1}),r=l),n){l={};for(c in r)l[c]=n(r[c]);r=l}Sk(a,r)}}}},Ae=ua.registerPlugin({name:"attr",init:function(t,n,i,s,r){var o,a,l;this.tween=i;for(o in n)l=t.getAttribute(o)||"",a=this.add(t,"setAttribute",(l||0)+"",n[o],s,r,0,0,o),a.op=o,a.b=l,this._props.push(o)},render:function(t,n){for(var i=n._pt;i;)ne?i.set(i.t,i.p,i.b,i):i.r(t,i.d),i=i._next}},{name:"endArray",headless:1,init:function(t,n){for(var i=n.length;i--;)this.add(t,i,t[i]||0,n[i],0,0,0,0,0,1)}},Pc("roundProps",mc),Pc("modifiers"),Pc("snap",yp))||ua;Ut.version=Se.version=Ae.version="3.14.2",tp=1,ec()&&Ns(),at.Power0,at.Power1,at.Power2,at.Power3,at.Power4,at.Linear,at.Quad,at.Cubic,at.Quart,at.Quint,at.Strong,at.Elastic,at.Back,at.SteppedEase,at.Bounce,at.Sine,at.Expo,at.Circ;/*!
48
+ */var mt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Or={duration:.5,overwrite:!1,delay:0},Do,Ze,xe,Et=1e8,de=1/Et,Mo=Math.PI*2,ey=Mo/4,ty=0,Fu=Math.sqrt,ny=Math.cos,ry=Math.sin,Me=function(e){return typeof e=="string"},Oe=function(e){return typeof e=="function"},_n=function(e){return typeof e=="number"},No=function(e){return typeof e>"u"},Kt=function(e){return typeof e=="object"},ot=function(e){return e!==!1},Ro=function(){return typeof window<"u"},vs=function(e){return Oe(e)||Me(e)},Zu=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},We=Array.isArray,iy=/random\([^)]+\)/g,sy=/,\s*/g,Lu=/(?:-?\.?\d|\.)+/gi,ju=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Er=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Fo=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Uu=/[+-]=-?[.\d]+/,oy=/[^,'"\[\]\s]+/gi,ay=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ke,qt,Zo,Lo,gt={},ys={},Bu,Vu=function(e){return(ys=Pr(e,gt))&&ct},jo=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},di=function(e,n){return!n&&console.warn(e)},Hu=function(e,n){return e&&(gt[e]=n)&&ys&&(ys[e]=n)||gt},hi=function(){return 0},ly={suppressEvents:!0,isStart:!0,kill:!1},bs={suppressEvents:!0,kill:!1},cy={suppressEvents:!0},Uo={},$n=[],Bo={},Wu,vt={},Vo={},Ju=30,xs=[],Ho="",Wo=function(e){var n=e[0],r,i;if(Kt(n)||Oe(n)||(e=[e]),!(r=(n._gsap||{}).harness)){for(i=xs.length;i--&&!xs[i].targetTest(n););r=xs[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new Sf(e[i],r)))||e.splice(i,1);return e},er=function(e){return e._gsap||Wo(Pt(e))[0]._gsap},Ku=function(e,n,r){return(r=e[n])&&Oe(r)?e[n]():No(r)&&e.getAttribute&&e.getAttribute(n)||r},at=function(e,n){return(e=e.split(",")).forEach(n)||e},$e=function(e){return Math.round(e*1e5)/1e5||0},Te=function(e){return Math.round(e*1e7)/1e7||0},$r=function(e,n){var r=n.charAt(0),i=parseFloat(n.substr(2));return e=parseFloat(e),r==="+"?e+i:r==="-"?e-i:r==="*"?e*i:e/i},uy=function(e,n){for(var r=n.length,i=0;e.indexOf(n[i])<0&&++i<r;);return i<r},ws=function(){var e=$n.length,n=$n.slice(0),r,i;for(Bo={},$n.length=0,r=0;r<e;r++)i=n[r],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},Jo=function(e){return!!(e._initted||e._startAt||e.add)},qu=function(e,n,r,i){$n.length&&!Ze&&ws(),e.render(n,r,!!(Ze&&n<0&&Jo(e))),$n.length&&!Ze&&ws()},Yu=function(e){var n=parseFloat(e);return(n||n===0)&&(e+"").match(oy).length<2?n:Me(e)?e.trim():e},Gu=function(e){return e},yt=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},fy=function(e){return function(n,r){for(var i in r)i in n||i==="duration"&&e||i==="ease"||(n[i]=r[i])}},Pr=function(e,n){for(var r in n)e[r]=n[r];return e},Xu=function t(e,n){for(var r in n)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=Kt(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Ss=function(e,n){var r={},i;for(i in e)i in n||(r[i]=e[i]);return r},pi=function(e){var n=e.parent||ke,r=e.keyframes?fy(We(e.keyframes)):yt;if(ot(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},dy=function(e,n){for(var r=e.length,i=r===n.length;i&&r--&&e[r]===n[r];);return r<0},Qu=function(e,n,r,i,s){var o=e[i],a;if(s)for(a=n[s];o&&o[s]>a;)o=o._prev;return o?(n._next=o._next,o._next=n):(n._next=e[r],e[r]=n),n._next?n._next._prev=n:e[i]=n,n._prev=o,n.parent=n._dp=e,n},ks=function(e,n,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var s=n._prev,o=n._next;s?s._next=o:e[r]===n&&(e[r]=o),o?o._prev=s:e[i]===n&&(e[i]=s),n._next=n._prev=n.parent=null},Pn=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},tr=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},hy=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},Ko=function(e,n,r,i){return e._startAt&&(Ze?e._startAt.revert(bs):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,i))},py=function t(e){return!e||e._ts&&t(e.parent)},ef=function(e){return e._repeat?Ar(e._tTime,e=e.duration()+e._rDelay)*e:0},Ar=function(e,n){var r=Math.floor(e=Te(e/n));return e&&r===e?r-1:r},Ts=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},zs=function(e){return e._end=Te(e._start+(e._tDur/Math.abs(e._ts||e._rts||de)||0))},Cs=function(e,n){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=Te(r._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),zs(e),r._dirty||tr(r,e)),e},tf=function(e,n){var r;if((n._time||!n._dur&&n._initted||n._start<e._time&&(n._dur||!n.add))&&(r=Ts(e.rawTime(),n),(!n._dur||mi(0,n.totalDuration(),r)-n._tTime>de)&&n.render(r,!0)),tr(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-de}},Yt=function(e,n,r,i){return n.parent&&Pn(n),n._start=Te((_n(r)?r:r||e!==ke?$t(e,r,n):e._time)+n._delay),n._end=Te(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),Qu(e,n,"_first","_last",e._sort?"_start":0),qo(n)||(e._recent=n),i||tf(e,n),e._ts<0&&Cs(e,e._tTime),e},nf=function(e,n){return(gt.ScrollTrigger||jo("scrollTrigger",n))&&gt.ScrollTrigger.create(n,e)},rf=function(e,n,r,i,s){if(ia(e,n,s),!e._initted)return 1;if(!r&&e._pt&&!Ze&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Wu!==xt.frame)return $n.push(e),e._lazy=[s,i],1},_y=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},qo=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},my=function(e,n,r,i){var s=e.ratio,o=n<0||!n&&(!e._start&&_y(e)&&!(!e._initted&&qo(e))||(e._ts<0||e._dp._ts<0)&&!qo(e))?0:1,a=e._rDelay,l=0,u,c,f;if(a&&e._repeat&&(l=mi(0,e._tDur,n),c=Ar(l,a),e._yoyo&&c&1&&(o=1-o),c!==Ar(e._tTime,a)&&(s=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==s||Ze||i||e._zTime===de||!n&&e._zTime){if(!e._initted&&rf(e,n,i,r,l))return;for(f=e._zTime,e._zTime=n||(r?de:0),r||(r=n&&!f),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=l,u=e._pt;u;)u.r(o,u.d),u=u._next;n<0&&Ko(e,n,r,!0),e._onUpdate&&!r&&bt(e,"onUpdate"),l&&e._repeat&&!r&&e.parent&&bt(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===o&&(o&&Pn(e,1),!r&&!Ze&&(bt(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},gy=function(e,n,r){var i;if(r>n)for(i=e._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>n)return i;i=i._next}else for(i=e._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start<n)return i;i=i._prev}},Ir=function(e,n,r,i){var s=e._repeat,o=Te(n)||0,a=e._tTime/e._tDur;return a&&!i&&(e._time*=o/e._dur),e._dur=o,e._tDur=s?s<0?1e10:Te(o*(s+1)+e._rDelay*s):o,a>0&&!i&&Cs(e,e._tTime=e._tDur*a),e.parent&&zs(e),r||tr(e.parent,e),e},sf=function(e){return e instanceof tt?tr(e):Ir(e,e._dur)},vy={_start:0,endTime:hi,totalDuration:hi},$t=function t(e,n,r){var i=e.labels,s=e._recent||vy,o=e.duration()>=Et?s.endTime(!1):e._dur,a,l,u;return Me(n)&&(isNaN(n)||n in i)?(l=n.charAt(0),u=n.substr(-1)==="%",a=n.indexOf("="),l==="<"||l===">"?(a>=0&&(n=n.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(n.substr(1))||0)*(u?(a<0?s:r).totalDuration()/100:1)):a<0?(n in i||(i[n]=o),i[n]):(l=parseFloat(n.charAt(a-1)+n.substr(a+1)),u&&r&&(l=l/100*(We(r)?r[0]:r).totalDuration()),a>1?t(e,n.substr(0,a-1),r)+l:o+l)):n==null?o:+n},_i=function(e,n,r){var i=_n(n[1]),s=(i?2:1)+(e<2?0:1),o=n[s],a,l;if(i&&(o.duration=n[1]),o.parent=r,e){for(a=o,l=r;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=ot(l.vars.inherit)&&l.parent;o.immediateRender=ot(a.immediateRender),e<2?o.runBackwards=1:o.startAt=n[s-1]}return new Ae(n[0],o,n[s+1])},An=function(e,n){return e||e===0?n(e):n},mi=function(e,n,r){return r<e?e:r>n?n:r},Je=function(e,n){return!Me(e)||!(n=ay.exec(e))?"":n[1]},yy=function(e,n,r){return An(r,function(i){return mi(e,n,i)})},Yo=[].slice,of=function(e,n){return e&&Kt(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&Kt(e[0]))&&!e.nodeType&&e!==qt},by=function(e,n,r){return r===void 0&&(r=[]),e.forEach(function(i){var s;return Me(i)&&!n||of(i,1)?(s=r).push.apply(s,Pt(i)):r.push(i)})||r},Pt=function(e,n,r){return xe&&!n&&xe.selector?xe.selector(e):Me(e)&&!r&&(Zo||!Mr())?Yo.call((n||Lo).querySelectorAll(e),0):We(e)?by(e,r):of(e)?Yo.call(e,0):e?[e]:[]},Go=function(e){return e=Pt(e)[0]||di("Invalid scope")||{},function(n){var r=e.current||e.nativeElement||e;return Pt(n,r.querySelectorAll?r:r===e?di("Invalid scope")||Lo.createElement("div"):e)}},af=function(e){return e.sort(function(){return .5-Math.random()})},lf=function(e){if(Oe(e))return e;var n=Kt(e)?e:{each:e},r=nr(n.ease),i=n.from||0,s=parseFloat(n.base)||0,o={},a=i>0&&i<1,l=isNaN(i)||a,u=n.axis,c=i,f=i;return Me(i)?c=f={center:.5,edges:.5,end:1}[i]||0:!a&&l&&(c=i[0],f=i[1]),function(d,h,_){var p=(_||n).length,b=o[p],w,k,T,x,y,E,P,D,v;if(!b){if(v=n.grid==="auto"?0:(n.grid||[1,Et])[1],!v){for(P=-Et;P<(P=_[v++].getBoundingClientRect().left)&&v<p;);v<p&&v--}for(b=o[p]=[],w=l?Math.min(v,p)*c-.5:i%v,k=v===Et?0:l?p*f/v-.5:i/v|0,P=0,D=Et,E=0;E<p;E++)T=E%v-w,x=k-(E/v|0),b[E]=y=u?Math.abs(u==="y"?x:T):Fu(T*T+x*x),y>P&&(P=y),y<D&&(D=y);i==="random"&&af(b),b.max=P-D,b.min=D,b.v=p=(parseFloat(n.amount)||parseFloat(n.each)*(v>p?p-1:u?u==="y"?p/v:v:Math.max(v,p/v))||0)*(i==="edges"?-1:1),b.b=p<0?s-p:s,b.u=Je(n.amount||n.each)||0,r=r&&p<0?bf(r):r}return p=(b[d]-b.min)/b.max||0,Te(b.b+(r?r(p):p)*b.v)+b.u}},Xo=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=Te(Math.round(parseFloat(r)/e)*e*n);return(i-i%1)/n+(_n(r)?0:Je(r))}},cf=function(e,n){var r=We(e),i,s;return!r&&Kt(e)&&(i=r=e.radius||Et,e.values?(e=Pt(e.values),(s=!_n(e[0]))&&(i*=i)):e=Xo(e.increment)),An(n,r?Oe(e)?function(o){return s=e(o),Math.abs(s-o)<=i?s:o}:function(o){for(var a=parseFloat(s?o.x:o),l=parseFloat(s?o.y:0),u=Et,c=0,f=e.length,d,h;f--;)s?(d=e[f].x-a,h=e[f].y-l,d=d*d+h*h):d=Math.abs(e[f]-a),d<u&&(u=d,c=f);return c=!i||u<=i?e[c]:o,s||c===o||_n(o)?c:c+Je(o)}:Xo(e))},uf=function(e,n,r,i){return An(We(e)?!n:r===!0?!!(r=0):!i,function(){return We(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(n-e+r*.99))/r)*r*i)/i})},xy=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(i){return n.reduce(function(s,o){return o(s)},i)}},wy=function(e,n){return function(r){return e(parseFloat(r))+(n||Je(r))}},Sy=function(e,n,r){return df(e,n,0,1,r)},ff=function(e,n,r){return An(r,function(i){return e[~~n(i)]})},ky=function t(e,n,r){var i=n-e;return We(e)?ff(e,t(0,e.length),n):An(r,function(s){return(i+(s-e)%i)%i+e})},Ty=function t(e,n,r){var i=n-e,s=i*2;return We(e)?ff(e,t(0,e.length-1),n):An(r,function(o){return o=(s+(o-e)%s)%s||0,e+(o>i?s-o:o)})},gi=function(e){return e.replace(iy,function(n){var r=n.indexOf("[")+1,i=n.substring(r||7,r?n.indexOf("]"):n.length-1).split(sy);return uf(r?i:+i[0],r?0:+i[1],+i[2]||1e-5)})},df=function(e,n,r,i,s){var o=n-e,a=i-r;return An(s,function(l){return r+((l-e)/o*a||0)})},zy=function t(e,n,r,i){var s=isNaN(e+n)?0:function(h){return(1-h)*e+h*n};if(!s){var o=Me(e),a={},l,u,c,f,d;if(r===!0&&(i=1)&&(r=null),o)e={p:e},n={p:n};else if(We(e)&&!We(n)){for(c=[],f=e.length,d=f-2,u=1;u<f;u++)c.push(t(e[u-1],e[u]));f--,s=function(_){_*=f;var p=Math.min(d,~~_);return c[p](_-p)},r=n}else i||(e=Pr(We(e)?[]:{},e));if(!c){for(l in n)na.call(a,e,l,"get",n[l]);s=function(_){return aa(_,a)||(o?e.p:e)}}}return An(r,s)},hf=function(e,n,r){var i=e.labels,s=Et,o,a,l;for(o in i)a=i[o]-n,a<0==!!r&&a&&s>(a=Math.abs(a))&&(l=o,s=a);return l},bt=function(e,n,r){var i=e.vars,s=i[n],o=xe,a=e._ctx,l,u,c;if(s)return l=i[n+"Params"],u=i.callbackScope||e,r&&$n.length&&ws(),a&&(xe=a),c=l?s.apply(u,l):s.call(u),xe=o,c},vi=function(e){return Pn(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Ze),e.progress()<1&&bt(e,"onInterrupt"),e},Dr,pf=[],_f=function(e){if(e)if(e=!e.name&&e.default||e,Ro()||e.headless){var n=e.name,r=Oe(e),i=n&&!r&&e.init?function(){this._props=[]}:e,s={init:hi,render:aa,add:na,kill:Uy,modifier:jy,rawVars:0},o={targetTest:0,get:0,getSetter:oa,aliases:{},register:0};if(Mr(),e!==i){if(vt[n])return;yt(i,yt(Ss(e,s),o)),Pr(i.prototype,Pr(s,Ss(e,o))),vt[i.prop=n]=i,e.targetTest&&(xs.push(i),Uo[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}Hu(n,i),e.register&&e.register(ct,i,lt)}else pf.push(e)},he=255,yi={aqua:[0,he,he],lime:[0,he,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,he],navy:[0,0,128],white:[he,he,he],olive:[128,128,0],yellow:[he,he,0],orange:[he,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[he,0,0],pink:[he,192,203],cyan:[0,he,he],transparent:[he,he,he,0]},Qo=function(e,n,r){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(r-n)*e*6:e<.5?r:e*3<2?n+(r-n)*(2/3-e)*6:n)*he+.5|0},mf=function(e,n,r){var i=e?_n(e)?[e>>16,e>>8&he,e&he]:0:yi.black,s,o,a,l,u,c,f,d,h,_;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),yi[e])i=yi[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),o=e.charAt(2),a=e.charAt(3),e="#"+s+s+o+o+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&he,i&he,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&he,e&he]}else if(e.substr(0,3)==="hsl"){if(i=_=e.match(Lu),!n)l=+i[0]%360/360,u=+i[1]/100,c=+i[2]/100,o=c<=.5?c*(u+1):c+u-c*u,s=c*2-o,i.length>3&&(i[3]*=1),i[0]=Qo(l+1/3,s,o),i[1]=Qo(l,s,o),i[2]=Qo(l-1/3,s,o);else if(~e.indexOf("="))return i=e.match(ju),r&&i.length<4&&(i[3]=1),i}else i=e.match(Lu)||yi.transparent;i=i.map(Number)}return n&&!_&&(s=i[0]/he,o=i[1]/he,a=i[2]/he,f=Math.max(s,o,a),d=Math.min(s,o,a),c=(f+d)/2,f===d?l=u=0:(h=f-d,u=c>.5?h/(2-f-d):h/(f+d),l=f===s?(o-a)/h+(o<a?6:0):f===o?(a-s)/h+2:(s-o)/h+4,l*=60),i[0]=~~(l+.5),i[1]=~~(u*100+.5),i[2]=~~(c*100+.5)),r&&i.length<4&&(i[3]=1),i},gf=function(e){var n=[],r=[],i=-1;return e.split(In).forEach(function(s){var o=s.match(Er)||[];n.push.apply(n,o),r.push(i+=o.length+1)}),n.c=r,n},vf=function(e,n,r){var i="",s=(e+i).match(In),o=n?"hsla(":"rgba(",a=0,l,u,c,f;if(!s)return e;if(s=s.map(function(d){return(d=mf(d,n,1))&&o+(n?d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:d.join(","))+")"}),r&&(c=gf(e),l=r.c,l.join(i)!==c.c.join(i)))for(u=e.replace(In,"1").split(Er),f=u.length-1;a<f;a++)i+=u[a]+(~l.indexOf(a)?s.shift()||o+"0,0,0,0)":(c.length?c:s.length?s:r).shift());if(!u)for(u=e.split(In),f=u.length-1;a<f;a++)i+=u[a]+s[a];return i+u[f]},In=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in yi)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),Cy=/hsl[a]?\(/,yf=function(e){var n=e.join(" "),r;if(In.lastIndex=0,In.test(n))return r=Cy.test(n),e[1]=vf(e[1],r),e[0]=vf(e[0],r,gf(e[1])),!0},bi,xt=function(){var t=Date.now,e=500,n=33,r=t(),i=r,s=1e3/240,o=s,a=[],l,u,c,f,d,h,_=function p(b){var w=t()-i,k=b===!0,T,x,y,E;if((w>e||w<0)&&(r+=w-n),i+=w,y=i-r,T=y-o,(T>0||k)&&(E=++f.frame,d=y-f.time*1e3,f.time=y=y/1e3,o+=T+(T>=s?4:s-T),x=1),k||(l=u(p)),x)for(h=0;h<a.length;h++)a[h](y,d,E,b)};return f={time:0,frame:0,tick:function(){_(!0)},deltaRatio:function(b){return d/(1e3/(b||60))},wake:function(){Bu&&(!Zo&&Ro()&&(qt=Zo=window,Lo=qt.document||{},gt.gsap=ct,(qt.gsapVersions||(qt.gsapVersions=[])).push(ct.version),Vu(ys||qt.GreenSockGlobals||!qt.gsap&&qt||{}),pf.forEach(_f)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),u=c||function(b){return setTimeout(b,o-f.time*1e3+1|0)},bi=1,_(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),bi=0,u=hi},lagSmoothing:function(b,w){e=b||1/0,n=Math.min(w||33,e)},fps:function(b){s=1e3/(b||240),o=f.time*1e3+s},add:function(b,w,k){var T=w?function(x,y,E,P){b(x,y,E,P),f.remove(T)}:b;return f.remove(b),a[k?"unshift":"push"](T),Mr(),T},remove:function(b,w){~(w=a.indexOf(b))&&a.splice(w,1)&&h>=w&&h--},_listeners:a},f}(),Mr=function(){return!bi&&xt.wake()},ne={},Oy=/^[\d.\-M][\d.\-,\s]/,Ey=/["']/g,$y=function(e){for(var n={},r=e.substr(1,e.length-3).split(":"),i=r[0],s=1,o=r.length,a,l,u;s<o;s++)l=r[s],a=s!==o-1?l.lastIndexOf(","):l.length,u=l.substr(0,a),n[i]=isNaN(u)?u.replace(Ey,"").trim():+u,i=l.substr(a+1).trim();return n},Py=function(e){var n=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",n);return e.substring(n,~i&&i<r?e.indexOf(")",r+1):r)},Ay=function(e){var n=(e+"").split("("),r=ne[n[0]];return r&&n.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[$y(n[1])]:Py(e).split(",").map(Yu)):ne._CE&&Oy.test(e)?ne._CE("",e):r},bf=function(e){return function(n){return 1-e(1-n)}},xf=function t(e,n){for(var r=e._first,i;r;)r instanceof tt?t(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?t(r.timeline,n):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=n)),r=r._next},nr=function(e,n){return e&&(Oe(e)?e:ne[e]||Ay(e))||n},rr=function(e,n,r,i){r===void 0&&(r=function(l){return 1-n(1-l)}),i===void 0&&(i=function(l){return l<.5?n(l*2)/2:1-n((1-l)*2)/2});var s={easeIn:n,easeOut:r,easeInOut:i},o;return at(e,function(a){ne[a]=gt[a]=s,ne[o=a.toLowerCase()]=r;for(var l in s)ne[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=ne[a+"."+l]=s[l]}),s},wf=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},ea=function t(e,n,r){var i=n>=1?n:1,s=(r||(e?.3:.45))/(n<1?n:1),o=s/Mo*(Math.asin(1/i)||0),a=function(c){return c===1?1:i*Math.pow(2,-10*c)*ry((c-o)*s)+1},l=e==="out"?a:e==="in"?function(u){return 1-a(1-u)}:wf(a);return s=Mo/s,l.config=function(u,c){return t(e,u,c)},l},ta=function t(e,n){n===void 0&&(n=1.70158);var r=function(o){return o?--o*o*((n+1)*o+n)+1:0},i=e==="out"?r:e==="in"?function(s){return 1-r(1-s)}:wf(r);return i.config=function(s){return t(e,s)},i};at("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;rr(t+",Power"+(n-1),e?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})}),ne.Linear.easeNone=ne.none=ne.Linear.easeIn,rr("Elastic",ea("in"),ea("out"),ea()),function(t,e){var n=1/e,r=2*n,i=2.5*n,s=function(a){return a<n?t*a*a:a<r?t*Math.pow(a-1.5/e,2)+.75:a<i?t*(a-=2.25/e)*a+.9375:t*Math.pow(a-2.625/e,2)+.984375};rr("Bounce",function(o){return 1-s(1-o)},s)}(7.5625,2.75),rr("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),rr("Circ",function(t){return-(Fu(1-t*t)-1)}),rr("Sine",function(t){return t===1?1:-ny(t*ey)+1}),rr("Back",ta("in"),ta("out"),ta()),ne.SteppedEase=ne.steps=gt.SteppedEase={config:function(e,n){e===void 0&&(e=1);var r=1/e,i=e+(n?0:1),s=n?1:0,o=1-de;return function(a){return((i*mi(0,o,a)|0)+s)*r}}},Or.ease=ne["quad.out"],at("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return Ho+=t+","+t+"Params,"});var Sf=function(e,n){this.id=ty++,e._gsap=this,this.target=e,this.harness=n,this.get=n?n.get:Ku,this.set=n?n.getSetter:oa},xi=function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,Ir(this,+n.duration,1,1),this.data=n.data,xe&&(this._ctx=xe,xe.data.push(this)),bi||xt.wake()}var e=t.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,Ir(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if(Mr(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(Cs(this,r),!s._dp||s.parent||tf(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&Yt(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===de||!this._initted&&this._dur&&r||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),qu(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+ef(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},e.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+ef(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,i){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,i):this._repeat?Ar(this._tTime,s)+1:1},e.timeScale=function(r,i){if(!arguments.length)return this._rts===-de?0:this._rts;if(this._rts===r)return this;var s=this.parent&&this._ts?Ts(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-de?0:this._rts,this.totalTime(mi(-Math.abs(this._delay),this.totalDuration(),s),i!==!1),zs(this),hy(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Mr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==de&&(this._tTime-=de)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=Te(r);var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Yt(i,this,this._start-this._delay),this}return this._start},e.endTime=function(r){return this._start+(ot(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ts(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=cy);var i=Ze;return Ze=r,Jo(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),Ze=i,this},e.globalTime=function(r){for(var i=this,s=arguments.length?r:i.rawTime();i;)s=i._start+s/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):s},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,sf(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,sf(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,i){return this.totalTime($t(this,r),ot(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,ot(i)),this._dur||(this._zTime=-de),this},e.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},e.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-de:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-de,this},e.isActive=function(){var r=this.parent||this._dp,i=this._start,s;return!!(!r||this._ts&&this._initted&&r.isActive()&&(s=r.rawTime(!0))>=i&&s<this.endTime(!0)-de)},e.eventCallback=function(r,i,s){var o=this.vars;return arguments.length>1?(i?(o[r]=i,s&&(o[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=i)):delete o[r],this):o[r]},e.then=function(r){var i=this,s=i._prom;return new Promise(function(o){var a=Oe(r)?r:Gu,l=function(){var c=i.then;i.then=null,s&&s(),Oe(a)&&(a=a(i))&&(a.then||a===i)&&(i.then=c),o(a),i.then=c};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?l():i._prom=l})},e.kill=function(){vi(this)},t}();yt(xi.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-de,_prom:0,_ps:!1,_rts:1});var tt=function(t){Ru(e,t);function e(r,i){var s;return r===void 0&&(r={}),s=t.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=ot(r.sortChildren),ke&&Yt(r.parent||ke,pn(s),i),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&nf(pn(s),r.scrollTrigger),s}var n=e.prototype;return n.to=function(i,s,o){return _i(0,arguments,this),this},n.from=function(i,s,o){return _i(1,arguments,this),this},n.fromTo=function(i,s,o,a){return _i(2,arguments,this),this},n.set=function(i,s,o){return s.duration=0,s.parent=this,pi(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new Ae(i,s,$t(this,o),1),this},n.call=function(i,s,o){return Yt(this,Ae.delayedCall(0,i,s),o)},n.staggerTo=function(i,s,o,a,l,u,c){return o.duration=s,o.stagger=o.stagger||a,o.onComplete=u,o.onCompleteParams=c,o.parent=this,new Ae(i,o,$t(this,l)),this},n.staggerFrom=function(i,s,o,a,l,u,c){return o.runBackwards=1,pi(o).immediateRender=ot(o.immediateRender),this.staggerTo(i,s,o,a,l,u,c)},n.staggerFromTo=function(i,s,o,a,l,u,c,f){return a.startAt=o,pi(a).immediateRender=ot(a.immediateRender),this.staggerTo(i,s,a,l,u,c,f)},n.render=function(i,s,o){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=i<=0?0:Te(i),f=this._zTime<0!=i<0&&(this._initted||!u),d,h,_,p,b,w,k,T,x,y,E,P;if(this!==ke&&c>l&&i>=0&&(c=l),c!==this._tTime||o||f){if(a!==this._time&&u&&(c+=this._time-a,i+=this._time-a),d=c,x=this._start,T=this._ts,w=!T,f&&(u||(a=this._zTime),(i||!s)&&(this._zTime=i)),this._repeat){if(E=this._yoyo,b=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(b*100+i,s,o);if(d=Te(c%b),c===l?(p=this._repeat,d=u):(y=Te(c/b),p=~~y,p&&p===y&&(d=u,p--),d>u&&(d=u)),y=Ar(this._tTime,b),!a&&this._tTime&&y!==p&&this._tTime-y*b-this._dur<=0&&(y=p),E&&p&1&&(d=u-d,P=1),p!==y&&!this._lock){var D=E&&y&1,v=D===(E&&p&1);if(p<y&&(D=!D),a=D?0:c%u?u:c,this._lock=1,this.render(a||(P?0:Te(p*b)),s,!u)._lock=0,this._tTime=c,!s&&this.parent&&bt(this,"onRepeat"),this.vars.repeatRefresh&&!P&&(this.invalidate()._lock=1,y=p),a&&a!==this._time||w!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,v&&(this._lock=2,a=D?u:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!P&&this.invalidate()),this._lock=0,!this._ts&&!w)return this;xf(this,P)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(k=gy(this,Te(a),Te(d)),k&&(c-=d-(d=k._start))),this._tTime=c,this._time=d,this._act=!T,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,a=0),!a&&c&&u&&!s&&!y&&(bt(this,"onStart"),this._tTime!==c))return this;if(d>=a&&i>=0)for(h=this._first;h;){if(_=h._next,(h._act||d>=h._start)&&h._ts&&k!==h){if(h.parent!==this)return this.render(i,s,o);if(h.render(h._ts>0?(d-h._start)*h._ts:(h._dirty?h.totalDuration():h._tDur)+(d-h._start)*h._ts,s,o),d!==this._time||!this._ts&&!w){k=0,_&&(c+=this._zTime=-de);break}}h=_}else{h=this._last;for(var S=i<0?i:d;h;){if(_=h._prev,(h._act||S<=h._end)&&h._ts&&k!==h){if(h.parent!==this)return this.render(i,s,o);if(h.render(h._ts>0?(S-h._start)*h._ts:(h._dirty?h.totalDuration():h._tDur)+(S-h._start)*h._ts,s,o||Ze&&Jo(h)),d!==this._time||!this._ts&&!w){k=0,_&&(c+=this._zTime=S?-de:de);break}}h=_}}if(k&&!s&&(this.pause(),k.render(d>=a?0:-de)._zTime=d>=a?1:-1,this._ts))return this._start=x,zs(this),this.render(i,s,o);this._onUpdate&&!s&&bt(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&a)&&(x===this._start||Math.abs(T)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&Pn(this,1),!s&&!(i<0&&!a)&&(c||a||!l)&&(bt(this,c===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(i,s){var o=this;if(_n(s)||(s=$t(this,s,i)),!(i instanceof xi)){if(We(i))return i.forEach(function(a){return o.add(a,s)}),this;if(Me(i))return this.addLabel(i,s);if(Oe(i))i=Ae.delayedCall(0,i);else return this}return this!==i?Yt(this,i,s):this},n.getChildren=function(i,s,o,a){i===void 0&&(i=!0),s===void 0&&(s=!0),o===void 0&&(o=!0),a===void 0&&(a=-Et);for(var l=[],u=this._first;u;)u._start>=a&&(u instanceof Ae?s&&l.push(u):(o&&l.push(u),i&&l.push.apply(l,u.getChildren(!0,s,o)))),u=u._next;return l},n.getById=function(i){for(var s=this.getChildren(1,1,1),o=s.length;o--;)if(s[o].vars.id===i)return s[o]},n.remove=function(i){return Me(i)?this.removeLabel(i):Oe(i)?this.killTweensOf(i):(i.parent===this&&ks(this,i),i===this._recent&&(this._recent=this._last),tr(this))},n.totalTime=function(i,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Te(xt.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),t.prototype.totalTime.call(this,i,s),this._forcing=0,this):this._tTime},n.addLabel=function(i,s){return this.labels[i]=$t(this,s),this},n.removeLabel=function(i){return delete this.labels[i],this},n.addPause=function(i,s,o){var a=Ae.delayedCall(0,s||hi,o);return a.data="isPause",this._hasPause=1,Yt(this,a,$t(this,i))},n.removePause=function(i){var s=this._first;for(i=$t(this,i);s;)s._start===i&&s.data==="isPause"&&Pn(s),s=s._next},n.killTweensOf=function(i,s,o){for(var a=this.getTweensOf(i,o),l=a.length;l--;)Dn!==a[l]&&a[l].kill(i,s);return this},n.getTweensOf=function(i,s){for(var o=[],a=Pt(i),l=this._first,u=_n(s),c;l;)l instanceof Ae?uy(l._targets,a)&&(u?(!Dn||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&o.push(l):(c=l.getTweensOf(a,s)).length&&o.push.apply(o,c),l=l._next;return o},n.tweenTo=function(i,s){s=s||{};var o=this,a=$t(o,i),l=s,u=l.startAt,c=l.onStart,f=l.onStartParams,d=l.immediateRender,h,_=Ae.to(o,yt({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:s.duration||Math.abs((a-(u&&"time"in u?u.time:o._time))/o.timeScale())||de,onStart:function(){if(o.pause(),!h){var b=s.duration||Math.abs((a-(u&&"time"in u?u.time:o._time))/o.timeScale());_._dur!==b&&Ir(_,b,0,1).render(_._time,!0,!0),h=1}c&&c.apply(_,f||[])}},s));return d?_.render(0):_},n.tweenFromTo=function(i,s,o){return this.tweenTo(s,yt({startAt:{time:$t(this,i)}},o))},n.recent=function(){return this._recent},n.nextLabel=function(i){return i===void 0&&(i=this._time),hf(this,$t(this,i))},n.previousLabel=function(i){return i===void 0&&(i=this._time),hf(this,$t(this,i),1)},n.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+de)},n.shiftChildren=function(i,s,o){o===void 0&&(o=0);var a=this._first,l=this.labels,u;for(i=Te(i);a;)a._start>=o&&(a._start+=i,a._end+=i),a=a._next;if(s)for(u in l)l[u]>=o&&(l[u]+=i);return tr(this)},n.invalidate=function(i){var s=this._first;for(this._lock=0;s;)s.invalidate(i),s=s._next;return t.prototype.invalidate.call(this,i)},n.clear=function(i){i===void 0&&(i=!0);for(var s=this._first,o;s;)o=s._next,this.remove(s),s=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),tr(this)},n.totalDuration=function(i){var s=0,o=this,a=o._last,l=Et,u,c,f;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(f=o.parent;a;)u=a._prev,a._dirty&&a.totalDuration(),c=a._start,c>l&&o._sort&&a._ts&&!o._lock?(o._lock=1,Yt(o,a,c-a._delay,1)._lock=0):l=c,c<0&&a._ts&&(s-=c,(!f&&!o._dp||f&&f.smoothChildTiming)&&(o._start+=Te(c/o._ts),o._time-=c,o._tTime-=c),o.shiftChildren(-c,!1,-1/0),l=0),a._end>s&&a._ts&&(s=a._end),a=u;Ir(o,o===ke&&o._time>s?o._time:s,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(i){if(ke._ts&&(qu(ke,Ts(i,ke)),Wu=xt.frame),xt.frame>=Ju){Ju+=mt.autoSleep||120;var s=ke._first;if((!s||!s._ts)&&mt.autoSleep&&xt._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||xt.sleep()}}},e}(xi);yt(tt.prototype,{_lock:0,_hasPause:0,_forcing:0});var Iy=function(e,n,r,i,s,o,a){var l=new lt(this._pt,e,n,0,1,Ef,null,s),u=0,c=0,f,d,h,_,p,b,w,k;for(l.b=r,l.e=i,r+="",i+="",(w=~i.indexOf("random("))&&(i=gi(i)),o&&(k=[r,i],o(k,e,n),r=k[0],i=k[1]),d=r.match(Fo)||[];f=Fo.exec(i);)_=f[0],p=i.substring(u,f.index),h?h=(h+1)%5:p.substr(-5)==="rgba("&&(h=1),_!==d[c++]&&(b=parseFloat(d[c-1])||0,l._pt={_next:l._pt,p:p||c===1?p:",",s:b,c:_.charAt(1)==="="?$r(b,_)-b:parseFloat(_)-b,m:h&&h<4?Math.round:0},u=Fo.lastIndex);return l.c=u<i.length?i.substring(u,i.length):"",l.fp=a,(Uu.test(i)||w)&&(l.e=0),this._pt=l,l},na=function(e,n,r,i,s,o,a,l,u,c){Oe(i)&&(i=i(s||0,e,o));var f=e[n],d=r!=="get"?r:Oe(f)?u?e[n.indexOf("set")||!Oe(e["get"+n.substr(3)])?n:"get"+n.substr(3)](u):e[n]():f,h=Oe(f)?u?Fy:Cf:sa,_;if(Me(i)&&(~i.indexOf("random(")&&(i=gi(i)),i.charAt(1)==="="&&(_=$r(d,i)+(Je(d)||0),(_||_===0)&&(i=_))),!c||d!==i||ra)return!isNaN(d*i)&&i!==""?(_=new lt(this._pt,e,n,+d||0,i-(d||0),typeof f=="boolean"?Ly:Of,0,h),u&&(_.fp=u),a&&_.modifier(a,this,e),this._pt=_):(!f&&!(n in e)&&jo(n,i),Iy.call(this,e,n,d,i,h,l||mt.stringFilter,u))},Dy=function(e,n,r,i,s){if(Oe(e)&&(e=wi(e,s,n,r,i)),!Kt(e)||e.style&&e.nodeType||We(e)||Zu(e))return Me(e)?wi(e,s,n,r,i):e;var o={},a;for(a in e)o[a]=wi(e[a],s,n,r,i);return o},kf=function(e,n,r,i,s,o){var a,l,u,c;if(vt[e]&&(a=new vt[e]).init(s,a.rawVars?n[e]:Dy(n[e],i,s,o,r),r,i,o)!==!1&&(r._pt=l=new lt(r._pt,s,e,0,1,a.render,a,0,a.priority),r!==Dr))for(u=r._ptLookup[r._targets.indexOf(s)],c=a._props.length;c--;)u[a._props[c]]=l;return a},Dn,ra,ia=function t(e,n,r){var i=e.vars,s=i.ease,o=i.startAt,a=i.immediateRender,l=i.lazy,u=i.onUpdate,c=i.runBackwards,f=i.yoyoEase,d=i.keyframes,h=i.autoRevert,_=e._dur,p=e._startAt,b=e._targets,w=e.parent,k=w&&w.data==="nested"?w.vars.targets:b,T=e._overwrite==="auto"&&!Do,x=e.timeline,y,E,P,D,v,S,N,O,B,Y,se,Q,G;if(x&&(!d||!s)&&(s="none"),e._ease=nr(s,Or.ease),e._yEase=f?bf(nr(f===!0?s:f,Or.ease)):0,f&&e._yoyo&&!e._repeat&&(f=e._yEase,e._yEase=e._ease,e._ease=f),e._from=!x&&!!i.runBackwards,!x||d&&!i.stagger){if(O=b[0]?er(b[0]).harness:0,Q=O&&i[O.prop],y=Ss(i,Uo),p&&(p._zTime<0&&p.progress(1),n<0&&c&&a&&!h?p.render(-1,!0):p.revert(c&&_?bs:ly),p._lazy=0),o){if(Pn(e._startAt=Ae.set(b,yt({data:"isStart",overwrite:!1,parent:w,immediateRender:!0,lazy:!p&&ot(l),startAt:null,delay:0,onUpdate:u&&function(){return bt(e,"onUpdate")},stagger:0},o))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Ze||!a&&!h)&&e._startAt.revert(bs),a&&_&&n<=0&&r<=0){n&&(e._zTime=n);return}}else if(c&&_&&!p){if(n&&(a=!1),P=yt({overwrite:!1,data:"isFromStart",lazy:a&&!p&&ot(l),immediateRender:a,stagger:0,parent:w},y),Q&&(P[O.prop]=Q),Pn(e._startAt=Ae.set(b,P)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Ze?e._startAt.revert(bs):e._startAt.render(-1,!0)),e._zTime=n,!a)t(e._startAt,de,de);else if(!n)return}for(e._pt=e._ptCache=0,l=_&&ot(l)||l&&!_,E=0;E<b.length;E++){if(v=b[E],N=v._gsap||Wo(b)[E]._gsap,e._ptLookup[E]=Y={},Bo[N.id]&&$n.length&&ws(),se=k===b?E:k.indexOf(v),O&&(B=new O).init(v,Q||y,e,se,k)!==!1&&(e._pt=D=new lt(e._pt,v,B.name,0,1,B.render,B,0,B.priority),B._props.forEach(function(te){Y[te]=D}),B.priority&&(S=1)),!O||Q)for(P in y)vt[P]&&(B=kf(P,y,e,se,v,k))?B.priority&&(S=1):Y[P]=D=na.call(e,v,P,"get",y[P],se,k,0,i.stringFilter);e._op&&e._op[E]&&e.kill(v,e._op[E]),T&&e._pt&&(Dn=e,ke.killTweensOf(v,Y,e.globalTime(n)),G=!e.parent,Dn=0),e._pt&&l&&(Bo[N.id]=1)}S&&$f(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!G,d&&n<=0&&x.render(Et,!0,!0)},My=function(e,n,r,i,s,o,a,l){var u=(e._pt&&e._ptCache||(e._ptCache={}))[n],c,f,d,h;if(!u)for(u=e._ptCache[n]=[],d=e._ptLookup,h=e._targets.length;h--;){if(c=d[h][n],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==n&&c.fp!==n;)c=c._next;if(!c)return ra=1,e.vars[n]="+=0",ia(e,a),ra=0,l?di(n+" not eligible for reset"):1;u.push(c)}for(h=u.length;h--;)f=u[h],c=f._pt||f,c.s=(i||i===0)&&!s?i:c.s+(i||0)+o*c.c,c.c=r-c.s,f.e&&(f.e=$e(r)+Je(f.e)),f.b&&(f.b=c.s+Je(f.b))},Ny=function(e,n){var r=e[0]?er(e[0]).harness:0,i=r&&r.aliases,s,o,a,l;if(!i)return n;s=Pr({},n);for(o in i)if(o in s)for(l=i[o].split(","),a=l.length;a--;)s[l[a]]=s[o];return s},Ry=function(e,n,r,i){var s=n.ease||i||"power1.inOut",o,a;if(We(n))a=r[e]||(r[e]=[]),n.forEach(function(l,u){return a.push({t:u/(n.length-1)*100,v:l,e:s})});else for(o in n)a=r[o]||(r[o]=[]),o==="ease"||a.push({t:parseFloat(e),v:n[o],e:s})},wi=function(e,n,r,i,s){return Oe(e)?e.call(n,r,i,s):Me(e)&&~e.indexOf("random(")?gi(e):e},Tf=Ho+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",zf={};at(Tf+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return zf[t]=1});var Ae=function(t){Ru(e,t);function e(r,i,s,o){var a;typeof i=="number"&&(s.duration=i,i=s,s=null),a=t.call(this,o?i:pi(i))||this;var l=a.vars,u=l.duration,c=l.delay,f=l.immediateRender,d=l.stagger,h=l.overwrite,_=l.keyframes,p=l.defaults,b=l.scrollTrigger,w=l.yoyoEase,k=i.parent||ke,T=(We(r)||Zu(r)?_n(r[0]):"length"in i)?[r]:Pt(r),x,y,E,P,D,v,S,N;if(a._targets=T.length?Wo(T):di("GSAP target "+r+" not found. https://gsap.com",!mt.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=h,_||d||vs(u)||vs(c)){if(i=a.vars,x=a.timeline=new tt({data:"nested",defaults:p||{},targets:k&&k.data==="nested"?k.vars.targets:T}),x.kill(),x.parent=x._dp=pn(a),x._start=0,d||vs(u)||vs(c)){if(P=T.length,S=d&&lf(d),Kt(d))for(D in d)~Tf.indexOf(D)&&(N||(N={}),N[D]=d[D]);for(y=0;y<P;y++)E=Ss(i,zf),E.stagger=0,w&&(E.yoyoEase=w),N&&Pr(E,N),v=T[y],E.duration=+wi(u,pn(a),y,v,T),E.delay=(+wi(c,pn(a),y,v,T)||0)-a._delay,!d&&P===1&&E.delay&&(a._delay=c=E.delay,a._start+=c,E.delay=0),x.to(v,E,S?S(y,v,T):0),x._ease=ne.none;x.duration()?u=c=0:a.timeline=0}else if(_){pi(yt(x.vars.defaults,{ease:"none"})),x._ease=nr(_.ease||i.ease||"none");var O=0,B,Y,se;if(We(_))_.forEach(function(Q){return x.to(T,Q,">")}),x.duration();else{E={};for(D in _)D==="ease"||D==="easeEach"||Ry(D,_[D],E,_.easeEach);for(D in E)for(B=E[D].sort(function(Q,G){return Q.t-G.t}),O=0,y=0;y<B.length;y++)Y=B[y],se={ease:Y.e,duration:(Y.t-(y?B[y-1].t:0))/100*u},se[D]=Y.v,x.to(T,se,O),O+=se.duration;x.duration()<u&&x.to({},{duration:u-x.duration()})}}u||a.duration(u=x.duration())}else a.timeline=0;return h===!0&&!Do&&(Dn=pn(a),ke.killTweensOf(T),Dn=0),Yt(k,pn(a),s),i.reversed&&a.reverse(),i.paused&&a.paused(!0),(f||!u&&!_&&a._start===Te(k._time)&&ot(f)&&py(pn(a))&&k.data!=="nested")&&(a._tTime=-de,a.render(Math.max(0,-c)||0)),b&&nf(pn(a),b),a}var n=e.prototype;return n.render=function(i,s,o){var a=this._time,l=this._tDur,u=this._dur,c=i<0,f=i>l-de&&!c?l:i<de?0:i,d,h,_,p,b,w,k,T,x;if(!u)my(this,i,s,o);else if(f!==this._tTime||!i||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(d=f,T=this.timeline,this._repeat){if(p=u+this._rDelay,this._repeat<-1&&c)return this.totalTime(p*100+i,s,o);if(d=Te(f%p),f===l?(_=this._repeat,d=u):(b=Te(f/p),_=~~b,_&&_===b?(d=u,_--):d>u&&(d=u)),w=this._yoyo&&_&1,w&&(x=this._yEase,d=u-d),b=Ar(this._tTime,p),d===a&&!o&&this._initted&&_===b)return this._tTime=f,this;_!==b&&(T&&this._yEase&&xf(T,w),this.vars.repeatRefresh&&!w&&!this._lock&&d!==p&&this._initted&&(this._lock=o=1,this.render(Te(p*_),!0).invalidate()._lock=0))}if(!this._initted){if(rf(this,c?i:d,o,s,f))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&_!==b))return this;if(u!==this._dur)return this.render(i,s,o)}if(this._tTime=f,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=k=(x||this._ease)(d/u),this._from&&(this.ratio=k=1-k),!a&&f&&!s&&!b&&(bt(this,"onStart"),this._tTime!==f))return this;for(h=this._pt;h;)h.r(k,h.d),h=h._next;T&&T.render(i<0?i:T._dur*T._ease(d/this._dur),s,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!s&&(c&&Ko(this,i,s,o),bt(this,"onUpdate")),this._repeat&&_!==b&&this.vars.onRepeat&&!s&&this.parent&&bt(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&Ko(this,i,!0,!0),(i||!u)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&Pn(this,1),!s&&!(c&&!a)&&(f||a||w)&&(bt(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),t.prototype.invalidate.call(this,i)},n.resetTo=function(i,s,o,a,l){bi||xt.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||ia(this,u),c=this._ease(u/this._dur),My(this,i,s,o,a,c,u,l)?this.resetTo(i,s,o,a,1):(Cs(this,0),this.parent||Qu(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(i,s){if(s===void 0&&(s="all"),!i&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?vi(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Ze),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,s,Dn&&Dn.vars.overwrite!==!0)._first||vi(this),this.parent&&o!==this.timeline.totalDuration()&&Ir(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,l=i?Pt(i):a,u=this._ptLookup,c=this._pt,f,d,h,_,p,b,w;if((!s||s==="all")&&dy(a,l))return s==="all"&&(this._pt=0),vi(this);for(f=this._op=this._op||[],s!=="all"&&(Me(s)&&(p={},at(s,function(k){return p[k]=1}),s=p),s=Ny(a,s)),w=a.length;w--;)if(~l.indexOf(a[w])){d=u[w],s==="all"?(f[w]=s,_=d,h={}):(h=f[w]=f[w]||{},_=s);for(p in _)b=d&&d[p],b&&((!("kill"in b.d)||b.d.kill(p)===!0)&&ks(this,b,"_pt"),delete d[p]),h!=="all"&&(h[p]=1)}return this._initted&&!this._pt&&c&&vi(this),this},e.to=function(i,s){return new e(i,s,arguments[2])},e.from=function(i,s){return _i(1,arguments)},e.delayedCall=function(i,s,o,a){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:s,onReverseComplete:s,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},e.fromTo=function(i,s,o){return _i(2,arguments)},e.set=function(i,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(i,s)},e.killTweensOf=function(i,s,o){return ke.killTweensOf(i,s,o)},e}(xi);yt(Ae.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),at("staggerTo,staggerFrom,staggerFromTo",function(t){Ae[t]=function(){var e=new tt,n=Yo.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var sa=function(e,n,r){return e[n]=r},Cf=function(e,n,r){return e[n](r)},Fy=function(e,n,r,i){return e[n](i.fp,r)},Zy=function(e,n,r){return e.setAttribute(n,r)},oa=function(e,n){return Oe(e[n])?Cf:No(e[n])&&e.setAttribute?Zy:sa},Of=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},Ly=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},Ef=function(e,n){var r=n._pt,i="";if(!e&&n.b)i=n.b;else if(e===1&&n.e)i=n.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+i,r=r._next;i+=n.c}n.set(n.t,n.p,i,n)},aa=function(e,n){for(var r=n._pt;r;)r.r(e,r.d),r=r._next},jy=function(e,n,r,i){for(var s=this._pt,o;s;)o=s._next,s.p===i&&s.modifier(e,n,r),s=o},Uy=function(e){for(var n=this._pt,r,i;n;)i=n._next,n.p===e&&!n.op||n.op===e?ks(this,n,"_pt"):n.dep||(r=1),n=i;return!r},By=function(e,n,r,i){i.mSet(e,n,i.m.call(i.tween,r,i.mt),i)},$f=function(e){for(var n=e._pt,r,i,s,o;n;){for(r=n._next,i=s;i&&i.pr>n.pr;)i=i._next;(n._prev=i?i._prev:o)?n._prev._next=n:s=n,(n._next=i)?i._prev=n:o=n,n=r}e._pt=s},lt=function(){function t(n,r,i,s,o,a,l,u,c){this.t=r,this.s=s,this.c=o,this.p=i,this.r=a||Of,this.d=l||this,this.set=u||sa,this.pr=c||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(r,i,s){this.mSet=this.mSet||this.set,this.set=By,this.m=r,this.mt=s,this.tween=i},t}();at(Ho+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return Uo[t]=1}),gt.TweenMax=gt.TweenLite=Ae,gt.TimelineLite=gt.TimelineMax=tt,ke=new tt({sortChildren:!1,defaults:Or,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),mt.stringFilter=yf;var ir=[],Os={},Vy=[],Pf=0,Hy=0,la=function(e){return(Os[e]||Vy).map(function(n){return n()})},ca=function(){var e=Date.now(),n=[];e-Pf>2&&(la("matchMediaInit"),ir.forEach(function(r){var i=r.queries,s=r.conditions,o,a,l,u;for(a in i)o=qt.matchMedia(i[a]).matches,o&&(l=1),o!==s[a]&&(s[a]=o,u=1);u&&(r.revert(),l&&n.push(r))}),la("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),Pf=e,la("matchMedia"))},Af=function(){function t(n,r){this.selector=r&&Go(r),this.data=[],this._r=[],this.isReverted=!1,this.id=Hy++,n&&this.add(n)}var e=t.prototype;return e.add=function(r,i,s){Oe(r)&&(s=i,i=r,r=Oe);var o=this,a=function(){var u=xe,c=o.selector,f;return u&&u!==o&&u.data.push(o),s&&(o.selector=Go(s)),xe=o,f=i.apply(o,arguments),Oe(f)&&o._r.push(f),xe=u,o.selector=c,o.isReverted=!1,f};return o.last=a,r===Oe?a(o,function(l){return o.add(null,l)}):r?o[r]=a:a},e.ignore=function(r){var i=xe;xe=null,r(this),xe=i},e.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof t?r.push.apply(r,i.getTweens()):i instanceof Ae&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,i){var s=this;if(r?function(){for(var a=s.getTweens(),l=s.data.length,u;l--;)u=s.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return a.splice(a.indexOf(c),1)}));for(a.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,f){return f.g-c.g||-1/0}).forEach(function(c){return c.t.revert(r)}),l=s.data.length;l--;)u=s.data[l],u instanceof tt?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof Ae)&&u.revert&&u.revert(r);s._r.forEach(function(c){return c(r,s)}),s.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i)for(var o=ir.length;o--;)ir[o].id===this.id&&ir.splice(o,1)},e.revert=function(r){this.kill(r||{})},t}(),Wy=function(){function t(n){this.contexts=[],this.scope=n,xe&&xe.data.push(this)}var e=t.prototype;return e.add=function(r,i,s){Kt(r)||(r={matches:r});var o=new Af(0,s||this.scope),a=o.conditions={},l,u,c;xe&&!o.selector&&(o.selector=xe.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=r;for(u in r)u==="all"?c=1:(l=qt.matchMedia(r[u]),l&&(ir.indexOf(o)<0&&ir.push(o),(a[u]=l.matches)&&(c=1),l.addListener?l.addListener(ca):l.addEventListener("change",ca)));return c&&i(o,function(f){return o.add(null,f)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},t}(),Es={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(i){return _f(i)})},timeline:function(e){return new tt(e)},getTweensOf:function(e,n){return ke.getTweensOf(e,n)},getProperty:function(e,n,r,i){Me(e)&&(e=Pt(e)[0]);var s=er(e||{}).get,o=r?Gu:Yu;return r==="native"&&(r=""),e&&(n?o((vt[n]&&vt[n].get||s)(e,n,r,i)):function(a,l,u){return o((vt[a]&&vt[a].get||s)(e,a,l,u))})},quickSetter:function(e,n,r){if(e=Pt(e),e.length>1){var i=e.map(function(c){return ct.quickSetter(c,n,r)}),s=i.length;return function(c){for(var f=s;f--;)i[f](c)}}e=e[0]||{};var o=vt[n],a=er(e),l=a.harness&&(a.harness.aliases||{})[n]||n,u=o?function(c){var f=new o;Dr._pt=0,f.init(e,r?c+r:c,Dr,0,[e]),f.render(1,f),Dr._pt&&aa(1,Dr)}:a.set(e,l);return o?u:function(c){return u(e,l,r?c+r:c,a,1)}},quickTo:function(e,n,r){var i,s=ct.to(e,yt((i={},i[n]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),o=function(l,u,c){return s.resetTo(n,l,u,c)};return o.tween=s,o},isTweening:function(e){return ke.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=nr(e.ease,Or.ease)),Xu(Or,e||{})},config:function(e){return Xu(mt,e||{})},registerEffect:function(e){var n=e.name,r=e.effect,i=e.plugins,s=e.defaults,o=e.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!vt[a]&&!gt[a]&&di(n+" effect requires "+a+" plugin.")}),Vo[n]=function(a,l,u){return r(Pt(a),yt(l||{},s),u)},o&&(tt.prototype[n]=function(a,l,u){return this.add(Vo[n](a,Kt(l)?l:(u=l)&&{},this),u)})},registerEase:function(e,n){ne[e]=nr(n)},parseEase:function(e,n){return arguments.length?nr(e,n):ne},getById:function(e){return ke.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var r=new tt(e),i,s;for(r.smoothChildTiming=ot(e.smoothChildTiming),ke.remove(r),r._dp=0,r._time=r._tTime=ke._time,i=ke._first;i;)s=i._next,(n||!(!i._dur&&i instanceof Ae&&i.vars.onComplete===i._targets[0]))&&Yt(r,i,i._start-i._delay),i=s;return Yt(ke,r,0),r},context:function(e,n){return e?new Af(e,n):xe},matchMedia:function(e){return new Wy(e)},matchMediaRefresh:function(){return ir.forEach(function(e){var n=e.conditions,r,i;for(i in n)n[i]&&(n[i]=!1,r=1);r&&e.revert()})||ca()},addEventListener:function(e,n){var r=Os[e]||(Os[e]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(e,n){var r=Os[e],i=r&&r.indexOf(n);i>=0&&r.splice(i,1)},utils:{wrap:ky,wrapYoyo:Ty,distribute:lf,random:uf,snap:cf,normalize:Sy,getUnit:Je,clamp:yy,splitColor:mf,toArray:Pt,selector:Go,mapRange:df,pipe:xy,unitize:wy,interpolate:zy,shuffle:af},install:Vu,effects:Vo,ticker:xt,updateRoot:tt.updateRoot,plugins:vt,globalTimeline:ke,core:{PropTween:lt,globals:Hu,Tween:Ae,Timeline:tt,Animation:xi,getCache:er,_removeLinkedListItem:ks,reverting:function(){return Ze},context:function(e){return e&&xe&&(xe.data.push(e),e._ctx=xe),xe},suppressOverwrites:function(e){return Do=e}}};at("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Es[t]=Ae[t]}),xt.add(tt.updateRoot),Dr=Es.to({},{duration:0});var Jy=function(e,n){for(var r=e._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},Ky=function(e,n){var r=e._targets,i,s,o;for(i in n)for(s=r.length;s--;)o=e._ptLookup[s][i],o&&(o=o.d)&&(o._pt&&(o=Jy(o,i)),o&&o.modifier&&o.modifier(n[i],e,r[s],i))},ua=function(e,n){return{name:e,headless:1,rawVars:1,init:function(i,s,o){o._onInit=function(a){var l,u;if(Me(s)&&(l={},at(s,function(c){return l[c]=1}),s=l),n){l={};for(u in s)l[u]=n(s[u]);s=l}Ky(a,s)}}}},ct=Es.registerPlugin({name:"attr",init:function(e,n,r,i,s){var o,a,l;this.tween=r;for(o in n)l=e.getAttribute(o)||"",a=this.add(e,"setAttribute",(l||0)+"",n[o],i,s,0,0,o),a.op=o,a.b=l,this._props.push(o)},render:function(e,n){for(var r=n._pt;r;)Ze?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,n){for(var r=n.length;r--;)this.add(e,r,e[r]||0,n[r],0,0,0,0,0,1)}},ua("roundProps",Xo),ua("modifiers"),ua("snap",cf))||Es;Ae.version=tt.version=ct.version="3.14.2",Bu=1,Ro()&&Mr(),ne.Power0,ne.Power1,ne.Power2,ne.Power3,ne.Power4,ne.Linear,ne.Quad,ne.Cubic,ne.Quart,ne.Quint,ne.Strong,ne.Elastic,ne.Back,ne.SteppedEase,ne.Bounce,ne.Sine,ne.Expo,ne.Circ;/*!
49
49
  * CSSPlugin 3.14.2
50
50
  * https://gsap.com
51
51
  *
52
52
  * Copyright 2008-2025, GreenSock. All rights reserved.
53
53
  * Subject to the terms at https://gsap.com/standard-license
54
54
  * @author: Jack Doyle, jack@greensock.com
55
- */var Wp,bi,Bs,Oc,Ji,Hp,Ac,kk=function(){return typeof window<"u"},Zn={},Gi=180/Math.PI,js=Math.PI/180,Vs=Math.atan2,Zp=1e8,zc=/([A-Z])/g,Tk=/(left|right|width|margin|padding|x)/i,Mk=/[\s,\(]\S/,Tn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Dc=function(t,n){return n.set(n.t,n.p,Math.round((n.s+n.c*t)*1e4)/1e4+n.u,n)},Ck=function(t,n){return n.set(n.t,n.p,t===1?n.e:Math.round((n.s+n.c*t)*1e4)/1e4+n.u,n)},Pk=function(t,n){return n.set(n.t,n.p,t?Math.round((n.s+n.c*t)*1e4)/1e4+n.u:n.b,n)},Ok=function(t,n){return n.set(n.t,n.p,t===1?n.e:t?Math.round((n.s+n.c*t)*1e4)/1e4+n.u:n.b,n)},Ak=function(t,n){var i=n.s+n.c*t;n.set(n.t,n.p,~~(i+(i<0?-.5:.5))+n.u,n)},Up=function(t,n){return n.set(n.t,n.p,t?n.e:n.b,n)},Yp=function(t,n){return n.set(n.t,n.p,t!==1?n.b:n.e,n)},zk=function(t,n,i){return t.style[n]=i},Dk=function(t,n,i){return t.style.setProperty(n,i)},Ek=function(t,n,i){return t._gsap[n]=i},Ik=function(t,n,i){return t._gsap.scaleX=t._gsap.scaleY=i},Rk=function(t,n,i,s,r){var o=t._gsap;o.scaleX=o.scaleY=i,o.renderTransform(r,o)},Lk=function(t,n,i,s,r){var o=t._gsap;o[n]=i,o.renderTransform(r,o)},$t="transform",ze=$t+"Origin",Fk=function e(t,n){var i=this,s=this.target,r=s.style,o=s._gsap;if(t in Zn&&r){if(this.tfm=this.tfm||{},t!=="transform")t=Tn[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return i.tfm[a]=Un(s,a)}):this.tfm[t]=o.x?o[t]:Un(s,t),t===ze&&(this.tfm.zOrigin=o.zOrigin);else return Tn.transform.split(",").forEach(function(a){return e.call(i,a,n)});if(this.props.indexOf($t)>=0)return;o.svg&&(this.svgo=s.getAttribute("data-svg-origin"),this.props.push(ze,n,"")),t=$t}(r||n)&&this.props.push(t,n,r[t])},Kp=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},$k=function(){var t=this.props,n=this.target,i=n.style,s=n._gsap,r,o;for(r=0;r<t.length;r+=3)t[r+1]?t[r+1]===2?n[t[r]](t[r+2]):n[t[r]]=t[r+2]:t[r+2]?i[t[r]]=t[r+2]:i.removeProperty(t[r].substr(0,2)==="--"?t[r]:t[r].replace(zc,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)s[o]=this.tfm[o];s.svg&&(s.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),r=Ac(),(!r||!r.isStart)&&!i[$t]&&(Kp(i),s.zOrigin&&i[ze]&&(i[ze]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},Xp=function(t,n){var i={target:t,props:[],revert:$k,save:Fk};return t._gsap||Ae.core.getCache(t),n&&t.style&&t.nodeType&&n.split(",").forEach(function(s){return i.save(s)}),i},qp,Ec=function(t,n){var i=bi.createElementNS?bi.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):bi.createElement(t);return i&&i.style?i:bi.createElement(t)},Ze=function e(t,n,i){var s=getComputedStyle(t);return s[n]||s.getPropertyValue(n.replace(zc,"-$1").toLowerCase())||s.getPropertyValue(n)||!i&&e(t,Ws(n)||n,1)||""},Jp="O,Moz,ms,Ms,Webkit".split(","),Ws=function(t,n,i){var s=n||Ji,r=s.style,o=5;if(t in r&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(Jp[o]+t in r););return o<0?null:(o===3?"ms":o>=0?Jp[o]:"")+t},Ic=function(){kk()&&window.document&&(Wp=window,bi=Wp.document,Bs=bi.documentElement,Ji=Ec("div")||{style:{}},Ec("div"),$t=Ws($t),ze=$t+"Origin",Ji.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",qp=!!Ws("perspective"),Ac=Ae.core.reverting,Oc=1)},Gp=function(t){var n=t.ownerSVGElement,i=Ec("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=t.cloneNode(!0),r;s.style.display="block",i.appendChild(s),Bs.appendChild(i);try{r=s.getBBox()}catch{}return i.removeChild(s),Bs.removeChild(i),r},Qp=function(t,n){for(var i=n.length;i--;)if(t.hasAttribute(n[i]))return t.getAttribute(n[i])},tg=function(t){var n,i;try{n=t.getBBox()}catch{n=Gp(t),i=1}return n&&(n.width||n.height)||i||(n=Gp(t)),n&&!n.width&&!n.x&&!n.y?{x:+Qp(t,["x","cx","x1"])||0,y:+Qp(t,["y","cy","y1"])||0,width:0,height:0}:n},eg=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&tg(t))},yi=function(t,n){if(n){var i=t.style,s;n in Zn&&n!==ze&&(n=$t),i.removeProperty?(s=n.substr(0,2),(s==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),i.removeProperty(s==="--"?n:n.replace(zc,"-$1").toLowerCase())):i.removeAttribute(n)}},xi=function(t,n,i,s,r,o){var a=new Oe(t._pt,n,i,0,1,o?Yp:Up);return t._pt=a,a.b=s,a.e=r,t._props.push(i),a},ng={deg:1,rad:1,turn:1},Nk={grid:1,flex:1},vi=function e(t,n,i,s){var r=parseFloat(i)||0,o=(i+"").trim().substr((r+"").length)||"px",a=Ji.style,l=Tk.test(n),c=t.tagName.toLowerCase()==="svg",u=(c?"client":"offset")+(l?"Width":"Height"),f=100,h=s==="px",d=s==="%",g,p,m,_;if(s===o||!r||ng[s]||ng[o])return r;if(o!=="px"&&!h&&(r=e(t,n,i,"px")),_=t.getCTM&&eg(t),(d||o==="%")&&(Zn[n]||~n.indexOf("adius")))return g=_?t.getBBox()[l?"width":"height"]:t[u],Wt(d?r/g*f:r/100*g);if(a[l?"width":"height"]=f+(h?o:s),p=s!=="rem"&&~n.indexOf("adius")||s==="em"&&t.appendChild&&!c?t:t.parentNode,_&&(p=(t.ownerSVGElement||{}).parentNode),(!p||p===bi||!p.appendChild)&&(p=bi.body),m=p._gsap,m&&d&&m.width&&l&&m.time===He.time&&!m.uncache)return Wt(r/m.width*f);if(d&&(n==="height"||n==="width")){var y=t.style[n];t.style[n]=f+s,g=t[u],y?t.style[n]=y:yi(t,n)}else(d||o==="%")&&!Nk[Ze(p,"display")]&&(a.position=Ze(t,"position")),p===t&&(a.position="static"),p.appendChild(Ji),g=Ji[u],p.removeChild(Ji),a.position="absolute";return l&&d&&(m=Ui(p),m.time=He.time,m.width=p[u]),Wt(h?g*r/f:g&&r?f/g*r:0)},Un=function(t,n,i,s){var r;return Oc||Ic(),n in Tn&&n!=="transform"&&(n=Tn[n],~n.indexOf(",")&&(n=n.split(",")[0])),Zn[n]&&n!=="transform"?(r=Ir(t,s),r=n!=="transformOrigin"?r[n]:r.svg?r.origin:ha(Ze(t,ze))+" "+r.zOrigin+"px"):(r=t.style[n],(!r||r==="auto"||s||~(r+"").indexOf("calc("))&&(r=fa[n]&&fa[n](t,n,i)||Ze(t,n)||rp(t,n)||(n==="opacity"?1:0))),i&&!~(r+"").trim().indexOf(" ")?vi(t,n,r,i)+i:r},Bk=function(t,n,i,s){if(!i||i==="none"){var r=Ws(n,t,1),o=r&&Ze(t,r,1);o&&o!==i?(n=r,i=o):n==="borderColor"&&(i=Ze(t,"borderTopColor"))}var a=new Oe(this._pt,t.style,n,0,1,Np),l=0,c=0,u,f,h,d,g,p,m,_,y,w,x,b;if(a.b=i,a.e=s,i+="",s+="",s.substring(0,6)==="var(--"&&(s=Ze(t,s.substring(4,s.indexOf(")")))),s==="auto"&&(p=t.style[n],t.style[n]=s,s=Ze(t,n)||s,p?t.style[n]=p:yi(t,n)),u=[i,s],Op(u),i=u[0],s=u[1],h=i.match(Es)||[],b=s.match(Es)||[],b.length){for(;f=Es.exec(s);)m=f[0],y=s.substring(l,f.index),g?g=(g+1)%5:(y.substr(-5)==="rgba("||y.substr(-5)==="hsla(")&&(g=1),m!==(p=h[c++]||"")&&(d=parseFloat(p)||0,x=p.substr((d+"").length),m.charAt(1)==="="&&(m=Is(d,m)+x),_=parseFloat(m),w=m.substr((_+"").length),l=Es.lastIndex-w.length,w||(w=w||Ne.units[n]||x,l===s.length&&(s+=w,a.e+=w)),x!==w&&(d=vi(t,n,p,w)||0),a._pt={_next:a._pt,p:y||c===1?y:",",s:d,c:_-d,m:g&&g<4||n==="zIndex"?Math.round:0});a.c=l<s.length?s.substring(l,s.length):""}else a.r=n==="display"&&s==="none"?Yp:Up;return Qd.test(s)&&(a.e=0),this._pt=a,a},ig={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},jk=function(t){var n=t.split(" "),i=n[0],s=n[1]||"50%";return(i==="top"||i==="bottom"||s==="left"||s==="right")&&(t=i,i=s,s=t),n[0]=ig[i]||i,n[1]=ig[s]||s,n.join(" ")},Vk=function(t,n){if(n.tween&&n.tween._time===n.tween._dur){var i=n.t,s=i.style,r=n.u,o=i._gsap,a,l,c;if(r==="all"||r===!0)s.cssText="",l=1;else for(r=r.split(","),c=r.length;--c>-1;)a=r[c],Zn[a]&&(l=1,a=a==="transformOrigin"?ze:$t),yi(i,a);l&&(yi(i,$t),o&&(o.svg&&i.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",Ir(i,1),o.uncache=1,Kp(s)))}},fa={clearProps:function(t,n,i,s,r){if(r.data!=="isFromStart"){var o=t._pt=new Oe(t._pt,n,i,0,0,Vk);return o.u=s,o.pr=-10,o.tween=r,t._props.push(i),1}}},Er=[1,0,0,1,0,0],sg={},rg=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},og=function(t){var n=Ze(t,$t);return rg(n)?Er:n.substr(7).match(Gd).map(Wt)},Rc=function(t,n){var i=t._gsap||Ui(t),s=t.style,r=og(t),o,a,l,c;return i.svg&&t.getAttribute("transform")?(l=t.transform.baseVal.consolidate().matrix,r=[l.a,l.b,l.c,l.d,l.e,l.f],r.join(",")==="1,0,0,1,0,0"?Er:r):(r===Er&&!t.offsetParent&&t!==Bs&&!i.svg&&(l=s.display,s.display="block",o=t.parentNode,(!o||!t.offsetParent&&!t.getBoundingClientRect().width)&&(c=1,a=t.nextElementSibling,Bs.appendChild(t)),r=og(t),l?s.display=l:yi(t,"display"),c&&(a?o.insertBefore(t,a):o?o.appendChild(t):Bs.removeChild(t))),n&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r)},Lc=function(t,n,i,s,r,o){var a=t._gsap,l=r||Rc(t,!0),c=a.xOrigin||0,u=a.yOrigin||0,f=a.xOffset||0,h=a.yOffset||0,d=l[0],g=l[1],p=l[2],m=l[3],_=l[4],y=l[5],w=n.split(" "),x=parseFloat(w[0])||0,b=parseFloat(w[1])||0,k,M,P,v;i?l!==Er&&(M=d*m-g*p)&&(P=x*(m/M)+b*(-p/M)+(p*y-m*_)/M,v=x*(-g/M)+b*(d/M)-(d*y-g*_)/M,x=P,b=v):(k=tg(t),x=k.x+(~w[0].indexOf("%")?x/100*k.width:x),b=k.y+(~(w[1]||w[0]).indexOf("%")?b/100*k.height:b)),s||s!==!1&&a.smooth?(_=x-c,y=b-u,a.xOffset=f+(_*d+y*p)-_,a.yOffset=h+(_*g+y*m)-y):a.xOffset=a.yOffset=0,a.xOrigin=x,a.yOrigin=b,a.smooth=!!s,a.origin=n,a.originIsAbsolute=!!i,t.style[ze]="0px 0px",o&&(xi(o,a,"xOrigin",c,x),xi(o,a,"yOrigin",u,b),xi(o,a,"xOffset",f,a.xOffset),xi(o,a,"yOffset",h,a.yOffset)),t.setAttribute("data-svg-origin",x+" "+b)},Ir=function(t,n){var i=t._gsap||new Ep(t);if("x"in i&&!n&&!i.uncache)return i;var s=t.style,r=i.scaleX<0,o="px",a="deg",l=getComputedStyle(t),c=Ze(t,ze)||"0",u,f,h,d,g,p,m,_,y,w,x,b,k,M,P,v,C,A,O,j,K,U,H,Z,J,mt,ie,Qt,Ot,hn,Xt,ke;return u=f=h=p=m=_=y=w=x=0,d=g=1,i.svg=!!(t.getCTM&&eg(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(s[$t]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[$t]!=="none"?l[$t]:"")),s.scale=s.rotate=s.translate="none"),M=Rc(t,i.svg),i.svg&&(i.uncache?(J=t.getBBox(),c=i.xOrigin-J.x+"px "+(i.yOrigin-J.y)+"px",Z=""):Z=!n&&t.getAttribute("data-svg-origin"),Lc(t,Z||c,!!Z||i.originIsAbsolute,i.smooth!==!1,M)),b=i.xOrigin||0,k=i.yOrigin||0,M!==Er&&(A=M[0],O=M[1],j=M[2],K=M[3],u=U=M[4],f=H=M[5],M.length===6?(d=Math.sqrt(A*A+O*O),g=Math.sqrt(K*K+j*j),p=A||O?Vs(O,A)*Gi:0,y=j||K?Vs(j,K)*Gi+p:0,y&&(g*=Math.abs(Math.cos(y*js))),i.svg&&(u-=b-(b*A+k*j),f-=k-(b*O+k*K))):(ke=M[6],hn=M[7],ie=M[8],Qt=M[9],Ot=M[10],Xt=M[11],u=M[12],f=M[13],h=M[14],P=Vs(ke,Ot),m=P*Gi,P&&(v=Math.cos(-P),C=Math.sin(-P),Z=U*v+ie*C,J=H*v+Qt*C,mt=ke*v+Ot*C,ie=U*-C+ie*v,Qt=H*-C+Qt*v,Ot=ke*-C+Ot*v,Xt=hn*-C+Xt*v,U=Z,H=J,ke=mt),P=Vs(-j,Ot),_=P*Gi,P&&(v=Math.cos(-P),C=Math.sin(-P),Z=A*v-ie*C,J=O*v-Qt*C,mt=j*v-Ot*C,Xt=K*C+Xt*v,A=Z,O=J,j=mt),P=Vs(O,A),p=P*Gi,P&&(v=Math.cos(P),C=Math.sin(P),Z=A*v+O*C,J=U*v+H*C,O=O*v-A*C,H=H*v-U*C,A=Z,U=J),m&&Math.abs(m)+Math.abs(p)>359.9&&(m=p=0,_=180-_),d=Wt(Math.sqrt(A*A+O*O+j*j)),g=Wt(Math.sqrt(H*H+ke*ke)),P=Vs(U,H),y=Math.abs(P)>2e-4?P*Gi:0,x=Xt?1/(Xt<0?-Xt:Xt):0),i.svg&&(Z=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!rg(Ze(t,$t)),Z&&t.setAttribute("transform",Z))),Math.abs(y)>90&&Math.abs(y)<270&&(r?(d*=-1,y+=p<=0?180:-180,p+=p<=0?180:-180):(g*=-1,y+=y<=0?180:-180)),n=n||i.uncache,i.x=u-((i.xPercent=u&&(!n&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-u)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+o,i.y=f-((i.yPercent=f&&(!n&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-f)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+o,i.z=h+o,i.scaleX=Wt(d),i.scaleY=Wt(g),i.rotation=Wt(p)+a,i.rotationX=Wt(m)+a,i.rotationY=Wt(_)+a,i.skewX=y+a,i.skewY=w+a,i.transformPerspective=x+o,(i.zOrigin=parseFloat(c.split(" ")[2])||!n&&i.zOrigin||0)&&(s[ze]=ha(c)),i.xOffset=i.yOffset=0,i.force3D=Ne.force3D,i.renderTransform=i.svg?Hk:qp?ag:Wk,i.uncache=0,i},ha=function(t){return(t=t.split(" "))[0]+" "+t[1]},Fc=function(t,n,i){var s=fe(n);return Wt(parseFloat(n)+parseFloat(vi(t,"x",i+"px",s)))+s},Wk=function(t,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,ag(t,n)},Qi="0deg",Rr="0px",ts=") ",ag=function(t,n){var i=n||this,s=i.xPercent,r=i.yPercent,o=i.x,a=i.y,l=i.z,c=i.rotation,u=i.rotationY,f=i.rotationX,h=i.skewX,d=i.skewY,g=i.scaleX,p=i.scaleY,m=i.transformPerspective,_=i.force3D,y=i.target,w=i.zOrigin,x="",b=_==="auto"&&t&&t!==1||_===!0;if(w&&(f!==Qi||u!==Qi)){var k=parseFloat(u)*js,M=Math.sin(k),P=Math.cos(k),v;k=parseFloat(f)*js,v=Math.cos(k),o=Fc(y,o,M*v*-w),a=Fc(y,a,-Math.sin(k)*-w),l=Fc(y,l,P*v*-w+w)}m!==Rr&&(x+="perspective("+m+ts),(s||r)&&(x+="translate("+s+"%, "+r+"%) "),(b||o!==Rr||a!==Rr||l!==Rr)&&(x+=l!==Rr||b?"translate3d("+o+", "+a+", "+l+") ":"translate("+o+", "+a+ts),c!==Qi&&(x+="rotate("+c+ts),u!==Qi&&(x+="rotateY("+u+ts),f!==Qi&&(x+="rotateX("+f+ts),(h!==Qi||d!==Qi)&&(x+="skew("+h+", "+d+ts),(g!==1||p!==1)&&(x+="scale("+g+", "+p+ts),y.style[$t]=x||"translate(0, 0)"},Hk=function(t,n){var i=n||this,s=i.xPercent,r=i.yPercent,o=i.x,a=i.y,l=i.rotation,c=i.skewX,u=i.skewY,f=i.scaleX,h=i.scaleY,d=i.target,g=i.xOrigin,p=i.yOrigin,m=i.xOffset,_=i.yOffset,y=i.forceCSS,w=parseFloat(o),x=parseFloat(a),b,k,M,P,v;l=parseFloat(l),c=parseFloat(c),u=parseFloat(u),u&&(u=parseFloat(u),c+=u,l+=u),l||c?(l*=js,c*=js,b=Math.cos(l)*f,k=Math.sin(l)*f,M=Math.sin(l-c)*-h,P=Math.cos(l-c)*h,c&&(u*=js,v=Math.tan(c-u),v=Math.sqrt(1+v*v),M*=v,P*=v,u&&(v=Math.tan(u),v=Math.sqrt(1+v*v),b*=v,k*=v)),b=Wt(b),k=Wt(k),M=Wt(M),P=Wt(P)):(b=f,P=h,k=M=0),(w&&!~(o+"").indexOf("px")||x&&!~(a+"").indexOf("px"))&&(w=vi(d,"x",o,"px"),x=vi(d,"y",a,"px")),(g||p||m||_)&&(w=Wt(w+g-(g*b+p*M)+m),x=Wt(x+p-(g*k+p*P)+_)),(s||r)&&(v=d.getBBox(),w=Wt(w+s/100*v.width),x=Wt(x+r/100*v.height)),v="matrix("+b+","+k+","+M+","+P+","+w+","+x+")",d.setAttribute("transform",v),y&&(d.style[$t]=v)},Zk=function(t,n,i,s,r){var o=360,a=Jt(r),l=parseFloat(r)*(a&&~r.indexOf("rad")?Gi:1),c=l-s,u=s+c+"deg",f,h;return a&&(f=r.split("_")[1],f==="short"&&(c%=o,c!==c%(o/2)&&(c+=c<0?o:-o)),f==="cw"&&c<0?c=(c+o*Zp)%o-~~(c/o)*o:f==="ccw"&&c>0&&(c=(c-o*Zp)%o-~~(c/o)*o)),t._pt=h=new Oe(t._pt,n,i,s,c,Ck),h.e=u,h.u="deg",t._props.push(i),h},lg=function(t,n){for(var i in n)t[i]=n[i];return t},Uk=function(t,n,i){var s=lg({},i._gsap),r="perspective,force3D,transformOrigin,svgOrigin",o=i.style,a,l,c,u,f,h,d,g;s.svg?(c=i.getAttribute("transform"),i.setAttribute("transform",""),o[$t]=n,a=Ir(i,1),yi(i,$t),i.setAttribute("transform",c)):(c=getComputedStyle(i)[$t],o[$t]=n,a=Ir(i,1),o[$t]=c);for(l in Zn)c=s[l],u=a[l],c!==u&&r.indexOf(l)<0&&(d=fe(c),g=fe(u),f=d!==g?vi(i,l,c,g):parseFloat(c),h=parseFloat(u),t._pt=new Oe(t._pt,a,l,f,h-f,Dc),t._pt.u=g||0,t._props.push(l));lg(a,s)};Pe("padding,margin,Width,Radius",function(e,t){var n="Top",i="Right",s="Bottom",r="Left",o=(t<3?[n,i,s,r]:[n+r,n+i,s+i,s+r]).map(function(a){return t<2?e+a:"border"+a+e});fa[t>1?"border"+e:e]=function(a,l,c,u,f){var h,d;if(arguments.length<4)return h=o.map(function(g){return Un(a,g,c)}),d=h.join(" "),d.split(h[0]).length===5?h[0]:d;h=(u+"").split(" "),d={},o.forEach(function(g,p){return d[g]=h[p]=h[p]||h[(p-1)/2|0]}),a.init(l,d,f)}});var cg={name:"css",register:Ic,targetTest:function(t){return t.style&&t.nodeType},init:function(t,n,i,s,r){var o=this._props,a=t.style,l=i.vars.startAt,c,u,f,h,d,g,p,m,_,y,w,x,b,k,M,P,v;Oc||Ic(),this.styles=this.styles||Xp(t),P=this.styles.props,this.tween=i;for(p in n)if(p!=="autoRound"&&(u=n[p],!(je[p]&&Ip(p,n,i,s,t,r)))){if(d=typeof u,g=fa[p],d==="function"&&(u=u.call(i,s,t,r),d=typeof u),d==="string"&&~u.indexOf("random(")&&(u=Cr(u)),g)g(this,t,p,u,i)&&(M=1);else if(p.substr(0,2)==="--")c=(getComputedStyle(t).getPropertyValue(p)+"").trim(),u+="",mi.lastIndex=0,mi.test(c)||(m=fe(c),_=fe(u),_?m!==_&&(c=vi(t,p,c,_)+_):m&&(u+=m)),this.add(a,"setProperty",c,u,s,r,0,0,p),o.push(p),P.push(p,0,a[p]);else if(d!=="undefined"){if(l&&p in l?(c=typeof l[p]=="function"?l[p].call(i,s,t,r):l[p],Jt(c)&&~c.indexOf("random(")&&(c=Cr(c)),fe(c+"")||c==="auto"||(c+=Ne.units[p]||fe(Un(t,p))||""),(c+"").charAt(1)==="="&&(c=Un(t,p))):c=Un(t,p),h=parseFloat(c),y=d==="string"&&u.charAt(1)==="="&&u.substr(0,2),y&&(u=u.substr(2)),f=parseFloat(u),p in Tn&&(p==="autoAlpha"&&(h===1&&Un(t,"visibility")==="hidden"&&f&&(h=0),P.push("visibility",0,a.visibility),xi(this,a,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),p!=="scale"&&p!=="transform"&&(p=Tn[p],~p.indexOf(",")&&(p=p.split(",")[0]))),w=p in Zn,w){if(this.styles.save(p),v=u,d==="string"&&u.substring(0,6)==="var(--"){if(u=Ze(t,u.substring(4,u.indexOf(")"))),u.substring(0,5)==="calc("){var C=t.style.perspective;t.style.perspective=u,u=Ze(t,"perspective"),C?t.style.perspective=C:yi(t,"perspective")}f=parseFloat(u)}if(x||(b=t._gsap,b.renderTransform&&!n.parseTransform||Ir(t,n.parseTransform),k=n.smoothOrigin!==!1&&b.smooth,x=this._pt=new Oe(this._pt,a,$t,0,1,b.renderTransform,b,0,-1),x.dep=1),p==="scale")this._pt=new Oe(this._pt,b,"scaleY",b.scaleY,(y?Is(b.scaleY,y+f):f)-b.scaleY||0,Dc),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){P.push(ze,0,a[ze]),u=jk(u),b.svg?Lc(t,u,0,k,0,this):(_=parseFloat(u.split(" ")[2])||0,_!==b.zOrigin&&xi(this,b,"zOrigin",b.zOrigin,_),xi(this,a,p,ha(c),ha(u)));continue}else if(p==="svgOrigin"){Lc(t,u,1,k,0,this);continue}else if(p in sg){Zk(this,b,p,h,y?Is(h,y+u):u);continue}else if(p==="smoothOrigin"){xi(this,b,"smooth",b.smooth,u);continue}else if(p==="force3D"){b[p]=u;continue}else if(p==="transform"){Uk(this,u,t);continue}}else p in a||(p=Ws(p)||p);if(w||(f||f===0)&&(h||h===0)&&!Mk.test(u)&&p in a)m=(c+"").substr((h+"").length),f||(f=0),_=fe(u)||(p in Ne.units?Ne.units[p]:m),m!==_&&(h=vi(t,p,c,_)),this._pt=new Oe(this._pt,w?b:a,p,h,(y?Is(h,y+f):f)-h,!w&&(_==="px"||p==="zIndex")&&n.autoRound!==!1?Ak:Dc),this._pt.u=_||0,w&&v!==u?(this._pt.b=c,this._pt.e=v,this._pt.r=Ok):m!==_&&_!=="%"&&(this._pt.b=c,this._pt.r=Pk);else if(p in a)Bk.call(this,t,p,c,y?y+u:u);else if(p in t)this.add(t,p,c||t[p],y?y+u:u,s,r);else if(p!=="parseTransform"){rc(p,u);continue}w||(p in a?P.push(p,0,a[p]):typeof t[p]=="function"?P.push(p,2,t[p]()):P.push(p,1,c||t[p])),o.push(p)}}M&&Bp(this)},render:function(t,n){if(n.tween._time||!Ac())for(var i=n._pt;i;)i.r(t,i.d),i=i._next;else n.styles.revert()},get:Un,aliases:Tn,getSetter:function(t,n,i){var s=Tn[n];return s&&s.indexOf(",")<0&&(n=s),n in Zn&&n!==ze&&(t._gsap.x||Un(t,"x"))?i&&Hp===i?n==="scale"?Ik:Ek:(Hp=i||{})&&(n==="scale"?Rk:Lk):t.style&&!tc(t.style[n])?zk:~n.indexOf("-")?Dk:kc(t,n)},core:{_removeProperty:yi,_getMatrix:Rc}};Ae.utils.checkPrefix=Ws,Ae.core.getStyleSaver=Xp,function(e,t,n,i){var s=Pe(e+","+t+","+n,function(r){Zn[r]=1});Pe(t,function(r){Ne.units[r]="deg",sg[r]=1}),Tn[s[13]]=e+","+t,Pe(i,function(r){var o=r.split(":");Tn[o[1]]=s[o[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Pe("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){Ne.units[e]="px"}),Ae.registerPlugin(cg);var Mn=Ae.registerPlugin(cg)||Ae;Mn.core.Tween;const Yk={class:"h-full w-full relative flex flex-col text-white overflow-hidden",style:{"background-color":"var(--lumina-colors-background, #030303)",color:"var(--lumina-colors-text, #ffffff)"}},Kk={class:"absolute inset-0 z-0 overflow-hidden pointer-events-none"},Xk={key:0,class:"absolute top-0 right-0 p-6 z-50 flex gap-4 pointer-events-auto"},qk={class:"relative h-full w-full md:w-[450px] bg-[#0a0a0a]/95 border-l border-white/10 shadow-2xl overflow-auto text-left flex flex-col transform transition-transform duration-300"},Jk={class:"p-6 pb-2 border-b border-white/5 flex items-center justify-between shrink-0"},Gk={class:"p-6"},Qk={class:"text-[10px] font-mono text-green-400 whitespace-pre-wrap"},tT={class:"flex-1 w-full relative overflow-y-auto overflow-x-hidden z-10 scroll-smooth"},eT={key:1,class:"absolute bottom-0 left-0 w-full z-40 px-8 py-6 bg-gradient-to-t from-black via-black/80 to-transparent flex justify-between items-end pointer-events-none"},nT={key:0,class:"pointer-events-auto text-left"},iT={class:"text-[10px] font-bold text-gray-500 tracking-[0.2em] uppercase mb-1"},sT={class:"flex items-center gap-2 text-white/50 text-sm font-mono"},rT={key:0,class:"h-px w-8 bg-white/20"},oT={key:1,class:"flex-1"},aT={key:2,class:"pointer-events-auto flex gap-3"},lT=["disabled"],cT=["disabled"],ug=Zt({__name:"LuminaDeck",setup(e){const{slide:t,index:n,total:i,next:s,prev:r,options:o}=CS(),a=oi(vr),l=Nt(()=>a.hasNext()),c=Nt(()=>a.hasPrev()),u=Nt(()=>{var x,b;return(b=(x=a.state.deck)==null?void 0:x.meta)==null?void 0:b.title}),f=Nt(()=>a.state.options.ui),h=Nt(()=>a.state.options.navigation);PS();const d=Je({showJson:!1}),g=Nt(()=>o.debug),p=Nt(()=>!t.value||!t.value.type?null:`layout-${t.value.type}`),m=Nt(()=>{var x,b,k,M,P,v,C,A;return{backgroundColor:((b=(x=t.value)==null?void 0:x.meta)==null?void 0:b.orbColor)||"var(--lumina-colors-primary, #3b82f6)",width:"60vw",height:"60vw",top:((P=(M=(k=t.value)==null?void 0:k.meta)==null?void 0:M.orbPos)==null?void 0:P.top)||"-20%",left:((A=(C=(v=t.value)==null?void 0:v.meta)==null?void 0:C.orbPos)==null?void 0:A.left)||"-10%"}}),_=x=>{Vn.emit("action",x)},y=(x,b)=>{const k=x;k.style.opacity="1",b()},w=(x,b)=>{var C,A,O;const{options:k}=a.state;if(((C=k.animation)==null?void 0:C.enabled)===!1){b();return}const M=((A=k.animation)==null?void 0:A.durationOut)||.5,P=((O=k.animation)==null?void 0:O.type)||"cascade",v=Mn.timeline({onComplete:b});P==="fade"?v.to(x,{opacity:0,duration:M}):P==="zoom"?v.to(x,{opacity:0,scale:1.1,duration:M}):v.to(x,{opacity:0,y:-20,duration:M,ease:"power2.in"})};return(x,b)=>{var k,M,P,v;return q(),ot("div",Yk,[E("div",Kk,[E("div",{class:"ambient-orb",style:pn(m.value)},null,4),b[6]||(b[6]=E("div",{class:"absolute inset-0 opacity-[0.04]",style:{"background-image":"url('https://grainy-gradients.vercel.app/noise.svg')"}},null,-1))]),g.value?(q(),ot("div",Xk,[E("button",{onClick:b[0]||(b[0]=C=>d.value.showJson=!d.value.showJson),class:"w-8 h-8 rounded-full glass-panel flex items-center justify-center text-gray-400 hover:text-white transition",title:"JSON"},[...b[7]||(b[7]=[E("i",{class:"fa-solid fa-code text-xs"},null,-1)])])])):ve("",!0),ee(_h,{name:"fade"},{default:cn(()=>[d.value.showJson?(q(),ot("div",{key:0,class:"fixed inset-0 z-[100] flex justify-end",onClick:b[3]||(b[3]=Eh(C=>d.value.showJson=!1,["self"]))},[E("div",{class:"absolute inset-0 bg-black/20 backdrop-blur-sm transition-opacity",onClick:b[1]||(b[1]=C=>d.value.showJson=!1)}),E("div",qk,[E("div",Jk,[b[9]||(b[9]=E("span",{class:"text-xs font-bold text-gray-400 uppercase tracking-widest"},"Slide Data",-1)),E("button",{onClick:b[2]||(b[2]=C=>d.value.showJson=!1),class:"w-8 h-8 rounded-full bg-white/5 hover:bg-white/10 flex items-center justify-center text-white/50 hover:text-white transition"},[...b[8]||(b[8]=[E("i",{class:"fa-solid fa-xmark"},null,-1)])])]),E("div",Gk,[E("pre",Qk,ht(JSON.stringify(_n(t),null,2)),1)])])])):ve("",!0)]),_:1}),E("main",tT,[ee(_h,{css:!1,onLeave:w,onEnter:y,mode:"out-in"},{default:cn(()=>[p.value?(q(),xe(Eo(p.value),{key:_n(n),data:_n(t),onAction:_,class:"min-h-full w-full"},null,40,["data"])):ve("",!0)]),_:1})]),(k=f.value)!=null&&k.visible?(q(),ot("div",eT,[(M=f.value)!=null&&M.showSlideCount?(q(),ot("div",nT,[E("h2",iT,ht(u.value),1),E("div",sT,[E("span",null,ht((_n(n)+1).toString().padStart(2,"0")),1),(P=f.value)!=null&&P.showProgressBar?(q(),ot("div",rT)):ve("",!0),E("span",null,ht(_n(i).toString().padStart(2,"0")),1)])])):(q(),ot("div",oT)),(v=f.value)!=null&&v.showControls?(q(),ot("div",aT,[E("button",{onClick:b[4]||(b[4]=(...C)=>_n(r)&&_n(r)(...C)),class:it(["w-12 h-12 rounded-full glass-panel hover:bg-white/10 flex items-center justify-center transition active:scale-95",!c.value||!h.value?"opacity-30 cursor-not-allowed":""]),disabled:!c.value||!h.value},[...b[10]||(b[10]=[E("i",{class:"fa-solid fa-arrow-left"},null,-1)])],10,lT),E("button",{onClick:b[5]||(b[5]=(...C)=>_n(s)&&_n(s)(...C)),class:it(["w-12 h-12 rounded-full bg-white text-black hover:scale-105 flex items-center justify-center transition shadow-lg active:scale-95",!l.value||!h.value?"opacity-30 cursor-not-allowed":""]),disabled:!l.value||!h.value},[...b[11]||(b[11]=[E("i",{class:"fa-solid fa-arrow-right"},null,-1)])],10,cT)])):ve("",!0)])):ve("",!0)])}}}),rn=class rn{constructor(t){$(this,"channel",null);$(this,"handlers",new Set);$(this,"lastTimestamp",0);$(this,"heartbeatInterval",null);$(this,"isConnected",!1);$(this,"connectionHandlers",new Set);this.channelName=t,this.initChannel()}static getInstance(t,n=!1){return n?new rn(t):(rn.instances.has(t)||rn.instances.set(t,new rn(t)),rn.instances.get(t))}static isSupported(){return typeof BroadcastChannel<"u"}initChannel(){if(!rn.isSupported()){console.warn("[SpeakerChannel] BroadcastChannel not supported in this environment");return}try{this.channel=new BroadcastChannel(this.channelName),this.channel.onmessage=t=>{const n=t.data;if(!(n.timestamp&&n.timestamp===this.lastTimestamp)){if(n.action==="ping"){this.send({action:"pong"}),this.handlers.forEach(i=>{try{i(n)}catch(s){console.error("[SpeakerChannel] Handler error:",s)}});return}if(n.action==="pong"){this.setConnected(!0);return}if(n.action==="close"){this.setConnected(!1);return}this.handlers.forEach(i=>{try{i(n)}catch(s){console.error("[SpeakerChannel] Handler error:",s)}})}},this.channel.onmessageerror=t=>{console.error("[SpeakerChannel] Message error:",t)},this.startHeartbeat()}catch(t){console.error("[SpeakerChannel] Failed to initialize:",t)}}send(t){if(!this.channel)return;const n={...t,timestamp:Date.now(),channelId:this.channelName};this.lastTimestamp=n.timestamp,this.channel.postMessage(n)}subscribe(t){return this.handlers.add(t),()=>this.handlers.delete(t)}onConnectionChange(t){return this.connectionHandlers.add(t),t(this.isConnected),()=>this.connectionHandlers.delete(t)}get connected(){return this.isConnected}ping(){this.send({action:"ping"})}notifyClose(){this.send({action:"close"})}startHeartbeat(){this.ping(),this.heartbeatInterval=setInterval(()=>{(this.handlers.size>0||this.connectionHandlers.size>0)&&this.ping()},5e3)}setConnected(t){this.isConnected!==t&&(this.isConnected=t,this.connectionHandlers.forEach(n=>n(t)))}destroy(){this.notifyClose(),this.heartbeatInterval&&(clearInterval(this.heartbeatInterval),this.heartbeatInterval=null),this.channel&&(this.channel.close(),this.channel=null),this.handlers.clear(),this.connectionHandlers.clear(),rn.instances.delete(this.channelName)}static destroyAll(){rn.instances.forEach(t=>t.destroy()),rn.instances.clear()}};$(rn,"instances",new Map);let Hs=rn;const uT={class:"speaker-notes"},fT={class:"sn-header"},hT={class:"sn-status"},dT={class:"sn-slide-count"},pT={class:"sn-content"},gT={class:"sn-notes-section"},mT=["innerHTML"],_T={key:1,class:"sn-notes-empty"},bT={class:"sn-footer"},yT={class:"sn-nav-controls"},xT=["disabled"],vT={class:"sn-timer-value"},wT=["disabled"],ST=Zt({__name:"LuminaSpeakerNotes",props:{channelId:{}},setup(e){const t=e,n=Je(0),i=Je(0),s=Je(""),r=Je(null),o=Je(!1),a=Je(null),l=Je(0),c=Je(!1),u=Je(null),f=Nt(()=>i.value===0?"No slides loaded":`Slide ${n.value+1} / ${i.value}`),h=Nt(()=>{const v=Math.floor(l.value/3600),C=Math.floor(l.value%3600/60),A=l.value%60;return v>0?`${v.toString().padStart(2,"0")}:${C.toString().padStart(2,"0")}:${A.toString().padStart(2,"0")}`:`${C.toString().padStart(2,"0")}:${A.toString().padStart(2,"0")}`}),d=Nt(()=>n.value<i.value-1),g=Nt(()=>n.value>0);function p(v){return v?v.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/__(.*?)__/g,"<strong>$1</strong>").replace(new RegExp("(?<!\\*)\\*(?!\\*)(.*?)(?<!\\*)\\*(?!\\*)","g"),"<em>$1</em>").replace(new RegExp("(?<!_)_(?!_)(.*?)(?<!_)_(?!_)","g"),"<em>$1</em>").replace(/\n/g,"<br>").replace(/^[-*]\s+(.*)$/gm,"<li>$1</li>").replace(/(<li>.*<\/li>)/gs,"<ul>$1</ul>").replace(/<\/ul>\s*<ul>/g,""):""}function m(){const v=new URLSearchParams(window.location.search),C=t.channelId||v.get("channel")||"lumina-speaker-default";a.value=Hs.getInstance(C,!0),a.value.onConnectionChange(K=>{o.value=K}),a.value.subscribe(_);let A=0;const O=10,j=setInterval(()=>{var K;if(i.value>0||A>=O){clearInterval(j);return}(K=a.value)==null||K.ping(),A++},300);a.value.ping()}function _(v){switch(v.action){case"state":v.index!==void 0&&(n.value=v.index),v.totalSlides!==void 0&&(i.value=v.totalSlides),v.currentNotes!==void 0&&(s.value=v.currentNotes),v.nextSlidePreview&&(r.value=v.nextSlidePreview);break;case"goto":v.index!==void 0&&(n.value=v.index);break}}function y(){var v;d.value&&((v=a.value)==null||v.send({action:"next"}))}function w(){var v;g.value&&((v=a.value)==null||v.send({action:"prev"}))}function x(){c.value||(c.value=!0,u.value=setInterval(()=>{l.value++},1e3))}function b(){c.value=!1,u.value&&(clearInterval(u.value),u.value=null)}function k(){c.value?b():x()}function M(){b(),l.value=0}function P(v){switch(v.key){case"ArrowRight":case" ":case"Enter":v.preventDefault(),y();break;case"ArrowLeft":case"Backspace":v.preventDefault(),w();break;case"t":case"T":v.preventDefault(),k();break;case"r":case"R":if(v.ctrlKey||v.metaKey)return;v.preventDefault(),M();break}}return Fi(()=>{m(),window.addEventListener("keydown",P),window.addEventListener("beforeunload",()=>{var v;(v=a.value)==null||v.notifyClose()})}),$i(()=>{var v;b(),window.removeEventListener("keydown",P),(v=a.value)==null||v.destroy()}),(v,C)=>(q(),ot("div",uT,[E("header",fT,[C[0]||(C[0]=S0('<div class="sn-title" data-v-63b98fd9><svg class="sn-logo" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-63b98fd9><path d="M12 2L2 7l10 5 10-5-10-5z" data-v-63b98fd9></path><path d="M2 17l10 5 10-5" data-v-63b98fd9></path><path d="M2 12l10 5 10-5" data-v-63b98fd9></path></svg><span data-v-63b98fd9>Lumina Speaker Notes</span></div>',1)),E("div",hT,[E("span",{class:it(["sn-indicator",{connected:o.value}])},null,2),E("span",dT,ht(f.value),1)])]),E("main",pT,[E("section",gT,[C[2]||(C[2]=E("h2",{class:"sn-section-title"},"Notes",-1)),s.value?(q(),ot("div",{key:0,class:"sn-notes-content",innerHTML:p(s.value)},null,8,mT)):(q(),ot("div",_T,[...C[1]||(C[1]=[E("p",null,"No notes for this slide",-1)])]))])]),E("footer",bT,[E("div",yT,[E("button",{class:"sn-btn sn-btn-nav",disabled:!g.value,onClick:w,title:"Previous (← or Backspace)"},[...C[3]||(C[3]=[E("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[E("polyline",{points:"15 18 9 12 15 6"})],-1),E("span",null,"Prev",-1)])],8,xT),E("div",{class:"sn-timer",onClick:k,title:"Click to start/pause (T)"},[E("span",{class:it(["sn-timer-icon",{running:c.value}])},ht(c.value?"⏸":"▶"),3),E("span",vT,ht(h.value),1),E("button",{class:"sn-timer-reset",onClick:Eh(M,["stop"]),title:"Reset timer (R)"},"↻")]),E("button",{class:"sn-btn sn-btn-nav sn-btn-primary",disabled:!d.value,onClick:y,title:"Next (→, Space, or Enter)"},[...C[4]||(C[4]=[E("span",null,"Next",-1),E("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[E("polyline",{points:"9 18 15 12 9 6"})],-1)])],8,wT)])])]))}}),$c=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n},kT=$c(ST,[["__scopeId","data-v-63b98fd9"]]);function TT(e,t){const n=oi(vr);let i=null;const s=()=>{if(!e.value||!n)return;i==null||i.revert();const{enabled:r,type:o,durationIn:a,stagger:l,ease:c}=n.state.options.animation||{};if(r===!1){Mn.set(e.value.querySelectorAll(".reveal-up, .reveal-zoom, .reveal-content > *, .reveal-card, .reveal-img"),{opacity:1,y:0,scale:1,visibility:"visible"});return}i=Mn.context(()=>{const u=e.value,f=o==="fade",h=o==="slide",d=o==="zoom",g=f?0:h?80:40,p=d?.8:o==="cascade"?.95:1;u.querySelector(".reveal-up")&&Mn.set(".reveal-up",{y:g,opacity:0}),u.querySelector(".reveal-zoom")&&Mn.set(".reveal-zoom",{scale:p,opacity:0}),u.querySelector(".reveal-content > *")&&Mn.set(".reveal-content > *",{y:f?0:30,opacity:0}),u.querySelector(".reveal-card")&&Mn.set(".reveal-card",{y:f?0:50,opacity:0,scale:p}),u.querySelector(".reveal-img")&&Mn.set(".reveal-img",{scale:1.1,opacity:0});const m=Mn.timeline({defaults:{ease:c||"power3.out",duration:a||.8},onComplete:t});u.querySelector(".reveal-img")&&m.to(".reveal-img",{scale:1,opacity:1,duration:(a||1)*1.2,ease:"expo.out"},0);const _=a||.8,y=l||.1;u.querySelectorAll(".reveal-card").length&&m.to(".reveal-card",{y:0,opacity:1,scale:1,duration:_,stagger:y,ease:h?"expo.out":"back.out(1.2)"},.2);const w=u.querySelectorAll(".reveal-content > *");w.length&&m.to(w,{y:0,opacity:1,duration:_,stagger:y/2},.3),u.querySelectorAll(".reveal-up").length&&m.to(".reveal-up",{y:0,opacity:1,duration:_,stagger:y},.2),u.querySelector(".reveal-zoom")&&m.to(".reveal-zoom",{scale:1,opacity:1,duration:_*1.2,ease:"expo.out"},.1)},e)};return Fi(()=>{uf(()=>{s()})}),$i(()=>{i==null||i.revert()}),{animateIn:s}}const MT={class:"absolute inset-0 z-0 pointer-events-none"},CT={class:"relative z-10 w-full h-full"},wi=Zt({__name:"BaseSlide",props:{data:{},customClass:{}},setup(e){const t=Je(null);return TT(t),(n,i)=>(q(),ot("div",{ref_key:"container",ref:t,class:it(["w-full min-h-full relative text-white",e.customClass])},[E("div",MT,[zf(n.$slots,"background")]),E("div",CT,[zf(n.$slots,"default")])],2))}}),PT={class:"reveal-zoom max-w-5xl z-10"},OT={key:0,class:"inline-block px-4 py-1 rounded-full border text-sm font-medium tracking-widest uppercase mb-10",style:{color:"var(--lumina-colors-primary, #3b82f6)","border-color":"rgba(255,255,255,0.1)",background:"rgba(255,255,255,0.05)"}},AT={key:1,class:"text-xl md:text-3xl font-light max-w-3xl mx-auto leading-normal",style:{color:"var(--lumina-colors-muted, #9ca3af)"}},zT=Zt({__name:"LayoutStatement",props:{data:{}},setup(e){return(t,n)=>(q(),xe(wi,{data:e.data},{default:cn(()=>[E("div",{class:it(["flex flex-col justify-center items-center text-center p-8 relative",e.data.sizing==="container"?"h-full":"min-h-screen"])},[E("div",PT,[e.data.tag?(q(),ot("span",OT,ht(e.data.tag),1)):ve("",!0),E("h1",{class:"font-bold leading-[1.1] tracking-tight mb-8 text-transparent bg-clip-text",style:pn({fontSize:e.data.sizing==="container"?"3.5rem":"clamp(3rem, 10vw, 8rem)",fontFamily:"var(--lumina-font-heading, Inter, sans-serif)",backgroundImage:"linear-gradient(to bottom, var(--lumina-colors-text, #ffffff), var(--lumina-colors-muted, #6b7280))"})},ht(e.data.title),5),e.data.subtitle?(q(),ot("p",AT,ht(e.data.subtitle),1)):ve("",!0)])],2)]),_:1},8,["data"]))}}),DT=["src"],ET={class:"reveal-content max-w-xl"},IT={class:"text-xs font-bold uppercase tracking-[0.2em] mb-6 block",style:{color:"var(--lumina-colors-primary, #3b82f6)"}},RT={class:"text-4xl lg:text-6xl font-heading font-bold leading-tight mb-8 text-white"},LT={class:"space-y-6 text-lg leading-relaxed font-light mb-10",style:{color:"var(--lumina-colors-muted, #9ca3af)"}},FT={key:0,class:"pt-6 border-t border-white/10"},$T=Zt({__name:"LayoutHalf",props:{data:{}},emits:["action"],setup(e){return(t,n)=>(q(),xe(wi,{data:e.data,customClass:"bg-[var(--lumina-bg)]"},{default:cn(()=>[E("div",{class:it(["w-full flex flex-col lg:block relative",e.data.sizing==="container"?"min-h-full":"min-h-screen"])},[E("div",{class:it(["relative h-[40vh] lg:h-full lg:w-1/2 overflow-hidden z-0",e.data.sizing==="container"?"lg:absolute lg:top-0":"lg:fixed lg:top-0",e.data.imageSide==="right"?"lg:right-0 order-1":"lg:left-0 order-1"])},[n[1]||(n[1]=E("div",{class:"absolute inset-0 bg-black/20 z-10"},null,-1)),E("img",{src:e.data.image,class:"w-full h-full object-cover reveal-img scale-110 origin-center",alt:"Slide Image"},null,8,DT)],2),E("div",{class:it(["relative z-10 w-full lg:w-1/2 min-h-[60vh] flex flex-col justify-center p-8 lg:p-24 order-2 bg-[#050505]",e.data.imageSide==="right"?"lg:mr-[50%]":"lg:ml-[50%]",e.data.sizing==="container"?"lg:min-h-full":"lg:min-h-screen"])},[E("div",ET,[E("span",IT,ht(e.data.tag),1),E("h1",RT,ht(e.data.title),1),E("div",LT,[(q(!0),ot(Vt,null,ws(e.data.paragraphs,(i,s)=>(q(),ot("p",{key:s},ht(i),1))),128))]),e.data.cta?(q(),ot("div",FT,[E("button",{onClick:n[0]||(n[0]=i=>t.$emit("action",{type:"cta",label:e.data.cta})),class:"px-8 py-4 bg-white text-black font-bold rounded-lg hover:bg-gray-200 transition flex items-center gap-3"},[rh(ht(e.data.cta)+" ",1),n[2]||(n[2]=E("i",{class:"fa-solid fa-arrow-right"},null,-1))])])):ve("",!0)])],2)],2)]),_:1},8,["data"]))}}),NT={class:"mb-16 reveal-up text-center lg:text-left max-w-6xl"},BT=Zt({__name:"LayoutFeatures",props:{data:{}},setup(e){return(t,n)=>(q(),xe(wi,{data:e.data},{default:cn(()=>[E("div",{class:it(["w-full flex flex-col justify-center p-8 lg:p-24",e.data.sizing==="container"?"min-h-full":"min-h-screen"])},[E("div",NT,[E("h2",{class:it(["font-heading font-bold mb-4",e.data.sizing==="container"?"text-3xl":"text-5xl"])},ht(e.data.title),3),E("p",{class:it([e.data.sizing==="container"?"text-sm":"text-xl"]),style:{color:"var(--lumina-colors-muted, #9ca3af)"}},ht(e.data.description),3)]),E("div",{class:it(["grid w-full",e.data.sizing==="container"?"grid-cols-1 gap-3":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"])},[(q(!0),ot(Vt,null,ws(e.data.features,(i,s)=>(q(),ot("div",{key:s,class:it(["glass-panel rounded-3xl hover:bg-white/5 transition duration-500 reveal-card group border-t border-white/5 hover:border-blue-500/50",e.data.sizing==="container"?"p-6":"p-8"])},[E("div",{class:it(["rounded-xl bg-white/5 flex items-center justify-center text-xl mb-6 group-hover:scale-110 transition duration-300",e.data.sizing==="container"?"w-10 h-10 mb-4":"w-12 h-12 mb-6"]),style:{color:"var(--lumina-colors-primary, #3b82f6)"}},[E("i",{class:it(["fa-solid",i.icon.startsWith("fa-")?i.icon:`fa-${i.icon}`])},null,2)],2),E("h3",{class:it(["font-bold mb-3 text-white",e.data.sizing==="container"?"text-lg":"text-2xl"])},ht(i.title),3),E("p",{class:it(["leading-relaxed",[e.data.sizing==="container"?"text-sm":""]]),style:{color:"var(--lumina-colors-muted, #9ca3af)"}},ht(i.desc),3)],2))),128))],2)],2)]),_:1},8,["data"]))}}),jT={class:"text-center mb-16 reveal-up"},VT={class:"text-5xl font-heading font-bold mb-4"},WT={key:0,class:"text-xl opacity-60"},HT={class:"relative max-w-6xl mx-auto w-full"},ZT={class:"space-y-12"},UT={class:"text-sm font-bold tracking-widest uppercase text-blue-400 mb-1"},YT={class:"text-2xl font-bold"},KT={class:"text-lg opacity-60 leading-relaxed"},XT=Zt({__name:"LayoutTimeline",props:{data:{}},setup(e){return(t,n)=>(q(),xe(wi,{data:e.data},{default:cn(()=>[E("div",{class:it(["w-full flex flex-col justify-center p-8 lg:p-24",e.data.sizing==="container"?"min-h-full py-12 lg:py-16":"min-h-screen"])},[E("div",jT,[E("h2",VT,ht(e.data.title),1),e.data.subtitle?(q(),ot("p",WT,ht(e.data.subtitle),1)):ve("",!0)]),E("div",HT,[n[1]||(n[1]=E("div",{class:"absolute left-4 md:left-1/2 top-0 bottom-0 w-0.5 bg-white/20 -translate-x-1/2 reveal-zoom origin-top"},null,-1)),E("div",ZT,[(q(!0),ot(Vt,null,ws(e.data.timeline,(i,s)=>(q(),ot("div",{key:s,class:it(["relative flex flex-col md:flex-row gap-8 md:gap-0 items-start md:items-center reveal-card",s%2===0?"":"md:flex-row-reverse"])},[E("div",{class:it(["w-full md:w-1/2 pl-12 md:pl-0 flex flex-col justify-center",s%2===0?"md:pr-12 md:text-right md:items-end":"md:pl-12 md:text-left md:items-start"])},[E("span",UT,ht(i.date),1),E("h3",YT,ht(i.title||i.t),1)],2),n[0]||(n[0]=E("div",{class:"absolute left-4 md:left-1/2 -translate-x-1/2 w-4 h-4 rounded-full bg-blue-500 shadow-[0_0_20px_rgba(59,130,246,0.5)] border-4 border-[#030303] z-10"},null,-1)),E("div",{class:it(["w-full md:w-1/2 pl-12 md:pl-0",s%2===0?"md:pl-12":"md:pr-12 md:text-right"])},[E("p",KT,ht(i.description||i.desc),1)],2)],2))),128))])])],2)]),_:1},8,["data"]))}}),qT={key:0,class:"hidden lg:block absolute top-[2.5rem] left-0 right-0 h-0.5 bg-gradient-to-r from-transparent via-white/20 to-transparent reveal-zoom origin-left"},JT={class:"text-transparent bg-clip-text bg-gradient-to-br from-white to-gray-600"},GT=Zt({__name:"LayoutSteps",props:{data:{}},setup(e){return(t,n)=>(q(),xe(wi,{data:e.data},{default:cn(()=>[E("div",{class:it(["w-full flex flex-col justify-center overflow-hidden",e.data.sizing==="container"?"min-h-full p-4":"min-h-screen p-8 lg:p-12"])},[E("div",{class:it(["text-center reveal-up",e.data.sizing==="container"?"mb-6":"mb-20"])},[E("h2",{class:it(["font-heading font-bold mb-2",e.data.sizing==="container"?"text-2xl":"text-5xl"])},ht(e.data.title),3),e.data.subtitle?(q(),ot("p",{key:0,class:it(["opacity-60 max-w-2xl mx-auto",e.data.sizing==="container"?"text-sm":"text-xl"])},ht(e.data.subtitle),3)):ve("",!0)],2),E("div",{class:it(["grid gap-4 w-full mx-auto relative",e.data.sizing==="container"?"grid-cols-3 max-w-xl":"grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 max-w-7xl"])},[e.data.sizing!=="container"?(q(),ot("div",qT)):ve("",!0),(q(!0),ot(Vt,null,ws(e.data.steps,(i,s)=>(q(),ot("div",{key:s,class:it(["relative glass-panel rounded-xl border border-white/5 reveal-card group hover:bg-white/5 transition duration-500",e.data.sizing==="container"?"p-3 text-center":"p-8 rounded-2xl"])},[E("div",{class:it(["rounded-xl bg-[#111] border border-white/10 flex items-center justify-center font-bold relative z-10 group-hover:scale-105 transition duration-300 shadow-xl mx-auto",e.data.sizing==="container"?"w-12 h-12 text-lg mb-3":"w-20 h-20 text-2xl mb-6 lg:mx-0"])},[E("span",JT,ht(i.step),1)],2),E("h3",{class:it(["font-bold",e.data.sizing==="container"?"text-sm mb-1":"text-xl mb-3"])},ht(i.title),3),E("p",{class:it(["leading-relaxed opacity-60",e.data.sizing==="container"?"text-[10px]":"text-sm"])},ht(i.description),3)],2))),128))],2)],2)]),_:1},8,["data"]))}}),QT=["src","alt"],tM=$c(Zt({__name:"LayoutFlex",props:{data:{}},emits:["action"],setup(e,{emit:t}){const n=e,i=t,s={none:"0",xs:"0.5rem",sm:"0.75rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem"},r={auto:"auto",quarter:"25%",third:"33.333%",half:"50%","two-thirds":"66.666%","three-quarters":"75%",full:"100%"},o={top:"flex-start",center:"center",bottom:"flex-end"},a={left:"flex-start",center:"center",right:"flex-end"},l=Nt(()=>({padding:s[n.data.padding||"none"]})),c=Nt(()=>n.data.direction==="vertical"?"flex-col":"flex-row"),u=Nt(()=>({gap:s[n.data.gap||"none"]})),f=C=>!C||C==="auto"?"flex-1":"",h=C=>{const A=C.size||"auto";return A==="auto"?{flex:"1 1 auto"}:{flex:`0 0 ${r[A]}`,maxWidth:n.data.direction!=="vertical"?r[A]:void 0,maxHeight:n.data.direction==="vertical"?r[A]:void 0}},d=C=>{const A=C.valign||"center",O=C.halign||"left",j=C.gap||"md",K=C.padding||"lg",U=C.size||"auto";return{flex:U==="auto"?"1 1 auto":`0 0 ${r[U]}`,justifyContent:o[A],alignItems:a[O],gap:s[j],padding:s[K]}},g=()=>({display:"flex",alignItems:"center",padding:s.lg}),p=(C,A)=>A!==!1&&!C?"":{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"}[C||"lg"]||"rounded-lg",m=C=>{i("action",C),Vn.emit("action",C)},_=Zt({props:["text","size","align"],setup(C){const A={lg:"text-3xl lg:text-4xl",xl:"text-4xl lg:text-5xl","2xl":"text-5xl lg:text-6xl","3xl":"text-6xl lg:text-7xl"}[C.size||"xl"]||"text-4xl lg:text-5xl",O={left:"text-left",center:"text-center",right:"text-right"}[C.align||"left"]||"text-left";return()=>St("h2",{class:`font-heading font-bold leading-tight ${A} ${O} w-full`},C.text)}}),y=Zt({props:["text","align","muted"],setup(C){const A={left:"text-left",center:"text-center",right:"text-right"}[C.align||"left"]||"text-left";return()=>St("p",{class:`text-lg lg:text-xl leading-relaxed w-full ${A} ${C.muted?"opacity-60":"opacity-80"}`},C.text)}}),w=Zt({props:["items"],setup(C){return()=>St("ul",{class:"space-y-3 w-full"},(C.items||[]).map(A=>St("li",{class:"flex items-start gap-3 text-lg opacity-80"},[St("span",{class:"w-2 h-2 rounded-full bg-blue-500 mt-2 flex-shrink-0 shadow-[0_0_10px_rgba(59,130,246,0.5)]"}),St("span",{},A)])))}}),x=Zt({props:["items"],setup(C){return()=>St("ol",{class:"space-y-3 w-full"},(C.items||[]).map((A,O)=>St("li",{class:"flex items-start gap-3 text-lg opacity-80"},[St("span",{class:"w-7 h-7 rounded-lg bg-white/10 flex items-center justify-center text-sm font-bold flex-shrink-0"},O+1),St("span",{},A)])))}}),b=Zt({props:["label","action","variant","fullWidth"],emits:["action"],setup(C,{emit:A}){const O={primary:"bg-gradient-to-r from-blue-500 to-purple-600 text-white shadow-lg hover:shadow-xl",secondary:"bg-white/10 text-white border border-white/20 hover:bg-white/20",outline:"bg-transparent text-white border-2 border-white/50 hover:border-white hover:bg-white/5",ghost:"bg-transparent text-white/70 hover:text-white hover:bg-white/5"}[C.variant||"primary"]||"bg-gradient-to-r from-blue-500 to-purple-600 text-white",j=()=>{A("action",{type:"click",label:C.label,value:C.action||C.label,origin:"flex-button"})};return()=>St("button",{class:`px-8 py-4 rounded-full font-bold text-lg transition-all duration-300 cursor-pointer hover:scale-105 ${O} ${C.fullWidth?"w-full":""}`,onClick:j},C.label)}}),k=Zt({props:["items","compact"],setup(C){return()=>St("div",{class:"w-full space-y-4"},(C.items||[]).map(A=>St("div",{class:"flex gap-4 items-start border-l-2 border-blue-500/30 pl-4"},[St("div",{class:"flex-shrink-0 w-3 h-3 rounded-full bg-blue-500 -ml-[22px] mt-1.5 shadow-[0_0_10px_rgba(59,130,246,0.5)]"}),St("div",{},[St("span",{class:"text-xs text-blue-400 font-bold uppercase tracking-wider"},A.date),St("h4",{class:"font-bold text-lg"},A.title||A.t),St("p",{class:"text-sm opacity-60"},A.description||A.desc)])])))}}),M=Zt({props:["items","compact"],setup(C){return()=>St("div",{class:"w-full space-y-4"},(C.items||[]).map(A=>St("div",{class:"flex gap-4 items-start p-4 rounded-lg bg-white/5 border border-white/10"},[St("div",{class:"flex-shrink-0 w-10 h-10 rounded-lg bg-gradient-to-br from-blue-500/20 to-purple-500/20 flex items-center justify-center font-bold text-blue-400"},A.step),St("div",{},[St("h4",{class:"font-bold"},A.title||A.t),St("p",{class:"text-sm opacity-60"},A.description||A.desc)])])))}}),P=Zt({props:["size"],setup(C){const A=s[C.size||"md"]||s.md;return()=>St("div",{style:{height:A,width:"100%"}})}}),v=C=>({title:_,text:y,bullets:w,ordered:x,button:b,timeline:k,stepper:M,spacer:P})[C]||"div";return(C,A)=>(q(),xe(wi,{data:e.data},{default:cn(()=>[E("div",{class:"flex-layout w-full min-h-screen flex items-center justify-center",style:pn(l.value)},[E("div",{class:it(["flex w-full h-full max-w-7xl mx-auto",c.value]),style:pn(u.value)},[(q(!0),ot(Vt,null,ws(e.data.elements,(O,j)=>(q(),ot(Vt,{key:j},[O.type==="image"?(q(),ot("div",{key:0,class:it(f(O.size)),style:pn(h(O))},[E("img",{src:O.src,alt:O.alt||"",class:it(["w-full h-full",O.fill!==!1?"object-cover":"object-contain",p(O.rounded,O.fill)])},null,10,QT)],6)):O.type==="content"?(q(),ot("div",{key:1,class:it(["flex flex-col",f(O.size)]),style:pn(d(O))},[(q(!0),ot(Vt,null,ws(O.elements,(K,U)=>(q(),xe(Eo(v(K.type)),Ol({key:U,ref_for:!0},K,{onAction:m}),null,16))),128))],6)):(q(),ot("div",{key:2,class:it(f(O.size)),style:pn(g())},[(q(),xe(Eo(v(O.type)),Ol({ref_for:!0},O,{onAction:m}),null,16))],6))],64))),128))],6)],4)]),_:1},8,["data"]))}}),[["__scopeId","data-v-eccf62e4"]]),eM=Zt({__name:"LayoutAuto",props:{data:{}},emits:["action"],setup(e,{emit:t}){const n=e,i=Nt(()=>{var f,h,d,g;const s=n.data||{},r=Array.isArray(s.timeline)&&s.timeline.length>0,o=Array.isArray(s.steps)&&s.steps.length>0,a=Array.isArray(s.features)&&s.features.length>0,l=!!s.image,c=!!s.chartType&&!!((f=s.data)!=null&&f.datasets);let u="layout-statement";return c?u="layout-chart":r?u="layout-timeline":o?u="layout-steps":a?u="layout-features":l?u="layout-half":(((h=s.title)==null?void 0:h.length)||0)+(((d=s.subtitle)==null?void 0:d.length)||0)+(((g=s.paragraphs)==null?void 0:g.join("").length)||0),u});return(s,r)=>(q(),xe(Eo(i.value),{data:e.data,onAction:r[0]||(r[0]=o=>s.$emit("action",o))},null,40,["data"]))}}),nM=["innerHTML"],iM=$c(Zt({__name:"LayoutCustom",props:{data:{}},setup(e){const t=e,n=`custom-slide-${Math.random().toString(36).slice(2,10)}`;function i(){if(s(),!t.data.css)return;const o=document.createElement("style");o.id=n,o.textContent=t.data.css,document.head.appendChild(o)}function s(){const o=document.getElementById(n);o&&o.remove()}Fi(()=>{i()}),xs(()=>t.data.css,()=>{i()}),$i(()=>{s()});const r=Nt(()=>t.data.html?t.data.html.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/on\w+\s*=\s*["'][^"']*["']/gi,"").replace(/javascript:/gi,""):"");return(o,a)=>(q(),xe(wi,{data:e.data},{default:cn(()=>[E("div",{class:it(["custom-slide-wrapper relative w-full overflow-hidden",e.data.sizing==="container"?"h-full":"min-h-screen"])},[E("div",{class:"custom-html-content w-full h-full",innerHTML:r.value},null,8,nM)],2)]),_:1},8,["data"]))}}),[["__scopeId","data-v-b8b91621"]]);/*!
56
- * @kurkle/color v0.3.4
57
- * https://github.com/kurkle/color#readme
58
- * (c) 2024 Jukka Kurkela
59
- * Released under the MIT License
60
- */function Lr(e){return e+.5|0}const Si=(e,t,n)=>Math.max(Math.min(e,n),t);function Fr(e){return Si(Lr(e*2.55),0,255)}function ki(e){return Si(Lr(e*255),0,255)}function Yn(e){return Si(Lr(e/2.55)/100,0,1)}function fg(e){return Si(Lr(e*100),0,100)}const sn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Nc=[..."0123456789ABCDEF"],sM=e=>Nc[e&15],rM=e=>Nc[(e&240)>>4]+Nc[e&15],da=e=>(e&240)>>4===(e&15),oM=e=>da(e.r)&&da(e.g)&&da(e.b)&&da(e.a);function aM(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&sn[e[1]]*17,g:255&sn[e[2]]*17,b:255&sn[e[3]]*17,a:t===5?sn[e[4]]*17:255}:(t===7||t===9)&&(n={r:sn[e[1]]<<4|sn[e[2]],g:sn[e[3]]<<4|sn[e[4]],b:sn[e[5]]<<4|sn[e[6]],a:t===9?sn[e[7]]<<4|sn[e[8]]:255})),n}const lM=(e,t)=>e<255?t(e):"";function cM(e){var t=oM(e)?sM:rM;return e?"#"+t(e.r)+t(e.g)+t(e.b)+lM(e.a,t):void 0}const uM=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function hg(e,t,n){const i=t*Math.min(n,1-n),s=(r,o=(r+e/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[s(0),s(8),s(4)]}function fM(e,t,n){const i=(s,r=(s+e/60)%6)=>n-n*t*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function hM(e,t,n){const i=hg(e,1,.5);let s;for(t+n>1&&(s=1/(t+n),t*=s,n*=s),s=0;s<3;s++)i[s]*=1-t-n,i[s]+=t;return i}function dM(e,t,n,i,s){return e===s?(t-n)/i+(t<n?6:0):t===s?(n-e)/i+2:(e-t)/i+4}function Bc(e){const n=e.r/255,i=e.g/255,s=e.b/255,r=Math.max(n,i,s),o=Math.min(n,i,s),a=(r+o)/2;let l,c,u;return r!==o&&(u=r-o,c=a>.5?u/(2-r-o):u/(r+o),l=dM(n,i,s,u,r),l=l*60+.5),[l|0,c||0,a]}function jc(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(ki)}function Vc(e,t,n){return jc(hg,e,t,n)}function pM(e,t,n){return jc(hM,e,t,n)}function gM(e,t,n){return jc(fM,e,t,n)}function dg(e){return(e%360+360)%360}function mM(e){const t=uM.exec(e);let n=255,i;if(!t)return;t[5]!==i&&(n=t[6]?Fr(+t[5]):ki(+t[5]));const s=dg(+t[2]),r=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?i=pM(s,r,o):t[1]==="hsv"?i=gM(s,r,o):i=Vc(s,r,o),{r:i[0],g:i[1],b:i[2],a:n}}function _M(e,t){var n=Bc(e);n[0]=dg(n[0]+t),n=Vc(n),e.r=n[0],e.g=n[1],e.b=n[2]}function bM(e){if(!e)return;const t=Bc(e),n=t[0],i=fg(t[1]),s=fg(t[2]);return e.a<255?`hsla(${n}, ${i}%, ${s}%, ${Yn(e.a)})`:`hsl(${n}, ${i}%, ${s}%)`}const pg={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},gg={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function yM(){const e={},t=Object.keys(gg),n=Object.keys(pg);let i,s,r,o,a;for(i=0;i<t.length;i++){for(o=a=t[i],s=0;s<n.length;s++)r=n[s],a=a.replace(r,pg[r]);r=parseInt(gg[o],16),e[a]=[r>>16&255,r>>8&255,r&255]}return e}let pa;function xM(e){pa||(pa=yM(),pa.transparent=[0,0,0,0]);const t=pa[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const vM=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function wM(e){const t=vM.exec(e);let n=255,i,s,r;if(t){if(t[7]!==i){const o=+t[7];n=t[8]?Fr(o):Si(o*255,0,255)}return i=+t[1],s=+t[3],r=+t[5],i=255&(t[2]?Fr(i):Si(i,0,255)),s=255&(t[4]?Fr(s):Si(s,0,255)),r=255&(t[6]?Fr(r):Si(r,0,255)),{r:i,g:s,b:r,a:n}}}function SM(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Yn(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Wc=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Zs=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function kM(e,t,n){const i=Zs(Yn(e.r)),s=Zs(Yn(e.g)),r=Zs(Yn(e.b));return{r:ki(Wc(i+n*(Zs(Yn(t.r))-i))),g:ki(Wc(s+n*(Zs(Yn(t.g))-s))),b:ki(Wc(r+n*(Zs(Yn(t.b))-r))),a:e.a+n*(t.a-e.a)}}function ga(e,t,n){if(e){let i=Bc(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,t===0?360:1)),i=Vc(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function mg(e,t){return e&&Object.assign(t||{},e)}function _g(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=ki(e[3]))):(t=mg(e,{r:0,g:0,b:0,a:1}),t.a=ki(t.a)),t}function TM(e){return e.charAt(0)==="r"?wM(e):mM(e)}class $r{constructor(t){if(t instanceof $r)return t;const n=typeof t;let i;n==="object"?i=_g(t):n==="string"&&(i=aM(t)||xM(t)||TM(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=mg(this._rgb);return t&&(t.a=Yn(t.a)),t}set rgb(t){this._rgb=_g(t)}rgbString(){return this._valid?SM(this._rgb):void 0}hexString(){return this._valid?cM(this._rgb):void 0}hslString(){return this._valid?bM(this._rgb):void 0}mix(t,n){if(t){const i=this.rgb,s=t.rgb;let r;const o=n===r?.5:n,a=2*o-1,l=i.a-s.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;r=1-c,i.r=255&c*i.r+r*s.r+.5,i.g=255&c*i.g+r*s.g+.5,i.b=255&c*i.b+r*s.b+.5,i.a=o*i.a+(1-o)*s.a,this.rgb=i}return this}interpolate(t,n){return t&&(this._rgb=kM(this._rgb,t._rgb,n)),this}clone(){return new $r(this.rgb)}alpha(t){return this._rgb.a=ki(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Lr(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return ga(this._rgb,2,t),this}darken(t){return ga(this._rgb,2,-t),this}saturate(t){return ga(this._rgb,1,t),this}desaturate(t){return ga(this._rgb,1,-t),this}rotate(t){return _M(this._rgb,t),this}}/*!
61
- * Chart.js v4.5.1
62
- * https://www.chartjs.org
63
- * (c) 2025 Chart.js Contributors
64
- * Released under the MIT License
65
- */function Kn(){}const MM=(()=>{let e=0;return()=>e++})();function st(e){return e==null}function Dt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function rt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function jt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Ue(e,t){return jt(e)?e:t}function nt(e,t){return typeof e>"u"?t:e}const CM=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,bg=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Tt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function gt(e,t,n,i){let s,r,o;if(Dt(e))for(r=e.length,s=0;s<r;s++)t.call(n,e[s],s);else if(rt(e))for(o=Object.keys(e),r=o.length,s=0;s<r;s++)t.call(n,e[o[s]],o[s])}function ma(e,t){let n,i,s,r;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(s=e[n],r=t[n],s.datasetIndex!==r.datasetIndex||s.index!==r.index)return!1;return!0}function _a(e){if(Dt(e))return e.map(_a);if(rt(e)){const t=Object.create(null),n=Object.keys(e),i=n.length;let s=0;for(;s<i;++s)t[n[s]]=_a(e[n[s]]);return t}return e}function yg(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function PM(e,t,n,i){if(!yg(e))return;const s=t[e],r=n[e];rt(s)&&rt(r)?Nr(s,r,i):t[e]=_a(r)}function Nr(e,t,n){const i=Dt(t)?t:[t],s=i.length;if(!rt(e))return e;n=n||{};const r=n.merger||PM;let o;for(let a=0;a<s;++a){if(o=i[a],!rt(o))continue;const l=Object.keys(o);for(let c=0,u=l.length;c<u;++c)r(l[c],e,o,n)}return e}function Br(e,t){return Nr(e,t,{merger:OM})}function OM(e,t,n){if(!yg(e))return;const i=t[e],s=n[e];rt(i)&&rt(s)?Br(i,s):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=_a(s))}const xg={"":e=>e,x:e=>e.x,y:e=>e.y};function AM(e){const t=e.split("."),n=[];let i="";for(const s of t)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function zM(e){const t=AM(e);return n=>{for(const i of t){if(i==="")break;n=n&&n[i]}return n}}function Ti(e,t){return(xg[t]||(xg[t]=zM(t)))(e)}function Hc(e){return e.charAt(0).toUpperCase()+e.slice(1)}const jr=e=>typeof e<"u",Mi=e=>typeof e=="function",vg=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function DM(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const ut=Math.PI,Pt=2*ut,EM=Pt+ut,ba=Number.POSITIVE_INFINITY,IM=ut/180,Ht=ut/2,es=ut/4,wg=ut*2/3,Ci=Math.log10,Cn=Math.sign;function Vr(e,t,n){return Math.abs(e-t)<n}function Sg(e){const t=Math.round(e);e=Vr(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Ci(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function RM(e){const t=[],n=Math.sqrt(e);let i;for(i=1;i<n;i++)e%i===0&&(t.push(i),t.push(e/i));return n===(n|0)&&t.push(n),t.sort((s,r)=>s-r).pop(),t}function LM(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function Us(e){return!LM(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function FM(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function kg(e,t,n){let i,s,r;for(i=0,s=e.length;i<s;i++)r=e[i][n],isNaN(r)||(t.min=Math.min(t.min,r),t.max=Math.max(t.max,r))}function un(e){return e*(ut/180)}function Zc(e){return e*(180/ut)}function Tg(e){if(!jt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Mg(e,t){const n=t.x-e.x,i=t.y-e.y,s=Math.sqrt(n*n+i*i);let r=Math.atan2(i,n);return r<-.5*ut&&(r+=Pt),{angle:r,distance:s}}function Uc(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function $M(e,t){return(e-t+EM)%Pt-ut}function he(e){return(e%Pt+Pt)%Pt}function Wr(e,t,n,i){const s=he(e),r=he(t),o=he(n),a=he(r-s),l=he(o-s),c=he(s-r),u=he(s-o);return s===r||s===o||i&&r===o||a>l&&c<u}function Gt(e,t,n){return Math.max(t,Math.min(n,e))}function NM(e){return Gt(e,-32768,32767)}function Xn(e,t,n,i=1e-6){return e>=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function Yc(e,t,n){n=n||(o=>e[o]<t);let i=e.length-1,s=0,r;for(;i-s>1;)r=s+i>>1,n(r)?s=r:i=r;return{lo:s,hi:i}}const qn=(e,t,n,i)=>Yc(e,n,i?s=>{const r=e[s][t];return r<n||r===n&&e[s+1][t]===n}:s=>e[s][t]<n),BM=(e,t,n)=>Yc(e,n,i=>e[i][t]>=n);function jM(e,t,n){let i=0,s=e.length;for(;i<s&&e[i]<t;)i++;for(;s>i&&e[s-1]>n;)s--;return i>0||s<e.length?e.slice(i,s):e}const Cg=["push","pop","shift","splice","unshift"];function VM(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Cg.forEach(n=>{const i="_onData"+Hc(n),s=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...r){const o=s.apply(this,r);return e._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...r)}),o}})})}function Pg(e,t){const n=e._chartjs;if(!n)return;const i=n.listeners,s=i.indexOf(t);s!==-1&&i.splice(s,1),!(i.length>0)&&(Cg.forEach(r=>{delete e[r]}),delete e._chartjs)}function Og(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const Ag=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function zg(e,t){let n=[],i=!1;return function(...s){n=s,i||(i=!0,Ag.call(window,()=>{i=!1,e.apply(t,n)}))}}function WM(e,t){let n;return function(...i){return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}const Kc=e=>e==="start"?"left":e==="end"?"right":"center",de=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,HM=(e,t,n,i)=>e===(i?"left":"right")?n:e==="center"?(t+n)/2:t;function Dg(e,t,n){const i=t.length;let s=0,r=i;if(e._sorted){const{iScale:o,vScale:a,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=o.axis,{min:f,max:h,minDefined:d,maxDefined:g}=o.getUserBounds();if(d){if(s=Math.min(qn(l,u,f).lo,n?i:qn(t,u,o.getPixelForValue(f)).lo),c){const p=l.slice(0,s+1).reverse().findIndex(m=>!st(m[a.axis]));s-=Math.max(0,p)}s=Gt(s,0,i-1)}if(g){let p=Math.max(qn(l,o.axis,h,!0).hi+1,n?0:qn(t,u,o.getPixelForValue(h),!0).hi+1);if(c){const m=l.slice(p-1).findIndex(_=>!st(_[a.axis]));p+=Math.max(0,m)}r=Gt(p,s,i)-s}else r=i-s}return{start:s,count:r}}function Eg(e){const{xScale:t,yScale:n,_scaleRanges:i}=e,s={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!i)return e._scaleRanges=s,!0;const r=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,s),r}const ya=e=>e===0||e===1,Ig=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Pt/n)),Rg=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Pt/n)+1,Hr={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Ht)+1,easeOutSine:e=>Math.sin(e*Ht),easeInOutSine:e=>-.5*(Math.cos(ut*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>ya(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>ya(e)?e:Ig(e,.075,.3),easeOutElastic:e=>ya(e)?e:Rg(e,.075,.3),easeInOutElastic(e){return ya(e)?e:e<.5?.5*Ig(e*2,.1125,.45):.5+.5*Rg(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Hr.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Hr.easeInBounce(e*2)*.5:Hr.easeOutBounce(e*2-1)*.5+.5};function Xc(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Lg(e){return Xc(e)?e:new $r(e)}function qc(e){return Xc(e)?e:new $r(e).saturate(.5).darken(.1).hexString()}const ZM=["x","y","borderWidth","radius","tension"],UM=["color","borderColor","backgroundColor"];function YM(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:UM},numbers:{type:"number",properties:ZM}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function KM(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Fg=new Map;function XM(e,t){t=t||{};const n=e+JSON.stringify(t);let i=Fg.get(n);return i||(i=new Intl.NumberFormat(e,t),Fg.set(n,i)),i}function Zr(e,t,n){return XM(t,n).format(e)}const $g={values(e){return Dt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const i=this.chart.options.locale;let s,r=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(s="scientific"),r=qM(e,n)}const o=Ci(Math.abs(r)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Zr(e,i,l)},logarithmic(e,t,n){if(e===0)return"0";const i=n[t].significand||e/Math.pow(10,Math.floor(Ci(e)));return[1,2,3,5,10,15].includes(i)||t>.8*n.length?$g.numeric.call(this,e,t,n):""}};function qM(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var xa={formatters:$g};function JM(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:xa.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const ns=Object.create(null),Jc=Object.create(null);function Ur(e,t){if(!t)return e;const n=t.split(".");for(let i=0,s=n.length;i<s;++i){const r=n[i];e=e[r]||(e[r]=Object.create(null))}return e}function Gc(e,t,n){return typeof t=="string"?Nr(Ur(e,t),n):Nr(Ur(e,""),t)}class GM{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,s)=>qc(s.backgroundColor),this.hoverBorderColor=(i,s)=>qc(s.borderColor),this.hoverColor=(i,s)=>qc(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Gc(this,t,n)}get(t){return Ur(this,t)}describe(t,n){return Gc(Jc,t,n)}override(t,n){return Gc(ns,t,n)}route(t,n,i,s){const r=Ur(this,t),o=Ur(this,i),a="_"+n;Object.defineProperties(r,{[a]:{value:r[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=o[s];return rt(l)?Object.assign({},c,l):nt(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var Et=new GM({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[YM,KM,JM]);function QM(e){return!e||st(e.size)||st(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function va(e,t,n,i,s){let r=t[s];return r||(r=t[s]=e.measureText(s).width,n.push(s)),r>i&&(i=r),i}function tC(e,t,n,i){i=i||{};let s=i.data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(s=i.data={},r=i.garbageCollect=[],i.font=t),e.save(),e.font=t;let o=0;const a=n.length;let l,c,u,f,h;for(l=0;l<a;l++)if(f=n[l],f!=null&&!Dt(f))o=va(e,s,r,o,f);else if(Dt(f))for(c=0,u=f.length;c<u;c++)h=f[c],h!=null&&!Dt(h)&&(o=va(e,s,r,o,h));e.restore();const d=r.length/2;if(d>n.length){for(l=0;l<d;l++)delete s[r[l]];r.splice(0,d)}return o}function is(e,t,n){const i=e.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((t-s)*i)/i+s}function Ng(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Qc(e,t,n,i){Bg(e,t,n,i,null)}function Bg(e,t,n,i,s){let r,o,a,l,c,u,f,h;const d=t.pointStyle,g=t.rotation,p=t.radius;let m=(g||0)*IM;if(d&&typeof d=="object"&&(r=d.toString(),r==="[object HTMLImageElement]"||r==="[object HTMLCanvasElement]")){e.save(),e.translate(n,i),e.rotate(m),e.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),e.restore();return}if(!(isNaN(p)||p<=0)){switch(e.beginPath(),d){default:s?e.ellipse(n,i,s/2,p,0,0,Pt):e.arc(n,i,p,0,Pt),e.closePath();break;case"triangle":u=s?s/2:p,e.moveTo(n+Math.sin(m)*u,i-Math.cos(m)*p),m+=wg,e.lineTo(n+Math.sin(m)*u,i-Math.cos(m)*p),m+=wg,e.lineTo(n+Math.sin(m)*u,i-Math.cos(m)*p),e.closePath();break;case"rectRounded":c=p*.516,l=p-c,o=Math.cos(m+es)*l,f=Math.cos(m+es)*(s?s/2-c:l),a=Math.sin(m+es)*l,h=Math.sin(m+es)*(s?s/2-c:l),e.arc(n-f,i-a,c,m-ut,m-Ht),e.arc(n+h,i-o,c,m-Ht,m),e.arc(n+f,i+a,c,m,m+Ht),e.arc(n-h,i+o,c,m+Ht,m+ut),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*p,u=s?s/2:l,e.rect(n-u,i-l,2*u,2*l);break}m+=es;case"rectRot":f=Math.cos(m)*(s?s/2:p),o=Math.cos(m)*p,a=Math.sin(m)*p,h=Math.sin(m)*(s?s/2:p),e.moveTo(n-f,i-a),e.lineTo(n+h,i-o),e.lineTo(n+f,i+a),e.lineTo(n-h,i+o),e.closePath();break;case"crossRot":m+=es;case"cross":f=Math.cos(m)*(s?s/2:p),o=Math.cos(m)*p,a=Math.sin(m)*p,h=Math.sin(m)*(s?s/2:p),e.moveTo(n-f,i-a),e.lineTo(n+f,i+a),e.moveTo(n+h,i-o),e.lineTo(n-h,i+o);break;case"star":f=Math.cos(m)*(s?s/2:p),o=Math.cos(m)*p,a=Math.sin(m)*p,h=Math.sin(m)*(s?s/2:p),e.moveTo(n-f,i-a),e.lineTo(n+f,i+a),e.moveTo(n+h,i-o),e.lineTo(n-h,i+o),m+=es,f=Math.cos(m)*(s?s/2:p),o=Math.cos(m)*p,a=Math.sin(m)*p,h=Math.sin(m)*(s?s/2:p),e.moveTo(n-f,i-a),e.lineTo(n+f,i+a),e.moveTo(n+h,i-o),e.lineTo(n-h,i+o);break;case"line":o=s?s/2:Math.cos(m)*p,a=Math.sin(m)*p,e.moveTo(n-o,i-a),e.lineTo(n+o,i+a);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(m)*(s?s/2:p),i+Math.sin(m)*p);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Jn(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function wa(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Sa(e){e.restore()}function eC(e,t,n,i,s){if(!t)return e.lineTo(n.x,n.y);if(s==="middle"){const r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else s==="after"!=!!i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function nC(e,t,n,i){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function iC(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),st(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function sC(e,t,n,i,s){if(s.strikethrough||s.underline){const r=e.measureText(i),o=t-r.actualBoundingBoxLeft,a=t+r.actualBoundingBoxRight,l=n-r.actualBoundingBoxAscent,c=n+r.actualBoundingBoxDescent,u=s.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=s.decorationWidth||2,e.moveTo(o,u),e.lineTo(a,u),e.stroke()}}function rC(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function ss(e,t,n,i,s,r={}){const o=Dt(t)?t:[t],a=r.strokeWidth>0&&r.strokeColor!=="";let l,c;for(e.save(),e.font=s.string,iC(e,r),l=0;l<o.length;++l)c=o[l],r.backdrop&&rC(e,r.backdrop),a&&(r.strokeColor&&(e.strokeStyle=r.strokeColor),st(r.strokeWidth)||(e.lineWidth=r.strokeWidth),e.strokeText(c,n,i,r.maxWidth)),e.fillText(c,n,i,r.maxWidth),sC(e,n,i,c,r),i+=Number(s.lineHeight);e.restore()}function Yr(e,t){const{x:n,y:i,w:s,h:r,radius:o}=t;e.arc(n+o.topLeft,i+o.topLeft,o.topLeft,1.5*ut,ut,!0),e.lineTo(n,i+r-o.bottomLeft),e.arc(n+o.bottomLeft,i+r-o.bottomLeft,o.bottomLeft,ut,Ht,!0),e.lineTo(n+s-o.bottomRight,i+r),e.arc(n+s-o.bottomRight,i+r-o.bottomRight,o.bottomRight,Ht,0,!0),e.lineTo(n+s,i+o.topRight),e.arc(n+s-o.topRight,i+o.topRight,o.topRight,0,-Ht,!0),e.lineTo(n+o.topLeft,i)}const oC=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,aC=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function lC(e,t){const n=(""+e).match(oC);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const cC=e=>+e||0;function tu(e,t){const n={},i=rt(t),s=i?Object.keys(t):t,r=rt(e)?i?o=>nt(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of s)n[o]=cC(r(o));return n}function jg(e){return tu(e,{top:"y",right:"x",bottom:"y",left:"x"})}function rs(e){return tu(e,["topLeft","topRight","bottomLeft","bottomRight"])}function pe(e){const t=jg(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Kt(e,t){e=e||{},t=t||Et.font;let n=nt(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let i=nt(e.style,t.style);i&&!(""+i).match(aC)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const s={family:nt(e.family,t.family),lineHeight:lC(nt(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:nt(e.weight,t.weight),string:""};return s.string=QM(s),s}function Kr(e,t,n,i){let s,r,o;for(s=0,r=e.length;s<r;++s)if(o=e[s],o!==void 0&&o!==void 0)return o}function uC(e,t,n){const{min:i,max:s}=e,r=bg(t,(s-i)/2),o=(a,l)=>n&&a===0?0:a+l;return{min:o(i,-Math.abs(r)),max:o(s,r)}}function Pi(e,t){return Object.assign(Object.create(e),t)}function eu(e,t=[""],n,i,s=()=>e[0]){const r=n||e;typeof i>"u"&&(i=Ug("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:r,_fallback:i,_getTarget:s,override:a=>eu([a,...e],t,r,i)};return new Proxy(o,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return Wg(a,l,()=>bC(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Yg(a).includes(l)},ownKeys(a){return Yg(a)},set(a,l,c){const u=a._storage||(a._storage=s());return a[l]=u[l]=c,delete a._keys,!0}})}function Ys(e,t,n,i){const s={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Vg(e,i),setContext:r=>Ys(e,r,n,i),override:r=>Ys(e.override(r),t,n,i)};return new Proxy(s,{deleteProperty(r,o){return delete r[o],delete e[o],!0},get(r,o,a){return Wg(r,o,()=>hC(r,o,a))},getOwnPropertyDescriptor(r,o){return r._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(r,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(r,o,a){return e[o]=a,delete r[o],!0}})}function Vg(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:s=t.allKeys}=e;return{allKeys:s,scriptable:n,indexable:i,isScriptable:Mi(n)?n:()=>n,isIndexable:Mi(i)?i:()=>i}}const fC=(e,t)=>e?e+Hc(t):t,nu=(e,t)=>rt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Wg(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const i=n();return e[t]=i,i}function hC(e,t,n){const{_proxy:i,_context:s,_subProxy:r,_descriptors:o}=e;let a=i[t];return Mi(a)&&o.isScriptable(t)&&(a=dC(t,a,e,n)),Dt(a)&&a.length&&(a=pC(t,a,e,o.isIndexable)),nu(t,a)&&(a=Ys(a,s,r&&r[t],o)),a}function dC(e,t,n,i){const{_proxy:s,_context:r,_subProxy:o,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(r,o||i);return a.delete(e),nu(e,l)&&(l=iu(s._scopes,s,e,l)),l}function pC(e,t,n,i){const{_proxy:s,_context:r,_subProxy:o,_descriptors:a}=n;if(typeof r.index<"u"&&i(e))return t[r.index%t.length];if(rt(t[0])){const l=t,c=s._scopes.filter(u=>u!==l);t=[];for(const u of l){const f=iu(c,s,e,u);t.push(Ys(f,r,o&&o[e],a))}}return t}function Hg(e,t,n){return Mi(e)?e(t,n):e}const gC=(e,t)=>e===!0?t:typeof e=="string"?Ti(t,e):void 0;function mC(e,t,n,i,s){for(const r of t){const o=gC(n,r);if(o){e.add(o);const a=Hg(o._fallback,n,s);if(typeof a<"u"&&a!==n&&a!==i)return a}else if(o===!1&&typeof i<"u"&&n!==i)return null}return!1}function iu(e,t,n,i){const s=t._rootScopes,r=Hg(t._fallback,n,i),o=[...e,...s],a=new Set;a.add(i);let l=Zg(a,o,n,r||n,i);return l===null||typeof r<"u"&&r!==n&&(l=Zg(a,o,r,l,i),l===null)?!1:eu(Array.from(a),[""],s,r,()=>_C(t,n,i))}function Zg(e,t,n,i,s){for(;n;)n=mC(e,t,n,i,s);return n}function _C(e,t,n){const i=e._getTarget();t in i||(i[t]={});const s=i[t];return Dt(s)&&rt(n)?n:s||{}}function bC(e,t,n,i){let s;for(const r of t)if(s=Ug(fC(r,e),n),typeof s<"u")return nu(e,s)?iu(n,i,e,s):s}function Ug(e,t){for(const n of t){if(!n)continue;const i=n[e];if(typeof i<"u")return i}}function Yg(e){let t=e._keys;return t||(t=e._keys=yC(e._scopes)),t}function yC(e){const t=new Set;for(const n of e)for(const i of Object.keys(n).filter(s=>!s.startsWith("_")))t.add(i);return Array.from(t)}function Kg(e,t,n,i){const{iScale:s}=e,{key:r="r"}=this._parsing,o=new Array(i);let a,l,c,u;for(a=0,l=i;a<l;++a)c=a+n,u=t[c],o[a]={r:s.parse(Ti(u,r),c)};return o}const xC=Number.EPSILON||1e-14,Ks=(e,t)=>t<e.length&&!e[t].skip&&e[t],Xg=e=>e==="x"?"y":"x";function vC(e,t,n,i){const s=e.skip?t:e,r=t,o=n.skip?t:n,a=Uc(r,s),l=Uc(o,r);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const f=i*c,h=i*u;return{previous:{x:r.x-f*(o.x-s.x),y:r.y-f*(o.y-s.y)},next:{x:r.x+h*(o.x-s.x),y:r.y+h*(o.y-s.y)}}}function wC(e,t,n){const i=e.length;let s,r,o,a,l,c=Ks(e,0);for(let u=0;u<i-1;++u)if(l=c,c=Ks(e,u+1),!(!l||!c)){if(Vr(t[u],0,xC)){n[u]=n[u+1]=0;continue}s=n[u]/t[u],r=n[u+1]/t[u],a=Math.pow(s,2)+Math.pow(r,2),!(a<=9)&&(o=3/Math.sqrt(a),n[u]=s*o*t[u],n[u+1]=r*o*t[u])}}function SC(e,t,n="x"){const i=Xg(n),s=e.length;let r,o,a,l=Ks(e,0);for(let c=0;c<s;++c){if(o=a,a=l,l=Ks(e,c+1),!a)continue;const u=a[n],f=a[i];o&&(r=(u-o[n])/3,a[`cp1${n}`]=u-r,a[`cp1${i}`]=f-r*t[c]),l&&(r=(l[n]-u)/3,a[`cp2${n}`]=u+r,a[`cp2${i}`]=f+r*t[c])}}function kC(e,t="x"){const n=Xg(t),i=e.length,s=Array(i).fill(0),r=Array(i);let o,a,l,c=Ks(e,0);for(o=0;o<i;++o)if(a=l,l=c,c=Ks(e,o+1),!!l){if(c){const u=c[t]-l[t];s[o]=u!==0?(c[n]-l[n])/u:0}r[o]=a?c?Cn(s[o-1])!==Cn(s[o])?0:(s[o-1]+s[o])/2:s[o-1]:s[o]}wC(e,s,r),SC(e,r,t)}function ka(e,t,n){return Math.max(Math.min(e,n),t)}function TC(e,t){let n,i,s,r,o,a=Jn(e[0],t);for(n=0,i=e.length;n<i;++n)o=r,r=a,a=n<i-1&&Jn(e[n+1],t),r&&(s=e[n],o&&(s.cp1x=ka(s.cp1x,t.left,t.right),s.cp1y=ka(s.cp1y,t.top,t.bottom)),a&&(s.cp2x=ka(s.cp2x,t.left,t.right),s.cp2y=ka(s.cp2y,t.top,t.bottom)))}function MC(e,t,n,i,s){let r,o,a,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")kC(e,s);else{let c=i?e[e.length-1]:e[0];for(r=0,o=e.length;r<o;++r)a=e[r],l=vC(c,a,e[Math.min(r+1,o-(i?0:1))%o],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&TC(e,n)}function su(){return typeof window<"u"&&typeof document<"u"}function ru(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Ta(e,t,n){let i;return typeof e=="string"?(i=parseInt(e,10),e.indexOf("%")!==-1&&(i=i/100*t.parentNode[n])):i=e,i}const Ma=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function CC(e,t){return Ma(e).getPropertyValue(t)}const PC=["top","right","bottom","left"];function os(e,t,n){const i={};n=n?"-"+n:"";for(let s=0;s<4;s++){const r=PC[s];i[r]=parseFloat(e[t+"-"+r+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const OC=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function AC(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:s,offsetY:r}=i;let o=!1,a,l;if(OC(s,r,e.target))a=s,l=r;else{const c=t.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,o=!0}return{x:a,y:l,box:o}}function as(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,s=Ma(n),r=s.boxSizing==="border-box",o=os(s,"padding"),a=os(s,"border","width"),{x:l,y:c,box:u}=AC(e,n),f=o.left+(u&&a.left),h=o.top+(u&&a.top);let{width:d,height:g}=t;return r&&(d-=o.width+a.width,g-=o.height+a.height),{x:Math.round((l-f)/d*n.width/i),y:Math.round((c-h)/g*n.height/i)}}function zC(e,t,n){let i,s;if(t===void 0||n===void 0){const r=e&&ru(e);if(!r)t=e.clientWidth,n=e.clientHeight;else{const o=r.getBoundingClientRect(),a=Ma(r),l=os(a,"border","width"),c=os(a,"padding");t=o.width-c.width-l.width,n=o.height-c.height-l.height,i=Ta(a.maxWidth,r,"clientWidth"),s=Ta(a.maxHeight,r,"clientHeight")}}return{width:t,height:n,maxWidth:i||ba,maxHeight:s||ba}}const Oi=e=>Math.round(e*10)/10;function DC(e,t,n,i){const s=Ma(e),r=os(s,"margin"),o=Ta(s.maxWidth,e,"clientWidth")||ba,a=Ta(s.maxHeight,e,"clientHeight")||ba,l=zC(e,t,n);let{width:c,height:u}=l;if(s.boxSizing==="content-box"){const h=os(s,"border","width"),d=os(s,"padding");c-=d.width+h.width,u-=d.height+h.height}return c=Math.max(0,c-r.width),u=Math.max(0,i?c/i:u-r.height),c=Oi(Math.min(c,o,l.maxWidth)),u=Oi(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Oi(c/2)),(t!==void 0||n!==void 0)&&i&&l.height&&u>l.height&&(u=l.height,c=Oi(Math.floor(u*i))),{width:c,height:u}}function qg(e,t,n){const i=t||1,s=Oi(e.height*i),r=Oi(e.width*i);e.height=Oi(e.height),e.width=Oi(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==i||o.height!==s||o.width!==r?(e.currentDevicePixelRatio=i,o.height=s,o.width=r,e.ctx.setTransform(i,0,0,i,0,0),!0):!1}const EC=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};su()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Jg(e,t){const n=CC(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function ls(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function IC(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:i==="middle"?n<.5?e.y:t.y:i==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function RC(e,t,n,i){const s={x:e.cp2x,y:e.cp2y},r={x:t.cp1x,y:t.cp1y},o=ls(e,s,n),a=ls(s,r,n),l=ls(r,t,n),c=ls(o,a,n),u=ls(a,l,n);return ls(c,u,n)}const LC=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},FC=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Xs(e,t,n){return e?LC(t,n):FC()}function Gg(e,t){let n,i;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function Qg(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function tm(e){return e==="angle"?{between:Wr,compare:$M,normalize:he}:{between:Xn,compare:(t,n)=>t-n,normalize:t=>t}}function em({start:e,end:t,count:n,loop:i,style:s}){return{start:e%n,end:t%n,loop:i&&(t-e+1)%n===0,style:s}}function $C(e,t,n){const{property:i,start:s,end:r}=n,{between:o,normalize:a}=tm(i),l=t.length;let{start:c,end:u,loop:f}=e,h,d;if(f){for(c+=l,u+=l,h=0,d=l;h<d&&o(a(t[c%l][i]),s,r);++h)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:f,style:e.style}}function nm(e,t,n){if(!n)return[e];const{property:i,start:s,end:r}=n,o=t.length,{compare:a,between:l,normalize:c}=tm(i),{start:u,end:f,loop:h,style:d}=$C(e,t,n),g=[];let p=!1,m=null,_,y,w;const x=()=>l(s,w,_)&&a(s,w)!==0,b=()=>a(r,_)===0||l(r,w,_),k=()=>p||x(),M=()=>!p||b();for(let P=u,v=u;P<=f;++P)y=t[P%o],!y.skip&&(_=c(y[i]),_!==w&&(p=l(_,s,r),m===null&&k()&&(m=a(_,s)===0?P:v),m!==null&&M()&&(g.push(em({start:m,end:P,loop:h,count:o,style:d})),m=null),v=P,w=_));return m!==null&&g.push(em({start:m,end:f,loop:h,count:o,style:d})),g}function im(e,t){const n=[],i=e.segments;for(let s=0;s<i.length;s++){const r=nm(i[s],e.points,t);r.length&&n.push(...r)}return n}function NC(e,t,n,i){let s=0,r=t-1;if(n&&!i)for(;s<t&&!e[s].skip;)s++;for(;s<t&&e[s].skip;)s++;for(s%=t,n&&(r+=s);r>s&&e[r%t].skip;)r--;return r%=t,{start:s,end:r}}function BC(e,t,n,i){const s=e.length,r=[];let o=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%s];c.skip||c.stop?a.skip||(i=!1,r.push({start:t%s,end:(l-1)%s,loop:i}),t=o=c.stop?l:null):(o=l,a.skip&&(t=l)),a=c}return o!==null&&r.push({start:t%s,end:o%s,loop:i}),r}function jC(e,t){const n=e.points,i=e.options.spanGaps,s=n.length;if(!s)return[];const r=!!e._loop,{start:o,end:a}=NC(n,s,r,i);if(i===!0)return sm(e,[{start:o,end:a,loop:r}],n,t);const l=a<o?a+s:a,c=!!e._fullLoop&&o===0&&a===s-1;return sm(e,BC(n,o,l,c),n,t)}function sm(e,t,n,i){return!i||!i.setContext||!n?t:VC(e,t,n,i)}function VC(e,t,n,i){const s=e._chart.getContext(),r=rm(e.options),{_datasetIndex:o,options:{spanGaps:a}}=e,l=n.length,c=[];let u=r,f=t[0].start,h=f;function d(g,p,m,_){const y=a?-1:1;if(g!==p){for(g+=l;n[g%l].skip;)g-=y;for(;n[p%l].skip;)p+=y;g%l!==p%l&&(c.push({start:g%l,end:p%l,loop:m,style:_}),u=_,f=p%l)}}for(const g of t){f=a?f:g.start;let p=n[f%l],m;for(h=f+1;h<=g.end;h++){const _=n[h%l];m=rm(i.setContext(Pi(s,{type:"segment",p0:p,p1:_,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:o}))),WC(m,u)&&d(f,h-1,g.loop,u),p=_,u=m}f<h-1&&d(f,h-1,g.loop,u)}return c}function rm(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function WC(e,t){if(!t)return!1;const n=[],i=function(s,r){return Xc(r)?(n.includes(r)||n.push(r),n.indexOf(r)):r};return JSON.stringify(e,i)!==JSON.stringify(t,i)}function Ca(e,t,n){return e.options.clip?e[n]:t[n]}function HC(e,t){const{xScale:n,yScale:i}=e;return n&&i?{left:Ca(n,t,"left"),right:Ca(n,t,"right"),top:Ca(i,t,"top"),bottom:Ca(i,t,"bottom")}:t}function om(e,t){const n=t._clip;if(n.disabled)return!1;const i=HC(t,e.chartArea);return{left:n.left===!1?0:i.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:i.right+(n.right===!0?0:n.right),top:n.top===!1?0:i.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:i.bottom+(n.bottom===!0?0:n.bottom)}}/*!
66
- * Chart.js v4.5.1
67
- * https://www.chartjs.org
68
- * (c) 2025 Chart.js Contributors
69
- * Released under the MIT License
70
- */class ZC{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,i,s){const r=n.listeners[s],o=n.duration;r.forEach(a=>a({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(i-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=Ag.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const r=i.items;let o=r.length-1,a=!1,l;for(;o>=0;--o)l=r[o],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(t),a=!0):(r[o]=r[r.length-1],r.pop());a&&(s.draw(),this._notify(s,i,t,"progress")),r.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),n+=r.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let i=n.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,i)),i}listen(t,n,i){this._getAnims(t).listeners[n].push(i)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const i=n.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Gn=new ZC;const am="transparent",UC={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const i=Lg(e||am),s=i.valid&&Lg(t||am);return s&&s.valid?s.mix(i,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class YC{constructor(t,n,i,s){const r=n[i];s=Kr([t.to,s,r,t.from]);const o=Kr([t.from,r,s]);this._active=!0,this._fn=t.fn||UC[t.type||typeof o],this._easing=Hr[t.easing]||Hr.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=i,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(t,n,i){if(this._active){this._notify(!1);const s=this._target[this._prop],r=i-this._start,o=this._duration-r;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=Kr([t.to,n,s,t.from]),this._from=Kr([t.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,i=this._duration,s=this._prop,r=this._from,o=this._loop,a=this._to;let l;if(this._active=r!==a&&(o||n<i),!this._active){this._target[s]=a,this._notify(!0);return}if(n<0){this._target[s]=r;return}l=n/i%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(r,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,i)=>{t.push({res:n,rej:i})})}_notify(t){const n=t?"res":"rej",i=this._promises||[];for(let s=0;s<i.length;s++)i[s][n]()}}class lm{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!rt(t))return;const n=Object.keys(Et.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const r=t[s];if(!rt(r))return;const o={};for(const a of n)o[a]=r[a];(Dt(r.properties)&&r.properties||[s]).forEach(a=>{(a===s||!i.has(a))&&i.set(a,o)})})}_animateOptions(t,n){const i=n.options,s=XC(t,i);if(!s)return[];const r=this._createAnimations(s,i);return i.$shared&&KC(t.options.$animations,i).then(()=>{t.options=i},()=>{}),r}_createAnimations(t,n){const i=this._properties,s=[],r=t.$animations||(t.$animations={}),o=Object.keys(n),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(t,n));continue}const u=n[c];let f=r[c];const h=i.get(c);if(f)if(h&&f.active()){f.update(h,u,a);continue}else f.cancel();if(!h||!h.duration){t[c]=u;continue}r[c]=f=new YC(h,t,c,u),s.push(f)}return s}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const i=this._createAnimations(t,n);if(i.length)return Gn.add(this._chart,i),!0}}function KC(e,t){const n=[],i=Object.keys(t);for(let s=0;s<i.length;s++){const r=e[i[s]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}function XC(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function cm(e,t){const n=e&&e.options||{},i=n.reverse,s=n.min===void 0?t:0,r=n.max===void 0?t:0;return{start:i?r:s,end:i?s:r}}function qC(e,t,n){if(n===!1)return!1;const i=cm(e,n),s=cm(t,n);return{top:s.end,right:i.end,bottom:s.start,left:i.start}}function JC(e){let t,n,i,s;return rt(e)?(t=e.top,n=e.right,i=e.bottom,s=e.left):t=n=i=s=e,{top:t,right:n,bottom:i,left:s,disabled:e===!1}}function um(e,t){const n=[],i=e._getSortedDatasetMetas(t);let s,r;for(s=0,r=i.length;s<r;++s)n.push(i[s].index);return n}function fm(e,t,n,i={}){const s=e.keys,r=i.mode==="single";let o,a,l,c;if(t===null)return;let u=!1;for(o=0,a=s.length;o<a;++o){if(l=+s[o],l===n){if(u=!0,i.all)continue;break}c=e.values[l],jt(c)&&(r||t===0||Cn(t)===Cn(c))&&(t+=c)}return!u&&!i.all?0:t}function GC(e,t){const{iScale:n,vScale:i}=t,s=n.axis==="x"?"x":"y",r=i.axis==="x"?"x":"y",o=Object.keys(e),a=new Array(o.length);let l,c,u;for(l=0,c=o.length;l<c;++l)u=o[l],a[l]={[s]:u,[r]:e[u]};return a}function ou(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function QC(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function tP(e){const{min:t,max:n,minDefined:i,maxDefined:s}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function eP(e,t,n){const i=e[t]||(e[t]={});return i[n]||(i[n]={})}function hm(e,t,n,i){for(const s of t.getMatchingVisibleMetas(i).reverse()){const r=e[s.index];if(n&&r>0||!n&&r<0)return s.index}return null}function dm(e,t){const{chart:n,_cachedMeta:i}=e,s=n._stacks||(n._stacks={}),{iScale:r,vScale:o,index:a}=i,l=r.axis,c=o.axis,u=QC(r,o,i),f=t.length;let h;for(let d=0;d<f;++d){const g=t[d],{[l]:p,[c]:m}=g,_=g._stacks||(g._stacks={});h=_[c]=eP(s,u,p),h[a]=m,h._top=hm(h,o,!0,i.type),h._bottom=hm(h,o,!1,i.type);const y=h._visualValues||(h._visualValues={});y[a]=m}}function au(e,t){const n=e.scales;return Object.keys(n).filter(i=>n[i].axis===t).shift()}function nP(e,t){return Pi(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function iP(e,t,n){return Pi(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Xr(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const s of t){const r=s._stacks;if(!r||r[i]===void 0||r[i][n]===void 0)return;delete r[i][n],r[i]._visualValues!==void 0&&r[i]._visualValues[n]!==void 0&&delete r[i]._visualValues[n]}}}const lu=e=>e==="reset"||e==="none",pm=(e,t)=>t?e:Object.assign({},e),sP=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:um(n,!0),values:null};class fn{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=ou(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Xr(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,i=this.getDataset(),s=(f,h,d,g)=>f==="x"?h:f==="r"?g:d,r=n.xAxisID=nt(i.xAxisID,au(t,"x")),o=n.yAxisID=nt(i.yAxisID,au(t,"y")),a=n.rAxisID=nt(i.rAxisID,au(t,"r")),l=n.indexAxis,c=n.iAxisID=s(l,r,o,a),u=n.vAxisID=s(l,o,r,a);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Pg(this._data,this),t._stacked&&Xr(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),i=this._data;if(rt(n)){const s=this._cachedMeta;this._data=GC(n,s)}else if(i!==n){if(i){Pg(i,this);const s=this._cachedMeta;Xr(s),s._parsed=[]}n&&Object.isExtensible(n)&&VM(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const r=n._stacked;n._stacked=ou(n.vScale,n),n.stack!==i.stack&&(s=!0,Xr(n),n.stack=i.stack),this._resyncElements(t),(s||r!==n._stacked)&&(dm(this,n._parsed),n._stacked=ou(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:i,_data:s}=this,{iScale:r,_stacked:o}=i,a=r.axis;let l=t===0&&n===s.length?!0:i._sorted,c=t>0&&i._parsed[t-1],u,f,h;if(this._parsing===!1)i._parsed=s,i._sorted=!0,h=s;else{Dt(s[t])?h=this.parseArrayData(i,s,t,n):rt(s[t])?h=this.parseObjectData(i,s,t,n):h=this.parsePrimitiveData(i,s,t,n);const d=()=>f[a]===null||c&&f[a]<c[a];for(u=0;u<n;++u)i._parsed[u+t]=f=h[u],l&&(d()&&(l=!1),c=f);i._sorted=l}o&&dm(this,h)}parsePrimitiveData(t,n,i,s){const{iScale:r,vScale:o}=t,a=r.axis,l=o.axis,c=r.getLabels(),u=r===o,f=new Array(s);let h,d,g;for(h=0,d=s;h<d;++h)g=h+i,f[h]={[a]:u||r.parse(c[g],g),[l]:o.parse(n[g],g)};return f}parseArrayData(t,n,i,s){const{xScale:r,yScale:o}=t,a=new Array(s);let l,c,u,f;for(l=0,c=s;l<c;++l)u=l+i,f=n[u],a[l]={x:r.parse(f[0],u),y:o.parse(f[1],u)};return a}parseObjectData(t,n,i,s){const{xScale:r,yScale:o}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(s);let u,f,h,d;for(u=0,f=s;u<f;++u)h=u+i,d=n[h],c[u]={x:r.parse(Ti(d,a),h),y:o.parse(Ti(d,l),h)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,i){const s=this.chart,r=this._cachedMeta,o=n[t.axis],a={keys:um(s,!0),values:n._stacks[t.axis]._visualValues};return fm(a,o,r.index,{mode:i})}updateRangeFromParsed(t,n,i,s){const r=i[n.axis];let o=r===null?NaN:r;const a=s&&i._stacks[n.axis];s&&a&&(s.values=a,o=fm(s,r,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){const i=this._cachedMeta,s=i._parsed,r=i._sorted&&t===i.iScale,o=s.length,a=this._getOtherScale(t),l=sP(n,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:f}=tP(a);let h,d;function g(){d=s[h];const p=d[a.axis];return!jt(d[t.axis])||u>p||f<p}for(h=0;h<o&&!(!g()&&(this.updateRangeFromParsed(c,t,d,l),r));++h);if(r){for(h=o-1;h>=0;--h)if(!g()){this.updateRangeFromParsed(c,t,d,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,i=[];let s,r,o;for(s=0,r=n.length;s<r;++s)o=n[s][t.axis],jt(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,i=n.iScale,s=n.vScale,r=this.getParsed(t);return{label:i?""+i.getLabelForValue(r[i.axis]):"",value:s?""+s.getLabelForValue(r[s.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=JC(nt(this.options.clip,qC(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,i=this._cachedMeta,s=i.data||[],r=n.chartArea,o=[],a=this._drawStart||0,l=this._drawCount||s.length-a,c=this.options.drawActiveElementsOnTop;let u;for(i.dataset&&i.dataset.draw(t,r,a,l),u=a;u<a+l;++u){const f=s[u];f.hidden||(f.active&&c?o.push(f):f.draw(t,r))}for(u=0;u<o.length;++u)o[u].draw(t,r)}getStyle(t,n){const i=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,n,i){const s=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];r=o.$context||(o.$context=iP(this.getContext(),t,o)),r.parsed=this.getParsed(t),r.raw=s.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=nP(this.chart.getContext(),this.index)),r.dataset=s,r.index=r.datasetIndex=this.index;return r.active=!!n,r.mode=i,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",i){const s=n==="active",r=this._cachedDataOpts,o=t+"-"+n,a=r[o],l=this.enableOptionSharing&&jr(i);if(a)return pm(a,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),f=s?[`${t}Hover`,"hover",t,""]:[t,""],h=c.getOptionScopes(this.getDataset(),u),d=Object.keys(Et.elements[t]),g=()=>this.getContext(i,s,n),p=c.resolveNamedOptions(h,d,g,f);return p.$shared&&(p.$shared=l,r[o]=Object.freeze(pm(p,l))),p}_resolveAnimations(t,n,i){const s=this.chart,r=this._cachedDataOpts,o=`animation-${n}`,a=r[o];if(a)return a;let l;if(s.options.animation!==!1){const u=this.chart.config,f=u.datasetAnimationScopeKeys(this._type,n),h=u.getOptionScopes(this.getDataset(),f);l=u.createResolver(h,this.getContext(t,i,n))}const c=new lm(s,l&&l.animations);return l&&l._cacheable&&(r[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||lu(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const i=this.resolveDataElementOptions(t,n),s=this._sharedOptions,r=this.getSharedOptions(i),o=this.includeOptions(n,r)||r!==s;return this.updateSharedOptions(r,n,i),{sharedOptions:r,includeOptions:o}}updateElement(t,n,i,s){lu(s)?Object.assign(t,i):this._resolveAnimations(n,s).update(t,i)}updateSharedOptions(t,n,i){t&&!lu(n)&&this._resolveAnimations(void 0,n).update(t,i)}_setStyle(t,n,i,s){t.active=s;const r=this.getStyle(n,s);this._resolveAnimations(n,i,s).update(t,{options:!s&&this.getSharedOptions(r)||r})}removeHoverStyle(t,n,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,n,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const s=i.length,r=n.length,o=Math.min(r,s);o&&this.parse(0,o),r>s?this._insertElements(s,r-s,t):r<s&&this._removeElements(r,s-r)}_insertElements(t,n,i=!0){const s=this._cachedMeta,r=s.data,o=t+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=o;a--)c[a]=c[a-n]};for(l(r),a=t;a<o;++a)r[a]=new this.dataElementType;this._parsing&&l(s._parsed),this.parse(t,n),i&&this.updateElements(r,t,n,"reset")}updateElements(t,n,i,s){}_removeElements(t,n){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,n);i._stacked&&Xr(i,s)}i.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,i,s]=t;this[n](i,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}$(fn,"defaults",{}),$(fn,"datasetElementType",null),$(fn,"dataElementType",null);function rP(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let i=[];for(let s=0,r=n.length;s<r;s++)i=i.concat(n[s].controller.getAllParsedValues(e));e._cache.$bar=Og(i.sort((s,r)=>s-r))}return e._cache.$bar}function oP(e){const t=e.iScale,n=rP(t,e.type);let i=t._length,s,r,o,a;const l=()=>{o===32767||o===-32768||(jr(a)&&(i=Math.min(i,Math.abs(o-a)||i)),a=o)};for(s=0,r=n.length;s<r;++s)o=t.getPixelForValue(n[s]),l();for(a=void 0,s=0,r=t.ticks.length;s<r;++s)o=t.getPixelForTick(s),l();return i}function aP(e,t,n,i){const s=n.barThickness;let r,o;return st(s)?(r=t.min*n.categoryPercentage,o=n.barPercentage):(r=s*i,o=1),{chunk:r/i,ratio:o,start:t.pixels[e]-r/2}}function lP(e,t,n,i){const s=t.pixels,r=s[e];let o=e>0?s[e-1]:null,a=e<s.length-1?s[e+1]:null;const l=n.categoryPercentage;o===null&&(o=r-(a===null?t.end-t.start:a-r)),a===null&&(a=r+r-o);const c=r-(r-Math.min(o,a))/2*l;return{chunk:Math.abs(a-o)/2*l/i,ratio:n.barPercentage,start:c}}function cP(e,t,n,i){const s=n.parse(e[0],i),r=n.parse(e[1],i),o=Math.min(s,r),a=Math.max(s,r);let l=o,c=a;Math.abs(o)>Math.abs(a)&&(l=a,c=o),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:s,end:r,min:o,max:a}}function gm(e,t,n,i){return Dt(e)?cP(e,t,n,i):t[n.axis]=n.parse(e,i),t}function mm(e,t,n,i){const s=e.iScale,r=e.vScale,o=s.getLabels(),a=s===r,l=[];let c,u,f,h;for(c=n,u=n+i;c<u;++c)h=t[c],f={},f[s.axis]=a||s.parse(o[c],c),l.push(gm(h,f,r,c));return l}function cu(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function uP(e,t,n){return e!==0?Cn(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function fP(e){let t,n,i,s,r;return e.horizontal?(t=e.base>e.x,n="left",i="right"):(t=e.base<e.y,n="bottom",i="top"),t?(s="end",r="start"):(s="start",r="end"),{start:n,end:i,reverse:t,top:s,bottom:r}}function hP(e,t,n,i){let s=t.borderSkipped;const r={};if(!s){e.borderSkipped=r;return}if(s===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:a,reverse:l,top:c,bottom:u}=fP(e);s==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===i?s=c:(n._bottom||0)===i?s=u:(r[_m(u,o,a,l)]=!0,s=c)),r[_m(s,o,a,l)]=!0,e.borderSkipped=r}function _m(e,t,n,i){return i?(e=dP(e,t,n),e=bm(e,n,t)):e=bm(e,t,n),e}function dP(e,t,n){return e===t?n:e===n?t:e}function bm(e,t,n){return e==="start"?t:e==="end"?n:e}function pP(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class Pa extends fn{parsePrimitiveData(t,n,i,s){return mm(t,n,i,s)}parseArrayData(t,n,i,s){return mm(t,n,i,s)}parseObjectData(t,n,i,s){const{iScale:r,vScale:o}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=r.axis==="x"?a:l,u=o.axis==="x"?a:l,f=[];let h,d,g,p;for(h=i,d=i+s;h<d;++h)p=n[h],g={},g[r.axis]=r.parse(Ti(p,c),h),f.push(gm(Ti(p,u),g,o,h));return f}updateRangeFromParsed(t,n,i,s){super.updateRangeFromParsed(t,n,i,s);const r=i._custom;r&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:i,vScale:s}=n,r=this.getParsed(t),o=r._custom,a=cu(o)?"["+o.start+", "+o.end+"]":""+s.getLabelForValue(r[s.axis]);return{label:""+i.getLabelForValue(r[i.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,i,s){const r=s==="reset",{index:o,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),u=this._getRuler(),{sharedOptions:f,includeOptions:h}=this._getSharedOptions(n,s);for(let d=n;d<n+i;d++){const g=this.getParsed(d),p=r||st(g[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(d),m=this._calculateBarIndexPixels(d,u),_=(g._stacks||{})[a.axis],y={horizontal:c,base:p.base,enableBorderRadius:!_||cu(g._custom)||o===_._top||o===_._bottom,x:c?p.head:m.center,y:c?m.center:p.head,height:c?m.size:Math.abs(p.size),width:c?Math.abs(p.size):m.size};h&&(y.options=f||this.resolveDataElementOptions(d,t[d].active?"active":s));const w=y.options||t[d].options;hP(y,w,_,o),pP(y,w,u.ratio),this.updateElement(t[d],d,y,s)}}_getStacks(t,n){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),r=i.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[i.axis],c=u=>{const f=u._parsed.find(d=>d[i.axis]===l),h=f&&f[u.vScale.axis];if(st(h)||isNaN(h))return!0};for(const u of s)if(!(n!==void 0&&c(u))&&((r===!1||o.indexOf(u.stack)===-1||r===void 0&&u.stack===void 0)&&o.push(u.stack),u.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(t).filter(i=>t[i].axis===n).shift()}_getAxis(){const t={},n=this.getFirstScaleIdForIndexAxis();for(const i of this.chart.data.datasets)t[nt(this.chart.options.indexAxis==="x"?i.xAxisID:i.yAxisID,n)]=!0;return Object.keys(t)}_getStackIndex(t,n,i){const s=this._getStacks(t,i),r=n!==void 0?s.indexOf(n):-1;return r===-1?s.length-1:r}_getRuler(){const t=this.options,n=this._cachedMeta,i=n.iScale,s=[];let r,o;for(r=0,o=n.data.length;r<o;++r)s.push(i.getPixelForValue(this.getParsed(r)[i.axis],r));const a=t.barThickness;return{min:a||oP(n),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:i,index:s},options:{base:r,minBarLength:o}}=this,a=r||0,l=this.getParsed(t),c=l._custom,u=cu(c);let f=l[n.axis],h=0,d=i?this.applyStack(n,l,i):f,g,p;d!==f&&(h=d-f,d=f),u&&(f=c.barStart,d=c.barEnd-c.barStart,f!==0&&Cn(f)!==Cn(c.barEnd)&&(h=0),h+=f);const m=!st(r)&&!u?r:h;let _=n.getPixelForValue(m);if(this.chart.getDataVisibility(t)?g=n.getPixelForValue(h+d):g=_,p=g-_,Math.abs(p)<o){p=uP(p,n,a)*o,f===a&&(_-=p/2);const y=n.getPixelForDecimal(0),w=n.getPixelForDecimal(1),x=Math.min(y,w),b=Math.max(y,w);_=Math.max(Math.min(_,b),x),g=_+p,i&&!u&&(l._stacks[n.axis]._visualValues[s]=n.getValueForPixel(g)-n.getValueForPixel(_))}if(_===n.getPixelForValue(a)){const y=Cn(p)*n.getLineWidthForValue(a)/2;_+=y,p-=y}return{size:p,base:_,head:g,center:g+p/2}}_calculateBarIndexPixels(t,n){const i=n.scale,s=this.options,r=s.skipNull,o=nt(s.maxBarThickness,1/0);let a,l;const c=this._getAxisCount();if(n.grouped){const u=r?this._getStackCount(t):n.stackCount,f=s.barThickness==="flex"?lP(t,n,s,u*c):aP(t,n,s,u*c),h=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,d=this._getAxis().indexOf(nt(h,this.getFirstScaleIdForIndexAxis())),g=this._getStackIndex(this.index,this._cachedMeta.stack,r?t:void 0)+d;a=f.start+f.chunk*g+f.chunk/2,l=Math.min(o,f.chunk*f.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),l=Math.min(o,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,i=t.data,s=i.length;let r=0;for(;r<s;++r)this.getParsed(r)[n.axis]!==null&&!i[r].hidden&&i[r].draw(this._ctx)}}$(Pa,"id","bar"),$(Pa,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),$(Pa,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Oa extends fn{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,i,s){const r=super.parsePrimitiveData(t,n,i,s);for(let o=0;o<r.length;o++)r[o]._custom=this.resolveDataElementOptions(o+i).radius;return r}parseArrayData(t,n,i,s){const r=super.parseArrayData(t,n,i,s);for(let o=0;o<r.length;o++){const a=n[i+o];r[o]._custom=nt(a[2],this.resolveDataElementOptions(o+i).radius)}return r}parseObjectData(t,n,i,s){const r=super.parseObjectData(t,n,i,s);for(let o=0;o<r.length;o++){const a=n[i+o];r[o]._custom=nt(a&&a.r&&+a.r,this.resolveDataElementOptions(o+i).radius)}return r}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let i=t.length-1;i>=0;--i)n=Math.max(n,t[i].size(this.resolveDataElementOptions(i))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:r}=n,o=this.getParsed(t),a=s.getLabelForValue(o.x),l=r.getLabelForValue(o.y),c=o._custom;return{label:i[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,i,s){const r=s==="reset",{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,s),u=o.axis,f=a.axis;for(let h=n;h<n+i;h++){const d=t[h],g=!r&&this.getParsed(h),p={},m=p[u]=r?o.getPixelForDecimal(.5):o.getPixelForValue(g[u]),_=p[f]=r?a.getBasePixel():a.getPixelForValue(g[f]);p.skip=isNaN(m)||isNaN(_),c&&(p.options=l||this.resolveDataElementOptions(h,d.active?"active":s),r&&(p.options.radius=0)),this.updateElement(d,h,p,s)}}resolveDataElementOptions(t,n){const i=this.getParsed(t);let s=super.resolveDataElementOptions(t,n);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const r=s.radius;return n!=="active"&&(s.radius=0),s.radius+=nt(i&&i._custom,r),s}}$(Oa,"id","bubble"),$(Oa,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),$(Oa,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function gP(e,t,n){let i=1,s=1,r=0,o=0;if(t<Pt){const a=e,l=a+t,c=Math.cos(a),u=Math.sin(a),f=Math.cos(l),h=Math.sin(l),d=(w,x,b)=>Wr(w,a,l,!0)?1:Math.max(x,x*n,b,b*n),g=(w,x,b)=>Wr(w,a,l,!0)?-1:Math.min(x,x*n,b,b*n),p=d(0,c,f),m=d(Ht,u,h),_=g(ut,c,f),y=g(ut+Ht,u,h);i=(p-_)/2,s=(m-y)/2,r=-(p+_)/2,o=-(m+y)/2}return{ratioX:i,ratioY:s,offsetX:r,offsetY:o}}class cs extends fn{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const i=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=i;else{let r=l=>+i[l];if(rt(i[t])){const{key:l="value"}=this._parsing;r=c=>+Ti(i[c],l)}let o,a;for(o=t,a=t+n;o<a;++o)s._parsed[o]=r(o)}}_getRotation(){return un(this.options.rotation-90)}_getCircumference(){return un(this.options.circumference)}_getRotationExtents(){let t=Pt,n=-Pt;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const s=this.chart.getDatasetMeta(i).controller,r=s._getRotation(),o=s._getCircumference();t=Math.min(t,r),n=Math.max(n,r+o)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:i}=n,s=this._cachedMeta,r=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-o)/2,0),l=Math.min(CM(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:u,rotation:f}=this._getRotationExtents(),{ratioX:h,ratioY:d,offsetX:g,offsetY:p}=gP(f,u,l),m=(i.width-o)/h,_=(i.height-o)/d,y=Math.max(Math.min(m,_)/2,0),w=bg(this.options.radius,y),x=Math.max(w*l,0),b=(w-x)/this._getVisibleDatasetWeightTotal();this.offsetX=g*w,this.offsetY=p*w,s.total=this.calculateTotal(),this.outerRadius=w-b*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-b*c,0),this.updateElements(r,0,r.length,t)}_circumference(t,n){const i=this.options,s=this._cachedMeta,r=this._getCircumference();return n&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||s._parsed[t]===null||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*r/Pt)}updateElements(t,n,i,s){const r=s==="reset",o=this.chart,a=o.chartArea,c=o.options.animation,u=(a.left+a.right)/2,f=(a.top+a.bottom)/2,h=r&&c.animateScale,d=h?0:this.innerRadius,g=h?0:this.outerRadius,{sharedOptions:p,includeOptions:m}=this._getSharedOptions(n,s);let _=this._getRotation(),y;for(y=0;y<n;++y)_+=this._circumference(y,r);for(y=n;y<n+i;++y){const w=this._circumference(y,r),x=t[y],b={x:u+this.offsetX,y:f+this.offsetY,startAngle:_,endAngle:_+w,circumference:w,outerRadius:g,innerRadius:d};m&&(b.options=p||this.resolveDataElementOptions(y,x.active?"active":s)),_+=w,this.updateElement(x,y,b,s)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let i=0,s;for(s=0;s<n.length;s++){const r=t._parsed[s];r!==null&&!isNaN(r)&&this.chart.getDataVisibility(s)&&!n[s].hidden&&(i+=Math.abs(r))}return i}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Pt*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,i=this.chart,s=i.data.labels||[],r=Zr(n._parsed[t],i.options.locale);return{label:s[t]||"",value:r}}getMaxBorderWidth(t){let n=0;const i=this.chart;let s,r,o,a,l;if(!t){for(s=0,r=i.data.datasets.length;s<r;++s)if(i.isDatasetVisible(s)){o=i.getDatasetMeta(s),t=o.data,a=o.controller;break}}if(!t)return 0;for(s=0,r=t.length;s<r;++s)l=a.resolveDataElementOptions(s),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let i=0,s=t.length;i<s;++i){const r=this.resolveDataElementOptions(i);n=Math.max(n,r.offset||0,r.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(n+=this._getRingWeight(i));return n}_getRingWeight(t){return Math.max(nt(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}$(cs,"id","doughnut"),$(cs,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),$(cs,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),$(cs,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data,{labels:{pointStyle:i,textAlign:s,color:r,useBorderRadius:o,borderRadius:a}}=t.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((l,c)=>{const f=t.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:f.backgroundColor,fontColor:r,hidden:!t.getDataVisibility(c),lineDash:f.borderDash,lineDashOffset:f.borderDashOffset,lineJoin:f.borderJoinStyle,lineWidth:f.borderWidth,strokeStyle:f.borderColor,textAlign:s,pointStyle:i,borderRadius:o&&(a||f.borderRadius),index:c}}):[]}},onClick(t,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}});class Aa extends fn{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:i,data:s=[],_dataset:r}=n,o=this.chart._animationsDisabled;let{start:a,count:l}=Dg(n,s,o);this._drawStart=a,this._drawCount=l,Eg(n)&&(a=0,l=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!r._decimated,i.points=s;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:c},t),this.updateElements(s,a,l,t)}updateElements(t,n,i,s){const r=s==="reset",{iScale:o,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:f}=this._getSharedOptions(n,s),h=o.axis,d=a.axis,{spanGaps:g,segment:p}=this.options,m=Us(g)?g:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||r||s==="none",y=n+i,w=t.length;let x=n>0&&this.getParsed(n-1);for(let b=0;b<w;++b){const k=t[b],M=_?k:{};if(b<n||b>=y){M.skip=!0;continue}const P=this.getParsed(b),v=st(P[d]),C=M[h]=o.getPixelForValue(P[h],b),A=M[d]=r||v?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,P,l):P[d],b);M.skip=isNaN(C)||isNaN(A)||v,M.stop=b>0&&Math.abs(P[h]-x[h])>m,p&&(M.parsed=P,M.raw=c.data[b]),f&&(M.options=u||this.resolveDataElementOptions(b,k.active?"active":s)),_||this.updateElement(k,b,M,s),x=P}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,i=n.options&&n.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const r=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,r,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}$(Aa,"id","line"),$(Aa,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),$(Aa,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class qr extends fn{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,i=this.chart,s=i.data.labels||[],r=Zr(n._parsed[t].r,i.options.locale);return{label:s[t]||"",value:r}}parseObjectData(t,n,i,s){return Kg.bind(this)(t,n,i,s)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((i,s)=>{const r=this.getParsed(s).r;!isNaN(r)&&this.chart.getDataVisibility(s)&&(r<n.min&&(n.min=r),r>n.max&&(n.max=r))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,i=t.options,s=Math.min(n.right-n.left,n.bottom-n.top),r=Math.max(s/2,0),o=Math.max(i.cutoutPercentage?r/100*i.cutoutPercentage:1,0),a=(r-o)/t.getVisibleDatasetCount();this.outerRadius=r-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,i,s){const r=s==="reset",o=this.chart,l=o.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,f=c.yCenter,h=c.getIndexAngle(0)-.5*ut;let d=h,g;const p=360/this.countVisibleElements();for(g=0;g<n;++g)d+=this._computeAngle(g,s,p);for(g=n;g<n+i;g++){const m=t[g];let _=d,y=d+this._computeAngle(g,s,p),w=o.getDataVisibility(g)?c.getDistanceFromCenterForValue(this.getParsed(g).r):0;d=y,r&&(l.animateScale&&(w=0),l.animateRotate&&(_=y=h));const x={x:u,y:f,innerRadius:0,outerRadius:w,startAngle:_,endAngle:y,options:this.resolveDataElementOptions(g,m.active?"active":s)};this.updateElement(m,g,x,s)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((i,s)=>{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&n++}),n}_computeAngle(t,n,i){return this.chart.getDataVisibility(t)?un(this.resolveDataElementOptions(t,n).angle||i):0}}$(qr,"id","polarArea"),$(qr,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),$(qr,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:s}}=t.legend.options;return n.labels.map((r,o)=>{const l=t.getDatasetMeta(0).controller.getStyle(o);return{text:r,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:s,lineWidth:l.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class uu extends cs{}$(uu,"id","pie"),$(uu,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class za extends fn{getLabelAndValue(t){const n=this._cachedMeta.vScale,i=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(i[n.axis])}}parseObjectData(t,n,i,s){return Kg.bind(this)(t,n,i,s)}update(t){const n=this._cachedMeta,i=n.dataset,s=n.data||[],r=n.iScale.getLabels();if(i.points=s,t!=="resize"){const o=this.resolveDatasetElementOptions(t);this.options.showLine||(o.borderWidth=0);const a={_loop:!0,_fullLoop:r.length===s.length,options:o};this.updateElement(i,void 0,a,t)}this.updateElements(s,0,s.length,t)}updateElements(t,n,i,s){const r=this._cachedMeta.rScale,o=s==="reset";for(let a=n;a<n+i;a++){const l=t[a],c=this.resolveDataElementOptions(a,l.active?"active":s),u=r.getPointPositionForValue(a,this.getParsed(a).r),f=o?r.xCenter:u.x,h=o?r.yCenter:u.y,d={x:f,y:h,angle:u.angle,skip:isNaN(f)||isNaN(h),options:c};this.updateElement(l,a,d,s)}}}$(za,"id","radar"),$(za,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),$(za,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Da extends fn{getLabelAndValue(t){const n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:r}=n,o=this.getParsed(t),a=s.getLabelForValue(o.x),l=r.getLabelForValue(o.y);return{label:i[t]||"",value:"("+a+", "+l+")"}}update(t){const n=this._cachedMeta,{data:i=[]}=n,s=this.chart._animationsDisabled;let{start:r,count:o}=Dg(n,i,s);if(this._drawStart=r,this._drawCount=o,Eg(n)&&(r=0,o=i.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:a,_dataset:l}=n;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!l._decimated,a.points=i;const c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(a,void 0,{animated:!s,options:c},t)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(i,r,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,i,s){const r=s==="reset",{iScale:o,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(n,s),f=this.getSharedOptions(u),h=this.includeOptions(s,f),d=o.axis,g=a.axis,{spanGaps:p,segment:m}=this.options,_=Us(p)?p:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||r||s==="none";let w=n>0&&this.getParsed(n-1);for(let x=n;x<n+i;++x){const b=t[x],k=this.getParsed(x),M=y?b:{},P=st(k[g]),v=M[d]=o.getPixelForValue(k[d],x),C=M[g]=r||P?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,k,l):k[g],x);M.skip=isNaN(v)||isNaN(C)||P,M.stop=x>0&&Math.abs(k[d]-w[d])>_,m&&(M.parsed=k,M.raw=c.data[x]),h&&(M.options=f||this.resolveDataElementOptions(x,b.active?"active":s)),y||this.updateElement(b,x,M,s),w=k}this.updateSharedOptions(f,s,u)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const i=t.dataset,s=i.options&&i.options.borderWidth||0;if(!n.length)return s;const r=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,r,o)/2}}$(Da,"id","scatter"),$(Da,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),$(Da,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var mP=Object.freeze({__proto__:null,BarController:Pa,BubbleController:Oa,DoughnutController:cs,LineController:Aa,PieController:uu,PolarAreaController:qr,RadarController:za,ScatterController:Da});function us(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class fu{constructor(t){$(this,"options");this.options=t||{}}static override(t){Object.assign(fu.prototype,t)}init(){}formats(){return us()}parse(){return us()}format(){return us()}add(){return us()}diff(){return us()}startOf(){return us()}endOf(){return us()}}var _P={_date:fu};function bP(e,t,n,i){const{controller:s,data:r,_sorted:o}=e,a=s._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(a&&t===a.axis&&t!=="r"&&o&&r.length){const c=a._reversePixels?BM:qn;if(i){if(s._sharedOptions){const u=r[0],f=typeof u.getRange=="function"&&u.getRange(t);if(f){const h=c(r,t,n-f),d=c(r,t,n+f);return{lo:h.lo,hi:d.hi}}}}else{const u=c(r,t,n);if(l){const{vScale:f}=s._cachedMeta,{_parsed:h}=e,d=h.slice(0,u.lo+1).reverse().findIndex(p=>!st(p[f.axis]));u.lo-=Math.max(0,d);const g=h.slice(u.hi).findIndex(p=>!st(p[f.axis]));u.hi+=Math.max(0,g)}return u}}return{lo:0,hi:r.length-1}}function Ea(e,t,n,i,s){const r=e.getSortedVisibleDatasetMetas(),o=n[t];for(let a=0,l=r.length;a<l;++a){const{index:c,data:u}=r[a],{lo:f,hi:h}=bP(r[a],t,o,s);for(let d=f;d<=h;++d){const g=u[d];g.skip||i(g,c,d)}}}function yP(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(i,s){const r=t?Math.abs(i.x-s.x):0,o=n?Math.abs(i.y-s.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}function hu(e,t,n,i,s){const r=[];return!s&&!e.isPointInArea(t)||Ea(e,n,t,function(a,l,c){!s&&!Jn(a,e.chartArea,0)||a.inRange(t.x,t.y,i)&&r.push({element:a,datasetIndex:l,index:c})},!0),r}function xP(e,t,n,i){let s=[];function r(o,a,l){const{startAngle:c,endAngle:u}=o.getProps(["startAngle","endAngle"],i),{angle:f}=Mg(o,{x:t.x,y:t.y});Wr(f,c,u)&&s.push({element:o,datasetIndex:a,index:l})}return Ea(e,n,t,r),s}function vP(e,t,n,i,s,r){let o=[];const a=yP(n);let l=Number.POSITIVE_INFINITY;function c(u,f,h){const d=u.inRange(t.x,t.y,s);if(i&&!d)return;const g=u.getCenterPoint(s);if(!(!!r||e.isPointInArea(g))&&!d)return;const m=a(t,g);m<l?(o=[{element:u,datasetIndex:f,index:h}],l=m):m===l&&o.push({element:u,datasetIndex:f,index:h})}return Ea(e,n,t,c),o}function du(e,t,n,i,s,r){return!r&&!e.isPointInArea(t)?[]:n==="r"&&!i?xP(e,t,n,s):vP(e,t,n,i,s,r)}function ym(e,t,n,i,s){const r=[],o=n==="x"?"inXRange":"inYRange";let a=!1;return Ea(e,n,t,(l,c,u)=>{l[o]&&l[o](t[n],s)&&(r.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(t.x,t.y,s))}),i&&!a?[]:r}var wP={modes:{index(e,t,n,i){const s=as(t,e),r=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?hu(e,s,r,i,o):du(e,s,r,!1,i,o),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,f=c.data[u];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,i){const s=as(t,e),r=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?hu(e,s,r,i,o):du(e,s,r,!1,i,o);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let u=0;u<c.length;++u)a.push({element:c[u],datasetIndex:l,index:u})}return a},point(e,t,n,i){const s=as(t,e),r=n.axis||"xy",o=n.includeInvisible||!1;return hu(e,s,r,i,o)},nearest(e,t,n,i){const s=as(t,e),r=n.axis||"xy",o=n.includeInvisible||!1;return du(e,s,r,n.intersect,i,o)},x(e,t,n,i){const s=as(t,e);return ym(e,s,"x",n.intersect,i)},y(e,t,n,i){const s=as(t,e);return ym(e,s,"y",n.intersect,i)}}};const xm=["left","top","right","bottom"];function Jr(e,t){return e.filter(n=>n.pos===t)}function vm(e,t){return e.filter(n=>xm.indexOf(n.pos)===-1&&n.box.axis===t)}function Gr(e,t){return e.sort((n,i)=>{const s=t?i:n,r=t?n:i;return s.weight===r.weight?s.index-r.index:s.weight-r.weight})}function SP(e){const t=[];let n,i,s,r,o,a;for(n=0,i=(e||[]).length;n<i;++n)s=e[n],{position:r,options:{stack:o,stackWeight:a=1}}=s,t.push({index:n,box:s,pos:r,horizontal:s.isHorizontal(),weight:s.weight,stack:o&&r+o,stackWeight:a});return t}function kP(e){const t={};for(const n of e){const{stack:i,pos:s,stackWeight:r}=n;if(!i||!xm.includes(s))continue;const o=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return t}function TP(e,t){const n=kP(e),{vBoxMaxWidth:i,hBoxMaxHeight:s}=t;let r,o,a;for(r=0,o=e.length;r<o;++r){a=e[r];const{fullSize:l}=a.box,c=n[a.stack],u=c&&a.stackWeight/c.weight;a.horizontal?(a.width=u?u*i:l&&t.availableWidth,a.height=s):(a.width=i,a.height=u?u*s:l&&t.availableHeight)}return n}function MP(e){const t=SP(e),n=Gr(t.filter(c=>c.box.fullSize),!0),i=Gr(Jr(t,"left"),!0),s=Gr(Jr(t,"right")),r=Gr(Jr(t,"top"),!0),o=Gr(Jr(t,"bottom")),a=vm(t,"x"),l=vm(t,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:s.concat(l).concat(o).concat(a),chartArea:Jr(t,"chartArea"),vertical:i.concat(s).concat(l),horizontal:r.concat(o).concat(a)}}function wm(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function Sm(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function CP(e,t,n,i){const{pos:s,box:r}=n,o=e.maxPadding;if(!rt(s)){n.size&&(e[s]-=n.size);const f=i[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?r.height:r.width),n.size=f.size/f.count,e[s]+=n.size}r.getPadding&&Sm(o,r.getPadding());const a=Math.max(0,t.outerWidth-wm(o,e,"left","right")),l=Math.max(0,t.outerHeight-wm(o,e,"top","bottom")),c=a!==e.w,u=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function PP(e){const t=e.maxPadding;function n(i){const s=Math.max(t[i]-e[i],0);return e[i]+=s,s}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function OP(e,t){const n=t.maxPadding;function i(s){const r={left:0,top:0,right:0,bottom:0};return s.forEach(o=>{r[o]=Math.max(t[o],n[o])}),r}return i(e?["left","right"]:["top","bottom"])}function Qr(e,t,n,i){const s=[];let r,o,a,l,c,u;for(r=0,o=e.length,c=0;r<o;++r){a=e[r],l=a.box,l.update(a.width||t.w,a.height||t.h,OP(a.horizontal,t));const{same:f,other:h}=CP(t,n,a,i);c|=f&&s.length,u=u||h,l.fullSize||s.push(a)}return c&&Qr(s,t,n,i)||u}function Ia(e,t,n,i,s){e.top=n,e.left=t,e.right=t+i,e.bottom=n+s,e.width=i,e.height=s}function km(e,t,n,i){const s=n.padding;let{x:r,y:o}=t;for(const a of e){const l=a.box,c=i[a.stack]||{placed:0,weight:1},u=a.stackWeight/c.weight||1;if(a.horizontal){const f=t.w*u,h=c.size||l.height;jr(c.start)&&(o=c.start),l.fullSize?Ia(l,s.left,o,n.outerWidth-s.right-s.left,h):Ia(l,t.left+c.placed,o,f,h),c.start=o,c.placed+=f,o=l.bottom}else{const f=t.h*u,h=c.size||l.width;jr(c.start)&&(r=c.start),l.fullSize?Ia(l,r,s.top,h,n.outerHeight-s.bottom-s.top):Ia(l,r,t.top+c.placed,h,f),c.start=r,c.placed+=f,r=l.right}}t.x=r,t.y=o}var ge={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,i){if(!e)return;const s=pe(e.options.layout.padding),r=Math.max(t-s.width,0),o=Math.max(n-s.height,0),a=MP(e.boxes),l=a.vertical,c=a.horizontal;gt(e.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});const u=l.reduce((p,m)=>m.box.options&&m.box.options.display===!1?p:p+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:s,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/u,hBoxMaxHeight:o/2}),h=Object.assign({},s);Sm(h,pe(i));const d=Object.assign({maxPadding:h,w:r,h:o,x:s.left,y:s.top},s),g=TP(l.concat(c),f);Qr(a.fullSize,d,f,g),Qr(l,d,f,g),Qr(c,d,f,g)&&Qr(l,d,f,g),PP(d),km(a.leftAndTop,d,f,g),d.x+=d.w,d.y+=d.h,km(a.rightAndBottom,d,f,g),e.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h,height:d.h,width:d.w},gt(a.chartArea,p=>{const m=p.box;Object.assign(m,e.chartArea),m.update(d.w,d.h,{left:0,top:0,right:0,bottom:0})})}};class Tm{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,i){}removeEventListener(t,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,i,s){return n=Math.max(0,n||t.width),i=i||t.height,{width:n,height:Math.max(0,s?Math.floor(n/s):i)}}isAttached(t){return!0}updateConfig(t){}}class AP extends Tm{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ra="$chartjs",zP={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Mm=e=>e===null||e==="";function DP(e,t){const n=e.style,i=e.getAttribute("height"),s=e.getAttribute("width");if(e[Ra]={initial:{height:i,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Mm(s)){const r=Jg(e,"width");r!==void 0&&(e.width=r)}if(Mm(i))if(e.style.height==="")e.height=e.width/(t||2);else{const r=Jg(e,"height");r!==void 0&&(e.height=r)}return e}const Cm=EC?{passive:!0}:!1;function EP(e,t,n){e&&e.addEventListener(t,n,Cm)}function IP(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,Cm)}function RP(e,t){const n=zP[e.type]||e.type,{x:i,y:s}=as(e,t);return{type:n,chart:t,native:e,x:i!==void 0?i:null,y:s!==void 0?s:null}}function La(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function LP(e,t,n){const i=e.canvas,s=new MutationObserver(r=>{let o=!1;for(const a of r)o=o||La(a.addedNodes,i),o=o&&!La(a.removedNodes,i);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function FP(e,t,n){const i=e.canvas,s=new MutationObserver(r=>{let o=!1;for(const a of r)o=o||La(a.removedNodes,i),o=o&&!La(a.addedNodes,i);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const to=new Map;let Pm=0;function Om(){const e=window.devicePixelRatio;e!==Pm&&(Pm=e,to.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function $P(e,t){to.size||window.addEventListener("resize",Om),to.set(e,t)}function NP(e){to.delete(e),to.size||window.removeEventListener("resize",Om)}function BP(e,t,n){const i=e.canvas,s=i&&ru(i);if(!s)return;const r=zg((a,l)=>{const c=s.clientWidth;n(a,l),c<s.clientWidth&&n()},window),o=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||r(c,u)});return o.observe(s),$P(e,r),o}function pu(e,t,n){n&&n.disconnect(),t==="resize"&&NP(e)}function jP(e,t,n){const i=e.canvas,s=zg(r=>{e.ctx!==null&&n(RP(r,e))},e);return EP(i,t,s),s}class VP extends Tm{acquireContext(t,n){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(DP(t,n),i):null}releaseContext(t){const n=t.canvas;if(!n[Ra])return!1;const i=n[Ra].initial;["height","width"].forEach(r=>{const o=i[r];st(o)?n.removeAttribute(r):n.setAttribute(r,o)});const s=i.style||{};return Object.keys(s).forEach(r=>{n.style[r]=s[r]}),n.width=n.width,delete n[Ra],!0}addEventListener(t,n,i){this.removeEventListener(t,n);const s=t.$proxies||(t.$proxies={}),o={attach:LP,detach:FP,resize:BP}[n]||jP;s[n]=o(t,n,i)}removeEventListener(t,n){const i=t.$proxies||(t.$proxies={}),s=i[n];if(!s)return;({attach:pu,detach:pu,resize:pu}[n]||IP)(t,n,s),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,i,s){return DC(t,n,i,s)}isAttached(t){const n=t&&ru(t);return!!(n&&n.isConnected)}}function WP(e){return!su()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?AP:VP}let Qn=(qa=class{constructor(){$(this,"x");$(this,"y");$(this,"active",!1);$(this,"options");$(this,"$animations")}tooltipPosition(t){const{x:n,y:i}=this.getProps(["x","y"],t);return{x:n,y:i}}hasValue(){return Us(this.x)&&Us(this.y)}getProps(t,n){const i=this.$animations;if(!n||!i)return this;const s={};return t.forEach(r=>{s[r]=i[r]&&i[r].active()?i[r]._to:this[r]}),s}},$(qa,"defaults",{}),$(qa,"defaultRoutes"),qa);function HP(e,t){const n=e.options.ticks,i=ZP(e),s=Math.min(n.maxTicksLimit||i,i),r=n.major.enabled?YP(t):[],o=r.length,a=r[0],l=r[o-1],c=[];if(o>s)return KP(t,c,r,o/s),c;const u=UP(r,t,s);if(o>0){let f,h;const d=o>1?Math.round((l-a)/(o-1)):null;for(Fa(t,c,u,st(d)?0:a-d,a),f=0,h=o-1;f<h;f++)Fa(t,c,u,r[f],r[f+1]);return Fa(t,c,u,l,st(d)?t.length:l+d),c}return Fa(t,c,u),c}function ZP(e){const t=e.options.offset,n=e._tickSize(),i=e._length/n+(t?0:1),s=e._maxLength/n;return Math.floor(Math.min(i,s))}function UP(e,t,n){const i=XP(e),s=t.length/n;if(!i)return Math.max(s,1);const r=RM(i);for(let o=0,a=r.length-1;o<a;o++){const l=r[o];if(l>s)return l}return Math.max(s,1)}function YP(e){const t=[];let n,i;for(n=0,i=e.length;n<i;n++)e[n].major&&t.push(n);return t}function KP(e,t,n,i){let s=0,r=n[0],o;for(i=Math.ceil(i),o=0;o<e.length;o++)o===r&&(t.push(e[o]),s++,r=n[s*i])}function Fa(e,t,n,i,s){const r=nt(i,0),o=Math.min(nt(s,e.length),e.length);let a=0,l,c,u;for(n=Math.ceil(n),s&&(l=s-i,n=l/Math.floor(l/n)),u=r;u<0;)a++,u=Math.round(r+a*n);for(c=Math.max(r,0);c<o;c++)c===u&&(t.push(e[c]),a++,u=Math.round(r+a*n))}function XP(e){const t=e.length;let n,i;if(t<2)return!1;for(i=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==i)return!1;return i}const qP=e=>e==="left"?"right":e==="right"?"left":e,Am=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,zm=(e,t)=>Math.min(t||e,e);function Dm(e,t){const n=[],i=e.length/t,s=e.length;let r=0;for(;r<s;r+=i)n.push(e[Math.floor(r)]);return n}function JP(e,t,n){const i=e.ticks.length,s=Math.min(t,i-1),r=e._startPixel,o=e._endPixel,a=1e-6;let l=e.getPixelForTick(s),c;if(!(n&&(i===1?c=Math.max(l-r,o-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(s-1))/2,l+=s<t?c:-c,l<r-a||l>o+a)))return l}function GP(e,t){gt(e,n=>{const i=n.gc,s=i.length/2;let r;if(s>t){for(r=0;r<s;++r)delete n.data[i[r]];i.splice(0,s)}})}function eo(e){return e.drawTicks?e.tickLength:0}function Em(e,t){if(!e.display)return 0;const n=Kt(e.font,t),i=pe(e.padding);return(Dt(e.text)?e.text.length:1)*n.lineHeight+i.height}function QP(e,t){return Pi(e,{scale:t,type:"scale"})}function tO(e,t,n){return Pi(e,{tick:n,index:t,type:"tick"})}function eO(e,t,n){let i=Kc(e);return(n&&t!=="right"||!n&&t==="right")&&(i=qP(i)),i}function nO(e,t,n,i){const{top:s,left:r,bottom:o,right:a,chart:l}=e,{chartArea:c,scales:u}=l;let f=0,h,d,g;const p=o-s,m=a-r;if(e.isHorizontal()){if(d=de(i,r,a),rt(n)){const _=Object.keys(n)[0],y=n[_];g=u[_].getPixelForValue(y)+p-t}else n==="center"?g=(c.bottom+c.top)/2+p-t:g=Am(e,n,t);h=a-r}else{if(rt(n)){const _=Object.keys(n)[0],y=n[_];d=u[_].getPixelForValue(y)-m+t}else n==="center"?d=(c.left+c.right)/2-m+t:d=Am(e,n,t);g=de(i,o,s),f=n==="left"?-Ht:Ht}return{titleX:d,titleY:g,maxWidth:h,rotation:f}}class fs extends Qn{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:i,_suggestedMax:s}=this;return t=Ue(t,Number.POSITIVE_INFINITY),n=Ue(n,Number.NEGATIVE_INFINITY),i=Ue(i,Number.POSITIVE_INFINITY),s=Ue(s,Number.NEGATIVE_INFINITY),{min:Ue(t,i),max:Ue(n,s),minDefined:jt(t),maxDefined:jt(n)}}getMinMax(t){let{min:n,max:i,minDefined:s,maxDefined:r}=this.getUserBounds(),o;if(s&&r)return{min:n,max:i};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)o=a[l].controller.getMinMax(this,t),s||(n=Math.min(n,o.min)),r||(i=Math.max(i,o.max));return n=r&&n>i?i:n,i=s&&n>i?n:i,{min:Ue(n,Ue(i,n)),max:Ue(i,Ue(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Tt(this.options.beforeUpdate,[this])}update(t,n,i){const{beginAtZero:s,grace:r,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=uC(this,r,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?Dm(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=HP(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,i;this.isHorizontal()?(n=this.left,i=this.right):(n=this.top,i=this.bottom,t=!t),this._startPixel=n,this._endPixel=i,this._reversePixels=t,this._length=i-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Tt(this.options.afterUpdate,[this])}beforeSetDimensions(){Tt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Tt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Tt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Tt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let i,s,r;for(i=0,s=t.length;i<s;i++)r=t[i],r.label=Tt(n.callback,[r.value,i,t],this)}afterTickToLabelConversion(){Tt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Tt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,i=zm(this.ticks.length,t.ticks.maxTicksLimit),s=n.minRotation||0,r=n.maxRotation;let o=s,a,l,c;if(!this._isVisible()||!n.display||s>=r||i<=1||!this.isHorizontal()){this.labelRotation=s;return}const u=this._getLabelSizes(),f=u.widest.width,h=u.highest.height,d=Gt(this.chart.width-f,0,this.maxWidth);a=t.offset?this.maxWidth/i:d/(i-1),f+6>a&&(a=d/(i-(t.offset?.5:1)),l=this.maxHeight-eo(t.grid)-n.padding-Em(t.title,this.chart.options.font),c=Math.sqrt(f*f+h*h),o=Zc(Math.min(Math.asin(Gt((u.highest.height+6)/a,-1,1)),Math.asin(Gt(l/c,-1,1))-Math.asin(Gt(h/c,-1,1)))),o=Math.max(s,Math.min(r,o))),this.labelRotation=o}afterCalculateLabelRotation(){Tt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Tt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:i,title:s,grid:r}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const l=Em(s,n.options.font);if(a?(t.width=this.maxWidth,t.height=eo(r)+l):(t.height=this.maxHeight,t.width=eo(r)+l),i.display&&this.ticks.length){const{first:c,last:u,widest:f,highest:h}=this._getLabelSizes(),d=i.padding*2,g=un(this.labelRotation),p=Math.cos(g),m=Math.sin(g);if(a){const _=i.mirror?0:m*f.width+p*h.height;t.height=Math.min(this.maxHeight,t.height+_+d)}else{const _=i.mirror?0:p*f.width+m*h.height;t.width=Math.min(this.maxWidth,t.width+_+d)}this._calculatePadding(c,u,m,p)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,i,s){const{ticks:{align:r,padding:o},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,d=0;l?c?(h=s*t.width,d=i*n.height):(h=i*t.height,d=s*n.width):r==="start"?d=n.width:r==="end"?h=t.width:r!=="inner"&&(h=t.width/2,d=n.width/2),this.paddingLeft=Math.max((h-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((d-f+o)*this.width/(this.width-f),0)}else{let u=n.height/2,f=t.height/2;r==="start"?(u=0,f=t.height):r==="end"&&(u=n.height,f=0),this.paddingTop=u+o,this.paddingBottom=f+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Tt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,i;for(n=0,i=t.length;n<i;n++)st(t[n].label)&&(t.splice(n,1),i--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let i=this.ticks;n<i.length&&(i=Dm(i,n)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,i){const{ctx:s,_longestTextCache:r}=this,o=[],a=[],l=Math.floor(n/zm(n,i));let c=0,u=0,f,h,d,g,p,m,_,y,w,x,b;for(f=0;f<n;f+=l){if(g=t[f].label,p=this._resolveTickFontOptions(f),s.font=m=p.string,_=r[m]=r[m]||{data:{},gc:[]},y=p.lineHeight,w=x=0,!st(g)&&!Dt(g))w=va(s,_.data,_.gc,w,g),x=y;else if(Dt(g))for(h=0,d=g.length;h<d;++h)b=g[h],!st(b)&&!Dt(b)&&(w=va(s,_.data,_.gc,w,b),x+=y);o.push(w),a.push(x),c=Math.max(w,c),u=Math.max(x,u)}GP(r,n);const k=o.indexOf(c),M=a.indexOf(u),P=v=>({width:o[v]||0,height:a[v]||0});return{first:P(0),last:P(n-1),widest:P(k),highest:P(M),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return NM(this._alignToPixels?is(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const i=n[t];return i.$context||(i.$context=tO(this.getContext(),t,i))}return this.$context||(this.$context=QP(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=un(this.labelRotation),i=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),r=this._getLabelSizes(),o=t.autoSkipPadding||0,a=r?r.widest.width+o:0,l=r?r.highest.height+o:0;return this.isHorizontal()?l*i>a*s?a/i:l/s:l*s<a*i?l/i:a/s}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,i=this.chart,s=this.options,{grid:r,position:o,border:a}=s,l=r.offset,c=this.isHorizontal(),f=this.ticks.length+(l?1:0),h=eo(r),d=[],g=a.setContext(this.getContext()),p=g.display?g.width:0,m=p/2,_=function(H){return is(i,H,p)};let y,w,x,b,k,M,P,v,C,A,O,j;if(o==="top")y=_(this.bottom),M=this.bottom-h,v=y-m,A=_(t.top)+m,j=t.bottom;else if(o==="bottom")y=_(this.top),A=t.top,j=_(t.bottom)-m,M=y+m,v=this.top+h;else if(o==="left")y=_(this.right),k=this.right-h,P=y-m,C=_(t.left)+m,O=t.right;else if(o==="right")y=_(this.left),C=t.left,O=_(t.right)-m,k=y+m,P=this.left+h;else if(n==="x"){if(o==="center")y=_((t.top+t.bottom)/2+.5);else if(rt(o)){const H=Object.keys(o)[0],Z=o[H];y=_(this.chart.scales[H].getPixelForValue(Z))}A=t.top,j=t.bottom,M=y+m,v=M+h}else if(n==="y"){if(o==="center")y=_((t.left+t.right)/2);else if(rt(o)){const H=Object.keys(o)[0],Z=o[H];y=_(this.chart.scales[H].getPixelForValue(Z))}k=y-m,P=k-h,C=t.left,O=t.right}const K=nt(s.ticks.maxTicksLimit,f),U=Math.max(1,Math.ceil(f/K));for(w=0;w<f;w+=U){const H=this.getContext(w),Z=r.setContext(H),J=a.setContext(H),mt=Z.lineWidth,ie=Z.color,Qt=J.dash||[],Ot=J.dashOffset,hn=Z.tickWidth,Xt=Z.tickColor,ke=Z.tickBorderDash||[],Ye=Z.tickBorderDashOffset;x=JP(this,w,l),x!==void 0&&(b=is(i,x,mt),c?k=P=C=O=b:M=v=A=j=b,d.push({tx1:k,ty1:M,tx2:P,ty2:v,x1:C,y1:A,x2:O,y2:j,width:mt,color:ie,borderDash:Qt,borderDashOffset:Ot,tickWidth:hn,tickColor:Xt,tickBorderDash:ke,tickBorderDashOffset:Ye}))}return this._ticksLength=f,this._borderValue=y,d}_computeLabelItems(t){const n=this.axis,i=this.options,{position:s,ticks:r}=i,o=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:f}=r,h=eo(i.grid),d=h+u,g=f?-u:d,p=-un(this.labelRotation),m=[];let _,y,w,x,b,k,M,P,v,C,A,O,j="middle";if(s==="top")k=this.bottom-g,M=this._getXAxisLabelAlignment();else if(s==="bottom")k=this.top+g,M=this._getXAxisLabelAlignment();else if(s==="left"){const U=this._getYAxisLabelAlignment(h);M=U.textAlign,b=U.x}else if(s==="right"){const U=this._getYAxisLabelAlignment(h);M=U.textAlign,b=U.x}else if(n==="x"){if(s==="center")k=(t.top+t.bottom)/2+d;else if(rt(s)){const U=Object.keys(s)[0],H=s[U];k=this.chart.scales[U].getPixelForValue(H)+d}M=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")b=(t.left+t.right)/2-d;else if(rt(s)){const U=Object.keys(s)[0],H=s[U];b=this.chart.scales[U].getPixelForValue(H)}M=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?j="top":l==="end"&&(j="bottom"));const K=this._getLabelSizes();for(_=0,y=a.length;_<y;++_){w=a[_],x=w.label;const U=r.setContext(this.getContext(_));P=this.getPixelForTick(_)+r.labelOffset,v=this._resolveTickFontOptions(_),C=v.lineHeight,A=Dt(x)?x.length:1;const H=A/2,Z=U.color,J=U.textStrokeColor,mt=U.textStrokeWidth;let ie=M;o?(b=P,M==="inner"&&(_===y-1?ie=this.options.reverse?"left":"right":_===0?ie=this.options.reverse?"right":"left":ie="center"),s==="top"?c==="near"||p!==0?O=-A*C+C/2:c==="center"?O=-K.highest.height/2-H*C+C:O=-K.highest.height+C/2:c==="near"||p!==0?O=C/2:c==="center"?O=K.highest.height/2-H*C:O=K.highest.height-A*C,f&&(O*=-1),p!==0&&!U.showLabelBackdrop&&(b+=C/2*Math.sin(p))):(k=P,O=(1-A)*C/2);let Qt;if(U.showLabelBackdrop){const Ot=pe(U.backdropPadding),hn=K.heights[_],Xt=K.widths[_];let ke=O-Ot.top,Ye=0-Ot.left;switch(j){case"middle":ke-=hn/2;break;case"bottom":ke-=hn;break}switch(M){case"center":Ye-=Xt/2;break;case"right":Ye-=Xt;break;case"inner":_===y-1?Ye-=Xt:_>0&&(Ye-=Xt/2);break}Qt={left:Ye,top:ke,width:Xt+Ot.width,height:hn+Ot.height,color:U.backdropColor}}m.push({label:x,font:v,textOffset:O,options:{rotation:p,color:Z,strokeColor:J,strokeWidth:mt,textAlign:ie,textBaseline:j,translation:[b,k],backdrop:Qt}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-un(this.labelRotation))return t==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:i,mirror:s,padding:r}}=this.options,o=this._getLabelSizes(),a=t+r,l=o.widest.width;let c,u;return n==="left"?s?(u=this.right+r,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?s?(u=this.left+r,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:i,top:s,width:r,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(i,s,r,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(r=>r.value===t);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(t){const n=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,o;const a=(l,c,u)=>{!u.width||!u.color||(i.save(),i.lineWidth=u.width,i.strokeStyle=u.color,i.setLineDash(u.borderDash||[]),i.lineDashOffset=u.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(n.display)for(r=0,o=s.length;r<o;++r){const l=s[r];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:i,grid:s}}=this,r=i.setContext(this.getContext()),o=i.display?r.width:0;if(!o)return;const a=s.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,f,h;this.isHorizontal()?(c=is(t,this.left,o)-o/2,u=is(t,this.right,a)+a/2,f=h=l):(f=is(t,this.top,o)-o/2,h=is(t,this.bottom,a)+a/2,c=u=l),n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.beginPath(),n.moveTo(c,f),n.lineTo(u,h),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const i=this.ctx,s=this._computeLabelArea();s&&wa(i,s);const r=this.getLabelItems(t);for(const o of r){const a=o.options,l=o.font,c=o.label,u=o.textOffset;ss(i,c,0,u,l,a)}s&&Sa(i)}drawTitle(){const{ctx:t,options:{position:n,title:i,reverse:s}}=this;if(!i.display)return;const r=Kt(i.font),o=pe(i.padding),a=i.align;let l=r.lineHeight/2;n==="bottom"||n==="center"||rt(n)?(l+=o.bottom,Dt(i.text)&&(l+=r.lineHeight*(i.text.length-1))):l+=o.top;const{titleX:c,titleY:u,maxWidth:f,rotation:h}=nO(this,l,n,a);ss(t,i.text,0,0,r,{color:i.color,maxWidth:f,rotation:h,textAlign:eO(a,n,s),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,i=nt(t.grid&&t.grid.z,-1),s=nt(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==fs.prototype.draw?[{z:n,draw:r=>{this.draw(r)}}]:[{z:i,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let r,o;for(r=0,o=n.length;r<o;++r){const a=n[r];a[i]===this.id&&(!t||a.type===t)&&s.push(a)}return s}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return Kt(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class $a{constructor(t,n,i){this.type=t,this.scope=n,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let i;rO(n)&&(i=this.register(n));const s=this.items,r=t.id,o=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in s||(s[r]=t,iO(t,o,i),this.override&&Et.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const n=this.items,i=t.id,s=this.scope;i in n&&delete n[i],s&&i in Et[s]&&(delete Et[s][i],this.override&&delete ns[i])}}function iO(e,t,n){const i=Nr(Object.create(null),[n?Et.get(n):{},Et.get(t),e.defaults]);Et.set(t,i),e.defaultRoutes&&sO(t,e.defaultRoutes),e.descriptors&&Et.describe(t,e.descriptors)}function sO(e,t){Object.keys(t).forEach(n=>{const i=n.split("."),s=i.pop(),r=[e].concat(i).join("."),o=t[n].split("."),a=o.pop(),l=o.join(".");Et.route(r,s,l,a)})}function rO(e){return"id"in e&&"defaults"in e}class oO{constructor(){this.controllers=new $a(fn,"datasets",!0),this.elements=new $a(Qn,"elements"),this.plugins=new $a(Object,"plugins"),this.scales=new $a(fs,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,i){[...n].forEach(s=>{const r=i||this._getRegistryForType(s);i||r.isForType(s)||r===this.plugins&&s.id?this._exec(t,r,s):gt(s,o=>{const a=i||this._getRegistryForType(o);this._exec(t,a,o)})})}_exec(t,n,i){const s=Hc(t);Tt(i["before"+s],[],i),n[t](i),Tt(i["after"+s],[],i)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const i=this._typedRegistries[n];if(i.isForType(t))return i}return this.plugins}_get(t,n,i){const s=n.get(t);if(s===void 0)throw new Error('"'+t+'" is not a registered '+i+".");return s}}var Pn=new oO;class aO{constructor(){this._init=void 0}notify(t,n,i,s){if(n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),this._init===void 0)return;const r=s?this._descriptors(t).filter(s):this._descriptors(t),o=this._notify(r,t,n,i);return n==="afterDestroy"&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),o}_notify(t,n,i,s){s=s||{};for(const r of t){const o=r.plugin,a=o[i],l=[n,s,r.options];if(Tt(a,l,o)===!1&&s.cancelable)return!1}return!0}invalidate(){st(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const i=t&&t.config,s=nt(i.options&&i.options.plugins,{}),r=lO(i);return s===!1&&!n?[]:uO(t,r,s,n)}_notifyStateChanges(t){const n=this._oldCache||[],i=this._cache,s=(r,o)=>r.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(s(n,i),t,"stop"),this._notify(s(i,n),t,"start")}}function lO(e){const t={},n=[],i=Object.keys(Pn.plugins.items);for(let r=0;r<i.length;r++)n.push(Pn.getPlugin(i[r]));const s=e.plugins||[];for(let r=0;r<s.length;r++){const o=s[r];n.indexOf(o)===-1&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}function cO(e,t){return!t&&e===!1?null:e===!0?{}:e}function uO(e,{plugins:t,localIds:n},i,s){const r=[],o=e.getContext();for(const a of t){const l=a.id,c=cO(i[l],s);c!==null&&r.push({plugin:a,options:fO(e.config,{plugin:a,local:n[l]},c,o)})}return r}function fO(e,{plugin:t,local:n},i,s){const r=e.pluginScopeKeys(t),o=e.getOptionScopes(i,r);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function gu(e,t){const n=Et.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function hO(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function dO(e,t){return e===t?"_index_":"_value_"}function Im(e){if(e==="x"||e==="y"||e==="r")return e}function pO(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function mu(e,...t){if(Im(e))return e;for(const n of t){const i=n.axis||pO(n.position)||e.length>1&&Im(e[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Rm(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function gO(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(i=>i.xAxisID===e||i.yAxisID===e);if(n.length)return Rm(e,"x",n[0])||Rm(e,"y",n[0])}return{}}function mO(e,t){const n=ns[e.type]||{scales:{}},i=t.scales||{},s=gu(e.type,t),r=Object.create(null);return Object.keys(i).forEach(o=>{const a=i[o];if(!rt(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=mu(o,a,gO(o,e),Et.scales[a.type]),c=dO(l,s),u=n.scales||{};r[o]=Br(Object.create(null),[{axis:l},a,u[l],u[c]])}),e.data.datasets.forEach(o=>{const a=o.type||e.type,l=o.indexAxis||gu(a,t),u=(ns[a]||{}).scales||{};Object.keys(u).forEach(f=>{const h=hO(f,l),d=o[h+"AxisID"]||h;r[d]=r[d]||Object.create(null),Br(r[d],[{axis:h},i[d],u[f]])})}),Object.keys(r).forEach(o=>{const a=r[o];Br(a,[Et.scales[a.type],Et.scale])}),r}function Lm(e){const t=e.options||(e.options={});t.plugins=nt(t.plugins,{}),t.scales=mO(e,t)}function Fm(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function _O(e){return e=e||{},e.data=Fm(e.data),Lm(e),e}const $m=new Map,Nm=new Set;function Na(e,t){let n=$m.get(e);return n||(n=t(),$m.set(e,n),Nm.add(n)),n}const no=(e,t,n)=>{const i=Ti(t,n);i!==void 0&&e.add(i)};class bO{constructor(t){this._config=_O(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Fm(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Lm(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Na(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Na(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Na(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,i=this.type;return Na(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const i=this._scopeCache;let s=i.get(t);return(!s||n)&&(s=new Map,i.set(t,s)),s}getOptionScopes(t,n,i){const{options:s,type:r}=this,o=this._cachedScopes(t,i),a=o.get(n);if(a)return a;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(f=>no(l,t,f))),u.forEach(f=>no(l,s,f)),u.forEach(f=>no(l,ns[r]||{},f)),u.forEach(f=>no(l,Et,f)),u.forEach(f=>no(l,Jc,f))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Nm.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,ns[n]||{},Et.datasets[n]||{},{type:n},Et,Jc]}resolveNamedOptions(t,n,i,s=[""]){const r={$shared:!0},{resolver:o,subPrefixes:a}=Bm(this._resolverCache,t,s);let l=o;if(xO(o,n)){r.$shared=!1,i=Mi(i)?i():i;const c=this.createResolver(t,i,a);l=Ys(o,i,c)}for(const c of n)r[c]=l[c];return r}createResolver(t,n,i=[""],s){const{resolver:r}=Bm(this._resolverCache,t,i);return rt(n)?Ys(r,n,void 0,s):r}}function Bm(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const s=n.join();let r=i.get(s);return r||(r={resolver:eu(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},i.set(s,r)),r}const yO=e=>rt(e)&&Object.getOwnPropertyNames(e).some(t=>Mi(e[t]));function xO(e,t){const{isScriptable:n,isIndexable:i}=Vg(e);for(const s of t){const r=n(s),o=i(s),a=(o||r)&&e[s];if(r&&(Mi(a)||yO(a))||o&&Dt(a))return!0}return!1}var vO="4.5.1";const wO=["top","bottom","left","right","chartArea"];function jm(e,t){return e==="top"||e==="bottom"||wO.indexOf(e)===-1&&t==="x"}function Vm(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function Wm(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Tt(n&&n.onComplete,[e],t)}function SO(e){const t=e.chart,n=t.options.animation;Tt(n&&n.onProgress,[e],t)}function Hm(e){return su()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Ba={},Zm=e=>{const t=Hm(e);return Object.values(Ba).filter(n=>n.canvas===t).pop()};function kO(e,t,n){const i=Object.keys(e);for(const s of i){const r=+s;if(r>=t){const o=e[s];delete e[s],(n>0||r>t)&&(e[r+n]=o)}}}function TO(e,t,n,i){return!n||e.type==="mouseout"?null:i?t:e}class ti{static register(...t){Pn.add(...t),Um()}static unregister(...t){Pn.remove(...t),Um()}constructor(t,n){const i=this.config=new bO(n),s=Hm(t),r=Zm(s);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||WP(s)),this.platform.updateConfig(i);const a=this.platform.acquireContext(s,o.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=MM(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new aO,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=WM(f=>this.update(f),o.resizeDelay||0),this._dataChanges=[],Ba[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Gn.listen(this,"complete",Wm),Gn.listen(this,"progress",SO),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:i,height:s,_aspectRatio:r}=this;return st(t)?n&&r?r:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Pn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():qg(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ng(this.canvas,this.ctx),this}stop(){return Gn.stop(this),this}resize(t,n){Gn.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const i=this.options,s=this.canvas,r=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,t,n,r),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,qg(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),Tt(i.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};gt(n,(i,s)=>{i.id=s})}buildOrUpdateScales(){const t=this.options,n=t.scales,i=this.scales,s=Object.keys(i).reduce((o,a)=>(o[a]=!1,o),{});let r=[];n&&(r=r.concat(Object.keys(n).map(o=>{const a=n[o],l=mu(o,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),gt(r,o=>{const a=o.options,l=a.id,c=mu(l,a),u=nt(a.type,o.dtype);(a.position===void 0||jm(a.position,c)!==jm(o.dposition))&&(a.position=o.dposition),s[l]=!0;let f=null;if(l in i&&i[l].type===u)f=i[l];else{const h=Pn.getScale(u);f=new h({id:l,type:u,ctx:this.ctx,chart:this}),i[f.id]=f}f.init(a,t)}),gt(s,(o,a)=>{o||delete i[a]}),gt(i,o=>{ge.configure(this,o,o.options),ge.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,i=t.length;if(t.sort((s,r)=>s.index-r.index),i>n){for(let s=n;s<i;++s)this._destroyDatasetMeta(s);t.splice(n,i-n)}this._sortedMetasets=t.slice(0).sort(Vm("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((i,s)=>{n.filter(r=>r===i._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=n.length;i<s;i++){const r=n[i];let o=this.getDatasetMeta(i);const a=r.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(i),o=this.getDatasetMeta(i)),o.type=a,o.indexAxis=r.indexAxis||gu(a,this.options),o.order=r.order||0,o.index=i,o.label=""+r.label,o.visible=this.isDatasetVisible(i),o.controller)o.controller.updateIndex(i),o.controller.linkScales();else{const l=Pn.getController(a),{datasetElementType:c,dataElementType:u}=Et.datasets[a];Object.assign(l,{dataElementType:Pn.getElement(u),datasetElementType:c&&Pn.getElement(c)}),o.controller=new l(this,i),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){gt(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:f}=this.getDatasetMeta(c),h=!s&&r.indexOf(f)===-1;f.buildOrUpdateElements(h),o=Math.max(+f.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),s||gt(r,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Vm("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){gt(this.scales,t=>{ge.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!vg(n,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:r}of n){const o=i==="_removeElements"?-r:r;kO(t,s,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=r=>new Set(t.filter(o=>o[0]===r).map((o,a)=>a+","+o.splice(1).join(","))),s=i(0);for(let r=1;r<n;r++)if(!vg(s,i(r)))return;return Array.from(s).map(r=>r.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;ge.update(this,this.width,this.height,t);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],gt(this.boxes,s=>{i&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,r)=>{s._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n<i;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,i=this.data.datasets.length;n<i;++n)this._updateDataset(n,Mi(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(i.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Gn.has(this)?this.attached&&!Gn.running(this)&&Gn.start(this):(this.draw(),Wm({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:i,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(i,s)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,i=[];let s,r;for(s=0,r=n.length;s<r;++s){const o=n[s];(!t||o.visible)&&i.push(o)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,i={meta:t,index:t.index,cancelable:!0},s=om(this,t);this.notifyPlugins("beforeDatasetDraw",i)!==!1&&(s&&wa(n,s),t.controller.draw(),s&&Sa(n),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return Jn(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,i,s){const r=wP.modes[n];return typeof r=="function"?r(this,t,i,s):[]}getDatasetMeta(t){const n=this.data.datasets[t],i=this._metasets;let s=i.filter(r=>r&&r._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=Pi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(t,n){const i=this.getDatasetMeta(t);i.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,i){const s=i?"show":"hide",r=this.getDatasetMeta(t),o=r.controller._resolveAnimations(void 0,s);jr(n)?(r.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(r,{visible:i}),this.update(a=>a.datasetIndex===t?s:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Gn.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Ng(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Ba[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,i=(r,o)=>{n.addEventListener(this,r,o),t[r]=o},s=(r,o,a)=>{r.offsetX=o,r.offsetY=a,this._eventHandler(r)};gt(this.options.events,r=>i(r,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,i=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},s=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},r=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",r),i("detach",o)};o=()=>{this.attached=!1,s("resize",r),this._stop(),this._resize(0,0),i("attach",a)},n.isAttached(this.canvas)?a():o()}unbindEvents(){gt(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},gt(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,i){const s=i?"set":"remove";let r,o,a,l;for(n==="dataset"&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+s+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){o=t[a];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],i=t.map(({datasetIndex:r,index:o})=>{const a=this.getDatasetMeta(r);if(!a)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:a.data[o],index:o}});!ma(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(t,n,i){return this._plugins.notify(this,t,n,i)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,i){const s=this.options.hover,r=(l,c)=>l.filter(u=>!c.some(f=>u.datasetIndex===f.datasetIndex&&u.index===f.index)),o=r(n,t),a=i?t:r(t,n);o.length&&this.updateHoverStyle(o,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,n){const i={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},s=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,s)===!1)return;const r=this._handleEvent(t,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(r||i.changed)&&this.render(),this}_handleEvent(t,n,i){const{_active:s=[],options:r}=this,o=n,a=this._getActiveElements(t,s,i,o),l=DM(t),c=TO(t,this._lastEvent,i,l);i&&(this._lastEvent=null,Tt(r.onHover,[t,a,this],this),l&&Tt(r.onClick,[t,a,this],this));const u=!ma(a,s);return(u||n)&&(this._active=a,this._updateHoverStyles(a,s,n)),this._lastEvent=c,u}_getActiveElements(t,n,i,s){if(t.type==="mouseout")return[];if(!i)return n;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,s)}}$(ti,"defaults",Et),$(ti,"instances",Ba),$(ti,"overrides",ns),$(ti,"registry",Pn),$(ti,"version",vO),$(ti,"getChart",Zm);function Um(){return gt(ti.instances,e=>e._plugins.invalidate())}function MO(e,t,n){const{startAngle:i,x:s,y:r,outerRadius:o,innerRadius:a,options:l}=t,{borderWidth:c,borderJoinStyle:u}=l,f=Math.min(c/o,he(i-n));if(e.beginPath(),e.arc(s,r,o-c/2,i+f/2,n-f/2),a>0){const h=Math.min(c/a,he(i-n));e.arc(s,r,a+c/2,n-h/2,i+h/2,!0)}else{const h=Math.min(c/2,o*he(i-n));if(u==="round")e.arc(s,r,h,n-ut/2,i+ut/2,!0);else if(u==="bevel"){const d=2*h*h,g=-d*Math.cos(n+ut/2)+s,p=-d*Math.sin(n+ut/2)+r,m=d*Math.cos(i+ut/2)+s,_=d*Math.sin(i+ut/2)+r;e.lineTo(g,p),e.lineTo(m,_)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function CO(e,t,n){const{startAngle:i,pixelMargin:s,x:r,y:o,outerRadius:a,innerRadius:l}=t;let c=s/a;e.beginPath(),e.arc(r,o,a,i-c,n+c),l>s?(c=s/l,e.arc(r,o,l,n+c,i-c,!0)):e.arc(r,o,s,n+Ht,i-Ht),e.closePath(),e.clip()}function PO(e){return tu(e,["outerStart","outerEnd","innerStart","innerEnd"])}function OO(e,t,n,i){const s=PO(e.options.borderRadius),r=(n-t)/2,o=Math.min(r,i*t/2),a=l=>{const c=(n-Math.min(r,l))*i/2;return Gt(l,0,Math.min(r,c))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:Gt(s.innerStart,0,o),innerEnd:Gt(s.innerEnd,0,o)}}function qs(e,t,n,i){return{x:n+e*Math.cos(t),y:i+e*Math.sin(t)}}function ja(e,t,n,i,s,r){const{x:o,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=t,f=Math.max(t.outerRadius+i+n-c,0),h=u>0?u+i+n+c:0;let d=0;const g=s-l;if(i){const U=u>0?u-i:0,H=f>0?f-i:0,Z=(U+H)/2,J=Z!==0?g*Z/(Z+i):g;d=(g-J)/2}const p=Math.max(.001,g*f-n/ut)/f,m=(g-p)/2,_=l+m+d,y=s-m-d,{outerStart:w,outerEnd:x,innerStart:b,innerEnd:k}=OO(t,h,f,y-_),M=f-w,P=f-x,v=_+w/M,C=y-x/P,A=h+b,O=h+k,j=_+b/A,K=y-k/O;if(e.beginPath(),r){const U=(v+C)/2;if(e.arc(o,a,f,v,U),e.arc(o,a,f,U,C),x>0){const mt=qs(P,C,o,a);e.arc(mt.x,mt.y,x,C,y+Ht)}const H=qs(O,y,o,a);if(e.lineTo(H.x,H.y),k>0){const mt=qs(O,K,o,a);e.arc(mt.x,mt.y,k,y+Ht,K+Math.PI)}const Z=(y-k/h+(_+b/h))/2;if(e.arc(o,a,h,y-k/h,Z,!0),e.arc(o,a,h,Z,_+b/h,!0),b>0){const mt=qs(A,j,o,a);e.arc(mt.x,mt.y,b,j+Math.PI,_-Ht)}const J=qs(M,_,o,a);if(e.lineTo(J.x,J.y),w>0){const mt=qs(M,v,o,a);e.arc(mt.x,mt.y,w,_-Ht,v)}}else{e.moveTo(o,a);const U=Math.cos(v)*f+o,H=Math.sin(v)*f+a;e.lineTo(U,H);const Z=Math.cos(C)*f+o,J=Math.sin(C)*f+a;e.lineTo(Z,J)}e.closePath()}function AO(e,t,n,i,s){const{fullCircles:r,startAngle:o,circumference:a}=t;let l=t.endAngle;if(r){ja(e,t,n,i,l,s);for(let c=0;c<r;++c)e.fill();isNaN(a)||(l=o+(a%Pt||Pt))}return ja(e,t,n,i,l,s),e.fill(),l}function zO(e,t,n,i,s){const{fullCircles:r,startAngle:o,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:f,borderDashOffset:h,borderRadius:d}=l,g=l.borderAlign==="inner";if(!c)return;e.setLineDash(f||[]),e.lineDashOffset=h,g?(e.lineWidth=c*2,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let p=t.endAngle;if(r){ja(e,t,n,i,p,s);for(let m=0;m<r;++m)e.stroke();isNaN(a)||(p=o+(a%Pt||Pt))}g&&CO(e,t,p),l.selfJoin&&p-o>=ut&&d===0&&u!=="miter"&&MO(e,t,p),r||(ja(e,t,n,i,p,s),e.stroke())}class io extends Qn{constructor(n){super();$(this,"circumference");$(this,"endAngle");$(this,"fullCircles");$(this,"innerRadius");$(this,"outerRadius");$(this,"pixelMargin");$(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,i,s){const r=this.getProps(["x","y"],s),{angle:o,distance:a}=Mg(r,{x:n,y:i}),{startAngle:l,endAngle:c,innerRadius:u,outerRadius:f,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),d=(this.options.spacing+this.options.borderWidth)/2,g=nt(h,c-l),p=Wr(o,l,c)&&l!==c,m=g>=Pt||p,_=Xn(a,u+d,f+d);return m&&_}getCenterPoint(n){const{x:i,y:s,startAngle:r,endAngle:o,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:u}=this.options,f=(r+o)/2,h=(a+l+u+c)/2;return{x:i+Math.cos(f)*h,y:s+Math.sin(f)*h}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:i,circumference:s}=this,r=(i.offset||0)/4,o=(i.spacing||0)/2,a=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=s>Pt?Math.floor(s/Pt):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*r,Math.sin(l)*r);const c=1-Math.sin(Math.min(ut,s||0)),u=r*c;n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,AO(n,this,u,o,a),zO(n,this,u,o,a),n.restore()}}$(io,"id","arc"),$(io,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),$(io,"defaultRoutes",{backgroundColor:"backgroundColor"}),$(io,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function Ym(e,t,n=t){e.lineCap=nt(n.borderCapStyle,t.borderCapStyle),e.setLineDash(nt(n.borderDash,t.borderDash)),e.lineDashOffset=nt(n.borderDashOffset,t.borderDashOffset),e.lineJoin=nt(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=nt(n.borderWidth,t.borderWidth),e.strokeStyle=nt(n.borderColor,t.borderColor)}function DO(e,t,n){e.lineTo(n.x,n.y)}function EO(e){return e.stepped?eC:e.tension||e.cubicInterpolationMode==="monotone"?nC:DO}function Km(e,t,n={}){const i=e.length,{start:s=0,end:r=i-1}=n,{start:o,end:a}=t,l=Math.max(s,o),c=Math.min(r,a),u=s<o&&r<o||s>a&&r>a;return{count:i,start:l,loop:t.loop,ilen:c<l&&!u?i+c-l:c-l}}function IO(e,t,n,i){const{points:s,options:r}=t,{count:o,start:a,loop:l,ilen:c}=Km(s,n,i),u=EO(r);let{move:f=!0,reverse:h}=i||{},d,g,p;for(d=0;d<=c;++d)g=s[(a+(h?c-d:d))%o],!g.skip&&(f?(e.moveTo(g.x,g.y),f=!1):u(e,p,g,h,r.stepped),p=g);return l&&(g=s[(a+(h?c:0))%o],u(e,p,g,h,r.stepped)),!!l}function RO(e,t,n,i){const s=t.points,{count:r,start:o,ilen:a}=Km(s,n,i),{move:l=!0,reverse:c}=i||{};let u=0,f=0,h,d,g,p,m,_;const y=x=>(o+(c?a-x:x))%r,w=()=>{p!==m&&(e.lineTo(u,m),e.lineTo(u,p),e.lineTo(u,_))};for(l&&(d=s[y(0)],e.moveTo(d.x,d.y)),h=0;h<=a;++h){if(d=s[y(h)],d.skip)continue;const x=d.x,b=d.y,k=x|0;k===g?(b<p?p=b:b>m&&(m=b),u=(f*u+x)/++f):(w(),e.lineTo(x,b),g=k,f=0,p=m=b),_=b}w()}function _u(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?RO:IO}function LO(e){return e.stepped?IC:e.tension||e.cubicInterpolationMode==="monotone"?RC:ls}function FO(e,t,n,i){let s=t._path;s||(s=t._path=new Path2D,t.path(s,n,i)&&s.closePath()),Ym(e,t.options),e.stroke(s)}function $O(e,t,n,i){const{segments:s,options:r}=t,o=_u(t);for(const a of s)Ym(e,r,a.style),e.beginPath(),o(e,t,a,{start:n,end:n+i-1})&&e.closePath(),e.stroke()}const NO=typeof Path2D=="function";function BO(e,t,n,i){NO&&!t.options.segment?FO(e,t,n,i):$O(e,t,n,i)}class Ai extends Qn{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;MC(this._points,i,t,s,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=jC(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,i=t.length;return i&&n[t[i-1].end]}interpolate(t,n){const i=this.options,s=t[n],r=this.points,o=im(this,{property:n,start:s,end:s});if(!o.length)return;const a=[],l=LO(i);let c,u;for(c=0,u=o.length;c<u;++c){const{start:f,end:h}=o[c],d=r[f],g=r[h];if(d===g){a.push(d);continue}const p=Math.abs((s-d[n])/(g[n]-d[n])),m=l(d,g,p,i.stepped);m[n]=t[n],a.push(m)}return a.length===1?a[0]:a}pathSegment(t,n,i){return _u(this)(t,this,n,i)}path(t,n,i){const s=this.segments,r=_u(this);let o=this._loop;n=n||0,i=i||this.points.length-n;for(const a of s)o&=r(t,this,a,{start:n,end:n+i-1});return!!o}draw(t,n,i,s){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(t.save(),BO(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}$(Ai,"id","line"),$(Ai,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),$(Ai,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),$(Ai,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function Xm(e,t,n,i){const s=e.options,{[n]:r}=e.getProps([n],i);return Math.abs(t-r)<s.radius+s.hitRadius}class Va extends Qn{constructor(n){super();$(this,"parsed");$(this,"skip");$(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,i,s){const r=this.options,{x:o,y:a}=this.getProps(["x","y"],s);return Math.pow(n-o,2)+Math.pow(i-a,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(n,i){return Xm(this,n,"x",i)}inYRange(n,i){return Xm(this,n,"y",i)}getCenterPoint(n){const{x:i,y:s}=this.getProps(["x","y"],n);return{x:i,y:s}}size(n){n=n||this.options||{};let i=n.radius||0;i=Math.max(i,i&&n.hoverRadius||0);const s=i&&n.borderWidth||0;return(i+s)*2}draw(n,i){const s=this.options;this.skip||s.radius<.1||!Jn(this,i,this.size(s)/2)||(n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.fillStyle=s.backgroundColor,Qc(n,s,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}$(Va,"id","point"),$(Va,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),$(Va,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function qm(e,t){const{x:n,y:i,base:s,width:r,height:o}=e.getProps(["x","y","base","width","height"],t);let a,l,c,u,f;return e.horizontal?(f=o/2,a=Math.min(n,s),l=Math.max(n,s),c=i-f,u=i+f):(f=r/2,a=n-f,l=n+f,c=Math.min(i,s),u=Math.max(i,s)),{left:a,top:c,right:l,bottom:u}}function zi(e,t,n,i){return e?0:Gt(t,n,i)}function jO(e,t,n){const i=e.options.borderWidth,s=e.borderSkipped,r=jg(i);return{t:zi(s.top,r.top,0,n),r:zi(s.right,r.right,0,t),b:zi(s.bottom,r.bottom,0,n),l:zi(s.left,r.left,0,t)}}function VO(e,t,n){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),s=e.options.borderRadius,r=rs(s),o=Math.min(t,n),a=e.borderSkipped,l=i||rt(s);return{topLeft:zi(!l||a.top||a.left,r.topLeft,0,o),topRight:zi(!l||a.top||a.right,r.topRight,0,o),bottomLeft:zi(!l||a.bottom||a.left,r.bottomLeft,0,o),bottomRight:zi(!l||a.bottom||a.right,r.bottomRight,0,o)}}function WO(e){const t=qm(e),n=t.right-t.left,i=t.bottom-t.top,s=jO(e,n/2,i/2),r=VO(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i,radius:r},inner:{x:t.left+s.l,y:t.top+s.t,w:n-s.l-s.r,h:i-s.t-s.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,r.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(s.b,s.r))}}}}function bu(e,t,n,i){const s=t===null,r=n===null,a=e&&!(s&&r)&&qm(e,i);return a&&(s||Xn(t,a.left,a.right))&&(r||Xn(n,a.top,a.bottom))}function HO(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function ZO(e,t){e.rect(t.x,t.y,t.w,t.h)}function yu(e,t,n={}){const i=e.x!==n.x?-t:0,s=e.y!==n.y?-t:0,r=(e.x+e.w!==n.x+n.w?t:0)-i,o=(e.y+e.h!==n.y+n.h?t:0)-s;return{x:e.x+i,y:e.y+s,w:e.w+r,h:e.h+o,radius:e.radius}}class Wa extends Qn{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:i,backgroundColor:s}}=this,{inner:r,outer:o}=WO(this),a=HO(o.radius)?Yr:ZO;t.save(),(o.w!==r.w||o.h!==r.h)&&(t.beginPath(),a(t,yu(o,n,r)),t.clip(),a(t,yu(r,-n,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,yu(r,n)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,n,i){return bu(this,t,n,i)}inXRange(t,n){return bu(this,t,null,n)}inYRange(t,n){return bu(this,null,t,n)}getCenterPoint(t){const{x:n,y:i,base:s,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(n+s)/2:n,y:r?i:(i+s)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}$(Wa,"id","bar"),$(Wa,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),$(Wa,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var UO=Object.freeze({__proto__:null,ArcElement:io,BarElement:Wa,LineElement:Ai,PointElement:Va});const xu=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Jm=xu.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function Gm(e){return xu[e%xu.length]}function Qm(e){return Jm[e%Jm.length]}function YO(e,t){return e.borderColor=Gm(t),e.backgroundColor=Qm(t),++t}function KO(e,t){return e.backgroundColor=e.data.map(()=>Gm(t++)),t}function XO(e,t){return e.backgroundColor=e.data.map(()=>Qm(t++)),t}function qO(e){let t=0;return(n,i)=>{const s=e.getDatasetMeta(i).controller;s instanceof cs?t=KO(n,t):s instanceof qr?t=XO(n,t):s&&(t=YO(n,t))}}function t_(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function JO(e){return e&&(e.borderColor||e.backgroundColor)}function GO(){return Et.borderColor!=="rgba(0,0,0,0.1)"||Et.backgroundColor!=="rgba(0,0,0,0.1)"}var QO={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:i},options:s}=e.config,{elements:r}=s,o=t_(i)||JO(s)||r&&t_(r)||GO();if(!n.forceOverride&&o)return;const a=qO(e);i.forEach(a)}};function tA(e,t,n,i,s){const r=s.samples||i;if(r>=n)return e.slice(t,t+n);const o=[],a=(n-2)/(r-2);let l=0;const c=t+n-1;let u=t,f,h,d,g,p;for(o[l++]=e[u],f=0;f<r-2;f++){let m=0,_=0,y;const w=Math.floor((f+1)*a)+1+t,x=Math.min(Math.floor((f+2)*a)+1,n)+t,b=x-w;for(y=w;y<x;y++)m+=e[y].x,_+=e[y].y;m/=b,_/=b;const k=Math.floor(f*a)+1+t,M=Math.min(Math.floor((f+1)*a)+1,n)+t,{x:P,y:v}=e[u];for(d=g=-1,y=k;y<M;y++)g=.5*Math.abs((P-m)*(e[y].y-v)-(P-e[y].x)*(_-v)),g>d&&(d=g,h=e[y],p=y);o[l++]=h,u=p}return o[l++]=e[c],o}function eA(e,t,n,i){let s=0,r=0,o,a,l,c,u,f,h,d,g,p;const m=[],_=t+n-1,y=e[t].x,x=e[_].x-y;for(o=t;o<t+n;++o){a=e[o],l=(a.x-y)/x*i,c=a.y;const b=l|0;if(b===u)c<g?(g=c,f=o):c>p&&(p=c,h=o),s=(r*s+a.x)/++r;else{const k=o-1;if(!st(f)&&!st(h)){const M=Math.min(f,h),P=Math.max(f,h);M!==d&&M!==k&&m.push({...e[M],x:s}),P!==d&&P!==k&&m.push({...e[P],x:s})}o>0&&k!==d&&m.push(e[k]),m.push(a),u=b,r=0,g=p=c,f=h=d=o}}return m}function e_(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function n_(e){e.data.datasets.forEach(t=>{e_(t)})}function nA(e,t){const n=t.length;let i=0,s;const{iScale:r}=e,{min:o,max:a,minDefined:l,maxDefined:c}=r.getUserBounds();return l&&(i=Gt(qn(t,r.axis,o).lo,0,n-1)),c?s=Gt(qn(t,r.axis,a).hi+1,i,n)-i:s=n-i,{start:i,count:s}}var iA={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){n_(e);return}const i=e.width;e.data.datasets.forEach((s,r)=>{const{_data:o,indexAxis:a}=s,l=e.getDatasetMeta(r),c=o||s.data;if(Kr([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=e.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:f,count:h}=nA(l,c);const d=n.threshold||4*i;if(h<=d){e_(s);return}st(o)&&(s._data=c,delete s.data,Object.defineProperty(s,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(p){this._data=p}}));let g;switch(n.algorithm){case"lttb":g=tA(c,f,h,i,n);break;case"min-max":g=eA(c,f,h,i);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}s._decimated=g})},destroy(e){n_(e)}};function sA(e,t,n){const i=e.segments,s=e.points,r=t.points,o=[];for(const a of i){let{start:l,end:c}=a;c=Ha(l,c,s);const u=vu(n,s[l],s[c],a.loop);if(!t.segments){o.push({source:a,target:u,start:s[l],end:s[c]});continue}const f=im(t,u);for(const h of f){const d=vu(n,r[h.start],r[h.end],h.loop),g=nm(a,s,d);for(const p of g)o.push({source:p,target:h,start:{[n]:i_(u,d,"start",Math.max)},end:{[n]:i_(u,d,"end",Math.min)}})}}return o}function vu(e,t,n,i){if(i)return;let s=t[e],r=n[e];return e==="angle"&&(s=he(s),r=he(r)),{property:e,start:s,end:r}}function rA(e,t){const{x:n=null,y:i=null}=e||{},s=t.points,r=[];return t.segments.forEach(({start:o,end:a})=>{a=Ha(o,a,s);const l=s[o],c=s[a];i!==null?(r.push({x:l.x,y:i}),r.push({x:c.x,y:i})):n!==null&&(r.push({x:n,y:l.y}),r.push({x:n,y:c.y}))}),r}function Ha(e,t,n){for(;t>e;t--){const i=n[t];if(!isNaN(i.x)&&!isNaN(i.y))break}return t}function i_(e,t,n,i){return e&&t?i(e[n],t[n]):e?e[n]:t?t[n]:0}function s_(e,t){let n=[],i=!1;return Dt(e)?(i=!0,n=e):n=rA(e,t),n.length?new Ai({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function r_(e){return e&&e.fill!==!1}function oA(e,t,n){let s=e[t].fill;const r=[t];let o;if(!n)return s;for(;s!==!1&&r.indexOf(s)===-1;){if(!jt(s))return s;if(o=e[s],!o)return!1;if(o.visible)return s;r.push(s),s=o.fill}return!1}function aA(e,t,n){const i=fA(e);if(rt(i))return isNaN(i.value)?!1:i;let s=parseFloat(i);return jt(s)&&Math.floor(s)===s?lA(i[0],t,s,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function lA(e,t,n,i){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=i?!1:n}function cA(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:rt(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function uA(e,t,n){let i;return e==="start"?i=n:e==="end"?i=t.options.reverse?t.min:t.max:rt(e)?i=e.value:i=t.getBaseValue(),i}function fA(e){const t=e.options,n=t.fill;let i=nt(n&&n.target,n);return i===void 0&&(i=!!t.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function hA(e){const{scale:t,index:n,line:i}=e,s=[],r=i.segments,o=i.points,a=dA(t,n);a.push(s_({x:null,y:t.bottom},i));for(let l=0;l<r.length;l++){const c=r[l];for(let u=c.start;u<=c.end;u++)pA(s,o[u],a)}return new Ai({points:s,options:{}})}function dA(e,t){const n=[],i=e.getMatchingVisibleMetas("line");for(let s=0;s<i.length;s++){const r=i[s];if(r.index===t)break;r.hidden||n.unshift(r.dataset)}return n}function pA(e,t,n){const i=[];for(let s=0;s<n.length;s++){const r=n[s],{first:o,last:a,point:l}=gA(r,t,"x");if(!(!l||o&&a)){if(o)i.unshift(l);else if(e.push(l),!a)break}}e.push(...i)}function gA(e,t,n){const i=e.interpolate(t,n);if(!i)return{};const s=i[n],r=e.segments,o=e.points;let a=!1,l=!1;for(let c=0;c<r.length;c++){const u=r[c],f=o[u.start][n],h=o[u.end][n];if(Xn(s,f,h)){a=s===f,l=s===h;break}}return{first:a,last:l,point:i}}class o_{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,i){const{x:s,y:r,radius:o}=this;return n=n||{start:0,end:Pt},t.arc(s,r,o,n.end,n.start,!0),!i.bounds}interpolate(t){const{x:n,y:i,radius:s}=this,r=t.angle;return{x:n+Math.cos(r)*s,y:i+Math.sin(r)*s,angle:r}}}function mA(e){const{chart:t,fill:n,line:i}=e;if(jt(n))return _A(t,n);if(n==="stack")return hA(e);if(n==="shape")return!0;const s=bA(e);return s instanceof o_?s:s_(s,i)}function _A(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function bA(e){return(e.scale||{}).getPointPositionForValue?xA(e):yA(e)}function yA(e){const{scale:t={},fill:n}=e,i=cA(n,t);if(jt(i)){const s=t.isHorizontal();return{x:s?i:null,y:s?null:i}}return null}function xA(e){const{scale:t,fill:n}=e,i=t.options,s=t.getLabels().length,r=i.reverse?t.max:t.min,o=uA(n,t,r),a=[];if(i.grid.circular){const l=t.getPointPositionForValue(0,r);return new o_({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(o)})}for(let l=0;l<s;++l)a.push(t.getPointPositionForValue(l,o));return a}function wu(e,t,n){const i=mA(t),{chart:s,index:r,line:o,scale:a,axis:l}=t,c=o.options,u=c.fill,f=c.backgroundColor,{above:h=f,below:d=f}=u||{},g=s.getDatasetMeta(r),p=om(s,g);i&&o.points.length&&(wa(e,n),vA(e,{line:o,target:i,above:h,below:d,area:n,scale:a,axis:l,clip:p}),Sa(e))}function vA(e,t){const{line:n,target:i,above:s,below:r,area:o,scale:a,clip:l}=t,c=n._loop?"angle":t.axis;e.save();let u=r;r!==s&&(c==="x"?(a_(e,i,o.top),Su(e,{line:n,target:i,color:s,scale:a,property:c,clip:l}),e.restore(),e.save(),a_(e,i,o.bottom)):c==="y"&&(l_(e,i,o.left),Su(e,{line:n,target:i,color:r,scale:a,property:c,clip:l}),e.restore(),e.save(),l_(e,i,o.right),u=s)),Su(e,{line:n,target:i,color:u,scale:a,property:c,clip:l}),e.restore()}function a_(e,t,n){const{segments:i,points:s}=t;let r=!0,o=!1;e.beginPath();for(const a of i){const{start:l,end:c}=a,u=s[l],f=s[Ha(l,c,s)];r?(e.moveTo(u.x,u.y),r=!1):(e.lineTo(u.x,n),e.lineTo(u.x,u.y)),o=!!t.pathSegment(e,a,{move:o}),o?e.closePath():e.lineTo(f.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function l_(e,t,n){const{segments:i,points:s}=t;let r=!0,o=!1;e.beginPath();for(const a of i){const{start:l,end:c}=a,u=s[l],f=s[Ha(l,c,s)];r?(e.moveTo(u.x,u.y),r=!1):(e.lineTo(n,u.y),e.lineTo(u.x,u.y)),o=!!t.pathSegment(e,a,{move:o}),o?e.closePath():e.lineTo(n,f.y)}e.lineTo(n,t.first().y),e.closePath(),e.clip()}function Su(e,t){const{line:n,target:i,property:s,color:r,scale:o,clip:a}=t,l=sA(n,i,s);for(const{source:c,target:u,start:f,end:h}of l){const{style:{backgroundColor:d=r}={}}=c,g=i!==!0;e.save(),e.fillStyle=d,wA(e,o,a,g&&vu(s,f,h)),e.beginPath();const p=!!n.pathSegment(e,c);let m;if(g){p?e.closePath():c_(e,i,h,s);const _=!!i.pathSegment(e,u,{move:p,reverse:!0});m=p&&_,m||c_(e,i,f,s)}e.closePath(),e.fill(m?"evenodd":"nonzero"),e.restore()}}function wA(e,t,n,i){const s=t.chart.chartArea,{property:r,start:o,end:a}=i||{};if(r==="x"||r==="y"){let l,c,u,f;r==="x"?(l=o,c=s.top,u=a,f=s.bottom):(l=s.left,c=o,u=s.right,f=a),e.beginPath(),n&&(l=Math.max(l,n.left),u=Math.min(u,n.right),c=Math.max(c,n.top),f=Math.min(f,n.bottom)),e.rect(l,c,u-l,f-c),e.clip()}}function c_(e,t,n,i){const s=t.interpolate(n,i);s&&e.lineTo(s.x,s.y)}var SA={id:"filler",afterDatasetsUpdate(e,t,n){const i=(e.data.datasets||[]).length,s=[];let r,o,a,l;for(o=0;o<i;++o)r=e.getDatasetMeta(o),a=r.dataset,l=null,a&&a.options&&a instanceof Ai&&(l={visible:e.isDatasetVisible(o),index:o,fill:aA(a,o,i),chart:e,axis:r.controller.options.indexAxis,scale:r.vScale,line:a}),r.$filler=l,s.push(l);for(o=0;o<i;++o)l=s[o],!(!l||l.fill===!1)&&(l.fill=oA(s,o,n.propagate))},beforeDraw(e,t,n){const i=n.drawTime==="beforeDraw",s=e.getSortedVisibleDatasetMetas(),r=e.chartArea;for(let o=s.length-1;o>=0;--o){const a=s[o].$filler;a&&(a.line.updateControlPoints(r,a.axis),i&&a.fill&&wu(e.ctx,a,r))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const i=e.getSortedVisibleDatasetMetas();for(let s=i.length-1;s>=0;--s){const r=i[s].$filler;r_(r)&&wu(e.ctx,r,e.chartArea)}},beforeDatasetDraw(e,t,n){const i=t.meta.$filler;!r_(i)||n.drawTime!=="beforeDatasetDraw"||wu(e.ctx,i,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const u_=(e,t)=>{let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}},kA=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class f_ extends Qn{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,i){this.maxWidth=t,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Tt(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(i=>t.filter(i,this.chart.data))),t.sort&&(n=n.sort((i,s)=>t.sort(i,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,s=Kt(i.font),r=s.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=u_(i,r);let c,u;n.font=s.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,r,a,l)+10):(u=this.maxHeight,c=this._fitCols(o,s,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,i,s){const{ctx:r,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=s+a;let f=t;r.textAlign="left",r.textBaseline="middle";let h=-1,d=-u;return this.legendItems.forEach((g,p)=>{const m=i+n/2+r.measureText(g.text).width;(p===0||c[c.length-1]+m+2*a>o)&&(f+=u,c[c.length-(p>0?0:1)]=0,d+=u,h++),l[p]={left:0,top:d,row:h,width:m,height:s},c[c.length-1]+=m+a}),f}_fitCols(t,n,i,s){const{ctx:r,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-t;let f=a,h=0,d=0,g=0,p=0;return this.legendItems.forEach((m,_)=>{const{itemWidth:y,itemHeight:w}=TA(i,n,r,m,s);_>0&&d+w+2*a>u&&(f+=h+a,c.push({width:h,height:d}),g+=h+a,p++,h=d=0),l[_]={left:g,top:d,col:p,width:y,height:w},h=Math.max(h,y),d+=w+a}),f+=h,c.push({width:h,height:d}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:s},rtl:r}}=this,o=Xs(r,this.left,this.width);if(this.isHorizontal()){let a=0,l=de(i,this.left+s,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=de(i,this.left+s,this.right-this.lineWidths[a])),c.top+=this.top+t+s,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+s}else{let a=0,l=de(i,this.top+t+s,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=de(i,this.top+t+s,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+s,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;wa(t,this),this._draw(),Sa(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:i,ctx:s}=this,{align:r,labels:o}=t,a=Et.color,l=Xs(t.rtl,this.left,this.width),c=Kt(o.font),{padding:u}=o,f=c.size,h=f/2;let d;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:g,boxHeight:p,itemHeight:m}=u_(o,f),_=function(k,M,P){if(isNaN(g)||g<=0||isNaN(p)||p<0)return;s.save();const v=nt(P.lineWidth,1);if(s.fillStyle=nt(P.fillStyle,a),s.lineCap=nt(P.lineCap,"butt"),s.lineDashOffset=nt(P.lineDashOffset,0),s.lineJoin=nt(P.lineJoin,"miter"),s.lineWidth=v,s.strokeStyle=nt(P.strokeStyle,a),s.setLineDash(nt(P.lineDash,[])),o.usePointStyle){const C={radius:p*Math.SQRT2/2,pointStyle:P.pointStyle,rotation:P.rotation,borderWidth:v},A=l.xPlus(k,g/2),O=M+h;Bg(s,C,A,O,o.pointStyleWidth&&g)}else{const C=M+Math.max((f-p)/2,0),A=l.leftForLtr(k,g),O=rs(P.borderRadius);s.beginPath(),Object.values(O).some(j=>j!==0)?Yr(s,{x:A,y:C,w:g,h:p,radius:O}):s.rect(A,C,g,p),s.fill(),v!==0&&s.stroke()}s.restore()},y=function(k,M,P){ss(s,P.text,k,M+m/2,c,{strikethrough:P.hidden,textAlign:l.textAlign(P.textAlign)})},w=this.isHorizontal(),x=this._computeTitleHeight();w?d={x:de(r,this.left+u,this.right-i[0]),y:this.top+u+x,line:0}:d={x:this.left+u,y:de(r,this.top+x+u,this.bottom-n[0].height),line:0},Gg(this.ctx,t.textDirection);const b=m+u;this.legendItems.forEach((k,M)=>{s.strokeStyle=k.fontColor,s.fillStyle=k.fontColor;const P=s.measureText(k.text).width,v=l.textAlign(k.textAlign||(k.textAlign=o.textAlign)),C=g+h+P;let A=d.x,O=d.y;l.setWidth(this.width),w?M>0&&A+C+u>this.right&&(O=d.y+=b,d.line++,A=d.x=de(r,this.left+u,this.right-i[d.line])):M>0&&O+b>this.bottom&&(A=d.x=A+n[d.line].width+u,d.line++,O=d.y=de(r,this.top+x+u,this.bottom-n[d.line].height));const j=l.x(A);if(_(j,O,k),A=HM(v,A+g+h,w?A+C:this.right,t.rtl),y(l.x(A),O,k),w)d.x+=C+u;else if(typeof k.text!="string"){const K=c.lineHeight;d.y+=h_(k,K)+u}else d.y+=b}),Qg(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,i=Kt(n.font),s=pe(n.padding);if(!n.display)return;const r=Xs(t.rtl,this.left,this.width),o=this.ctx,a=n.position,l=i.size/2,c=s.top+l;let u,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+c,f=de(t.align,f,this.right-h);else{const g=this.columnSizes.reduce((p,m)=>Math.max(p,m.height),0);u=c+de(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const d=de(a,f,f+h);o.textAlign=r.textAlign(Kc(a)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=i.string,ss(o,n.text,d,u,i)}_computeTitleHeight(){const t=this.options.title,n=Kt(t.font),i=pe(t.padding);return t.display?n.lineHeight+i.height:0}_getLegendItemAt(t,n){let i,s,r;if(Xn(t,this.left,this.right)&&Xn(n,this.top,this.bottom)){for(r=this.legendHitBoxes,i=0;i<r.length;++i)if(s=r[i],Xn(t,s.left,s.left+s.width)&&Xn(n,s.top,s.top+s.height))return this.legendItems[i]}return null}handleEvent(t){const n=this.options;if(!PA(t.type,n))return;const i=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const s=this._hoveredItem,r=kA(s,i);s&&!r&&Tt(n.onLeave,[t,s,this],this),this._hoveredItem=i,i&&!r&&Tt(n.onHover,[t,i,this],this)}else i&&Tt(n.onClick,[t,i,this],this)}}function TA(e,t,n,i,s){const r=MA(i,e,t,n),o=CA(s,i,t.lineHeight);return{itemWidth:r,itemHeight:o}}function MA(e,t,n,i){let s=e.text;return s&&typeof s!="string"&&(s=s.reduce((r,o)=>r.length>o.length?r:o)),t+n.size/2+i.measureText(s).width}function CA(e,t,n){let i=e;return typeof t.text!="string"&&(i=h_(t,n)),i}function h_(e,t){const n=e.text?e.text.length:0;return t*n}function PA(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var OA={id:"legend",_element:f_,start(e,t,n){const i=e.legend=new f_({ctx:e.ctx,options:n,chart:e});ge.configure(e,i,n),ge.addBox(e,i)},stop(e){ge.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const i=e.legend;ge.configure(e,i,n),i.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const i=t.datasetIndex,s=n.chart;s.isDatasetVisible(i)?(s.hide(i),t.hidden=!0):(s.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:s,color:r,useBorderRadius:o,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=pe(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:r,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:s||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class ku extends Qn{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const s=Dt(i.text)?i.text.length:1;this._padding=pe(i.padding);const r=s*Kt(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:i,bottom:s,right:r,options:o}=this,a=o.align;let l=0,c,u,f;return this.isHorizontal()?(u=de(a,i,r),f=n+t,c=r-i):(o.position==="left"?(u=i+t,f=de(a,s,n),l=ut*-.5):(u=r-t,f=de(a,n,s),l=ut*.5),c=s-n),{titleX:u,titleY:f,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const i=Kt(n.font),r=i.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(r);ss(t,n.text,0,0,i,{color:n.color,maxWidth:l,rotation:c,textAlign:Kc(n.align),textBaseline:"middle",translation:[o,a]})}}function AA(e,t){const n=new ku({ctx:e.ctx,options:t,chart:e});ge.configure(e,n,t),ge.addBox(e,n),e.titleBlock=n}var zA={id:"title",_element:ku,start(e,t,n){AA(e,n)},stop(e){const t=e.titleBlock;ge.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const i=e.titleBlock;ge.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Za=new WeakMap;var DA={id:"subtitle",start(e,t,n){const i=new ku({ctx:e.ctx,options:n,chart:e});ge.configure(e,i,n),ge.addBox(e,i),Za.set(e,i)},stop(e){ge.removeBox(e,Za.get(e)),Za.delete(e)},beforeUpdate(e,t,n){const i=Za.get(e);ge.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const so={average(e){if(!e.length)return!1;let t,n,i=new Set,s=0,r=0;for(t=0,n=e.length;t<n;++t){const a=e[t].element;if(a&&a.hasValue()){const l=a.tooltipPosition();i.add(l.x),s+=l.y,++r}}return r===0||i.size===0?!1:{x:[...i].reduce((a,l)=>a+l)/i.size,y:s/r}},nearest(e,t){if(!e.length)return!1;let n=t.x,i=t.y,s=Number.POSITIVE_INFINITY,r,o,a;for(r=0,o=e.length;r<o;++r){const l=e[r].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=Uc(t,c);u<s&&(s=u,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,i=l.y}return{x:n,y:i}}};function On(e,t){return t&&(Dt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function ei(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
71
- `)>-1?e.split(`
72
- `):e}function EA(e,t){const{element:n,datasetIndex:i,index:s}=t,r=e.getDatasetMeta(i).controller,{label:o,value:a}=r.getLabelAndValue(s);return{chart:e,label:o,parsed:r.getParsed(s),raw:e.data.datasets[i].data[s],formattedValue:a,dataset:r.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function d_(e,t){const n=e.chart.ctx,{body:i,footer:s,title:r}=e,{boxWidth:o,boxHeight:a}=t,l=Kt(t.bodyFont),c=Kt(t.titleFont),u=Kt(t.footerFont),f=r.length,h=s.length,d=i.length,g=pe(t.padding);let p=g.height,m=0,_=i.reduce((x,b)=>x+b.before.length+b.lines.length+b.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,f&&(p+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),_){const x=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;p+=d*x+(_-d)*l.lineHeight+(_-1)*t.bodySpacing}h&&(p+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let y=0;const w=function(x){m=Math.max(m,n.measureText(x).width+y)};return n.save(),n.font=c.string,gt(e.title,w),n.font=l.string,gt(e.beforeBody.concat(e.afterBody),w),y=t.displayColors?o+2+t.boxPadding:0,gt(i,x=>{gt(x.before,w),gt(x.lines,w),gt(x.after,w)}),y=0,n.font=u.string,gt(e.footer,w),n.restore(),m+=g.width,{width:m,height:p}}function IA(e,t){const{y:n,height:i}=t;return n<i/2?"top":n>e.height-i/2?"bottom":"center"}function RA(e,t,n,i){const{x:s,width:r}=i,o=n.caretSize+n.caretPadding;if(e==="left"&&s+r+o>t.width||e==="right"&&s-r-o<0)return!0}function LA(e,t,n,i){const{x:s,width:r}=n,{width:o,chartArea:{left:a,right:l}}=e;let c="center";return i==="center"?c=s<=(a+l)/2?"left":"right":s<=r/2?c="left":s>=o-r/2&&(c="right"),RA(c,e,t,n)&&(c="center"),c}function p_(e,t,n){const i=n.yAlign||t.yAlign||IA(e,n);return{xAlign:n.xAlign||t.xAlign||LA(e,t,n,i),yAlign:i}}function FA(e,t){let{x:n,width:i}=e;return t==="right"?n-=i:t==="center"&&(n-=i/2),n}function $A(e,t,n){let{y:i,height:s}=e;return t==="top"?i+=n:t==="bottom"?i-=s+n:i-=s/2,i}function g_(e,t,n,i){const{caretSize:s,caretPadding:r,cornerRadius:o}=e,{xAlign:a,yAlign:l}=n,c=s+r,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:d}=rs(o);let g=FA(t,a);const p=$A(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(u,h)+s:a==="right"&&(g+=Math.max(f,d)+s),{x:Gt(g,0,i.width-t.width),y:Gt(p,0,i.height-t.height)}}function Ua(e,t,n){const i=pe(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-i.right:e.x+i.left}function m_(e){return On([],ei(e))}function NA(e,t,n){return Pi(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function __(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const b_={beforeTitle:Kn,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return n[t.dataIndex]}return""},afterTitle:Kn,beforeBody:Kn,beforeLabel:Kn,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return st(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Kn,afterBody:Kn,beforeFooter:Kn,footer:Kn,afterFooter:Kn};function De(e,t,n,i){const s=e[t].call(n,i);return typeof s>"u"?b_[t].call(n,i):s}class Tu extends Qn{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&n.options.animation&&i.animations,r=new lm(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=NA(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:i}=n,s=De(i,"beforeTitle",this,t),r=De(i,"title",this,t),o=De(i,"afterTitle",this,t);let a=[];return a=On(a,ei(s)),a=On(a,ei(r)),a=On(a,ei(o)),a}getBeforeBody(t,n){return m_(De(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:i}=n,s=[];return gt(t,r=>{const o={before:[],lines:[],after:[]},a=__(i,r);On(o.before,ei(De(a,"beforeLabel",this,r))),On(o.lines,De(a,"label",this,r)),On(o.after,ei(De(a,"afterLabel",this,r))),s.push(o)}),s}getAfterBody(t,n){return m_(De(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:i}=n,s=De(i,"beforeFooter",this,t),r=De(i,"footer",this,t),o=De(i,"afterFooter",this,t);let a=[];return a=On(a,ei(s)),a=On(a,ei(r)),a=On(a,ei(o)),a}_createItems(t){const n=this._active,i=this.chart.data,s=[],r=[],o=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(EA(this.chart,n[l]));return t.filter&&(a=a.filter((u,f,h)=>t.filter(u,f,h,i))),t.itemSort&&(a=a.sort((u,f)=>t.itemSort(u,f,i))),gt(a,u=>{const f=__(t.callbacks,u);s.push(De(f,"labelColor",this,u)),r.push(De(f,"labelPointStyle",this,u)),o.push(De(f,"labelTextColor",this,u))}),this.labelColors=s,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=a,a}update(t,n){const i=this.options.setContext(this.getContext()),s=this._active;let r,o=[];if(!s.length)this.opacity!==0&&(r={opacity:0});else{const a=so[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const l=this._size=d_(this,i),c=Object.assign({},a,l),u=p_(this.chart,i,c),f=g_(i,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,r={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,i,s){const r=this.getCaretPosition(t,i,s);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(t,n,i){const{xAlign:s,yAlign:r}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:f}=rs(a),{x:h,y:d}=t,{width:g,height:p}=n;let m,_,y,w,x,b;return r==="center"?(x=d+p/2,s==="left"?(m=h,_=m-o,w=x+o,b=x-o):(m=h+g,_=m+o,w=x-o,b=x+o),y=m):(s==="left"?_=h+Math.max(l,u)+o:s==="right"?_=h+g-Math.max(c,f)-o:_=this.caretX,r==="top"?(w=d,x=w-o,m=_-o,y=_+o):(w=d+p,x=w+o,m=_+o,y=_-o),b=w),{x1:m,x2:_,x3:y,y1:w,y2:x,y3:b}}drawTitle(t,n,i){const s=this.title,r=s.length;let o,a,l;if(r){const c=Xs(i.rtl,this.x,this.width);for(t.x=Ua(this,i.titleAlign,i),n.textAlign=c.textAlign(i.titleAlign),n.textBaseline="middle",o=Kt(i.titleFont),a=i.titleSpacing,n.fillStyle=i.titleColor,n.font=o.string,l=0;l<r;++l)n.fillText(s[l],c.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,l+1===r&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,n,i,s,r){const o=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:l,boxWidth:c}=r,u=Kt(r.bodyFont),f=Ua(this,"left",r),h=s.x(f),d=l<u.lineHeight?(u.lineHeight-l)/2:0,g=n.y+d;if(r.usePointStyle){const p={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},m=s.leftForLtr(h,c)+c/2,_=g+l/2;t.strokeStyle=r.multiKeyBackground,t.fillStyle=r.multiKeyBackground,Qc(t,p,m,_),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Qc(t,p,m,_)}else{t.lineWidth=rt(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const p=s.leftForLtr(h,c),m=s.leftForLtr(s.xPlus(h,1),c-2),_=rs(o.borderRadius);Object.values(_).some(y=>y!==0)?(t.beginPath(),t.fillStyle=r.multiKeyBackground,Yr(t,{x:p,y:g,w:c,h:l,radius:_}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Yr(t,{x:m,y:g+1,w:c-2,h:l-2,radius:_}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(p,g,c,l),t.strokeRect(p,g,c,l),t.fillStyle=o.backgroundColor,t.fillRect(m,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,n,i){const{body:s}=this,{bodySpacing:r,bodyAlign:o,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=i,f=Kt(i.bodyFont);let h=f.lineHeight,d=0;const g=Xs(i.rtl,this.x,this.width),p=function(P){n.fillText(P,g.x(t.x+d),t.y+h/2),t.y+=h+r},m=g.textAlign(o);let _,y,w,x,b,k,M;for(n.textAlign=o,n.textBaseline="middle",n.font=f.string,t.x=Ua(this,m,i),n.fillStyle=i.bodyColor,gt(this.beforeBody,p),d=a&&m!=="right"?o==="center"?c/2+u:c+2+u:0,x=0,k=s.length;x<k;++x){for(_=s[x],y=this.labelTextColors[x],n.fillStyle=y,gt(_.before,p),w=_.lines,a&&w.length&&(this._drawColorBox(n,t,x,g,i),h=Math.max(f.lineHeight,l)),b=0,M=w.length;b<M;++b)p(w[b]),h=f.lineHeight;gt(_.after,p)}d=0,h=f.lineHeight,gt(this.afterBody,p),t.y-=r}drawFooter(t,n,i){const s=this.footer,r=s.length;let o,a;if(r){const l=Xs(i.rtl,this.x,this.width);for(t.x=Ua(this,i.footerAlign,i),t.y+=i.footerMarginTop,n.textAlign=l.textAlign(i.footerAlign),n.textBaseline="middle",o=Kt(i.footerFont),n.fillStyle=i.footerColor,n.font=o.string,a=0;a<r;++a)n.fillText(s[a],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,n,i,s){const{xAlign:r,yAlign:o}=this,{x:a,y:l}=t,{width:c,height:u}=i,{topLeft:f,topRight:h,bottomLeft:d,bottomRight:g}=rs(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(a+f,l),o==="top"&&this.drawCaret(t,n,i,s),n.lineTo(a+c-h,l),n.quadraticCurveTo(a+c,l,a+c,l+h),o==="center"&&r==="right"&&this.drawCaret(t,n,i,s),n.lineTo(a+c,l+u-g),n.quadraticCurveTo(a+c,l+u,a+c-g,l+u),o==="bottom"&&this.drawCaret(t,n,i,s),n.lineTo(a+d,l+u),n.quadraticCurveTo(a,l+u,a,l+u-d),o==="center"&&r==="left"&&this.drawCaret(t,n,i,s),n.lineTo(a,l+f),n.quadraticCurveTo(a,l,a+f,l),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,i=this.$animations,s=i&&i.x,r=i&&i.y;if(s||r){const o=so[t.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=d_(this,t),l=Object.assign({},o,this._size),c=p_(n,t,l),u=g_(t,l,c,n);(s._to!==u.x||r._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},r={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=pe(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(r,t,s,n),Gg(t,n.textDirection),r.y+=o.top,this.drawTitle(r,t,n),this.drawBody(r,t,n),this.drawFooter(r,t,n),Qg(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const i=this._active,s=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),r=!ma(i,s),o=this._positionChanged(s,n);(r||o)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,r=this._active||[],o=this._getActiveElements(t,r,n,i),a=this._positionChanged(o,t),l=n||!ma(o,r)||a;return l&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,i,s){const r=this.options;if(t.type==="mouseout")return[];if(!s)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,r.mode,r,i);return r.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:i,caretY:s,options:r}=this,o=so[r.position].call(this,t,n);return o!==!1&&(i!==o.x||s!==o.y)}}$(Tu,"positioners",so);var BA={id:"tooltip",_element:Tu,positioners:so,afterInit(e,t,n){n&&(e.tooltip=new Tu({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:b_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},jA=Object.freeze({__proto__:null,Colors:QO,Decimation:iA,Filler:SA,Legend:OA,SubTitle:DA,Title:zA,Tooltip:BA});const VA=(e,t,n,i)=>(typeof t=="string"?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function WA(e,t,n,i){const s=e.indexOf(t);if(s===-1)return VA(e,t,n,i);const r=e.lastIndexOf(t);return s!==r?n:s}const HA=(e,t)=>e===null?null:Gt(Math.round(e),0,t);function y_(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Mu extends fs{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const i=this.getLabels();for(const{index:s,label:r}of n)i[s]===r&&i.splice(s,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(st(t))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===t?n:WA(i,t,nt(n,t),this._addedLabels),HA(n,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),n||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,n=this.max,i=this.options.offset,s=[];let r=this.getLabels();r=t===0&&n===r.length-1?r:r.slice(t,n+1),this._valueRange=Math.max(r.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=t;o<=n;o++)s.push({value:o});return s}getLabelForValue(t){return y_.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}$(Mu,"id","category"),$(Mu,"defaults",{ticks:{callback:y_}});function ZA(e,t){const n=[],{bounds:s,step:r,min:o,max:a,precision:l,count:c,maxTicks:u,maxDigits:f,includeBounds:h}=e,d=r||1,g=u-1,{min:p,max:m}=t,_=!st(o),y=!st(a),w=!st(c),x=(m-p)/(f+1);let b=Sg((m-p)/g/d)*d,k,M,P,v;if(b<1e-14&&!_&&!y)return[{value:p},{value:m}];v=Math.ceil(m/b)-Math.floor(p/b),v>g&&(b=Sg(v*b/g/d)*d),st(l)||(k=Math.pow(10,l),b=Math.ceil(b*k)/k),s==="ticks"?(M=Math.floor(p/b)*b,P=Math.ceil(m/b)*b):(M=p,P=m),_&&y&&r&&FM((a-o)/r,b/1e3)?(v=Math.round(Math.min((a-o)/b,u)),b=(a-o)/v,M=o,P=a):w?(M=_?o:M,P=y?a:P,v=c-1,b=(P-M)/v):(v=(P-M)/b,Vr(v,Math.round(v),b/1e3)?v=Math.round(v):v=Math.ceil(v));const C=Math.max(Tg(b),Tg(M));k=Math.pow(10,st(l)?C:l),M=Math.round(M*k)/k,P=Math.round(P*k)/k;let A=0;for(_&&(h&&M!==o?(n.push({value:o}),M<o&&A++,Vr(Math.round((M+A*b)*k)/k,o,x_(o,x,e))&&A++):M<o&&A++);A<v;++A){const O=Math.round((M+A*b)*k)/k;if(y&&O>a)break;n.push({value:O})}return y&&h&&P!==a?n.length&&Vr(n[n.length-1].value,a,x_(a,x,e))?n[n.length-1].value=a:n.push({value:a}):(!y||P===a)&&n.push({value:P}),n}function x_(e,t,{horizontal:n,minRotation:i}){const s=un(i),r=(n?Math.sin(s):Math.cos(s))||.001,o=.75*t*(""+e).length;return Math.min(t/r,o)}class Ya extends fs{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return st(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:s,max:r}=this;const o=l=>s=n?s:l,a=l=>r=i?r:l;if(t){const l=Cn(s),c=Cn(r);l<0&&c<0?a(0):l>0&&c>0&&o(0)}if(s===r){let l=r===0?1:Math.abs(r*.05);a(r+l),t||o(s-l)}this.min=s,this.max=r}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=t,s;return i?(s=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},r=this._range||this,o=ZA(s,r);return t.bounds==="ticks"&&kg(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-n)/Math.max(t.length-1,1)/2;n-=s,i+=s}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(t){return Zr(t,this.chart.options.locale,this.options.ticks.format)}}class Cu extends Ya{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=jt(t)?t:0,this.max=jt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,i=un(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,r.lineHeight/s))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}$(Cu,"id","linear"),$(Cu,"defaults",{ticks:{callback:xa.formatters.numeric}});const ro=e=>Math.floor(Ci(e)),hs=(e,t)=>Math.pow(10,ro(e)+t);function v_(e){return e/Math.pow(10,ro(e))===1}function w_(e,t,n){const i=Math.pow(10,n),s=Math.floor(e/i);return Math.ceil(t/i)-s}function UA(e,t){const n=t-e;let i=ro(n);for(;w_(e,t,i)>10;)i++;for(;w_(e,t,i)<10;)i--;return Math.min(i,ro(e))}function YA(e,{min:t,max:n}){t=Ue(e.min,t);const i=[],s=ro(t);let r=UA(t,n),o=r<0?Math.pow(10,Math.abs(r)):1;const a=Math.pow(10,r),l=s>r?Math.pow(10,s):0,c=Math.round((t-l)*o)/o,u=Math.floor((t-l)/a/10)*a*10;let f=Math.floor((c-u)/Math.pow(10,r)),h=Ue(e.min,Math.round((l+u+f*Math.pow(10,r))*o)/o);for(;h<n;)i.push({value:h,major:v_(h),significand:f}),f>=10?f=f<15?15:20:f++,f>=20&&(r++,f=2,o=r>=0?1:o),h=Math.round((l+u+f*Math.pow(10,r))*o)/o;const d=Ue(e.max,h);return i.push({value:d,major:v_(d),significand:f}),i}class Pu extends fs{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const i=Ya.prototype.parse.apply(this,[t,n]);if(i===0){this._zero=!0;return}return jt(i)&&i>0?i:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=jt(t)?Math.max(0,t):null,this.max=jt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!jt(this._userMin)&&(this.min=t===hs(this.min,0)?hs(this.min,-1):hs(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let i=this.min,s=this.max;const r=a=>i=t?i:a,o=a=>s=n?s:a;i===s&&(i<=0?(r(1),o(10)):(r(hs(i,-1)),o(hs(s,1)))),i<=0&&r(hs(s,-1)),s<=0&&o(hs(i,1)),this.min=i,this.max=s}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},i=YA(n,this);return t.bounds==="ticks"&&kg(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return t===void 0?"0":Zr(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ci(t),this._valueRange=Ci(this.max)-Ci(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ci(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}$(Pu,"id","logarithmic"),$(Pu,"defaults",{ticks:{callback:xa.formatters.logarithmic,major:{enabled:!0}}});function Ou(e){const t=e.ticks;if(t.display&&e.display){const n=pe(t.backdropPadding);return nt(t.font&&t.font.size,Et.font.size)+n.height}return 0}function KA(e,t,n){return n=Dt(n)?n:[n],{w:tC(e,t.string,n),h:n.length*t.lineHeight}}function S_(e,t,n,i,s){return e===i||e===s?{start:t-n/2,end:t+n/2}:e<i||e>s?{start:t-n,end:t}:{start:t,end:t+n}}function XA(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),i=[],s=[],r=e._pointLabels.length,o=e.options.pointLabels,a=o.centerPointLabels?ut/r:0;for(let l=0;l<r;l++){const c=o.setContext(e.getPointLabelContext(l));s[l]=c.padding;const u=e.getPointPosition(l,e.drawingArea+s[l],a),f=Kt(c.font),h=KA(e.ctx,f,e._pointLabels[l]);i[l]=h;const d=he(e.getIndexAngle(l)+a),g=Math.round(Zc(d)),p=S_(g,u.x,h.w,0,180),m=S_(g,u.y,h.h,90,270);qA(n,t,d,p,m)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=QA(e,i,s)}function qA(e,t,n,i,s){const r=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let a=0,l=0;i.start<t.l?(a=(t.l-i.start)/r,e.l=Math.min(e.l,t.l-a)):i.end>t.r&&(a=(i.end-t.r)/r,e.r=Math.max(e.r,t.r+a)),s.start<t.t?(l=(t.t-s.start)/o,e.t=Math.min(e.t,t.t-l)):s.end>t.b&&(l=(s.end-t.b)/o,e.b=Math.max(e.b,t.b+l))}function JA(e,t,n){const i=e.drawingArea,{extra:s,additionalAngle:r,padding:o,size:a}=n,l=e.getPointPosition(t,i+s+o,r),c=Math.round(Zc(he(l.angle+Ht))),u=nz(l.y,a.h,c),f=tz(c),h=ez(l.x,a.w,f);return{visible:!0,x:l.x,y:u,textAlign:f,left:h,top:u,right:h+a.w,bottom:u+a.h}}function GA(e,t){if(!t)return!0;const{left:n,top:i,right:s,bottom:r}=e;return!(Jn({x:n,y:i},t)||Jn({x:n,y:r},t)||Jn({x:s,y:i},t)||Jn({x:s,y:r},t))}function QA(e,t,n){const i=[],s=e._pointLabels.length,r=e.options,{centerPointLabels:o,display:a}=r.pointLabels,l={extra:Ou(r)/2,additionalAngle:o?ut/s:0};let c;for(let u=0;u<s;u++){l.padding=n[u],l.size=t[u];const f=JA(e,u,l);i.push(f),a==="auto"&&(f.visible=GA(f,c),f.visible&&(c=f))}return i}function tz(e){return e===0||e===180?"center":e<180?"left":"right"}function ez(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function nz(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function iz(e,t,n){const{left:i,top:s,right:r,bottom:o}=n,{backdropColor:a}=t;if(!st(a)){const l=rs(t.borderRadius),c=pe(t.backdropPadding);e.fillStyle=a;const u=i-c.left,f=s-c.top,h=r-i+c.width,d=o-s+c.height;Object.values(l).some(g=>g!==0)?(e.beginPath(),Yr(e,{x:u,y:f,w:h,h:d,radius:l}),e.fill()):e.fillRect(u,f,h,d)}}function sz(e,t){const{ctx:n,options:{pointLabels:i}}=e;for(let s=t-1;s>=0;s--){const r=e._pointLabelItems[s];if(!r.visible)continue;const o=i.setContext(e.getPointLabelContext(s));iz(n,o,r);const a=Kt(o.font),{x:l,y:c,textAlign:u}=r;ss(n,e._pointLabels[s],l,c+a.lineHeight/2,a,{color:o.color,textAlign:u,textBaseline:"middle"})}}function k_(e,t,n,i){const{ctx:s}=e;if(n)s.arc(e.xCenter,e.yCenter,t,0,Pt);else{let r=e.getPointPosition(0,t);s.moveTo(r.x,r.y);for(let o=1;o<i;o++)r=e.getPointPosition(o,t),s.lineTo(r.x,r.y)}}function rz(e,t,n,i,s){const r=e.ctx,o=t.circular,{color:a,lineWidth:l}=t;!o&&!i||!a||!l||n<0||(r.save(),r.strokeStyle=a,r.lineWidth=l,r.setLineDash(s.dash||[]),r.lineDashOffset=s.dashOffset,r.beginPath(),k_(e,n,o,i),r.closePath(),r.stroke(),r.restore())}function oz(e,t,n){return Pi(e,{label:n,index:t,type:"pointLabel"})}class oo extends Ya{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=pe(Ou(this.options)/2),n=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(n,i)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=jt(t)&&!isNaN(t)?t:0,this.max=jt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Ou(this.options))}generateTickLabels(t){Ya.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,i)=>{const s=Tt(this.options.pointLabels.callback,[n,i],this);return s||s===0?s:""}).filter((n,i)=>this.chart.getDataVisibility(i))}fit(){const t=this.options;t.display&&t.pointLabels.display?XA(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,i,s){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,i,s))}getIndexAngle(t){const n=Pt/(this._pointLabels.length||1),i=this.options.startAngle||0;return he(t*n+un(i))}getDistanceFromCenterForValue(t){if(st(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(st(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const i=n[t];return oz(this.getContext(),t,i)}}getPointPosition(t,n,i=0){const s=this.getIndexAngle(t)-Ht+i;return{x:Math.cos(s)*n+this.xCenter,y:Math.sin(s)*n+this.yCenter,angle:s}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:i,right:s,bottom:r}=this._pointLabelItems[t];return{left:n,top:i,right:s,bottom:r}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),k_(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:i,grid:s,border:r}=n,o=this._pointLabels.length;let a,l,c;if(n.pointLabels.display&&sz(this,o),s.display&&this.ticks.forEach((u,f)=>{if(f!==0||f===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(f),d=s.setContext(h),g=r.setContext(h);rz(this,d,l,o,g)}}),i.display){for(t.save(),a=o-1;a>=0;a--){const u=i.setContext(this.getPointLabelContext(a)),{color:f,lineWidth:h}=u;!h||!f||(t.lineWidth=h,t.strokeStyle=f,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,i=n.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let r,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const c=i.setContext(this.getContext(l)),u=Kt(c.font);if(r=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,o=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const f=pe(c.backdropPadding);t.fillRect(-o/2-f.left,-r-u.size/2-f.top,o+f.width,u.size+f.height)}ss(t,a.label,0,-r,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}$(oo,"id","radialLinear"),$(oo,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:xa.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),$(oo,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),$(oo,"descriptors",{angleLines:{_fallback:"grid"}});const Ka={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ee=Object.keys(Ka);function T_(e,t){return e-t}function M_(e,t){if(st(t))return null;const n=e._adapter,{parser:i,round:s,isoWeekday:r}=e._parseOpts;let o=t;return typeof i=="function"&&(o=i(o)),jt(o)||(o=typeof i=="string"?n.parse(o,i):n.parse(o)),o===null?null:(s&&(o=s==="week"&&(Us(r)||r===!0)?n.startOf(o,"isoWeek",r):n.startOf(o,s)),+o)}function C_(e,t,n,i){const s=Ee.length;for(let r=Ee.indexOf(e);r<s-1;++r){const o=Ka[Ee[r]],a=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(a*o.size))<=i)return Ee[r]}return Ee[s-1]}function az(e,t,n,i,s){for(let r=Ee.length-1;r>=Ee.indexOf(n);r--){const o=Ee[r];if(Ka[o].common&&e._adapter.diff(s,i,o)>=t-1)return o}return Ee[n?Ee.indexOf(n):0]}function lz(e){for(let t=Ee.indexOf(e)+1,n=Ee.length;t<n;++t)if(Ka[Ee[t]].common)return Ee[t]}function P_(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:i,hi:s}=Yc(n,t),r=n[i]>=t?n[i]:n[s];e[r]=!0}}function cz(e,t,n,i){const s=e._adapter,r=+s.startOf(t[0].value,i),o=t[t.length-1].value;let a,l;for(a=r;a<=o;a=+s.add(a,1,i))l=n[a],l>=0&&(t[l].major=!0);return t}function O_(e,t,n){const i=[],s={},r=t.length;let o,a;for(o=0;o<r;++o)a=t[o],s[a]=o,i.push({value:a,major:!1});return r===0||!n?i:cz(e,i,s,n)}class ao extends fs{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const i=t.time||(t.time={}),s=this._adapter=new _P._date(t.adapters.date);s.init(n),Br(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:M_(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,i=t.time.unit||"day";let{min:s,max:r,minDefined:o,maxDefined:a}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(s=Math.min(s,c.min)),!a&&!isNaN(c.max)&&(r=Math.max(r,c.max))}(!o||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),s=jt(s)&&!isNaN(s)?s:+n.startOf(Date.now(),i),r=jt(r)&&!isNaN(r)?r:+n.endOf(Date.now(),i)+1,this.min=Math.min(s,r-1),this.max=Math.max(s+1,r)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],i=t[t.length-1]),{min:n,max:i}}buildTicks(){const t=this.options,n=t.time,i=t.ticks,s=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const r=this.min,o=this.max,a=jM(s,r,o);return this._unit=n.unit||(i.autoSkip?C_(n.minUnit,this.min,this.max,this._getLabelCapacity(r)):az(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:lz(this._unit),this.initOffsets(s),t.reverse&&a.reverse(),O_(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,i=0,s,r;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),t.length===1?n=1-s:n=(this.getDecimalForValue(t[1])-s)/2,r=this.getDecimalForValue(t[t.length-1]),t.length===1?i=r:i=(r-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=Gt(n,0,o),i=Gt(i,0,o),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const t=this._adapter,n=this.min,i=this.max,s=this.options,r=s.time,o=r.unit||C_(r.minUnit,n,i,this._getLabelCapacity(n)),a=nt(s.ticks.stepSize,1),l=o==="week"?r.isoWeekday:!1,c=Us(l)||l===!0,u={};let f=n,h,d;if(c&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,c?"day":o),t.diff(i,n,o)>1e5*a)throw new Error(n+" and "+i+" are too far apart with stepSize of "+a+" "+o);const g=s.ticks.source==="data"&&this.getDataTimestamps();for(h=f,d=0;h<i;h=+t.add(h,a,o),d++)P_(u,h,g);return(h===i||s.bounds==="ticks"||d===1)&&P_(u,h,g),Object.keys(u).sort(T_).map(p=>+p)}getLabelForValue(t){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(t,i.tooltipFormat):n.format(t,i.displayFormats.datetime)}format(t,n){const s=this.options.time.displayFormats,r=this._unit,o=n||s[r];return this._adapter.format(t,o)}_tickFormatFunction(t,n,i,s){const r=this.options,o=r.ticks.callback;if(o)return Tt(o,[t,n,i],this);const a=r.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],f=c&&a[c],h=i[n],d=c&&f&&h&&h.major;return this._adapter.format(t,s||(d?f:u))}generateTickLabels(t){let n,i,s;for(n=0,i=t.length;n<i;++n)s=t[n],s.label=this._tickFormatFunction(s.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,i=this.ctx.measureText(t).width,s=un(this.isHorizontal()?n.maxRotation:n.minRotation),r=Math.cos(s),o=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:i*r+a*o,h:i*o+a*r}}_getLabelCapacity(t){const n=this.options.time,i=n.displayFormats,s=i[n.unit]||i.millisecond,r=this._tickFormatFunction(t,0,O_(this,[t],this._majorUnit),s),o=this._getLabelSize(r),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,i;if(t.length)return t;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,i=s.length;n<i;++n)t=t.concat(s[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,i;if(t.length)return t;const s=this.getLabels();for(n=0,i=s.length;n<i;++n)t.push(M_(this,s[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Og(t.sort(T_))}}$(ao,"id","time"),$(ao,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Xa(e,t,n){let i=0,s=e.length-1,r,o,a,l;n?(t>=e[i].pos&&t<=e[s].pos&&({lo:i,hi:s}=qn(e,"pos",t)),{pos:r,time:a}=e[i],{pos:o,time:l}=e[s]):(t>=e[i].time&&t<=e[s].time&&({lo:i,hi:s}=qn(e,"time",t)),{time:r,pos:a}=e[i],{time:o,pos:l}=e[s]);const c=o-r;return c?a+(l-a)*(t-r)/c:a}class Au extends ao{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Xa(n,this.min),this._tableRange=Xa(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:i}=this,s=[],r=[];let o,a,l,c,u;for(o=0,a=t.length;o<a;++o)c=t[o],c>=n&&c<=i&&s.push(c);if(s.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(o=0,a=s.length;o<a;++o)u=s[o+1],l=s[o-1],c=s[o],Math.round((u+l)/2)!==c&&r.push({time:c,pos:o/(a-1)});return r}_generate(){const t=this.min,n=this.max;let i=super.getDataTimestamps();return(!i.includes(t)||!i.length)&&i.splice(0,0,t),(!i.includes(n)||i.length===1)&&i.push(n),i.sort((s,r)=>s-r)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?t=this.normalize(n.concat(i)):t=n.length?n:i,t=this._cache.all=t,t}getDecimalForValue(t){return(Xa(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return Xa(this._table,i*this._tableRange+this._minPos,!0)}}$(Au,"id","timeseries"),$(Au,"defaults",ao.defaults);var uz=Object.freeze({__proto__:null,CategoryScale:Mu,LinearScale:Cu,LogarithmicScale:Pu,RadialLinearScale:oo,TimeScale:ao,TimeSeriesScale:Au});const fz=[mP,UO,jA,uz],hz={key:0,class:"text-center mb-8 reveal-up"},dz={key:0,class:"text-4xl lg:text-5xl font-heading font-bold mb-3"},pz={key:1,class:"text-lg lg:text-xl opacity-60"},gz={class:"flex-1 flex items-center justify-center reveal-zoom max-w-5xl mx-auto w-full"},mz={class:"w-full h-full min-h-[300px] lg:min-h-[400px] relative"},_z=Zt({__name:"LayoutChart",props:{data:{}},setup(e){ti.register(...fz);const t=e,n=Je(null);let i=null;const s=(l,c)=>{if(!l){const u=["rgba(59, 130, 246, 0.8)","rgba(16, 185, 129, 0.8)","rgba(245, 158, 11, 0.8)","rgba(239, 68, 68, 0.8)","rgba(139, 92, 246, 0.8)","rgba(236, 72, 153, 0.8)"];return u[c%u.length]}switch(l){case"c:p":return getComputedStyle(document.documentElement).getPropertyValue("--lumina-colors-primary").trim()||"#3b82f6";case"c:s":return getComputedStyle(document.documentElement).getPropertyValue("--lumina-colors-secondary").trim()||"#10b981";case"c:m":return getComputedStyle(document.documentElement).getPropertyValue("--lumina-colors-muted").trim()||"#9ca3af";default:return l}},r=(l,c)=>{var f;const u=[];for(let h=0;h<c;h++)u.push(s((f=l[0])==null?void 0:f.color,h));return u},o=Nt(()=>{const{chartType:l,data:c}=t.data,u=l==="pie"||l==="doughnut";return{type:l,data:{labels:c.labels,datasets:c.datasets.map((f,h)=>({label:f.label,data:f.values,backgroundColor:u?r(c.datasets,c.labels.length):s(f.color,h),borderColor:u?"rgba(0, 0, 0, 0.2)":s(f.color,h),borderWidth:2,tension:l==="line"?.4:0,fill:l==="line"?!1:void 0}))},options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!0,position:"bottom",labels:{color:"rgba(255, 255, 255, 0.7)",padding:20,font:{family:"Inter, system-ui, sans-serif",size:12}}},tooltip:{backgroundColor:"rgba(0, 0, 0, 0.8)",titleColor:"#fff",bodyColor:"rgba(255, 255, 255, 0.8)",padding:12,cornerRadius:8,titleFont:{family:"Inter, system-ui, sans-serif",weight:"bold"},bodyFont:{family:"Inter, system-ui, sans-serif"}}},scales:u?{}:{x:{grid:{color:"rgba(255, 255, 255, 0.05)"},ticks:{color:"rgba(255, 255, 255, 0.6)",font:{family:"Inter, system-ui, sans-serif"}}},y:{grid:{color:"rgba(255, 255, 255, 0.05)"},ticks:{color:"rgba(255, 255, 255, 0.6)",font:{family:"Inter, system-ui, sans-serif"}}}}}}}),a=()=>{if(!n.value)return;i&&i.destroy();const l=n.value.getContext("2d");l&&(i=new ti(l,o.value))};return Fi(()=>{setTimeout(a,50)}),$i(()=>{i&&(i.destroy(),i=null)}),xs(()=>t.data,()=>{a()},{deep:!0}),(l,c)=>(q(),xe(wi,{data:e.data},{default:cn(()=>[E("div",{class:it(["w-full flex flex-col justify-center p-8 lg:p-16",e.data.sizing==="container"?"min-h-full py-8":"min-h-screen"])},[e.data.title||e.data.subtitle?(q(),ot("div",hz,[e.data.title?(q(),ot("h2",dz,ht(e.data.title),1)):ve("",!0),e.data.subtitle?(q(),ot("p",pz,ht(e.data.subtitle),1)):ve("",!0)])):ve("",!0),E("div",gz,[E("div",mz,[E("canvas",{ref_key:"chartCanvas",ref:n},null,512)])])],2)]),_:1},8,["data"]))}}),lo={default:{colors:{primary:"#3b82f6",background:"#030303",text:"#ffffff",muted:"#9ca3af"},fonts:{heading:"Inter, sans-serif",body:"Inter, sans-serif",mono:"monospace"}},ocean:{colors:{primary:"#06b6d4",background:"#0f172a",text:"#f0f9ff",muted:"#94a3b8"},fonts:{heading:"Outfit, sans-serif",body:"Inter, sans-serif"}},midnight:{colors:{primary:"#6366f1",background:"#000000",text:"#e0e7ff",muted:"#6b7280"}},forest:{colors:{primary:"#10b981",background:"#022c22",text:"#ecfdf5",muted:"#6ee7b7"}},cyber:{colors:{primary:"#f472b6",background:"#18181b",text:"#ffffff",muted:"#a1a1aa"},fonts:{heading:"Orbitron, sans-serif",body:"Rajdhani, sans-serif"}},latte:{colors:{primary:"#d97706",background:"#fffbeb",text:"#451a03",muted:"#92400e"},fonts:{heading:"Playfair Display, serif",body:"Lato, sans-serif"}}},A_="lumina-theme-styles";class bz{static inject(t){let n;typeof t=="string"?n=lo[t]||lo.default:(n={...lo.default,...t},t.colors&&(n.colors={...lo.default.colors,...t.colors}),t.fonts&&(n.fonts={...lo.default.fonts,...t.fonts}));let i=document.getElementById(A_);i||(i=document.createElement("style"),i.id=A_,document.head.appendChild(i));const s=this.generateVars(n);i.innerHTML=`:root { ${s} }`}static generateVars(t){const n=[];if(t.colors){for(const[i,s]of Object.entries(t.colors))if(s){n.push(`--lumina-colors-${i}: ${s};`);const r=this.hexToRgb(s);r&&n.push(`--lumina-colors-${i}-rgb: ${r.r}, ${r.g}, ${r.b};`)}}if(t.fonts)for(const[i,s]of Object.entries(t.fonts))s&&n.push(`--lumina-font-${i}: ${s};`);return n.join(" ")}static hexToRgb(t){const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null}}class yz{constructor(t,n={}){$(this,"app");$(this,"store");$(this,"speakerWindow",null);$(this,"speakerChannel",null);$(this,"speakerChannelId");$(this,"speakerUnsubscribe",null);this.selector=t,this.speakerChannelId=`lumina-speaker-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,this.store=MS(n),n.theme&&bz.inject(n.theme),this.app=Rh(ug),this.app.provide(vr,this.store),xs(()=>this.store.state.currentIndex,(i,s)=>{var o;const r=(o=this.store.state.deck)==null?void 0:o.slides[i];r&&Vn.emit("slideChange",{index:i,previousIndex:s??0,slide:r}),this.syncSpeakerNotes()}),this.app.component("layout-statement",zT),this.app.component("layout-half",$T),this.app.component("layout-features",BT),this.app.component("layout-timeline",XT),this.app.component("layout-steps",GT),this.app.component("layout-flex",tM),this.app.component("layout-auto",eM),this.app.component("layout-custom",iM),this.app.component("layout-chart",_z),Vn.on("action",i=>{this.store.recordAction(i)}),this.app.mount(this.selector)}load(t){this.store.loadDeck(t),Vn.emit("ready",t),this.syncSpeakerNotes()}patch(t){this.store.patchDeck(t),this.syncSpeakerNotes()}exportState(){const{currentIndex:t,deck:n,actionHistory:i}=this.store.state,s=n==null?void 0:n.slides[t],r=i.map(a=>`User ${a.type}ed on ${a.label||a.value}`).join(" -> "),o=i.length>5?"High Engagement":"Low Engagement";return Object.freeze({status:"active",currentSlide:{index:t,id:(s==null?void 0:s.id)||t,type:s==null?void 0:s.type,title:(s&&"title"in s?s.title:null)||"(No Title)"},narrative:`User is currently on slide ${t+1}. Session Flow: ${r||"Just started"}.`,engagementLevel:o,history:[...i]})}on(t,n){Vn.on(t,n)}off(t,n){Vn.off(t,n)}destroy(){this.closeSpeakerNotes(),this.app&&(this.app.unmount(),this.app=null),Vn.clear()}get currentSlideIndex(){return this.store.state.currentIndex}goTo(t){this.store.goto(t),this.syncSpeakerNotes()}next(){this.store.next(),this.syncSpeakerNotes()}prev(){this.store.prev(),this.syncSpeakerNotes()}openSpeakerNotes(){if(this.speakerWindow&&!this.speakerWindow.closed)return this.speakerWindow.focus(),this.speakerWindow;if(!Hs.isSupported())return console.error("[Lumina] BroadcastChannel not supported. Speaker notes require a modern browser."),null;const t=600,n=800,i=window.screenX+window.outerWidth,s=window.screenY;if(this.speakerWindow=window.open("about:blank",`lumina-speaker-notes-${this.speakerChannelId}`,`width=${t},height=${n},left=${i},top=${s},resizable=yes,scrollbars=yes`),!this.speakerWindow)return console.warn("[Lumina] Popup blocked. Please allow popups for speaker notes."),null;const r=this.speakerWindow;return r.document.open(),r.document.write(`
55
+ */var If,Mn,Nr,fa,sr,Df,da,qy=function(){return typeof window<"u"},mn={},or=180/Math.PI,Rr=Math.PI/180,Fr=Math.atan2,Mf=1e8,ha=/([A-Z])/g,Yy=/(left|right|width|margin|padding|x)/i,Gy=/[\s,\(]\S/,Gt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},pa=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},Xy=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},Qy=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},eb=function(e,n){return n.set(n.t,n.p,e===1?n.e:e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},tb=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},Nf=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},Rf=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},nb=function(e,n,r){return e.style[n]=r},rb=function(e,n,r){return e.style.setProperty(n,r)},ib=function(e,n,r){return e._gsap[n]=r},sb=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},ob=function(e,n,r,i,s){var o=e._gsap;o.scaleX=o.scaleY=r,o.renderTransform(s,o)},ab=function(e,n,r,i,s){var o=e._gsap;o[n]=r,o.renderTransform(s,o)},ze="transform",ut=ze+"Origin",lb=function t(e,n){var r=this,i=this.target,s=i.style,o=i._gsap;if(e in mn&&s){if(this.tfm=this.tfm||{},e!=="transform")e=Gt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=gn(i,a)}):this.tfm[e]=o.x?o[e]:gn(i,e),e===ut&&(this.tfm.zOrigin=o.zOrigin);else return Gt.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf(ze)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ut,n,"")),e=ze}(s||n)&&this.props.push(e,n,s[e])},Ff=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},cb=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,s,o;for(s=0;s<e.length;s+=3)e[s+1]?e[s+1]===2?n[e[s]](e[s+2]):n[e[s]]=e[s+2]:e[s+2]?r[e[s]]=e[s+2]:r.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(ha,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)i[o]=this.tfm[o];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),s=da(),(!s||!s.isStart)&&!r[ze]&&(Ff(r),i.zOrigin&&r[ut]&&(r[ut]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Zf=function(e,n){var r={target:e,props:[],revert:cb,save:lb};return e._gsap||ct.core.getCache(e),n&&e.style&&e.nodeType&&n.split(",").forEach(function(i){return r.save(i)}),r},Lf,_a=function(e,n){var r=Mn.createElementNS?Mn.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Mn.createElement(e);return r&&r.style?r:Mn.createElement(e)},wt=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(ha,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Zr(n)||n,1)||""},jf="O,Moz,ms,Ms,Webkit".split(","),Zr=function(e,n,r){var i=n||sr,s=i.style,o=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);o--&&!(jf[o]+e in s););return o<0?null:(o===3?"ms":o>=0?jf[o]:"")+e},ma=function(){qy()&&window.document&&(If=window,Mn=If.document,Nr=Mn.documentElement,sr=_a("div")||{style:{}},_a("div"),ze=Zr(ze),ut=ze+"Origin",sr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Lf=!!Zr("perspective"),da=ct.core.reverting,fa=1)},Uf=function(e){var n=e.ownerSVGElement,r=_a("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),s;i.style.display="block",r.appendChild(i),Nr.appendChild(r);try{s=i.getBBox()}catch{}return r.removeChild(i),Nr.removeChild(r),s},Bf=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},Vf=function(e){var n,r;try{n=e.getBBox()}catch{n=Uf(e),r=1}return n&&(n.width||n.height)||r||(n=Uf(e)),n&&!n.width&&!n.x&&!n.y?{x:+Bf(e,["x","cx","x1"])||0,y:+Bf(e,["y","cy","y1"])||0,width:0,height:0}:n},Hf=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Vf(e))},Nn=function(e,n){if(n){var r=e.style,i;n in mn&&n!==ut&&(n=ze),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(ha,"-$1").toLowerCase())):r.removeAttribute(n)}},Rn=function(e,n,r,i,s,o){var a=new lt(e._pt,n,r,0,1,o?Rf:Nf);return e._pt=a,a.b=i,a.e=s,e._props.push(r),a},Wf={deg:1,rad:1,turn:1},ub={grid:1,flex:1},Fn=function t(e,n,r,i){var s=parseFloat(r)||0,o=(r+"").trim().substr((s+"").length)||"px",a=sr.style,l=Yy.test(n),u=e.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),f=100,d=i==="px",h=i==="%",_,p,b,w;if(i===o||!s||Wf[i]||Wf[o])return s;if(o!=="px"&&!d&&(s=t(e,n,r,"px")),w=e.getCTM&&Hf(e),(h||o==="%")&&(mn[n]||~n.indexOf("adius")))return _=w?e.getBBox()[l?"width":"height"]:e[c],$e(h?s/_*f:s/100*_);if(a[l?"width":"height"]=f+(d?o:i),p=i!=="rem"&&~n.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,w&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===Mn||!p.appendChild)&&(p=Mn.body),b=p._gsap,b&&h&&b.width&&l&&b.time===xt.time&&!b.uncache)return $e(s/b.width*f);if(h&&(n==="height"||n==="width")){var k=e.style[n];e.style[n]=f+i,_=e[c],k?e.style[n]=k:Nn(e,n)}else(h||o==="%")&&!ub[wt(p,"display")]&&(a.position=wt(e,"position")),p===e&&(a.position="static"),p.appendChild(sr),_=sr[c],p.removeChild(sr),a.position="absolute";return l&&h&&(b=er(p),b.time=xt.time,b.width=p[c]),$e(d?_*s/f:_&&s?f/_*s:0)},gn=function(e,n,r,i){var s;return fa||ma(),n in Gt&&n!=="transform"&&(n=Gt[n],~n.indexOf(",")&&(n=n.split(",")[0])),mn[n]&&n!=="transform"?(s=ki(e,i),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:Ps(wt(e,ut))+" "+s.zOrigin+"px"):(s=e.style[n],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=$s[n]&&$s[n](e,n,r)||wt(e,n)||Ku(e,n)||(n==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?Fn(e,n,s,r)+r:s},fb=function(e,n,r,i){if(!r||r==="none"){var s=Zr(n,e,1),o=s&&wt(e,s,1);o&&o!==r?(n=s,r=o):n==="borderColor"&&(r=wt(e,"borderTopColor"))}var a=new lt(this._pt,e.style,n,0,1,Ef),l=0,u=0,c,f,d,h,_,p,b,w,k,T,x,y;if(a.b=r,a.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=wt(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(p=e.style[n],e.style[n]=i,i=wt(e,n)||i,p?e.style[n]=p:Nn(e,n)),c=[r,i],yf(c),r=c[0],i=c[1],d=r.match(Er)||[],y=i.match(Er)||[],y.length){for(;f=Er.exec(i);)b=f[0],k=i.substring(l,f.index),_?_=(_+1)%5:(k.substr(-5)==="rgba("||k.substr(-5)==="hsla(")&&(_=1),b!==(p=d[u++]||"")&&(h=parseFloat(p)||0,x=p.substr((h+"").length),b.charAt(1)==="="&&(b=$r(h,b)+x),w=parseFloat(b),T=b.substr((w+"").length),l=Er.lastIndex-T.length,T||(T=T||mt.units[n]||x,l===i.length&&(i+=T,a.e+=T)),x!==T&&(h=Fn(e,n,p,T)||0),a._pt={_next:a._pt,p:k||u===1?k:",",s:h,c:w-h,m:_&&_<4||n==="zIndex"?Math.round:0});a.c=l<i.length?i.substring(l,i.length):""}else a.r=n==="display"&&i==="none"?Rf:Nf;return Uu.test(i)&&(a.e=0),this._pt=a,a},Jf={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},db=function(e){var n=e.split(" "),r=n[0],i=n[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(e=r,r=i,i=e),n[0]=Jf[r]||r,n[1]=Jf[i]||i,n.join(" ")},hb=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,i=r.style,s=n.u,o=r._gsap,a,l,u;if(s==="all"||s===!0)i.cssText="",l=1;else for(s=s.split(","),u=s.length;--u>-1;)a=s[u],mn[a]&&(l=1,a=a==="transformOrigin"?ut:ze),Nn(r,a);l&&(Nn(r,ze),o&&(o.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",ki(r,1),o.uncache=1,Ff(i)))}},$s={clearProps:function(e,n,r,i,s){if(s.data!=="isFromStart"){var o=e._pt=new lt(e._pt,n,r,0,0,hb);return o.u=i,o.pr=-10,o.tween=s,e._props.push(r),1}}},Si=[1,0,0,1,0,0],Kf={},qf=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Yf=function(e){var n=wt(e,ze);return qf(n)?Si:n.substr(7).match(ju).map($e)},ga=function(e,n){var r=e._gsap||er(e),i=e.style,s=Yf(e),o,a,l,u;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?Si:s):(s===Si&&!e.offsetParent&&e!==Nr&&!r.svg&&(l=i.display,i.display="block",o=e.parentNode,(!o||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,a=e.nextElementSibling,Nr.appendChild(e)),s=Yf(e),l?i.display=l:Nn(e,"display"),u&&(a?o.insertBefore(e,a):o?o.appendChild(e):Nr.removeChild(e))),n&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},va=function(e,n,r,i,s,o){var a=e._gsap,l=s||ga(e,!0),u=a.xOrigin||0,c=a.yOrigin||0,f=a.xOffset||0,d=a.yOffset||0,h=l[0],_=l[1],p=l[2],b=l[3],w=l[4],k=l[5],T=n.split(" "),x=parseFloat(T[0])||0,y=parseFloat(T[1])||0,E,P,D,v;r?l!==Si&&(P=h*b-_*p)&&(D=x*(b/P)+y*(-p/P)+(p*k-b*w)/P,v=x*(-_/P)+y*(h/P)-(h*k-_*w)/P,x=D,y=v):(E=Vf(e),x=E.x+(~T[0].indexOf("%")?x/100*E.width:x),y=E.y+(~(T[1]||T[0]).indexOf("%")?y/100*E.height:y)),i||i!==!1&&a.smooth?(w=x-u,k=y-c,a.xOffset=f+(w*h+k*p)-w,a.yOffset=d+(w*_+k*b)-k):a.xOffset=a.yOffset=0,a.xOrigin=x,a.yOrigin=y,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[ut]="0px 0px",o&&(Rn(o,a,"xOrigin",u,x),Rn(o,a,"yOrigin",c,y),Rn(o,a,"xOffset",f,a.xOffset),Rn(o,a,"yOffset",d,a.yOffset)),e.setAttribute("data-svg-origin",x+" "+y)},ki=function(e,n){var r=e._gsap||new Sf(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,s=r.scaleX<0,o="px",a="deg",l=getComputedStyle(e),u=wt(e,ut)||"0",c,f,d,h,_,p,b,w,k,T,x,y,E,P,D,v,S,N,O,B,Y,se,Q,G,te,It,Qt,St,Ne,Ci,Ft,vn;return c=f=d=p=b=w=k=T=x=0,h=_=1,r.svg=!!(e.getCTM&&Hf(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[ze]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[ze]!=="none"?l[ze]:"")),i.scale=i.rotate=i.translate="none"),P=ga(e,r.svg),r.svg&&(r.uncache?(te=e.getBBox(),u=r.xOrigin-te.x+"px "+(r.yOrigin-te.y)+"px",G=""):G=!n&&e.getAttribute("data-svg-origin"),va(e,G||u,!!G||r.originIsAbsolute,r.smooth!==!1,P)),y=r.xOrigin||0,E=r.yOrigin||0,P!==Si&&(N=P[0],O=P[1],B=P[2],Y=P[3],c=se=P[4],f=Q=P[5],P.length===6?(h=Math.sqrt(N*N+O*O),_=Math.sqrt(Y*Y+B*B),p=N||O?Fr(O,N)*or:0,k=B||Y?Fr(B,Y)*or+p:0,k&&(_*=Math.abs(Math.cos(k*Rr))),r.svg&&(c-=y-(y*N+E*B),f-=E-(y*O+E*Y))):(vn=P[6],Ci=P[7],Qt=P[8],St=P[9],Ne=P[10],Ft=P[11],c=P[12],f=P[13],d=P[14],D=Fr(vn,Ne),b=D*or,D&&(v=Math.cos(-D),S=Math.sin(-D),G=se*v+Qt*S,te=Q*v+St*S,It=vn*v+Ne*S,Qt=se*-S+Qt*v,St=Q*-S+St*v,Ne=vn*-S+Ne*v,Ft=Ci*-S+Ft*v,se=G,Q=te,vn=It),D=Fr(-B,Ne),w=D*or,D&&(v=Math.cos(-D),S=Math.sin(-D),G=N*v-Qt*S,te=O*v-St*S,It=B*v-Ne*S,Ft=Y*S+Ft*v,N=G,O=te,B=It),D=Fr(O,N),p=D*or,D&&(v=Math.cos(D),S=Math.sin(D),G=N*v+O*S,te=se*v+Q*S,O=O*v-N*S,Q=Q*v-se*S,N=G,se=te),b&&Math.abs(b)+Math.abs(p)>359.9&&(b=p=0,w=180-w),h=$e(Math.sqrt(N*N+O*O+B*B)),_=$e(Math.sqrt(Q*Q+vn*vn)),D=Fr(se,Q),k=Math.abs(D)>2e-4?D*or:0,x=Ft?1/(Ft<0?-Ft:Ft):0),r.svg&&(G=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!qf(wt(e,ze)),G&&e.setAttribute("transform",G))),Math.abs(k)>90&&Math.abs(k)<270&&(s?(h*=-1,k+=p<=0?180:-180,p+=p<=0?180:-180):(_*=-1,k+=k<=0?180:-180)),n=n||r.uncache,r.x=c-((r.xPercent=c&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+o,r.y=f-((r.yPercent=f&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+o,r.z=d+o,r.scaleX=$e(h),r.scaleY=$e(_),r.rotation=$e(p)+a,r.rotationX=$e(b)+a,r.rotationY=$e(w)+a,r.skewX=k+a,r.skewY=T+a,r.transformPerspective=x+o,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(i[ut]=Ps(u)),r.xOffset=r.yOffset=0,r.force3D=mt.force3D,r.renderTransform=r.svg?_b:Lf?Gf:pb,r.uncache=0,r},Ps=function(e){return(e=e.split(" "))[0]+" "+e[1]},ya=function(e,n,r){var i=Je(n);return $e(parseFloat(n)+parseFloat(Fn(e,"x",r+"px",i)))+i},pb=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,Gf(e,n)},ar="0deg",Ti="0px",lr=") ",Gf=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,o=r.x,a=r.y,l=r.z,u=r.rotation,c=r.rotationY,f=r.rotationX,d=r.skewX,h=r.skewY,_=r.scaleX,p=r.scaleY,b=r.transformPerspective,w=r.force3D,k=r.target,T=r.zOrigin,x="",y=w==="auto"&&e&&e!==1||w===!0;if(T&&(f!==ar||c!==ar)){var E=parseFloat(c)*Rr,P=Math.sin(E),D=Math.cos(E),v;E=parseFloat(f)*Rr,v=Math.cos(E),o=ya(k,o,P*v*-T),a=ya(k,a,-Math.sin(E)*-T),l=ya(k,l,D*v*-T+T)}b!==Ti&&(x+="perspective("+b+lr),(i||s)&&(x+="translate("+i+"%, "+s+"%) "),(y||o!==Ti||a!==Ti||l!==Ti)&&(x+=l!==Ti||y?"translate3d("+o+", "+a+", "+l+") ":"translate("+o+", "+a+lr),u!==ar&&(x+="rotate("+u+lr),c!==ar&&(x+="rotateY("+c+lr),f!==ar&&(x+="rotateX("+f+lr),(d!==ar||h!==ar)&&(x+="skew("+d+", "+h+lr),(_!==1||p!==1)&&(x+="scale("+_+", "+p+lr),k.style[ze]=x||"translate(0, 0)"},_b=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,o=r.x,a=r.y,l=r.rotation,u=r.skewX,c=r.skewY,f=r.scaleX,d=r.scaleY,h=r.target,_=r.xOrigin,p=r.yOrigin,b=r.xOffset,w=r.yOffset,k=r.forceCSS,T=parseFloat(o),x=parseFloat(a),y,E,P,D,v;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=Rr,u*=Rr,y=Math.cos(l)*f,E=Math.sin(l)*f,P=Math.sin(l-u)*-d,D=Math.cos(l-u)*d,u&&(c*=Rr,v=Math.tan(u-c),v=Math.sqrt(1+v*v),P*=v,D*=v,c&&(v=Math.tan(c),v=Math.sqrt(1+v*v),y*=v,E*=v)),y=$e(y),E=$e(E),P=$e(P),D=$e(D)):(y=f,D=d,E=P=0),(T&&!~(o+"").indexOf("px")||x&&!~(a+"").indexOf("px"))&&(T=Fn(h,"x",o,"px"),x=Fn(h,"y",a,"px")),(_||p||b||w)&&(T=$e(T+_-(_*y+p*P)+b),x=$e(x+p-(_*E+p*D)+w)),(i||s)&&(v=h.getBBox(),T=$e(T+i/100*v.width),x=$e(x+s/100*v.height)),v="matrix("+y+","+E+","+P+","+D+","+T+","+x+")",h.setAttribute("transform",v),k&&(h.style[ze]=v)},mb=function(e,n,r,i,s){var o=360,a=Me(s),l=parseFloat(s)*(a&&~s.indexOf("rad")?or:1),u=l-i,c=i+u+"deg",f,d;return a&&(f=s.split("_")[1],f==="short"&&(u%=o,u!==u%(o/2)&&(u+=u<0?o:-o)),f==="cw"&&u<0?u=(u+o*Mf)%o-~~(u/o)*o:f==="ccw"&&u>0&&(u=(u-o*Mf)%o-~~(u/o)*o)),e._pt=d=new lt(e._pt,n,r,i,u,Xy),d.e=c,d.u="deg",e._props.push(r),d},Xf=function(e,n){for(var r in n)e[r]=n[r];return e},gb=function(e,n,r){var i=Xf({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",o=r.style,a,l,u,c,f,d,h,_;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),o[ze]=n,a=ki(r,1),Nn(r,ze),r.setAttribute("transform",u)):(u=getComputedStyle(r)[ze],o[ze]=n,a=ki(r,1),o[ze]=u);for(l in mn)u=i[l],c=a[l],u!==c&&s.indexOf(l)<0&&(h=Je(u),_=Je(c),f=h!==_?Fn(r,l,u,_):parseFloat(u),d=parseFloat(c),e._pt=new lt(e._pt,a,l,f,d-f,pa),e._pt.u=_||0,e._props.push(l));Xf(a,i)};at("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",s="Left",o=(e<3?[n,r,i,s]:[n+s,n+r,i+r,i+s]).map(function(a){return e<2?t+a:"border"+a+t});$s[e>1?"border"+t:t]=function(a,l,u,c,f){var d,h;if(arguments.length<4)return d=o.map(function(_){return gn(a,_,u)}),h=d.join(" "),h.split(d[0]).length===5?d[0]:h;d=(c+"").split(" "),h={},o.forEach(function(_,p){return h[_]=d[p]=d[p]||d[(p-1)/2|0]}),a.init(l,h,f)}});var Qf={name:"css",register:ma,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,s){var o=this._props,a=e.style,l=r.vars.startAt,u,c,f,d,h,_,p,b,w,k,T,x,y,E,P,D,v;fa||ma(),this.styles=this.styles||Zf(e),D=this.styles.props,this.tween=r;for(p in n)if(p!=="autoRound"&&(c=n[p],!(vt[p]&&kf(p,n,r,i,e,s)))){if(h=typeof c,_=$s[p],h==="function"&&(c=c.call(r,i,e,s),h=typeof c),h==="string"&&~c.indexOf("random(")&&(c=gi(c)),_)_(this,e,p,c,r)&&(P=1);else if(p.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(p)+"").trim(),c+="",In.lastIndex=0,In.test(u)||(b=Je(u),w=Je(c),w?b!==w&&(u=Fn(e,p,u,w)+w):b&&(c+=b)),this.add(a,"setProperty",u,c,i,s,0,0,p),o.push(p),D.push(p,0,a[p]);else if(h!=="undefined"){if(l&&p in l?(u=typeof l[p]=="function"?l[p].call(r,i,e,s):l[p],Me(u)&&~u.indexOf("random(")&&(u=gi(u)),Je(u+"")||u==="auto"||(u+=mt.units[p]||Je(gn(e,p))||""),(u+"").charAt(1)==="="&&(u=gn(e,p))):u=gn(e,p),d=parseFloat(u),k=h==="string"&&c.charAt(1)==="="&&c.substr(0,2),k&&(c=c.substr(2)),f=parseFloat(c),p in Gt&&(p==="autoAlpha"&&(d===1&&gn(e,"visibility")==="hidden"&&f&&(d=0),D.push("visibility",0,a.visibility),Rn(this,a,"visibility",d?"inherit":"hidden",f?"inherit":"hidden",!f)),p!=="scale"&&p!=="transform"&&(p=Gt[p],~p.indexOf(",")&&(p=p.split(",")[0]))),T=p in mn,T){if(this.styles.save(p),v=c,h==="string"&&c.substring(0,6)==="var(--"){if(c=wt(e,c.substring(4,c.indexOf(")"))),c.substring(0,5)==="calc("){var S=e.style.perspective;e.style.perspective=c,c=wt(e,"perspective"),S?e.style.perspective=S:Nn(e,"perspective")}f=parseFloat(c)}if(x||(y=e._gsap,y.renderTransform&&!n.parseTransform||ki(e,n.parseTransform),E=n.smoothOrigin!==!1&&y.smooth,x=this._pt=new lt(this._pt,a,ze,0,1,y.renderTransform,y,0,-1),x.dep=1),p==="scale")this._pt=new lt(this._pt,y,"scaleY",y.scaleY,(k?$r(y.scaleY,k+f):f)-y.scaleY||0,pa),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){D.push(ut,0,a[ut]),c=db(c),y.svg?va(e,c,0,E,0,this):(w=parseFloat(c.split(" ")[2])||0,w!==y.zOrigin&&Rn(this,y,"zOrigin",y.zOrigin,w),Rn(this,a,p,Ps(u),Ps(c)));continue}else if(p==="svgOrigin"){va(e,c,1,E,0,this);continue}else if(p in Kf){mb(this,y,p,d,k?$r(d,k+c):c);continue}else if(p==="smoothOrigin"){Rn(this,y,"smooth",y.smooth,c);continue}else if(p==="force3D"){y[p]=c;continue}else if(p==="transform"){gb(this,c,e);continue}}else p in a||(p=Zr(p)||p);if(T||(f||f===0)&&(d||d===0)&&!Gy.test(c)&&p in a)b=(u+"").substr((d+"").length),f||(f=0),w=Je(c)||(p in mt.units?mt.units[p]:b),b!==w&&(d=Fn(e,p,u,w)),this._pt=new lt(this._pt,T?y:a,p,d,(k?$r(d,k+f):f)-d,!T&&(w==="px"||p==="zIndex")&&n.autoRound!==!1?tb:pa),this._pt.u=w||0,T&&v!==c?(this._pt.b=u,this._pt.e=v,this._pt.r=eb):b!==w&&w!=="%"&&(this._pt.b=u,this._pt.r=Qy);else if(p in a)fb.call(this,e,p,u,k?k+c:c);else if(p in e)this.add(e,p,u||e[p],k?k+c:c,i,s);else if(p!=="parseTransform"){jo(p,c);continue}T||(p in a?D.push(p,0,a[p]):typeof e[p]=="function"?D.push(p,2,e[p]()):D.push(p,1,u||e[p])),o.push(p)}}P&&$f(this)},render:function(e,n){if(n.tween._time||!da())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:gn,aliases:Gt,getSetter:function(e,n,r){var i=Gt[n];return i&&i.indexOf(",")<0&&(n=i),n in mn&&n!==ut&&(e._gsap.x||gn(e,"x"))?r&&Df===r?n==="scale"?sb:ib:(Df=r||{})&&(n==="scale"?ob:ab):e.style&&!No(e.style[n])?nb:~n.indexOf("-")?rb:oa(e,n)},core:{_removeProperty:Nn,_getMatrix:ga}};ct.utils.checkPrefix=Zr,ct.core.getStyleSaver=Zf,function(t,e,n,r){var i=at(t+","+e+","+n,function(s){mn[s]=1});at(e,function(s){mt.units[s]="deg",Kf[s]=1}),Gt[i[13]]=t+","+e,at(r,function(s){var o=s.split(":");Gt[o[1]]=i[o[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),at("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){mt.units[t]="px"}),ct.registerPlugin(Qf);var Xt=ct.registerPlugin(Qf)||ct;Xt.core.Tween;const vb={class:"h-full w-full relative flex flex-col text-white overflow-hidden",style:{"background-color":"var(--lumina-colors-background, #030303)",color:"var(--lumina-colors-text, #ffffff)"}},yb={class:"absolute inset-0 z-0 overflow-hidden pointer-events-none"},bb={key:0,class:"absolute top-0 right-0 p-6 z-50 flex gap-4 pointer-events-auto"},xb={class:"relative h-full w-full md:w-[450px] bg-[#0a0a0a]/95 border-l border-white/10 shadow-2xl overflow-auto text-left flex flex-col transform transition-transform duration-300"},wb={class:"p-6 pb-2 border-b border-white/5 flex items-center justify-between shrink-0"},Sb={class:"p-6"},kb={class:"text-[10px] font-mono text-green-400 whitespace-pre-wrap"},Tb={class:"flex-1 w-full relative overflow-y-auto overflow-x-hidden z-10 scroll-smooth"},zb={key:1,class:"absolute bottom-0 left-0 w-full z-40 px-8 py-6 bg-gradient-to-t from-black via-black/80 to-transparent flex justify-between items-end pointer-events-none"},Cb={key:0,class:"pointer-events-auto text-left"},Ob={class:"text-[10px] font-bold text-gray-500 tracking-[0.2em] uppercase mb-1"},Eb={class:"flex items-center gap-2 text-white/50 text-sm font-mono"},$b={key:0,class:"h-px w-8 bg-white/20"},Pb={key:1,class:"flex-1"},Ab={key:2,class:"pointer-events-auto flex gap-3"},Ib=["disabled"],Db=["disabled"],ed=Pe({__name:"LuminaDeck",setup(t){const{slide:e,index:n,total:r,next:i,prev:s,options:o}=Xv(),a=Sn(fi),l=Ce(()=>a.hasNext()),u=Ce(()=>a.hasPrev()),c=Ce(()=>{var x,y;return(y=(x=a.state.deck)==null?void 0:x.meta)==null?void 0:y.title}),f=Ce(()=>a.state.options.ui),d=Ce(()=>a.state.options.navigation);Qv();const h=it({showJson:!1}),_=Ce(()=>o.debug),p=Ce(()=>!e.value||!e.value.type?null:`layout-${e.value.type}`),b=Ce(()=>{var x,y,E,P,D,v,S,N;return{backgroundColor:((y=(x=e.value)==null?void 0:x.meta)==null?void 0:y.orbColor)||"var(--lumina-colors-primary, #3b82f6)",width:"60vw",height:"60vw",top:((D=(P=(E=e.value)==null?void 0:E.meta)==null?void 0:P.orbPos)==null?void 0:D.top)||"-20%",left:((N=(S=(v=e.value)==null?void 0:v.meta)==null?void 0:S.orbPos)==null?void 0:N.left)||"-10%"}}),w=x=>{hn.emit("action",x)},k=(x,y)=>{const E=x;E.style.opacity="1",y()},T=(x,y)=>{var S,N,O;const{options:E}=a.state;if(((S=E.animation)==null?void 0:S.enabled)===!1){y();return}const P=((N=E.animation)==null?void 0:N.durationOut)||.5,D=((O=E.animation)==null?void 0:O.type)||"cascade",v=Xt.timeline({onComplete:y});D==="fade"?v.to(x,{opacity:0,duration:P}):D==="zoom"?v.to(x,{opacity:0,scale:1.1,duration:P}):v.to(x,{opacity:0,y:-20,duration:P,ease:"power2.in"})};return(x,y)=>{var E,P,D,v;return V(),ee("div",vb,[$("div",yb,[$("div",{class:"ambient-orb",style:Lt(b.value)},null,4),y[6]||(y[6]=$("div",{class:"absolute inset-0 opacity-[0.04]",style:{"background-image":"url('https://grainy-gradients.vercel.app/noise.svg')"}},null,-1))]),_.value?(V(),ee("div",bb,[$("button",{onClick:y[0]||(y[0]=S=>h.value.showJson=!h.value.showJson),class:"w-8 h-8 rounded-full glass-panel flex items-center justify-center text-gray-400 hover:text-white transition",title:"JSON"},[...y[7]||(y[7]=[$("i",{class:"fa-solid fa-code text-xs"},null,-1)])])])):Qe("",!0),Fe(oc,{name:"fade"},{default:Rt(()=>[h.value.showJson?(V(),ee("div",{key:0,class:"fixed inset-0 z-[100] flex justify-end",onClick:y[3]||(y[3]=wc(S=>h.value.showJson=!1,["self"]))},[$("div",{class:"absolute inset-0 bg-black/20 backdrop-blur-sm transition-opacity",onClick:y[1]||(y[1]=S=>h.value.showJson=!1)}),$("div",xb,[$("div",wb,[y[9]||(y[9]=$("span",{class:"text-xs font-bold text-gray-400 uppercase tracking-widest"},"Slide Data",-1)),$("button",{onClick:y[2]||(y[2]=S=>h.value.showJson=!1),class:"w-8 h-8 rounded-full bg-white/5 hover:bg-white/10 flex items-center justify-center text-white/50 hover:text-white transition"},[...y[8]||(y[8]=[$("i",{class:"fa-solid fa-xmark"},null,-1)])])]),$("div",Sb,[$("pre",kb,ae(JSON.stringify(Bt(e),null,2)),1)])])])):Qe("",!0)]),_:1}),$("main",Tb,[Fe(oc,{css:!1,onLeave:T,onEnter:k,mode:"out-in"},{default:Rt(()=>[p.value?(V(),Xe(Xi(p.value),{key:Bt(n),data:Bt(e),onAction:w,class:"min-h-full w-full"},null,40,["data"])):Qe("",!0)]),_:1})]),(E=f.value)!=null&&E.visible?(V(),ee("div",zb,[(P=f.value)!=null&&P.showSlideCount?(V(),ee("div",Cb,[$("h2",Ob,ae(c.value),1),$("div",Eb,[$("span",null,ae((Bt(n)+1).toString().padStart(2,"0")),1),(D=f.value)!=null&&D.showProgressBar?(V(),ee("div",$b)):Qe("",!0),$("span",null,ae(Bt(r).toString().padStart(2,"0")),1)])])):(V(),ee("div",Pb)),(v=f.value)!=null&&v.showControls?(V(),ee("div",Ab,[$("button",{onClick:y[4]||(y[4]=(...S)=>Bt(s)&&Bt(s)(...S)),class:X(["w-12 h-12 rounded-full glass-panel hover:bg-white/10 flex items-center justify-center transition active:scale-95",!u.value||!d.value?"opacity-30 cursor-not-allowed":""]),disabled:!u.value||!d.value},[...y[10]||(y[10]=[$("i",{class:"fa-solid fa-arrow-left"},null,-1)])],10,Ib),$("button",{onClick:y[5]||(y[5]=(...S)=>Bt(i)&&Bt(i)(...S)),class:X(["w-12 h-12 rounded-full bg-white text-black hover:scale-105 flex items-center justify-center transition shadow-lg active:scale-95",!l.value||!d.value?"opacity-30 cursor-not-allowed":""]),disabled:!l.value||!d.value},[...y[11]||(y[11]=[$("i",{class:"fa-solid fa-arrow-right"},null,-1)])],10,Db)])):Qe("",!0)])):Qe("",!0)])}}}),At=class At{constructor(e){nt(this,"channel",null);nt(this,"handlers",new Set);nt(this,"lastTimestamp",0);nt(this,"heartbeatInterval",null);nt(this,"isConnected",!1);nt(this,"connectionHandlers",new Set);this.channelName=e,this.initChannel()}static getInstance(e,n=!1){return n?new At(e):(At.instances.has(e)||At.instances.set(e,new At(e)),At.instances.get(e))}static isSupported(){return typeof BroadcastChannel<"u"}initChannel(){if(!At.isSupported()){console.warn("[SpeakerChannel] BroadcastChannel not supported in this environment");return}try{this.channel=new BroadcastChannel(this.channelName),this.channel.onmessage=e=>{const n=e.data;if(!(n.timestamp&&n.timestamp===this.lastTimestamp)){if(n.action==="ping"){this.send({action:"pong"}),this.handlers.forEach(r=>{try{r(n)}catch(i){console.error("[SpeakerChannel] Handler error:",i)}});return}if(n.action==="pong"){this.setConnected(!0);return}if(n.action==="close"){this.setConnected(!1);return}this.handlers.forEach(r=>{try{r(n)}catch(i){console.error("[SpeakerChannel] Handler error:",i)}})}},this.channel.onmessageerror=e=>{console.error("[SpeakerChannel] Message error:",e)},this.startHeartbeat()}catch(e){console.error("[SpeakerChannel] Failed to initialize:",e)}}send(e){if(!this.channel)return;const n={...e,timestamp:Date.now(),channelId:this.channelName};this.lastTimestamp=n.timestamp,this.channel.postMessage(n)}subscribe(e){return this.handlers.add(e),()=>this.handlers.delete(e)}onConnectionChange(e){return this.connectionHandlers.add(e),e(this.isConnected),()=>this.connectionHandlers.delete(e)}get connected(){return this.isConnected}ping(){this.send({action:"ping"})}notifyClose(){this.send({action:"close"})}startHeartbeat(){this.ping(),this.heartbeatInterval=setInterval(()=>{(this.handlers.size>0||this.connectionHandlers.size>0)&&this.ping()},5e3)}setConnected(e){this.isConnected!==e&&(this.isConnected=e,this.connectionHandlers.forEach(n=>n(e)))}destroy(){this.notifyClose(),this.heartbeatInterval&&(clearInterval(this.heartbeatInterval),this.heartbeatInterval=null),this.channel&&(this.channel.close(),this.channel=null),this.handlers.clear(),this.connectionHandlers.clear(),At.instances.delete(this.channelName)}static destroyAll(){At.instances.forEach(e=>e.destroy()),At.instances.clear()}};nt(At,"instances",new Map);let Lr=At;const Mb={class:"speaker-notes"},Nb={class:"sn-header"},Rb={class:"sn-status"},Fb={class:"sn-slide-count"},Zb={class:"sn-content"},Lb={class:"sn-notes-section"},jb=["innerHTML"],Ub={key:1,class:"sn-notes-empty"},Bb={class:"sn-footer"},Vb={class:"sn-nav-controls"},Hb=["disabled"],Wb={class:"sn-timer-value"},Jb=["disabled"],Kb=Pe({__name:"LuminaSpeakerNotes",props:{channelId:{}},setup(t){const e=t,n=it(0),r=it(0),i=it(""),s=it(null),o=it(!1),a=it(null),l=it(0),u=it(!1),c=it(null),f=Ce(()=>r.value===0?"No slides loaded":`Slide ${n.value+1} / ${r.value}`),d=Ce(()=>{const v=Math.floor(l.value/3600),S=Math.floor(l.value%3600/60),N=l.value%60;return v>0?`${v.toString().padStart(2,"0")}:${S.toString().padStart(2,"0")}:${N.toString().padStart(2,"0")}`:`${S.toString().padStart(2,"0")}:${N.toString().padStart(2,"0")}`}),h=Ce(()=>n.value<r.value-1),_=Ce(()=>n.value>0);function p(v){return v?v.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/__(.*?)__/g,"<strong>$1</strong>").replace(new RegExp("(?<!\\*)\\*(?!\\*)(.*?)(?<!\\*)\\*(?!\\*)","g"),"<em>$1</em>").replace(new RegExp("(?<!_)_(?!_)(.*?)(?<!_)_(?!_)","g"),"<em>$1</em>").replace(/\n/g,"<br>").replace(/^[-*]\s+(.*)$/gm,"<li>$1</li>").replace(/(<li>.*<\/li>)/gs,"<ul>$1</ul>").replace(/<\/ul>\s*<ul>/g,""):""}function b(){const v=new URLSearchParams(window.location.search),S=e.channelId||v.get("channel")||"lumina-speaker-default";a.value=Lr.getInstance(S,!0),a.value.onConnectionChange(Y=>{o.value=Y}),a.value.subscribe(w);let N=0;const O=10,B=setInterval(()=>{var Y;if(r.value>0||N>=O){clearInterval(B);return}(Y=a.value)==null||Y.ping(),N++},300);a.value.ping()}function w(v){switch(v.action){case"state":v.index!==void 0&&(n.value=v.index),v.totalSlides!==void 0&&(r.value=v.totalSlides),v.currentNotes!==void 0&&(i.value=v.currentNotes),v.nextSlidePreview&&(s.value=v.nextSlidePreview);break;case"goto":v.index!==void 0&&(n.value=v.index);break}}function k(){var v;h.value&&((v=a.value)==null||v.send({action:"next"}))}function T(){var v;_.value&&((v=a.value)==null||v.send({action:"prev"}))}function x(){u.value||(u.value=!0,c.value=setInterval(()=>{l.value++},1e3))}function y(){u.value=!1,c.value&&(clearInterval(c.value),c.value=null)}function E(){u.value?y():x()}function P(){y(),l.value=0}function D(v){switch(v.key){case"ArrowRight":case" ":case"Enter":v.preventDefault(),k();break;case"ArrowLeft":case"Backspace":v.preventDefault(),T();break;case"t":case"T":v.preventDefault(),E();break;case"r":case"R":if(v.ctrlKey||v.metaKey)return;v.preventDefault(),P();break}}return Hn(()=>{b(),window.addEventListener("keydown",D),window.addEventListener("beforeunload",()=>{var v;(v=a.value)==null||v.notifyClose()})}),Wn(()=>{var v;y(),window.removeEventListener("keydown",D),(v=a.value)==null||v.destroy()}),(v,S)=>(V(),ee("div",Mb,[$("header",Nb,[S[0]||(S[0]=Kh('<div class="sn-title" data-v-63b98fd9><svg class="sn-logo" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-63b98fd9><path d="M12 2L2 7l10 5 10-5-10-5z" data-v-63b98fd9></path><path d="M2 17l10 5 10-5" data-v-63b98fd9></path><path d="M2 12l10 5 10-5" data-v-63b98fd9></path></svg><span data-v-63b98fd9>Lumina Speaker Notes</span></div>',1)),$("div",Rb,[$("span",{class:X(["sn-indicator",{connected:o.value}])},null,2),$("span",Fb,ae(f.value),1)])]),$("main",Zb,[$("section",Lb,[S[2]||(S[2]=$("h2",{class:"sn-section-title"},"Notes",-1)),i.value?(V(),ee("div",{key:0,class:"sn-notes-content",innerHTML:p(i.value)},null,8,jb)):(V(),ee("div",Ub,[...S[1]||(S[1]=[$("p",null,"No notes for this slide",-1)])]))])]),$("footer",Bb,[$("div",Vb,[$("button",{class:"sn-btn sn-btn-nav",disabled:!_.value,onClick:T,title:"Previous (← or Backspace)"},[...S[3]||(S[3]=[$("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[$("polyline",{points:"15 18 9 12 15 6"})],-1),$("span",null,"Prev",-1)])],8,Hb),$("div",{class:"sn-timer",onClick:E,title:"Click to start/pause (T)"},[$("span",{class:X(["sn-timer-icon",{running:u.value}])},ae(u.value?"⏸":"▶"),3),$("span",Wb,ae(d.value),1),$("button",{class:"sn-timer-reset",onClick:wc(P,["stop"]),title:"Reset timer (R)"},"↻")]),$("button",{class:"sn-btn sn-btn-nav sn-btn-primary",disabled:!h.value,onClick:k,title:"Next (→, Space, or Enter)"},[...S[4]||(S[4]=[$("span",null,"Next",-1),$("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[$("polyline",{points:"9 18 15 12 9 6"})],-1)])],8,Jb)])])]))}}),ba=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},qb=ba(Kb,[["__scopeId","data-v-63b98fd9"]]);function Yb(t,e){const n=Sn(fi);let r=null;const i=()=>{if(!t.value||!n)return;r==null||r.revert();const{enabled:s,type:o,durationIn:a,stagger:l,ease:u}=n.state.options.animation||{};if(s===!1){Xt.set(t.value.querySelectorAll(".reveal-up, .reveal-zoom, .reveal-content > *, .reveal-card, .reveal-img"),{opacity:1,y:0,scale:1,visibility:"visible"});return}r=Xt.context(()=>{const c=t.value,f=o==="fade",d=o==="slide",h=o==="zoom",_=f?0:d?80:40,p=h?.8:o==="cascade"?.95:1;c.querySelector(".reveal-up")&&Xt.set(".reveal-up",{y:_,opacity:0}),c.querySelector(".reveal-zoom")&&Xt.set(".reveal-zoom",{scale:p,opacity:0}),c.querySelector(".reveal-content > *")&&Xt.set(".reveal-content > *",{y:f?0:30,opacity:0}),c.querySelector(".reveal-card")&&Xt.set(".reveal-card",{y:f?0:50,opacity:0,scale:p}),c.querySelector(".reveal-img")&&Xt.set(".reveal-img",{scale:1.1,opacity:0});const b=Xt.timeline({defaults:{ease:u||"power3.out",duration:a||.8},onComplete:e});c.querySelector(".reveal-img")&&b.to(".reveal-img",{scale:1,opacity:1,duration:(a||1)*1.2,ease:"expo.out"},0);const w=a||.8,k=l||.1;c.querySelectorAll(".reveal-card").length&&b.to(".reveal-card",{y:0,opacity:1,scale:1,duration:w,stagger:k,ease:d?"expo.out":"back.out(1.2)"},.2);const T=c.querySelectorAll(".reveal-content > *");T.length&&b.to(T,{y:0,opacity:1,duration:w,stagger:k/2},.3),c.querySelectorAll(".reveal-up").length&&b.to(".reveal-up",{y:0,opacity:1,duration:w,stagger:k},.2),c.querySelector(".reveal-zoom")&&b.to(".reveal-zoom",{scale:1,opacity:1,duration:w*1.2,ease:"expo.out"},.1)},t)};return Hn(()=>{Qa(()=>{i()})}),Wn(()=>{r==null||r.revert()}),{animateIn:i}}const Gb={class:"absolute inset-0 z-0 pointer-events-none"},Xb={class:"relative z-10 w-full h-full"},Zn=Pe({__name:"BaseSlide",props:{data:{},customClass:{}},setup(t){const e=it(null);return Yb(e),(n,r)=>(V(),ee("div",{ref_key:"container",ref:e,class:X(["w-full min-h-full relative text-white",t.customClass])},[$("div",Gb,[bl(n.$slots,"background")]),$("div",Xb,[bl(n.$slots,"default")])],2))}}),Qb={class:"reveal-zoom max-w-5xl z-10"},e1={key:0,class:"inline-block px-4 py-1 rounded-full border text-sm font-medium tracking-widest uppercase mb-10",style:{color:"var(--lumina-colors-primary, #3b82f6)","border-color":"rgba(255,255,255,0.1)",background:"rgba(255,255,255,0.05)"}},t1={key:1,class:"text-xl md:text-3xl font-light max-w-3xl mx-auto leading-normal",style:{color:"var(--lumina-colors-muted, #9ca3af)"}},n1=Pe({__name:"LayoutStatement",props:{data:{}},setup(t){return(e,n)=>(V(),Xe(Zn,{data:t.data},{default:Rt(()=>[$("div",{class:X(["flex flex-col justify-center items-center text-center p-8 relative",t.data.sizing==="container"?"h-full":"min-h-screen"])},[$("div",Qb,[t.data.tag?(V(),ee("span",e1,ae(t.data.tag),1)):Qe("",!0),$("h1",{class:"font-bold leading-[1.1] tracking-tight mb-8 text-transparent bg-clip-text",style:Lt({fontSize:t.data.sizing==="container"?"3.5rem":"clamp(3rem, 10vw, 8rem)",fontFamily:"var(--lumina-font-heading, Inter, sans-serif)",backgroundImage:"linear-gradient(to bottom, var(--lumina-colors-text, #ffffff), var(--lumina-colors-muted, #6b7280))"})},ae(t.data.title),5),t.data.subtitle?(V(),ee("p",t1,ae(t.data.subtitle),1)):Qe("",!0)])],2)]),_:1},8,["data"]))}}),r1=["src"],i1={class:"reveal-content max-w-xl"},s1={class:"text-xs font-bold uppercase tracking-[0.2em] mb-6 block",style:{color:"var(--lumina-colors-primary, #3b82f6)"}},o1={class:"text-4xl lg:text-6xl font-heading font-bold leading-tight mb-8 text-white"},a1={class:"space-y-6 text-lg leading-relaxed font-light mb-10",style:{color:"var(--lumina-colors-muted, #9ca3af)"}},l1={key:0,class:"pt-6 border-t border-white/10"},c1=Pe({__name:"LayoutHalf",props:{data:{}},emits:["action"],setup(t){return(e,n)=>(V(),Xe(Zn,{data:t.data,customClass:"bg-[var(--lumina-bg)]"},{default:Rt(()=>[$("div",{class:X(["w-full flex flex-col lg:block relative",t.data.sizing==="container"?"min-h-full":"min-h-screen"])},[$("div",{class:X(["relative h-[40vh] lg:h-full lg:w-1/2 overflow-hidden z-0",t.data.sizing==="container"?"lg:absolute lg:top-0":"lg:fixed lg:top-0",t.data.imageSide==="right"?"lg:right-0 order-1":"lg:left-0 order-1"])},[n[1]||(n[1]=$("div",{class:"absolute inset-0 bg-black/20 z-10"},null,-1)),$("img",{src:t.data.image,class:"w-full h-full object-cover reveal-img scale-110 origin-center",alt:"Slide Image"},null,8,r1)],2),$("div",{class:X(["relative z-10 w-full lg:w-1/2 min-h-[60vh] flex flex-col justify-center p-8 lg:p-24 order-2 bg-[#050505]",t.data.imageSide==="right"?"lg:mr-[50%]":"lg:ml-[50%]",t.data.sizing==="container"?"lg:min-h-full":"lg:min-h-screen"])},[$("div",i1,[$("span",s1,ae(t.data.tag),1),$("h1",o1,ae(t.data.title),1),$("div",a1,[(V(!0),ee(Ee,null,vr(t.data.paragraphs,(r,i)=>(V(),ee("p",{key:i},ae(r),1))),128))]),t.data.cta?(V(),ee("div",l1,[$("button",{onClick:n[0]||(n[0]=r=>e.$emit("action",{type:"cta",label:t.data.cta})),class:"px-8 py-4 bg-white text-black font-bold rounded-lg hover:bg-gray-200 transition flex items-center gap-3"},[Kl(ae(t.data.cta)+" ",1),n[2]||(n[2]=$("i",{class:"fa-solid fa-arrow-right"},null,-1))])])):Qe("",!0)])],2)],2)]),_:1},8,["data"]))}}),u1={class:"mb-16 reveal-up text-center lg:text-left max-w-6xl"},f1=Pe({__name:"LayoutFeatures",props:{data:{}},setup(t){return(e,n)=>(V(),Xe(Zn,{data:t.data},{default:Rt(()=>[$("div",{class:X(["w-full flex flex-col justify-center p-8 lg:p-24",t.data.sizing==="container"?"min-h-full":"min-h-screen"])},[$("div",u1,[$("h2",{class:X(["font-heading font-bold mb-4",t.data.sizing==="container"?"text-3xl":"text-5xl"])},ae(t.data.title),3),$("p",{class:X([t.data.sizing==="container"?"text-sm":"text-xl"]),style:{color:"var(--lumina-colors-muted, #9ca3af)"}},ae(t.data.description),3)]),$("div",{class:X(["grid w-full",t.data.sizing==="container"?"grid-cols-1 gap-3":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"])},[(V(!0),ee(Ee,null,vr(t.data.features,(r,i)=>(V(),ee("div",{key:i,class:X(["glass-panel rounded-3xl hover:bg-white/5 transition duration-500 reveal-card group border-t border-white/5 hover:border-blue-500/50",t.data.sizing==="container"?"p-6":"p-8"])},[$("div",{class:X(["rounded-xl bg-white/5 flex items-center justify-center text-xl mb-6 group-hover:scale-110 transition duration-300",t.data.sizing==="container"?"w-10 h-10 mb-4":"w-12 h-12 mb-6"]),style:{color:"var(--lumina-colors-primary, #3b82f6)"}},[$("i",{class:X(["fa-solid",r.icon.startsWith("fa-")?r.icon:`fa-${r.icon}`])},null,2)],2),$("h3",{class:X(["font-bold mb-3 text-white",t.data.sizing==="container"?"text-lg":"text-2xl"])},ae(r.title),3),$("p",{class:X(["leading-relaxed",[t.data.sizing==="container"?"text-sm":""]]),style:{color:"var(--lumina-colors-muted, #9ca3af)"}},ae(r.desc),3)],2))),128))],2)],2)]),_:1},8,["data"]))}}),d1={class:"text-center mb-16 reveal-up"},h1={class:"text-5xl font-heading font-bold mb-4"},p1={key:0,class:"text-xl opacity-60"},_1={class:"relative max-w-6xl mx-auto w-full"},m1={class:"space-y-12"},g1={class:"text-sm font-bold tracking-widest uppercase text-blue-400 mb-1"},v1={class:"text-2xl font-bold"},y1={class:"text-lg opacity-60 leading-relaxed"},b1=Pe({__name:"LayoutTimeline",props:{data:{}},setup(t){return(e,n)=>(V(),Xe(Zn,{data:t.data},{default:Rt(()=>[$("div",{class:X(["w-full flex flex-col justify-center p-8 lg:p-24",t.data.sizing==="container"?"min-h-full py-12 lg:py-16":"min-h-screen"])},[$("div",d1,[$("h2",h1,ae(t.data.title),1),t.data.subtitle?(V(),ee("p",p1,ae(t.data.subtitle),1)):Qe("",!0)]),$("div",_1,[n[1]||(n[1]=$("div",{class:"absolute left-4 md:left-1/2 top-0 bottom-0 w-0.5 bg-white/20 -translate-x-1/2 reveal-zoom origin-top"},null,-1)),$("div",m1,[(V(!0),ee(Ee,null,vr(t.data.timeline,(r,i)=>(V(),ee("div",{key:i,class:X(["relative flex flex-col md:flex-row gap-8 md:gap-0 items-start md:items-center reveal-card",i%2===0?"":"md:flex-row-reverse"])},[$("div",{class:X(["w-full md:w-1/2 pl-12 md:pl-0 flex flex-col justify-center",i%2===0?"md:pr-12 md:text-right md:items-end":"md:pl-12 md:text-left md:items-start"])},[$("span",g1,ae(r.date),1),$("h3",v1,ae(r.title||r.t),1)],2),n[0]||(n[0]=$("div",{class:"absolute left-4 md:left-1/2 -translate-x-1/2 w-4 h-4 rounded-full bg-blue-500 shadow-[0_0_20px_rgba(59,130,246,0.5)] border-4 border-[#030303] z-10"},null,-1)),$("div",{class:X(["w-full md:w-1/2 pl-12 md:pl-0",i%2===0?"md:pl-12":"md:pr-12 md:text-right"])},[$("p",y1,ae(r.description||r.desc),1)],2)],2))),128))])])],2)]),_:1},8,["data"]))}}),x1={key:0,class:"hidden lg:block absolute top-[2.5rem] left-0 right-0 h-0.5 bg-gradient-to-r from-transparent via-white/20 to-transparent reveal-zoom origin-left"},w1={class:"text-transparent bg-clip-text bg-gradient-to-br from-white to-gray-600"},S1=Pe({__name:"LayoutSteps",props:{data:{}},setup(t){return(e,n)=>(V(),Xe(Zn,{data:t.data},{default:Rt(()=>[$("div",{class:X(["w-full flex flex-col justify-center overflow-hidden",t.data.sizing==="container"?"min-h-full p-4":"min-h-screen p-8 lg:p-12"])},[$("div",{class:X(["text-center reveal-up",t.data.sizing==="container"?"mb-6":"mb-20"])},[$("h2",{class:X(["font-heading font-bold mb-2",t.data.sizing==="container"?"text-2xl":"text-5xl"])},ae(t.data.title),3),t.data.subtitle?(V(),ee("p",{key:0,class:X(["opacity-60 max-w-2xl mx-auto",t.data.sizing==="container"?"text-sm":"text-xl"])},ae(t.data.subtitle),3)):Qe("",!0)],2),$("div",{class:X(["grid gap-4 w-full mx-auto relative",t.data.sizing==="container"?"grid-cols-3 max-w-xl":"grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 max-w-7xl"])},[t.data.sizing!=="container"?(V(),ee("div",x1)):Qe("",!0),(V(!0),ee(Ee,null,vr(t.data.steps,(r,i)=>(V(),ee("div",{key:i,class:X(["relative glass-panel rounded-xl border border-white/5 reveal-card group hover:bg-white/5 transition duration-500",t.data.sizing==="container"?"p-3 text-center":"p-8 rounded-2xl"])},[$("div",{class:X(["rounded-xl bg-[#111] border border-white/10 flex items-center justify-center font-bold relative z-10 group-hover:scale-105 transition duration-300 shadow-xl mx-auto",t.data.sizing==="container"?"w-12 h-12 text-lg mb-3":"w-20 h-20 text-2xl mb-6 lg:mx-0"])},[$("span",w1,ae(r.step),1)],2),$("h3",{class:X(["font-bold",t.data.sizing==="container"?"text-sm mb-1":"text-xl mb-3"])},ae(r.title),3),$("p",{class:X(["leading-relaxed opacity-60",t.data.sizing==="container"?"text-[10px]":"text-sm"])},ae(r.description),3)],2))),128))],2)],2)]),_:1},8,["data"]))}}),k1=["src","alt"],T1=ba(Pe({__name:"LayoutFlex",props:{data:{}},emits:["action"],setup(t,{emit:e}){const n=t,r=e,i={none:"0",xs:"0.5rem",sm:"0.75rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem"},s={auto:"auto",quarter:"25%",third:"33.333%",half:"50%","two-thirds":"66.666%","three-quarters":"75%",full:"100%"},o={top:"flex-start",center:"center",bottom:"flex-end"},a={left:"flex-start",center:"center",right:"flex-end"},l=Ce(()=>({padding:i[n.data.padding||"none"]})),u=Ce(()=>n.data.direction==="vertical"?"flex-col":"flex-row"),c=Ce(()=>({gap:i[n.data.gap||"none"]})),f=S=>!S||S==="auto"?"flex-1":"",d=S=>{const N=S.size||"auto";return N==="auto"?{flex:"1 1 auto"}:{flex:`0 0 ${s[N]}`,maxWidth:n.data.direction!=="vertical"?s[N]:void 0,maxHeight:n.data.direction==="vertical"?s[N]:void 0}},h=S=>{const N=S.valign||"center",O=S.halign||"left",B=S.gap||"md",Y=S.padding||"lg",se=S.size||"auto";return{flex:se==="auto"?"1 1 auto":`0 0 ${s[se]}`,justifyContent:o[N],alignItems:a[O],gap:i[B],padding:i[Y]}},_=()=>({display:"flex",alignItems:"center",padding:i.lg}),p=(S,N)=>N!==!1&&!S?"":{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"}[S||"lg"]||"rounded-lg",b=S=>{r("action",S),hn.emit("action",S)},w=Pe({props:["text","size","align"],setup(S){const N={lg:"text-3xl lg:text-4xl",xl:"text-4xl lg:text-5xl","2xl":"text-5xl lg:text-6xl","3xl":"text-6xl lg:text-7xl"}[S.size||"xl"]||"text-4xl lg:text-5xl",O={left:"text-left",center:"text-center",right:"text-right"}[S.align||"left"]||"text-left";return()=>me("h2",{class:`font-heading font-bold leading-tight ${N} ${O} w-full`},S.text)}}),k=Pe({props:["text","align","muted"],setup(S){const N={left:"text-left",center:"text-center",right:"text-right"}[S.align||"left"]||"text-left";return()=>me("p",{class:`text-lg lg:text-xl leading-relaxed w-full ${N} ${S.muted?"opacity-60":"opacity-80"}`},S.text)}}),T=Pe({props:["items"],setup(S){return()=>me("ul",{class:"space-y-3 w-full"},(S.items||[]).map(N=>me("li",{class:"flex items-start gap-3 text-lg opacity-80"},[me("span",{class:"w-2 h-2 rounded-full bg-blue-500 mt-2 flex-shrink-0 shadow-[0_0_10px_rgba(59,130,246,0.5)]"}),me("span",{},N)])))}}),x=Pe({props:["items"],setup(S){return()=>me("ol",{class:"space-y-3 w-full"},(S.items||[]).map((N,O)=>me("li",{class:"flex items-start gap-3 text-lg opacity-80"},[me("span",{class:"w-7 h-7 rounded-lg bg-white/10 flex items-center justify-center text-sm font-bold flex-shrink-0"},O+1),me("span",{},N)])))}}),y=Pe({props:["label","action","variant","fullWidth"],emits:["action"],setup(S,{emit:N}){const O={primary:"bg-gradient-to-r from-blue-500 to-purple-600 text-white shadow-lg hover:shadow-xl",secondary:"bg-white/10 text-white border border-white/20 hover:bg-white/20",outline:"bg-transparent text-white border-2 border-white/50 hover:border-white hover:bg-white/5",ghost:"bg-transparent text-white/70 hover:text-white hover:bg-white/5"}[S.variant||"primary"]||"bg-gradient-to-r from-blue-500 to-purple-600 text-white",B=()=>{N("action",{type:"click",label:S.label,value:S.action||S.label,origin:"flex-button"})};return()=>me("button",{class:`px-8 py-4 rounded-full font-bold text-lg transition-all duration-300 cursor-pointer hover:scale-105 ${O} ${S.fullWidth?"w-full":""}`,onClick:B},S.label)}}),E=Pe({props:["items","compact"],setup(S){return()=>me("div",{class:"w-full space-y-4"},(S.items||[]).map(N=>me("div",{class:"flex gap-4 items-start border-l-2 border-blue-500/30 pl-4"},[me("div",{class:"flex-shrink-0 w-3 h-3 rounded-full bg-blue-500 -ml-[22px] mt-1.5 shadow-[0_0_10px_rgba(59,130,246,0.5)]"}),me("div",{},[me("span",{class:"text-xs text-blue-400 font-bold uppercase tracking-wider"},N.date),me("h4",{class:"font-bold text-lg"},N.title||N.t),me("p",{class:"text-sm opacity-60"},N.description||N.desc)])])))}}),P=Pe({props:["items","compact"],setup(S){return()=>me("div",{class:"w-full space-y-4"},(S.items||[]).map(N=>me("div",{class:"flex gap-4 items-start p-4 rounded-lg bg-white/5 border border-white/10"},[me("div",{class:"flex-shrink-0 w-10 h-10 rounded-lg bg-gradient-to-br from-blue-500/20 to-purple-500/20 flex items-center justify-center font-bold text-blue-400"},N.step),me("div",{},[me("h4",{class:"font-bold"},N.title||N.t),me("p",{class:"text-sm opacity-60"},N.description||N.desc)])])))}}),D=Pe({props:["size"],setup(S){const N=i[S.size||"md"]||i.md;return()=>me("div",{style:{height:N,width:"100%"}})}}),v=S=>({title:w,text:k,bullets:T,ordered:x,button:y,timeline:E,stepper:P,spacer:D})[S]||"div";return(S,N)=>(V(),Xe(Zn,{data:t.data},{default:Rt(()=>[$("div",{class:"flex-layout w-full min-h-screen flex items-center justify-center",style:Lt(l.value)},[$("div",{class:X(["flex w-full h-full max-w-7xl mx-auto",u.value]),style:Lt(c.value)},[(V(!0),ee(Ee,null,vr(t.data.elements,(O,B)=>(V(),ee(Ee,{key:B},[O.type==="image"?(V(),ee("div",{key:0,class:X(f(O.size)),style:Lt(d(O))},[$("img",{src:O.src,alt:O.alt||"",class:X(["w-full h-full",O.fill!==!1?"object-cover":"object-contain",p(O.rounded,O.fill)])},null,10,k1)],6)):O.type==="content"?(V(),ee("div",{key:1,class:X(["flex flex-col",f(O.size)]),style:Lt(h(O))},[(V(!0),ee(Ee,null,vr(O.elements,(Y,se)=>(V(),Xe(Xi(v(Y.type)),uo({key:se,ref_for:!0},Y,{onAction:b}),null,16))),128))],6)):(V(),ee("div",{key:2,class:X(f(O.size)),style:Lt(_())},[(V(),Xe(Xi(v(O.type)),uo({ref_for:!0},O,{onAction:b}),null,16))],6))],64))),128))],6)],4)]),_:1},8,["data"]))}}),[["__scopeId","data-v-eccf62e4"]]),z1=Pe({__name:"LayoutAuto",props:{data:{}},emits:["action"],setup(t,{emit:e}){const n=t,r=Ce(()=>{var f,d,h,_;const i=n.data||{},s=Array.isArray(i.timeline)&&i.timeline.length>0,o=Array.isArray(i.steps)&&i.steps.length>0,a=Array.isArray(i.features)&&i.features.length>0,l=!!i.image,u=!!i.chartType&&!!((f=i.data)!=null&&f.datasets);let c="layout-statement";return u?c="layout-chart":s?c="layout-timeline":o?c="layout-steps":a?c="layout-features":l?c="layout-half":(((d=i.title)==null?void 0:d.length)||0)+(((h=i.subtitle)==null?void 0:h.length)||0)+(((_=i.paragraphs)==null?void 0:_.join("").length)||0),c});return(i,s)=>(V(),Xe(Xi(r.value),{data:t.data,onAction:s[0]||(s[0]=o=>i.$emit("action",o))},null,40,["data"]))}}),C1=["innerHTML"],O1=ba(Pe({__name:"LayoutCustom",props:{data:{}},setup(t){const e=t,n=`custom-slide-${Math.random().toString(36).slice(2,10)}`;function r(){if(i(),!e.data.css)return;const o=document.createElement("style");o.id=n,o.textContent=e.data.css,document.head.appendChild(o)}function i(){const o=document.getElementById(n);o&&o.remove()}Hn(()=>{r()}),mr(()=>e.data.css,()=>{r()}),Wn(()=>{i()});const s=Ce(()=>e.data.html?e.data.html.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/on\w+\s*=\s*["'][^"']*["']/gi,"").replace(/javascript:/gi,""):"");return(o,a)=>(V(),Xe(Zn,{data:t.data},{default:Rt(()=>[$("div",{class:X(["custom-slide-wrapper relative w-full overflow-hidden",t.data.sizing==="container"?"h-full":"min-h-screen"])},[$("div",{class:"custom-html-content w-full h-full",innerHTML:s.value},null,8,C1)],2)]),_:1},8,["data"]))}}),[["__scopeId","data-v-b8b91621"]]),E1={key:0,class:"text-center mb-8 reveal-up"},$1={key:0,class:"text-4xl lg:text-5xl font-heading font-bold mb-3"},P1={key:1,class:"text-lg lg:text-xl opacity-60"},A1={key:1,class:"flex-1 flex items-center justify-center"},I1={key:2,class:"flex-1 flex items-center justify-center"},D1={key:3,class:"flex-1 flex items-center justify-center reveal-zoom max-w-5xl mx-auto w-full"},M1={class:"w-full h-full min-h-[300px] lg:min-h-[400px] relative"},N1=Pe({__name:"LayoutChart",props:{data:{}},setup(t){let e=null;const n=it(null),r=it(!0),i=t,s=it(null);let o=null;const a=async()=>{try{const d=await import("chart.js");return e=d.Chart,e.register(...d.registerables),r.value=!1,!0}catch{return n.value="Chart.js is required for chart slides. Install it with: npm install chart.js",r.value=!1,console.warn("[Lumina] chart.js not found. Install with: npm install chart.js"),!1}},l=(d,h)=>{if(!d){const _=["rgba(59, 130, 246, 0.8)","rgba(16, 185, 129, 0.8)","rgba(245, 158, 11, 0.8)","rgba(239, 68, 68, 0.8)","rgba(139, 92, 246, 0.8)","rgba(236, 72, 153, 0.8)"];return _[h%_.length]}switch(d){case"c:p":return getComputedStyle(document.documentElement).getPropertyValue("--lumina-colors-primary").trim()||"#3b82f6";case"c:s":return getComputedStyle(document.documentElement).getPropertyValue("--lumina-colors-secondary").trim()||"#10b981";case"c:m":return getComputedStyle(document.documentElement).getPropertyValue("--lumina-colors-muted").trim()||"#9ca3af";default:return d}},u=(d,h)=>{var p;const _=[];for(let b=0;b<h;b++)_.push(l((p=d[0])==null?void 0:p.color,b));return _},c=Ce(()=>{const{chartType:d,data:h}=i.data,_=d==="pie"||d==="doughnut";return{type:d,data:{labels:h.labels,datasets:h.datasets.map((p,b)=>({label:p.label,data:p.values,backgroundColor:_?u(h.datasets,h.labels.length):l(p.color,b),borderColor:_?"rgba(0, 0, 0, 0.2)":l(p.color,b),borderWidth:2,tension:d==="line"?.4:0,fill:d==="line"?!1:void 0}))},options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!0,position:"bottom",labels:{color:"rgba(255, 255, 255, 0.7)",padding:20,font:{family:"Inter, system-ui, sans-serif",size:12}}},tooltip:{backgroundColor:"rgba(0, 0, 0, 0.8)",titleColor:"#fff",bodyColor:"rgba(255, 255, 255, 0.8)",padding:12,cornerRadius:8,titleFont:{family:"Inter, system-ui, sans-serif",weight:"bold"},bodyFont:{family:"Inter, system-ui, sans-serif"}}},scales:_?{}:{x:{grid:{color:"rgba(255, 255, 255, 0.05)"},ticks:{color:"rgba(255, 255, 255, 0.6)",font:{family:"Inter, system-ui, sans-serif"}}},y:{grid:{color:"rgba(255, 255, 255, 0.05)"},ticks:{color:"rgba(255, 255, 255, 0.6)",font:{family:"Inter, system-ui, sans-serif"}}}}}}}),f=()=>{if(!s.value||!e)return;o&&o.destroy();const d=s.value.getContext("2d");d&&(o=new e(d,c.value))};return Hn(async()=>{await a()&&setTimeout(f,50)}),Wn(()=>{o&&(o.destroy(),o=null)}),mr(()=>i.data,()=>{f()},{deep:!0}),(d,h)=>(V(),Xe(Zn,{data:t.data},{default:Rt(()=>[$("div",{class:X(["w-full flex flex-col justify-center p-8 lg:p-16",t.data.sizing==="container"?"min-h-full py-8":"min-h-screen"])},[t.data.title||t.data.subtitle?(V(),ee("div",E1,[t.data.title?(V(),ee("h2",$1,ae(t.data.title),1)):Qe("",!0),t.data.subtitle?(V(),ee("p",P1,ae(t.data.subtitle),1)):Qe("",!0)])):Qe("",!0),n.value?(V(),ee("div",A1,[...h[0]||(h[0]=[$("div",{class:"text-center p-8 bg-red-500/10 border border-red-500/30 rounded-xl max-w-lg"},[$("svg",{class:"w-12 h-12 mx-auto mb-4 text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[$("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})]),$("p",{class:"text-red-300 font-medium mb-2"},"Chart.js Required"),$("code",{class:"text-sm bg-black/30 px-3 py-1 rounded text-red-200"},"npm install chart.js")],-1)])])):r.value?(V(),ee("div",I1,[...h[1]||(h[1]=[$("div",{class:"animate-pulse text-white/40"},"Loading chart...",-1)])])):(V(),ee("div",D1,[$("div",M1,[$("canvas",{ref_key:"chartCanvas",ref:s},null,512)])]))],2)]),_:1},8,["data"]))}}),zi={default:{colors:{primary:"#3b82f6",background:"#030303",text:"#ffffff",muted:"#9ca3af"},fonts:{heading:"Inter, sans-serif",body:"Inter, sans-serif",mono:"monospace"}},ocean:{colors:{primary:"#06b6d4",background:"#0f172a",text:"#f0f9ff",muted:"#94a3b8"},fonts:{heading:"Outfit, sans-serif",body:"Inter, sans-serif"}},midnight:{colors:{primary:"#6366f1",background:"#000000",text:"#e0e7ff",muted:"#6b7280"}},forest:{colors:{primary:"#10b981",background:"#022c22",text:"#ecfdf5",muted:"#6ee7b7"}},cyber:{colors:{primary:"#f472b6",background:"#18181b",text:"#ffffff",muted:"#a1a1aa"},fonts:{heading:"Orbitron, sans-serif",body:"Rajdhani, sans-serif"}},latte:{colors:{primary:"#d97706",background:"#fffbeb",text:"#451a03",muted:"#92400e"},fonts:{heading:"Playfair Display, serif",body:"Lato, sans-serif"}}},td="lumina-theme-styles";class R1{static inject(e){let n;typeof e=="string"?n=zi[e]||zi.default:(n={...zi.default,...e},e.colors&&(n.colors={...zi.default.colors,...e.colors}),e.fonts&&(n.fonts={...zi.default.fonts,...e.fonts}));let r=document.getElementById(td);r||(r=document.createElement("style"),r.id=td,document.head.appendChild(r));const i=this.generateVars(n);r.innerHTML=`:root { ${i} }`}static generateVars(e){const n=[];if(e.colors){for(const[r,i]of Object.entries(e.colors))if(i){n.push(`--lumina-colors-${r}: ${i};`);const s=this.hexToRgb(i);s&&n.push(`--lumina-colors-${r}-rgb: ${s.r}, ${s.g}, ${s.b};`)}}if(e.fonts)for(const[r,i]of Object.entries(e.fonts))i&&n.push(`--lumina-font-${r}: ${i};`);return n.join(" ")}static hexToRgb(e){const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null}}class F1{constructor(e,n={}){nt(this,"app");nt(this,"store");nt(this,"speakerWindow",null);nt(this,"speakerChannel",null);nt(this,"speakerChannelId");nt(this,"speakerUnsubscribe",null);this.selector=e,this.speakerChannelId=`lumina-speaker-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,this.store=Gv(n),n.theme&&R1.inject(n.theme),this.app=kc(ed),this.app.provide(fi,this.store),mr(()=>this.store.state.currentIndex,(r,i)=>{var o;const s=(o=this.store.state.deck)==null?void 0:o.slides[r];s&&hn.emit("slideChange",{index:r,previousIndex:i??0,slide:s}),this.syncSpeakerNotes()}),this.app.component("layout-statement",n1),this.app.component("layout-half",c1),this.app.component("layout-features",f1),this.app.component("layout-timeline",b1),this.app.component("layout-steps",S1),this.app.component("layout-flex",T1),this.app.component("layout-auto",z1),this.app.component("layout-custom",O1),this.app.component("layout-chart",N1),hn.on("action",r=>{this.store.recordAction(r)}),this.app.mount(this.selector)}load(e){this.store.loadDeck(e),hn.emit("ready",e),this.syncSpeakerNotes()}patch(e){this.store.patchDeck(e),this.syncSpeakerNotes()}exportState(){const{currentIndex:e,deck:n,actionHistory:r}=this.store.state,i=n==null?void 0:n.slides[e],s=r.map(a=>`User ${a.type}ed on ${a.label||a.value}`).join(" -> "),o=r.length>5?"High Engagement":"Low Engagement";return Object.freeze({status:"active",currentSlide:{index:e,id:(i==null?void 0:i.id)||e,type:i==null?void 0:i.type,title:(i&&"title"in i?i.title:null)||"(No Title)"},narrative:`User is currently on slide ${e+1}. Session Flow: ${s||"Just started"}.`,engagementLevel:o,history:[...r]})}on(e,n){hn.on(e,n)}off(e,n){hn.off(e,n)}destroy(){this.closeSpeakerNotes(),this.app&&(this.app.unmount(),this.app=null),hn.clear()}get currentSlideIndex(){return this.store.state.currentIndex}goTo(e){this.store.goto(e),this.syncSpeakerNotes()}next(){this.store.next(),this.syncSpeakerNotes()}prev(){this.store.prev(),this.syncSpeakerNotes()}openSpeakerNotes(){if(this.speakerWindow&&!this.speakerWindow.closed)return this.speakerWindow.focus(),this.speakerWindow;if(!Lr.isSupported())return console.error("[Lumina] BroadcastChannel not supported. Speaker notes require a modern browser."),null;const e=600,n=800,r=window.screenX+window.outerWidth,i=window.screenY;if(this.speakerWindow=window.open("about:blank",`lumina-speaker-notes-${this.speakerChannelId}`,`width=${e},height=${n},left=${r},top=${i},resizable=yes,scrollbars=yes`),!this.speakerWindow)return console.warn("[Lumina] Popup blocked. Please allow popups for speaker notes."),null;const s=this.speakerWindow;return s.document.open(),s.document.write(`
73
56
  <!DOCTYPE html>
74
57
  <html lang="en">
75
58
  <head>
@@ -84,4 +67,4 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
84
67
  <div id="speaker-notes-root"></div>
85
68
  </body>
86
69
  </html>
87
- `),r.document.close(),setTimeout(()=>{if(r.closed)return;Array.from(document.querySelectorAll('style, link[rel="stylesheet"]')).forEach(a=>{r.document.head.appendChild(a.cloneNode(!0))});const o=r.document.getElementById("speaker-notes-root");if(o){const a=Rh(kT,{channelId:this.speakerChannelId});a.mount(o),r.addEventListener("unload",()=>{a.unmount()})}},0),this.initSpeakerChannel(),this.speakerWindow}closeSpeakerNotes(){this.speakerUnsubscribe&&(this.speakerUnsubscribe(),this.speakerUnsubscribe=null),this.speakerChannel&&(this.speakerChannel.notifyClose(),this.speakerChannel.destroy(),this.speakerChannel=null),this.speakerWindow&&!this.speakerWindow.closed&&this.speakerWindow.close(),this.speakerWindow=null}get isSpeakerNotesOpen(){return this.speakerWindow!==null&&!this.speakerWindow.closed}initSpeakerChannel(){this.speakerChannel=Hs.getInstance(this.speakerChannelId),this.speakerUnsubscribe=this.speakerChannel.subscribe(n=>{switch(n.action){case"next":this.store.next(),this.syncSpeakerNotes();break;case"prev":this.store.prev(),this.syncSpeakerNotes();break;case"goto":n.index!==void 0&&(this.store.goto(n.index),this.syncSpeakerNotes());break;case"ping":this.syncSpeakerNotes();break}}),this.syncSpeakerNotes();const t=setInterval(()=>{var n;(n=this.speakerWindow)!=null&&n.closed&&(clearInterval(t),this.closeSpeakerNotes())},1e3)}syncSpeakerNotes(){if(!this.speakerChannel)return;const{currentIndex:t,deck:n}=this.store.state;if(!n)return;const i=n.slides[t],s=n.slides[t+1],r=o=>{if(o&&"title"in o&&typeof o.title=="string")return o.title};this.speakerChannel.send({action:"state",index:t,totalSlides:n.slides.length,currentNotes:i==null?void 0:i.notes,nextSlidePreview:s?{title:r(s),type:s.type}:void 0})}}se.EventBus=Yd,se.Lumina=yz,se.LuminaDeck=ug,se.SpeakerChannel=Hs,se.bus=Vn,Object.defineProperty(se,Symbol.toStringTag,{value:"Module"})});
70
+ `),s.document.close(),setTimeout(()=>{if(s.closed)return;Array.from(document.querySelectorAll('style, link[rel="stylesheet"]')).forEach(a=>{s.document.head.appendChild(a.cloneNode(!0))});const o=s.document.getElementById("speaker-notes-root");if(o){const a=kc(qb,{channelId:this.speakerChannelId});a.mount(o),s.addEventListener("unload",()=>{a.unmount()})}},0),this.initSpeakerChannel(),this.speakerWindow}closeSpeakerNotes(){this.speakerUnsubscribe&&(this.speakerUnsubscribe(),this.speakerUnsubscribe=null),this.speakerChannel&&(this.speakerChannel.notifyClose(),this.speakerChannel.destroy(),this.speakerChannel=null),this.speakerWindow&&!this.speakerWindow.closed&&this.speakerWindow.close(),this.speakerWindow=null}get isSpeakerNotesOpen(){return this.speakerWindow!==null&&!this.speakerWindow.closed}initSpeakerChannel(){this.speakerChannel=Lr.getInstance(this.speakerChannelId),this.speakerUnsubscribe=this.speakerChannel.subscribe(n=>{switch(n.action){case"next":this.store.next(),this.syncSpeakerNotes();break;case"prev":this.store.prev(),this.syncSpeakerNotes();break;case"goto":n.index!==void 0&&(this.store.goto(n.index),this.syncSpeakerNotes());break;case"ping":this.syncSpeakerNotes();break}}),this.syncSpeakerNotes();const e=setInterval(()=>{var n;(n=this.speakerWindow)!=null&&n.closed&&(clearInterval(e),this.closeSpeakerNotes())},1e3)}syncSpeakerNotes(){if(!this.speakerChannel)return;const{currentIndex:e,deck:n}=this.store.state;if(!n)return;const r=n.slides[e],i=n.slides[e+1],s=o=>{if(o&&"title"in o&&typeof o.title=="string")return o.title};this.speakerChannel.send({action:"state",index:e,totalSlides:n.slides.length,currentNotes:r==null?void 0:r.notes,nextSlidePreview:i?{title:s(i),type:i.type}:void 0})}}Le.EventBus=Nu,Le.Lumina=F1,Le.LuminaDeck=ed,Le.SpeakerChannel=Lr,Le.bus=hn,Object.defineProperty(Le,Symbol.toStringTag,{value:"Module"})});