@devframes/plugin-og--assets 0.9.18 → 0.9.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +0,0 @@
|
|
|
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=we(e[r],t[r]);return n}function Ce(e,t){if(e.size!==t.size)return!1;let n=Array.from(t),r=new Uint8Array(n.length);for(let t of e){let e=-1;for(let i=0;i<n.length;i++)if(!r[i]&&we(t,n[i])){e=i;break}if(e<0)return!1;r[e]=1}return!0}function we(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)return!1;if(n=m(e),r=m(t),n||r||(n=h(e),r=h(t),n||r))return n&&r?Ce(e,t):!1;if(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||!we(e[n],t[n]))return!1}}return String(e)===String(t)}function Te(e,t){return e.findIndex(e=>we(e,t))}var Ee=e=>!!(e&&e.__v_isRef===!0),M=e=>y(e)?e:e==null?``:p(e)||x(e)&&(e.toString===C||!v(e.toString))?Ee(e)?M(e.value):JSON.stringify(e,De,2):String(e),De=(e,t)=>Ee(t)?De(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Oe(t,r)+` =>`]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Oe(e))}:b(t)?Oe(t):x(t)&&!p(t)&&!T(t)?String(t):t,Oe=(e,t=``)=>b(e)?`Symbol(${e.description??t})`:e;function ke(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var N,Ae=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 je(e){return new Ae(e)}function Me(){return N}function Ne(e,t=!1){N&&N.cleanups.push(e)}var P,Pe=new WeakSet,Fe=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,Pe.has(this)&&(Pe.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ze(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,et(this),He(this);let e=P,t=Xe;P=this,Xe=!0;try{return this.fn()}finally{Ue(this),P=e,Xe=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ke(e);this.deps=this.depsTail=void 0,et(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Pe.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){We(this)&&this.run()}get dirty(){return We(this)}},Ie=0,Le,Re;function ze(e,t=!1){if(e.flags|=8,t){e.next=Re,Re=e;return}e.next=Le,Le=e}function Be(){Ie++}function Ve(){if(--Ie>0)return;if(Re){let e=Re;for(Re=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Le;){let t=Le;for(Le=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 He(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ue(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Ke(r),qe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function We(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ge(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ge(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===tt)||(e.globalVersion=tt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!We(e))))return;e.flags|=2;let t=e.dep,n=P,r=Xe;P=e,Xe=!0;try{He(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,Xe=r,Ue(e),e.flags&=-3}}function Ke(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)Ke(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function qe(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function Je(e,t){e.effect instanceof Fe&&(e=e.effect.fn);let n=new Fe(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 Ye(e){e.effect.stop()}var Xe=!0,Ze=[];function Qe(){Ze.push(Xe),Xe=!1}function $e(){let e=Ze.pop();Xe=e===void 0||e}function et(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=P;P=void 0;try{t()}finally{P=e}}}var tt=0,nt=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}},rt=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||!Xe||P===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==P)t=this.activeLink=new nt(P,this),P.deps?(t.prevDep=P.depsTail,P.depsTail.nextDep=t,P.depsTail=t):P.deps=P.depsTail=t,it(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++,tt++,this.notify(e)}notify(e){Be();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ve()}}};function it(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)it(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var at=new WeakMap,ot=Symbol(``),st=Symbol(``),ct=Symbol(``);function lt(e,t,n){if(Xe&&P){let t=at.get(e);t||at.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new rt),r.map=t,r.key=n),r.track()}}function ut(e,t,n,r,i,a){let o=at.get(e);if(!o){tt++;return}let s=e=>{e&&e.trigger()};if(Be(),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===ct||!b(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(ct)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(ot)),m(e)&&s(o.get(st)));break;case`delete`:i||(s(o.get(ot)),m(e)&&s(o.get(st)));break;case`set`:m(e)&&s(o.get(ot))}}Ve()}function dt(e,t){let n=at.get(e);return n&&n.get(t)}function ft(e){let t=F(e);return t===e?t:(lt(t,`iterate`,ct),en(e)?t:t.map(rn))}function pt(e){return lt(e=F(e),`iterate`,ct),e}function mt(e,t){return $t(e)?an(Qt(e)?rn(t):t):rn(t)}var ht={__proto__:null,[Symbol.iterator](){return gt(this,Symbol.iterator,e=>mt(this,e))},concat(...e){return ft(this).concat(...e.map(e=>p(e)?ft(e):e))},entries(){return gt(this,`entries`,e=>(e[1]=mt(this,e[1]),e))},every(e,t){return vt(this,`every`,e,t,void 0,arguments)},filter(e,t){return vt(this,`filter`,e,t,e=>e.map(e=>mt(this,e)),arguments)},find(e,t){return vt(this,`find`,e,t,e=>mt(this,e),arguments)},findIndex(e,t){return vt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return vt(this,`findLast`,e,t,e=>mt(this,e),arguments)},findLastIndex(e,t){return vt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return vt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return bt(this,`includes`,e)},indexOf(...e){return bt(this,`indexOf`,e)},join(e){return ft(this).join(e)},lastIndexOf(...e){return bt(this,`lastIndexOf`,e)},map(e,t){return vt(this,`map`,e,t,void 0,arguments)},pop(){return xt(this,`pop`)},push(...e){return xt(this,`push`,e)},reduce(e,...t){return yt(this,`reduce`,e,t)},reduceRight(e,...t){return yt(this,`reduceRight`,e,t)},shift(){return xt(this,`shift`)},some(e,t){return vt(this,`some`,e,t,void 0,arguments)},splice(...e){return xt(this,`splice`,e)},toReversed(){return ft(this).toReversed()},toSorted(e){return ft(this).toSorted(e)},toSpliced(...e){return ft(this).toSpliced(...e)},unshift(...e){return xt(this,`unshift`,e)},values(){return gt(this,`values`,e=>mt(this,e))}};function gt(e,t,n){let r=pt(e),i=r[t]();return r!==e&&!en(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var _t=Array.prototype;function vt(e,t,n,r,i,a){let o=pt(e),s=o!==e&&!en(e),c=o[t];if(c!==_t[t]){let t=c.apply(e,a);return s?rn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,mt(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 yt(e,t,n,r){let i=pt(e),a=i!==e&&!en(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=mt(e,t)),n.call(this,t,mt(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?mt(e,c):c}function bt(e,t,n){let r=F(e);lt(r,`iterate`,ct);let i=r[t](...n);return(i===-1||i===!1)&&tn(n[0])?(n[0]=F(n[0]),r[t](...n)):i}function xt(e,t,n=[]){Qe(),Be();let r=F(e)[t].apply(e,n);return Ve(),$e(),r}var St=n(`__proto__,__v_isRef,__isVue`),Ct=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(b));function wt(e){b(e)||(e=String(e));let t=F(this);return lt(t,`has`,e),t.hasOwnProperty(e)}var Tt=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?Gt:Wt:i?Ut:Ht).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=p(e);if(!r){let e;if(a&&(e=ht[t]))return e;if(t===`hasOwnProperty`)return wt}let o=Reflect.get(e,t,I(e)?e:n);if((b(t)?Ct.has(t):St(t))||(r||lt(e,`get`,t),i))return o;if(I(o)){let e=a&&E(t)?o:o.value;return r&&x(e)?Yt(e):e}return x(o)?r?Yt(o):qt(o):o}},Et=class extends Tt{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=$t(i);if(!en(n)&&!$t(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)&&ut(e,`set`,t,n,i):ut(e,`add`,t,n)),s}deleteProperty(e,t){let n=f(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&ut(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!b(t)||!Ct.has(t))&<(e,`has`,t),n}ownKeys(e){return lt(e,`iterate`,p(e)?`length`:ot),Reflect.ownKeys(e)}},Dt=class extends Tt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Ot=new Et,kt=new Dt,At=new Et(!0),jt=new Dt(!0),Mt=e=>e,Nt=e=>Reflect.getPrototypeOf(e);function Pt(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?Mt:t?an:rn;return!t&<(a,`iterate`,c?st:ot),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 Ft(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function It(e,t){let n={get(n){let r=this.__v_raw,i=F(r),a=F(n);e||(A(n,a)&<(i,`get`,n),lt(i,`get`,a));let{has:o}=Nt(i),s=t?Mt:e?an:rn;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&<(F(t),`iterate`,ot),t.size},has(t){let n=this.__v_raw,r=F(n),i=F(t);return e||(A(t,i)&<(r,`has`,t),lt(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?Mt:e?an:rn;return!e&<(o,`iterate`,ot),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return l(n,e?{add:Ft(`add`),set:Ft(`set`),delete:Ft(`delete`),clear:Ft(`clear`)}:{add(e){let n=F(this),r=Nt(n),i=F(e),a=!t&&!en(e)&&!$t(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),ut(n,`add`,a,a)),this},set(e,n){!t&&!en(n)&&!$t(n)&&(n=F(n));let r=F(this),{has:i,get:a}=Nt(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)&&ut(r,`set`,e,n,s):ut(r,`add`,e,n),this},delete(e){let t=F(this),{has:n,get:r}=Nt(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&&ut(t,`delete`,e,void 0,a),o},clear(){let e=F(this),t=e.size!==0,n=e.clear();return t&&ut(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Pt(r,e,t)}),n}function Lt(e,t){let n=It(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 Rt={get:Lt(!1,!1)},zt={get:Lt(!1,!0)},Bt={get:Lt(!0,!1)},Vt={get:Lt(!0,!0)},Ht=new WeakMap,Ut=new WeakMap,Wt=new WeakMap,Gt=new WeakMap;function Kt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function qt(e){return $t(e)?e:Zt(e,!1,Ot,Rt,Ht)}function Jt(e){return Zt(e,!1,At,zt,Ut)}function Yt(e){return Zt(e,!0,kt,Bt,Wt)}function Xt(e){return Zt(e,!0,jt,Vt,Gt)}function Zt(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=Kt(ee(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Qt(e){return $t(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function en(e){return!!(e&&e.__v_isShallow)}function tn(e){return e?!!e.__v_raw:!1}function F(e){let t=e&&e.__v_raw;return t?F(t):e}function nn(e){return!f(e,`__v_skip`)&&Object.isExtensible(e)&&se(e,`__v_skip`,!0),e}var rn=e=>x(e)?qt(e):e,an=e=>x(e)?Yt(e):e;function I(e){return e?e.__v_isRef===!0:!1}function L(e){return sn(e,!1)}function on(e){return sn(e,!0)}function sn(e,t){return I(e)?e:new cn(e,t)}var cn=class{constructor(e,t){this.dep=new rt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:F(e),this._value=t?e:rn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||en(e)||$t(e);e=n?e:F(e),A(e,t)&&(this._rawValue=e,this._value=n?e:rn(e),this.dep.trigger())}};function ln(e){e.dep&&e.dep.trigger()}function R(e){return I(e)?e.value:e}function un(e){return v(e)?e():R(e)}var dn={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 fn(e){return Qt(e)?e:new Proxy(e,dn)}var pn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new rt,{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 mn(e){return new pn(e)}function hn(e){let t=p(e)?Array(e.length):{};for(let n in e)t[n]=yn(e,n);return t}var gn=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=!tn(i)||en(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 dt(this._raw,this._key)}},_n=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 vn(e,t,n){return I(e)?e:v(e)?new _n(e):x(e)&&arguments.length>1?yn(e,t,n):L(e)}function yn(e,t,n){return new gn(e,t,n)}var bn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new rt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=tt-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 ze(this,!0),!0}get value(){let e=this.dep.track();return Ge(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function xn(e,t,n=!1){let r,i;return v(e)?r=e:(r=e.get,i=e.set),new bn(r,i,n)}var Sn={GET:`get`,HAS:`has`,ITERATE:`iterate`},Cn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},wn={},Tn=new WeakMap,En=void 0;function Dn(){return En}function On(e,t=!1,n=En){if(n){let t=Tn.get(n);t||Tn.set(n,t=[]),t.push(e)}}function kn(e,t,n=r){let{immediate:i,deep:o,once:s,scheduler:c,augmentJob:l,call:d}=n,f=e=>o?e:en(e)||o===!1||o===0?An(e,1):An(e),m,h,g,_,y=!1,b=!1;if(I(e)?(h=()=>e.value,y=en(e)):Qt(e)?(h=()=>f(e),y=!0):p(e)?(b=!0,y=e.some(e=>Qt(e)||en(e)),h=()=>e.map(e=>{if(I(e))return e.value;if(Qt(e))return f(e);if(v(e))return d?d(e,2):e()})):h=v(e)?t?d?()=>d(e,2):e:()=>{if(g){Qe();try{g()}finally{$e()}}let t=En;En=m;try{return d?d(e,3,[_]):e(_)}finally{En=t}}:a,t&&o){let e=h,t=o===!0?1/0:o;h=()=>An(e(),t)}let x=Me(),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(wn):wn,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=En;En=m;try{let e=[n,C===wn?void 0:b&&C[0]===wn?[]:C,_];C=n,d?d(t,3,e):t(...e)}finally{En=e}}}else m.run()}};return l&&l(w),m=new Fe(h),m.scheduler=c?()=>c(w,!1):w,_=e=>On(e,!1,m),g=m.onStop=()=>{let e=Tn.get(m);if(e){if(d)d(e,4);else for(let t of e)t();Tn.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 An(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))An(e.value,t,n);else if(p(e))for(let r=0;r<e.length;r++)An(e[r],t,n);else if(h(e)||m(e))e.forEach(e=>{An(e,t,n)});else if(T(e)){for(let r in e)An(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&An(e[r],t,n)}return e}var jn=[];function Mn(e){jn.push(e)}function Nn(){jn.pop()}function Pn(e,t){}var Fn={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`},In={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 Ln(e,t,n,r){try{return r?e(...r):e()}catch(e){zn(e,t,n)}}function Rn(e,t,n,r){if(v(e)){let i=Ln(e,t,n,r);return i&&S(i)&&i.catch(e=>{zn(e,t,n)}),i}if(p(e)){let i=[];for(let a=0;a<e.length;a++)i.push(Rn(e[a],t,n,r));return i}}function zn(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){Qe(),Ln(o,null,10,[e,i,a]),$e();return}}Bn(e,n,a,i,s)}function Bn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var Vn=[],Hn=-1,Un=[],Wn=null,Gn=0,Kn=Promise.resolve(),qn=null;function Jn(e){let t=qn||Kn;return e?t.then(this?e.bind(this):e):t}function Yn(e){let t=Hn+1,n=Vn.length;for(;t<n;){let r=t+n>>>1,i=Vn[r],a=tr(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Xn(e){if(!(e.flags&1)){let t=tr(e),n=Vn[Vn.length-1];!n||!(e.flags&2)&&t>=tr(n)?Vn.push(e):Vn.splice(Yn(t),0,e),e.flags|=1,Zn()}}function Zn(){qn||=Kn.then(nr)}function Qn(e){if(!p(e))Wn&&e.id===-1?Wn.splice(Gn+1,0,e):e.flags&1||(Un.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Un.push(e[t]);Zn()}function $n(e,t,n=Hn+1){for(;n<Vn.length;n++){let t=Vn[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;Vn.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function er(e){if(Un.length){let e=[...new Set(Un)].sort((e,t)=>tr(e)-tr(t));if(Un.length=0,Wn){for(let t=0;t<e.length;t++)Wn.push(e[t]);return}for(Wn=e,Gn=0;Gn<Wn.length;Gn++){let e=Wn[Gn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}Wn=null,Gn=0}}var tr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function nr(e){try{for(Hn=0;Hn<Vn.length;Hn++){let e=Vn[Hn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Ln(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Hn<Vn.length;Hn++){let e=Vn[Hn];e&&(e.flags&=-2)}Hn=-1,Vn.length=0,er(e),qn=null,(Vn.length||Un.length)&&nr(e)}}var rr,ir=[];function ar(e,t){rr=e,rr?(rr.enabled=!0,ir.forEach(({event:e,args:t})=>rr.emit(e,...t)),ir=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{ar(e,t)}),setTimeout(()=>{rr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ir=[])},3e3)):ir=[]}var z=null,or=null;function sr(e){let t=z;return z=e,or=e&&e.type.__scopeId||null,t}function cr(e){or=e}function lr(){or=null}var ur=e=>B;function B(e,t=z,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&cs(-1);let i=sr(t),a=is.length,o;try{o=e(...n)}finally{for(let e=is.length;e>a;e--)os();sr(i),r._d&&cs(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function dr(e,t){if(z===null)return e;let n=Ks(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&&An(o),i.push({dir:a,instance:n,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function fr(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&&(Qe(),Rn(c,n,8,[e.el,s,e,t]),$e())}}function pr(e,t){if(ks){let n=ks.provides,r=ks.parent&&ks.parent.provides;r===n&&(n=ks.provides=Object.create(r)),n[e]=t}}function mr(e,t,n=!1){let r=X();if(r||Qa){let i=Qa?Qa._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 hr(){return!!(X()||Qa)}var gr=Symbol.for(`v-scx`),_r=()=>mr(gr);function vr(e,t){return Sr(e,null,t)}function yr(e,t){return Sr(e,null,{flush:`post`})}function br(e,t){return Sr(e,null,{flush:`sync`})}function xr(e,t,n){return Sr(e,t,n)}function Sr(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(Fs){if(s===`sync`){let e=_r();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=a,e.resume=a,e.pause=a,e}}let p=ks;u.call=(e,t,n)=>Rn(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():Xn(e)}),u.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=kn(e,t,u);return Fs&&(f?f.push(h):d&&h()),h}function Cr(e,t,n){let r=this.proxy,i=y(e)?e.includes(`.`)?wr(r,e):()=>r[e]:e.bind(r,r),a;v(t)?a=t:(a=t.handler,n=t);let o=Ms(this),s=Sr(i,a.bind(r),n);return o(),s}function wr(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 Tr=new WeakMap,Er=Symbol(`_vte`),Dr=e=>e.__isTeleport,Or=e=>e&&(e.disabled||e.disabled===``),kr=e=>e&&(e.defer||e.defer===``),Ar=e=>typeof SVGElement<`u`&&e instanceof SVGElement,jr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Mr=(e,t)=>{let n=e&&e.to;return y(n)?t?t(n):null:n},Nr={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=Or(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=Or(e.props),r=e.target=Mr(e.props,m),a=Rr(r,e,h,p);r&&(o!==`svg`&&Ar(r)?o=`svg`:o!==`mathml`&&jr(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),Lr(e,!1)))},S=e=>{let t=()=>{if(Tr.get(e)===t){if(Tr.delete(e),Or(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),Lr(e,!0)}x(e)}};Tr.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),kr(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),Lr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Tr.get(e);if(u){u.flags|=8,Tr.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Or(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Ar(p)?o=`svg`:(o===`mathml`||jr(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),Ro(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):Pr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=Mr(t.props,m);e&&(t.target=e,Pr(t,e,null,l,0))}else g&&Pr(t,p,h,l,1);Lr(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=Or(f),m=a||!p,h=Tr.get(e);if(h&&(h.flags|=8,Tr.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:Pr,hydrate:Fr};function Pr(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),!Tr.has(e)&&(!d||Or(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function Fr(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=Mr(t.props,c),h=Or(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||Rr(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||Rr(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),Lr(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var Ir=Nr;function Lr(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 Rr(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[Er]=o,e&&(r(a,e,i),r(o,e,i)),o}var zr=Symbol(`_leaveCb`),Br=Symbol(`_enterCb`);function Vr(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ki(()=>{e.isMounted=!0}),Yi(()=>{e.isUnmounting=!0}),e}var Hr=[Function,Array],Ur={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Hr,onEnter:Hr,onAfterEnter:Hr,onEnterCancelled:Hr,onBeforeLeave:Hr,onLeave:Hr,onAfterLeave:Hr,onLeaveCancelled:Hr,onBeforeAppear:Hr,onAppear:Hr,onAfterAppear:Hr,onAppearCancelled:Hr},Wr=e=>{let t=e.subTree;return t.component?Wr(t.component):t},Gr={name:`BaseTransition`,props:Ur,setup(e,{slots:t}){let n=X(),r=Vr();return()=>{let i=t.default&&$r(t.default(),!0),a=i&&i.length?Kr(i):n.subTree?bs():void 0;if(!a)return;let o=F(e),{mode:s}=o;if(r.isLeaving)return Xr(a);let c=Zr(a);if(!c)return Xr(a);let l=Yr(c,o,r,n,e=>l=e);c.type!==W&&Qr(c,l);let u=n.subTree&&Zr(n.subTree);if(u&&u.type!==W&&!ds(u,c)&&Wr(n).type!==W){let e=Yr(u,o,r,n);if(Qr(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},Xr(a);s===`in-out`&&c.type!==W?e.delayLeave=(e,t,n)=>{let i=Jr(r,u);i[String(u.key)]=u,e[zr]=()=>{t(),e[zr]=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 Kr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==W){t=n;break}}return t}var qr=Gr;function Jr(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Yr(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=Jr(n,e),C=(e,t)=>{e&&Rn(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[zr]&&t[zr](!0);let i=S[x];i&&ds(e,i)&&i.el[zr]&&i.el[zr](),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[Br]=e=>{s||(s=!0,C(e?o:i,[t]),ee.delayedLeave&&ee.delayedLeave(),t[Br]=void 0)};let c=t[Br].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[Br]&&t[Br](!0),n.isUnmounting)return r();C(f,[t]);let a=!1;t[zr]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[zr]=void 0,S[i]===e&&delete S[i])};let o=t[zr].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=Yr(e,t,n,r,i);return i&&i(a),a}};return ee}function Xr(e){if(Pi(e))return e=_s(e),e.children=null,e}function Zr(e){if(!Pi(e))return Dr(e.type)&&e.children?Kr(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 Qr(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;Qr(Dr(n.type)&&Zr(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 $r(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($r(o.children,t,s))):(t||o.type!==W)&&r.push(s==null?o:_s(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 ei(){let e=X();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:``}function ti(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function ni(e){let t=X(),n=on(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 ri(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var ii=new WeakMap;function ai(e,t,n,i,a=!1){if(p(e)){e.forEach((e,r)=>ai(e,t&&(p(t)?t[r]:t),n,i,a));return}if(ji(i)&&!a){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&ai(e,t,n,i.component.subTree);return}let s=i.shapeFlag&4?Ks(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=>!ri(h,e)&&f(_,e),x=(e,t)=>!(t&&ri(h,t));if(m!=null&&m!==d){if(oi(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))Ln(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(),ii.delete(e)};t.id=-1,ii.set(e,t),H(t,n)}else oi(e),i()}}}function oi(e){let t=ii.get(e);t&&(t.flags|=8,ii.delete(e))}var si=!1,ci=()=>{si||=(console.error(`Hydration completed but contains mismatches.`),!0)},li=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,ui=e=>e.namespaceURI.includes(`MathML`),di=e=>{if(e.nodeType===1){if(li(e))return`svg`;if(ui(e))return`mathml`}},fi=e=>e.nodeType===8;function pi(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),er(),t._vnode=e;return}f(t.firstChild,e,null,null,null),er(),t._vnode=e},f=(n,r,s,c,u,d=!1)=>{d||=!!r.dynamicChildren;let b=fi(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 ns:T===3?(n.data!==r.children&&(ci(),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 rs: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):fi(n)&&n.data===`teleport start`?_(n,n.data,`teleport end`):a(n),t(r,e,null,s,c,di(e),d),ji(r)&&!r.component.subTree){let t;b?(t=Y(rs),t.anchor=E?E.previousSibling:e.lastChild):t=n.nodeType===3?vs(``):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,di(o(n)),u,d,e,f))}return C!=null&&ai(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&&fr(t,null,n,`created`);let l=!1;if(y(e)){l=Lo(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&&!vi(e,1)&&ci();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
|
-
`)&&(vi(e,0)||ci(),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(hi(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&&Qt(d.style))for(let e in d.style)d.style[e]}let x;(x=d&&d.onVnodeBeforeMount)&&Ts(x,n,t),h&&fr(t,null,n,`beforeMount`),((x=d&&d.onVnodeMounted)||h||l)&&$o(()=>{x&&Ts(x,n,t),l&&g.enter(e),h&&fr(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]=xs(d[t]),g=h.type===ns;e?(g&&!u&&t+1<p&&xs(d[t+1]).type===ns&&(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,vi(r,1)||ci()),n(null,h,r,null,o,s,di(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&&fi(f)&&f.data===`]`?a(t.anchor=f):(ci(),l(t.anchor=u(`]`),d,f),f)},g=(e,t,r,i,s,l)=>{if(bi(e,t)||ci(),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,di(d),s),r&&(r.vnode.el=t.el,po(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&fi(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 mi=new Set([`src`,`srcset`,`href`,`poster`]);function hi(e,t,n){return mi.has(t)?e.getAttribute(t)===(n==null?null:`${n}`):!1}var gi=`data-allow-mismatch`,_i={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function vi(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(gi);)e=e.parentElement;return yi(e&&e.getAttribute(gi),t)}function yi(e,t){if(e==null)return!1;if(e===``)return!0;{let n=e.split(`,`);return t===0&&n.includes(`children`)?!0:n.includes(_i[t])}}function bi(e,t){return vi(e.parentElement,1)||xi(e)||Si(t)}function xi(e){return e.nodeType===1&&yi(e.getAttribute(gi),1)}function Si({props:e}){let t=e&&e[gi];return typeof t==`string`&&yi(t,1)}var Ci=de().requestIdleCallback||(e=>setTimeout(e,1)),wi=de().cancelIdleCallback||(e=>clearTimeout(e)),Ti=(e=1e4)=>t=>{let n=Ci(t,{timeout:e});return()=>wi(n)};function Ei(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 Di=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(Ei(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},Oi=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},ki=(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 Ai(e,t){if(fi(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(fi(r)){if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++}r=r.nextSibling}}else t(e)}var ji=e=>!!e.type.__asyncLoader;function Mi(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=>Ai(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=ks;if(ti(e),u)return()=>Ni(u,e);let t=t=>{l=null,zn(t,e,13,!r)};if(s&&e.suspense||Fs)return p().then(t=>()=>Ni(t,e)).catch(e=>(t(e),()=>r?Y(r,{error:e}):null));let a=L(!1),c=L(),d=L(!!i),f,m;return Xi(()=>{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&&Pi(e.parent.vnode)&&e.parent.update())}).catch(n=>{if(e.isUnmounted){l=null;return}t(n),c.value=n}),()=>{if(a.value&&u)return Ni(u,e);if(c.value&&r)return Y(r,{error:c.value});if(n&&!d.value)return Ni(n,e)}}})}function Ni(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 Pi=e=>e.type.__isKeepAlive,Fi={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&&Ts(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;Vo(t.m),Vo(t.a),l(e,f,null,1,s),H(()=>{t.da&&oe(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&Ts(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){Vi(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=qs(ji(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!ds(t,o))?p(t):o&&Vi(o),i.delete(e),a.delete(e)}xr(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Ii(e,t)),t&&m(e=>!Ii(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(Uo(n.subTree.type)?H(()=>{let e=Hi(n.subTree);e.component&&i.set(g,e)},n.subTree.suspense):i.set(g,Hi(n.subTree)))};return Ki(_),Ji(_),Yi(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=Hi(t);if(e.type===i.type&&e.key===i.key){Vi(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(!us(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=Hi(r);if(s.type===W)return o=null,s;let c=s.type,l=qs(ji(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Ii(u,l))||d&&l&&Ii(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=_s(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&Qr(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,Uo(r.type)?r:s}}};function Ii(e,t){return p(e)?e.some(e=>Ii(e,t)):y(e)?e.split(`,`).includes(t):_(e)?(e.lastIndex=0,e.test(t)):!1}function Li(e,t){zi(e,`a`,t)}function Ri(e,t){zi(e,`da`,t)}function zi(e,t,n=ks){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Ui(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Pi(e.parent.vnode)&&Bi(r,t,n,e),e=e.parent}}function Bi(e,t,n,r){let i=Ui(t,e,r,!0);Xi(()=>{u(r[t],i)},n)}function Vi(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Hi(e){return e.shapeFlag&128?e.ssContent:e}function Ui(e,t,n=ks,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Qe();let i=Ms(n),a=Rn(t,n,e,r);return i(),$e(),a};return r?i.unshift(a):i.push(a),a}}var Wi=e=>(t,n=ks)=>{(!Fs||e===`sp`)&&Ui(e,(...e)=>t(...e),n)},Gi=Wi(`bm`),Ki=Wi(`m`),qi=Wi(`bu`),Ji=Wi(`u`),Yi=Wi(`bum`),Xi=Wi(`um`),Zi=Wi(`sp`),Qi=Wi(`rtg`),$i=Wi(`rtc`);function ea(e,t=ks){Ui(`ec`,e,t)}var ta=`components`,na=`directives`;function ra(e,t){return sa(ta,e,!0,t)||e}var ia=Symbol.for(`v-ndc`);function aa(e){return y(e)?sa(ta,e,!1)||e:e||ia}function oa(e){return sa(na,e)}function sa(e,t,n=!0,r=!1){let i=z||ks;if(i){let n=i.type;if(e===ta){let e=qs(n,!1);if(e&&(e===t||e===D(t)||e===ae(D(t))))return n}let a=ca(i[e]||n[e],t)||ca(i.appContext[e],t);return!a&&r?n:a}}function ca(e,t){return e&&(e[t]||e[D(t)]||e[ae(D(t))])}function la(e,t,n,r){let i,a=n&&n[r],o=p(e);if(o||y(e)){let n=o&&Qt(e),r=!1,s=!1;n&&(r=!en(e),s=$t(e),e=pt(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?an(rn(e[n])):rn(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 ua(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 da(e,t,n,r,i,a){if(n??={},z.ce||z.parent&&ji(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=is.length;G();let c;try{let i=o&&fa(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=is.length;e>s;e--)os();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function fa(e){return e.some(e=>!us(e)||!(e.type===W||e.type===U&&!fa(e.children)))?e:null}function pa(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:k(r)]=e[r];return n}var ma=e=>e?Ps(e)?Ks(e):ma(e.parent):null,ha=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=>ma(e.parent),$root:e=>ma(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>za(e),$forceUpdate:e=>e.f||=()=>{Xn(e.update)},$nextTick:e=>e.n||=Jn.bind(e.proxy),$watch:e=>Cr.bind(e)}),ga=(e,t)=>e!==r&&!e.__isScriptSetup&&f(e,t),_a={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(ga(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 Pa&&(s[t]=0)}let u=ha[t],d,p;if(u)return t===`$attrs`&<(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 ga(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)||ga(t,c)||f(o,c)||f(i,c)||f(ha,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)}},va=l({},_a,{get(e,t){if(t!==Symbol.unscopables)return _a.get(e,t,e)},has(e,t){return t[0]!==`_`&&!fe(t)}});function ya(){return null}function ba(){return null}function xa(e){}function Sa(e){}function Ca(){return null}function wa(){}function Ta(e,t){return null}function Ea(){return Oa(`useSlots`).slots}function Da(){return Oa(`useAttrs`).attrs}function Oa(e){let t=X();return t.setupContext||=Gs(t)}function ka(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Aa(e,t){let n=ka(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 ja(e,t){return!e||!t?e||t:p(e)&&p(t)?e.concat(t):l({},ka(e),ka(t))}function Ma(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Na(e){let t=X(),n=Fs,r=e();Ns(),n&&js(!1);let i=()=>{Ms(t),n&&js(!0)},a=()=>{X()!==t&&t.scope.off(),Ns(),n&&js(!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 Pa=!0;function Fa(e){let t=za(e),n=e.proxy,r=e.ctx;Pa=!1,t.beforeCreate&&La(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&&Ia(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=qt(t))}if(Pa=!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)Ra(c[e],r,n,e);if(l){let e=v(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{pr(t,e[t])})}d&&La(d,e,`c`);function k(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(k(Gi,f),k(Ki,m),k(qi,h),k(Ji,g),k(Li,_),k(Ri,y),k(ea,te),k($i,T),k(Qi,E),k(Yi,S),k(Xi,w),k(Zi,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&&ti(e)}function Ia(e,t,n=a){p(e)&&(e=Wa(e));for(let n in e){let r=e[n],i;i=x(r)?`default`in r?mr(r.from||n,r.default,!0):mr(r.from||n):mr(r),I(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function La(e,t,n){Rn(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ra(e,t,n,r){let i=r.includes(`.`)?wr(n,r):()=>n[r];if(y(e)){let n=t[e];v(n)&&xr(i,n)}else if(v(e))xr(i,e.bind(n));else if(x(e)){if(p(e))e.forEach(e=>Ra(e,t,n,r));else{let r=v(e.handler)?e.handler.bind(n):t[e.handler];v(r)&&xr(i,r,e)}}}function za(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=>Ba(c,e,o,!0)),Ba(c,t,o)),x(t)&&a.set(t,c),c}function Ba(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Ba(e,a,n,!0),i&&i.forEach(t=>Ba(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Va[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Va={data:Ha,props:qa,emits:qa,methods:Ka,computed:Ka,beforeCreate:Ga,created:Ga,beforeMount:Ga,mounted:Ga,beforeUpdate:Ga,updated:Ga,beforeDestroy:Ga,beforeUnmount:Ga,destroyed:Ga,unmounted:Ga,activated:Ga,deactivated:Ga,errorCaptured:Ga,serverPrefetch:Ga,components:Ka,directives:Ka,watch:Ja,provide:Ha,inject:Ua};function Ha(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 Ua(e,t){return Ka(Wa(e),Wa(t))}function Wa(e){if(p(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ga(e,t){return e?[...new Set([].concat(e,t))]:t}function Ka(e,t){return e?l(Object.create(null),e,t):t}function qa(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:l(Object.create(null),ka(e),ka(t??{})):t}function Ja(e,t){if(!e)return t;if(!t)return e;let n=l(Object.create(null),e);for(let r in t)n[r]=Ga(e[r],t[r]);return n}function Ya(){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 Xa=0;function Za(e,t){return function(n,r=null){v(n)||(n=l({},n)),r!=null&&!x(r)&&(r=null);let i=Ya(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:Xa++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:$s,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,Ks(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(Rn(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=Qa;Qa=c;try{return e()}finally{Qa=t}}};return c}}var Qa=null;function $a(e,t,n=r){let i=X(),a=D(t),o=O(t),s=eo(e,a),c=mn((s,c)=>{let l,u=r,d;return br(()=>{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 eo=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${D(t)}Modifiers`]||e[`${O(t)}Modifiers`];function to(e,t,...n){if(e.isUnmounted)return;let i=e.vnode.props||r,a=n,o=t.startsWith(`update:`),s=o&&eo(i,t.slice(7));s&&(s.trim&&(a=n.map(e=>y(e)?e.trim():e)),s.number&&(a=a.map(ce)));let c,l=i[c=k(t)]||i[c=k(D(t))];!l&&o&&(l=i[c=k(O(t))]),l&&Rn(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,Rn(u,e,6,a)}}var no=new WeakMap;function ro(e,t,n=!1){let r=n?no: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=ro(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 io(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 ao(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,_=sr(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=xs(u.call(t,e,d,f,m,p,h)),y=s}else{let e=t;v=xs(e.length>1?e(f,{attrs:s,slots:o,emit:l}):e(f,null)),y=t.props?s:so(s)}}catch(t){is.length=0,zn(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=co(y,a)),b=_s(b,y,!1,!0))}return n.dirs&&(b=_s(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Qr(Dr(b.type)&&Zr(b)||b,n.transition),v=b,sr(_),v}function oo(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(us(r)){if(r.type!==W||r.children===`v-if`){if(n)return;n=r}}else return}return n}var so=e=>{let t;for(let n in e)(n===`class`||n===`style`||s(n))&&((t||={})[n]=e[n]);return t},co=(e,t)=>{let n={};for(let r in e)(!c(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function lo(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?uo(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(fo(o,r,n)&&!io(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||uo(r,o,l):!!o;return!1}function uo(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(fo(t,e,a)&&!io(n,a))return!0}return!1}function fo(e,t,n){let r=e[n],i=t[n];return n===`style`&&x(r)&&x(i)?!we(r,i):r!==i}function po({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 mo={},ho=()=>Object.create(mo),go=e=>Object.getPrototypeOf(e)===mo;function _o(e,t,n,r=!1){let i={},a=ho();e.propsDefaults=Object.create(null),yo(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:Jt(i):e.type.props?i:a,e.attrs=a}function vo(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(io(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]=bo(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{yo(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]=bo(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&&ut(e.attrs,`set`,``)}function yo(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:io(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]=bo(a,t,s,i[s],e,!f(i,s))}}return s}function bo(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=Ms(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 xo=new WeakMap;function So(e,t,n=!1){let a=n?xo: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]=So(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]);Co(t)&&(c[t]=r)}else if(s)for(let e in s){let t=D(e);if(Co(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 Co(e){return e[0]!==`$`&&!te(e)}var wo=e=>e===`_`||e===`_ctx`||e===`$stable`,To=e=>p(e)?e.map(xs):[xs(e)],Eo=(e,t,n)=>{if(t._n)return t;let r=B((...e)=>To(t(...e)),n);return r._c=!1,r},Do=(e,t,n)=>{let r=e._ctx;for(let n in e){if(wo(n))continue;let i=e[n];if(v(i))t[n]=Eo(n,i,r);else if(i!=null){let e=To(i);t[n]=()=>e}}},Oo=(e,t)=>{let n=To(t);e.slots.default=()=>n},ko=(e,t,n)=>{for(let r in t)(n||!wo(r))&&(e[r]=t[r])},Ao=(e,t,n)=>{let r=e.slots=ho();if(e.vnode.shapeFlag&32){let e=t._;e?(ko(r,t,n),n&&se(r,`_`,e,!0)):Do(t,r)}else t&&Oo(e,t)},jo=(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:ko(a,t,n):(o=!t.$stable,Do(t,a)),s=t}else t&&(Oo(e,t),s={default:1});if(o)for(let e in a)!wo(e)&&s[e]==null&&delete a[e]},H=$o;function Mo(e){return Po(e)}function No(e){return Po(e,pi)}function Po(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&&!ds(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 ns:y(e,t,n,r);break;case W:b(e,t,n,r);break;case rs: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?ai(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&ai(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,Fo(e,a),s,u),_&&fr(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)&&Ts(f,r,e)}_&&fr(e,null,r,`beforeMount`);let v=Lo(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&H(()=>{try{f&&Ts(f,r,e),v&&g.enter(d),_&&fr(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||Uo(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?Ss(e[l]):xs(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&&Io(n,!1),(g=h.onVnodeBeforeUpdate)&&Ts(g,n,t,e),f&&fr(t,e,n,`beforeUpdate`),n&&Io(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,Fo(t,a),o):s||ce(e,t,l,null,n,i,Fo(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&&Ts(g,n,t,e),f&&fr(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||!ds(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)&&Ro(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=Os(e,r,i);if(Pi(e)&&(s.ctx.renderer=be),Is(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(lo(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=Bo(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;Io(e,!1),t?(t.el=c.el,se(e,t,o)):t=c,n&&oe(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Ts(d,s,t,c),Io(e,!0);let f=ao(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),j(p),e,i,a),t.el=f.el,u===null&&po(e,f.el),r&&H(r,i),(d=t.props&&t.props.onVnodeUpdated)&&H(()=>Ts(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=ji(t);if(Io(e,!1),l&&oe(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Ts(o,d,t),Io(e,!0),s&&Se){let t=()=>{e.subTree=ao(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=ao(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(()=>Ts(o,d,e),i)}(t.shapeFlag&256||d&&ji(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 Fe(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=()=>Xn(u),Io(e,!0),l()},se=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,vo(e,t.props,r,n),jo(e,t.children,n),Qe(),$n(e),$e()},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?Ss(t[p]):xs(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?Ss(t[u]):xs(t[u]);if(ds(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?Ss(t[p]):xs(t[p]);if(ds(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?Ss(t[u]):xs(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?Ss(t[u]):xs(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&&ds(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?zo(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||Ho(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===rs){S(e,t,n);return}if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[zr]?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[zr];a._isLeaving&&a[zr](!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&&(Qe(),ai(s,null,n,e,!0),$e()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!ji(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Ts(_,t,e),u&6)ge(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&fr(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(()=>{_&&Ts(_,t,e),h&&fr(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===rs){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;Vo(c),Vo(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[Er];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,$n(r),er(),!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:Za(ye,xe)}}function Fo({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 Io({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Lo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ro(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]=Ss(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Ro(t,a)),a.type===ns&&(a.patchFlag===-1&&(a=i[e]=Ss(a)),a.el=t.el),a.type===W&&!a.el&&(a.el=t.el)}}function zo(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 Bo(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bo(t)}function Vo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ho(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Ho(t.subTree):null}var Uo=e=>e.__isSuspense,Wo=0,Go={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)qo(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}Jo(e,t,n,r,i,o,s,c,l)}},hydrate:Xo,normalize:Zo};function Ko(e,t){let n=e.props&&e.props[t];v(n)&&n()}function qo(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=Yo(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?(Ko(e,`onPending`),Ko(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),es(f,e.ssFallback)):f.resolve(!1,!0)}function Jo(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,ds(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&!_&&!d.isFallbackMountPending&&(c(m,p,n,r,i,null,a,o,s),es(d,p))):(d.pendingId=Wo++,_?(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():d.isFallbackMountPending||(c(m,p,n,r,i,null,a,o,s),es(d,p))):m&&ds(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&&ds(m,f))c(m,f,n,r,i,d,a,o,s),es(d,f);else if(Ko(t,`onPending`),d.pendingBranch=f,d.pendingId=f.shapeFlag&512?f.component.suspenseId:Wo++,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 Yo(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=ts(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:Wo++,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),Qn(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,es(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&&Qn(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),Ko(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;Ko(t,`onFallback`);let o=m(n),l=()=>{if(x.isFallbackMountPending=!1,!x.isInFallback)return;let e=x.vnode.ssFallback;d(null,e,i,o,r,null,a,s,c),es(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=>{zn(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;Ns(),e.asyncResolved=!0;let{vnode:s}=e;Rs(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)),po(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 Xo(e,t,n,r,i,a,o,s,c){let l=t.suspense=Yo(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 Zo(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Qo(r?n.default:n),e.ssFallback=r?Qo(n.fallback):Y(W)}function Qo(e){let t;if(v(e)){let n=ss&&e._c;n&&(e._d=!1,G()),e=e(),n&&(e._d=!0,t=as,os())}return p(e)&&(e=oo(e)),e=xs(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function $o(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):Qn(e)}function es(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,po(r,i))}function ts(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var U=Symbol.for(`v-fgt`),ns=Symbol.for(`v-txt`),W=Symbol.for(`v-cmt`),rs=Symbol.for(`v-stc`),is=[],as=null;function G(e=!1){is.push(as=e?null:[])}function os(){is.pop(),as=is[is.length-1]||null}var ss=1;function cs(e,t=!1){ss+=e,e<0&&as&&t&&(as.hasOnce=!0)}function ls(e){return e.dynamicChildren=ss>0?as||i:null,os(),ss>0&&as&&as.push(e),e}function K(e,t,n,r,i,a){return ls(J(e,t,n,r,i,a,!0))}function q(e,t,n,r,i){return ls(Y(e,t,n,r,i,!0))}function us(e){return e?e.__v_isVNode===!0:!1}function ds(e,t){return e.type===t.type&&e.key===t.key}function fs(e){}var ps=({key:e})=>e??null,ms=({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&&ps(t),ref:t&&ms(t),scopeId:or,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?(Cs(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),ss>0&&!o&&as&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&as.push(c),c}var Y=hs;function hs(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===ia)&&(e=W),us(e)){let r=_s(e,t,!0);return n&&Cs(r,n),ss>0&&!a&&as&&(r.shapeFlag&6?as[as.indexOf(e)]=r:as.push(r)),r.patchFlag=-2,r}if(Js(e)&&(e=e.__vccOpts),t){t=gs(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=j(e)),x(n)&&(tn(n)&&!p(n)&&(n=l({},n)),t.style=pe(n))}let o=y(e)?1:Uo(e)?128:Dr(e)?64:x(e)?4:v(e)?2:0;return J(e,t,n,r,i,o,a,!0)}function gs(e){return e?tn(e)||go(e)?l({},e):e:null}function _s(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?ws(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ps(l),ref:t&&t.ref?n&&a?p(a)?a.concat(ms(t)):[a,ms(t)]:ms(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&&_s(e.ssContent),ssFallback:e.ssFallback&&_s(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Qr(u,c.clone(u)),u}function vs(e=` `,t=0){return Y(ns,null,e,t)}function ys(e,t){let n=Y(rs,null,e);return n.staticCount=t,n}function bs(e=``,t=!1){return t?(G(),q(W,null,e)):Y(W,null,e)}function xs(e){return e==null||typeof e==`boolean`?Y(W):p(e)?Y(U,null,e.slice()):us(e)?Ss(e):Y(ns,null,String(e))}function Ss(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:_s(e)}function Cs(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),Cs(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!go(t)?t._ctx=z:r===3&&z&&(z.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(v(t)){if(r&65){Cs(e,{default:t});return}t={default:t,_ctx:z},n=32}else t=String(t),r&64?(n=16,t=[vs(t)]):n=8;e.children=t,e.shapeFlag|=n}function ws(...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 Ts(e,t,n,r=null){Rn(e,t,7,[n,r])}var Es=Ya(),Ds=0;function Os(e,t,n){let i=e.type,a=(t?t.appContext:e.appContext)||Es,o={uid:Ds++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ae(!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:So(i,a),emitsOptions:ro(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=to.bind(null,o),e.ce&&e.ce(o),o}var ks=null,X=()=>ks||z,As,js;{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)}};As=t(`__VUE_INSTANCE_SETTERS__`,e=>ks=e),js=t(`__VUE_SSR_SETTERS__`,e=>Fs=e)}var Ms=e=>{let t=ks;return As(e),e.scope.on(),()=>{e.scope.off(),As(t)}},Ns=()=>{ks&&ks.scope.off(),As(null)};function Ps(e){return e.vnode.shapeFlag&4}var Fs=!1;function Is(e,t=!1,n=!1){t&&js(t);let{props:r,children:i}=e.vnode,a=Ps(e);_o(e,r,a,t),Ao(e,i,n||t);let o=a?Ls(e,t):void 0;return t&&js(!1),o}function Ls(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,_a);let{setup:r}=n;if(r){Qe();let n=e.setupContext=r.length>1?Gs(e):null,i=Ms(e),a=Ln(r,e,0,[e.props,n]),o=S(a);if($e(),i(),(o||e.sp)&&!ji(e)&&ti(e),o){if(a.then(Ns,Ns),t)return a.then(n=>{js(!0);try{Rs(e,n,t)}finally{js(!1)}}).catch(t=>{zn(t,e,0)});e.asyncDep=a}else Rs(e,a,t)}else Us(e,t)}function Rs(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:x(t)&&(e.setupState=fn(t)),Us(e,n)}var zs,Bs;function Vs(e){zs=e,Bs=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,va))}}var Hs=()=>!zs;function Us(e,t,n){let r=e.type;if(!e.render){if(!t&&zs&&!r.render){let t=r.template||za(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=zs(t,s)}}e.render=r.render||a,Bs&&Bs(e)}{let t=Ms(e);Qe();try{Fa(e)}finally{$e(),t()}}}var Ws={get(e,t){return lt(e,`get`,``),e[t]}};function Gs(e){return{attrs:new Proxy(e.attrs,Ws),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Ks(e){return e.exposed?e.exposeProxy||=new Proxy(fn(nn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ha)return ha[n](e)},has(e,t){return t in e||t in ha}}):e.proxy}function qs(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}function Js(e){return v(e)&&`__vccOpts`in e}var Z=(e,t)=>xn(e,t,Fs);function Ys(e,t,n){try{cs(-1);let r=arguments.length;return r===2?x(t)&&!p(t)?us(t)?Y(e,null,[t]):Y(e,t):Y(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&us(n)&&(n=[n]),Y(e,t,n))}finally{cs(1)}}function Xs(){}function Zs(e,t,n,r){let i=n[r];if(i&&Qs(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function Qs(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 ss>0&&as&&as.push(e),!0}var $s=`3.5.42`,ec=a,tc=In,nc=rr,rc=ar,ic={createComponentInstance:Os,setupComponent:Is,renderComponentRoot:ao,setCurrentRenderingInstance:sr,isVNode:us,normalizeVNode:xs,getComponentPublicInstance:Ks,ensureValidVNode:fa,pushWarningContext:Mn,popWarningContext:Nn},ac=void 0,oc=typeof window<`u`&&window.trustedTypes;if(oc)try{ac=oc.createPolicy(`vue`,{createHTML:e=>e})}catch{}var sc=ac?e=>ac.createHTML(e):e=>e,cc=`http://www.w3.org/2000/svg`,lc=`http://www.w3.org/1998/Math/MathML`,uc=typeof document<`u`?document:null,dc=uc&&uc.createElement(`template`),fc={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`?uc.createElementNS(cc,e):t===`mathml`?uc.createElementNS(lc,e):n?uc.createElement(e,{is:n}):uc.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>uc.createTextNode(e),createComment:e=>uc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>uc.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{dc.innerHTML=sc(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=dc.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]}},pc=`transition`,mc=`animation`,hc=Symbol(`_vtc`),gc={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},_c=l({},Ur,gc),vc=(e=>(e.displayName=`Transition`,e.props=_c,e))((e,{slots:t})=>Ys(qr,xc(e),t)),yc=(e,t=[])=>{p(e)?e.forEach(e=>e(...t)):e&&e(...t)},bc=e=>e?p(e)?e.some(e=>e.length>1):e.length>1:!1;function xc(e){let t={};for(let n in e)n in gc||(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=Sc(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,Tc(e,t?d:s),Tc(e,t?u:o),n&&n()},E=(e,t)=>{e._isLeaving=!1,Tc(e,f),Tc(e,m),Tc(e,p),t&&t()},te=e=>(t,n)=>{let i=e?w:y,o=()=>T(t,e,n);yc(i,[t,o]),Ec(()=>{Tc(t,e?c:a),wc(t,e?d:s),bc(i)||Oc(t,r,g,o)})};return l(t,{onBeforeEnter(e){yc(v,[e]),wc(e,a),wc(e,o)},onBeforeAppear(e){yc(C,[e]),wc(e,c),wc(e,u)},onEnter:te(!1),onAppear:te(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>E(e,t);wc(e,f),e._enterCancelled?(wc(e,p),Mc(e)):(Mc(e),wc(e,p)),Ec(()=>{e._isLeaving&&(Tc(e,f),wc(e,m),bc(x)||Oc(e,r,_,n))}),yc(x,[e,n])},onEnterCancelled(e){T(e,!1,void 0,!0),yc(b,[e])},onAppearCancelled(e){T(e,!0,void 0,!0),yc(ee,[e])},onLeaveCancelled(e){E(e),yc(S,[e])}})}function Sc(e){if(e==null)return null;if(x(e))return[Cc(e.enter),Cc(e.leave)];{let t=Cc(e);return[t,t]}}function Cc(e){return le(e)}function wc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[hc]||(e[hc]=new Set)).add(t)}function Tc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[hc];n&&(n.delete(t),n.size||(e[hc]=void 0))}function Ec(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Dc=0;function Oc(e,t,n,r){let i=e._endId=++Dc,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=kc(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 kc(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${pc}Delay`),a=r(`${pc}Duration`),o=Ac(i,a),s=r(`${mc}Delay`),c=r(`${mc}Duration`),l=Ac(s,c),u=null,d=0,f=0;t===pc?o>0&&(u=pc,d=o,f=a.length):t===mc?l>0&&(u=mc,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?pc:mc:null,f=u?u===pc?a.length:c.length:0);let p=u===pc&&/\b(?:transform|all)(?:,|$)/.test(r(`${pc}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Ac(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>jc(t)+jc(e[n])))}function jc(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Mc(e){return(e?e.ownerDocument:document).body.offsetHeight}function Nc(e,t,n){let r=e[hc];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Pc=Symbol(`_vod`),Fc=Symbol(`_vsh`),Ic={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Pc]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Lc(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),Lc(e,!0),r.enter(e)):r.leave(e,()=>{Lc(e,!1)}):Lc(e,t))},beforeUnmount(e,{value:t}){Lc(e,t)}};function Lc(e,t){e.style.display=t?e[Pc]:`none`,e[Fc]=!t}function Rc(){Ic.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var zc=Symbol(``);function Bc(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=>Hc(e,n))},r=()=>{let r=e(t.proxy);t.ce?Hc(t.ce,r):Vc(t.subTree,r),n(r)};qi(()=>{Qn(r)}),Ki(()=>{xr(r,a,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),Xi(()=>e.disconnect())})}function Vc(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Vc(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Hc(e.el,t);else if(e.type===U)e.children.forEach(e=>Vc(e,t));else if(e.type===rs){let{el:n,anchor:r}=e;for(;n&&(Hc(n,t),n!==r);)n=n.nextSibling}}function Hc(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=ke(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[zc]=r}}var Uc=/(?:^|;)\s*display\s*:/;function Wc(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]??Kc(r,t,``)}else for(let e in t)n[e]??Kc(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Kc(r,i,``):Xc(e,i,!y(t)&&t?t[i]:void 0,o)||Kc(r,i,o)}}else if(i){if(t!==n){let e=r[zc];e&&(n+=`;`+e),r.cssText=n,a=Uc.test(n)}}else t&&e.removeAttribute(`style`);Pc in e&&(e[Pc]=a?r.display:``,e[Fc]&&(r.display=`none`))}var Gc=/\s*!important$/;function Kc(e,t,n){if(p(n))n.forEach(n=>Kc(e,t,n));else if(n??=``,t.startsWith(`--`))Gc.test(n)?e.setProperty(t,n.replace(Gc,``),`important`):e.setProperty(t,n);else{let r=Yc(e,t);Gc.test(n)?e.setProperty(O(r),n.replace(Gc,``),`important`):e[r]=n}}var qc=[`Webkit`,`Moz`,`ms`],Jc={};function Yc(e,t){let n=Jc[t];if(n)return n;let r=D(t);if(r!==`filter`&&r in e)return Jc[t]=r;r=ae(r);for(let n=0;n<qc.length;n++){let i=qc[n]+r;if(i in e)return Jc[t]=i}return t}function Xc(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&y(r)&&n===r}var Zc=`http://www.w3.org/1999/xlink`;function Qc(e,t,n,r,i,a=be(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Zc,t.slice(6,t.length)):e.setAttributeNS(Zc,t,n):n==null||a&&!xe(n)?e.removeAttribute(t):e.setAttribute(t,a?``:b(n)?String(n):n)}function $c(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?sc(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 el(e,t,n,r){e.addEventListener(t,n,r)}function tl(e,t,n,r){e.removeEventListener(t,n,r)}var nl=Symbol(`_vei`);function rl(e,t,n,r,i=null){let a=e[nl]||(e[nl]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=ol(t);r?el(e,n,a[t]=ul(r,i),s):o&&(tl(e,n,o,s),a[t]=void 0)}}var il=/(Once|Passive|Capture)$/,al=/^on:?(?:Once|Passive|Capture)$/;function ol(e){let t,n;for(;(n=e.match(il))&&!al.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 sl=0,cl=Promise.resolve(),ll=()=>sl||=(cl.then(()=>sl=0),Date.now());function ul(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&&Rn(e,t,5,a)}}else Rn(r,t,5,[e])};return n.value=e,n.attached=ll(),n}var dl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,fl=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Nc(e,r,o):t===`style`?Wc(e,n,r):s(t)?c(t)||rl(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):pl(e,t,r,o))?($c(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Qc(e,t,r,o,a,t!==`value`)):e._isVueCE&&(ml(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!y(r)))?$c(e,D(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Qc(e,t,r,o))};function pl(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&dl(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 dl(t)&&y(n)?!1:t in e}function ml(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 hl={};function gl(e,t,n){let r=V(e,t);T(r)&&(r=l({},r,t));class i extends yl{constructor(e){super(r,e,n)}}return i.def=r,i}var _l=((e,t)=>gl(e,t,du)),vl=typeof HTMLElement<`u`?HTMLElement:class{},yl=class e extends vl{constructor(e,t={},n=uu){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!==uu?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,Jn(()=>{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):hl,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===hl?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),cu(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 bl(e){let t=X();return t&&t.ce||null}function xl(){let e=bl();return e&&e.shadowRoot}function Sl(e=`$style`){{let t=X();if(!t)return r;let n=t.type.__cssModules;return n&&n[e]||r}}var Cl=new WeakMap,wl=new WeakMap,Tl=Symbol(`_moveCb`),El=Symbol(`_enterCb`),Dl=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:l({},_c,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=X(),r=Vr(),i,a;return Ji(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!Ml(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(Ol),i.forEach(kl);let r=i.filter(Al);Mc(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;wc(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Tl]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Tl]=null,Tc(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=F(e),s=xc(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[Fc]&&(i.push(t),Qr(t,Yr(t,s,r,n)),Cl.set(t,jl(t.el)))}a=t.default?$r(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&Qr(t,Yr(t,s,r,n))}return Y(c,null,a)}}});function Ol(e){let t=e.el;t[Tl]&&t[Tl](),t[El]&&t[El]()}function kl(e){wl.set(e,jl(e.el))}function Al(e){let t=Cl.get(e),n=wl.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 jl(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function Ml(e,t,n){let r=e.cloneNode(),i=e[hc];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}=kc(r);return a.removeChild(r),o}var Nl=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return p(t)?e=>oe(t,e):t};function Pl(e){e.target.composing=!0}function Fl(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var Il=Symbol(`_assign`),Ll=Symbol(`_initialValue`);function Rl(e,t,n){return t&&(e=e.trim()),n&&(e=ce(e)),e}var zl={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[Ll]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[Ll]=e.defaultValue.replace(/\r\n?/g,`
|
|
4
|
-
`))),e[Il]=Nl(i);let a=r||i.props&&i.props.type===`number`;el(e,t?`change`:`input`,t=>{t.target.composing||e[Il](Rl(e.value,n,a))}),(n||a)&&el(e,`change`,()=>{e.value=Rl(e.value,n,a)}),t||(el(e,`compositionstart`,Pl),el(e,`compositionend`,Fl),el(e,`change`,Fl))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[Ll];delete e[Ll],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[Il](Rl(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Il]=Nl(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)}},Bl={deep:!0,created(e,t,n){e[Il]=Nl(n),el(e,`change`,()=>{let t=e._modelValue,n=Kl(e),r=e.checked,i=e[Il];if(p(t)){let e=Te(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(ql(e,r))})},mounted:Vl,beforeUpdate(e,t,n){e[Il]=Nl(n),Vl(e,t,n)}};function Vl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(p(t))i=Te(t,r.props.value)>-1;else if(h(t))i=t.has(r.props.value);else{if(t===n)return;i=we(t,ql(e,!0))}e.checked!==i&&(e.checked=i)}var Hl={created(e,{value:t},n){e.checked=we(t,n.props.value),e[Il]=Nl(n),el(e,`change`,()=>{e[Il](Kl(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Il]=Nl(r),t!==n&&(e.checked=we(t,r.props.value))}},Ul={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,el(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?ce(Kl(e)):Kl(e)),r=e.multiple,i=r?h(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?p(i)?t.slice():t:i];try{e[Il](i)}finally{Jn(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[Il]=Nl(r)},mounted(e,{value:t}){Gl(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Il]=Nl(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Wl(t,n[1],n[0]))&&Gl(e,t)}};function Wl(e,t,n){if(!n||p(e))return we(e,t);if(h(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function Gl(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=Kl(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):Te(t,o)>-1}else a.selected=t.has(o)}else if(we(Kl(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Kl(e){return`_value`in e?e._value:e.value}function ql(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Jl={created(e,t,n){Xl(e,t,n,null,`created`)},mounted(e,t,n){Xl(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Xl(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Xl(e,t,n,r,`updated`)}};function Yl(e,t){switch(e){case`SELECT`:return Ul;case`TEXTAREA`:return zl;default:switch(t){case`checkbox`:return Bl;case`radio`:return Hl;default:return zl}}}function Xl(e,t,n,r,i){let a=Yl(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function Zl(){zl.getSSRProps=({value:e})=>({value:e}),Hl.getSSRProps=({value:e},t)=>{if(t.props&&we(t.props.value,e))return{checked:!0}},Bl.getSSRProps=({value:e},t)=>{if(p(e)){if(t.props&&Te(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}},Jl.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=Yl(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var Ql=[`ctrl`,`shift`,`alt`,`meta`],$l={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)=>Ql.some(n=>e[`${n}Key`]&&!t.includes(n))},eu=(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=$l[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},tu={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},nu=(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||tu[e]===r))return e(n)}))},ru=l({patchProp:fl},fc),iu,au=!1;function ou(){return iu||=Mo(ru)}function su(){return iu=au?iu:No(ru),au=!0,iu}var cu=((...e)=>{ou().render(...e)}),lu=((...e)=>{su().hydrate(...e)}),uu=((...e)=>{let t=ou().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=pu(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,fu(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),du=((...e)=>{let t=su().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=pu(e);if(t)return n(t,!0,fu(t))},t});function fu(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function pu(e){return y(e)?document.querySelector(e):e}var mu=!1,hu=()=>{mu||(mu=!0,Zl(),Rc())},gu=t({BaseTransition:()=>qr,BaseTransitionPropsValidators:()=>Ur,Comment:()=>W,DeprecationTypes:()=>null,EffectScope:()=>Ae,ErrorCodes:()=>Fn,ErrorTypeStrings:()=>tc,Fragment:()=>U,KeepAlive:()=>Fi,ReactiveEffect:()=>Fe,Static:()=>rs,Suspense:()=>Go,Teleport:()=>Ir,Text:()=>ns,TrackOpTypes:()=>Sn,Transition:()=>vc,TransitionGroup:()=>Dl,TriggerOpTypes:()=>Cn,VueElement:()=>yl,assertNumber:()=>Pn,callWithAsyncErrorHandling:()=>Rn,callWithErrorHandling:()=>Ln,camelize:()=>D,capitalize:()=>ae,cloneVNode:()=>_s,compatUtils:()=>null,compile:()=>_u,computed:()=>Z,createApp:()=>uu,createBlock:()=>q,createCommentVNode:()=>bs,createElementBlock:()=>K,createElementVNode:()=>J,createHydrationRenderer:()=>No,createPropsRestProxy:()=>Ma,createRenderer:()=>Mo,createSSRApp:()=>du,createSlots:()=>ua,createStaticVNode:()=>ys,createTextVNode:()=>vs,createVNode:()=>Y,customRef:()=>mn,defineAsyncComponent:()=>Mi,defineComponent:()=>V,defineCustomElement:()=>gl,defineEmits:()=>ba,defineExpose:()=>xa,defineModel:()=>wa,defineOptions:()=>Sa,defineProps:()=>ya,defineSSRCustomElement:()=>_l,defineSlots:()=>Ca,devtools:()=>nc,effect:()=>Je,effectScope:()=>je,getCurrentInstance:()=>X,getCurrentScope:()=>Me,getCurrentWatcher:()=>Dn,getTransitionRawChildren:()=>$r,guardReactiveProps:()=>gs,h:()=>Ys,handleError:()=>zn,hasInjectionContext:()=>hr,hydrate:()=>lu,hydrateOnIdle:()=>Ti,hydrateOnInteraction:()=>ki,hydrateOnMediaQuery:()=>Oi,hydrateOnVisible:()=>Di,initCustomFormatter:()=>Xs,initDirectivesForSSR:()=>hu,inject:()=>mr,isMemoSame:()=>Qs,isProxy:()=>tn,isReactive:()=>Qt,isReadonly:()=>$t,isRef:()=>I,isRuntimeOnly:()=>Hs,isShallow:()=>en,isVNode:()=>us,markRaw:()=>nn,mergeDefaults:()=>Aa,mergeModels:()=>ja,mergeProps:()=>ws,nextTick:()=>Jn,nodeOps:()=>fc,normalizeClass:()=>j,normalizeProps:()=>ve,normalizeStyle:()=>pe,onActivated:()=>Li,onBeforeMount:()=>Gi,onBeforeUnmount:()=>Yi,onBeforeUpdate:()=>qi,onDeactivated:()=>Ri,onErrorCaptured:()=>ea,onMounted:()=>Ki,onRenderTracked:()=>$i,onRenderTriggered:()=>Qi,onScopeDispose:()=>Ne,onServerPrefetch:()=>Zi,onUnmounted:()=>Xi,onUpdated:()=>Ji,onWatcherCleanup:()=>On,openBlock:()=>G,patchProp:()=>fl,popScopeId:()=>lr,provide:()=>pr,proxyRefs:()=>fn,pushScopeId:()=>cr,queuePostFlushCb:()=>Qn,reactive:()=>qt,readonly:()=>Yt,ref:()=>L,registerRuntimeCompiler:()=>Vs,render:()=>cu,renderList:()=>la,renderSlot:()=>da,resolveComponent:()=>ra,resolveDirective:()=>oa,resolveDynamicComponent:()=>aa,resolveFilter:()=>null,resolveTransitionHooks:()=>Yr,setBlockTracking:()=>cs,setDevtoolsHook:()=>rc,setTransitionHooks:()=>Qr,shallowReactive:()=>Jt,shallowReadonly:()=>Xt,shallowRef:()=>on,ssrContextKey:()=>gr,ssrUtils:()=>ic,stop:()=>Ye,toDisplayString:()=>M,toHandlerKey:()=>k,toHandlers:()=>pa,toRaw:()=>F,toRef:()=>vn,toRefs:()=>hn,toValue:()=>un,transformVNodeArgs:()=>fs,triggerRef:()=>ln,unref:()=>R,useAttrs:()=>Da,useCssModule:()=>Sl,useCssVars:()=>Bc,useHost:()=>bl,useId:()=>ei,useModel:()=>$a,useSSRContext:()=>_r,useShadowRoot:()=>xl,useSlots:()=>Ea,useTemplateRef:()=>ni,useTransitionState:()=>Vr,vModelCheckbox:()=>Bl,vModelDynamic:()=>Jl,vModelRadio:()=>Hl,vModelSelect:()=>Ul,vModelText:()=>zl,vShow:()=>Ic,version:()=>$s,warn:()=>ec,watch:()=>xr,watchEffect:()=>vr,watchPostEffect:()=>yr,watchSyncEffect:()=>br,withAsyncContext:()=>Na,withCtx:()=>B,withDefaults:()=>Ta,withDirectives:()=>dr,withKeys:()=>nu,withMemo:()=>Zs,withModifiers:()=>eu,withScopeId:()=>ur}),_u=()=>{},vu=[{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 yu(e,...t){for(let n of t){let t=e.find(e=>e.name===n)?.value;if(t)return t}return``}function bu(e,t=!1){let n=e.tags,r=yu(n,`og:url`)||e.url,i=r;try{i=new URL(r).hostname}catch{}return{title:t?yu(n,`twitter:title`,`og:title`,`title`):yu(n,`og:title`,`title`),description:t?yu(n,`twitter:description`,`og:description`,`description`):yu(n,`og:description`,`description`),image:t?yu(n,`twitter:image`,`og:image`):yu(n,`og:image`),imageAlt:t?yu(n,`twitter:image:alt`,`og:image:alt`):yu(n,`og:image:alt`),url:r,hostname:i,favicon:yu(n,`icon`),twitterCard:yu(n,`twitter:card`)||`summary_large_image`}}function xu(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 Su={class:`border border-base rounded-lg overflow-hidden bg-base`},Cu={class:`flex items-center gap-2 border-b border-base bg-secondary px3 py2`},wu={class:`ml-auto color-muted font-mono text-xs tabular-nums`},Tu={key:0,class:`divide-y divide-base`},Eu=[`href`],Du={key:1,class:`min-w-0 truncate color-muted font-mono text-xs`},Ou=[`href`],ku={key:3,class:`min-w-0 break-words color-base text-xs`},Au={key:1,class:`px4 py8 text-center color-muted text-sm`},ju=V({__name:`MetadataTable`,props:{tags:{}},setup(e){let t=new Map(vu.map(e=>[e.name,e.docs]));function n(e){return/^https?:\/\//i.test(e)}return(r,i)=>(G(),K(`section`,Su,[J(`header`,Cu,[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`,wu,M(e.tags.length),1)]),e.tags.length?(G(),K(`div`,Tu,[(G(!0),K(U,null,la(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,Eu)):(G(),K(`span`,Du,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,Ou)):(G(),K(`span`,ku,M(e.value),1))]))),128))])):(G(),K(`div`,Au,` No supported head metadata was found. `))]))}}),Mu=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))}}),Nu=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`:`btn-primary`:t.variant===`text`?a.value?`btn-text text-sm`:`btn-text`:a.value?`btn-action-sm`:`btn-action`),s=Z(()=>t.disabled||t.loading);return(t,a)=>(G(),q(aa(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(Mu,{key:0,size:`1em`})):e.icon?(G(),K(`span`,{key:1,class:j(e.icon),"aria-hidden":`true`},null,2)):bs(``,!0),da(t.$slots,`default`)]),_:3},8,[`class`,`href`,`to`,`disabled`,`aria-disabled`,`aria-busy`]))}});function Pu(e){return typeof e==`string`?`'${e}'`:new Ru().serialize(e)}var Fu=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,Iu=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[Fu.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function Lu(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;i++){let n=e.charCodeAt(i),a=t.charCodeAt(i);if(n===a)continue;let o=n<128&&Iu[n]?Iu[n]:n+128,s=a<128&&Iu[a]?Iu[a]:a+128;if(o!==s)return o<s?-1:1;r===0&&(r=n>a?-1:1)}return e.length===t.length?r:e.length<t.length?-1:1}var Ru=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?Lu(e,t):n===`number`&&r===`number`?e-t:Lu(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(`toJSON`in e&&typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}let i=Object.keys(e).sort(Lu),a=`${r}{`;for(let t=0;t<i.length;t++){let n=i[t];a+=`${n}:${this.serialize(e[n])}`,t<i.length-1&&(a+=`,`)}return a+`}`}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})(),zu=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],Bu=[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],Vu=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,Hu=[],Uu=class{_data=new Wu;_hash=new Wu([...zu]);_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)Hu[n]=e[t+n]|0;else{let e=Hu[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=Hu[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;Hu[n]=t+Hu[n-7]+i+Hu[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+Bu[n]+Hu[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=Wu.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 Wu(t,i)}},Wu=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(Vu.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 Gu(e){return new Uu().finalize(e).toBase64()}function Ku(e){return Gu(Pu(e))}function qu(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n);return[t=>{let n=mr(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=>(pr(r,e),e)]}function Ju(){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 Yu(e,t){return Me()?(Ne(e,t),!0):!1}var Xu=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Zu=e=>e!==void 0,Qu=Xu?window:void 0;Xu&&window.document,Xu&&window.navigator,Xu&&window.location;function $u(e){let t=un(e);return t?.$el??t}function ed(){let e=on(!1),t=X();return t&&Ki(()=>{e.value=!0},t),e}function td(e){let t=ed();return Z(()=>(t.value,!!e()))}function nd(e){return JSON.parse(JSON.stringify(e))}function rd(e,t,n={}){let{window:r=Qu,...i}=n,a,o=td(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=xr(Z(()=>{let t=un(e);return Array.isArray(t)?t.map(e=>$u(e)):[$u(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 Yu(l),{isSupported:o,stop:l}}function id(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):nd(e):e,g=()=>Zu(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 xr(()=>e[t],e=>{r||(r=!0,n.value=h(e),Jn(()=>r=!1))}),xr(n,n=>{!r&&(n!==e[t]||l)&&_(n)},{deep:l}),n}return Z({get(){return g()},set(e){_(e)}})}function ad(e){return e?e.flatMap(e=>e.type===U?ad(e.children):[e]):[]}var[od,sd]=qu(`ConfigProvider`);function cd(e){let t=od({dir:L(`ltr`)});return Z(()=>e?.value||t.dir?.value||`ltr`)}function ld(){let e=X(),t=L(),n=Z(()=>r());Ji(()=>{n.value!==r()&&ln(t)});function r(){return t.value&&`$el`in t.value&&[`#text`,`#comment`].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:$u(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 ud=0;function dd(e,t=`reka`){if(e)return e;let n,r=od({useId:void 0});return n=r.useId?r.useId():`useId`in gu?ei?.():`${++ud}`,t?`${t}-${n}`:n}function fd(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 pd(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}=fd(a,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),u=e=>{if(Xu){let n=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(n)}};xr(e,async(e,i)=>{let a=i!==e;if(await Jn(),a){let a=r.value,o=md(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=md(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=md(t.value))},p=xr(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=xr(c,()=>{let e=md(t.value);r.value=c.value===`mounted`?e:`none`});return Xi(()=>{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 md(e){return e&&getComputedStyle(e).animationName||`none`}var hd=V({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){let{present:r,forceMount:i}=hn(e),a=L(),{isPresent:o}=pd(r,a);n({present:o});let s=t.default({present:o.value});s=ad(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?Ys(t.default({present:o.value})[0],{ref:e=>{let t=$u(e);return t?.hasAttribute===void 0||(t?.hasAttribute(`data-reka-popper-content-wrapper`)?a.value=t.firstElementChild:a.value=t),t}}):null}}),gd=V({name:`PrimitiveSlot`,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=ad(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?ws(t,i.props):t,o=_s({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),_d=[`area`,`img`,`input`],vd=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`&&_d.includes(r)?()=>Ys(r,t):r===`template`?()=>Ys(gd,t,{default:n.default}):()=>Ys(e.as,t,{default:n.default})}});function yd(){let e=L();return{primitiveElement:e,currentElement:Z(()=>[`#text`,`#comment`].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:$u(e))}}var bd=`data-reka-collection-item`;function xd(e={}){let{key:t=``,isProvider:n=!1}=e,r=`${t}CollectionProvider`,i;n?(i={collectionRef:L(),itemMap:L(new Map)},pr(r,i)):i=mr(r);let a=(e=!1)=>{let t=i.collectionRef.value;if(!t)return[];let n=Array.from(t.querySelectorAll(`[${bd}]`)),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}=yd();return xr(a,()=>{i.collectionRef.value=a.value}),()=>Ys(gd,{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}=yd();return vr(t=>{if(a.value){let n=nn(a.value);i.itemMap.value.set(n,{ref:a.value,value:e.value}),t(()=>i.itemMap.value.delete(n))}}),()=>Ys(gd,{...n,[bd]:``,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 Sd=`rovingFocusGroup.onEntryFocus`,Cd={bubbles:!1,cancelable:!0},wd={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Td(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Ed(e,t,n){let r=Td(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return wd[r]}function Dd(e,t=!1){let n=Ju();for(let r of e)if(r===n||(r.focus({preventScroll:t}),Ju()!==n))return}function Od(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var[kd,Ad]=qu(`RovingFocusGroup`),jd=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}=hn(r),c=cd(s),l=id(r,`currentTabStopId`,i,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),u=L(!1),d=L(!1),f=L(0),{getItems:p,CollectionSlot:m}=xd({isProvider:!0});function h(e){let t=!d.value;if(e.currentTarget&&e.target===e.currentTarget&&t&&!u.value){let t=new CustomEvent(Sd,Cd);if(e.currentTarget.dispatchEvent(t),i(`entryFocus`,t),!t.defaultPrevented){let e=p().map(e=>e.ref).filter(e=>e.dataset.disabled!==``);Dd([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}),Ad({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(vd),{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(()=>[da(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`as`,`as-child`,`dir`])]),_:3}))}}),Md=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=kd(),r=dd(),i=Z(()=>t.tabStopId||r),a=Z(()=>n.currentTabStopId.value===i.value),{getItems:o,CollectionItem:s}=xd();Ki(()=>{t.focusable&&n.onFocusableItemAdd()}),Xi(()=>{t.focusable&&n.onFocusableItemRemove()}),xr(()=>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=Ed(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?Od(i,t+1):i.slice(t+1)}Jn(()=>Dd(i))}}return(e,t)=>(G(),q(R(s),null,{default:B(()=>[Y(R(vd),{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(()=>[da(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`data-active`,`data-disabled`,`as`,`as-child`])]),_:3}))}}),[Nd,Pd]=qu(`TabsRoot`),Fd=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}=hn(n),s=cd(o);ld();let c=id(n,`modelValue`,r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),l=L(),u=on(new Set);return Pd({modelValue:c,changeModelValue:e=>{c.value=e},orientation:i,dir:s,unmountOnHide:a,activationMode:n.activationMode,baseId:dd(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(vd),{dir:R(s),"data-orientation":R(i),"as-child":e.asChild,as:e.as},{default:B(()=>[da(e.$slots,`default`,{modelValue:R(c)})]),_:3},8,[`dir`,`data-orientation`,`as-child`,`as`]))}});function Id(e,t){return`${e}-trigger-${t}`}function Ld(e,t){return`${e}-content-${t}`}var Rd=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}=ld(),r=Nd(),i=Z(()=>Id(r.baseId,t.value)),a=Z(()=>Ld(r.baseId,t.value)),o=Z(()=>t.value===r.modelValue.value),s=L(o.value);return Ki(()=>{r.registerContent(t.value),requestAnimationFrame(()=>{s.value=!1})}),Yi(()=>{r.unregisterContent(t.value)}),(e,t)=>(G(),q(R(hd),{present:e.forceMount||o.value,"force-mount":``},{default:B(({present:t})=>[Y(R(vd),{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?da(e.$slots,`default`,{key:0}):bs(`v-if`,!0)]),_:2},1032,[`id`,`as-child`,`as`,`data-state`,`data-orientation`,`aria-labelledby`,`hidden`,`style`])]),_:3},8,[`present`]))}}),zd=V({__name:`TabsIndicator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e,{expose:t}){let n=e,r=Nd();t({updateIndicatorStyle:s}),ld();let i=ed(),a=L({size:null,thickness:null,position:null}),o=L([]);xr(()=>[r.modelValue.value,r?.dir.value],()=>{s()},{immediate:!0,flush:`post`}),yr(()=>{o.value=Array.from(r.tabsList.value?.querySelectorAll(`[role="tab"]`)||[])}),rd(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(vd),ws({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(()=>[da(e.$slots,`default`)]),_:3},16,[`style`])):bs(`v-if`,!0)}}),Bd=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}=hn(e),{forwardRef:n,currentElement:r}=ld(),i=Nd();return i.tabsList=r,(e,r)=>(G(),q(R(jd),{"as-child":``,orientation:R(i).orientation.value,dir:R(i).dir.value,loop:R(t)},{default:B(()=>[Y(R(vd),{ref:R(n),role:`tablist`,"as-child":e.asChild,as:e.as,"aria-orientation":R(i).orientation.value},{default:B(()=>[da(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`aria-orientation`])]),_:3},8,[`orientation`,`dir`,`loop`]))}}),Vd=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}=ld(),r=Nd(),i=Z(()=>Id(r.baseId,t.value)),a=Z(()=>r.contentIds.value.has(t.value)?Ld(r.baseId,t.value):void 0),o=Z(()=>t.value===r.modelValue.value);return(e,t)=>(G(),q(R(Md),{"as-child":``,focusable:!e.disabled,active:o.value},{default:B(()=>[Y(R(vd),{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]||=eu(t=>{!e.disabled&&t.ctrlKey===!1?R(r).changeModelValue(e.value):t.preventDefault()},[`left`]),onKeydown:t[1]||=nu(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(()=>[da(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`]))}}),Hd={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`},Ud=V({__name:`LayoutTabs`,props:ja({tabs:{},variant:{default:`underline`},lazy:{type:Boolean,default:!0}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=$a(e,`modelValue`);return(n,r)=>(G(),q(R(Fd),{modelValue:t.value,"onUpdate:modelValue":r[0]||=e=>t.value=e,class:j(e.variant===`segment`?``:`border-b border-base`)},{default:B(()=>[Y(R(Bd),{class:j([`flex items-center relative`,e.variant===`segment`?`gap-1 p-1 rounded-lg bg-sunken w-max`:`gap-1`])},{default:B(()=>[(G(!0),K(U,null,la(e.tabs,t=>(G(),q(R(Vd),{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-raised 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)):bs(``,!0),vs(` `+M(t.label??t.value)+` `,1),t.count==null?bs(``,!0):(G(),K(`span`,Hd,M(t.count),1))]),_:2},1032,[`value`,`as`,`href`,`disabled`,`class`]))),128)),e.variant===`underline`?(G(),q(R(zd),{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`})):bs(``,!0)]),_:1},8,[`class`]),da(n.$slots,`default`),(G(!0),K(U,null,la(e.tabs,t=>(G(),K(U,{key:`panel-${t.value}`},[n.$slots[t.value]?(G(),q(R(Rd),{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(()=>[da(n.$slots,t.value)]),_:2},1032,[`value`,`force-mount`])):bs(``,!0)],64))),128))]),_:3},8,[`modelValue`,`class`]))}}),Wd={key:0,class:`border border-base rounded-lg overflow-hidden bg-base`},Gd={class:`flex flex-wrap items-center gap-2 border-b border-base bg-secondary px3 py2`},Kd={class:`color-muted text-xs`},qd={key:0,class:`divide-y divide-base`},Jd=[`href`],Yd={key:1,class:`font-mono text-xs color-active`},Xd={class:`color-muted text-xs`},Zd={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`},$d={class:`m0 overflow-auto rounded bg-secondary p3 color-base font-mono text-xs leading-relaxed`},ef=V({__name:`MissingTags`,props:{tags:{}},setup(e){let t=e,n=on(`missing`),r=on(!1),i=[{value:`missing`,label:`Missing tags`},{value:`snippet`,label:`Nuxt snippet`}],a=Z(()=>vu.filter(e=>!t.tags.some(t=>t.name===e.name))),o=Z(()=>xu(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`,Wd,[J(`header`,Gd,[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`,Kd,M(a.value.length)+` missing`,1),Y(Ud,{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`,qd,[(G(!0),K(U,null,la(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,Jd)):(G(),K(`span`,Yd,M(e.name),1)),J(`span`,Xd,M(e.description),1),J(`span`,Zd,M(e.suggestion),1)]))),128))])):(G(),K(`div`,Qd,[J(`pre`,$d,[J(`code`,null,M(o.value),1)]),Y(Nu,{class:`absolute right5 top5`,size:`sm`,icon:r.value?`i-ph-check-duotone`:`i-ph-copy-duotone`,onClick:s},{default:B(()=>[vs(M(r.value?`Copied`:`Copy`),1)]),_:1},8,[`icon`])]))])):bs(``,!0)}}),tf=[`src`,`alt`],nf=V({__name:`PreviewImage`,props:{src:{},alt:{},class:{}},setup(e){let t=e,n=on(!1);return xr(()=>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,tf)):(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))}}),rf={class:`w-full max-w-125 bg-base`},af={class:`border border-t-0 border-base bg-secondary px3 py2.5`},of={class:`truncate color-muted text-xs uppercase`},sf={class:`my1 truncate text-base font-semibold`},cf={class:`m0 truncate color-muted text-sm`},lf=V({__name:`FacebookPreview`,props:{card:{}},setup(e){return(t,n)=>(G(),K(`article`,rf,[Y(nf,{src:e.card.image,alt:e.card.imageAlt,class:`aspect-1.91/1 w-full`},null,8,[`src`,`alt`]),J(`div`,af,[J(`div`,of,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)])]))}}),uf={class:`w-full max-w-125 overflow-hidden border border-base rounded-sm bg-base shadow-sm`},df={class:`p3`},ff={class:`m0 truncate text-base font-semibold`},pf={class:`mt1 truncate color-muted text-xs`},mf=V({__name:`LinkedinPreview`,props:{card:{}},setup(e){return(t,n)=>(G(),K(`article`,uf,[Y(nf,{src:e.card.image,alt:e.card.imageAlt,class:`aspect-1.91/1 w-full`},null,8,[`src`,`alt`]),J(`div`,df,[J(`h3`,ff,M(e.card.title||`Untitled page`),1),J(`div`,pf,M(e.card.hostname),1)])]))}}),hf={class:`w-full max-w-105 border border-base rounded-4 rounded-bl-sm bg-base p3 shadow-sm`},gf=[`href`],_f={class:`mt2 grid grid-cols-[2px_1fr] gap-2`},vf={class:`min-w-0`},yf={class:`color-active text-sm font-semibold`},bf={class:`my1 text-sm font-semibold`},xf={class:`m0 color-muted text-sm`},Sf={class:`mt1 text-right color-faint font-mono text-2.5 tabular-nums`},Cf=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`,hf,[J(`a`,{href:e.card.url,target:`_blank`,rel:`noreferrer`,class:`block truncate color-active text-sm underline`},M(e.card.url),9,gf),J(`div`,_f,[r[0]||=J(`div`,{class:`rounded bg-primary op70`},null,-1),J(`div`,vf,[Y(nf,{src:e.card.image,alt:e.card.imageAlt,class:`mb2 aspect-1.91/1 w-full rounded`},null,8,[`src`,`alt`]),J(`div`,yf,M(e.card.hostname),1),J(`h3`,bf,M(e.card.title||`Untitled page`),1),J(`p`,xf,M(e.card.description||`No description provided.`),1)])]),J(`div`,Sf,M(R(t)),1)]))}}),wf={key:0,class:`w-full max-w-110 overflow-hidden border border-base rounded-4 bg-base`},Tf={class:`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={key:1,class:`w-full max-w-110 flex overflow-hidden border border-base rounded-4 bg-base`},Af={class:`min-w-0 flex flex-col justify-center p3`},jf={class:`truncate color-muted text-xs lowercase`},Mf={class:`my1 truncate text-sm font-semibold`},Nf={class:`m0 line-clamp-2 color-muted text-sm`},Pf=V({__name:`TwitterPreview`,props:{card:{}},setup(e){return(t,n)=>e.card.twitterCard===`summary`?(G(),K(`article`,kf,[Y(nf,{src:e.card.image,alt:e.card.imageAlt,class:`aspect-square w-32 shrink-0`},null,8,[`src`,`alt`]),J(`div`,Af,[J(`div`,jf,M(e.card.hostname),1),J(`h3`,Mf,M(e.card.title||`Untitled page`),1),J(`p`,Nf,M(e.card.description||`No description provided.`),1)])])):(G(),K(`article`,wf,[Y(nf,{src:e.card.image,alt:e.card.imageAlt,class:`aspect-2/1 w-full`},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)])]))}}),Ff={class:`h-full min-h-100 flex flex-col border border-base rounded-lg overflow-hidden bg-base`},If={class:`flex flex-wrap items-center gap-2 border-b border-base bg-secondary px3 py2`},Lf={class:`preview-grid flex flex-1 items-center justify-center overflow-auto p5`},Rf=V({__name:`SocialPreview`,props:{snapshot:{}},setup(e){let t=e,n=on(`twitter`),r=Z(()=>bu(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`,Ff,[J(`header`,If,[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(Ud,{modelValue:n.value,"onUpdate:modelValue":t[0]||=e=>n.value=e,tabs:i,variant:`segment`,class:`ml-auto`},null,8,[`modelValue`])]),J(`div`,Lf,[n.value===`twitter`?(G(),q(Pf,{key:0,card:r.value},null,8,[`card`])):n.value===`facebook`?(G(),q(lf,{key:1,card:r.value},null,8,[`card`])):n.value===`linkedin`?(G(),q(mf,{key:2,card:r.value},null,8,[`card`])):(G(),q(Cf,{key:3,card:r.value},null,8,[`card`]))])]))}}),zf={key:0,class:`flex-1 min-w-0`},Bf={key:1,class:`flex gap-1 items-center`},Vf=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`]])},[da(t.$slots,`start`,{},()=>[da(t.$slots,`default`)]),t.$slots.search?(G(),K(`div`,zf,[da(t.$slots,`search`)])):bs(``,!0),t.$slots.end?(G(),K(`div`,Bf,[da(t.$slots,`end`)])):bs(``,!0)],2))}}),Hf={class:`flex items-center gap-1.5 shrink-0 font-semibold text-sm select-none`},Uf={key:0,class:`rounded bg-secondary px1.5 py0.5 color-muted text-2.5 font-normal`},Wf={class:`min-w-0 flex flex-1 items-center gap-2 border border-base rounded px3 py1.5 focus-within:border-active`},Gf=[`disabled`],Kf=V({__name:`ViewerToolbar`,props:ja({loading:{type:Boolean},isStatic:{type:Boolean}},{target:{required:!0},targetModifiers:{}}),emits:ja([`inspect`],[`update:target`]),setup(e,{emit:t}){let n=t,r=$a(e,`target`);return(t,i)=>(G(),q(Vf,{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]||=eu(e=>n(`inspect`),[`prevent`])},[J(`label`,Wf,[i[4]||=J(`span`,{class:`i-ph-globe-hemisphere-west-duotone color-muted shrink-0`},null,-1),dr(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,Gf),[[zl,r.value]])]),Y(Nu,{variant:`primary`,loading:e.loading,disabled:e.isStatic,icon:`i-ph-magnifying-glass-duotone`,type:`submit`},{default:B(()=>[...i[5]||=[vs(` Inspect `,-1)]]),_:1},8,[`loading`,`disabled`])],32)]),default:B(()=>[J(`div`,Hf,[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`,Uf,`static`)):bs(``,!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`},inPageChannel:{panelStateUpdated:`devframe:in-page:panel-state:updated`,panelStatePatch:`devframe:in-page:panel-state:patch`},postMessage:{remoteAssetsError:`devframe:remote-assets-error`,inPageChannel:`devframe:in-page-channel`}},qf=`__connection.json`,Jf=`__DEVFRAME_CONNECTION__`,Yf=`x-birpc-session`,Xf=`__rpc-dump/index.json`,Zf=`devframe:services`,Qf=`devframe_otp`,$f=`devframe_auth_token`;Q.postMessage.remoteAssetsError;function ep(e){return Ku(e)}var tp=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(e=>ep(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 np(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 rp={blue:np(34,39),cyan:np(36,39),gray:np(90,39),green:np(32,39),red:np(31,39),yellow:np(33,39),bold:np(1,22),dim:np(2,22),reset:np(0,0),underline:np(4,24)};function ip(e,...t){return typeof e==`function`?e(...t):e}var ap=Error.captureStackTrace,op=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,ap?.(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 sp(e,t){return typeof e==`string`?`${e}/${t.toLowerCase()}`:e?.(t)}function cp(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||sp(r,i),s=(e={},n={})=>{let r=new op({code:i,why:ip(a.why,e),fix:ip(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 lp(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 up=lp(rp);function dp(e,{method:t=`warn`}={}){console[t](up(e))}function fp(e){return cp({...e,reporters:[dp,...e.reporters??[]]})}var pp=fp({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 mp(e,t){let n=e[`~standard`].validate(t);return n instanceof Promise?await n:n}function hp(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 gp(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 mp(i,n[r]);if(a.issues)throw pp.DF0043({name:e,index:r,issues:hp(a.issues)})}return r}async function _p(e,t,n){if(!t)return n;let r=await mp(t,n);if(r.issues)throw pp.DF0044({name:e,issues:hp(r.issues)});return n}async function vp(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 yp(e,t){let n=e.handler;if(!n){let r=await vp(e,t);if(!r.handler)throw pp.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 gp(e.name,r,t),o=await a(...n);return await _p(e.name,i,o)}}var bp=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 yp(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 pp.DF0021({name:e.name});xp(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 pp.DF0022({name:e.name});xp(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 yp(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw pp.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 xp(e){if(e.agent&&e.jsonSerializable!==!0)throw pp.DF0019({name:e.name})}function Sp(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 wp(t,`undefined`,r,e);return n}return i!==null&&Cp(i,r,e,t),n})}function Cp(e,t,n,r){if(typeof e==`bigint`)throw wp(r,`BigInt`,t,n);if(typeof e!=`object`)return;if(e instanceof Map)throw wp(r,`Map`,t,n);if(e instanceof Set)throw wp(r,`Set`,t,n);if(e instanceof Date)throw wp(r,`Date`,t,n);if(Array.isArray(e))return;let i=Object.getPrototypeOf(e);if(i!==null&&i!==Object.prototype)throw wp(r,e.constructor?.name??`class instance`,t,n)}function wp(e,t,n,r){let i=Tp(n,r);return pp.DF0020({name:e||`<anonymous>`,type:t,path:i})}function Tp(e,t){return Array.isArray(e)?`[${t}]`:t===``?`<root>`:t}function Ep(){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 Dp=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Op=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,kp=/^([/\\]\s*){2,}[^/\\]/,Ap=/\/$|\/\?|\/#/,jp=/^\.?\//;function Mp(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?Dp.test(e):Op.test(e)||(t.acceptRelative?kp.test(e):!1)}function Np(e=``,t){return t?Ap.test(e):e.endsWith(`/`)}function Pp(e=``,t){if(!t)return(Np(e)?e.slice(0,-1):e)||`/`;if(!Np(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 Fp(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(Np(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 Ip(e,t){if(Lp(t)||Mp(e))return e;let n=Pp(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return zp(n,e)}function Lp(e){return!e||e===`/`}function Rp(e){return e&&e!==`/`}function zp(e,...t){let n=e||``;for(let e of t.filter(e=>Rp(e)))if(n){let t=e.replace(jp,``);n=Fp(n)+t}else n=e;return n}function Bp(e,t){let n=e.match(Op);return n||=e.match(/^\/{2,}/),n?t+e.slice(n[0].length):t+e}var Vp=`__DEVFRAME_CONNECTION_META__`,Hp=`__DEVFRAME_CONNECTION_AUTH_TOKEN__`;function Up(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 Wp(){return Up(Jf)}function Gp(){return Up(Vp)}function Kp(e){if(e)return e;try{let e=localStorage.getItem(Hp);if(e)return e}catch{}return Up(Hp)}function qp(e){globalThis[Jf]=e,globalThis[Vp]={...e.connectionMeta,baseUrl:e.metaBaseUrl},e.authToken&&Jp(e.authToken)}function Jp(e){try{localStorage.setItem(Hp,e)}catch{}globalThis[Hp]=e;let t=Wp();t&&(globalThis[Jf]={...t,authToken:e})}function Yp(e){let t=Ip(qf,e);try{return new URL(t,globalThis.location?.href).href}catch{return t}}function Xp(e,t){return t&&t!==e.authToken?{...e,authToken:t}:e}function Zp(){let e=Wp();if(e)return Xp(e,Kp()??e.authToken??e.connectionMeta.authToken);let t=Gp();if(t)return{connectionMeta:t,metaBaseUrl:t.baseUrl??Yp(`./`),authToken:Kp(t.authToken)}}async function Qp(e={}){if(e.connection){let t=Xp(e.connection,Kp(e.authToken??e.connection.authToken??e.connection.connectionMeta.authToken));return qp(t),t}let t=Array.isArray(e.baseURL)?e.baseURL:[e.baseURL??`./`];if(e.connectionMeta){let n={connectionMeta:e.connectionMeta,metaBaseUrl:Yp(t[0]??`./`),authToken:Kp(e.authToken??e.connectionMeta.authToken)};return qp(n),n}let n=Zp();if(n){let t=Xp(n,Kp(e.authToken??n.authToken??n.connectionMeta.authToken));return qp(t),t}let r=[];for(let n of t){let t=Ip(qf,n),i=Yp(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=n.url||i,o={connectionMeta:r,metaBaseUrl:r.baseUrl?new URL(r.baseUrl,a).href:a,authToken:Kp(e.authToken??r.authToken)};return qp(o),o}catch(e){r.push(e)}}throw Error(`Failed to get connection meta from ${t.join(`, `)}`,{cause:r})}var $p=class extends Error{name=`DevframeConnectionError`;kind;constructor(e,t,n){super(t,n),this.kind=e}};function em(e=Qf){try{let t=globalThis.location?.hash?.replace(/^#/,``)??``;return new URLSearchParams(t).get(e)||void 0}catch{return}}function tm(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 nm(e=Qf){let t=em(e);return t&&tm(e),t}async function rm(e,t={}){let n=nm(t.param??`devframe_otp`);return n?e.isTrusted?!0:e.requestTrustWithCode(n):!1}function im(e){let t={},n=new WeakMap,r,i=()=>(r??=e.sharedState.get(Zf,{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 am=Symbol.for(`immer-nothing`),om=Symbol.for(`immer-draftable`),$=Symbol.for(`immer-state`);function sm(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var cm=Object,lm=cm.getPrototypeOf,um=`constructor`,dm=`prototype`,fm=`configurable`,pm=`enumerable`,mm=`writable`,hm=`value`,gm=e=>!!e&&!!e[$];function _m(e){return e?bm(e)||Dm(e)||!!e[om]||!!e[um]?.[om]||Om(e)||km(e):!1}var vm=cm[dm][um].toString(),ym=new WeakMap;function bm(e){if(!e||!Am(e))return!1;let t=lm(e);if(t===null||t===cm[dm])return!0;let n=cm.hasOwnProperty.call(t,um)&&t[um];if(n===Object)return!0;if(!jm(n))return!1;let r=ym.get(n);return r===void 0&&(r=Function.toString.call(n),ym.set(n,r)),r===vm}function xm(e,t,n=!0){Sm(e)===0?(n?Reflect.ownKeys(e):cm.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Sm(e){let t=e[$];return t?t.type_:Dm(e)?1:Om(e)?2:km(e)?3:0}var Cm=(e,t,n=Sm(e))=>n===2?e.has(t):cm[dm].hasOwnProperty.call(e,t),wm=(e,t,n=Sm(e))=>n===2?e.get(t):e[t],Tm=(e,t,n,r=Sm(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Em(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Dm=Array.isArray,Om=e=>e instanceof Map,km=e=>e instanceof Set,Am=e=>typeof e==`object`,jm=e=>typeof e==`function`,Mm=e=>typeof e==`boolean`;function Nm(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Pm=e=>Am(e)?e?.[$]:null,Fm=e=>e.copy_||e.base_,Im=e=>e.modified_?e.copy_:e.base_;function Lm(e,t){if(Om(e))return new Map(e);if(km(e))return new Set(e);if(Dm(e))return Array[dm].slice.call(e);let n=bm(e);if(t===!0||t===`class_only`&&!n){let t=cm.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[mm]===!1&&(a[mm]=!0,a[fm]=!0),(a.get||a.set)&&(t[i]={[fm]:!0,[mm]:!0,[pm]:a[pm],[hm]:e[i]})}return cm.create(lm(e),t)}{let t=lm(e);if(t!==null&&n)return{...e};let r=cm.create(t);return cm.assign(r,e)}}function Rm(e,t=!1){return Vm(e)||gm(e)||!_m(e)?e:(Sm(e)>1&&cm.defineProperties(e,{set:Bm,add:Bm,clear:Bm,delete:Bm}),cm.freeze(e),t&&xm(e,(e,t)=>{Rm(t,!0)},!1),e)}function zm(){sm(2)}var Bm={[hm]:zm};function Vm(e){return e===null||!Am(e)||cm.isFrozen(e)}var Hm=`MapSet`,Um=`Patches`,Wm=`ArrayMethods`,Gm={};function Km(e){let t=Gm[e];return t||sm(0,e),t}var qm=e=>!!Gm[e];function Jm(e,t){Gm[e]||(Gm[e]=t)}var Ym,Xm=()=>Ym,Zm=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:qm(Hm)?Km(Hm):void 0,arrayMethodsPlugin_:qm(Wm)?Km(Wm):void 0});function Qm(e,t){t&&(e.patchPlugin_=Km(Um),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function $m(e){eh(e),e.drafts_.forEach(nh),e.drafts_=null}function eh(e){e===Ym&&(Ym=e.parent_)}var th=e=>Ym=Zm(Ym,e);function nh(e){let t=e[$];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function rh(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[$].modified_&&($m(t),sm(4)),_m(e)&&(e=ih(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[$].base_,e,t)}else e=ih(t,n);return ah(t,e,!0),$m(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===am?void 0:e}function ih(e,t){if(Vm(t))return t;let n=t[$];if(!n)return ph(t,e.handledSet_,e);if(!sh(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);dh(n,e)}return n.copy_}function ah(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Rm(t,n)}function oh(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var sh=(e,t)=>e.scope_===t,ch=[];function lh(e,t,n,r){let i=Fm(e),a=e.type_;if(r!==void 0&&wm(i,r,a)===t){Tm(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;xm(i,(e,n)=>{if(gm(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??ch;for(let e of o)Tm(i,e,n,a)}function uh(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!sh(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=Im(i);lh(e,i.draft_??i,a,n),dh(i,r)})}function dh(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)}oh(e)}}function fh(e,t,n){let{scope_:r}=e;if(gm(n)){let i=n[$];sh(i,r)&&i.callbacks_.push(function(){Sh(e),lh(e,n,Im(i),t)})}else _m(n)&&e.callbacks_.push(function(){let i=Fm(e);e.type_===3?i.has(n)&&ph(n,r.handledSet_,r):wm(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ph(wm(e.copy_,t,e.type_),r.handledSet_,r)})}function ph(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||gm(e)||t.has(e)||!_m(e)||Vm(e)?e:(t.add(e),xm(e,(r,i)=>{if(gm(i)){let t=i[$];sh(t,n)&&(Tm(e,r,Im(t),e.type_),oh(t))}else _m(i)&&ph(i,t,n)}),e)}function mh(e,t){let n=Dm(e),r={type_:+!!n,scope_:t?t.scope_:Xm(),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=hh;n&&(i=[r],a=gh);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var hh={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=Fm(e);if(!Cm(i,t,e.type_))return yh(e,i,t);let a=i[t];if(e.finalized_||!_m(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Nm(t))return a;if(a===_h(e.base_,t)||vh(e,t,a)){Sh(e);let n=e.type_===1?+t:t,r=wh(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in Fm(e)},ownKeys(e){return Reflect.ownKeys(Fm(e))},set(e,t,n){let r=bh(Fm(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=_h(Fm(e),t),i=r?.[$];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Em(n,r)&&(n!==void 0||Cm(e.base_,t,e.type_)))return!0;Sh(e),xh(e)}return e.copy_[t]===n&&(n!==void 0||Cm(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),fh(e,t,n),!0)},deleteProperty(e,t){return Sh(e),_h(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),xh(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=Fm(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[mm]:!0,[fm]:e.type_!==1||t!==`length`,[pm]:r[pm],[hm]:n[t]}},defineProperty(){sm(11)},getPrototypeOf(e){return lm(e.base_)},setPrototypeOf(){sm(12)}},gh={};for(let e in hh){let t=hh[e];gh[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}gh.deleteProperty=function(e,t){return gh.set.call(this,e,t,void 0)},gh.set=function(e,t,n){return hh.set.call(this,e[0],t,n,e[0])};function _h(e,t){let n=e[$];return(n?Fm(n):e)[t]}function vh(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!_m(n)||n[$]?!1:e.baseRefs_.has(n)}function yh(e,t,n){let r=bh(t,n);return r?hm in r?r[hm]:r.get?.call(e.draft_):void 0}function bh(e,t){if(!(t in e))return;let n=lm(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=lm(n)}}function xh(e){e.modified_||(e.modified_=!0,e.parent_&&xh(e.parent_))}function Sh(e){e.copy_||=(e.assigned_=new Map,Lm(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Ch=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(jm(e)&&!jm(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}jm(t)||sm(6),n!==void 0&&!jm(n)&&sm(7);let r;if(_m(e)){let i=th(this),a=wh(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?$m(i):eh(i)}return Qm(i,n),rh(r,i)}if(!e||!Am(e)){if(r=t(e),r===void 0&&(r=e),r===am&&(r=void 0),this.autoFreeze_&&Rm(r,!0),n){let t=[],i=[];Km(Um).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}sm(1,e)},this.produceWithPatches=(e,t)=>{if(jm(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]},Mm(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Mm(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Mm(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){_m(e)||sm(8),gm(e)&&(e=Th(e));let t=th(this),n=wh(t,e,void 0);return n[$].isManual_=!0,eh(t),n}finishDraft(e,t){let n=e&&e[$];(!n||!n.isManual_)&&sm(9);let{scope_:r}=n;return Qm(r,t),rh(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=Km(Um).applyPatches_;return gm(e)?r(e,t):this.produce(e,e=>r(e,t))}};function wh(e,t,n,r){let[i,a]=Om(t)?Km(Hm).proxyMap_(t,n):km(t)?Km(Hm).proxySet_(t,n):mh(t,n);return(n?.scope_??Xm()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?uh(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 Th(e){return gm(e)||sm(10,e),Eh(e)}function Eh(e){if(!_m(e)||Vm(e))return e;let t=e[$],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Lm(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Lm(e,!0);return xm(n,(e,t)=>{Tm(n,e,Eh(t))},r),t&&(t.finalized_=!1),n}function Dh(){function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=Pm(wm(e,n.key_)),i=wm(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||Cm(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=wm(n,r),!Am(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;xm(e.assigned_,(e,l)=>{let u=wm(o,e,c),f=wm(s,e,c),p=l?Cm(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===am?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=Sm(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===um)&&sm(19),jm(o)&&n===dm&&sm(19),o=wm(o,n),(o===null||!Am(o))&&sm(18,i.join(`/`))}let s=Sm(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:sm(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:sm(17,a)}}),e}function u(e){if(!_m(e))return e;if(Dm(e))return e.map(u);if(Om(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if(km(e))return new Set(Array.from(e).map(u));let t=Object.create(lm(e));for(let n in e)t[n]=u(e[n]);return Cm(e,om)&&(t[om]=e[om]),t}function d(e){return gm(e)?u(e):e}Jm(Um,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}globalThis.Iterator?.from;var Oh=new Ch,kh=Oh.produce,Ah=Oh.produceWithPatches.bind(Oh),jh=Oh.applyPatches.bind(Oh),Mh=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Nh(e=21){let t=``,n=e;for(;n--;)t+=Mh[Math.random()*64|0];return t}var Ph=1e3;function Fh(e,t){if(e.add(t),e.size>Ph){let t=e.values().next().value;t!==void 0&&e.delete(t)}}function Ih(e){let{enablePatches:t=!1}=e;t&&Dh();let n=Ep(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=Nh())=>{i.has(t)||(Dh(),r=jh(r,e),Fh(i,t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=Nh())=>{if(!i.has(a)){if(Fh(i,a),t){let[t,i]=Ah(r,e);if(t===r)return;r=t,n.emit(`updated`,r,i,a)}else{let t=kh(r,e);if(t===r)return;r=t,n.emit(`updated`,r,void 0,a)}}},syncIds:i}}function Lh(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=Ih({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 Rh=typeof self==`object`?self:globalThis,zh=new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]),Bh=new Set([`Boolean`,`Number`,`String`,`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float16Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`]);function Vh(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=zh.has(e)?Rh[e]:void 0;return n(new(r??Rh.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`&&Bh.has(a))return n(new Rh[a](o),i);throw TypeError(`unable to deserialize unsafe or unknown type: ${String(a)}`)};return r}function Hh(e){return Vh(new Map,e)(0)}var Uh=``,{toString:Wh}={},{keys:Gh}=Object;function Kh(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Wh.call(e).slice(8,-1);switch(n){case`Array`:return[1,Uh];case`Object`:return[2,Uh];case`Date`:return[3,Uh];case`RegExp`:return[4,Uh];case`Map`:return[5,Uh];case`Set`:return[6,Uh];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function qh([e,t]){return e===0&&(t===`function`||t===`symbol`)}function Jh(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]=Kh(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 Gh(r))(e||!qh(Kh(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||!(qh(Kh(n))||qh(Kh(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!qh(Kh(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function Yh(e,t={}){let n=[];return Jh(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:Xh,stringify:Zh}=JSON,Qh={json:!0,lossy:!0};function $h(e){return Hh(Xh(e))}function eg(e){return Zh(Yh(e,Qh))}function tg(e){return Hh(e)}function ng(e){return eg(e)}function rg(e){return $h(e)}var ig=new Map;function ag(e=ig){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?Sp(n,r??``):`s:${ng(n)}`},deserialize:e=>{let n=e.startsWith(`s:`)?rg(e.slice(2)):JSON.parse(e);return n.t===`q`&&n.i&&n.m&&t.set(n.i,n.m),n}}}function og(){}function sg(e){let t=e.search(/\n\n|\r\n\r\n/);if(!(t<0))return{frame:e.slice(0,t),rest:e.slice(t+(e[t]===`\r`?4:2))}}function cg(e){let t=`message`,n=[];for(let r of e.split(/\r?\n/))r.startsWith(`:`)||(r.startsWith(`event:`)?t=r.slice(6).trimStart():r.startsWith(`data:`)&&n.push(r.slice(5).replace(/^ /,``)));return{event:t,data:n}}function lg(e){let{onConnected:t=og,onError:n=og,onDisconnected:r=og,definitions:i,fetch:a=globalThis.fetch.bind(globalThis)}=e,o=e.url;e.authToken&&(o=`${o}${o.includes(`?`)?`&`:`?`}${$f}=${encodeURIComponent(e.authToken)}`);let s=ag(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=sg(r);if(!e)break;r=e.rest;let{event:t,data:n}=cg(e.frame);n.length>0&&_(t,n.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`,[Yf]: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 ug(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var dg=Math.random.bind(Math),fg=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function pg(e=21){let t=``,n=e;for(;n--;)t+=fg[dg()*64|0];return t}var mg=6e4,hg=e=>e,gg=hg,{clearTimeout:_g,setTimeout:vg}=globalThis;function yg(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=hg,deserialize:s=gg,resolver:c,bind:l=`rpc`,timeout:u=mg,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}=ug(),_=pg();s.i=_;let v;async function y(n=s){return u>=0&&(v=vg(()=>{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{_g(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&&(_g(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}function bg(e,t){let{channel:n,rpcOptions:r={}}=t;return yg(e,{...n,timeout:-1,...r,proxify:!1})}function xg(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=Promise.withResolvers();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 $p(`connection`,`[devframe] Not connected to the devframe server`,{cause:u??void 0}):l===`unauthorized`?new $p(`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 $p(`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 $p(`connection`,`[devframe] Connection to the devframe server failed`,{cause:e}))},onDisconnected(){l!==`error`&&f(`disconnected`),m(new $p(`connection`,`[devframe] Disconnected from the devframe server`,{cause:u??void 0}))}}),y=bg(a.functions,{channel:v,rpcOptions:o});a.register({name:Q.broadcast.authRevoked,type:`event`,handler:()=>{c=!1;let e=new $p(`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 $p(`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(e={}){await y.$call(`anonymous:devframe:auth:request-code`,{ua:navigator.userAgent,origin:location.origin,...e.reissue?{reissue:!0}:{}})}async function w(){return c?!0:x(b??``)}async function ee(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:w,requestTrustWithToken:x,requestTrustWithCode:S,requestAuthCode:C,ensureTrusted:ee,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 Sg(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 Cg(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},sseOptions:s={},callTimeout:c=0}=e,l=Sg(n.sse,r??`./`,location);return xg({transport:`sse`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>lg({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 wg(e){let{name:t,message:n,cause:r,...i}=e,a=r instanceof Error?r:Tg(r)?wg(r):r,o=a===void 0?Error(n):Error(n,{cause:a});return o.name=t,Object.assign(o,i),o}function Tg(e){return typeof e==`object`&&!!e&&typeof e.message==`string`&&typeof e.name==`string`}function Eg(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function Dg(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function Og(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function kg(e){if(e.error)throw wg(e.error);return e.output}function Ag(e){return e.some(e=>e!=null)}function jg(e){return typeof e==`object`&&e&&`serialization`in e&&`data`in e?e.data:e}function Mg(e,t){let n=new Map,r=new Map;function i(e,t){return t===`structured-clone`&&Array.isArray(e)?tg(e):e}function a(e,t){return i(jg(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 Og(r)?kg(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(Eg(r)){if(Ag(n))throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await o(r)}if(Dg(r)){let e=ep(n),i=r.records[e];if(i)return kg(await s(i,r.serialization));if(r.fallback)return kg(await s(r.fallback,r.serialization));throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(!Ag(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 Ng(e){let t=Mg(await e.fetchJsonFromBases(Xf),e.fetchJsonFromBases);return{transport:`static`,isTrusted:!0,status:`connected`,connectionError:null,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,requestTrustWithCode:async()=>null,requestAuthCode:async()=>{},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 Pg=256,Fg=class extends Error{name=`StreamClosedError`};function Ig(e={}){let t=e.id??Nh(),n=Math.max(0,e.replayWindow??0),r=Ep(),i=new AbortController,a=[],o=!1,s=0;function c(e){if(o)throw new Fg(`Cannot write to a closed stream "${t}"`);s+=1,n>0&&(a.push({seq:s,chunk:e}),a.length>n&&(a.length-n===1?a.shift():a.splice(0,a.length-n))),r.emit(`chunk`,s,e)}function l(e){if(o)return;o=!0;let t=Rg(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 Lg(e={}){let t=e.id??Nh(),n=Math.max(1,e.highWaterMark??Pg),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 Rg(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 zg=``;function Bg(e,t){return`${e}${zg}${t}`}function Vg(e){let t=new Map,n=new Map;e.client.register({name:Q.broadcast.streamingChunk,type:`event`,handler(e,n,r,i){t.get(Bg(e,n))?._push(r,i)}}),e.client.register({name:Q.broadcast.streamingEnd,type:`event`,handler(e,n,r){let i=Bg(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=Bg(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(zg);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=Bg(n,r),o=t.get(a);if(o)return o;let s=Lg({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=Bg(t,r),a=n.get(i);if(a)return a;let o=Ig({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 Hg(){}var Ug=new Map;function Wg(e){let t=e.url;e.authToken&&(t=`${t}?${$f}=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=Hg,onError:i=Hg,onDisconnected:a=Hg,definitions:o=Ug}=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=ag(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 Gg(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 Bp(a,/^https/i.test(a)?`wss://`:`ws://`);let o=new URL(a,r);return o.protocol=i,o.href}function Kg(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},wsOptions:s={},callTimeout:c=0}=e,l=Gg(n.websocket,r??`./`,location);return xg({transport:`websocket`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>Wg({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 qg(e){return e.includes(`:`)}function Jg(e,t){return qg(t)?t:`${e}:${t}`}function Yg(e){return{async get(t){return(await e()).value()[t]},async set(t,n){(await e()).mutate(e=>{e[t]=n})},async delete(t){(await e()).mutate(e=>{delete e[t]})},async all(){return(await e()).value()},async onChange(t){return(await e()).on(`updated`,e=>t(e))}}}function Xg(e,t,n){let r=`devframe:settings:${n}:${t}`,i;function a(){return i||=e.sharedState.get(r,{initialValue:{}}),i}return Yg(a)}function Zg(e,t){return{global:Xg(e,t,`global`),project:Xg(e,t,`project`)}}function Qg(e,t){return{namespace:t,base:e,rpc:{namespace:t,register(n){if(qg(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(Jg(t,n),...r)),callEvent:((n,...r)=>e.callEvent(Jg(t,n),...r)),callOptional:((n,...r)=>e.callOptional(Jg(t,n),...r)),sharedState:((n,r)=>e.sharedState.get(Jg(t,n),r)),streaming:{subscribe:(n,r,i)=>e.streaming.subscribe(Jg(t,n),r,i),upload:(n,r)=>e.streaming.upload(Jg(t,n),r)}},settings:Zg(e,t),scope:e.scope}}var $g=128;function e_(e){return e.replace(/[^\w-]+/g,`_`).slice(0,$g)}var t_=Object.freeze({type:`object`,additionalProperties:!0});function n_(e){let t=e[`~standard`];if(t.jsonSchema)try{return t.jsonSchema.input({target:`draft-2020-12`})}catch{return t_}return t_}function r_(e){if(!e||e.length===0)return{type:`object`,properties:{}};let t={},n=[];for(let r=0;r<e.length;r++){let i=`arg${r}`;t[i]=n_(e[r]),n.push(i)}return{type:`object`,properties:t,required:n,additionalProperties:!1}}function i_(e,t,n=`wrap`){if(Array.isArray(e))return e;if(e==null)return[];if(typeof e==`object`){let n=e;if(t&&t.length)return t.map((e,t)=>n[`arg${t}`]);if(`arg0`in n){let e=[],t=0;for(;`arg${t}`in n;)e.push(n[`arg${t}`]),t++;return e}if(Object.keys(n).length===0)return[]}return n===`drop`?[]:[e]}function a_(){if(typeof document<`u`){let e=document.modelContext;if(e)return e}if(typeof navigator<`u`){let e=navigator.modelContext;if(e)return e}}function o_(e,t={}){let n=t.modelContext??a_();if(!n)return()=>{};let r=n,i=new Map,a=new Map;function o(t,n){let o=e_(t.name),s=a.get(o);if(s&&s!==t.name){console.warn(`[devframe] WebMCP tool name "${o}" (from "${t.name}") collides with "${s}"; keeping the first registration.`);return}let c=new AbortController,l=r.registerTool({name:o,description:n.description,inputSchema:r_(t.args),annotations:{title:n.title??t.name,readOnlyHint:s_(t,n)===`read`,destructiveHint:s_(t,n)===`destructive`},execute:n=>c_(t,e.context,n)},{signal:c.signal});l&&`then`in l&&l.then(()=>{},()=>{}),a.set(o,t.name),i.set(t.name,()=>{c.abort(),l&&`unregister`in l&&typeof l.unregister==`function`&&l.unregister(),a.delete(o)})}function s(t){let n=t?[t]:[...e.definitions.keys()];for(let t of n){i.get(t)?.(),i.delete(t);let n=e.definitions.get(t),r=n?.agent;n&&r&&o(n,r)}}s();let c=e.onChanged(e=>s(e));return()=>{c();for(let e of i.values())e();i.clear()}}function s_(e,t){if(t.safety)return t.safety;let n=e.type??`query`;return n===`static`||n===`query`?`read`:`action`}async function c_(e,t,n){try{let r=i_(n,e.args,`wrap`);return{content:[{type:`text`,text:l_(await(await yp(e,t))(...r))}]}}catch(e){return{isError:!0,content:[{type:`text`,text:u_(e)}]}}}function l_(e){return e===void 0?`undefined`:typeof e==`string`?e:JSON.stringify(e,null,2)}function u_(e){if(!(e instanceof Error))return String(e);let t=e.cause instanceof Error?` (cause: ${e.cause.message})`:``;return`${e.name}: ${e.message}${t}`}function d_(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"), so there is nothing to connect to. Enable the WebSocket or SSE endpoint on the server, or use its static/MCP surfaces instead.`)}async function f_(e={}){let{baseURL:t=`./`,rpcOptions:n={},cacheOptions:r=!1}=e,i=Ep(),a=Array.isArray(t)?t:[t],o=await Qp(e),{connectionMeta:s,metaBaseUrl:c,authToken:l}=o,u=a[0]??`./`;try{u=new URL(`.`,c).href}catch{}let d=new tp({functions:[],...typeof e.cacheOptions==`object`?e.cacheOptions:{}}),f={rpc:void 0},p=new bp(f),m=e.webmcp===!1?void 0:o_(p);async function h(e){let t=[u,...a.filter(e=>e!==u)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(Ip(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 g={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)}}},_=d_(e.transport??`auto`,s),v=_===`static`?await Ng({fetchJsonFromBases:h}):_===`sse`?Cg({...g,sseOptions:e.sseOptions}):Kg({...g,wsOptions:e.wsOptions}),y;try{y=new BroadcastChannel(`devframe-auth`)}catch{}let b,x=!1;function S(e){return((...t)=>x||!b?e(...t):b.then(()=>e(...t)))}let C={events:i,get isTrusted(){return v.isTrusted},get status(){return v.status},get connectionError(){return v.connectionError},get transport(){return v.transport??_},get connection(){return o},connectionMeta:s,ensureTrusted:v.ensureTrusted,requestTrust:v.requestTrust,requestTrustWithToken:async e=>(Jp(e),o={...o,authToken:e},v.requestTrustWithToken(e)),requestTrustWithCode:async e=>{let t=await v.requestTrustWithCode(e);if(!t)return!1;Jp(t),o={...o,authToken:t};try{y?.postMessage({type:`auth-update`,authToken:t})}catch{}return!0},requestAuthCode:e=>v.requestAuthCode(e),call:S(v.call),callEvent:S(v.callEvent),callOptional:S(v.callOptional),client:p,sharedState:void 0,services:void 0,streaming:void 0,cacheManager:d,scope:void 0,close:()=>{m?.(),v.close?.()}};C.sharedState=Lh(C),C.streaming=Vg(C),C.services=im(C);let w=new Map;C.scope=(e=>{if(!e)return C;let t=w.get(e);return t||(t=Qg(C,e),w.set(e,t)),t}),f.rpc=C;function ee(){try{return typeof window<`u`&&window.self===window.top}catch{return!1}}async function T(){if(!(e.simpleAuth===!1||!ee())&&typeof globalThis.prompt==`function`)for(await C.requestAuthCode().catch(()=>{});!C.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 C.requestTrustWithCode(t))return}}async function E(){let t=await v.requestTrust(),n=e.otpParam??`devframe_otp`,r=n?await rm(C,{param:n}):!1;t||r||C.isTrusted||await T()}return b=E().then(()=>{x=!0},()=>{x=!0}),y&&(y.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&C.requestTrustWithToken(e.data.authToken)}),C}var p_=f_;function m_(){let e=on(null),t=on(new URLSearchParams(location.search).get(`url`)??``),n=on(null),r=on(!1),i=on(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 p_(),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:Yt(i),inspect:o,isStatic:a,loading:Yt(r),snapshot:Yt(n),target:t}}var h_={class:`h-100dvh flex flex-col bg-base color-base font-sans`},g_={key:0,class:`flex items-start gap-2 border-b border-base bg-red/8 px4 py2 color-red text-xs`},__={class:`min-h-0 flex-1 overflow-auto`},v_={key:0,class:`h-full flex flex-col items-center justify-center gap-3 color-muted`},y_={key:1,class:`h-full flex flex-col items-center justify-center gap-3 px6 text-center color-muted`},b_={key:2,class:`grid min-h-full gap4 p4 xl:grid-cols-[minmax(0,1fr)_minmax(28rem,0.85fr)]`},x_={class:`min-w-0 flex flex-col gap4`},S_={class:`flex flex-wrap items-center gap-2 color-muted text-xs`},C_=[`href`,`title`],w_={class:`ml-auto font-mono tabular-nums`},T_={class:`min-w-0 xl:sticky xl:top4 xl:h-[calc(100dvh-6.5rem)]`},E_=V({__name:`app`,setup(e){let t=m_();return Ki(()=>t.inspect()),(e,n)=>(G(),K(`div`,h_,[Y(Kf,{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`,g_,[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)])):bs(``,!0),J(`main`,__,[R(t).loading.value&&!R(t).snapshot.value?(G(),K(`div`,v_,[...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`,b_,[J(`div`,x_,[J(`div`,S_,[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,C_),J(`span`,w_,`HTTP `+M(R(t).snapshot.value.status),1)]),Y(ju,{tags:R(t).snapshot.value.tags},null,8,[`tags`]),Y(ef,{tags:R(t).snapshot.value.tags},null,8,[`tags`])]),J(`div`,T_,[Y(Rf,{snapshot:R(t).snapshot.value},null,8,[`snapshot`])])])):(G(),K(`div`,y_,[...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)]]))])]))}}),D_=window.matchMedia(`(prefers-color-scheme: dark)`);function O_(e){document.documentElement.classList.toggle(`dark`,e),document.documentElement.classList.toggle(`light`,!e)}O_(D_.matches),D_.addEventListener(`change`,e=>O_(e.matches)),uu(E_).mount(`#app`);
|