@devframes/plugin-og--assets 0.9.0 → 0.9.1
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.
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function n(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var r={},i=[],a=()=>{},o=()=>!1,s=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith(`onUpdate:`),l=Object.assign,u=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,f=(e,t)=>d.call(e,t),p=Array.isArray,m=e=>w(e)===`[object Map]`,h=e=>w(e)===`[object Set]`,g=e=>w(e)===`[object Date]`,_=e=>w(e)===`[object RegExp]`,v=e=>typeof e==`function`,y=e=>typeof e==`string`,b=e=>typeof e==`symbol`,x=e=>typeof e==`object`&&!!e,S=e=>(x(e)||v(e))&&v(e.then)&&v(e.catch),C=Object.prototype.toString,w=e=>C.call(e),ee=e=>w(e).slice(8,-1),T=e=>w(e)===`[object Object]`,E=e=>y(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,te=n(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ne=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},re=/-\w/g,D=ne(e=>e.replace(re,e=>e.slice(1).toUpperCase())),ie=/\B([A-Z])/g,O=ne(e=>e.replace(ie,`-$1`).toLowerCase()),ae=ne(e=>e.charAt(0).toUpperCase()+e.slice(1)),k=ne(e=>e?`on${ae(e)}`:``),A=(e,t)=>!Object.is(e,t),oe=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},se=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ce=e=>{let t=parseFloat(e);return isNaN(t)?e:t},le=e=>{let t=y(e)?Number(e):NaN;return isNaN(t)?e:t},ue,de=()=>ue||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},fe=n(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`);function pe(e){if(p(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=y(r)?_e(r):pe(r);if(i)for(let e in i)t[e]=i[e]}return t}if(y(e)||x(e))return e}var me=/;(?![^(]*\))/g,he=/:([^]+)/,ge=/\/\*[^]*?\*\//g;function _e(e){let t={};return e.replace(ge,``).split(me).forEach(e=>{if(e){let n=e.split(he);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function j(e){let t=``;if(y(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){let r=j(e[n]);r&&(t+=r+` `)}else if(x(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function ve(e){if(!e)return null;let{class:t,style:n}=e;return t&&!y(t)&&(e.class=j(t)),n&&(e.style=pe(n)),e}var ye=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,be=n(ye);ye+``;function xe(e){return!!e||e===``}function Se(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ce(e[r],t[r]);return n}function Ce(e,t){if(e===t)return!0;let n=g(e),r=g(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=b(e),r=b(t),n||r)return e===t;if(n=p(e),r=p(t),n||r)return n&&r?Se(e,t):!1;if(n=x(e),r=x(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!Ce(e[n],t[n]))return!1}}return String(e)===String(t)}function we(e,t){return e.findIndex(e=>Ce(e,t))}var Te=e=>!!(e&&e.__v_isRef===!0),M=e=>y(e)?e:e==null?``:p(e)||x(e)&&(e.toString===C||!v(e.toString))?Te(e)?M(e.value):JSON.stringify(e,Ee,2):String(e),Ee=(e,t)=>Te(t)?Ee(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[De(t,r)+` =>`]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>De(e))}:b(t)?De(t):x(t)&&!p(t)&&!T(t)?String(t):t,De=(e,t=``)=>b(e)?`Symbol(${e.description??t})`:e;function Oe(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var N,ke=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&N&&(N.active?(this.parent=N,this.index=(N.scopes||(N.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=N;try{return N=this,e()}finally{N=t}}}on(){++this._on===1&&(this.prevScope=N,N=this)}off(){if(this._on>0&&--this._on===0){if(N===this)N=this.prevScope;else{let e=N;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Ae(e){return new ke(e)}function je(){return N}function Me(e,t=!1){N&&N.cleanups.push(e)}var P,Ne=new WeakSet,Pe=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,N&&(N.active?N.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ne.has(this)&&(Ne.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Re(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,$e(this),Ve(this);let e=P,t=Ye;P=this,Ye=!0;try{return this.fn()}finally{He(this),P=e,Ye=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ge(e);this.deps=this.depsTail=void 0,$e(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ne.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ue(this)&&this.run()}get dirty(){return Ue(this)}},Fe=0,Ie,Le;function Re(e,t=!1){if(e.flags|=8,t){e.next=Le,Le=e;return}e.next=Ie,Ie=e}function ze(){Fe++}function Be(){if(--Fe>0)return;if(Le){let e=Le;for(Le=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ie;){let t=Ie;for(Ie=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Ve(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function He(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Ge(r),Ke(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Ue(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(We(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function We(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===et)||(e.globalVersion=et,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ue(e))))return;e.flags|=2;let t=e.dep,n=P,r=Ye;P=e,Ye=!0;try{Ve(e);let n=e.fn(e._value);(t.version===0||A(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{P=n,Ye=r,He(e),e.flags&=-3}}function Ge(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Ge(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ke(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function qe(e,t){e.effect instanceof Pe&&(e=e.effect.fn);let n=new Pe(e);t&&l(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function Je(e){e.effect.stop()}var Ye=!0,Xe=[];function Ze(){Xe.push(Ye),Ye=!1}function Qe(){let e=Xe.pop();Ye=e===void 0||e}function $e(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=P;P=void 0;try{t()}finally{P=e}}}var et=0,tt=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},nt=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!P||!Ye||P===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==P)t=this.activeLink=new tt(P,this),P.deps?(t.prevDep=P.depsTail,P.depsTail.nextDep=t,P.depsTail=t):P.deps=P.depsTail=t,rt(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=P.depsTail,t.nextDep=void 0,P.depsTail.nextDep=t,P.depsTail=t,P.deps===t&&(P.deps=e)}return t}trigger(e){this.version++,et++,this.notify(e)}notify(e){ze();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Be()}}};function rt(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)rt(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var it=new WeakMap,at=Symbol(``),ot=Symbol(``),st=Symbol(``);function ct(e,t,n){if(Ye&&P){let t=it.get(e);t||it.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new nt),r.map=t,r.key=n),r.track()}}function lt(e,t,n,r,i,a){let o=it.get(e);if(!o){et++;return}let s=e=>{e&&e.trigger()};if(ze(),t===`clear`)o.forEach(s);else{let i=p(e),a=i&&E(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===st||!b(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(st)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(at)),m(e)&&s(o.get(ot)));break;case`delete`:i||(s(o.get(at)),m(e)&&s(o.get(ot)));break;case`set`:m(e)&&s(o.get(at))}}Be()}function ut(e,t){let n=it.get(e);return n&&n.get(t)}function dt(e){let t=F(e);return t===e?t:(ct(t,`iterate`,st),$t(e)?t:t.map(nn))}function ft(e){return ct(e=F(e),`iterate`,st),e}function pt(e,t){return Qt(e)?rn(Zt(e)?nn(t):t):nn(t)}var mt={__proto__:null,[Symbol.iterator](){return ht(this,Symbol.iterator,e=>pt(this,e))},concat(...e){return dt(this).concat(...e.map(e=>p(e)?dt(e):e))},entries(){return ht(this,`entries`,e=>(e[1]=pt(this,e[1]),e))},every(e,t){return _t(this,`every`,e,t,void 0,arguments)},filter(e,t){return _t(this,`filter`,e,t,e=>e.map(e=>pt(this,e)),arguments)},find(e,t){return _t(this,`find`,e,t,e=>pt(this,e),arguments)},findIndex(e,t){return _t(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return _t(this,`findLast`,e,t,e=>pt(this,e),arguments)},findLastIndex(e,t){return _t(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return _t(this,`forEach`,e,t,void 0,arguments)},includes(...e){return yt(this,`includes`,e)},indexOf(...e){return yt(this,`indexOf`,e)},join(e){return dt(this).join(e)},lastIndexOf(...e){return yt(this,`lastIndexOf`,e)},map(e,t){return _t(this,`map`,e,t,void 0,arguments)},pop(){return bt(this,`pop`)},push(...e){return bt(this,`push`,e)},reduce(e,...t){return vt(this,`reduce`,e,t)},reduceRight(e,...t){return vt(this,`reduceRight`,e,t)},shift(){return bt(this,`shift`)},some(e,t){return _t(this,`some`,e,t,void 0,arguments)},splice(...e){return bt(this,`splice`,e)},toReversed(){return dt(this).toReversed()},toSorted(e){return dt(this).toSorted(e)},toSpliced(...e){return dt(this).toSpliced(...e)},unshift(...e){return bt(this,`unshift`,e)},values(){return ht(this,`values`,e=>pt(this,e))}};function ht(e,t,n){let r=ft(e),i=r[t]();return r!==e&&!$t(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var gt=Array.prototype;function _t(e,t,n,r,i,a){let o=ft(e),s=o!==e&&!$t(e),c=o[t];if(c!==gt[t]){let t=c.apply(e,a);return s?nn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,pt(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function vt(e,t,n,r){let i=ft(e),a=i!==e&&!$t(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=pt(e,t)),n.call(this,t,pt(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?pt(e,c):c}function yt(e,t,n){let r=F(e);ct(r,`iterate`,st);let i=r[t](...n);return(i===-1||i===!1)&&en(n[0])?(n[0]=F(n[0]),r[t](...n)):i}function bt(e,t,n=[]){Ze(),ze();let r=F(e)[t].apply(e,n);return Be(),Qe(),r}var xt=n(`__proto__,__v_isRef,__isVue`),St=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(b));function Ct(e){b(e)||(e=String(e));let t=F(this);return ct(t,`has`,e),t.hasOwnProperty(e)}var wt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Wt:Ut:i?Ht:Vt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=p(e);if(!r){let e;if(a&&(e=mt[t]))return e;if(t===`hasOwnProperty`)return Ct}let o=Reflect.get(e,t,I(e)?e:n);if((b(t)?St.has(t):xt(t))||(r||ct(e,`get`,t),i))return o;if(I(o)){let e=a&&E(t)?o:o.value;return r&&x(e)?Jt(e):e}return x(o)?r?Jt(o):Kt(o):o}},Tt=class extends wt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=p(e)&&E(t);if(!this._isShallow){let e=Qt(i);if(!$t(n)&&!Qt(n)&&(i=F(i),n=F(n)),!a&&I(i)&&!I(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:f(e,t),s=Reflect.set(e,t,n,I(e)?e:r);return e===F(r)&&s&&(o?A(n,i)&<(e,`set`,t,n,i):lt(e,`add`,t,n)),s}deleteProperty(e,t){let n=f(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&<(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!b(t)||!St.has(t))&&ct(e,`has`,t),n}ownKeys(e){return ct(e,`iterate`,p(e)?`length`:at),Reflect.ownKeys(e)}},Et=class extends wt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Dt=new Tt,Ot=new Et,kt=new Tt(!0),At=new Et(!0),jt=e=>e,Mt=e=>Reflect.getPrototypeOf(e);function Nt(e,t,n){return function(...r){let i=this.__v_raw,a=F(i),o=m(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,u=i[e](...r),d=n?jt:t?rn:nn;return!t&&ct(a,`iterate`,c?ot:at),l(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Pt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Ft(e,t){let n={get(n){let r=this.__v_raw,i=F(r),a=F(n);e||(A(n,a)&&ct(i,`get`,n),ct(i,`get`,a));let{has:o}=Mt(i),s=t?jt:e?rn:nn;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&ct(F(t),`iterate`,at),t.size},has(t){let n=this.__v_raw,r=F(n),i=F(t);return e||(A(t,i)&&ct(r,`has`,t),ct(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=F(a),s=t?jt:e?rn:nn;return!e&&ct(o,`iterate`,at),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return l(n,e?{add:Pt(`add`),set:Pt(`set`),delete:Pt(`delete`),clear:Pt(`clear`)}:{add(e){let n=F(this),r=Mt(n),i=F(e),a=!t&&!$t(e)&&!Qt(e)?i:e;return r.has.call(n,a)||A(e,a)&&r.has.call(n,e)||A(i,a)&&r.has.call(n,i)||(n.add(a),lt(n,`add`,a,a)),this},set(e,n){!t&&!$t(n)&&!Qt(n)&&(n=F(n));let r=F(this),{has:i,get:a}=Mt(r),o=i.call(r,e);o||=(e=F(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?A(n,s)&<(r,`set`,e,n,s):lt(r,`add`,e,n),this},delete(e){let t=F(this),{has:n,get:r}=Mt(t),i=n.call(t,e);i||=(e=F(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&<(t,`delete`,e,void 0,a),o},clear(){let e=F(this),t=e.size!==0,n=e.clear();return t&<(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Nt(r,e,t)}),n}function It(e,t){let n=Ft(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(f(n,r)&&r in t?n:t,r,i)}var Lt={get:It(!1,!1)},Rt={get:It(!1,!0)},zt={get:It(!0,!1)},Bt={get:It(!0,!0)},Vt=new WeakMap,Ht=new WeakMap,Ut=new WeakMap,Wt=new WeakMap;function Gt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Kt(e){return Qt(e)?e:Xt(e,!1,Dt,Lt,Vt)}function qt(e){return Xt(e,!1,kt,Rt,Ht)}function Jt(e){return Xt(e,!0,Ot,zt,Ut)}function Yt(e){return Xt(e,!0,At,Bt,Wt)}function Xt(e,t,n,r,i){if(!x(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Gt(ee(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Zt(e){return Qt(e)?Zt(e.__v_raw):!!(e&&e.__v_isReactive)}function Qt(e){return!!(e&&e.__v_isReadonly)}function $t(e){return!!(e&&e.__v_isShallow)}function en(e){return e?!!e.__v_raw:!1}function F(e){let t=e&&e.__v_raw;return t?F(t):e}function tn(e){return!f(e,`__v_skip`)&&Object.isExtensible(e)&&se(e,`__v_skip`,!0),e}var nn=e=>x(e)?Kt(e):e,rn=e=>x(e)?Jt(e):e;function I(e){return e?e.__v_isRef===!0:!1}function L(e){return on(e,!1)}function an(e){return on(e,!0)}function on(e,t){return I(e)?e:new sn(e,t)}var sn=class{constructor(e,t){this.dep=new nt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:F(e),this._value=t?e:nn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||$t(e)||Qt(e);e=n?e:F(e),A(e,t)&&(this._rawValue=e,this._value=n?e:nn(e),this.dep.trigger())}};function cn(e){e.dep&&e.dep.trigger()}function R(e){return I(e)?e.value:e}function ln(e){return v(e)?e():R(e)}var un={get:(e,t,n)=>t===`__v_raw`?e:R(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return I(i)&&!I(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function dn(e){return Zt(e)?e:new Proxy(e,un)}var fn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new nt,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function pn(e){return new fn(e)}function mn(e){let t=p(e)?Array(e.length):{};for(let n in e)t[n]=vn(e,n);return t}var hn=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=b(t)?t:String(t),this._raw=F(e);let r=!0,i=e;if(!p(e)||b(this._key)||!E(this._key))do r=!en(i)||$t(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=R(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&I(this._raw[this._key])){let t=this._object[this._key];if(I(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return ut(this._raw,this._key)}},gn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function _n(e,t,n){return I(e)?e:v(e)?new gn(e):x(e)&&arguments.length>1?vn(e,t,n):L(e)}function vn(e,t,n){return new hn(e,t,n)}var yn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new nt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=et-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&P!==this)return Re(this,!0),!0}get value(){let e=this.dep.track();return We(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function bn(e,t,n=!1){let r,i;return v(e)?r=e:(r=e.get,i=e.set),new yn(r,i,n)}var xn={GET:`get`,HAS:`has`,ITERATE:`iterate`},Sn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},Cn={},wn=new WeakMap,Tn=void 0;function En(){return Tn}function Dn(e,t=!1,n=Tn){if(n){let t=wn.get(n);t||wn.set(n,t=[]),t.push(e)}}function On(e,t,n=r){let{immediate:i,deep:o,once:s,scheduler:c,augmentJob:l,call:d}=n,f=e=>o?e:$t(e)||o===!1||o===0?kn(e,1):kn(e),m,h,g,_,y=!1,b=!1;if(I(e)?(h=()=>e.value,y=$t(e)):Zt(e)?(h=()=>f(e),y=!0):p(e)?(b=!0,y=e.some(e=>Zt(e)||$t(e)),h=()=>e.map(e=>{if(I(e))return e.value;if(Zt(e))return f(e);if(v(e))return d?d(e,2):e()})):h=v(e)?t?d?()=>d(e,2):e:()=>{if(g){Ze();try{g()}finally{Qe()}}let t=Tn;Tn=m;try{return d?d(e,3,[_]):e(_)}finally{Tn=t}}:a,t&&o){let e=h,t=o===!0?1/0:o;h=()=>kn(e(),t)}let x=je(),S=()=>{m.stop(),x&&x.active&&u(x.effects,m)};if(s&&t){let e=t;t=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(Cn):Cn,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e)){if(t){let n=m.run();if(e||o||y||(b?n.some((e,t)=>A(e,C[t])):A(n,C))){g&&g();let e=Tn;Tn=m;try{let e=[n,C===Cn?void 0:b&&C[0]===Cn?[]:C,_];C=n,d?d(t,3,e):t(...e)}finally{Tn=e}}}else m.run()}};return l&&l(w),m=new Pe(h),m.scheduler=c?()=>c(w,!1):w,_=e=>Dn(e,!1,m),g=m.onStop=()=>{let e=wn.get(m);if(e){if(d)d(e,4);else for(let t of e)t();wn.delete(m)}},t?i?w(!0):C=m.run():c?c(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function kn(e,t=1/0,n){if(t<=0||!x(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,I(e))kn(e.value,t,n);else if(p(e))for(let r=0;r<e.length;r++)kn(e[r],t,n);else if(h(e)||m(e))e.forEach(e=>{kn(e,t,n)});else if(T(e)){for(let r in e)kn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&kn(e[r],t,n)}return e}var An=[];function jn(e){An.push(e)}function Mn(){An.pop()}function Nn(e,t){}var Pn={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},Fn={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function In(e,t,n,r){try{return r?e(...r):e()}catch(e){Rn(e,t,n)}}function Ln(e,t,n,r){if(v(e)){let i=In(e,t,n,r);return i&&S(i)&&i.catch(e=>{Rn(e,t,n)}),i}if(p(e)){let i=[];for(let a=0;a<e.length;a++)i.push(Ln(e[a],t,n,r));return i}}function Rn(e,t,n,i=!0){let a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||r;if(t){let r=t.parent,i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,a)===!1)return}r=r.parent}if(o){Ze(),In(o,null,10,[e,i,a]),Qe();return}}zn(e,n,a,i,s)}function zn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var Bn=[],Vn=-1,Hn=[],Un=null,Wn=0,Gn=Promise.resolve(),Kn=null;function qn(e){let t=Kn||Gn;return e?t.then(this?e.bind(this):e):t}function Jn(e){let t=Vn+1,n=Bn.length;for(;t<n;){let r=t+n>>>1,i=Bn[r],a=er(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Yn(e){if(!(e.flags&1)){let t=er(e),n=Bn[Bn.length-1];!n||!(e.flags&2)&&t>=er(n)?Bn.push(e):Bn.splice(Jn(t),0,e),e.flags|=1,Xn()}}function Xn(){Kn||=Gn.then(tr)}function Zn(e){if(!p(e))Un&&e.id===-1?Un.splice(Wn+1,0,e):e.flags&1||(Hn.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Hn.push(e[t]);Xn()}function Qn(e,t,n=Vn+1){for(;n<Bn.length;n++){let t=Bn[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;Bn.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function $n(e){if(Hn.length){let e=[...new Set(Hn)].sort((e,t)=>er(e)-er(t));if(Hn.length=0,Un){for(let t=0;t<e.length;t++)Un.push(e[t]);return}for(Un=e,Wn=0;Wn<Un.length;Wn++){let e=Un[Wn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}Un=null,Wn=0}}var er=e=>e.id==null?e.flags&2?-1:1/0:e.id;function tr(e){try{for(Vn=0;Vn<Bn.length;Vn++){let e=Bn[Vn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),In(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Vn<Bn.length;Vn++){let e=Bn[Vn];e&&(e.flags&=-2)}Vn=-1,Bn.length=0,$n(e),Kn=null,(Bn.length||Hn.length)&&tr(e)}}var nr,rr=[];function ir(e,t){nr=e,nr?(nr.enabled=!0,rr.forEach(({event:e,args:t})=>nr.emit(e,...t)),rr=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{ir(e,t)}),setTimeout(()=>{nr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,rr=[])},3e3)):rr=[]}var z=null,ar=null;function or(e){let t=z;return z=e,ar=e&&e.type.__scopeId||null,t}function sr(e){ar=e}function cr(){ar=null}var lr=e=>B;function B(e,t=z,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&ss(-1);let i=or(t),a=rs.length,o;try{o=e(...n)}finally{for(let e=rs.length;e>a;e--)as();or(i),r._d&&ss(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function ur(e,t){if(z===null)return e;let n=Gs(z),i=e.dirs||=[];for(let e=0;e<t.length;e++){let[a,o,s,c=r]=t[e];a&&(v(a)&&(a={mounted:a,updated:a}),a.deep&&kn(o),i.push({dir:a,instance:n,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function dr(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(Ze(),Ln(c,n,8,[e.el,s,e,t]),Qe())}}function fr(e,t){if(Os){let n=Os.provides,r=Os.parent&&Os.parent.provides;r===n&&(n=Os.provides=Object.create(r)),n[e]=t}}function pr(e,t,n=!1){let r=X();if(r||Za){let i=Za?Za._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&v(t)?t.call(r&&r.proxy):t}}function mr(){return!!(X()||Za)}var hr=Symbol.for(`v-scx`),gr=()=>pr(hr);function _r(e,t){return xr(e,null,t)}function vr(e,t){return xr(e,null,{flush:`post`})}function yr(e,t){return xr(e,null,{flush:`sync`})}function br(e,t,n){return xr(e,t,n)}function xr(e,t,n=r){let{immediate:i,deep:o,flush:s,once:c}=n,u=l({},n),d=t&&i||!t&&s!==`post`,f;if(Ps){if(s===`sync`){let e=gr();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=a,e.resume=a,e.pause=a,e}}let p=Os;u.call=(e,t,n)=>Ln(e,p,t,n);let m=!1;s===`post`?u.scheduler=e=>{H(e,p&&p.suspense)}:s!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():Yn(e)}),u.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=On(e,t,u);return Ps&&(f?f.push(h):d&&h()),h}function Sr(e,t,n){let r=this.proxy,i=y(e)?e.includes(`.`)?Cr(r,e):()=>r[e]:e.bind(r,r),a;v(t)?a=t:(a=t.handler,n=t);let o=js(this),s=xr(i,a.bind(r),n);return o(),s}function Cr(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var wr=new WeakMap,Tr=Symbol(`_vte`),Er=e=>e.__isTeleport,Dr=e=>e&&(e.disabled||e.disabled===``),Or=e=>e&&(e.defer||e.defer===``),kr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Ar=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,jr=(e,t)=>{let n=e&&e.to;return y(n)?t?t(n):null:n},Mr={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=Dr(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=Dr(e.props),r=e.target=jr(e.props,m),a=Lr(r,e,h,p);r&&(o!==`svg`&&kr(r)?o=`svg`:o!==`mathml`&&Ar(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),Ir(e,!1)))},S=e=>{let t=()=>{if(wr.get(e)===t){if(wr.delete(e),Dr(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),Ir(e,!0)}x(e)}};wr.set(e,t),H(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),Or(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),Ir(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=wr.get(e);if(u){u.flags|=8,wr.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Dr(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||kr(p)?o=`svg`:(o===`mathml`||Ar(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),Lo(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Nr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=jr(t.props,m);e&&(t.target=e,Nr(t,e,null,l,0))}else g&&Nr(t,p,h,l,1);Ir(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=Dr(f),m=a||!p,h=wr.get(e);if(h&&(h.flags|=8,wr.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,m,!!i.dynamicChildren)}},move:Nr,hydrate:Pr};function Nr(e,t,n,{o:{insert:r},m:i},a=2){a===0&&r(e.targetAnchor,t,n);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!wr.has(e)&&(!d||Dr(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function Pr(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=jr(t.props,c),h=Dr(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||Lr(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||Lr(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),Ir(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var Fr=Mr;function Ir(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function Lr(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[Tr]=o,e&&(r(a,e,i),r(o,e,i)),o}var Rr=Symbol(`_leaveCb`),zr=Symbol(`_enterCb`);function Br(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Gi(()=>{e.isMounted=!0}),Ji(()=>{e.isUnmounting=!0}),e}var Vr=[Function,Array],Hr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Vr,onEnter:Vr,onAfterEnter:Vr,onEnterCancelled:Vr,onBeforeLeave:Vr,onLeave:Vr,onAfterLeave:Vr,onLeaveCancelled:Vr,onBeforeAppear:Vr,onAppear:Vr,onAfterAppear:Vr,onAppearCancelled:Vr},Ur=e=>{let t=e.subTree;return t.component?Ur(t.component):t},Wr={name:`BaseTransition`,props:Hr,setup(e,{slots:t}){let n=X(),r=Br();return()=>{let i=t.default&&Qr(t.default(),!0),a=i&&i.length?Gr(i):n.subTree?ys():void 0;if(!a)return;let o=F(e),{mode:s}=o;if(r.isLeaving)return Yr(a);let c=Xr(a);if(!c)return Yr(a);let l=Jr(c,o,r,n,e=>l=e);c.type!==W&&Zr(c,l);let u=n.subTree&&Xr(n.subTree);if(u&&u.type!==W&&!us(u,c)&&Ur(n).type!==W){let e=Jr(u,o,r,n);if(Zr(u,e),s===`out-in`&&c.type!==W)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Yr(a);s===`in-out`&&c.type!==W?e.delayLeave=(e,t,n)=>{let i=qr(r,u);i[String(u.key)]=u,e[Rr]=()=>{t(),e[Rr]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function Gr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==W){t=n;break}}return t}var Kr=Wr;function qr(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Jr(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=qr(n,e),C=(e,t)=>{e&&Ln(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),p(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},ee={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted){if(a)r=_||c;else return}t[Rr]&&t[Rr](!0);let i=S[x];i&&us(e,i)&&i.el[Rr]&&i.el[Rr](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=d;if(!n.isMounted){if(a)r=v||l,i=y||u,o=b||d;else return}let s=!1;t[zr]=e=>{s||(s=!0,C(e?o:i,[t]),ee.delayedLeave&&ee.delayedLeave(),t[zr]=void 0)};let c=t[zr].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[zr]&&t[zr](!0),n.isUnmounting)return r();C(f,[t]);let a=!1;t[Rr]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[Rr]=void 0,S[i]===e&&delete S[i])};let o=t[Rr].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=Jr(e,t,n,r,i);return i&&i(a),a}};return ee}function Yr(e){if(Ni(e))return e=gs(e),e.children=null,e}function Xr(e){if(!Ni(e))return Er(e.type)&&e.children?Gr(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&v(n.default))return n.default()}}function Zr(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;Zr(Er(n.type)&&Xr(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Qr(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===U?(o.patchFlag&128&&i++,r=r.concat(Qr(o.children,t,s))):(t||o.type!==W)&&r.push(s==null?o:gs(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function V(e,t){return v(e)?l({name:e.name},t,{setup:e}):e}function $r(){let e=X();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:``}function ei(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function ti(e){let t=X(),n=an(null);if(t){let i=t.refs===r?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}return n}function ni(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var ri=new WeakMap;function ii(e,t,n,i,a=!1){if(p(e)){e.forEach((e,r)=>ii(e,t&&(p(t)?t[r]:t),n,i,a));return}if(Ai(i)&&!a){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&ii(e,t,n,i.component.subTree);return}let s=i.shapeFlag&4?Gs(i.component):i.el,c=a?null:s,{i:l,r:d}=e,m=t&&t.r,h=l.refs===r?l.refs={}:l.refs,g=l.setupState,_=F(g),b=g===r?o:e=>!ni(h,e)&&f(_,e),x=(e,t)=>!(t&&ni(h,t));if(m!=null&&m!==d){if(ai(t),y(m))h[m]=null,b(m)&&(g[m]=null);else if(I(m)){let e=t;x(m,e.k)&&(m.value=null),e.k&&(h[e.k]=null)}}if(v(d))In(d,l,12,[c,h]);else{let t=y(d),r=I(d);if(t||r){let i=()=>{if(e.f){let n=t?b(d)?g[d]:h[d]:x(d)||!e.k?d.value:h[e.k];if(a)p(n)&&u(n,s);else if(p(n))n.includes(s)||n.push(s);else if(t)h[d]=[s],b(d)&&(g[d]=h[d]);else{let t=[s];x(d,e.k)&&(d.value=t),e.k&&(h[e.k]=t)}}else t?(h[d]=c,b(d)&&(g[d]=c)):r&&(x(d,e.k)&&(d.value=c),e.k&&(h[e.k]=c))};if(c){let t=()=>{i(),ri.delete(e)};t.id=-1,ri.set(e,t),H(t,n)}else ai(e),i()}}}function ai(e){let t=ri.get(e);t&&(t.flags|=8,ri.delete(e))}var oi=!1,si=()=>{oi||=(console.error(`Hydration completed but contains mismatches.`),!0)},ci=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,li=e=>e.namespaceURI.includes(`MathML`),ui=e=>{if(e.nodeType===1){if(ci(e))return`svg`;if(li(e))return`mathml`}},di=e=>e.nodeType===8;function fi(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:o,remove:c,insert:l,createComment:u}}=e,d=(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),$n(),t._vnode=e;return}f(t.firstChild,e,null,null,null),$n(),t._vnode=e},f=(n,r,s,c,u,d=!1)=>{d||=!!r.dynamicChildren;let b=di(n)&&n.data===`[`,x=()=>g(n,r,s,c,u,b),{type:S,ref:C,shapeFlag:w,patchFlag:ee}=r,T=n.nodeType;r.el=n,ee===-2&&(d=!1,r.dynamicChildren=null);let E=null;switch(S){case ts:T===3?(n.data!==r.children&&(si(),n.data=r.children),E=a(n)):r.children===``?(l(r.el=i(``),o(n),n),E=n):E=x();break;case W:y(n)?(E=a(n),v(r.el=n.content.firstChild,n,s)):E=T!==8||b?x():a(n);break;case ns:if(b&&(n=a(n),T=n.nodeType),T===1||T===3){E=n;let e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=E.nodeType===1?E.outerHTML:E.data),t===r.staticCount-1&&(r.anchor=E),E=a(E);return b?a(E):E}x();break;case U:E=b?h(n,r,s,c,u,d):x();break;default:if(w&1)E=(T!==1||r.type.toLowerCase()!==n.tagName.toLowerCase())&&!y(n)?x():p(n,r,s,c,u,d);else if(w&6){r.slotScopeIds=u;let e=o(n);if(E=b?_(n):di(n)&&n.data===`teleport start`?_(n,n.data,`teleport end`):a(n),t(r,e,null,s,c,ui(e),d),Ai(r)&&!r.type.__asyncResolved){let t;b?(t=Y(U),t.anchor=E?E.previousSibling:e.lastChild):t=n.nodeType===3?_s(``):Y(`div`),t.el=n,r.component.subTree=t}}else w&64?E=T===8?r.type.hydrate(n,r,s,c,u,d,e,m):x():w&128&&(E=r.type.hydrate(n,r,s,c,ui(o(n)),u,d,e,f))}return C!=null&&ii(C,null,c,r),E},p=(e,t,n,i,a,o)=>{o||=!!t.dynamicChildren;let{type:l,dynamicProps:u,props:d,patchFlag:f,shapeFlag:p,dirs:h,transition:g}=t,_=l===`input`||l===`option`,b=!!u;if(_||b||f!==-1){h&&dr(t,null,n,`created`);let l=!1;if(y(e)){l=Io(null,g)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(l){let e=r.getAttribute(`class`);e&&(r.$cls=e),g.beforeEnter(r)}v(r,e,n),t.el=e=r}if(p&16&&!(d&&(d.innerHTML||d.textContent))){let r=m(e.firstChild,t,e,n,i,a,o);for(r&&!_i(e,1)&&si();r;){let e=r;r=r.nextSibling,c(e)}}else if(p&8){let n=t.children;n[0]===`
|
|
2
|
+
`&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,`
|
|
3
|
+
`)&&(_i(e,0)||si(),e.textContent=t.children)}if(d){if(_||b||!o||f&48){let t=e.tagName.includes(`-`),i=e.namespaceURI.includes(`svg`)?`svg`:e.namespaceURI.includes(`MathML`)?`mathml`:void 0;for(let a in d)if(_&&(a.endsWith(`value`)||a===`indeterminate`)||s(a)&&!te(a)||a[0]===`.`||t&&!te(a)||u&&u.includes(a)){if(mi(e,a,d[a]))continue;r(e,a,null,d[a],i,n)}}else if(d.onClick)r(e,`onClick`,null,d.onClick,void 0,n);else if(f&4&&Zt(d.style))for(let e in d.style)d.style[e]}let x;(x=d&&d.onVnodeBeforeMount)&&ws(x,n,t),h&&dr(t,null,n,`beforeMount`),((x=d&&d.onVnodeMounted)||h||l)&&Qo(()=>{x&&ws(x,n,t),l&&g.enter(e),h&&dr(t,null,n,`mounted`)},i)}return e.nextSibling},m=(e,t,r,o,s,c,u)=>{u||=!!t.dynamicChildren;let d=t.children,p=d.length,m=!1;for(let t=0;t<p;t++){let h=u?d[t]:d[t]=bs(d[t]),g=h.type===ts;e?(g&&!u&&t+1<p&&bs(d[t+1]).type===ts&&(l(i(e.data.slice(h.children.length)),r,a(e)),e.data=h.children),e=f(e,h,o,s,c,u)):g&&!h.children?l(h.el=i(``),r):(m||(m=!0,_i(r,1)||si()),n(null,h,r,null,o,s,ui(r),c))}return e},h=(e,t,n,r,i,s)=>{let{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);let d=o(e),f=m(a(e),t,d,n,r,i,s);return f&&di(f)&&f.data===`]`?a(t.anchor=f):(si(),l(t.anchor=u(`]`),d,f),f)},g=(e,t,r,i,s,l)=>{if(yi(e,t)||si(),t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)c(n);else break}}let u=a(e),d=o(e);return c(e),n(null,t,d,u,r,i,ui(d),s),r&&(r.vnode.el=t.el,fo(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&di(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[d,f]}var pi=new Set([`src`,`srcset`,`href`,`poster`]);function mi(e,t,n){return pi.has(t)?e.getAttribute(t)===(n==null?null:`${n}`):!1}var hi=`data-allow-mismatch`,gi={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function _i(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(hi);)e=e.parentElement;return vi(e&&e.getAttribute(hi),t)}function vi(e,t){if(e==null)return!1;if(e===``)return!0;{let n=e.split(`,`);return t===0&&n.includes(`children`)?!0:n.includes(gi[t])}}function yi(e,t){return _i(e.parentElement,1)||bi(e)||xi(t)}function bi(e){return e.nodeType===1&&vi(e.getAttribute(hi),1)}function xi({props:e}){let t=e&&e[hi];return typeof t==`string`&&vi(t,1)}var Si=de().requestIdleCallback||(e=>setTimeout(e,1)),Ci=de().cancelIdleCallback||(e=>clearTimeout(e)),wi=(e=1e4)=>t=>{let n=Si(t,{timeout:e});return()=>Ci(n)};function Ti(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<o||i>0&&i<o)}var Ei=e=>(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(Ti(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},Di=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},Oi=(e=[])=>(t,n)=>{y(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function ki(e,t){if(di(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(di(r)){if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++}r=r.nextSibling}}else t(e)}var Ai=e=>!!e.type.__asyncLoader;function ji(e){v(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return V({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=e.isConnected,i=!1;(t.bu||=[]).push(()=>i=!0);let o=()=>{i||!e.parentNode||r&&!e.isConnected||n()},s=a?()=>{let n=a(o,t=>ki(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=Os;if(ei(e),u)return()=>Mi(u,e);let t=t=>{l=null,Rn(t,e,13,!r)};if(s&&e.suspense||Ps)return p().then(t=>()=>Mi(t,e)).catch(e=>(t(e),()=>r?Y(r,{error:e}):null));let a=L(!1),c=L(),d=L(!!i),f,m;return Yi(()=>{f!=null&&clearTimeout(f),m!=null&&clearTimeout(m)}),i&&(m=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),o!=null&&(f=setTimeout(()=>{if(!e.isUnmounted&&!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o)),p().then(()=>{e.isUnmounted||(a.value=!0,e.parent&&Ni(e.parent.vnode)&&e.parent.update())}).catch(n=>{if(e.isUnmounted){l=null;return}t(n),c.value=n}),()=>{if(a.value&&u)return Mi(u,e);if(c.value&&r)return Y(r,{error:c.value});if(n&&!d.value)return Mi(n,e)}}})}function Mi(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=Y(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Ni=e=>e.type.__isKeepAlive,Pi={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=X(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),H(()=>{a.isDeactivated=!1,a.a&&oe(a.a);let t=e.props&&e.props.onVnodeMounted;t&&ws(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;Bo(t.m),Bo(t.a),l(e,f,null,1,s),H(()=>{t.da&&oe(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&ws(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){Bi(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=Ks(Ai(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!us(t,o))?p(t):o&&Bi(o),i.delete(e),a.delete(e)}br(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Fi(e,t)),t&&m(e=>!Fi(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(Ho(n.subTree.type)?H(()=>{i.set(g,Vi(n.subTree))},n.subTree.suspense):i.set(g,Vi(n.subTree)))};return Gi(_),qi(_),Ji(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=Vi(t);if(e.type===i.type&&e.key===i.key){Bi(i);let e=i.component.da;e&&H(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!ls(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=Vi(r);if(s.type===W)return o=null,s;let c=s.type,l=Ks(Ai(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Fi(u,l))||d&&l&&Fi(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=gs(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&Zr(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,Ho(r.type)?r:s}}};function Fi(e,t){return p(e)?e.some(e=>Fi(e,t)):y(e)?e.split(`,`).includes(t):_(e)?(e.lastIndex=0,e.test(t)):!1}function Ii(e,t){Ri(e,`a`,t)}function Li(e,t){Ri(e,`da`,t)}function Ri(e,t,n=Os){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Hi(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ni(e.parent.vnode)&&zi(r,t,n,e),e=e.parent}}function zi(e,t,n,r){let i=Hi(t,e,r,!0);Yi(()=>{u(r[t],i)},n)}function Bi(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Vi(e){return e.shapeFlag&128?e.ssContent:e}function Hi(e,t,n=Os,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Ze();let i=js(n),a=Ln(t,n,e,r);return i(),Qe(),a};return r?i.unshift(a):i.push(a),a}}var Ui=e=>(t,n=Os)=>{(!Ps||e===`sp`)&&Hi(e,(...e)=>t(...e),n)},Wi=Ui(`bm`),Gi=Ui(`m`),Ki=Ui(`bu`),qi=Ui(`u`),Ji=Ui(`bum`),Yi=Ui(`um`),Xi=Ui(`sp`),Zi=Ui(`rtg`),Qi=Ui(`rtc`);function $i(e,t=Os){Hi(`ec`,e,t)}var ea=`components`,ta=`directives`;function na(e,t){return oa(ea,e,!0,t)||e}var ra=Symbol.for(`v-ndc`);function ia(e){return y(e)?oa(ea,e,!1)||e:e||ra}function aa(e){return oa(ta,e)}function oa(e,t,n=!0,r=!1){let i=z||Os;if(i){let n=i.type;if(e===ea){let e=Ks(n,!1);if(e&&(e===t||e===D(t)||e===ae(D(t))))return n}let a=sa(i[e]||n[e],t)||sa(i.appContext[e],t);return!a&&r?n:a}}function sa(e,t){return e&&(e[t]||e[D(t)]||e[ae(D(t))])}function ca(e,t,n,r){let i,a=n&&n[r],o=p(e);if(o||y(e)){let n=o&&Zt(e),r=!1,s=!1;n&&(r=!$t(e),s=Qt(e),e=ft(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?rn(nn(e[n])):nn(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(x(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}}else i=[];return n&&(n[r]=i),i}function la(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(p(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function ua(e,t,n,r,i,a){if(n??={},z.ce||z.parent&&Ai(z.parent)&&z.parent.ce){let e=a!=null&&n.key==null?l({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),G(),q(U,null,[Y(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let s=rs.length;G();let c;try{let i=o&&da(o(n)),s=n.key||a||i&&i.key;c=q(U,{key:(s&&!b(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=rs.length;e>s;e--)as();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function da(e){return e.some(e=>!ls(e)||!(e.type===W||e.type===U&&!da(e.children)))?e:null}function fa(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:k(r)]=e[r];return n}var pa=e=>e?Ns(e)?Gs(e):pa(e.parent):null,ma=l(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=>pa(e.parent),$root:e=>pa(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ra(e),$forceUpdate:e=>e.f||=()=>{Yn(e.update)},$nextTick:e=>e.n||=qn.bind(e.proxy),$watch:e=>Sr.bind(e)}),ha=(e,t)=>e!==r&&!e.__isScriptSetup&&f(e,t),ga={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return i[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else if(ha(i,t))return s[t]=1,i[t];else if(a!==r&&f(a,t))return s[t]=2,a[t];else if(f(o,t))return s[t]=3,o[t];else if(n!==r&&f(n,t))return s[t]=4,n[t];else Na&&(s[t]=0)}let u=ma[t],d,p;if(u)return t===`$attrs`&&ct(e.attrs,`get`,``),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==r&&f(n,t))return s[t]=4,n[t];if(p=l.config.globalProperties,f(p,t))return p[t]},set({_:e},t,n){let{data:i,setupState:a,ctx:o}=e;return ha(a,t)?(a[t]=n,!0):i!==r&&f(i,t)?(i[t]=n,!0):f(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(n[c]||e!==r&&c[0]!==`$`&&f(e,c)||ha(t,c)||f(o,c)||f(i,c)||f(ma,c)||f(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?f(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}},_a=l({},ga,{get(e,t){if(t!==Symbol.unscopables)return ga.get(e,t,e)},has(e,t){return t[0]!==`_`&&!fe(t)}});function va(){return null}function ya(){return null}function ba(e){}function xa(e){}function Sa(){return null}function Ca(){}function wa(e,t){return null}function Ta(){return Da(`useSlots`).slots}function Ea(){return Da(`useAttrs`).attrs}function Da(e){let t=X();return t.setupContext||=Ws(t)}function Oa(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function ka(e,t){let n=Oa(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?p(r)||v(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Aa(e,t){return!e||!t?e||t:p(e)&&p(t)?e.concat(t):l({},Oa(e),Oa(t))}function ja(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Ma(e){let t=X(),n=Ps,r=e();Ms(),n&&As(!1);let i=()=>{js(t),n&&As(!0)},a=()=>{X()!==t&&t.scope.off(),Ms(),n&&As(!1)};return S(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),e})),[r,()=>{i(),Promise.resolve().then(a)}]}var Na=!0;function Pa(e){let t=Ra(e),n=e.proxy,r=e.ctx;Na=!1,t.beforeCreate&&Ia(t.beforeCreate,e,`bc`);let{data:i,computed:o,methods:s,watch:c,provide:l,inject:u,created:d,beforeMount:f,mounted:m,beforeUpdate:h,updated:g,activated:_,deactivated:y,beforeDestroy:b,beforeUnmount:S,destroyed:C,unmounted:w,render:ee,renderTracked:T,renderTriggered:E,errorCaptured:te,serverPrefetch:ne,expose:re,inheritAttrs:D,components:ie,directives:O,filters:ae}=t;if(u&&Fa(u,r,null),s)for(let e in s){let t=s[e];v(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);x(t)&&(e.data=Kt(t))}if(Na=!0,o)for(let e in o){let t=o[e],i=Z({get:v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):a,set:!v(t)&&v(t.set)?t.set.bind(n):a});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(c)for(let e in c)La(c[e],r,n,e);if(l){let e=v(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{fr(t,e[t])})}d&&Ia(d,e,`c`);function k(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(k(Wi,f),k(Gi,m),k(Ki,h),k(qi,g),k(Ii,_),k(Li,y),k($i,te),k(Qi,T),k(Zi,E),k(Ji,S),k(Yi,w),k(Xi,ne),p(re)){if(re.length){let t=e.exposed||={};re.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}ee&&e.render===a&&(e.render=ee),D!=null&&(e.inheritAttrs=D),ie&&(e.components=ie),O&&(e.directives=O),ne&&ei(e)}function Fa(e,t,n=a){p(e)&&(e=Ua(e));for(let n in e){let r=e[n],i;i=x(r)?`default`in r?pr(r.from||n,r.default,!0):pr(r.from||n):pr(r),I(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Ia(e,t,n){Ln(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function La(e,t,n,r){let i=r.includes(`.`)?Cr(n,r):()=>n[r];if(y(e)){let n=t[e];v(n)&&br(i,n)}else if(v(e))br(i,e.bind(n));else if(x(e)){if(p(e))e.forEach(e=>La(e,t,n,r));else{let r=v(e.handler)?e.handler.bind(n):t[e.handler];v(r)&&br(i,r,e)}}}function Ra(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>za(c,e,o,!0)),za(c,t,o)),x(t)&&a.set(t,c),c}function za(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&za(e,a,n,!0),i&&i.forEach(t=>za(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Ba[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Ba={data:Va,props:Ka,emits:Ka,methods:Ga,computed:Ga,beforeCreate:Wa,created:Wa,beforeMount:Wa,mounted:Wa,beforeUpdate:Wa,updated:Wa,beforeDestroy:Wa,beforeUnmount:Wa,destroyed:Wa,unmounted:Wa,activated:Wa,deactivated:Wa,errorCaptured:Wa,serverPrefetch:Wa,components:Ga,directives:Ga,watch:qa,provide:Va,inject:Ha};function Va(e,t){return t?e?function(){return l(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function Ha(e,t){return Ga(Ua(e),Ua(t))}function Ua(e){if(p(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Wa(e,t){return e?[...new Set([].concat(e,t))]:t}function Ga(e,t){return e?l(Object.create(null),e,t):t}function Ka(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:l(Object.create(null),Oa(e),Oa(t??{})):t}function qa(e,t){if(!e)return t;if(!t)return e;let n=l(Object.create(null),e);for(let r in t)n[r]=Wa(e[r],t[r]);return n}function Ja(){return{app:null,config:{isNativeTag:o,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Ya=0;function Xa(e,t){return function(n,r=null){v(n)||(n=l({},n)),r!=null&&!x(r)&&(r=null);let i=Ja(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:Ya++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Qs,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&v(e.install)?(a.add(e),e.install(c,...t)):v(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||Y(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,Gs(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(Ln(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=Za;Za=c;try{return e()}finally{Za=t}}};return c}}var Za=null;function Qa(e,t,n=r){let i=X(),a=D(t),o=O(t),s=$a(e,a),c=pn((s,c)=>{let l,u=r,d;return yr(()=>{let t=e[a];A(l,t)&&(l=t,c())}),{get(){return s(),n.get?n.get(l):l},set(e){let s=n.set?n.set(e):e;if(!A(s,l)&&!(u!==r&&A(e,u)))return;let f=i.vnode.props,p=!!(f&&(t in f||a in f||o in f)&&(`onUpdate:${t}`in f||`onUpdate:${a}`in f||`onUpdate:${o}`in f));p||(l=e,c()),i.emit(`update:${t}`,s),A(e,u)&&(A(e,s)&&!A(s,d)||p&&u!==r&&!A(s,l))&&c(),u=e,d=s}}});return c[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||r:c,done:!1}:{done:!0}}}},c}var $a=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${D(t)}Modifiers`]||e[`${O(t)}Modifiers`];function eo(e,t,...n){if(e.isUnmounted)return;let i=e.vnode.props||r,a=n,o=t.startsWith(`update:`),s=o&&$a(i,t.slice(7));s&&(s.trim&&(a=n.map(e=>y(e)?e.trim():e)),s.number&&(a=n.map(ce)));let c,l=i[c=k(t)]||i[c=k(D(t))];!l&&o&&(l=i[c=k(O(t))]),l&&Ln(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Ln(u,e,6,a)}}var to=new WeakMap;function no(e,t,n=!1){let r=n?to:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!v(e)){let r=e=>{let n=no(e,t,!0);n&&(s=!0,l(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(x(e)&&r.set(e,null),null):(p(a)?a.forEach(e=>o[e]=null):l(o,a),x(e)&&r.set(e,o),o)}function ro(e,t){return!e||!s(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),f(e,t[0].toLowerCase()+t.slice(1))||f(e,O(t))||f(e,t))}function io(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=or(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=bs(u.call(t,e,d,f,m,p,h)),y=s}else{let e=t;v=bs(e.length>1?e(f,{attrs:s,slots:o,emit:l}):e(f,null)),y=t.props?s:oo(s)}}catch(t){rs.length=0,Rn(t,e,1),v=Y(W)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(c)&&(y=so(y,a)),b=gs(b,y,!1,!0))}return n.dirs&&(b=gs(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Zr(Er(b.type)&&Xr(b)||b,n.transition),v=b,or(_),v}function ao(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(ls(r)){if(r.type!==W||r.children===`v-if`){if(n)return;n=r}}else return}return n}var oo=e=>{let t;for(let n in e)(n===`class`||n===`style`||s(n))&&((t||={})[n]=e[n]);return t},so=(e,t)=>{let n={};for(let r in e)(!c(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function co(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?lo(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(uo(o,r,n)&&!ro(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||lo(r,o,l):!!o;return!1}function lo(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(uo(t,e,a)&&!ro(n,a))return!0}return!1}function uo(e,t,n){let r=e[n],i=t[n];return n===`style`&&x(r)&&x(i)?!Ce(r,i):r!==i}function fo({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var po={},mo=()=>Object.create(po),ho=e=>Object.getPrototypeOf(e)===po;function go(e,t,n,r=!1){let i={},a=mo();e.propsDefaults=Object.create(null),vo(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:qt(i):e.type.props?i:a,e.attrs=a}function _o(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=F(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(ro(e.emitsOptions,o))continue;let u=t[o];if(c){if(f(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=D(o);i[t]=yo(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{vo(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!f(t,a)&&((r=O(a))===a||!f(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=yo(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!f(t,e))&&(delete a[e],l=!0)}l&<(e.attrs,`set`,``)}function vo(e,t,n,i){let[a,o]=e.propsOptions,s=!1,c;if(t)for(let r in t){if(te(r))continue;let l=t[r],u;a&&f(a,u=D(r))?!o||!o.includes(u)?n[u]=l:(c||={})[u]=l:ro(e.emitsOptions,r)||(!(r in i)||l!==i[r])&&(i[r]=l,s=!0)}if(o){let t=F(n),i=c||r;for(let r=0;r<o.length;r++){let s=o[r];n[s]=yo(a,t,s,i[s],e,!f(i,s))}}return s}function yo(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=f(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&v(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=js(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===O(n))&&(r=!0))}return r}var bo=new WeakMap;function xo(e,t,n=!1){let a=n?bo:t.propsCache,o=a.get(e);if(o)return o;let s=e.props,c={},u=[],d=!1;if(!v(e)){let r=e=>{d=!0;let[n,r]=xo(e,t,!0);l(c,n),r&&u.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!d)return x(e)&&a.set(e,i),i;if(p(s))for(let e=0;e<s.length;e++){let t=D(s[e]);So(t)&&(c[t]=r)}else if(s)for(let e in s){let t=D(e);if(So(t)){let n=s[e],r=c[t]=p(n)||v(n)?{type:n}:l({},n),i=r.type,a=!1,o=!0;if(p(i))for(let e=0;e<i.length;++e){let t=i[e],n=v(t)&&t.name;if(n===`Boolean`){a=!0;break}n===`String`&&(o=!1)}else a=v(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||f(r,`default`))&&u.push(t)}}let m=[c,u];return x(e)&&a.set(e,m),m}function So(e){return e[0]!==`$`&&!te(e)}var Co=e=>e===`_`||e===`_ctx`||e===`$stable`,wo=e=>p(e)?e.map(bs):[bs(e)],To=(e,t,n)=>{if(t._n)return t;let r=B((...e)=>wo(t(...e)),n);return r._c=!1,r},Eo=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Co(n))continue;let i=e[n];if(v(i))t[n]=To(n,i,r);else if(i!=null){let e=wo(i);t[n]=()=>e}}},Do=(e,t)=>{let n=wo(t);e.slots.default=()=>n},Oo=(e,t,n)=>{for(let r in t)(n||!Co(r))&&(e[r]=t[r])},ko=(e,t,n)=>{let r=e.slots=mo();if(e.vnode.shapeFlag&32){let e=t._;e?(Oo(r,t,n),n&&se(r,`_`,e,!0)):Eo(t,r)}else t&&Do(e,t)},Ao=(e,t,n)=>{let{vnode:i,slots:a}=e,o=!0,s=r;if(i.shapeFlag&32){let e=t._;e?n&&e===1?o=!1:Oo(a,t,n):(o=!t.$stable,Eo(t,a)),s=t}else t&&(Do(e,t),s={default:1});if(o)for(let e in a)!Co(e)&&s[e]==null&&delete a[e]},H=Qo;function jo(e){return No(e)}function Mo(e){return No(e,fi)}function No(e,t){let n=de();n.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=a,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!us(e,t)&&(r=j(e),pe(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case ts:y(e,t,n,r);break;case W:b(e,t,n,r);break;case ns:e??x(t,n,r,o);break;case U:ie(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?O(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,be)}u!=null&&i?ii(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&ii(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ee(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ne(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ee=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&E(e.children,d,null,r,i,Po(e,a),s,u),_&&dr(e,null,r,`created`),T(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!te(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&ws(f,r,e)}_&&dr(e,null,r,`beforeMount`);let v=Io(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&H(()=>{try{f&&ws(f,r,e),v&&g.enter(d),_&&dr(e,null,r,`mounted`)}finally{}},i)},T=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||Ho(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;T(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},E=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?xs(e[l]):bs(e[l]);v(null,c,t,n,r,i,a,o,s)}},ne=(e,t,n,i,a,o,s)=>{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let m=e.props||r,h=t.props||r,g;if(n&&Fo(n,!1),(g=h.onVnodeBeforeUpdate)&&ws(g,n,t,e),f&&dr(t,e,n,`beforeUpdate`),n&&Fo(n,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?re(e.dynamicChildren,d,l,n,i,Po(t,a),o):s||ce(e,t,l,null,n,i,Po(t,a),o,!1),u>0){if(u&16)D(l,m,h,n,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],i=m[r],o=h[r];(o!==i||r===`value`)&&c(l,r,i,o,a,n)}}u&1&&e.children!==t.children&&p(l,t.children)}else!s&&d==null&&D(l,m,h,n,a);((g=h.onVnodeUpdated)||f)&&H(()=>{g&&ws(g,n,t,e),f&&dr(t,e,n,`updated`)},i)},re=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el&&(c.type===U||!us(c,l)||c.shapeFlag&198)?m(c.el):n;v(c,l,u,null,r,i,a,o,!0)}},D=(e,t,n,i,a)=>{if(t!==n){if(t!==r)for(let r in t)!te(r)&&!(r in n)&&c(e,r,t[r],null,a,i);for(let r in n){if(te(r))continue;let o=n[r],s=t[r];o!==s&&r!==`value`&&c(e,r,s,o,a,i)}`value`in n&&c(e,`value`,t.value,n.value,a)}},ie=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),E(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(re(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Lo(e,t,!0)):ce(e,t,n,f,i,a,s,c,l)},O=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):ae(t,n,r,i,a,o,c):k(e,t,c)},ae=(e,t,n,r,i,a,o)=>{let s=e.component=Ds(e,r,i);if(Ni(e)&&(s.ctx.renderer=be),Fs(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,A,o),!e.el){let r=s.subTree=Y(W);b(null,r,t,n),e.placeholder=r.el}}else A(s,e,t,n,i,a,o)},k=(e,t,n)=>{let r=t.component=e.component;if(co(e,t,n)){if(r.asyncDep&&!r.asyncResolved){se(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},A=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=zo(e);if(n){t&&(t.el=c.el,se(e,t,o)),n.asyncDep.then(()=>{H(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Fo(e,!1),t?(t.el=c.el,se(e,t,o)):t=c,n&&oe(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&ws(d,s,t,c),Fo(e,!0);let f=io(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),j(p),e,i,a),t.el=f.el,u===null&&fo(e,f.el),r&&H(r,i),(d=t.props&&t.props.onVnodeUpdated)&&H(()=>ws(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Ai(t);if(Fo(e,!1),l&&oe(l),!m&&(o=c&&c.onVnodeBeforeMount)&&ws(o,d,t),Fo(e,!0),s&&Se){let t=()=>{e.subTree=io(e),Se(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=io(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&H(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;H(()=>ws(o,d,e),i)}(t.shapeFlag&256||d&&Ai(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&H(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Pe(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Yn(u),Fo(e,!0),l()},se=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,_o(e,t.props,r,n),Ao(e,t.children,n),Ze(),Qn(e),Qe()},ce=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){ue(l,d,n,r,i,a,o,s,c);return}if(f&256){le(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&_e(l,i,a),d!==l&&p(n,d)):u&16?m&16?ue(l,d,n,r,i,a,o,s,c):_e(l,i,a,!0):(u&8&&p(n,``),m&16&&E(d,n,r,i,a,o,s,c))},le=(e,t,n,r,a,o,s,c,l)=>{e||=i,t||=i;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;p<f;p++){let r=t[p]=l?xs(t[p]):bs(t[p]);v(e[p],r,n,null,a,o,s,c,l)}u>d?_e(e,a,o,!0,!1,f):E(t,n,r,a,o,s,c,l,f)},ue=(e,t,n,r,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let r=e[u],i=t[u]=l?xs(t[u]):bs(t[u]);if(us(r,i))v(r,i,n,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let r=e[f],i=t[p]=l?xs(t[p]):bs(t[p]);if(us(r,i))v(r,i,n,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,i=e<d?t[e].el:r;for(;u<=p;)v(null,t[u]=l?xs(t[u]):bs(t[u]),n,i,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)pe(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?xs(t[u]):bs(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let r=e[u];if(y>=b){pe(r,a,o,!0);continue}let i;if(r.key!=null)i=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&us(r,t[_])){i=_;break}i===void 0?pe(r,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(r,t[i],n,null,a,o,s,c,l),y++)}let w=x?Ro(C):i;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,i=t[e],f=t[e+1],p=e+1<d?f.el||Vo(f):r;C[u]===0?v(null,i,n,p,a,o,s,c,l):x&&(_<0||u!==w[_]?fe(i,n,p,2):_--)}}},fe=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){fe(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,be);return}if(c===U){o(a,t,n);for(let e=0;e<u.length;e++)fe(u[e],t,n,r);o(e.anchor,t,n);return}if(c===ns){S(e,t,n);return}if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[Rr]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),H(()=>l.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[Rr];a._isLeaving&&a[Rr](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},pe=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(Ze(),ii(s,null,n,e,!0),Qe()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Ai(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&ws(_,t,e),u&6)ge(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&dr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,be,r):l&&!l.hasOnce&&(a!==U||d>0&&d&64)?_e(l,t,n,!1,!0):(a===U&&d&384||!i&&u&16)&&_e(c,t,n),r&&me(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&H(()=>{_&&ws(_,t,e),h&&dr(e,null,t,`unmounted`),v&&(e.el=null)},n)},me=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===U){he(n,r);return}if(t===ns){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},he=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},ge=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Bo(c),Bo(l),r&&oe(r),i.stop(),a&&(a.flags|=8,pe(o,e,t,n)),s&&H(s,t),H(()=>{e.isUnmounted=!0},t)},_e=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)pe(e[o],t,n,r,i)},j=e=>{if(e.shapeFlag&6)return j(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Tr];return n?h(n):t},ve=!1,ye=(e,t,n)=>{let r;e==null?t._vnode&&(pe(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ve||=(ve=!0,Qn(r),$n(),!1)},be={p:v,um:pe,m:fe,r:me,mt:ae,mc:E,pc:ce,pbc:re,n:j,o:e},xe,Se;return t&&([xe,Se]=t(be)),{render:ye,hydrate:xe,createApp:Xa(ye,xe)}}function Po({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 Fo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Io(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Lo(e,t,n=!1){let r=e.children,i=t.children;if(p(r)&&p(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=xs(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Lo(t,a)),a.type===ts&&(a.patchFlag===-1&&(a=i[e]=xs(a)),a.el=t.el),a.type===W&&!a.el&&(a.el=t.el)}}function Ro(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function zo(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:zo(t)}function Bo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Vo(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Vo(t.subTree):null}var Ho=e=>e.__isSuspense,Uo=0,Wo={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)Ko(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}qo(e,t,n,r,i,o,s,c,l)}},hydrate:Yo,normalize:Xo};function Go(e,t){let n=e.props&&e.props[t];v(n)&&n()}function Ko(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=Jo(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(Go(e,`onPending`),Go(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),$o(f,e.ssFallback)):f.resolve(!1,!0)}function qo(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,us(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),$o(d,p)))):(d.pendingId=Uo++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),$o(d,p))):m&&us(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&us(m,f))c(m,f,n,r,i,d,a,o,s),$o(d,f);else if(Go(t,`onPending`),d.pendingBranch=f,d.pendingId=f.shapeFlag&512?f.component.suspenseId:Uo++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function Jo(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=es(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?le(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:Uo++,timeout:typeof y==`number`?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){g=i&&o.transition&&o.transition.mode===`out-in`;let e=!1;g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b&&!e?m(i):a,0),Zn(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!x.isFallbackMountPending&&(h(i.el)===u&&(a=m(i),e=!0),p(i,l,x,!0),!g&&d&&r.ssFallback&&H(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)}x.isFallbackMountPending=!1,$o(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){for(let e=0;e<c.length;e++)y.effects.push(c[e]);S=!0;break}y=y.parent}!S&&!g&&Zn(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),Go(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;Go(t,`onFallback`);let o=m(n),l=()=>{x.isFallbackMountPending=!1,x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),$o(x,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{Rn(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;Ms(),e.asyncResolved=!0;let{vnode:s}=e;Ls(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),fo(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function Yo(e,t,n,r,i,a,o,s,c){let l=t.suspense=Jo(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function Xo(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Zo(r?n.default:n),e.ssFallback=r?Zo(n.fallback):Y(W)}function Zo(e){let t;if(v(e)){let n=os&&e._c;n&&(e._d=!1,G()),e=e(),n&&(e._d=!0,t=is,as())}return p(e)&&(e=ao(e)),e=bs(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Qo(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):Zn(e)}function $o(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,fo(r,i))}function es(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var U=Symbol.for(`v-fgt`),ts=Symbol.for(`v-txt`),W=Symbol.for(`v-cmt`),ns=Symbol.for(`v-stc`),rs=[],is=null;function G(e=!1){rs.push(is=e?null:[])}function as(){rs.pop(),is=rs[rs.length-1]||null}var os=1;function ss(e,t=!1){os+=e,e<0&&is&&t&&(is.hasOnce=!0)}function cs(e){return e.dynamicChildren=os>0?is||i:null,as(),os>0&&is&&is.push(e),e}function K(e,t,n,r,i,a){return cs(J(e,t,n,r,i,a,!0))}function q(e,t,n,r,i){return cs(Y(e,t,n,r,i,!0))}function ls(e){return e?e.__v_isVNode===!0:!1}function us(e,t){return e.type===t.type&&e.key===t.key}function ds(e){}var fs=({key:e})=>e??null,ps=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:y(e)||I(e)||v(e)?{i:z,r:e,k:t,f:!!n}:e);function J(e,t=null,n=null,r=0,i=null,a=e===U?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fs(t),ref:t&&ps(t),scopeId:ar,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:z};return s?(Ss(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),os>0&&!o&&is&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&is.push(c),c}var Y=ms;function ms(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===ra)&&(e=W),ls(e)){let r=gs(e,t,!0);return n&&Ss(r,n),os>0&&!a&&is&&(r.shapeFlag&6?is[is.indexOf(e)]=r:is.push(r)),r.patchFlag=-2,r}if(qs(e)&&(e=e.__vccOpts),t){t=hs(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=j(e)),x(n)&&(en(n)&&!p(n)&&(n=l({},n)),t.style=pe(n))}let o=y(e)?1:Ho(e)?128:Er(e)?64:x(e)?4:v(e)?2:0;return J(e,t,n,r,i,o,a,!0)}function hs(e){return e?en(e)||ho(e)?l({},e):e:null}function gs(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Cs(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&fs(l),ref:t&&t.ref?n&&a?p(a)?a.concat(ps(t)):[a,ps(t)]:ps(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==U?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&gs(e.ssContent),ssFallback:e.ssFallback&&gs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Zr(u,c.clone(u)),u}function _s(e=` `,t=0){return Y(ts,null,e,t)}function vs(e,t){let n=Y(ns,null,e);return n.staticCount=t,n}function ys(e=``,t=!1){return t?(G(),q(W,null,e)):Y(W,null,e)}function bs(e){return e==null||typeof e==`boolean`?Y(W):p(e)?Y(U,null,e.slice()):ls(e)?xs(e):Y(ts,null,String(e))}function xs(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:gs(e)}function Ss(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(p(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Ss(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!ho(t)?t._ctx=z:r===3&&z&&(z.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(v(t)){if(r&65){Ss(e,{default:t});return}t={default:t,_ctx:z},n=32}else t=String(t),r&64?(n=16,t=[_s(t)]):n=8;e.children=t,e.shapeFlag|=n}function Cs(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=j([t.class,r.class]));else if(e===`style`)t.style=pe([t.style,r.style]);else if(s(e)){let n=t[e],i=r[e];i&&n!==i&&!(p(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!c(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function ws(e,t,n,r=null){Ln(e,t,7,[n,r])}var Ts=Ja(),Es=0;function Ds(e,t,n){let i=e.type,a=(t?t.appContext:e.appContext)||Ts,o={uid:Es++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ke(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:xo(i,a),emitsOptions:no(i,a),emit:null,emitted:null,propsDefaults:r,inheritAttrs:i.inheritAttrs,ctx:r,data:r,props:r,attrs:r,slots:r,refs:r,setupState:r,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 o.ctx={_:o},o.root=t?t.root:o,o.emit=eo.bind(null,o),e.ce&&e.ce(o),o}var Os=null,X=()=>Os||z,ks,As;{let e=de(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};ks=t(`__VUE_INSTANCE_SETTERS__`,e=>Os=e),As=t(`__VUE_SSR_SETTERS__`,e=>Ps=e)}var js=e=>{let t=Os;return ks(e),e.scope.on(),()=>{e.scope.off(),ks(t)}},Ms=()=>{Os&&Os.scope.off(),ks(null)};function Ns(e){return e.vnode.shapeFlag&4}var Ps=!1;function Fs(e,t=!1,n=!1){t&&As(t);let{props:r,children:i}=e.vnode,a=Ns(e);go(e,r,a,t),ko(e,i,n||t);let o=a?Is(e,t):void 0;return t&&As(!1),o}function Is(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ga);let{setup:r}=n;if(r){Ze();let n=e.setupContext=r.length>1?Ws(e):null,i=js(e),a=In(r,e,0,[e.props,n]),o=S(a);if(Qe(),i(),(o||e.sp)&&!Ai(e)&&ei(e),o){if(a.then(Ms,Ms),t)return a.then(n=>{As(!0);try{Ls(e,n,t)}finally{As(!1)}}).catch(t=>{Rn(t,e,0)});e.asyncDep=a}else Ls(e,a,t)}else Hs(e,t)}function Ls(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:x(t)&&(e.setupState=dn(t)),Hs(e,n)}var Rs,zs;function Bs(e){Rs=e,zs=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,_a))}}var Vs=()=>!Rs;function Hs(e,t,n){let r=e.type;if(!e.render){if(!t&&Rs&&!r.render){let t=r.template||Ra(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=l(l({isCustomElement:n,delimiters:a},i),o);r.render=Rs(t,s)}}e.render=r.render||a,zs&&zs(e)}{let t=js(e);Ze();try{Pa(e)}finally{Qe(),t()}}}var Us={get(e,t){return ct(e,`get`,``),e[t]}};function Ws(e){return{attrs:new Proxy(e.attrs,Us),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Gs(e){return e.exposed?e.exposeProxy||=new Proxy(dn(tn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ma)return ma[n](e)},has(e,t){return t in e||t in ma}}):e.proxy}function Ks(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}function qs(e){return v(e)&&`__vccOpts`in e}var Z=(e,t)=>bn(e,t,Ps);function Js(e,t,n){try{ss(-1);let r=arguments.length;return r===2?x(t)&&!p(t)?ls(t)?Y(e,null,[t]):Y(e,t):Y(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ls(n)&&(n=[n]),Y(e,t,n))}finally{ss(1)}}function Ys(){}function Xs(e,t,n,r){let i=n[r];if(i&&Zs(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function Zs(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(A(n[e],t[e]))return!1;return os>0&&is&&is.push(e),!0}var Qs=`3.5.41`,$s=a,ec=Fn,tc=nr,nc=ir,rc={createComponentInstance:Ds,setupComponent:Fs,renderComponentRoot:io,setCurrentRenderingInstance:or,isVNode:ls,normalizeVNode:bs,getComponentPublicInstance:Gs,ensureValidVNode:da,pushWarningContext:jn,popWarningContext:Mn},ic=void 0,ac=typeof window<`u`&&window.trustedTypes;if(ac)try{ic=ac.createPolicy(`vue`,{createHTML:e=>e})}catch{}var oc=ic?e=>ic.createHTML(e):e=>e,sc=`http://www.w3.org/2000/svg`,cc=`http://www.w3.org/1998/Math/MathML`,lc=typeof document<`u`?document:null,uc=lc&&lc.createElement(`template`),dc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?lc.createElementNS(sc,e):t===`mathml`?lc.createElementNS(cc,e):n?lc.createElement(e,{is:n}):lc.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>lc.createTextNode(e),createComment:e=>lc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>lc.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{uc.innerHTML=oc(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=uc.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},fc=`transition`,pc=`animation`,mc=Symbol(`_vtc`),hc={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},gc=l({},Hr,hc),_c=(e=>(e.displayName=`Transition`,e.props=gc,e))((e,{slots:t})=>Js(Kr,bc(e),t)),vc=(e,t=[])=>{p(e)?e.forEach(e=>e(...t)):e&&e(...t)},yc=e=>e?p(e)?e.some(e=>e.length>1):e.length>1:!1;function bc(e){let t={};for(let n in e)n in hc||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:u=o,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=xc(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:ee=b}=t,T=(e,t,n,r)=>{e._enterCancelled=r,wc(e,t?d:s),wc(e,t?u:o),n&&n()},E=(e,t)=>{e._isLeaving=!1,wc(e,f),wc(e,m),wc(e,p),t&&t()},te=e=>(t,n)=>{let i=e?w:y,o=()=>T(t,e,n);vc(i,[t,o]),Tc(()=>{wc(t,e?c:a),Cc(t,e?d:s),yc(i)||Dc(t,r,g,o)})};return l(t,{onBeforeEnter(e){vc(v,[e]),Cc(e,a),Cc(e,o)},onBeforeAppear(e){vc(C,[e]),Cc(e,c),Cc(e,u)},onEnter:te(!1),onAppear:te(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>E(e,t);Cc(e,f),e._enterCancelled?(Cc(e,p),jc(e)):(jc(e),Cc(e,p)),Tc(()=>{e._isLeaving&&(wc(e,f),Cc(e,m),yc(x)||Dc(e,r,_,n))}),vc(x,[e,n])},onEnterCancelled(e){T(e,!1,void 0,!0),vc(b,[e])},onAppearCancelled(e){T(e,!0,void 0,!0),vc(ee,[e])},onLeaveCancelled(e){E(e),vc(S,[e])}})}function xc(e){if(e==null)return null;if(x(e))return[Sc(e.enter),Sc(e.leave)];{let t=Sc(e);return[t,t]}}function Sc(e){return le(e)}function Cc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[mc]||(e[mc]=new Set)).add(t)}function wc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[mc];n&&(n.delete(t),n.size||(e[mc]=void 0))}function Tc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Ec=0;function Dc(e,t,n,r){let i=e._endId=++Ec,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Oc(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Oc(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${fc}Delay`),a=r(`${fc}Duration`),o=kc(i,a),s=r(`${pc}Delay`),c=r(`${pc}Duration`),l=kc(s,c),u=null,d=0,f=0;t===fc?o>0&&(u=fc,d=o,f=a.length):t===pc?l>0&&(u=pc,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?fc:pc:null,f=u?u===fc?a.length:c.length:0);let p=u===fc&&/\b(?:transform|all)(?:,|$)/.test(r(`${fc}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function kc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Ac(t)+Ac(e[n])))}function Ac(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function jc(e){return(e?e.ownerDocument:document).body.offsetHeight}function Mc(e,t,n){let r=e[mc];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Nc=Symbol(`_vod`),Pc=Symbol(`_vsh`),Fc={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Nc]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Ic(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Ic(e,!0),r.enter(e)):r.leave(e,()=>{Ic(e,!1)}):Ic(e,t))},beforeUnmount(e,{value:t}){Ic(e,t)}};function Ic(e,t){e.style.display=t?e[Nc]:`none`,e[Pc]=!t}function Lc(){Fc.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var Rc=Symbol(``);function zc(e){let t=X();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>Vc(e,n))},r=()=>{let r=e(t.proxy);t.ce?Vc(t.ce,r):Bc(t.subTree,r),n(r)};Ki(()=>{Zn(r)}),Gi(()=>{br(r,a,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),Yi(()=>e.disconnect())})}function Bc(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Bc(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Vc(e.el,t);else if(e.type===U)e.children.forEach(e=>Bc(e,t));else if(e.type===ns){let{el:n,anchor:r}=e;for(;n&&(Vc(n,t),n!==r);)n=n.nextSibling}}function Vc(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Oe(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[Rc]=r}}var Hc=/(?:^|;)\s*display\s*:/;function Uc(e,t,n){let r=e.style,i=y(n),a=!1;if(n&&!i){if(t){if(y(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Gc(r,t,``)}else for(let e in t)n[e]??Gc(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Gc(r,i,``):Yc(e,i,!y(t)&&t?t[i]:void 0,o)||Gc(r,i,o)}}else if(i){if(t!==n){let e=r[Rc];e&&(n+=`;`+e),r.cssText=n,a=Hc.test(n)}}else t&&e.removeAttribute(`style`);Nc in e&&(e[Nc]=a?r.display:``,e[Pc]&&(r.display=`none`))}var Wc=/\s*!important$/;function Gc(e,t,n){if(p(n))n.forEach(n=>Gc(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=Jc(e,t);Wc.test(n)?e.setProperty(O(r),n.replace(Wc,``),`important`):e[r]=n}}var Kc=[`Webkit`,`Moz`,`ms`],qc={};function Jc(e,t){let n=qc[t];if(n)return n;let r=D(t);if(r!==`filter`&&r in e)return qc[t]=r;r=ae(r);for(let n=0;n<Kc.length;n++){let i=Kc[n]+r;if(i in e)return qc[t]=i}return t}function Yc(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&y(r)&&n===r}var Xc=`http://www.w3.org/1999/xlink`;function Zc(e,t,n,r,i,a=be(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Xc,t.slice(6,t.length)):e.setAttributeNS(Xc,t,n):n==null||a&&!xe(n)?e.removeAttribute(t):e.setAttribute(t,a?``:b(n)?String(n):n)}function Qc(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?oc(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=xe(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function $c(e,t,n,r){e.addEventListener(t,n,r)}function el(e,t,n,r){e.removeEventListener(t,n,r)}var tl=Symbol(`_vei`);function nl(e,t,n,r,i=null){let a=e[tl]||(e[tl]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=al(t);r?$c(e,n,a[t]=ll(r,i),s):o&&(el(e,n,o,s),a[t]=void 0)}}var rl=/(Once|Passive|Capture)$/,il=/^on:?(?:Once|Passive|Capture)$/;function al(e){let t,n;for(;(n=e.match(rl))&&!il.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):O(e.slice(2)),t]}var ol=0,sl=Promise.resolve(),cl=()=>ol||=(sl.then(()=>ol=0),Date.now());function ll(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(p(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&Ln(e,t,5,a)}}else Ln(r,t,5,[e])};return n.value=e,n.attached=cl(),n}var ul=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,dl=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Mc(e,r,o):t===`style`?Uc(e,n,r):s(t)?c(t)||nl(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):fl(e,t,r,o))?(Qc(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Zc(e,t,r,o,a,t!==`value`)):e._isVueCE&&(pl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!y(r)))?Qc(e,D(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Zc(e,t,r,o))};function fl(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&ul(t)&&v(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return ul(t)&&y(n)?!1:t in e}function pl(e,t){let n=e._def.props;if(!n)return!1;let r=D(t);return Array.isArray(n)?n.some(e=>D(e)===r):Object.keys(n).some(e=>D(e)===r)}var ml={};function hl(e,t,n){let r=V(e,t);T(r)&&(r=l({},r,t));class i extends vl{constructor(e){super(r,e,n)}}return i.def=r,i}var gl=((e,t)=>hl(e,t,lu)),_l=typeof HTMLElement<`u`?HTMLElement:class{},vl=class e extends _l{constructor(e,t={},n=cu){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==cu?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(l({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,qn(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!p(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=le(this._props[e])),(i||=Object.create(null))[D(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;if(t)return this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}),this._pendingResolve;e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)f(this,e)||Object.defineProperty(this,e,{get:()=>R(t[e])})}_resolveProps(e){let{props:t}=e,n=p(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(D))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):ml,r=D(e);t&&this._numberProps&&this._numberProps[r]&&(n=le(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===ml?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(O(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(O(e),t+``):t||this.removeAttribute(O(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),ou(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=Y(this._def,l(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,T(t[0])?l({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),O(e)!==e&&t(O(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){let r=e[n],i=r.getAttribute(`name`)||`default`,a=this._slots[i],o=r.parentNode;if(a)for(let e of a){if(t&&e.nodeType===1){let n=t+`-s`,r=document.createTreeWalker(e,1);e.setAttribute(n,``);let i;for(;i=r.nextNode();)i.setAttribute(n,``)}o.insertBefore(e,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){let e=[this];this._teleportTargets&&e.push(...this._teleportTargets);let t=new Set;for(let n of e){let e=n.querySelectorAll(`slot`);for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}};function yl(e){let t=X();return t&&t.ce||null}function bl(){let e=yl();return e&&e.shadowRoot}function xl(e=`$style`){{let t=X();if(!t)return r;let n=t.type.__cssModules;return n&&n[e]||r}}var Sl=new WeakMap,Cl=new WeakMap,wl=Symbol(`_moveCb`),Tl=Symbol(`_enterCb`),El=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:l({},gc,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=X(),r=Br(),i,a;return qi(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!jl(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(Dl),i.forEach(Ol);let r=i.filter(kl);jc(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;Cc(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[wl]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[wl]=null,wc(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=F(e),s=bc(o),c=o.tag||U;if(i=[],a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&!t.el[Pc]&&(i.push(t),Zr(t,Jr(t,s,r,n)),Sl.set(t,Al(t.el)))}a=t.default?Qr(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&Zr(t,Jr(t,s,r,n))}return Y(c,null,a)}}});function Dl(e){let t=e.el;t[wl]&&t[wl](),t[Tl]&&t[Tl]()}function Ol(e){Cl.set(e,Al(e.el))}function kl(e){let t=Sl.get(e),n=Cl.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function Al(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function jl(e,t,n){let r=e.cloneNode(),i=e[mc];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Oc(r);return a.removeChild(r),o}var Ml=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return p(t)?e=>oe(t,e):t};function Nl(e){e.target.composing=!0}function Pl(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var Fl=Symbol(`_assign`),Il=Symbol(`_initialValue`);function Ll(e,t,n){return t&&(e=e.trim()),n&&(e=ce(e)),e}var Rl={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[Il]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[Il]=e.defaultValue.replace(/\r\n?/g,`
|
|
4
|
+
`))),e[Fl]=Ml(i);let a=r||i.props&&i.props.type===`number`;$c(e,t?`change`:`input`,t=>{t.target.composing||e[Fl](Ll(e.value,n,a))}),(n||a)&&$c(e,`change`,()=>{e.value=Ll(e.value,n,a)}),t||($c(e,`compositionstart`,Nl),$c(e,`compositionend`,Pl),$c(e,`change`,Pl))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[Il];delete e[Il],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[Fl](Ll(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Fl]=Ml(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?ce(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},zl={deep:!0,created(e,t,n){e[Fl]=Ml(n),$c(e,`change`,()=>{let t=e._modelValue,n=Wl(e),r=e.checked,i=e[Fl];if(p(t)){let e=we(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(h(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Gl(e,r))})},mounted:Bl,beforeUpdate(e,t,n){e[Fl]=Ml(n),Bl(e,t,n)}};function Bl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(p(t))i=we(t,r.props.value)>-1;else if(h(t))i=t.has(r.props.value);else{if(t===n)return;i=Ce(t,Gl(e,!0))}e.checked!==i&&(e.checked=i)}var Vl={created(e,{value:t},n){e.checked=Ce(t,n.props.value),e[Fl]=Ml(n),$c(e,`change`,()=>{e[Fl](Wl(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Fl]=Ml(r),t!==n&&(e.checked=Ce(t,r.props.value))}},Hl={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,$c(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?ce(Wl(e)):Wl(e));e[Fl](e.multiple?h(e._modelValue)?new Set(t):t:t[0]),e._assigning=!0,qn(()=>{e._assigning=!1})}),e[Fl]=Ml(r)},mounted(e,{value:t}){Ul(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Fl]=Ml(n)},updated(e,{value:t}){e._assigning||Ul(e,t)}};function Ul(e,t){let n=e.multiple,r=p(t);if(!(n&&!r&&!h(t))){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Wl(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):we(t,o)>-1}else a.selected=t.has(o)}else if(Ce(Wl(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Wl(e){return`_value`in e?e._value:e.value}function Gl(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Kl={created(e,t,n){Jl(e,t,n,null,`created`)},mounted(e,t,n){Jl(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Jl(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Jl(e,t,n,r,`updated`)}};function ql(e,t){switch(e){case`SELECT`:return Hl;case`TEXTAREA`:return Rl;default:switch(t){case`checkbox`:return zl;case`radio`:return Vl;default:return Rl}}}function Jl(e,t,n,r,i){let a=ql(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function Yl(){Rl.getSSRProps=({value:e})=>({value:e}),Vl.getSSRProps=({value:e},t)=>{if(t.props&&Ce(t.props.value,e))return{checked:!0}},zl.getSSRProps=({value:e},t)=>{if(p(e)){if(t.props&&we(e,t.props.value)>-1)return{checked:!0}}else if(h(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Kl.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=ql(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var Xl=[`ctrl`,`shift`,`alt`,`meta`],Zl={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)=>Xl.some(n=>e[`${n}Key`]&&!t.includes(n))},Ql=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Zl[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},$l={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},eu=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=O(n.key);if(t.some(e=>e===r||$l[e]===r))return e(n)}))},tu=l({patchProp:dl},dc),nu,ru=!1;function iu(){return nu||=jo(tu)}function au(){return nu=ru?nu:Mo(tu),ru=!0,nu}var ou=((...e)=>{iu().render(...e)}),su=((...e)=>{au().hydrate(...e)}),cu=((...e)=>{let t=iu().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=du(e);if(!r)return;let i=t._component;!v(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,uu(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),lu=((...e)=>{let t=au().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=du(e);if(t)return n(t,!0,uu(t))},t});function uu(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function du(e){return y(e)?document.querySelector(e):e}var fu=!1,pu=()=>{fu||(fu=!0,Yl(),Lc())},mu=t({BaseTransition:()=>Kr,BaseTransitionPropsValidators:()=>Hr,Comment:()=>W,DeprecationTypes:()=>null,EffectScope:()=>ke,ErrorCodes:()=>Pn,ErrorTypeStrings:()=>ec,Fragment:()=>U,KeepAlive:()=>Pi,ReactiveEffect:()=>Pe,Static:()=>ns,Suspense:()=>Wo,Teleport:()=>Fr,Text:()=>ts,TrackOpTypes:()=>xn,Transition:()=>_c,TransitionGroup:()=>El,TriggerOpTypes:()=>Sn,VueElement:()=>vl,assertNumber:()=>Nn,callWithAsyncErrorHandling:()=>Ln,callWithErrorHandling:()=>In,camelize:()=>D,capitalize:()=>ae,cloneVNode:()=>gs,compatUtils:()=>null,compile:()=>hu,computed:()=>Z,createApp:()=>cu,createBlock:()=>q,createCommentVNode:()=>ys,createElementBlock:()=>K,createElementVNode:()=>J,createHydrationRenderer:()=>Mo,createPropsRestProxy:()=>ja,createRenderer:()=>jo,createSSRApp:()=>lu,createSlots:()=>la,createStaticVNode:()=>vs,createTextVNode:()=>_s,createVNode:()=>Y,customRef:()=>pn,defineAsyncComponent:()=>ji,defineComponent:()=>V,defineCustomElement:()=>hl,defineEmits:()=>ya,defineExpose:()=>ba,defineModel:()=>Ca,defineOptions:()=>xa,defineProps:()=>va,defineSSRCustomElement:()=>gl,defineSlots:()=>Sa,devtools:()=>tc,effect:()=>qe,effectScope:()=>Ae,getCurrentInstance:()=>X,getCurrentScope:()=>je,getCurrentWatcher:()=>En,getTransitionRawChildren:()=>Qr,guardReactiveProps:()=>hs,h:()=>Js,handleError:()=>Rn,hasInjectionContext:()=>mr,hydrate:()=>su,hydrateOnIdle:()=>wi,hydrateOnInteraction:()=>Oi,hydrateOnMediaQuery:()=>Di,hydrateOnVisible:()=>Ei,initCustomFormatter:()=>Ys,initDirectivesForSSR:()=>pu,inject:()=>pr,isMemoSame:()=>Zs,isProxy:()=>en,isReactive:()=>Zt,isReadonly:()=>Qt,isRef:()=>I,isRuntimeOnly:()=>Vs,isShallow:()=>$t,isVNode:()=>ls,markRaw:()=>tn,mergeDefaults:()=>ka,mergeModels:()=>Aa,mergeProps:()=>Cs,nextTick:()=>qn,nodeOps:()=>dc,normalizeClass:()=>j,normalizeProps:()=>ve,normalizeStyle:()=>pe,onActivated:()=>Ii,onBeforeMount:()=>Wi,onBeforeUnmount:()=>Ji,onBeforeUpdate:()=>Ki,onDeactivated:()=>Li,onErrorCaptured:()=>$i,onMounted:()=>Gi,onRenderTracked:()=>Qi,onRenderTriggered:()=>Zi,onScopeDispose:()=>Me,onServerPrefetch:()=>Xi,onUnmounted:()=>Yi,onUpdated:()=>qi,onWatcherCleanup:()=>Dn,openBlock:()=>G,patchProp:()=>dl,popScopeId:()=>cr,provide:()=>fr,proxyRefs:()=>dn,pushScopeId:()=>sr,queuePostFlushCb:()=>Zn,reactive:()=>Kt,readonly:()=>Jt,ref:()=>L,registerRuntimeCompiler:()=>Bs,render:()=>ou,renderList:()=>ca,renderSlot:()=>ua,resolveComponent:()=>na,resolveDirective:()=>aa,resolveDynamicComponent:()=>ia,resolveFilter:()=>null,resolveTransitionHooks:()=>Jr,setBlockTracking:()=>ss,setDevtoolsHook:()=>nc,setTransitionHooks:()=>Zr,shallowReactive:()=>qt,shallowReadonly:()=>Yt,shallowRef:()=>an,ssrContextKey:()=>hr,ssrUtils:()=>rc,stop:()=>Je,toDisplayString:()=>M,toHandlerKey:()=>k,toHandlers:()=>fa,toRaw:()=>F,toRef:()=>_n,toRefs:()=>mn,toValue:()=>ln,transformVNodeArgs:()=>ds,triggerRef:()=>cn,unref:()=>R,useAttrs:()=>Ea,useCssModule:()=>xl,useCssVars:()=>zc,useHost:()=>yl,useId:()=>$r,useModel:()=>Qa,useSSRContext:()=>gr,useShadowRoot:()=>bl,useSlots:()=>Ta,useTemplateRef:()=>ti,useTransitionState:()=>Br,vModelCheckbox:()=>zl,vModelDynamic:()=>Kl,vModelRadio:()=>Vl,vModelSelect:()=>Hl,vModelText:()=>Rl,vShow:()=>Fc,version:()=>Qs,warn:()=>$s,watch:()=>br,watchEffect:()=>_r,watchPostEffect:()=>vr,watchSyncEffect:()=>yr,withAsyncContext:()=>Ma,withCtx:()=>B,withDefaults:()=>wa,withDirectives:()=>ur,withKeys:()=>eu,withMemo:()=>Xs,withModifiers:()=>Ql,withScopeId:()=>lr}),hu=()=>{},gu=[{name:`title`,suggestion:`required`,description:`A concise browser title that identifies the page.`,docs:`https://developer.mozilla.org/docs/Web/HTML/Element/title`},{name:`description`,suggestion:`required`,description:`A one or two sentence summary for search engines and link previews.`},{name:`icon`,suggestion:`recommended`,description:`A small image that identifies the site in browser and social surfaces.`},{name:`lang`,suggestion:`recommended`,description:`The primary language used by the page.`},{name:`og:title`,suggestion:`recommended`,description:`The title shown by Open Graph consumers.`,docs:`https://ogp.me/#metadata`},{name:`og:description`,suggestion:`recommended`,description:`The description shown by Open Graph consumers.`,docs:`https://ogp.me/#metadata`},{name:`og:image`,suggestion:`recommended`,description:`The image used for rich social previews.`,docs:`https://ogp.me/#metadata`},{name:`og:url`,suggestion:`recommended`,description:`The canonical URL represented by the social card.`,docs:`https://ogp.me/#metadata`},{name:`twitter:card`,suggestion:`optional`,description:`The Twitter card layout, such as summary_large_image.`,docs:`https://developer.x.com/en/docs/x-for-websites/cards/overview/abouts-cards`},{name:`twitter:title`,suggestion:`optional`,description:`A Twitter-specific title override.`},{name:`twitter:description`,suggestion:`optional`,description:`A Twitter-specific description override.`},{name:`twitter:image`,suggestion:`optional`,description:`A Twitter-specific preview image override.`}];function _u(e,...t){for(let n of t){let t=e.find(e=>e.name===n)?.value;if(t)return t}return``}function vu(e,t=!1){let n=e.tags,r=_u(n,`og:url`)||e.url,i=r;try{i=new URL(r).hostname}catch{}return{title:t?_u(n,`twitter:title`,`og:title`,`title`):_u(n,`og:title`,`title`),description:t?_u(n,`twitter:description`,`og:description`,`description`):_u(n,`og:description`,`description`),image:t?_u(n,`twitter:image`,`og:image`):_u(n,`og:image`),imageAlt:t?_u(n,`twitter:image:alt`,`og:image:alt`):_u(n,`og:image:alt`),url:r,hostname:i,favicon:_u(n,`icon`),twitterCard:_u(n,`twitter:card`)||`summary_large_image`}}function yu(e){let t=new Set(e.map(e=>e.name)),n={};return t.has(`title`)&&(n.title=`[title]`),t.has(`description`)&&(n.description=`[description]`),t.has(`og:title`)&&(n.ogTitle=`[og:title]`),t.has(`og:description`)&&(n.ogDescription=`[og:description]`),t.has(`og:image`)&&(n.ogImage=`[og:image]`),t.has(`og:url`)&&(n.ogUrl=`[og:url]`),t.has(`twitter:card`)&&(n.twitterCard=`summary_large_image`),t.has(`twitter:title`)&&(n.twitterTitle=`[twitter:title]`),t.has(`twitter:description`)&&(n.twitterDescription=`[twitter:description]`),t.has(`twitter:image`)&&(n.twitterImage=`[twitter:image]`),`useSeoMeta({\n${Object.entries(n).map(([e,t])=>` ${e}: '${t}',`).join(`
|
|
5
|
+
`)}\n})`}var bu={class:`border border-base rounded-lg overflow-hidden bg-base`},xu={class:`flex items-center gap-2 border-b border-base bg-secondary px3 py2`},Su={class:`ml-auto color-muted font-mono text-xs tabular-nums`},Cu={key:0,class:`divide-y divide-base`},wu=[`href`],Tu={key:1,class:`min-w-0 truncate color-muted font-mono text-xs`},Eu=[`href`],Du={key:3,class:`min-w-0 break-words color-base text-xs`},Ou={key:1,class:`px4 py8 text-center color-muted text-sm`},ku=V({__name:`MetadataTable`,props:{tags:{}},setup(e){let t=new Map(gu.map(e=>[e.name,e.docs]));function n(e){return/^https?:\/\//i.test(e)}return(r,i)=>(G(),K(`section`,bu,[J(`header`,xu,[i[0]||=J(`span`,{class:`i-ph-tag-duotone color-active`},null,-1),i[1]||=J(`h2`,{class:`m0 text-sm font-semibold`},` Head metadata `,-1),J(`span`,Su,M(e.tags.length),1)]),e.tags.length?(G(),K(`div`,Cu,[(G(!0),K(U,null,ca(e.tags,(e,r)=>(G(),K(`div`,{key:`${e.tag}:${e.name}:${r}`,class:`grid grid-cols-[minmax(8rem,0.35fr)_1fr] items-start gap-3 px3 py2 hover:bg-active`},[R(t).get(e.name)?(G(),K(`a`,{key:0,href:R(t).get(e.name),target:`_blank`,rel:`noreferrer`,class:`min-w-0 truncate color-muted font-mono text-xs hover:color-active`},M(e.name),9,wu)):(G(),K(`span`,Tu,M(e.name),1)),n(e.value)?(G(),K(`a`,{key:2,href:e.value,target:`_blank`,rel:`noreferrer`,class:`min-w-0 break-all color-base font-mono text-xs hover:color-active`},M(e.value),9,Eu)):(G(),K(`span`,Du,M(e.value),1))]))),128))])):(G(),K(`div`,Ou,` No supported head metadata was found. `))]))}}),Au=V({__name:`FeedbackSpinner`,props:{size:{default:`1em`}},setup(e){let t=e,n=Z(()=>typeof t.size==`number`?`${t.size}px`:t.size);return(e,t)=>(G(),K(`span`,{class:`border-2 border-current border-t-transparent rounded-full inline-block animate-spin`,style:pe({width:n.value,height:n.value}),role:`status`,"aria-label":`Loading`},null,4))}}),ju=V({__name:`ActionButton`,props:{as:{},to:{},href:{},icon:{},variant:{default:`action`},size:{default:`md`},loading:{type:Boolean},disabled:{type:Boolean}},setup(e){let t=e,n=Z(()=>t.as?t.as:t.href!=null||t.to!=null?`a`:`button`),r=Z(()=>n.value===`a`),i=Z(()=>n.value===`button`),a=Z(()=>t.size===`sm`),o=Z(()=>t.variant===`primary`?a.value?`btn-primary text-sm px-2.5! py-1!`:`btn-primary`:t.variant===`text`?`inline-flex items-center gap-1.5 op75 hover:op100 transition${a.value?` text-sm`:``}`:a.value?`btn-action-sm`:`btn-action`),s=Z(()=>t.disabled||t.loading);return(t,a)=>(G(),q(ia(n.value),{class:j([o.value,{"pointer-events-none op-mute":s.value&&!i.value}]),href:r.value?e.href??e.to:void 0,to:e.as&&e.to!=null?e.to:void 0,disabled:i.value?s.value:void 0,"aria-disabled":s.value||void 0,"aria-busy":e.loading||void 0},{default:B(()=>[e.loading?(G(),q(Au,{key:0,size:`1em`})):e.icon?(G(),K(`span`,{key:1,class:j(e.icon),"aria-hidden":`true`},null,2)):ys(``,!0),ua(t.$slots,`default`)]),_:3},8,[`class`,`href`,`to`,`disabled`,`aria-disabled`,`aria-busy`]))}});function Mu(e){return typeof e==`string`?`'${e}'`:new Nu().serialize(e)}var Nu=function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t?.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e}(),Pu=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],Fu=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Iu=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,Lu=[],Ru=class{_data=new zu;_hash=new zu([...Pu]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7];for(let n=0;n<64;n++){if(n<16)Lu[n]=e[t+n]|0;else{let e=Lu[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=Lu[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;Lu[n]=t+Lu[n-7]+i+Lu[n-16]}let d=s&c^~s&l,f=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),h=u+m+d+Fu[n]+Lu[n],g=p+f;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}_append(e){typeof e==`string`&&(e=zu.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e<r;e+=16)this._doProcessBlock(this._data.words,e);t=this._data.words.splice(0,r),this._data.sigBytes-=i}return new zu(t,i)}},zu=class e{words;sigBytes;constructor(e,t){e=this.words=e||[],this.sigBytes=t===void 0?e.length*4:t}static fromUtf8(t){let n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let e=0;e<r;e++)i[e>>>2]|=(n.charCodeAt(e)&255)<<24-e%4*8;return new e(i,r)}toBase64(){let e=[];for(let t=0;t<this.sigBytes;t+=3){let n=this.words[t>>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6<this.sigBytes*8;n++)e.push(Iu.charAt(a>>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<e.sigBytes;t++){let n=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function Bu(e){return new Ru().finalize(e).toBase64()}function Vu(e){return Bu(Mu(e))}function Hu(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n);return[t=>{let n=pr(r,t);if(n||n===null)return n;throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`)},e=>(fr(r,e),e)]}function Uu(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function Wu(e,t){return je()?(Me(e,t),!0):!1}var Gu=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Ku=e=>e!==void 0,qu=Gu?window:void 0;Gu&&window.document,Gu&&window.navigator,Gu&&window.location;function Ju(e){let t=ln(e);return t?.$el??t}function Yu(){let e=an(!1),t=X();return t&&Gi(()=>{e.value=!0},t),e}function Xu(e){let t=Yu();return Z(()=>(t.value,!!e()))}function Zu(e){return JSON.parse(JSON.stringify(e))}function Qu(e,t,n={}){let{window:r=qu,...i}=n,a,o=Xu(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=br(Z(()=>{let t=ln(e);return Array.isArray(t)?t.map(e=>Ju(e)):[Ju(t)]}),e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),l=()=>{s(),c()};return Wu(l),{isSupported:o,stop:l}}function $u(e,t,n,r={}){var i,a;let{clone:o=!1,passive:s=!1,eventName:c,deep:l=!1,defaultValue:u,shouldEmit:d}=r,f=X(),p=n||f?.emit||(f==null||(i=f.$emit)==null?void 0:i.bind(f))||(f==null||(a=f.proxy)==null||(a=a.$emit)==null?void 0:a.bind(f?.proxy)),m=c;t||=`modelValue`,m||=`update:${t.toString()}`;let h=e=>o?typeof o==`function`?o(e):Zu(e):e,g=()=>Ku(e[t])?h(e[t]):u,_=e=>{d?d(e)&&p(m,e):p(m,e)};if(s){let n=L(g()),r=!1;return br(()=>e[t],e=>{r||(r=!0,n.value=h(e),qn(()=>r=!1))}),br(n,n=>{!r&&(n!==e[t]||l)&&_(n)},{deep:l}),n}return Z({get(){return g()},set(e){_(e)}})}function ed(e){return e?e.flatMap(e=>e.type===U?ed(e.children):[e]):[]}var[td,nd]=Hu(`ConfigProvider`);function rd(e){let t=td({dir:L(`ltr`)});return Z(()=>e?.value||t.dir?.value||`ltr`)}function id(){let e=X(),t=L(),n=Z(()=>r());qi(()=>{n.value!==r()&&cn(t)});function r(){return t.value&&`$el`in t.value&&[`#text`,`#comment`].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:Ju(t)}let i=Object.assign({},e.exposed),a={};for(let t in e.props)Object.defineProperty(a,t,{enumerable:!0,configurable:!0,get:()=>e.props[t]});if(Object.keys(i).length>0)for(let e in i)Object.defineProperty(a,e,{enumerable:!0,configurable:!0,get:()=>i[e]});Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=a;function o(n){if(t.value=n,n&&(Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>n instanceof Element?n:n.$el}),!(n instanceof Element)&&!Object.hasOwn(n,`$el`))){let t=n.$.exposed,r=Object.assign({},a);for(let e in t)Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>t[e]});e.exposed=r}}return{forwardRef:o,currentRef:t,currentElement:n}}var ad=0;function od(e,t=`reka`){if(e)return e;let n,r=td({useId:void 0});return n=r.useId?r.useId():`useId`in mu?$r?.():`${++ad}`,t?`${t}-${n}`:n}function sd(e,t){let n=L(e);function r(e){return t[n.value][e]??n.value}return{state:n,dispatch:e=>{n.value=r(e)}}}function cd(e,t){let n=L({}),r=L(`none`),i=L(e),a=e.value?`mounted`:`unmounted`,o,s=t.value?.ownerDocument.defaultView??qu,{state:c,dispatch:l}=sd(a,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),u=e=>{if(Gu){let n=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(n)}};br(e,async(e,i)=>{let a=i!==e;if(await qn(),a){let a=r.value,o=ld(t.value);e?(l(`MOUNT`),u(`enter`),o===`none`&&u(`after-enter`)):o===`none`||o===`undefined`||n.value?.display===`none`?(l(`UNMOUNT`),u(`leave`),u(`after-leave`)):i&&a!==o?(l(`ANIMATION_OUT`),u(`leave`)):(l(`UNMOUNT`),u(`after-leave`))}},{immediate:!0});let d=e=>{if(e.target!==t.value)return;let n=ld(t.value),r=n.includes(CSS.escape(e.animationName)),a=c.value===`mounted`?`enter`:`leave`;if(r&&(u(`after-${a}`),l(`ANIMATION_END`),!i.value)){let e=t.value.style.animationFillMode;t.value.style.animationFillMode=`forwards`,o=s?.setTimeout(()=>{t.value?.style.animationFillMode===`forwards`&&(t.value.style.animationFillMode=e)})}n===`none`&&l(`ANIMATION_END`)},f=e=>{e.target===t.value&&(r.value=ld(t.value))},p=br(t,(e,t)=>{e?(n.value=getComputedStyle(e),e.addEventListener(`animationstart`,f),e.addEventListener(`animationcancel`,d),e.addEventListener(`animationend`,d)):(l(`ANIMATION_END`),o!==void 0&&s?.clearTimeout(o),t?.removeEventListener(`animationstart`,f),t?.removeEventListener(`animationcancel`,d),t?.removeEventListener(`animationend`,d))},{immediate:!0}),m=br(c,()=>{let e=ld(t.value);r.value=c.value===`mounted`?e:`none`});return Yi(()=>{p(),m(),t.value&&(t.value.removeEventListener(`animationstart`,f),t.value.removeEventListener(`animationcancel`,d),t.value.removeEventListener(`animationend`,d)),o!==void 0&&s?.clearTimeout(o)}),{isPresent:Z(()=>[`mounted`,`unmountSuspended`].includes(c.value))}}function ld(e){return e&&getComputedStyle(e).animationName||`none`}var ud=V({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){let{present:r,forceMount:i}=mn(e),a=L(),{isPresent:o}=cd(r,a);n({present:o});let s=t.default({present:o.value});s=ed(s||[]);let c=X();if(s&&s?.length>1){let e=c?.parent?.type.name?`<${c.parent.type.name} />`:`component`;throw Error([`Detected an invalid children for \`${e}\` for \`Presence\` component.`,``,"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",`You can apply a few solutions:`,["Provide a single child element so that `presence` directive attach correctly.",`Ensure the first child is an actual element instead of a raw text node or comment node.`].map(e=>` - ${e}`).join(`
|
|
6
|
+
`)].join(`
|
|
7
|
+
`))}return()=>i.value||r.value||o.value?Js(t.default({present:o.value})[0],{ref:e=>{let t=Ju(e);return t?.hasAttribute===void 0||(t?.hasAttribute(`data-reka-popper-content-wrapper`)?a.value=t.firstElementChild:a.value=t),t}}):null}}),dd=V({name:`PrimitiveSlot`,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=ed(n.default()),r=e.findIndex(e=>e.type!==W);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?Cs(t,i.props):t,o=gs({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),fd=[`area`,`img`,`input`],pd=V({name:`Primitive`,inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:`div`}},setup(e,{attrs:t,slots:n}){let r=e.asChild?`template`:e.as;return typeof r==`string`&&fd.includes(r)?()=>Js(r,t):r===`template`?()=>Js(dd,t,{default:n.default}):()=>Js(e.as,t,{default:n.default})}});function md(){let e=L();return{primitiveElement:e,currentElement:Z(()=>[`#text`,`#comment`].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:Ju(e))}}var hd=`data-reka-collection-item`;function gd(e={}){let{key:t=``,isProvider:n=!1}=e,r=`${t}CollectionProvider`,i;n?(i={collectionRef:L(),itemMap:L(new Map)},fr(r,i)):i=pr(r);let a=(e=!1)=>{let t=i.collectionRef.value;if(!t)return[];let n=Array.from(t.querySelectorAll(`[${hd}]`)),r=new Map(n.map((e,t)=>[e,t])),a=Array.from(i.itemMap.value.values()).sort((e,t)=>(r.get(e.ref)??-1)-(r.get(t.ref)??-1));return e?a:a.filter(e=>e.ref.dataset.disabled!==``)},o=V({name:`CollectionSlot`,inheritAttrs:!1,setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=md();return br(a,()=>{i.collectionRef.value=a.value}),()=>Js(dd,{ref:r,...n},t)}}),s=V({name:`CollectionItem`,inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=md();return _r(t=>{if(a.value){let n=tn(a.value);i.itemMap.value.set(n,{ref:a.value,value:e.value}),t(()=>i.itemMap.value.delete(n))}}),()=>Js(dd,{...n,[hd]:``,ref:r},t)}});return{getItems:a,reactiveItems:Z(()=>Array.from(i.itemMap.value.values())),itemMapSize:Z(()=>i.itemMap.value.size),CollectionSlot:o,CollectionItem:s}}var _d=`rovingFocusGroup.onEntryFocus`,vd={bubbles:!1,cancelable:!0},yd={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function bd(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function xd(e,t,n){let r=bd(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return yd[r]}function Sd(e,t=!1){let n=Uu();for(let r of e)if(r===n||(r.focus({preventScroll:t}),Uu()!==n))return}function Cd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var[wd,Td]=Hu(`RovingFocusGroup`),Ed=V({__name:`RovingFocusGroup`,props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`entryFocus`,`update:currentTabStopId`],setup(e,{expose:t,emit:n}){let r=e,i=n,{loop:a,orientation:o,dir:s}=mn(r),c=rd(s),l=$u(r,`currentTabStopId`,i,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=L(!1),d=L(!1),f=L(0),{getItems:p,CollectionSlot:m}=gd({isProvider:!0});function h(e){let t=!d.value;if(e.currentTarget&&e.target===e.currentTarget&&t&&!u.value){let t=new CustomEvent(_d,vd);if(e.currentTarget.dispatchEvent(t),i(`entryFocus`,t),!t.defaultPrevented){let e=p().map(e=>e.ref).filter(e=>e.dataset.disabled!==``);Sd([e.find(e=>e.getAttribute(`data-active`)===``),e.find(e=>e.getAttribute(`data-highlighted`)===``),e.find(e=>e.id===l.value),...e].filter(Boolean),r.preventScrollOnEntryFocus)}}d.value=!1}function g(){setTimeout(()=>{d.value=!1},1)}return t({getItems:p}),Td({loop:a,dir:c,orientation:o,currentTabStopId:l,onItemFocus:e=>{l.value=e},onItemShiftTab:()=>{u.value=!0},onFocusableItemAdd:()=>{f.value++},onFocusableItemRemove:()=>{f.value--}}),(e,t)=>(G(),q(R(m),null,{default:B(()=>[Y(R(pd),{tabindex:u.value||f.value===0?-1:0,"data-orientation":R(o),as:e.as,"as-child":e.asChild,dir:R(c),style:{outline:`none`},onMousedown:t[0]||=e=>d.value=!0,onMouseup:g,onFocus:h,onBlur:t[1]||=e=>u.value=!1},{default:B(()=>[ua(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`as`,`as-child`,`dir`])]),_:3}))}}),Dd=V({__name:`RovingFocusItem`,props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e,n=wd(),r=od(),i=Z(()=>t.tabStopId||r),a=Z(()=>n.currentTabStopId.value===i.value),{getItems:o,CollectionItem:s}=gd();Gi(()=>{t.focusable&&n.onFocusableItemAdd()}),Yi(()=>{t.focusable&&n.onFocusableItemRemove()}),br(()=>t.focusable,(e,t)=>{e!==t&&(e?n.onFocusableItemAdd():n.onFocusableItemRemove())});function c(e){if(e.key===`Tab`&&e.shiftKey){n.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let r=xd(e,n.orientation.value,n.dir.value);if(r!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||!t.allowShiftKey&&e.shiftKey)return;e.preventDefault();let i=[...o().map(e=>e.ref).filter(e=>e.dataset.disabled!==``)];if(r===`last`)i.reverse();else if(r===`prev`||r===`next`){r===`prev`&&i.reverse();let t=i.indexOf(e.currentTarget);i=n.loop.value?Cd(i,t+1):i.slice(t+1)}qn(()=>Sd(i))}}return(e,t)=>(G(),q(R(s),null,{default:B(()=>[Y(R(pd),{tabindex:a.value?0:-1,"data-orientation":R(n).orientation.value,"data-active":e.active?``:void 0,"data-disabled":e.focusable?void 0:``,as:e.as,"as-child":e.asChild,onMousedown:t[0]||=t=>{e.focusable?R(n).onItemFocus(i.value):t.preventDefault()},onFocus:t[1]||=e=>R(n).onItemFocus(i.value),onKeydown:c},{default:B(()=>[ua(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`data-active`,`data-disabled`,`as`,`as-child`])]),_:3}))}}),[Od,kd]=Hu(`TabsRoot`),Ad=V({__name:`TabsRoot`,props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:`horizontal`},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:`automatic`},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{orientation:i,unmountOnHide:a,dir:o}=mn(n),s=rd(o);id();let c=$u(n,`modelValue`,r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),l=L(),u=an(new Set);return kd({modelValue:c,changeModelValue:e=>{c.value=e},orientation:i,dir:s,unmountOnHide:a,activationMode:n.activationMode,baseId:od(void 0,`reka-tabs`),tabsList:l,contentIds:u,registerContent:e=>{u.value=new Set([...u.value,e])},unregisterContent:e=>{let t=new Set(u.value);t.delete(e),u.value=t}}),(e,t)=>(G(),q(R(pd),{dir:R(s),"data-orientation":R(i),"as-child":e.asChild,as:e.as},{default:B(()=>[ua(e.$slots,`default`,{modelValue:R(c)})]),_:3},8,[`dir`,`data-orientation`,`as-child`,`as`]))}});function jd(e,t){return`${e}-trigger-${t}`}function Md(e,t){return`${e}-content-${t}`}var Nd=V({__name:`TabsContent`,props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n}=id(),r=Od(),i=Z(()=>jd(r.baseId,t.value)),a=Z(()=>Md(r.baseId,t.value)),o=Z(()=>t.value===r.modelValue.value),s=L(o.value);return Gi(()=>{r.registerContent(t.value),requestAnimationFrame(()=>{s.value=!1})}),Ji(()=>{r.unregisterContent(t.value)}),(e,t)=>(G(),q(R(ud),{present:e.forceMount||o.value,"force-mount":``},{default:B(({present:t})=>[Y(R(pd),{id:a.value,ref:R(n),"as-child":e.asChild,as:e.as,role:`tabpanel`,"data-state":o.value?`active`:`inactive`,"data-orientation":R(r).orientation.value,"aria-labelledby":i.value,hidden:!t,tabindex:`0`,style:pe({animationDuration:s.value?`0s`:void 0})},{default:B(()=>[!R(r).unmountOnHide.value||t?ua(e.$slots,`default`,{key:0}):ys(`v-if`,!0)]),_:2},1032,[`id`,`as-child`,`as`,`data-state`,`data-orientation`,`aria-labelledby`,`hidden`,`style`])]),_:3},8,[`present`]))}}),Pd=V({__name:`TabsIndicator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){let n=e,r=Od();t({updateIndicatorStyle:s}),id();let i=Yu(),a=L({size:null,thickness:null,position:null}),o=L([]);br(()=>[r.modelValue.value,r?.dir.value],()=>{s()},{immediate:!0,flush:`post`}),vr(()=>{o.value=Array.from(r.tabsList.value?.querySelectorAll(`[role="tab"]`)||[])}),Qu(Z(()=>[r.tabsList.value,...o.value]),s);function s(){let e=r.tabsList.value?.querySelector(`[role="tab"][data-state="active"]`);e&&(r.orientation.value===`horizontal`?a.value={size:e.offsetWidth,thickness:e.offsetHeight,position:e.offsetLeft}:a.value={size:e.offsetHeight,thickness:e.offsetWidth,position:e.offsetTop})}return(e,t)=>R(i)&&typeof a.value.size==`number`?(G(),q(R(pd),Cs({key:0},n,{style:{"--reka-tabs-indicator-size":`${a.value.size}px`,"--reka-tabs-indicator-thickness":`${a.value.thickness}px`,"--reka-tabs-indicator-position":`${a.value.position}px`}}),{default:B(()=>[ua(e.$slots,`default`)]),_:3},16,[`style`])):ys(`v-if`,!0)}}),Fd=V({__name:`TabsList`,props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let{loop:t}=mn(e),{forwardRef:n,currentElement:r}=id(),i=Od();return i.tabsList=r,(e,r)=>(G(),q(R(Ed),{"as-child":``,orientation:R(i).orientation.value,dir:R(i).dir.value,loop:R(t)},{default:B(()=>[Y(R(pd),{ref:R(n),role:`tablist`,"as-child":e.asChild,as:e.as,"aria-orientation":R(i).orientation.value},{default:B(()=>[ua(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`aria-orientation`])]),_:3},8,[`orientation`,`dir`,`loop`]))}}),Id=V({__name:`TabsTrigger`,props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,{forwardRef:n}=id(),r=Od(),i=Z(()=>jd(r.baseId,t.value)),a=Z(()=>r.contentIds.value.has(t.value)?Md(r.baseId,t.value):void 0),o=Z(()=>t.value===r.modelValue.value);return(e,t)=>(G(),q(R(Dd),{"as-child":``,focusable:!e.disabled,active:o.value},{default:B(()=>[Y(R(pd),{id:i.value,ref:R(n),role:`tab`,type:e.as===`button`?`button`:void 0,as:e.as,"as-child":e.asChild,"aria-selected":o.value?`true`:`false`,"aria-controls":a.value,"data-state":o.value?`active`:`inactive`,disabled:e.disabled,"data-disabled":e.disabled?``:void 0,"data-orientation":R(r).orientation.value,onMousedown:t[0]||=Ql(t=>{!e.disabled&&t.ctrlKey===!1?R(r).changeModelValue(e.value):t.preventDefault()},[`left`]),onKeydown:t[1]||=eu(t=>R(r).changeModelValue(e.value),[`enter`,`space`]),onFocus:t[2]||=()=>{let t=R(r).activationMode!==`manual`;!o.value&&!e.disabled&&t&&R(r).changeModelValue(e.value)}},{default:B(()=>[ua(e.$slots,`default`)]),_:3},8,[`id`,`type`,`as`,`as-child`,`aria-selected`,`aria-controls`,`data-state`,`disabled`,`data-disabled`,`data-orientation`])]),_:3},8,[`focusable`,`active`]))}}),Ld={key:1,class:`text-micro font-mono px-1.5 rounded-full bg-active inline-flex h-5 min-w-5 items-center justify-center tabular-nums`},Rd=V({__name:`LayoutTabs`,props:Aa({tabs:{},variant:{default:`underline`},lazy:{type:Boolean,default:!0}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=Qa(e,`modelValue`);return(n,r)=>(G(),q(R(Ad),{modelValue:t.value,"onUpdate:modelValue":r[0]||=e=>t.value=e,class:j(e.variant===`segment`?``:`border-b border-base`)},{default:B(()=>[Y(R(Fd),{class:j([`flex items-center relative`,e.variant===`segment`?`gap-1 p-1 rounded-lg bg-secondary w-max`:`gap-1`])},{default:B(()=>[(G(!0),K(U,null,ca(e.tabs,t=>(G(),q(R(Id),{key:t.value,value:t.value,as:t.href?`a`:`button`,href:t.href,disabled:t.disabled,class:j([`text-sm color-muted outline-none flex gap-1.5 transition items-center relative disabled:op50 focus-visible:ring-2 focus-visible:ring-primary-500/40`,e.variant===`segment`?`px-3 py-1 rounded-md data-[state=active]:bg-base data-[state=active]:color-base data-[state=active]:shadow-sm`:`px-3 py-2 -mb-px border-b-2 border-transparent hover:color-base data-[state=active]:color-active data-[state=active]:border-primary-500 dark:data-[state=active]:border-primary-400`])},{default:B(()=>[t.icon?(G(),K(`span`,{key:0,class:j(t.icon),"aria-hidden":`true`},null,2)):ys(``,!0),_s(` `+M(t.label??t.value)+` `,1),t.count==null?ys(``,!0):(G(),K(`span`,Ld,M(t.count),1))]),_:2},1032,[`value`,`as`,`href`,`disabled`,`class`]))),128)),e.variant===`underline`?(G(),q(R(Pd),{key:0,class:`rounded-full bg-primary-500 h-0.5 w-[--reka-tabs-indicator-size] translate-x-[--reka-tabs-indicator-position] transition-all duration-200 bottom-0 left-0 absolute`})):ys(``,!0)]),_:1},8,[`class`]),ua(n.$slots,`default`),(G(!0),K(U,null,ca(e.tabs,t=>(G(),K(U,{key:`panel-${t.value}`},[n.$slots[t.value]?(G(),q(R(Nd),{key:0,value:t.value,"force-mount":!e.lazy||void 0,class:`py-3 outline-none focus-visible:ring-2 focus-visible:ring-primary-500/40`},{default:B(()=>[ua(n.$slots,t.value)]),_:2},1032,[`value`,`force-mount`])):ys(``,!0)],64))),128))]),_:3},8,[`modelValue`,`class`]))}}),zd={key:0,class:`border border-base rounded-lg overflow-hidden bg-base`},Bd={class:`flex flex-wrap items-center gap-2 border-b border-base bg-secondary px3 py2`},Vd={class:`color-muted text-xs`},Hd={key:0,class:`divide-y divide-base`},Ud=[`href`],Wd={key:1,class:`font-mono text-xs color-active`},Gd={class:`color-muted text-xs`},Kd={class:`justify-self-start rounded bg-secondary px1.5 py0.5 color-muted text-2.5 md:justify-self-end`},qd={key:1,class:`relative p3`},Jd={class:`m0 overflow-auto rounded bg-secondary p3 color-base font-mono text-xs leading-relaxed`},Yd=V({__name:`MissingTags`,props:{tags:{}},setup(e){let t=e,n=an(`missing`),r=an(!1),i=[{value:`missing`,label:`Missing tags`},{value:`snippet`,label:`Nuxt snippet`}],a=Z(()=>gu.filter(e=>!t.tags.some(t=>t.name===e.name))),o=Z(()=>yu(a.value));async function s(){await navigator.clipboard.writeText(o.value),r.value=!0,window.setTimeout(()=>r.value=!1,1500)}return(e,t)=>a.value.length?(G(),K(`section`,zd,[J(`header`,Bd,[t[1]||=J(`span`,{class:`i-ph-warning-duotone color-warning`},null,-1),t[2]||=J(`h2`,{class:`m0 text-sm font-semibold`},` Suggestions `,-1),J(`span`,Vd,M(a.value.length)+` missing`,1),Y(Rd,{modelValue:n.value,"onUpdate:modelValue":t[0]||=e=>n.value=e,tabs:i,variant:`segment`,class:`ml-auto`},null,8,[`modelValue`])]),n.value===`missing`?(G(),K(`div`,Hd,[(G(!0),K(U,null,ca(a.value,e=>(G(),K(`div`,{key:e.name,class:`grid gap-1 px3 py2 md:grid-cols-[9rem_1fr_auto] md:items-center`},[e.docs?(G(),K(`a`,{key:0,href:e.docs,target:`_blank`,rel:`noreferrer`,class:`font-mono text-xs color-active`},M(e.name),9,Ud)):(G(),K(`span`,Wd,M(e.name),1)),J(`span`,Gd,M(e.description),1),J(`span`,Kd,M(e.suggestion),1)]))),128))])):(G(),K(`div`,qd,[J(`pre`,Jd,[J(`code`,null,M(o.value),1)]),Y(ju,{class:`absolute right5 top5`,size:`sm`,icon:r.value?`i-ph-check-duotone`:`i-ph-copy-duotone`,onClick:s},{default:B(()=>[_s(M(r.value?`Copied`:`Copy`),1)]),_:1},8,[`icon`])]))])):ys(``,!0)}}),Xd=[`src`,`alt`],Zd=V({__name:`PreviewImage`,props:{src:{},alt:{},class:{}},setup(e){let t=e,n=an(!1);return br(()=>t.src,()=>n.value=!1),(t,r)=>e.src&&!n.value?(G(),K(`img`,{key:0,src:e.src,alt:e.alt,class:j([t.$props.class,`block bg-secondary object-cover img-outline`]),onError:r[0]||=e=>n.value=!0},null,42,Xd)):(G(),K(`div`,{key:1,class:j([t.$props.class,`flex items-center justify-center bg-secondary color-faint img-outline`])},[...r[1]||=[J(`span`,{class:`i-ph-image-broken-duotone text-2xl`},null,-1)]],2))}}),Qd={class:`w-full max-w-125 bg-base`},$d={class:`border border-t-0 border-base bg-secondary px3 py2.5`},ef={class:`truncate color-muted text-xs uppercase`},tf={class:`my1 truncate text-base font-semibold`},nf={class:`m0 truncate color-muted text-sm`},rf=V({__name:`FacebookPreview`,props:{card:{}},setup(e){return(t,n)=>(G(),K(`article`,Qd,[Y(Zd,{src:e.card.image,alt:e.card.imageAlt,class:`aspect-1.91/1 w-full`},null,8,[`src`,`alt`]),J(`div`,$d,[J(`div`,ef,M(e.card.hostname),1),J(`h3`,tf,M(e.card.title||`Untitled page`),1),J(`p`,nf,M(e.card.description||`No description provided.`),1)])]))}}),af={class:`w-full max-w-125 overflow-hidden border border-base rounded-sm bg-base shadow-sm`},of={class:`p3`},sf={class:`m0 truncate text-base font-semibold`},cf={class:`mt1 truncate color-muted text-xs`},lf=V({__name:`LinkedinPreview`,props:{card:{}},setup(e){return(t,n)=>(G(),K(`article`,af,[Y(Zd,{src:e.card.image,alt:e.card.imageAlt,class:`aspect-1.91/1 w-full`},null,8,[`src`,`alt`]),J(`div`,of,[J(`h3`,sf,M(e.card.title||`Untitled page`),1),J(`div`,cf,M(e.card.hostname),1)])]))}}),uf={class:`w-full max-w-105 border border-base rounded-4 rounded-bl-sm bg-base p3 shadow-sm`},df=[`href`],ff={class:`mt2 grid grid-cols-[2px_1fr] gap-2`},pf={class:`min-w-0`},mf={class:`color-active text-sm font-semibold`},hf={class:`my1 text-sm font-semibold`},gf={class:`m0 color-muted text-sm`},_f={class:`mt1 text-right color-faint font-mono text-2.5 tabular-nums`},vf=V({__name:`TelegramPreview`,props:{card:{}},setup(e){let t=new Intl.DateTimeFormat(void 0,{hour:`2-digit`,minute:`2-digit`}).format(new Date);return(n,r)=>(G(),K(`article`,uf,[J(`a`,{href:e.card.url,target:`_blank`,rel:`noreferrer`,class:`block truncate color-active text-sm underline`},M(e.card.url),9,df),J(`div`,ff,[r[0]||=J(`div`,{class:`rounded bg-primary op70`},null,-1),J(`div`,pf,[Y(Zd,{src:e.card.image,alt:e.card.imageAlt,class:`mb2 aspect-1.91/1 w-full rounded`},null,8,[`src`,`alt`]),J(`div`,mf,M(e.card.hostname),1),J(`h3`,hf,M(e.card.title||`Untitled page`),1),J(`p`,gf,M(e.card.description||`No description provided.`),1)])]),J(`div`,_f,M(R(t)),1)]))}}),yf={key:0,class:`w-full max-w-110 overflow-hidden border border-base rounded-4 bg-base`},bf={class:`p3`},xf={class:`truncate color-muted text-xs lowercase`},Sf={class:`my1 truncate text-sm font-semibold`},Cf={class:`m0 line-clamp-2 color-muted text-sm`},wf={key:1,class:`w-full max-w-110 flex overflow-hidden border border-base rounded-4 bg-base`},Tf={class:`min-w-0 flex flex-col justify-center p3`},Ef={class:`truncate color-muted text-xs lowercase`},Df={class:`my1 truncate text-sm font-semibold`},Of={class:`m0 line-clamp-2 color-muted text-sm`},kf=V({__name:`TwitterPreview`,props:{card:{}},setup(e){return(t,n)=>e.card.twitterCard===`summary`?(G(),K(`article`,wf,[Y(Zd,{src:e.card.image,alt:e.card.imageAlt,class:`aspect-square w-32 shrink-0`},null,8,[`src`,`alt`]),J(`div`,Tf,[J(`div`,Ef,M(e.card.hostname),1),J(`h3`,Df,M(e.card.title||`Untitled page`),1),J(`p`,Of,M(e.card.description||`No description provided.`),1)])])):(G(),K(`article`,yf,[Y(Zd,{src:e.card.image,alt:e.card.imageAlt,class:`aspect-2/1 w-full`},null,8,[`src`,`alt`]),J(`div`,bf,[J(`div`,xf,M(e.card.hostname),1),J(`h3`,Sf,M(e.card.title||`Untitled page`),1),J(`p`,Cf,M(e.card.description||`No description provided.`),1)])]))}}),Af={class:`h-full min-h-100 flex flex-col border border-base rounded-lg overflow-hidden bg-base`},jf={class:`flex flex-wrap items-center gap-2 border-b border-base bg-secondary px3 py2`},Mf={class:`preview-grid flex flex-1 items-center justify-center overflow-auto p5`},Nf=V({__name:`SocialPreview`,props:{snapshot:{}},setup(e){let t=e,n=an(`twitter`),r=Z(()=>vu(t.snapshot,n.value===`twitter`)),i=[{value:`twitter`,label:`Twitter`},{value:`facebook`,label:`Facebook`},{value:`linkedin`,label:`LinkedIn`},{value:`telegram`,label:`Telegram`}];return(e,t)=>(G(),K(`section`,Af,[J(`header`,jf,[t[1]||=J(`span`,{class:`i-ph-share-network-duotone color-active`},null,-1),t[2]||=J(`h2`,{class:`m0 text-sm font-semibold`},` Social preview `,-1),Y(Rd,{modelValue:n.value,"onUpdate:modelValue":t[0]||=e=>n.value=e,tabs:i,variant:`segment`,class:`ml-auto`},null,8,[`modelValue`])]),J(`div`,Mf,[n.value===`twitter`?(G(),q(kf,{key:0,card:r.value},null,8,[`card`])):n.value===`facebook`?(G(),q(rf,{key:1,card:r.value},null,8,[`card`])):n.value===`linkedin`?(G(),q(lf,{key:2,card:r.value},null,8,[`card`])):(G(),q(vf,{key:3,card:r.value},null,8,[`card`]))])]))}}),Pf={key:0,class:`flex-1 min-w-0`},Ff={key:1,class:`flex gap-1 items-center`},If=V({__name:`LayoutToolbar`,props:{sticky:{type:Boolean,default:!0},glass:{type:Boolean,default:!0}},setup(e){return(t,n)=>(G(),K(`div`,{class:j([`px-3 py-2 border-b border-base flex gap-3 items-center`,[e.sticky?`sticky top-0 z-nav`:``,e.glass?`bg-glass`:`bg-base`]])},[ua(t.$slots,`start`,{},()=>[ua(t.$slots,`default`)]),t.$slots.search?(G(),K(`div`,Pf,[ua(t.$slots,`search`)])):ys(``,!0),t.$slots.end?(G(),K(`div`,Ff,[ua(t.$slots,`end`)])):ys(``,!0)],2))}}),Lf={class:`flex items-center gap-1.5 shrink-0 font-semibold text-sm select-none`},Rf={key:0,class:`rounded bg-secondary px1.5 py0.5 color-muted text-2.5 font-normal`},zf={class:`min-w-0 flex flex-1 items-center gap-2 border border-base rounded px3 py1.5 focus-within:border-active`},Bf=[`disabled`],Vf=V({__name:`ViewerToolbar`,props:Aa({loading:{type:Boolean},isStatic:{type:Boolean}},{target:{required:!0},targetModifiers:{}}),emits:Aa([`inspect`],[`update:target`]),setup(e,{emit:t}){let n=t,r=Qa(e,`target`);return(t,i)=>(G(),q(If,{glass:!1,class:`h-nav`},{search:B(()=>[J(`form`,{class:`mx-auto w-full max-w-3xl flex items-center gap-2`,onSubmit:i[1]||=Ql(e=>n(`inspect`),[`prevent`])},[J(`label`,zf,[i[4]||=J(`span`,{class:`i-ph-globe-hemisphere-west-duotone color-muted shrink-0`},null,-1),ur(J(`input`,{"onUpdate:modelValue":i[0]||=e=>r.value=e,class:`min-w-0 flex-1 bg-transparent color-base font-mono text-xs outline-none`,inputmode:`url`,placeholder:`http://localhost:3000`,spellcheck:`false`,"aria-label":`Page URL`,disabled:e.isStatic},null,8,Bf),[[Rl,r.value]])]),Y(ju,{variant:`primary`,loading:e.loading,disabled:e.isStatic,icon:`i-ph-magnifying-glass-duotone`,type:`submit`},{default:B(()=>[...i[5]||=[_s(` Inspect `,-1)]]),_:1},8,[`loading`,`disabled`])],32)]),default:B(()=>[J(`div`,Lf,[i[2]||=J(`span`,{class:`i-ph-image-square-duotone text-base color-active`},null,-1),i[3]||=J(`span`,null,`Open Graph`,-1),e.isStatic?(G(),K(`span`,Rf,`static`)):ys(``,!0)])]),_:1}))}}),Q={bus:{agentManifestChanged:`agent:manifest:changed`,agentToolRegistered:`agent:tool:registered`,agentToolUnregistered:`agent:tool:unregistered`,agentResourceRegistered:`agent:resource:registered`,agentResourceUnregistered:`agent:resource:unregistered`},client:{isTrustedUpdated:`rpc:is-trusted:updated`,error:`rpc:error`,connectionStatus:`connection:status`,connectionError:`connection:error`},broadcast:{authRevoked:`devframe:auth:revoked`,clientStateUpdated:`devframe:rpc:client-state:updated`,clientStatePatch:`devframe:rpc:client-state:patch`,streamingChunk:`devframe:streaming:chunk`,streamingEnd:`devframe:streaming:end`,streamingUploadCancel:`devframe:streaming:upload-cancel`},postMessage:{remoteAssetsError:`devframe:remote-assets-error`}},Hf=`__connection.json`,Uf=`__DEVFRAME_CONNECTION__`,Wf=`x-birpc-session`,Gf=`__rpc-dump/index.json`,Kf=`devframe:services`,qf=`devframe_otp`,Jf=`devframe_auth_token`;Q.postMessage.remoteAssetsError;function Yf(e){return Vu(e)}var Xf=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(e=>Yf(e))}updateOptions(e){this.options={...this.options,...e}}cached(e,t){let n=this.cacheMap.get(e);if(n)return n.get(this.keySerializer(t))}has(e,t){return this.cacheMap.get(e)?.has(this.keySerializer(t))??!1}apply(e,t){let n=this.cacheMap.get(e.m)||new Map;n.set(this.keySerializer(e.a),t),this.cacheMap.set(e.m,n)}validate(e){return this.options.functions.includes(e)}clear(e){e?this.cacheMap.delete(e):this.cacheMap.clear()}};function Zf(e,t){let n=`\x1B[${e}m`,r=`\x1B[${t}m`;return((e,...t)=>{if(Array.isArray(e)&&`raw`in e){let i=e,a=``;for(let e=0;e<i.length;e++)a+=i[e],e<t.length&&(a+=String(t[e]));return`${n}${a}${r}`}return`${n}${String(e)}${r}`})}var Qf={blue:Zf(34,39),cyan:Zf(36,39),gray:Zf(90,39),green:Zf(32,39),red:Zf(31,39),yellow:Zf(33,39),bold:Zf(1,22),dim:Zf(2,22),reset:Zf(0,0),underline:Zf(4,24)};function $f(e,...t){return typeof e==`function`?e(...t):e}var ep=Error.captureStackTrace,tp=class e extends Error{name;code;docs;fix;sources;get why(){return this.message}constructor(t,n=e){super(t.why,{cause:t.cause}),this.code=this.name=t.code,this.fix=t.fix,this.docs=t.docs,this.sources=t.sources,ep?.(this,n)}toJSON(){return{name:this.name,why:this.why,fix:this.fix,docs:this.docs,sources:this.sources,cause:this.cause,stack:this.stack}}};function np(e,t){return typeof e==`string`?`${e}/${t.toLowerCase()}`:e?.(t)}function rp(e){let t=e.reporters??[],n={},{docsBase:r}=e;for(let i of Object.keys(e.codes)){let a=e.codes[i],o=a.docs===!1?void 0:a.docs||np(r,i),s=(e={},n={})=>{let r=new tp({code:i,why:$f(a.why,e),fix:$f(a.fix,e),docs:o,cause:e.cause,sources:e.sources},s);for(let e of t)e(r,n);return r};n[i]=s}return n}function ip(e){return t=>{let n=`${e.bold(e.red(`[${t.name}]`))} ${t.message}`,r=[];return t.fix&&r.push(`${e.dim(`fix:`)} ${t.fix}`),t.sources?.length&&r.push(`${e.dim(`sources:`)} ${t.sources.join(`, `)}`),t.docs&&r.push(`${e.dim(`see:`)} ${e.cyan(t.docs)}`),r.length===0?n:[n,...r.map((t,n)=>`${e.dim(n<r.length-1?`├▶`:`╰▶`)} ${t}`)].join(`
|
|
8
|
+
`)}}var ap=ip(Qf);function op(e,{method:t=`warn`}={}){console[t](ap(e))}function sp(e){return rp({...e,reporters:[op,...e.reporters??[]]})}var cp=sp({docsBase:`https://devfra.me/errors`,codes:{DF0019:{why:e=>`RPC function "${e.name}" has \`agent\` set but \`jsonSerializable\` is not \`true\` — MCP requires JSON-serializable data.`,fix:"Set `jsonSerializable: true` if the payload is JSON-safe, or remove `agent` to keep it RPC-only."},DF0020:{why:e=>`RPC function "${e.name}" declares \`jsonSerializable: true\` but the value at "${e.path}" is a ${e.type}.`,fix:"Either drop `jsonSerializable: true` (falls back to structured-clone) or change the value to a JSON-safe shape."},DF0021:{why:e=>`RPC function "${e.name}" is already registered`,fix:"Use the `force` parameter to overwrite an existing registration."},DF0022:{why:e=>`RPC function "${e.name}" is not registered. Use register() to add new functions.`},DF0023:{why:e=>`RPC function "${e.name}" is not registered`},DF0024:{why:e=>`Either handler or setup function must be provided for RPC function "${e.name}"`},DF0025:{why:e=>`Function "${e.name}" not found in dump store`},DF0026:{why:e=>`No dump match for "${e.name}" with args: ${e.args}`},DF0027:{why:e=>`Function "${e.name}" with type "${e.type}" cannot have dump configuration. Only "static" and "query" types support dumps.`},DF0028:{why:e=>`Function "${e.name}" with type "${e.type}" cannot use \`snapshot: true\`. Only "query" functions support this sugar; "static" functions have equivalent default behavior already.`,fix:"Remove `snapshot: true`, or change the function type to `query`."},DF0043:{why:e=>`RPC function "${e.name}" received an invalid argument at position ${e.index}: ${e.issues}`,fix:"Pass a value that satisfies the `args` schema declared for this function."},DF0044:{why:e=>`RPC function "${e.name}" returned a value that failed its \`returns\` schema: ${e.issues}`,fix:"Make the handler return a value that satisfies the `returns` schema, or relax the schema."}}});async function lp(e,t){let n=e[`~standard`].validate(t);return n instanceof Promise?await n:n}function up(e){return e.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `)}async function dp(e,t,n){let r=n.slice();if(!t||t.length===0)return r;for(let r=0;r<t.length;r++){let i=t[r];if(!i)continue;let a=await lp(i,n[r]);if(a.issues)throw cp.DF0043({name:e,index:r,issues:up(a.issues)})}return r}async function fp(e,t,n){if(!t)return n;let r=await lp(t,n);if(r.issues)throw cp.DF0044({name:e,issues:up(r.issues)});return n}async function pp(e,t){if(!e.setup)return{};if(typeof t==`object`&&t){e.__cache??=new WeakMap;let n=e.__cache,r=n.get(t);return r||(r=Promise.resolve(e.setup(t)),r.catch(()=>{n.get(t)===r&&n.delete(t)}),n.set(t,r)),await r}if(!e.__promise){let n=Promise.resolve(e.setup(t));n.catch(()=>{e.__promise===n&&(e.__promise=void 0)}),e.__promise=n}return await e.__promise}async function mp(e,t){let n=e.handler;if(!n){let r=await pp(e,t);if(!r.handler)throw cp.DF0024({name:e.name});n=r.handler}let r=e.args,i=e.returns;if(!r&&!i)return n;let a=n;return async(...t)=>{let n=await dp(e.name,r,t),o=await a(...n);return await fp(e.name,i,o)}}var hp=class{context;definitions=new Map;functions;_onChanged=[];constructor(e){this.context=e;let t=this.definitions,n=this;this.functions=new Proxy({},{get(e,r){let i=t.get(r);if(i)return mp(i,n.context)},has(e,n){return t.has(n)},getOwnPropertyDescriptor(e,n){return{value:t.get(n)?.handler,configurable:!0,enumerable:!0}},ownKeys(){return Array.from(t.keys())}})}register(e,t=!1){if(this.definitions.has(e.name)&&!t)throw cp.DF0021({name:e.name});gp(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}update(e,t=!1){if(!this.definitions.has(e.name)&&!t)throw cp.DF0022({name:e.name});gp(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}onChanged(e){return this._onChanged.push(e),()=>{let t=this._onChanged.indexOf(e);t!==-1&&this._onChanged.splice(t,1)}}async getHandler(e){return await mp(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw cp.DF0023({name:String(e)});return{args:t.args,returns:t.returns}}has(e){return this.definitions.has(e)}get(e){return this.definitions.get(e)}list(){return Array.from(this.definitions.keys())}};function gp(e){if(e.agent&&e.jsonSerializable!==!0)throw cp.DF0019({name:e.name})}function _p(e,t=``){return JSON.stringify(e,function(e,n){let r=this,i=r==null?n:r[e];if(i===void 0){if(Array.isArray(r))throw vp(t,`undefined`,r,e);return n}if(i===null)return n;if(typeof i==`bigint`)throw vp(t,`BigInt`,r,e);if(typeof i==`object`){if(i instanceof Map)throw vp(t,`Map`,r,e);if(i instanceof Set)throw vp(t,`Set`,r,e);if(i instanceof Date)throw vp(t,`Date`,r,e);if(Array.isArray(i))return n;let a=Object.getPrototypeOf(i);if(a!==null&&a!==Object.prototype)throw vp(t,i.constructor?.name??`class instance`,r,e)}return n})}function vp(e,t,n,r){let i=yp(n,r);return cp.DF0020({name:e||`<anonymous>`,type:t,path:i})}function yp(e,t){return Array.isArray(e)?`[${t}]`:t===``?`<root>`:t}function bp(){let e={};function t(t,...n){let r=e[t]||[];for(let e=0,t=r.length;e<t;e++){let t=r[e];t&&t(...n)}}function n(n,...r){t(n,...r),delete e[n]}function r(t,n){return(e[t]||=[]).push(n),()=>{e[t]=e[t]?.filter(e=>n!==e)}}function i(e,t){let n=r(e,((...e)=>(n(),t(...e))));return n}return{_listeners:e,emit:t,emitOnce:n,on:r,once:i}}String.fromCharCode;var xp=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Sp=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Cp=/^([/\\]\s*){2,}[^/\\]/,wp=/\/$|\/\?|\/#/,Tp=/^\.?\//;function Ep(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?xp.test(e):Sp.test(e)||(t.acceptRelative?Cp.test(e):!1)}function Dp(e=``,t){return t?wp.test(e):e.endsWith(`/`)}function Op(e=``,t){if(!t)return(Dp(e)?e.slice(0,-1):e)||`/`;if(!Dp(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function kp(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(Dp(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function Ap(e,t){if(jp(t)||Ep(e))return e;let n=Op(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return Np(n,e)}function jp(e){return!e||e===`/`}function Mp(e){return e&&e!==`/`}function Np(e,...t){let n=e||``;for(let e of t.filter(e=>Mp(e)))if(n){let t=e.replace(Tp,``);n=kp(n)+t}else n=e;return n}function Pp(e,t){let n=e.match(Sp);return n||=e.match(/^\/{2,}/),n?t+e.slice(n[0].length):t+e}var Fp=`__DEVFRAME_CONNECTION_META__`,Ip=`__DEVFRAME_CONNECTION_AUTH_TOKEN__`;function Lp(e){let t=[()=>window?.[e],()=>globalThis?.[e],()=>parent.window?.[e]];for(let e of t)try{let t=e();if(t)return t}catch{}}function Rp(){return Lp(Uf)}function zp(){return Lp(Fp)}function Bp(e){if(e)return e;try{let e=localStorage.getItem(Ip);if(e)return e}catch{}return Lp(Ip)}function Vp(e){globalThis[Uf]=e,globalThis[Fp]={...e.connectionMeta,baseUrl:e.metaBaseUrl},e.authToken&&Hp(e.authToken)}function Hp(e){try{localStorage.setItem(Ip,e)}catch{}globalThis[Ip]=e;let t=Rp();t&&(globalThis[Uf]={...t,authToken:e})}function Up(e){let t=Ap(Hf,e);try{return new URL(t,globalThis.location?.href).href}catch{return t}}function Wp(e,t){return t&&t!==e.authToken?{...e,authToken:t}:e}function Gp(){let e=Rp();if(e)return Wp(e,Bp()??e.authToken??e.connectionMeta.authToken);let t=zp();if(t)return{connectionMeta:t,metaBaseUrl:t.baseUrl??Up(`./`),authToken:Bp(t.authToken)}}async function Kp(e={}){if(e.connection){let t=Wp(e.connection,Bp(e.authToken??e.connection.authToken??e.connection.connectionMeta.authToken));return Vp(t),t}let t=Array.isArray(e.baseURL)?e.baseURL:[e.baseURL??`./`];if(e.connectionMeta){let n={connectionMeta:e.connectionMeta,metaBaseUrl:Up(t[0]??`./`),authToken:Bp(e.authToken??e.connectionMeta.authToken)};return Vp(n),n}let n=Gp();if(n){let t=Wp(n,Bp(e.authToken??n.authToken??n.connectionMeta.authToken));return Vp(t),t}let r=[];for(let n of t){let t=Ap(Hf,n),i=Up(n);try{let n=await fetch(t);if(!n.ok)throw Error(`Failed to fetch connection meta from ${i}: ${n.status}`);let r=await n.json(),a={connectionMeta:r,metaBaseUrl:n.url||i,authToken:Bp(e.authToken??r.authToken)};return Vp(a),a}catch(e){r.push(e)}}throw Error(`Failed to get connection meta from ${t.join(`, `)}`,{cause:r})}var qp=class extends Error{name=`DevframeConnectionError`;kind;constructor(e,t,n){super(t,n),this.kind=e}};function Jp(e=qf){try{let t=globalThis.location?.hash?.replace(/^#/,``)??``;return new URLSearchParams(t).get(e)||void 0}catch{return}}function Yp(e){try{let t=new URL(globalThis.location.href),n=new URLSearchParams(t.hash.replace(/^#/,``));if(!n.has(e))return;n.delete(e),t.hash=n.toString(),globalThis.history?.replaceState(globalThis.history.state,``,t.href)}catch{}}function Xp(e=qf){let t=Jp(e);return t&&Yp(e),t}async function Zp(e,t={}){let n=Xp(t.param??`devframe_otp`);return n?e.isTrusted?!0:e.requestTrustWithCode(n):!1}function Qp(e){let t={},n=new WeakMap,r,i=()=>(r??=e.sharedState.get(Kf,{initialValue:{}}).then(e=>(t=e.value(),e.on(`updated`,e=>{t=e}),e)),r);return i(),{state:i,has:e=>e in t,keys:()=>Object.keys(t),get:r=>{let i=t[r];if(!i)return;let a=n.get(i);return a||(a={...i,rpc:e.scope(i.scope).rpc},n.set(i,a)),a}}}var $p=Symbol.for(`immer-nothing`),em=Symbol.for(`immer-draftable`),$=Symbol.for(`immer-state`);function tm(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var nm=Object,rm=nm.getPrototypeOf,im=`constructor`,am=`prototype`,om=`configurable`,sm=`enumerable`,cm=`writable`,lm=`value`,um=e=>!!e&&!!e[$];function dm(e){return e?mm(e)||xm(e)||!!e[em]||!!e[im]?.[em]||Sm(e)||Cm(e):!1}var fm=nm[am][im].toString(),pm=new WeakMap;function mm(e){if(!e||!wm(e))return!1;let t=rm(e);if(t===null||t===nm[am])return!0;let n=nm.hasOwnProperty.call(t,im)&&t[im];if(n===Object)return!0;if(!Tm(n))return!1;let r=pm.get(n);return r===void 0&&(r=Function.toString.call(n),pm.set(n,r)),r===fm}function hm(e,t,n=!0){gm(e)===0?(n?Reflect.ownKeys(e):nm.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function gm(e){let t=e[$];return t?t.type_:xm(e)?1:Sm(e)?2:Cm(e)?3:0}var _m=(e,t,n=gm(e))=>n===2?e.has(t):nm[am].hasOwnProperty.call(e,t),vm=(e,t,n=gm(e))=>n===2?e.get(t):e[t],ym=(e,t,n,r=gm(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function bm(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var xm=Array.isArray,Sm=e=>e instanceof Map,Cm=e=>e instanceof Set,wm=e=>typeof e==`object`,Tm=e=>typeof e==`function`,Em=e=>typeof e==`boolean`;function Dm(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Om=e=>wm(e)?e?.[$]:null,km=e=>e.copy_||e.base_,Am=e=>e.modified_?e.copy_:e.base_;function jm(e,t){if(Sm(e))return new Map(e);if(Cm(e))return new Set(e);if(xm(e))return Array[am].slice.call(e);let n=mm(e);if(t===!0||t===`class_only`&&!n){let t=nm.getOwnPropertyDescriptors(e);delete t[$];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[cm]===!1&&(a[cm]=!0,a[om]=!0),(a.get||a.set)&&(t[i]={[om]:!0,[cm]:!0,[sm]:a[sm],[lm]:e[i]})}return nm.create(rm(e),t)}{let t=rm(e);if(t!==null&&n)return{...e};let r=nm.create(t);return nm.assign(r,e)}}function Mm(e,t=!1){return Fm(e)||um(e)||!dm(e)?e:(gm(e)>1&&nm.defineProperties(e,{set:Pm,add:Pm,clear:Pm,delete:Pm}),nm.freeze(e),t&&hm(e,(e,t)=>{Mm(t,!0)},!1),e)}function Nm(){tm(2)}var Pm={[lm]:Nm};function Fm(e){return e===null||!wm(e)||nm.isFrozen(e)}var Im=`MapSet`,Lm=`Patches`,Rm=`ArrayMethods`,zm={};function Bm(e){let t=zm[e];return t||tm(0,e),t}var Vm=e=>!!zm[e];function Hm(e,t){zm[e]||(zm[e]=t)}var Um,Wm=()=>Um,Gm=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Vm(Im)?Bm(Im):void 0,arrayMethodsPlugin_:Vm(Rm)?Bm(Rm):void 0});function Km(e,t){t&&(e.patchPlugin_=Bm(Lm),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function qm(e){Jm(e),e.drafts_.forEach(Xm),e.drafts_=null}function Jm(e){e===Um&&(Um=e.parent_)}var Ym=e=>Um=Gm(Um,e);function Xm(e){let t=e[$];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Zm(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[$].modified_&&(qm(t),tm(4)),dm(e)&&(e=Qm(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[$].base_,e,t)}else e=Qm(t,n);return $m(t,e,!0),qm(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===$p?void 0:e}function Qm(e,t){if(Fm(t))return t;let n=t[$];if(!n)return sh(t,e.handledSet_,e);if(!th(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);ah(n,e)}return n.copy_}function $m(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Mm(t,n)}function eh(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var th=(e,t)=>e.scope_===t,nh=[];function rh(e,t,n,r){let i=km(e),a=e.type_;if(r!==void 0&&vm(i,r,a)===t){ym(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;hm(i,(e,n)=>{if(um(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??nh;for(let e of o)ym(i,e,n,a)}function ih(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!th(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=Am(i);rh(e,i.draft_??i,a,n),ah(i,r)})}function ah(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}eh(e)}}function oh(e,t,n){let{scope_:r}=e;if(um(n)){let i=n[$];th(i,r)&&i.callbacks_.push(function(){gh(e),rh(e,n,Am(i),t)})}else dm(n)&&e.callbacks_.push(function(){let i=km(e);e.type_===3?i.has(n)&&sh(n,r.handledSet_,r):vm(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&sh(vm(e.copy_,t,e.type_),r.handledSet_,r)})}function sh(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||um(e)||t.has(e)||!dm(e)||Fm(e)?e:(t.add(e),hm(e,(r,i)=>{if(um(i)){let t=i[$];th(t,n)&&(ym(e,r,Am(t),e.type_),eh(t))}else dm(i)&&sh(i,t,n)}),e)}function ch(e,t){let n=xm(e),r={type_:+!!n,scope_:t?t.scope_:Wm(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=lh;n&&(i=[r],a=uh);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var lh={get(e,t){if(t===$)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=km(e);if(!_m(i,t,e.type_))return ph(e,i,t);let a=i[t];if(e.finalized_||!dm(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Dm(t))return a;if(a===dh(e.base_,t)||fh(e,t,a)){gh(e);let n=e.type_===1?+t:t,r=vh(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in km(e)},ownKeys(e){return Reflect.ownKeys(km(e))},set(e,t,n){let r=mh(km(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=dh(km(e),t),i=r?.[$];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(bm(n,r)&&(n!==void 0||_m(e.base_,t,e.type_)))return!0;gh(e),hh(e)}return e.copy_[t]===n&&(n!==void 0||_m(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),oh(e,t,n),!0)},deleteProperty(e,t){return gh(e),dh(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),hh(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=km(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[cm]:!0,[om]:e.type_!==1||t!==`length`,[sm]:r[sm],[lm]:n[t]}},defineProperty(){tm(11)},getPrototypeOf(e){return rm(e.base_)},setPrototypeOf(){tm(12)}},uh={};for(let e in lh){let t=lh[e];uh[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}uh.deleteProperty=function(e,t){return uh.set.call(this,e,t,void 0)},uh.set=function(e,t,n){return lh.set.call(this,e[0],t,n,e[0])};function dh(e,t){let n=e[$];return(n?km(n):e)[t]}function fh(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!dm(n)||n[$]?!1:e.baseRefs_.has(n)}function ph(e,t,n){let r=mh(t,n);return r?lm in r?r[lm]:r.get?.call(e.draft_):void 0}function mh(e,t){if(!(t in e))return;let n=rm(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=rm(n)}}function hh(e){e.modified_||(e.modified_=!0,e.parent_&&hh(e.parent_))}function gh(e){e.copy_||=(e.assigned_=new Map,jm(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var _h=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Tm(e)&&!Tm(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Tm(t)||tm(6),n!==void 0&&!Tm(n)&&tm(7);let r;if(dm(e)){let i=Ym(this),a=vh(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?qm(i):Jm(i)}return Km(i,n),Zm(r,i)}if(!e||!wm(e)){if(r=t(e),r===void 0&&(r=e),r===$p&&(r=void 0),this.autoFreeze_&&Mm(r,!0),n){let t=[],i=[];Bm(Lm).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}tm(1,e)},this.produceWithPatches=(e,t)=>{if(Tm(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Em(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Em(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Em(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){dm(e)||tm(8),um(e)&&(e=yh(e));let t=Ym(this),n=vh(t,e,void 0);return n[$].isManual_=!0,Jm(t),n}finishDraft(e,t){let n=e&&e[$];(!n||!n.isManual_)&&tm(9);let{scope_:r}=n;return Km(r,t),Zm(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=Bm(Lm).applyPatches_;return um(e)?r(e,t):this.produce(e,e=>r(e,t))}};function vh(e,t,n,r){let[i,a]=Sm(t)?Bm(Im).proxyMap_(t,n):Cm(t)?Bm(Im).proxySet_(t,n):ch(t,n);return(n?.scope_??Wm()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?ih(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function yh(e){return um(e)||tm(10,e),bh(e)}function bh(e){if(!dm(e)||Fm(e))return e;let t=e[$],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=jm(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=jm(e,!0);return hm(n,(e,t)=>{ym(n,e,bh(t))},r),t&&(t.finalized_=!1),n}function xh(){function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=Om(vm(e,n.key_)),i=vm(e,n.key_);if(i===void 0||i!==n.draft_&&i!==n.base_&&i!==n.copy_||t!=null&&t.base_!==n.base_)return null;let a=n.parent_.type_===3,o;if(a){let e=n.parent_;o=Array.from(e.drafts_.keys()).indexOf(n.key_)}else o=n.key_;if(!(a&&e.size>o||_m(e,o)))return null;r.push(o)}if(n.parent_)return e(n.parent_,r);r.reverse();try{t(n.copy_,r)}catch{return null}return r}function t(e,t){let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(n=vm(n,r),!wm(n)||n===null)throw Error(`Cannot resolve path at '${t.join(`/`)}'`)}return n}let n=`replace`,r=`remove`;function i(e,t,n){if(e.scope_.processedForPatches_.has(e))return;e.scope_.processedForPatches_.add(e);let{patches_:r,inversePatches_:i}=n;switch(e.type_){case 0:case 2:return o(e,t,r,i);case 1:return a(e,t,r,i);case 3:return s(e,t,r,i)}}function a(e,t,i,a){let{base_:o,assigned_:s}=e,c=e.copy_;c.length<o.length&&([o,c]=[c,o],[i,a]=[a,i]);let l=e.allIndicesReassigned_===!0;for(let e=0;e<o.length;e++){let r=c[e],u=o[e];if((l||s?.get(e.toString()))&&r!==u){let o=r?.[$];if(o&&o.modified_)continue;let s=t.concat([e]);i.push({op:n,path:s,value:d(r)}),a.push({op:n,path:s,value:d(u)})}}for(let e=o.length;e<c.length;e++){let n=t.concat([e]);i.push({op:`add`,path:n,value:d(c[e])})}for(let e=c.length-1;o.length<=e;--e){let n=t.concat([e]);a.push({op:r,path:n})}}function o(e,t,i,a){let{base_:o,copy_:s,type_:c}=e;hm(e.assigned_,(e,l)=>{let u=vm(o,e,c),f=vm(s,e,c),p=l?_m(o,e)?n:`add`:r;if(u===f&&p===n)return;let m=t.concat(e);i.push(p===r?{op:p,path:m}:{op:p,path:m,value:d(f)}),a.push(p===`add`?{op:r,path:m}:p===r?{op:`add`,path:m,value:d(u)}:{op:n,path:m,value:d(u)})})}function s(e,t,n,i){let{base_:a,copy_:o}=e,s=0;a.forEach(e=>{if(!o.has(e)){let a=t.concat([s]);n.push({op:r,path:a,value:e}),i.unshift({op:`add`,path:a,value:e})}s++}),s=0,o.forEach(e=>{if(!a.has(e)){let a=t.concat([s]);n.push({op:`add`,path:a,value:e}),i.unshift({op:r,path:a,value:e})}s++})}function c(e,t,r){let{patches_:i,inversePatches_:a}=r;i.push({op:n,path:[],value:t===$p?void 0:t}),a.push({op:n,path:[],value:e})}function l(e,t){return t.forEach(t=>{let{path:i,op:a}=t,o=e;for(let e=0;e<i.length-1;e++){let t=gm(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===im)&&tm(19),Tm(o)&&n===am&&tm(19),o=vm(o,n),(o===null||!wm(o))&&tm(18,i.join(`/`))}let s=gm(o),c=u(t.value),l=i[i.length-1];switch(a){case n:switch(s){case 2:return o.set(l,c);case 3:tm(16);default:return o[l]=c}case`add`:switch(s){case 1:return l===`-`?o.push(c):o.splice(l,0,c);case 2:return o.set(l,c);case 3:return o.add(c);default:return o[l]=c}case r:switch(s){case 1:return o.splice(l,1);case 2:return o.delete(l);case 3:return o.delete(t.value);default:return delete o[l]}default:tm(17,a)}}),e}function u(e){if(!dm(e))return e;if(xm(e))return e.map(u);if(Sm(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if(Cm(e))return new Set(Array.from(e).map(u));let t=Object.create(rm(e));for(let n in e)t[n]=u(e[n]);return _m(e,em)&&(t[em]=e[em]),t}function d(e){return um(e)?u(e):e}Hm(Lm,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}var Sh=new _h,Ch=Sh.produce,wh=Sh.produceWithPatches.bind(Sh),Th=Sh.applyPatches.bind(Sh),Eh=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Dh(e=21){let t=``,n=e;for(;n--;)t+=Eh[Math.random()*64|0];return t}var Oh=1e3;function kh(e,t){if(e.add(t),e.size>Oh){let t=e.values().next().value;t!==void 0&&e.delete(t)}}function Ah(e){let{enablePatches:t=!1}=e;t&&xh();let n=bp(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=Dh())=>{i.has(t)||(xh(),r=Th(r,e),kh(i,t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=Dh())=>{if(!i.has(a)){if(kh(i,a),t){let[t,i]=wh(r,e);r=t,n.emit(`updated`,r,i,a)}else r=Ch(r,e),n.emit(`updated`,r,void 0,a)}},syncIds:i}}function jh(e){let t=new Map,n=new Map,r=new Map,i=new Set,a=e.connectionMeta.backend===`static`;function o(e,t){let n=r.get(e);return n&&typeof n==`object`&&!Array.isArray(n)&&typeof t==`object`&&!Array.isArray(t)?{...n,...t}:t}e.client.register({name:Q.broadcast.clientStateUpdated,type:`event`,handler:(e,n,r)=>{let i=t.get(e);!i||i.syncIds.has(r)||i.mutate(()=>o(e,n),r)}}),e.client.register({name:Q.broadcast.clientStatePatch,type:`event`,handler:(e,n,r)=>{let i=t.get(e);!i||i.syncIds.has(r)||i.patch(n,r)}});function s(t,n){let r=[];return r.push(n.on(`updated`,(n,r,i)=>{a||(r?e.callEvent(`devframe:rpc:server-state:patch`,t,r,i):e.callEvent(`devframe:rpc:server-state:set`,t,n,i))})),()=>{for(let e of r)e()}}return{keys:()=>Array.from(t.keys()),onKeyAdded(e){return i.add(e),()=>{i.delete(e)}},delete(e){let i=n.get(e);n.delete(e);let a=t.delete(e);return r.delete(e),i?.(),a},get:async(c,l)=>{if(l?.initialValue!==void 0&&r.set(c,l.initialValue),t.has(c))return t.get(c);let u=Ah({initialValue:l?.initialValue,enablePatches:!1});async function d(){if(a||e.callEvent(`devframe:rpc:server-state:subscribe`,c),l?.initialValue!==void 0){t.set(c,u);for(let e of i)e(c);return e.call(`devframe:rpc:server-state:get`,c).then(e=>{e!==void 0&&u.mutate(()=>o(c,e))}).catch(e=>{console.error(`Error getting server state`,e)}),n.set(c,s(c,u)),u}{let r=await e.call(`devframe:rpc:server-state:get`,c);u.mutate(()=>o(c,r)),t.set(c,u);for(let e of i)e(c);return n.set(c,s(c,u)),u}}return new Promise(t=>{if(e.isTrusted)d().then(t);else{t(u);let n=!1;e.events.on(Q.client.isTrustedUpdated,e=>{e&&!n&&(n=!0,d())})}})}}}var Mh=typeof self==`object`?self:globalThis,Nh=new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]),Ph=new Set([`Boolean`,`Number`,`String`,`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float16Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`]);function Fh(e,t){let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o,r=Nh.has(e)?Mh[e]:void 0;return n(new(r??Mh.Error)(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}if(typeof a==`string`&&Ph.has(a))return n(new Mh[a](o),i);throw TypeError(`unable to deserialize unsafe or unknown type: ${String(a)}`)};return r}function Ih(e){return Fh(new Map,e)(0)}var Lh=``,{toString:Rh}={},{keys:zh}=Object;function Bh(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Rh.call(e).slice(8,-1);switch(n){case`Array`:return[1,Lh];case`Object`:return[2,Lh];case`Date`:return[3,Lh];case`RegExp`:return[4,Lh];case`Map`:return[5,Lh];case`Set`:return[6,Lh];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function Vh([e,t]){return e===0&&(t===`function`||t===`symbol`)}function Hh(e,t,n,r){let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=Bh(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize ${s}`);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of zh(r))(e||!Vh(Bh(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(Vh(Bh(n))||Vh(Bh(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!Vh(Bh(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function Uh(e,t={}){let n=[];return Hh(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:Wh,stringify:Gh}=JSON,Kh={json:!0,lossy:!0};function qh(e){return Ih(Wh(e))}function Jh(e){return Gh(Uh(e,Kh))}function Yh(e){return Ih(e)}function Xh(e){return Jh(e)}function Zh(e){return qh(e)}var Qh=new Map;function $h(e=Qh){let t=new Map;return{serialize:n=>{let r;return n.t===`q`?r=n.m:(r=t.get(n.i),t.delete(n.i)),!(n.t===`s`&&`e`in n)&&r&&e.get(r)?.jsonSerializable===!0?_p(n,r??``):`s:${Xh(n)}`},deserialize:e=>{let n=e.startsWith(`s:`)?Zh(e.slice(2)):JSON.parse(e);return n.t===`q`&&n.i&&n.m&&t.set(n.i,n.m),n}}}function eg(){}function tg(e){let{onConnected:t=eg,onError:n=eg,onDisconnected:r=eg,definitions:i,fetch:a=globalThis.fetch.bind(globalThis)}=e,o=e.url;e.authToken&&(o=`${o}${o.includes(`?`)?`&`:`?`}${Jf}=${encodeURIComponent(e.authToken)}`);let s=$h(i),c=new AbortController,l=!1,u,d,f,p,m=new Promise((e,t)=>{f=e,p=t});m.catch(()=>{});function h(e){l||(l=!0,p(e),n(e),r())}function g(){l||(l=!0,p(Error(`Devframe SSE stream closed`)),r())}function _(e,n){if(e===`session`){f(n),t();return}u?.(n)}async function v(e){let t=e.getReader();d=t;let n=new TextDecoder,r=``;for(;;){let{done:e,value:i}=await t.read();if(e)break;for(r+=n.decode(i,{stream:!0});;){let e=r.search(/\n\n|\r\n\r\n/);if(e<0)break;let t=r.slice(0,e);r=r.slice(e+(r[e]===`\r`?4:2));let n=`message`,i=[];for(let e of t.split(/\r?\n/))e.startsWith(`:`)||(e.startsWith(`event:`)?n=e.slice(6).trimStart():e.startsWith(`data:`)&&i.push(e.slice(5).replace(/^ /,``)));i.length>0&&_(n,i.join(`
|
|
9
|
+
`))}}g()}return(async()=>{try{let e=await a(o,{headers:{accept:`text/event-stream`},signal:c.signal});if(!e.ok||!e.body)throw Error(`Devframe SSE stream request failed: ${e.status}`);await v(e.body)}catch(e){if(c.signal.aborted){g();return}h(e instanceof Error?e:Error(String(e)))}})(),{close:()=>{l=!0,c.abort(),d?.cancel().catch(()=>{})},on:e=>{u=e},post:async e=>{let t;try{t=await m}catch{return}if(l){n(Error(`Devframe SSE channel is closed; message dropped`));return}try{let n=await a(o,{method:`POST`,headers:{"content-type":`text/plain; charset=utf-8`,[Wf]:t},body:e});if(n.status===200){let e=await n.text();e&&u?.(e);return}if(!n.ok)throw Error(`Devframe SSE POST failed: ${n.status}`)}catch(e){n(e instanceof Error?e:Error(String(e)))}},serialize:s.serialize,deserialize:s.deserialize}}function ng(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var rg=Math.random.bind(Math),ig=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function ag(e=21){let t=``,n=e;for(;n--;)t+=ig[rg()*64|0];return t}var og=6e4,sg=e=>e,cg=sg,{clearTimeout:lg,setTimeout:ug}=globalThis;function dg(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=sg,deserialize:s=cg,resolver:c,bind:l=`rpc`,timeout:u=og,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:`q`};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=ng(),_=ag();s.i=_;let v;async function y(n=s){return u>=0&&(v=ug(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof v==`object`&&(v=v.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:v,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,y,d):await y()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{lg(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:y,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.hasOwn(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(b)}function y(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function b(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===`q`){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:`s`,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:`s`,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(lg(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}function fg(e,t){let{channel:n,rpcOptions:r={}}=t;return dg(e,{...n,timeout:-1,...r,proxify:!1})}function pg(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function mg(e){let{transport:t,authToken:n,connectionMeta:r,events:i,clientRpc:a,rpcOptions:o={},callTimeout:s=0}=e,c=!1,l=`connecting`,u=null,d=pg();function f(e,t=null){if(t?u=t:e===`connected`&&(u=null),e===l)return;let n=l;l=e,i.emit(Q.client.connectionStatus,e,n)}let p=new Set;function m(e){for(let t of[...p])t.reject(e)}function h(){return l===`disconnected`||l===`error`?new qp(`connection`,`[devframe] Not connected to the devframe server`,{cause:u??void 0}):l===`unauthorized`?new qp(`auth`,`[devframe] Not authorized by the devframe server`,{cause:u??void 0}):null}function g(e,t){return new Promise((n,r)=>{let a=!1,o,c={reject(e){a||(l(),i.emit(Q.client.error,e,t),r(e))}};function l(){a=!0,p.delete(c),o&&clearTimeout(o)}p.add(c),s>0&&(o=setTimeout(()=>{c.reject(new qp(`timeout`,`[devframe] RPC call "${t}" timed out after ${s}ms`))},s)),e.then(e=>{a||(l(),n(e))},e=>{if(a)return;l();let n=e instanceof Error?e:Error(String(e));i.emit(Q.client.error,n,t),r(n)})})}let _=new Map;for(let e of r.jsonSerializableMethods??[])_.set(e,{jsonSerializable:!0});let v=e.createChannel({definitions:_,onError(e){f(`error`,e),i.emit(Q.client.connectionError,e),m(new qp(`connection`,`[devframe] Connection to the devframe server failed`,{cause:e}))},onDisconnected(){l!==`error`&&f(`disconnected`),m(new qp(`connection`,`[devframe] Disconnected from the devframe server`,{cause:u??void 0}))}}),y=fg(a.functions,{channel:v,rpcOptions:o});a.register({name:Q.broadcast.authRevoked,type:`event`,handler:()=>{c=!1;let e=new qp(`auth`,`[devframe] The devframe server revoked this client's trust`);f(`unauthorized`,e),i.emit(Q.client.connectionError,e),m(e),i.emit(Q.client.isTrustedUpdated,!1)}});let b=n;async function x(e){b=e;let t=await y.$call(`anonymous:devframe:auth`,{authToken:e,ua:navigator.userAgent,origin:location.origin});if(c=t.isTrusted,c)d.resolve(!0),f(`connected`);else{let e=new qp(`auth`,`[devframe] The devframe server refused this client's credentials`);f(`unauthorized`,e),i.emit(Q.client.connectionError,e)}return i.emit(Q.client.isTrustedUpdated,c),t.isTrusted}async function S(e){let t=(await y.$call(`anonymous:devframe:auth:exchange`,{code:e,ua:navigator.userAgent,origin:location.origin}))?.authToken??null;return t&&(b=t,c=!0,d.resolve(!0),f(`connected`),i.emit(Q.client.isTrustedUpdated,!0)),t}async function C(){return c?!0:x(b??``)}async function w(e=6e4){if(c&&d.resolve(!0),e<=0)return d.promise;let t=()=>{};return await Promise.race([d.promise.then(t),new Promise((n,r)=>{let i=setTimeout(()=>{r(Error(`[devframe] Timeout waiting for rpc to be trusted`))},e);t=()=>clearTimeout(i)})]),c}return{transport:t,get isTrusted(){return c},get status(){return l},get connectionError(){return u},requestTrust:C,requestTrustWithToken:x,requestTrustWithCode:S,ensureTrusted:w,call:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(Q.client.error,n,t),Promise.reject(n)):g(y.$call(...e),t)},callEvent:(...e)=>{let t=h();if(t){i.emit(Q.client.error,t,String(e[0]));return}return y.$callEvent(...e)},callOptional:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(Q.client.error,n,t),Promise.reject(n)):g(y.$callOptional(...e),t)},close:()=>{v.close()}}}function hg(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})();if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`;return new URL(e.path??`/`,`${r.protocol}//${t}`).href}return new URL(e.path??``,r).href}let i=e??``;return/^https?:\/\//i.test(i)?i:new URL(i,r).href}function gg(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},sseOptions:s={},callTimeout:c=0}=e,l=hg(n.sse,r??`./`,location);return mg({transport:`sse`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>tg({url:l,authToken:t,definitions:e.definitions,...s,onConnected(){s.onConnected?.()},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(){e.onDisconnected(),s.onDisconnected?.()}})})}function _g(e){let t=e.cause instanceof Error?e.cause:vg(e.cause)?_g(e.cause):e.cause,n=t===void 0?Error(e.message):Error(e.message,{cause:t});n.name=e.name;for(let t of Object.keys(e))t!==`name`&&t!==`message`&&t!==`cause`&&(n[t]=e[t]);return n}function vg(e){return typeof e==`object`&&!!e&&typeof e.message==`string`&&typeof e.name==`string`}function yg(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function bg(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function xg(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function Sg(e){if(e.error)throw _g(e.error);return e.output}function Cg(e){return e.some(e=>e!=null)}function wg(e){return typeof e==`object`&&e&&`serialization`in e&&`data`in e?e.data:e}function Tg(e,t){let n=new Map,r=new Map;function i(e,t){return t===`structured-clone`&&Array.isArray(e)?Yh(e):e}function a(e,t){return i(wg(e),t)}async function o(e){n.has(e.path)||n.set(e.path,t(e.path).then(t=>a(t,e.serialization)));let r=await n.get(e.path);return xg(r)?Sg(r):r}async function s(e,n){return r.has(e)||r.set(e,t(e).then(e=>a(e,n))),await r.get(e)}async function c(t,n){if(!(t in e))throw Error(`[devframe-rpc] Function "${t}" not found in dump store`);let r=e[t];if(yg(r)){if(Cg(n))throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await o(r)}if(bg(r)){let e=Yf(n),i=r.records[e];if(i)return Sg(await s(i,r.serialization));if(r.fallback)return Sg(await s(r.fallback,r.serialization));throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(!Cg(n))return r;throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}return{call:async(e,t)=>await c(e,t),callOptional:async(t,n)=>{if(t in e)return await c(t,n)},callEvent:async(e,t)=>{}}}async function Eg(e){let t=Tg(await e.fetchJsonFromBases(Gf),e.fetchJsonFromBases);return{transport:`static`,isTrusted:!0,status:`connected`,connectionError:null,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,requestTrustWithCode:async()=>null,ensureTrusted:async()=>!0,call:(...e)=>t.call(e[0],e.slice(1)),callEvent:(...e)=>t.callEvent(e[0],e.slice(1)),callOptional:(...e)=>t.callOptional(e[0],e.slice(1)),close:()=>{}}}var Dg=256,Og=class extends Error{name=`StreamClosedError`};function kg(e={}){let t=e.id??Dh(),n=Math.max(0,e.replayWindow??0),r=bp(),i=new AbortController,a=[],o=!1,s=0;function c(e){if(o)throw new Og(`Cannot write to a closed stream "${t}"`);s+=1,n>0&&(a.push({seq:s,chunk:e}),a.length>n&&a.splice(0,a.length-n)),r.emit(`chunk`,s,e)}function l(e){if(o)return;o=!0;let t=jg(e);i.abort(e),r.emit(`end`,t)}function u(){o||(o=!0,i.signal.aborted||i.abort(`stream closed`),r.emit(`end`,void 0))}function d(e){o||i.signal.aborted||i.abort(e??`aborted`)}let f=new WritableStream({write(e){c(e)},close(){u()},abort(e){l(e)}});return{id:t,signal:i.signal,get closed(){return o},get lastSeq(){return s},write:c,error:l,close:u,abort:d,writable:f,events:r,buffer:a}}function Ag(e={}){let t=e.id??Dh(),n=Math.max(1,e.highWaterMark??Dg),r=[],i=0,a=!1,o=!1,s,c,l,u;function d(){if(c){if(r.length>0){let e=r.shift(),t=c;c=void 0,t.resolve({value:e,done:!1});return}if(a){let e=c;if(c=void 0,s){let t=Error(s.message);t.name=s.name,e.reject(t)}else e.resolve({value:void 0,done:!0})}}}function f(){if(l){for(;r.length>0;){let e=r.shift();try{l.enqueue(e)}catch{break}}if(a&&l){try{if(s){let e=Error(s.message);e.name=s.name,l.error(e)}else l.close()}catch{}l=void 0}}}function p(t,s){if(!(a||o)&&!(t<=i)){if(i=t,r.push(s),r.length>n){let t=r.length-n;r.splice(0,t),e.onOverflow?.(t)}d(),u&&f()}}function m(e){a||(a=!0,s=e,d(),u&&f())}function h(){o||a||(o=!0,e.onCancel?.(),m(void 0))}function g(){return u||(u=new ReadableStream({start(e){l=e,f()},cancel(){h()}}),u)}return{id:t,get cancelled(){return o},get done(){return a},get lastSeenSeq(){return i},get readable(){return g()},cancel:h,_push:p,_end:m,[Symbol.asyncIterator](){return{next(){if(r.length>0)return Promise.resolve({value:r.shift(),done:!1});if(a){if(s){let e=Error(s.message);return e.name=s.name,Promise.reject(e)}return Promise.resolve({value:void 0,done:!0})}return new Promise((e,t)=>{c={resolve:e,reject:t}})},return(){return h(),Promise.resolve({value:void 0,done:!0})}}}}}function jg(e){if(e instanceof Error)return{name:e.name||`Error`,message:e.message};if(typeof e==`string`)return{name:`Error`,message:e};try{return{name:`Error`,message:JSON.stringify(e)}}catch{return{name:`Error`,message:String(e)}}}var Mg=``;function Ng(e,t){return`${e}${Mg}${t}`}function Pg(e){let t=new Map,n=new Map;e.client.register({name:Q.broadcast.streamingChunk,type:`event`,handler(e,n,r,i){t.get(Ng(e,n))?._push(r,i)}}),e.client.register({name:Q.broadcast.streamingEnd,type:`event`,handler(e,n,r){let i=Ng(e,n),a=t.get(i);a&&(a._end(r),t.delete(i))}}),e.client.register({name:Q.broadcast.streamingUploadCancel,type:`event`,handler(e,t){let r=Ng(e,t),i=n.get(r);i&&(i.abort(`server cancelled upload`),n.delete(r))}}),e.events.on(Q.client.isTrustedUpdated,n=>{if(n)for(let[n,r]of t){if(r.cancelled||r.done)continue;let t=n.indexOf(Mg);if(t<0)continue;let i=n.slice(0,t),a=n.slice(t+1);e.callEvent(`devframe:streaming:subscribe`,i,a,{afterSeq:r.lastSeenSeq})}});function r(n,r,i={}){let a=Ng(n,r),o=t.get(a);if(o)return o;let s=Ag({id:r,highWaterMark:i.highWaterMark,onOverflow(e){console.warn(`[devframe] DF0029: Stream "${n}#${r}" dropped ${e} chunk(s) after exceeding the client high-water mark.`)},onCancel(){e.callEvent(`devframe:streaming:cancel`,n,r),t.delete(a)}});if(t.set(a,s),e.isTrusted)e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:0});else{let i=e.events.on(Q.client.isTrustedUpdated,o=>{o&&(i(),t.has(a)&&!s.cancelled&&!s.done&&e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:s.lastSeenSeq}))})}return s}function i(t,r){let i=Ng(t,r),a=n.get(i);if(a)return a;let o=kg({id:r});return o.events.on(`chunk`,(n,i)=>{e.callEvent(`devframe:streaming:upload-chunk`,t,r,n,i)}),o.events.on(`end`,a=>{e.callEvent(`devframe:streaming:upload-end`,t,r,a),n.delete(i)}),n.set(i,o),o}return{subscribe:r,upload:i}}function Fg(){}var Ig=new Map;function Lg(e){let t=e.url;e.authToken&&(t=`${t}?${Jf}=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=Fg,onError:i=Fg,onDisconnected:a=Fg,definitions:o=Ig}=e;n.addEventListener(`open`,e=>{r(e)}),n.addEventListener(`error`,e=>{let t=e instanceof Error?e:Error(e.type);i(t)}),n.addEventListener(`close`,e=>{a(e)});let s=$h(o);return{close:()=>{n.close()},on:e=>{n.addEventListener(`message`,t=>{e(t.data)})},post:e=>{if(n.readyState===WebSocket.OPEN){n.send(e);return}if(n.readyState===WebSocket.CONNECTING){let t=()=>{i(),n.readyState===WebSocket.OPEN&&n.send(e)},r=()=>i();function i(){n.removeEventListener(`open`,t),n.removeEventListener(`close`,r)}n.addEventListener(`open`,t),n.addEventListener(`close`,r);return}i(Error(`Devframe WebSocket is not open; message dropped`))},serialize:s.serialize,deserialize:s.deserialize}}function Rg(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})(),i=r.protocol===`https:`?`wss:`:`ws:`;if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`,n=new URL(e.path??`/`,`${i}//${t}`);return n.protocol=i,n.href}let t=new URL(e.path??``,r);return t.protocol=i,t.href}if(typeof e==`number`)return`${i}//${r.hostname}:${e}`;let a=e??``;if(/^wss?:\/\//i.test(a))return a;if(/^https?:\/\//i.test(a))return Pp(a,/^https/i.test(a)?`wss://`:`ws://`);let o=new URL(a,r);return o.protocol=i,o.href}function zg(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},wsOptions:s={},callTimeout:c=0}=e,l=Rg(n.websocket,r??`./`,location);return mg({transport:`websocket`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>Lg({url:l,authToken:t,definitions:e.definitions,...s,onConnected(e){s.onConnected?.(e)},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(t){e.onDisconnected(),s.onDisconnected?.(t)}})})}function Bg(e){return e.includes(`:`)}function Vg(e,t){return Bg(t)?t:`${e}:${t}`}function Hg(e,t,n){let r=`devframe:settings:${n}:${t}`,i;function a(){return i||=e.sharedState.get(r,{initialValue:{}}),i}return{async get(e){return(await a()).value()[e]},async set(e,t){(await a()).mutate(n=>{n[e]=t})},async delete(e){(await a()).mutate(t=>{delete t[e]})},async all(){return(await a()).value()},async onChange(e){return(await a()).on(`updated`,t=>e(t))}}}function Ug(e,t){return{global:Hg(e,t,`global`),project:Hg(e,t,`project`)}}function Wg(e,t){return{namespace:t,base:e,rpc:{namespace:t,register(n){if(Bg(n.name))throw Error(`[devframe] Scoped client RPC registration for namespace "${t}" received an already-namespaced function name "${n.name}". Pass a bare name without a ":" separator.`);e.client.register({...n,name:`${t}:${n.name}`})},call:((n,...r)=>e.call(Vg(t,n),...r)),callEvent:((n,...r)=>e.callEvent(Vg(t,n),...r)),callOptional:((n,...r)=>e.callOptional(Vg(t,n),...r)),sharedState:((n,r)=>e.sharedState.get(Vg(t,n),r)),streaming:{subscribe:(n,r,i)=>e.streaming.subscribe(Vg(t,n),r,i),upload:(n,r)=>e.streaming.upload(Vg(t,n),r)}},settings:Ug(e,t),scope:e.scope}}function Gg(e,t){if(t.backend===`static`)return`static`;let n=t.websocket!==void 0,r=t.sse!==void 0;if(e===`websocket`){if(!n)throw Error(`[devframe] transport: 'websocket' was requested, but this server does not advertise a WebSocket endpoint`);return`websocket`}if(e===`sse`){if(!r)throw Error(`[devframe] transport: 'sse' was requested, but this server does not advertise an SSE endpoint`);return`sse`}if(t.backend===`sse`&&r)return`sse`;if(n)return`websocket`;if(r)return`sse`;throw Error(`[devframe] This server advertises no RPC transport (backend "none") — nothing to connect to. Enable the WebSocket or SSE endpoint on the server, or use its static/MCP surfaces instead.`)}async function Kg(e={}){let{baseURL:t=`./`,rpcOptions:n={},cacheOptions:r=!1}=e,i=bp(),a=Array.isArray(t)?t:[t],o=await Kp(e),{connectionMeta:s,metaBaseUrl:c,authToken:l}=o,u=a[0]??`./`;try{u=new URL(`.`,c).href}catch{}let d=new Xf({functions:[],...typeof e.cacheOptions==`object`?e.cacheOptions:{}}),f={rpc:void 0},p=new hp(f);async function m(e){let t=[u,...a.filter(e=>e!==u)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(Ap(e,r)).then(t=>{if(!t.ok)throw Error(`Failed to fetch ${e} from ${r}: ${t.status}`);return t.json()})}catch(e){n.push(e)}throw Error(`Failed to load ${e} from ${t.join(`, `)}`,{cause:n})}let h={authToken:l,connectionMeta:s,metaBaseUrl:c,events:i,clientRpc:p,callTimeout:e.callTimeout,rpcOptions:{...n,async onRequest(e,t,i){if(await n.onRequest?.call(this,e,t,i),r&&d?.validate(e.m)){if(d.has(e.m,e.a))return i(d.cached(e.m,e.a));let n=await t(e);d.apply(e,n)}else await t(e)}}},g=Gg(e.transport??`auto`,s),_=g===`static`?await Eg({fetchJsonFromBases:m}):g===`sse`?gg({...h,sseOptions:e.sseOptions}):zg({...h,wsOptions:e.wsOptions}),v;try{v=new BroadcastChannel(`devframe-auth`)}catch{}let y,b=!1;function x(e){return((...t)=>b||!y?e(...t):y.then(()=>e(...t)))}let S={events:i,get isTrusted(){return _.isTrusted},get status(){return _.status},get connectionError(){return _.connectionError},get transport(){return _.transport??g},get connection(){return o},connectionMeta:s,ensureTrusted:_.ensureTrusted,requestTrust:_.requestTrust,requestTrustWithToken:async e=>(Hp(e),o={...o,authToken:e},_.requestTrustWithToken(e)),requestTrustWithCode:async e=>{let t=await _.requestTrustWithCode(e);if(!t)return!1;Hp(t),o={...o,authToken:t};try{v?.postMessage({type:`auth-update`,authToken:t})}catch{}return!0},call:x(_.call),callEvent:x(_.callEvent),callOptional:x(_.callOptional),client:p,sharedState:void 0,services:void 0,streaming:void 0,cacheManager:d,scope:void 0,close:()=>_.close?.()};S.sharedState=jh(S),S.streaming=Pg(S),S.services=Qp(S);let C=new Map;S.scope=(e=>{if(!e)return S;let t=C.get(e);return t||(t=Wg(S,e),C.set(e,t)),t}),f.rpc=S;function w(){try{return typeof window<`u`&&window.self===window.top}catch{return!1}}async function ee(){if(!(e.simpleAuth===!1||!w())&&typeof globalThis.prompt==`function`)for(;!S.isTrusted;){let e=globalThis.prompt(`devframe: enter the authentication code shown in your terminal`);if(e==null)return;let t=e.trim();if(t&&await S.requestTrustWithCode(t))return}}async function T(){let t=await _.requestTrust(),n=e.otpParam??`devframe_otp`,r=n?await Zp(S,{param:n}):!1;t||r||S.isTrusted||await ee()}return y=T().then(()=>{b=!0},()=>{b=!0}),v&&(v.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&S.requestTrustWithToken(e.data.authToken)}),S}var qg=Kg;function Jg(e){return qg(e)}function Yg(){let e=an(null),t=an(new URLSearchParams(location.search).get(`url`)??``),n=an(null),r=an(!1),i=an(null),a=Z(()=>e.value?.connectionMeta.backend===`static`);async function o(o=t.value){if(!(a.value&&n.value)){t.value=o.trim(),r.value=!0,i.value=null;try{e.value??=await Jg(),await e.value.ensureTrusted();let r=await e.value.call(`devframes:plugin:og:resolve-metadata`,{url:t.value});n.value=r,(!t.value||a.value)&&r.requestedUrl&&(t.value=r.requestedUrl);let i=new URL(location.href);t.value?i.searchParams.set(`url`,t.value):i.searchParams.delete(`url`),history.replaceState(null,``,i)}catch(e){i.value=e instanceof Error?e.message:String(e)}finally{r.value=!1}}}return{error:Jt(i),inspect:o,isStatic:a,loading:Jt(r),snapshot:Jt(n),target:t}}var Xg={class:`h-100dvh flex flex-col bg-base color-base font-sans`},Zg={key:0,class:`flex items-start gap-2 border-b border-base bg-red/8 px4 py2 color-red text-xs`},Qg={class:`min-h-0 flex-1 overflow-auto`},$g={key:0,class:`h-full flex flex-col items-center justify-center gap-3 color-muted`},e_={key:1,class:`h-full flex flex-col items-center justify-center gap-3 px6 text-center color-muted`},t_={key:2,class:`grid min-h-full gap4 p4 xl:grid-cols-[minmax(0,1fr)_minmax(28rem,0.85fr)]`},n_={class:`min-w-0 flex flex-col gap4`},r_={class:`flex flex-wrap items-center gap-2 color-muted text-xs`},i_=[`href`,`title`],a_={class:`ml-auto font-mono tabular-nums`},o_={class:`min-w-0 xl:sticky xl:top4 xl:h-[calc(100dvh-6.5rem)]`},s_=V({__name:`app`,setup(e){let t=Yg();return Gi(()=>t.inspect()),(e,n)=>(G(),K(`div`,Xg,[Y(Vf,{target:R(t).target.value,"onUpdate:target":n[0]||=e=>R(t).target.value=e,loading:R(t).loading.value,"is-static":R(t).isStatic.value,onInspect:n[1]||=e=>R(t).inspect()},null,8,[`target`,`loading`,`is-static`]),R(t).error.value?(G(),K(`div`,Zg,[n[2]||=J(`span`,{class:`i-ph-warning-octagon-duotone mt0.5 shrink-0`},null,-1),J(`span`,null,M(R(t).error.value),1)])):ys(``,!0),J(`main`,Qg,[R(t).loading.value&&!R(t).snapshot.value?(G(),K(`div`,$g,[...n[3]||=[J(`span`,{class:`i-ph-circle-notch-duotone animate-spin text-3xl color-active`},null,-1),J(`span`,{class:`text-sm`},`Reading page metadata...`,-1)]])):R(t).snapshot.value?.url?(G(),K(`div`,t_,[J(`div`,n_,[J(`div`,r_,[n[5]||=J(`span`,{class:`i-ph-check-circle-duotone color-active`},null,-1),J(`a`,{href:R(t).snapshot.value.url,target:`_blank`,rel:`noreferrer`,class:`min-w-0 truncate font-mono hover:color-active`,title:R(t).snapshot.value.url},M(R(t).snapshot.value.url),9,i_),J(`span`,a_,`HTTP `+M(R(t).snapshot.value.status),1)]),Y(ku,{tags:R(t).snapshot.value.tags},null,8,[`tags`]),Y(Yd,{tags:R(t).snapshot.value.tags},null,8,[`tags`])]),J(`div`,o_,[Y(Nf,{snapshot:R(t).snapshot.value},null,8,[`snapshot`])])])):(G(),K(`div`,e_,[...n[4]||=[J(`span`,{class:`i-ph-image-square-duotone text-4xl color-active op70`},null,-1),J(`div`,null,[J(`h1`,{class:`m0 color-base text-base font-semibold`},` Inspect a social card `),J(`p`,{class:`mb0 mt1 max-w-100 text-sm`},` Enter a page URL to resolve its Open Graph and Twitter metadata. `)],-1)]]))])]))}}),c_=window.matchMedia(`(prefers-color-scheme: dark)`);function l_(e){document.documentElement.classList.toggle(`dark`,e),document.documentElement.classList.toggle(`light`,!e)}l_(c_.matches),c_.addEventListener(`change`,e=>l_(e.matches)),cu(s_).mount(`#app`);
|
package/dist/index.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
6
6
|
<base href="./" />
|
|
7
7
|
<title>Open Graph Viewer</title>
|
|
8
|
-
<script type="module" crossorigin src="./assets/index-
|
|
9
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
8
|
+
<script type="module" crossorigin src="./assets/index-xN6ijEth.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="./assets/index-Dum5Q1ht.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="app"></div>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/plugin-og--assets",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.1",
|
|
5
5
|
"description": "Prebuilt browser assets (SPA) for @devframes/plugin-og, served on demand through devframe's remote-assets back-proxy.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|