annotask 0.0.5 → 0.0.7

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,59 +0,0 @@
1
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))l(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&l(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();/**
2
- * @vue/shared v3.5.31
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **/function ds(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Oe={},jn=[],Ut=()=>{},Jo=()=>!1,sl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ol=e=>e.startsWith("onUpdate:"),it=Object.assign,fs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},bu=Object.prototype.hasOwnProperty,Ee=(e,t)=>bu.call(e,t),fe=Array.isArray,Un=e=>Ai(e)==="[object Map]",rl=e=>Ai(e)==="[object Set]",js=e=>Ai(e)==="[object Date]",ve=e=>typeof e=="function",Ue=e=>typeof e=="string",St=e=>typeof e=="symbol",Fe=e=>e!==null&&typeof e=="object",Zo=e=>(Fe(e)||ve(e))&&ve(e.then)&&ve(e.catch),Qo=Object.prototype.toString,Ai=e=>Qo.call(e),wu=e=>Ai(e).slice(8,-1),er=e=>Ai(e)==="[object Object]",al=e=>Ue(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ai=ds(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ul=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},_u=/-\w/g,Et=ul(e=>e.replace(_u,t=>t.slice(1).toUpperCase())),xu=/\B([A-Z])/g,yn=ul(e=>e.replace(xu,"-$1").toLowerCase()),tr=ul(e=>e.charAt(0).toUpperCase()+e.slice(1)),Cl=ul(e=>e?`on${tr(e)}`:""),jt=(e,t)=>!Object.is(e,t),Ni=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},nr=(e,t,n,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},ps=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Us;const cl=()=>Us||(Us=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Re(e){if(fe(e)){const t={};for(let n=0;n<e.length;n++){const l=e[n],i=Ue(l)?Su(l):Re(l);if(i)for(const s in i)t[s]=i[s]}return t}else if(Ue(e)||Fe(e))return e}const ku=/;(?![^(]*\))/g,Cu=/:([^]+)/,Au=/\/\*[^]*?\*\//g;function Su(e){const t={};return e.replace(Au,"").split(ku).forEach(n=>{if(n){const l=n.split(Cu);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function J(e){let t="";if(Ue(e))t=e;else if(fe(e))for(let n=0;n<e.length;n++){const l=J(e[n]);l&&(t+=l+" ")}else if(Fe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const $u="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Tu=ds($u);function ir(e){return!!e||e===""}function Eu(e,t){if(e.length!==t.length)return!1;let n=!0;for(let l=0;n&&l<e.length;l++)n=Si(e[l],t[l]);return n}function Si(e,t){if(e===t)return!0;let n=js(e),l=js(t);if(n||l)return n&&l?e.getTime()===t.getTime():!1;if(n=St(e),l=St(t),n||l)return e===t;if(n=fe(e),l=fe(t),n||l)return n&&l?Eu(e,t):!1;if(n=Fe(e),l=Fe(t),n||l){if(!n||!l)return!1;const i=Object.keys(e).length,s=Object.keys(t).length;if(i!==s)return!1;for(const o in e){const r=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(r&&!c||!r&&c||!Si(e[o],t[o]))return!1}}return String(e)===String(t)}function lr(e,t){return e.findIndex(n=>Si(n,t))}const sr=e=>!!(e&&e.__v_isRef===!0),I=e=>Ue(e)?e:e==null?"":fe(e)||Fe(e)&&(e.toString===Qo||!ve(e.toString))?sr(e)?I(e.value):JSON.stringify(e,or,2):String(e),or=(e,t)=>sr(t)?or(e,t.value):Un(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,i],s)=>(n[Al(l,s)+" =>"]=i,n),{})}:rl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Al(n))}:St(t)?Al(t):Fe(t)&&!fe(t)&&!er(t)?String(t):t,Al=(e,t="")=>{var n;return St(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
- * @vue/reactivity v3.5.31
7
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
- * @license MIT
9
- **/let gt;class Fu{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=gt,!t&&gt&&(this.index=(gt.scopes||(gt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=gt;try{return gt=this,t()}finally{gt=n}}}on(){++this._on===1&&(this.prevScope=gt,gt=this)}off(){this._on>0&&--this._on===0&&(gt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n<l;n++)this.effects[n].stop();for(this.effects.length=0,n=0,l=this.cleanups.length;n<l;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,l=this.scopes.length;n<l;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Iu(){return gt}let Le;const Sl=new WeakSet;class rr{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,gt&&gt.active&&gt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Sl.has(this)&&(Sl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ur(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ys(this),cr(this);const t=Le,n=Ft;Le=this,Ft=!0;try{return this.fn()}finally{dr(this),Le=t,Ft=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)gs(t);this.deps=this.depsTail=void 0,Ys(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Sl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Bl(this)&&this.run()}get dirty(){return Bl(this)}}let ar=0,ui,ci;function ur(e,t=!1){if(e.flags|=8,t){e.next=ci,ci=e;return}e.next=ui,ui=e}function hs(){ar++}function vs(){if(--ar>0)return;if(ci){let t=ci;for(ci=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ui;){let t=ui;for(ui=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function cr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function dr(e){let t,n=e.depsTail,l=n;for(;l;){const i=l.prevDep;l.version===-1?(l===n&&(n=i),gs(l),Pu(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=i}e.deps=t,e.depsTail=n}function Bl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===gi)||(e.globalVersion=gi,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Bl(e))))return;e.flags|=2;const t=e.dep,n=Le,l=Ft;Le=e,Ft=!0;try{cr(e);const i=e.fn(e._value);(t.version===0||jt(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Le=n,Ft=l,dr(e),e.flags&=-3}}function gs(e,t=!1){const{dep:n,prevSub:l,nextSub:i}=e;if(l&&(l.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)gs(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Pu(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ft=!0;const pr=[];function on(){pr.push(Ft),Ft=!1}function rn(){const e=pr.pop();Ft=e===void 0?!0:e}function Ys(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Le;Le=void 0;try{t()}finally{Le=n}}}let gi=0;class Ou{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ms{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Le||!Ft||Le===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Le)n=this.activeLink=new Ou(Le,this),Le.deps?(n.prevDep=Le.depsTail,Le.depsTail.nextDep=n,Le.depsTail=n):Le.deps=Le.depsTail=n,hr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=Le.depsTail,n.nextDep=void 0,Le.depsTail.nextDep=n,Le.depsTail=n,Le.deps===n&&(Le.deps=l)}return n}trigger(t){this.version++,gi++,this.notify(t)}notify(t){hs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{vs()}}}function hr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)hr(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Yi=new WeakMap,$n=Symbol(""),jl=Symbol(""),mi=Symbol("");function rt(e,t,n){if(Ft&&Le){let l=Yi.get(e);l||Yi.set(e,l=new Map);let i=l.get(n);i||(l.set(n,i=new ms),i.map=l,i.key=n),i.track()}}function nn(e,t,n,l,i,s){const o=Yi.get(e);if(!o){gi++;return}const r=c=>{c&&c.trigger()};if(hs(),t==="clear")o.forEach(r);else{const c=fe(e),d=c&&al(n);if(c&&n==="length"){const a=Number(l);o.forEach((f,v)=>{(v==="length"||v===mi||!St(v)&&v>=a)&&r(f)})}else switch((n!==void 0||o.has(void 0))&&r(o.get(n)),d&&r(o.get(mi)),t){case"add":c?d&&r(o.get("length")):(r(o.get($n)),Un(e)&&r(o.get(jl)));break;case"delete":c||(r(o.get($n)),Un(e)&&r(o.get(jl)));break;case"set":Un(e)&&r(o.get($n));break}}vs()}function Ru(e,t){const n=Yi.get(e);return n&&n.get(t)}function On(e){const t=Se(e);return t===e?t:(rt(t,"iterate",mi),xt(e)?t:t.map(It))}function dl(e){return rt(e=Se(e),"iterate",mi),e}function Vt(e,t){return an(e)?zn(Tn(e)?It(t):t):It(t)}const Mu={__proto__:null,[Symbol.iterator](){return $l(this,Symbol.iterator,e=>Vt(this,e))},concat(...e){return On(this).concat(...e.map(t=>fe(t)?On(t):t))},entries(){return $l(this,"entries",e=>(e[1]=Vt(this,e[1]),e))},every(e,t){return qt(this,"every",e,t,void 0,arguments)},filter(e,t){return qt(this,"filter",e,t,n=>n.map(l=>Vt(this,l)),arguments)},find(e,t){return qt(this,"find",e,t,n=>Vt(this,n),arguments)},findIndex(e,t){return qt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return qt(this,"findLast",e,t,n=>Vt(this,n),arguments)},findLastIndex(e,t){return qt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return qt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Tl(this,"includes",e)},indexOf(...e){return Tl(this,"indexOf",e)},join(e){return On(this).join(e)},lastIndexOf(...e){return Tl(this,"lastIndexOf",e)},map(e,t){return qt(this,"map",e,t,void 0,arguments)},pop(){return Zn(this,"pop")},push(...e){return Zn(this,"push",e)},reduce(e,...t){return Ks(this,"reduce",e,t)},reduceRight(e,...t){return Ks(this,"reduceRight",e,t)},shift(){return Zn(this,"shift")},some(e,t){return qt(this,"some",e,t,void 0,arguments)},splice(...e){return Zn(this,"splice",e)},toReversed(){return On(this).toReversed()},toSorted(e){return On(this).toSorted(e)},toSpliced(...e){return On(this).toSpliced(...e)},unshift(...e){return Zn(this,"unshift",e)},values(){return $l(this,"values",e=>Vt(this,e))}};function $l(e,t,n){const l=dl(e),i=l[t]();return l!==e&&!xt(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.done||(s.value=n(s.value)),s}),i}const Lu=Array.prototype;function qt(e,t,n,l,i,s){const o=dl(e),r=o!==e&&!xt(e),c=o[t];if(c!==Lu[t]){const f=c.apply(e,s);return r?It(f):f}let d=n;o!==e&&(r?d=function(f,v){return n.call(this,Vt(e,f),v,e)}:n.length>2&&(d=function(f,v){return n.call(this,f,v,e)}));const a=c.call(o,d,l);return r&&i?i(a):a}function Ks(e,t,n,l){const i=dl(e),s=i!==e&&!xt(e);let o=n,r=!1;i!==e&&(s?(r=l.length===0,o=function(d,a,f){return r&&(r=!1,d=Vt(e,d)),n.call(this,d,Vt(e,a),f,e)}):n.length>3&&(o=function(d,a,f){return n.call(this,d,a,f,e)}));const c=i[t](o,...l);return r?Vt(e,c):c}function Tl(e,t,n){const l=Se(e);rt(l,"iterate",mi);const i=l[t](...n);return(i===-1||i===!1)&&fl(n[0])?(n[0]=Se(n[0]),l[t](...n)):i}function Zn(e,t,n=[]){on(),hs();const l=Se(e)[t].apply(e,n);return vs(),rn(),l}const Du=ds("__proto__,__v_isRef,__isVue"),vr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(St));function Nu(e){St(e)||(e=String(e));const t=Se(this);return rt(t,"has",e),t.hasOwnProperty(e)}class gr{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return l===(i?s?Gu:wr:s?br:yr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const o=fe(t);if(!i){let c;if(o&&(c=Mu[n]))return c;if(n==="hasOwnProperty")return Nu}const r=Reflect.get(t,n,We(t)?t:l);if((St(n)?vr.has(n):Du(n))||(i||rt(t,"get",n),s))return r;if(We(r)){const c=o&&al(n)?r:r.value;return i&&Fe(c)?Yl(c):c}return Fe(r)?i?Yl(r):bs(r):r}}class mr extends gr{constructor(t=!1){super(!1,t)}set(t,n,l,i){let s=t[n];const o=fe(t)&&al(n);if(!this._isShallow){const d=an(s);if(!xt(l)&&!an(l)&&(s=Se(s),l=Se(l)),!o&&We(s)&&!We(l))return d||(s.value=l),!0}const r=o?Number(n)<t.length:Ee(t,n),c=Reflect.set(t,n,l,We(t)?t:i);return t===Se(i)&&(r?jt(l,s)&&nn(t,"set",n,l):nn(t,"add",n,l)),c}deleteProperty(t,n){const l=Ee(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&l&&nn(t,"delete",n,void 0),i}has(t,n){const l=Reflect.has(t,n);return(!St(n)||!vr.has(n))&&rt(t,"has",n),l}ownKeys(t){return rt(t,"iterate",fe(t)?"length":$n),Reflect.ownKeys(t)}}class Vu extends gr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Hu=new mr,Bu=new Vu,ju=new mr(!0);const Ul=e=>e,Ri=e=>Reflect.getPrototypeOf(e);function Uu(e,t,n){return function(...l){const i=this.__v_raw,s=Se(i),o=Un(s),r=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,d=i[e](...l),a=n?Ul:t?zn:It;return!t&&rt(s,"iterate",c?jl:$n),it(Object.create(d),{next(){const{value:f,done:v}=d.next();return v?{value:f,done:v}:{value:r?[a(f[0]),a(f[1])]:a(f),done:v}}})}}function Mi(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Yu(e,t){const n={get(i){const s=this.__v_raw,o=Se(s),r=Se(i);e||(jt(i,r)&&rt(o,"get",i),rt(o,"get",r));const{has:c}=Ri(o),d=t?Ul:e?zn:It;if(c.call(o,i))return d(s.get(i));if(c.call(o,r))return d(s.get(r));s!==o&&s.get(i)},get size(){const i=this.__v_raw;return!e&&rt(Se(i),"iterate",$n),i.size},has(i){const s=this.__v_raw,o=Se(s),r=Se(i);return e||(jt(i,r)&&rt(o,"has",i),rt(o,"has",r)),i===r?s.has(i):s.has(i)||s.has(r)},forEach(i,s){const o=this,r=o.__v_raw,c=Se(r),d=t?Ul:e?zn:It;return!e&&rt(c,"iterate",$n),r.forEach((a,f)=>i.call(s,d(a),d(f),o))}};return it(n,e?{add:Mi("add"),set:Mi("set"),delete:Mi("delete"),clear:Mi("clear")}:{add(i){const s=Se(this),o=Ri(s),r=Se(i),c=!t&&!xt(i)&&!an(i)?r:i;return o.has.call(s,c)||jt(i,c)&&o.has.call(s,i)||jt(r,c)&&o.has.call(s,r)||(s.add(c),nn(s,"add",c,c)),this},set(i,s){!t&&!xt(s)&&!an(s)&&(s=Se(s));const o=Se(this),{has:r,get:c}=Ri(o);let d=r.call(o,i);d||(i=Se(i),d=r.call(o,i));const a=c.call(o,i);return o.set(i,s),d?jt(s,a)&&nn(o,"set",i,s):nn(o,"add",i,s),this},delete(i){const s=Se(this),{has:o,get:r}=Ri(s);let c=o.call(s,i);c||(i=Se(i),c=o.call(s,i)),r&&r.call(s,i);const d=s.delete(i);return c&&nn(s,"delete",i,void 0),d},clear(){const i=Se(this),s=i.size!==0,o=i.clear();return s&&nn(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Uu(i,e,t)}),n}function ys(e,t){const n=Yu(e,t);return(l,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?l:Reflect.get(Ee(n,i)&&i in l?n:l,i,s)}const Ku={get:ys(!1,!1)},Wu={get:ys(!1,!0)},zu={get:ys(!0,!1)};const yr=new WeakMap,br=new WeakMap,wr=new WeakMap,Gu=new WeakMap;function Xu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qu(e){return e.__v_skip||!Object.isExtensible(e)?0:Xu(wu(e))}function bs(e){return an(e)?e:ws(e,!1,Hu,Ku,yr)}function Ju(e){return ws(e,!1,ju,Wu,br)}function Yl(e){return ws(e,!0,Bu,zu,wr)}function ws(e,t,n,l,i){if(!Fe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=qu(e);if(s===0)return e;const o=i.get(e);if(o)return o;const r=new Proxy(e,s===2?l:n);return i.set(e,r),r}function Tn(e){return an(e)?Tn(e.__v_raw):!!(e&&e.__v_isReactive)}function an(e){return!!(e&&e.__v_isReadonly)}function xt(e){return!!(e&&e.__v_isShallow)}function fl(e){return e?!!e.__v_raw:!1}function Se(e){const t=e&&e.__v_raw;return t?Se(t):e}function Zu(e){return!Ee(e,"__v_skip")&&Object.isExtensible(e)&&nr(e,"__v_skip",!0),e}const It=e=>Fe(e)?bs(e):e,zn=e=>Fe(e)?Yl(e):e;function We(e){return e?e.__v_isRef===!0:!1}function Y(e){return Qu(e,!1)}function Qu(e,t){return We(e)?e:new ec(e,t)}class ec{constructor(t,n){this.dep=new ms,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Se(t),this._value=n?t:It(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||xt(t)||an(t);t=l?t:Se(t),jt(t,n)&&(this._rawValue=t,this._value=l?t:It(t),this.dep.trigger())}}function ee(e){return We(e)?e.value:e}const tc={get:(e,t,n)=>t==="__v_raw"?e:ee(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const i=e[t];return We(i)&&!We(n)?(i.value=n,!0):Reflect.set(e,t,n,l)}};function _r(e){return Tn(e)?e:new Proxy(e,tc)}class nc{constructor(t,n,l){this._object=t,this._defaultValue=l,this.__v_isRef=!0,this._value=void 0,this._key=St(n)?n:String(n),this._raw=Se(t);let i=!0,s=t;if(!fe(t)||St(this._key)||!al(this._key))do i=!fl(s)||xt(s);while(i&&(s=s.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=ee(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&We(this._raw[this._key])){const n=this._object[this._key];if(We(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Ru(this._raw,this._key)}}class ic{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function lc(e,t,n){return We(e)?e:ve(e)?new ic(e):Fe(e)&&arguments.length>1?sc(e,t,n):Y(e)}function sc(e,t,n){return new nc(e,t,n)}class oc{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ms(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&Le!==this)return ur(this,!0),!0}get value(){const t=this.dep.track();return fr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function rc(e,t,n=!1){let l,i;return ve(e)?l=e:(l=e.get,i=e.set),new oc(l,i,n)}const Li={},Ki=new WeakMap;let An;function ac(e,t=!1,n=An){if(n){let l=Ki.get(n);l||Ki.set(n,l=[]),l.push(e)}}function uc(e,t,n=Oe){const{immediate:l,deep:i,once:s,scheduler:o,augmentJob:r,call:c}=n,d=A=>i?A:xt(A)||i===!1||i===0?ln(A,1):ln(A);let a,f,v,h,y=!1,C=!1;if(We(e)?(f=()=>e.value,y=xt(e)):Tn(e)?(f=()=>d(e),y=!0):fe(e)?(C=!0,y=e.some(A=>Tn(A)||xt(A)),f=()=>e.map(A=>{if(We(A))return A.value;if(Tn(A))return d(A);if(ve(A))return c?c(A,2):A()})):ve(e)?t?f=c?()=>c(e,2):e:f=()=>{if(v){on();try{v()}finally{rn()}}const A=An;An=a;try{return c?c(e,3,[h]):e(h)}finally{An=A}}:f=Ut,t&&i){const A=f,F=i===!0?1/0:i;f=()=>ln(A(),F)}const S=Iu(),P=()=>{a.stop(),S&&S.active&&fs(S.effects,a)};if(s&&t){const A=t;t=(...F)=>{A(...F),P()}}let x=C?new Array(e.length).fill(Li):Li;const w=A=>{if(!(!(a.flags&1)||!a.dirty&&!A))if(t){const F=a.run();if(i||y||(C?F.some((N,W)=>jt(N,x[W])):jt(F,x))){v&&v();const N=An;An=a;try{const W=[F,x===Li?void 0:C&&x[0]===Li?[]:x,h];x=F,c?c(t,3,W):t(...W)}finally{An=N}}}else a.run()};return r&&r(w),a=new rr(f),a.scheduler=o?()=>o(w,!1):w,h=A=>ac(A,!1,a),v=a.onStop=()=>{const A=Ki.get(a);if(A){if(c)c(A,4);else for(const F of A)F();Ki.delete(a)}},t?l?w(!0):x=a.run():o?o(w.bind(null,!0),!0):a.run(),P.pause=a.pause.bind(a),P.resume=a.resume.bind(a),P.stop=P,P}function ln(e,t=1/0,n){if(t<=0||!Fe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,We(e))ln(e.value,t,n);else if(fe(e))for(let l=0;l<e.length;l++)ln(e[l],t,n);else if(rl(e)||Un(e))e.forEach(l=>{ln(l,t,n)});else if(er(e)){for(const l in e)ln(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&ln(e[l],t,n)}return e}/**
10
- * @vue/runtime-core v3.5.31
11
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
- * @license MIT
13
- **/function $i(e,t,n,l){try{return l?e(...l):e()}catch(i){pl(i,t,n)}}function Kt(e,t,n,l){if(ve(e)){const i=$i(e,t,n,l);return i&&Zo(i)&&i.catch(s=>{pl(s,t,n)}),i}if(fe(e)){const i=[];for(let s=0;s<e.length;s++)i.push(Kt(e[s],t,n,l));return i}}function pl(e,t,n,l=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Oe;if(t){let r=t.parent;const c=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const a=r.ec;if(a){for(let f=0;f<a.length;f++)if(a[f](e,c,d)===!1)return}r=r.parent}if(s){on(),$i(s,null,10,[e,c,d]),rn();return}}cc(e,n,i,l,o)}function cc(e,t,n,l=!0,i=!1){if(i)throw e;console.error(e)}const ft=[];let Lt=-1;const Yn=[];let pn=null,Dn=0;const xr=Promise.resolve();let Wi=null;function kr(e){const t=Wi||xr;return e?t.then(this?e.bind(this):e):t}function dc(e){let t=Lt+1,n=ft.length;for(;t<n;){const l=t+n>>>1,i=ft[l],s=yi(i);s<e||s===e&&i.flags&2?t=l+1:n=l}return t}function _s(e){if(!(e.flags&1)){const t=yi(e),n=ft[ft.length-1];!n||!(e.flags&2)&&t>=yi(n)?ft.push(e):ft.splice(dc(t),0,e),e.flags|=1,Cr()}}function Cr(){Wi||(Wi=xr.then(Sr))}function fc(e){fe(e)?Yn.push(...e):pn&&e.id===-1?pn.splice(Dn+1,0,e):e.flags&1||(Yn.push(e),e.flags|=1),Cr()}function Ws(e,t,n=Lt+1){for(;n<ft.length;n++){const l=ft[n];if(l&&l.flags&2){if(e&&l.id!==e.uid)continue;ft.splice(n,1),n--,l.flags&4&&(l.flags&=-2),l(),l.flags&4||(l.flags&=-2)}}}function Ar(e){if(Yn.length){const t=[...new Set(Yn)].sort((n,l)=>yi(n)-yi(l));if(Yn.length=0,pn){pn.push(...t);return}for(pn=t,Dn=0;Dn<pn.length;Dn++){const n=pn[Dn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}pn=null,Dn=0}}const yi=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Sr(e){try{for(Lt=0;Lt<ft.length;Lt++){const t=ft[Lt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),$i(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Lt<ft.length;Lt++){const t=ft[Lt];t&&(t.flags&=-2)}Lt=-1,ft.length=0,Ar(),Wi=null,(ft.length||Yn.length)&&Sr()}}let At=null,$r=null;function zi(e){const t=At;return At=e,$r=e&&e.type.__scopeId||null,t}function pc(e,t=At,n){if(!t||e._n)return e;const l=(...i)=>{l._d&&so(-1);const s=zi(t);let o;try{o=e(...i)}finally{zi(s),l._d&&so(1)}return o};return l._n=!0,l._c=!0,l._d=!0,l}function Pe(e,t){if(At===null)return e;const n=ml(At),l=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,o,r,c=Oe]=t[i];s&&(ve(s)&&(s={mounted:s,updated:s}),s.deep&&ln(o),l.push({dir:s,instance:n,value:o,oldValue:void 0,arg:r,modifiers:c}))}return e}function bn(e,t,n,l){const i=e.dirs,s=t&&t.dirs;for(let o=0;o<i.length;o++){const r=i[o];s&&(r.oldValue=s[o].value);let c=r.dir[l];c&&(on(),Kt(c,n,8,[e.el,r,e,t]),rn())}}function hc(e,t){if(pt){let n=pt.provides;const l=pt.parent&&pt.parent.provides;l===n&&(n=pt.provides=Object.create(l)),n[e]=t}}function Vi(e,t,n=!1){const l=pd();if(l||Kn){let i=Kn?Kn._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ve(t)?t.call(l&&l.proxy):t}}const vc=Symbol.for("v-scx"),gc=()=>Vi(vc);function ot(e,t,n){return Tr(e,t,n)}function Tr(e,t,n=Oe){const{immediate:l,deep:i,flush:s,once:o}=n,r=it({},n),c=t&&l||!t&&s!=="post";let d;if(wi){if(s==="sync"){const h=gc();d=h.__watcherHandles||(h.__watcherHandles=[])}else if(!c){const h=()=>{};return h.stop=Ut,h.resume=Ut,h.pause=Ut,h}}const a=pt;r.call=(h,y,C)=>Kt(h,a,y,C);let f=!1;s==="post"?r.scheduler=h=>{st(h,a&&a.suspense)}:s!=="sync"&&(f=!0,r.scheduler=(h,y)=>{y?h():_s(h)}),r.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,a&&(h.id=a.uid,h.i=a))};const v=uc(e,t,r);return wi&&(d?d.push(v):c&&v()),v}function mc(e,t,n){const l=this.proxy,i=Ue(e)?e.includes(".")?Er(l,e):()=>l[e]:e.bind(l,l);let s;ve(t)?s=t:(s=t.handler,n=t);const o=Ti(this),r=Tr(i,s.bind(l),n);return o(),r}function Er(e,t){const n=t.split(".");return()=>{let l=e;for(let i=0;i<n.length&&l;i++)l=l[n[i]];return l}}const Fr=Symbol("_vte"),yc=e=>e.__isTeleport,di=e=>e&&(e.disabled||e.disabled===""),bc=e=>e&&(e.defer||e.defer===""),zs=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Gs=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Kl=(e,t)=>{const n=e&&e.to;return Ue(n)?t?t(n):null:n},Ir={name:"Teleport",__isTeleport:!0,process(e,t,n,l,i,s,o,r,c,d){const{mc:a,pc:f,pbc:v,o:{insert:h,querySelector:y,createText:C,createComment:S}}=d,P=di(t.props);let{shapeFlag:x,children:w,dynamicChildren:A}=t;if(e==null){const F=t.el=C(""),N=t.anchor=C("");h(F,n,l),h(N,n,l);const W=(O,X)=>{x&16&&a(w,O,X,i,s,o,r,c)},ie=()=>{const O=t.target=Kl(t.props,y),X=Wl(O,t,C,h);O&&(o!=="svg"&&zs(O)?o="svg":o!=="mathml"&&Gs(O)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(O),P||(W(O,X),Hi(t,!1)))};P&&(W(n,N),Hi(t,!0)),bc(t.props)||s&&s.pendingBranch?(t.el.__isMounted=!1,st(()=>{t.el.__isMounted===!1&&(ie(),delete t.el.__isMounted)},s)):ie()}else{t.el=e.el,t.targetStart=e.targetStart;const F=t.anchor=e.anchor,N=t.target=e.target,W=t.targetAnchor=e.targetAnchor;if(e.el.__isMounted===!1){st(()=>{Ir.process(e,t,n,l,i,s,o,r,c,d)},s);return}const ie=di(e.props),O=ie?n:N,X=ie?F:W;if(o==="svg"||zs(N)?o="svg":(o==="mathml"||Gs(N))&&(o="mathml"),A?(v(e.dynamicChildren,A,O,i,s,o,r),As(e,t,!0)):c||f(e,t,O,X,i,s,o,r,!1),P)ie?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Di(t,n,F,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const te=t.target=Kl(t.props,y);te&&Di(t,te,null,d,0)}else ie&&Di(t,N,W,d,1);Hi(t,P)}},remove(e,t,n,{um:l,o:{remove:i}},s){const{shapeFlag:o,children:r,anchor:c,targetStart:d,targetAnchor:a,target:f,props:v}=e;if(f&&(i(d),i(a)),s&&i(c),o&16){const h=s||!di(v);for(let y=0;y<r.length;y++){const C=r[y];l(C,t,n,h,!!C.dynamicChildren)}}},move:Di,hydrate:wc};function Di(e,t,n,{o:{insert:l},m:i},s=2){s===0&&l(e.targetAnchor,t,n);const{el:o,anchor:r,shapeFlag:c,children:d,props:a}=e,f=s===2;if(f&&l(o,t,n),(!f||di(a))&&c&16)for(let v=0;v<d.length;v++)i(d[v],t,n,2);f&&l(r,t,n)}function wc(e,t,n,l,i,s,{o:{nextSibling:o,parentNode:r,querySelector:c,insert:d,createText:a}},f){function v(S,P){let x=P;for(;x;){if(x&&x.nodeType===8){if(x.data==="teleport start anchor")t.targetStart=x;else if(x.data==="teleport anchor"){t.targetAnchor=x,S._lpa=t.targetAnchor&&o(t.targetAnchor);break}}x=o(x)}}function h(S,P){P.anchor=f(o(S),P,r(S),n,l,i,s)}const y=t.target=Kl(t.props,c),C=di(t.props);if(y){const S=y._lpa||y.firstChild;t.shapeFlag&16&&(C?(h(e,t),v(y,S),t.targetAnchor||Wl(y,t,a,d,r(e)===y?e:null)):(t.anchor=o(e),v(y,S),t.targetAnchor||Wl(y,t,a,d),f(S&&o(S),t,y,n,l,i,s))),Hi(t,C)}else C&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const _c=Ir;function Hi(e,t){const n=e.ctx;if(n&&n.ut){let l,i;for(t?(l=e.el,i=e.anchor):(l=e.targetStart,i=e.targetAnchor);l&&l!==i;)l.nodeType===1&&l.setAttribute("data-v-owner",n.uid),l=l.nextSibling;n.ut()}}function Wl(e,t,n,l,i=null){const s=t.targetStart=n(""),o=t.targetAnchor=n("");return s[Fr]=o,e&&(l(s,e,i),l(o,e,i)),o}const xc=Symbol("_leaveCb");function xs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,xs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function lt(e,t){return ve(e)?it({name:e.name},t,{setup:e}):e}function Pr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Xs(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Gi=new WeakMap;function fi(e,t,n,l,i=!1){if(fe(e)){e.forEach((C,S)=>fi(C,t&&(fe(t)?t[S]:t),n,l,i));return}if(pi(l)&&!i){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&fi(e,t,n,l.component.subTree);return}const s=l.shapeFlag&4?ml(l.component):l.el,o=i?null:s,{i:r,r:c}=e,d=t&&t.r,a=r.refs===Oe?r.refs={}:r.refs,f=r.setupState,v=Se(f),h=f===Oe?Jo:C=>Xs(a,C)?!1:Ee(v,C),y=(C,S)=>!(S&&Xs(a,S));if(d!=null&&d!==c){if(qs(t),Ue(d))a[d]=null,h(d)&&(f[d]=null);else if(We(d)){const C=t;y(d,C.k)&&(d.value=null),C.k&&(a[C.k]=null)}}if(ve(c))$i(c,r,12,[o,a]);else{const C=Ue(c),S=We(c);if(C||S){const P=()=>{if(e.f){const x=C?h(c)?f[c]:a[c]:y()||!e.k?c.value:a[e.k];if(i)fe(x)&&fs(x,s);else if(fe(x))x.includes(s)||x.push(s);else if(C)a[c]=[s],h(c)&&(f[c]=a[c]);else{const w=[s];y(c,e.k)&&(c.value=w),e.k&&(a[e.k]=w)}}else C?(a[c]=o,h(c)&&(f[c]=o)):S&&(y(c,e.k)&&(c.value=o),e.k&&(a[e.k]=o))};if(o){const x=()=>{P(),Gi.delete(e)};x.id=-1,Gi.set(e,x),st(x,n)}else qs(e),P()}}}function qs(e){const t=Gi.get(e);t&&(t.flags|=8,Gi.delete(e))}cl().requestIdleCallback;cl().cancelIdleCallback;const pi=e=>!!e.type.__asyncLoader,Or=e=>e.type.__isKeepAlive;function kc(e,t){Rr(e,"a",t)}function Cc(e,t){Rr(e,"da",t)}function Rr(e,t,n=pt){const l=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(hl(t,l,n),n){let i=n.parent;for(;i&&i.parent;)Or(i.parent.vnode)&&Ac(l,t,n,i),i=i.parent}}function Ac(e,t,n,l){const i=hl(t,e,l,!0);In(()=>{fs(l[t],i)},n)}function hl(e,t,n=pt,l=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{on();const r=Ti(n),c=Kt(t,n,e,o);return r(),rn(),c});return l?i.unshift(s):i.push(s),s}}const cn=e=>(t,n=pt)=>{(!wi||e==="sp")&&hl(e,(...l)=>t(...l),n)},Sc=cn("bm"),qn=cn("m"),$c=cn("bu"),Tc=cn("u"),Ec=cn("bum"),In=cn("um"),Fc=cn("sp"),Ic=cn("rtg"),Pc=cn("rtc");function Oc(e,t=pt){hl("ec",e,t)}const Rc=Symbol.for("v-ndc");function ge(e,t,n,l){let i;const s=n,o=fe(e);if(o||Ue(e)){const r=o&&Tn(e);let c=!1,d=!1;r&&(c=!xt(e),d=an(e),e=dl(e)),i=new Array(e.length);for(let a=0,f=e.length;a<f;a++)i[a]=t(c?d?zn(It(e[a])):It(e[a]):e[a],a,void 0,s)}else if(typeof e=="number"){i=new Array(e);for(let r=0;r<e;r++)i[r]=t(r+1,r,void 0,s)}else if(Fe(e))if(e[Symbol.iterator])i=Array.from(e,(r,c)=>t(r,c,void 0,s));else{const r=Object.keys(e);i=new Array(r.length);for(let c=0,d=r.length;c<d;c++){const a=r[c];i[c]=t(e[a],a,c,s)}}else i=[];return i}const zl=e=>e?na(e)?ml(e):zl(e.parent):null,hi=it(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=>zl(e.parent),$root:e=>zl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Lr(e),$forceUpdate:e=>e.f||(e.f=()=>{_s(e.update)}),$nextTick:e=>e.n||(e.n=kr.bind(e.proxy)),$watch:e=>mc.bind(e)}),El=(e,t)=>e!==Oe&&!e.__isScriptSetup&&Ee(e,t),Mc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:i,props:s,accessCache:o,type:r,appContext:c}=e;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return l[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(El(l,t))return o[t]=1,l[t];if(i!==Oe&&Ee(i,t))return o[t]=2,i[t];if(Ee(s,t))return o[t]=3,s[t];if(n!==Oe&&Ee(n,t))return o[t]=4,n[t];Gl&&(o[t]=0)}}const d=hi[t];let a,f;if(d)return t==="$attrs"&&rt(e.attrs,"get",""),d(e);if((a=r.__cssModules)&&(a=a[t]))return a;if(n!==Oe&&Ee(n,t))return o[t]=4,n[t];if(f=c.config.globalProperties,Ee(f,t))return f[t]},set({_:e},t,n){const{data:l,setupState:i,ctx:s}=e;return El(i,t)?(i[t]=n,!0):l!==Oe&&Ee(l,t)?(l[t]=n,!0):Ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:i,props:s,type:o}},r){let c;return!!(n[r]||e!==Oe&&r[0]!=="$"&&Ee(e,r)||El(t,r)||Ee(s,r)||Ee(l,r)||Ee(hi,r)||Ee(i.config.globalProperties,r)||(c=o.__cssModules)&&c[r])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Js(e){return fe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Gl=!0;function Lc(e){const t=Lr(e),n=e.proxy,l=e.ctx;Gl=!1,t.beforeCreate&&Zs(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:o,watch:r,provide:c,inject:d,created:a,beforeMount:f,mounted:v,beforeUpdate:h,updated:y,activated:C,deactivated:S,beforeDestroy:P,beforeUnmount:x,destroyed:w,unmounted:A,render:F,renderTracked:N,renderTriggered:W,errorCaptured:ie,serverPrefetch:O,expose:X,inheritAttrs:te,components:pe,directives:me,filters:ye}=t;if(d&&Dc(d,l,null),o)for(const be in o){const le=o[be];ve(le)&&(l[be]=le.bind(n))}if(i){const be=i.call(n,n);Fe(be)&&(e.data=bs(be))}if(Gl=!0,s)for(const be in s){const le=s[be],ke=ve(le)?le.bind(n,n):ve(le.get)?le.get.bind(n,n):Ut,Ne=!ve(le)&&ve(le.set)?le.set.bind(n):Ut,V=ae({get:ke,set:Ne});Object.defineProperty(l,be,{enumerable:!0,configurable:!0,get:()=>V.value,set:z=>V.value=z})}if(r)for(const be in r)Mr(r[be],l,n,be);if(c){const be=ve(c)?c.call(n):c;Reflect.ownKeys(be).forEach(le=>{hc(le,be[le])})}a&&Zs(a,e,"c");function $e(be,le){fe(le)?le.forEach(ke=>be(ke.bind(n))):le&&be(le.bind(n))}if($e(Sc,f),$e(qn,v),$e($c,h),$e(Tc,y),$e(kc,C),$e(Cc,S),$e(Oc,ie),$e(Pc,N),$e(Ic,W),$e(Ec,x),$e(In,A),$e(Fc,O),fe(X))if(X.length){const be=e.exposed||(e.exposed={});X.forEach(le=>{Object.defineProperty(be,le,{get:()=>n[le],set:ke=>n[le]=ke,enumerable:!0})})}else e.exposed||(e.exposed={});F&&e.render===Ut&&(e.render=F),te!=null&&(e.inheritAttrs=te),pe&&(e.components=pe),me&&(e.directives=me),O&&Pr(e)}function Dc(e,t,n=Ut){fe(e)&&(e=Xl(e));for(const l in e){const i=e[l];let s;Fe(i)?"default"in i?s=Vi(i.from||l,i.default,!0):s=Vi(i.from||l):s=Vi(i),We(s)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[l]=s}}function Zs(e,t,n){Kt(fe(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function Mr(e,t,n,l){let i=l.includes(".")?Er(n,l):()=>n[l];if(Ue(e)){const s=t[e];ve(s)&&ot(i,s)}else if(ve(e))ot(i,e.bind(n));else if(Fe(e))if(fe(e))e.forEach(s=>Mr(s,t,n,l));else{const s=ve(e.handler)?e.handler.bind(n):t[e.handler];ve(s)&&ot(i,s,e)}}function Lr(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,r=s.get(t);let c;return r?c=r:!i.length&&!n&&!l?c=t:(c={},i.length&&i.forEach(d=>Xi(c,d,o,!0)),Xi(c,t,o)),Fe(t)&&s.set(t,c),c}function Xi(e,t,n,l=!1){const{mixins:i,extends:s}=t;s&&Xi(e,s,n,!0),i&&i.forEach(o=>Xi(e,o,n,!0));for(const o in t)if(!(l&&o==="expose")){const r=Nc[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const Nc={data:Qs,props:eo,emits:eo,methods:li,computed:li,beforeCreate:dt,created:dt,beforeMount:dt,mounted:dt,beforeUpdate:dt,updated:dt,beforeDestroy:dt,beforeUnmount:dt,destroyed:dt,unmounted:dt,activated:dt,deactivated:dt,errorCaptured:dt,serverPrefetch:dt,components:li,directives:li,watch:Hc,provide:Qs,inject:Vc};function Qs(e,t){return t?e?function(){return it(ve(e)?e.call(this,this):e,ve(t)?t.call(this,this):t)}:t:e}function Vc(e,t){return li(Xl(e),Xl(t))}function Xl(e){if(fe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function dt(e,t){return e?[...new Set([].concat(e,t))]:t}function li(e,t){return e?it(Object.create(null),e,t):t}function eo(e,t){return e?fe(e)&&fe(t)?[...new Set([...e,...t])]:it(Object.create(null),Js(e),Js(t??{})):t}function Hc(e,t){if(!e)return t;if(!t)return e;const n=it(Object.create(null),e);for(const l in t)n[l]=dt(e[l],t[l]);return n}function Dr(){return{app:null,config:{isNativeTag:Jo,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Bc=0;function jc(e,t){return function(l,i=null){ve(l)||(l=it({},l)),i!=null&&!Fe(i)&&(i=null);const s=Dr(),o=new WeakSet,r=[];let c=!1;const d=s.app={_uid:Bc++,_component:l,_props:i,_container:null,_context:s,_instance:null,version:bd,get config(){return s.config},set config(a){},use(a,...f){return o.has(a)||(a&&ve(a.install)?(o.add(a),a.install(d,...f)):ve(a)&&(o.add(a),a(d,...f))),d},mixin(a){return s.mixins.includes(a)||s.mixins.push(a),d},component(a,f){return f?(s.components[a]=f,d):s.components[a]},directive(a,f){return f?(s.directives[a]=f,d):s.directives[a]},mount(a,f,v){if(!c){const h=d._ceVNode||tt(l,i);return h.appContext=s,v===!0?v="svg":v===!1&&(v=void 0),e(h,a,v),c=!0,d._container=a,a.__vue_app__=d,ml(h.component)}},onUnmount(a){r.push(a)},unmount(){c&&(Kt(r,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(a,f){return s.provides[a]=f,d},runWithContext(a){const f=Kn;Kn=d;try{return a()}finally{Kn=f}}};return d}}let Kn=null;const Uc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Et(t)}Modifiers`]||e[`${yn(t)}Modifiers`];function Yc(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||Oe;let i=n;const s=t.startsWith("update:"),o=s&&Uc(l,t.slice(7));o&&(o.trim&&(i=n.map(a=>Ue(a)?a.trim():a)),o.number&&(i=n.map(ps)));let r,c=l[r=Cl(t)]||l[r=Cl(Et(t))];!c&&s&&(c=l[r=Cl(yn(t))]),c&&Kt(c,e,6,i);const d=l[r+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,Kt(d,e,6,i)}}const Kc=new WeakMap;function Nr(e,t,n=!1){const l=n?Kc:t.emitsCache,i=l.get(e);if(i!==void 0)return i;const s=e.emits;let o={},r=!1;if(!ve(e)){const c=d=>{const a=Nr(d,t,!0);a&&(r=!0,it(o,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!s&&!r?(Fe(e)&&l.set(e,null),null):(fe(s)?s.forEach(c=>o[c]=null):it(o,s),Fe(e)&&l.set(e,o),o)}function vl(e,t){return!e||!sl(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ee(e,t[0].toLowerCase()+t.slice(1))||Ee(e,yn(t))||Ee(e,t))}function to(e){const{type:t,vnode:n,proxy:l,withProxy:i,propsOptions:[s],slots:o,attrs:r,emit:c,render:d,renderCache:a,props:f,data:v,setupState:h,ctx:y,inheritAttrs:C}=e,S=zi(e);let P,x;try{if(n.shapeFlag&4){const A=i||l,F=A;P=Ht(d.call(F,A,a,f,h,v,y)),x=r}else{const A=t;P=Ht(A.length>1?A(f,{attrs:r,slots:o,emit:c}):A(f,null)),x=t.props?r:Wc(r)}}catch(A){vi.length=0,pl(A,e,1),P=tt(gn)}let w=P;if(x&&C!==!1){const A=Object.keys(x),{shapeFlag:F}=w;A.length&&F&7&&(s&&A.some(ol)&&(x=zc(x,s)),w=Gn(w,x,!1,!0))}return n.dirs&&(w=Gn(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&xs(w,n.transition),P=w,zi(S),P}const Wc=e=>{let t;for(const n in e)(n==="class"||n==="style"||sl(n))&&((t||(t={}))[n]=e[n]);return t},zc=(e,t)=>{const n={};for(const l in e)(!ol(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function Gc(e,t,n){const{props:l,children:i,component:s}=e,{props:o,children:r,patchFlag:c}=t,d=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return l?no(l,o,d):!!o;if(c&8){const a=t.dynamicProps;for(let f=0;f<a.length;f++){const v=a[f];if(Vr(o,l,v)&&!vl(d,v))return!0}}}else return(i||r)&&(!r||!r.$stable)?!0:l===o?!1:l?o?no(l,o,d):!0:!!o;return!1}function no(e,t,n){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let i=0;i<l.length;i++){const s=l[i];if(Vr(t,e,s)&&!vl(n,s))return!0}return!1}function Vr(e,t,n){const l=e[n],i=t[n];return n==="style"&&Fe(l)&&Fe(i)?!Si(l,i):l!==i}function Xc({vnode:e,parent:t,suspense:n},l){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=l,e=i),i===e)(e=t.vnode).el=l,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=l)}const Hr={},Br=()=>Object.create(Hr),jr=e=>Object.getPrototypeOf(e)===Hr;function qc(e,t,n,l=!1){const i={},s=Br();e.propsDefaults=Object.create(null),Ur(e,t,i,s);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=l?i:Ju(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function Jc(e,t,n,l){const{props:i,attrs:s,vnode:{patchFlag:o}}=e,r=Se(i),[c]=e.propsOptions;let d=!1;if((l||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let f=0;f<a.length;f++){let v=a[f];if(vl(e.emitsOptions,v))continue;const h=t[v];if(c)if(Ee(s,v))h!==s[v]&&(s[v]=h,d=!0);else{const y=Et(v);i[y]=ql(c,r,y,h,e,!1)}else h!==s[v]&&(s[v]=h,d=!0)}}}else{Ur(e,t,i,s)&&(d=!0);let a;for(const f in r)(!t||!Ee(t,f)&&((a=yn(f))===f||!Ee(t,a)))&&(c?n&&(n[f]!==void 0||n[a]!==void 0)&&(i[f]=ql(c,r,f,void 0,e,!0)):delete i[f]);if(s!==r)for(const f in s)(!t||!Ee(t,f))&&(delete s[f],d=!0)}d&&nn(e.attrs,"set","")}function Ur(e,t,n,l){const[i,s]=e.propsOptions;let o=!1,r;if(t)for(let c in t){if(ai(c))continue;const d=t[c];let a;i&&Ee(i,a=Et(c))?!s||!s.includes(a)?n[a]=d:(r||(r={}))[a]=d:vl(e.emitsOptions,c)||(!(c in l)||d!==l[c])&&(l[c]=d,o=!0)}if(s){const c=Se(n),d=r||Oe;for(let a=0;a<s.length;a++){const f=s[a];n[f]=ql(i,c,f,d[f],e,!Ee(d,f))}}return o}function ql(e,t,n,l,i,s){const o=e[n];if(o!=null){const r=Ee(o,"default");if(r&&l===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&ve(c)){const{propsDefaults:d}=i;if(n in d)l=d[n];else{const a=Ti(i);l=d[n]=c.call(null,t),a()}}else l=c;i.ce&&i.ce._setProp(n,l)}o[0]&&(s&&!r?l=!1:o[1]&&(l===""||l===yn(n))&&(l=!0))}return l}const Zc=new WeakMap;function Yr(e,t,n=!1){const l=n?Zc:t.propsCache,i=l.get(e);if(i)return i;const s=e.props,o={},r=[];let c=!1;if(!ve(e)){const a=f=>{c=!0;const[v,h]=Yr(f,t,!0);it(o,v),h&&r.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!s&&!c)return Fe(e)&&l.set(e,jn),jn;if(fe(s))for(let a=0;a<s.length;a++){const f=Et(s[a]);io(f)&&(o[f]=Oe)}else if(s)for(const a in s){const f=Et(a);if(io(f)){const v=s[a],h=o[f]=fe(v)||ve(v)?{type:v}:it({},v),y=h.type;let C=!1,S=!0;if(fe(y))for(let P=0;P<y.length;++P){const x=y[P],w=ve(x)&&x.name;if(w==="Boolean"){C=!0;break}else w==="String"&&(S=!1)}else C=ve(y)&&y.name==="Boolean";h[0]=C,h[1]=S,(C||Ee(h,"default"))&&r.push(f)}}const d=[o,r];return Fe(e)&&l.set(e,d),d}function io(e){return e[0]!=="$"&&!ai(e)}const ks=e=>e==="_"||e==="_ctx"||e==="$stable",Cs=e=>fe(e)?e.map(Ht):[Ht(e)],Qc=(e,t,n)=>{if(t._n)return t;const l=pc((...i)=>Cs(t(...i)),n);return l._c=!1,l},Kr=(e,t,n)=>{const l=e._ctx;for(const i in e){if(ks(i))continue;const s=e[i];if(ve(s))t[i]=Qc(i,s,l);else if(s!=null){const o=Cs(s);t[i]=()=>o}}},Wr=(e,t)=>{const n=Cs(t);e.slots.default=()=>n},zr=(e,t,n)=>{for(const l in t)(n||!ks(l))&&(e[l]=t[l])},ed=(e,t,n)=>{const l=e.slots=Br();if(e.vnode.shapeFlag&32){const i=t._;i?(zr(l,t,n),n&&nr(l,"_",i,!0)):Kr(t,l)}else t&&Wr(e,t)},td=(e,t,n)=>{const{vnode:l,slots:i}=e;let s=!0,o=Oe;if(l.shapeFlag&32){const r=t._;r?n&&r===1?s=!1:zr(i,t,n):(s=!t.$stable,Kr(t,i)),o=t}else t&&(Wr(e,t),o={default:1});if(s)for(const r in i)!ks(r)&&o[r]==null&&delete i[r]},st=od;function nd(e){return id(e)}function id(e,t){const n=cl();n.__VUE__=!0;const{insert:l,remove:i,patchProp:s,createElement:o,createText:r,createComment:c,setText:d,setElementText:a,parentNode:f,nextSibling:v,setScopeId:h=Ut,insertStaticContent:y}=e,C=(g,_,$,B=null,H=null,j=null,Z=void 0,G=null,M=!!_.dynamicChildren)=>{if(g===_)return;g&&!Qn(g,_)&&(B=q(g),z(g,H,j,!0),g=null),_.patchFlag===-2&&(M=!1,_.dynamicChildren=null);const{type:L,ref:se,shapeFlag:Q}=_;switch(L){case gl:S(g,_,$,B);break;case gn:P(g,_,$,B);break;case Bi:g==null&&x(_,$,B,Z);break;case ne:pe(g,_,$,B,H,j,Z,G,M);break;default:Q&1?F(g,_,$,B,H,j,Z,G,M):Q&6?me(g,_,$,B,H,j,Z,G,M):(Q&64||Q&128)&&L.process(g,_,$,B,H,j,Z,G,M,R)}se!=null&&H?fi(se,g&&g.ref,j,_||g,!_):se==null&&g&&g.ref!=null&&fi(g.ref,null,j,g,!0)},S=(g,_,$,B)=>{if(g==null)l(_.el=r(_.children),$,B);else{const H=_.el=g.el;_.children!==g.children&&d(H,_.children)}},P=(g,_,$,B)=>{g==null?l(_.el=c(_.children||""),$,B):_.el=g.el},x=(g,_,$,B)=>{[g.el,g.anchor]=y(g.children,_,$,B,g.el,g.anchor)},w=({el:g,anchor:_},$,B)=>{let H;for(;g&&g!==_;)H=v(g),l(g,$,B),g=H;l(_,$,B)},A=({el:g,anchor:_})=>{let $;for(;g&&g!==_;)$=v(g),i(g),g=$;i(_)},F=(g,_,$,B,H,j,Z,G,M)=>{if(_.type==="svg"?Z="svg":_.type==="math"&&(Z="mathml"),g==null)N(_,$,B,H,j,Z,G,M);else{const L=g.el&&g.el._isVueCE?g.el:null;try{L&&L._beginPatch(),O(g,_,H,j,Z,G,M)}finally{L&&L._endPatch()}}},N=(g,_,$,B,H,j,Z,G)=>{let M,L;const{props:se,shapeFlag:Q,transition:re,dirs:de}=g;if(M=g.el=o(g.type,j,se&&se.is,se),Q&8?a(M,g.children):Q&16&&ie(g.children,M,null,B,H,Fl(g,j),Z,G),de&&bn(g,null,B,"created"),W(M,g,g.scopeId,Z,B),se){for(const Ae in se)Ae!=="value"&&!ai(Ae)&&s(M,Ae,null,se[Ae],j,B);"value"in se&&s(M,"value",null,se.value,j),(L=se.onVnodeBeforeMount)&&Rt(L,B,g)}de&&bn(g,null,B,"beforeMount");const _e=ld(H,re);_e&&re.beforeEnter(M),l(M,_,$),((L=se&&se.onVnodeMounted)||_e||de)&&st(()=>{try{L&&Rt(L,B,g),_e&&re.enter(M),de&&bn(g,null,B,"mounted")}finally{}},H)},W=(g,_,$,B,H)=>{if($&&h(g,$),B)for(let j=0;j<B.length;j++)h(g,B[j]);if(H){let j=H.subTree;if(_===j||qr(j.type)&&(j.ssContent===_||j.ssFallback===_)){const Z=H.vnode;W(g,Z,Z.scopeId,Z.slotScopeIds,H.parent)}}},ie=(g,_,$,B,H,j,Z,G,M=0)=>{for(let L=M;L<g.length;L++){const se=g[L]=G?Zt(g[L]):Ht(g[L]);C(null,se,_,$,B,H,j,Z,G)}},O=(g,_,$,B,H,j,Z)=>{const G=_.el=g.el;let{patchFlag:M,dynamicChildren:L,dirs:se}=_;M|=g.patchFlag&16;const Q=g.props||Oe,re=_.props||Oe;let de;if($&&wn($,!1),(de=re.onVnodeBeforeUpdate)&&Rt(de,$,_,g),se&&bn(_,g,$,"beforeUpdate"),$&&wn($,!0),(Q.innerHTML&&re.innerHTML==null||Q.textContent&&re.textContent==null)&&a(G,""),L?X(g.dynamicChildren,L,G,$,B,Fl(_,H),j):Z||le(g,_,G,null,$,B,Fl(_,H),j,!1),M>0){if(M&16)te(G,Q,re,$,H);else if(M&2&&Q.class!==re.class&&s(G,"class",null,re.class,H),M&4&&s(G,"style",Q.style,re.style,H),M&8){const _e=_.dynamicProps;for(let Ae=0;Ae<_e.length;Ae++){const Te=_e[Ae],He=Q[Te],ze=re[Te];(ze!==He||Te==="value")&&s(G,Te,He,ze,H,$)}}M&1&&g.children!==_.children&&a(G,_.children)}else!Z&&L==null&&te(G,Q,re,$,H);((de=re.onVnodeUpdated)||se)&&st(()=>{de&&Rt(de,$,_,g),se&&bn(_,g,$,"updated")},B)},X=(g,_,$,B,H,j,Z)=>{for(let G=0;G<_.length;G++){const M=g[G],L=_[G],se=M.el&&(M.type===ne||!Qn(M,L)||M.shapeFlag&198)?f(M.el):$;C(M,L,se,null,B,H,j,Z,!0)}},te=(g,_,$,B,H)=>{if(_!==$){if(_!==Oe)for(const j in _)!ai(j)&&!(j in $)&&s(g,j,_[j],null,H,B);for(const j in $){if(ai(j))continue;const Z=$[j],G=_[j];Z!==G&&j!=="value"&&s(g,j,G,Z,H,B)}"value"in $&&s(g,"value",_.value,$.value,H)}},pe=(g,_,$,B,H,j,Z,G,M)=>{const L=_.el=g?g.el:r(""),se=_.anchor=g?g.anchor:r("");let{patchFlag:Q,dynamicChildren:re,slotScopeIds:de}=_;de&&(G=G?G.concat(de):de),g==null?(l(L,$,B),l(se,$,B),ie(_.children||[],$,se,H,j,Z,G,M)):Q>0&&Q&64&&re&&g.dynamicChildren&&g.dynamicChildren.length===re.length?(X(g.dynamicChildren,re,$,H,j,Z,G),(_.key!=null||H&&_===H.subTree)&&As(g,_,!0)):le(g,_,$,se,H,j,Z,G,M)},me=(g,_,$,B,H,j,Z,G,M)=>{_.slotScopeIds=G,g==null?_.shapeFlag&512?H.ctx.activate(_,$,B,Z,M):ye(_,$,B,H,j,Z,M):De(g,_,M)},ye=(g,_,$,B,H,j,Z)=>{const G=g.component=fd(g,B,H);if(Or(g)&&(G.ctx.renderer=R),hd(G,!1,Z),G.asyncDep){if(H&&H.registerDep(G,$e,Z),!g.el){const M=G.subTree=tt(gn);P(null,M,_,$),g.placeholder=M.el}}else $e(G,g,_,$,H,j,Z)},De=(g,_,$)=>{const B=_.component=g.component;if(Gc(g,_,$))if(B.asyncDep&&!B.asyncResolved){be(B,_,$);return}else B.next=_,B.update();else _.el=g.el,B.vnode=_},$e=(g,_,$,B,H,j,Z)=>{const G=()=>{if(g.isMounted){let{next:Q,bu:re,u:de,parent:_e,vnode:Ae}=g;{const Ze=Gr(g);if(Ze){Q&&(Q.el=Ae.el,be(g,Q,Z)),Ze.asyncDep.then(()=>{st(()=>{g.isUnmounted||L()},H)});return}}let Te=Q,He;wn(g,!1),Q?(Q.el=Ae.el,be(g,Q,Z)):Q=Ae,re&&Ni(re),(He=Q.props&&Q.props.onVnodeBeforeUpdate)&&Rt(He,_e,Q,Ae),wn(g,!0);const ze=to(g),yt=g.subTree;g.subTree=ze,C(yt,ze,f(yt.el),q(yt),g,H,j),Q.el=ze.el,Te===null&&Xc(g,ze.el),de&&st(de,H),(He=Q.props&&Q.props.onVnodeUpdated)&&st(()=>Rt(He,_e,Q,Ae),H)}else{let Q;const{el:re,props:de}=_,{bm:_e,m:Ae,parent:Te,root:He,type:ze}=g,yt=pi(_);wn(g,!1),_e&&Ni(_e),!yt&&(Q=de&&de.onVnodeBeforeMount)&&Rt(Q,Te,_),wn(g,!0);{He.ce&&He.ce._hasShadowRoot()&&He.ce._injectChildStyle(ze,g.parent?g.parent.type:void 0);const Ze=g.subTree=to(g);C(null,Ze,$,B,g,H,j),_.el=Ze.el}if(Ae&&st(Ae,H),!yt&&(Q=de&&de.onVnodeMounted)){const Ze=_;st(()=>Rt(Q,Te,Ze),H)}(_.shapeFlag&256||Te&&pi(Te.vnode)&&Te.vnode.shapeFlag&256)&&g.a&&st(g.a,H),g.isMounted=!0,_=$=B=null}};g.scope.on();const M=g.effect=new rr(G);g.scope.off();const L=g.update=M.run.bind(M),se=g.job=M.runIfDirty.bind(M);se.i=g,se.id=g.uid,M.scheduler=()=>_s(se),wn(g,!0),L()},be=(g,_,$)=>{_.component=g;const B=g.vnode.props;g.vnode=_,g.next=null,Jc(g,_.props,B,$),td(g,_.children,$),on(),Ws(g),rn()},le=(g,_,$,B,H,j,Z,G,M=!1)=>{const L=g&&g.children,se=g?g.shapeFlag:0,Q=_.children,{patchFlag:re,shapeFlag:de}=_;if(re>0){if(re&128){Ne(L,Q,$,B,H,j,Z,G,M);return}else if(re&256){ke(L,Q,$,B,H,j,Z,G,M);return}}de&8?(se&16&&Ve(L,H,j),Q!==L&&a($,Q)):se&16?de&16?Ne(L,Q,$,B,H,j,Z,G,M):Ve(L,H,j,!0):(se&8&&a($,""),de&16&&ie(Q,$,B,H,j,Z,G,M))},ke=(g,_,$,B,H,j,Z,G,M)=>{g=g||jn,_=_||jn;const L=g.length,se=_.length,Q=Math.min(L,se);let re;for(re=0;re<Q;re++){const de=_[re]=M?Zt(_[re]):Ht(_[re]);C(g[re],de,$,null,H,j,Z,G,M)}L>se?Ve(g,H,j,!0,!1,Q):ie(_,$,B,H,j,Z,G,M,Q)},Ne=(g,_,$,B,H,j,Z,G,M)=>{let L=0;const se=_.length;let Q=g.length-1,re=se-1;for(;L<=Q&&L<=re;){const de=g[L],_e=_[L]=M?Zt(_[L]):Ht(_[L]);if(Qn(de,_e))C(de,_e,$,null,H,j,Z,G,M);else break;L++}for(;L<=Q&&L<=re;){const de=g[Q],_e=_[re]=M?Zt(_[re]):Ht(_[re]);if(Qn(de,_e))C(de,_e,$,null,H,j,Z,G,M);else break;Q--,re--}if(L>Q){if(L<=re){const de=re+1,_e=de<se?_[de].el:B;for(;L<=re;)C(null,_[L]=M?Zt(_[L]):Ht(_[L]),$,_e,H,j,Z,G,M),L++}}else if(L>re)for(;L<=Q;)z(g[L],H,j,!0),L++;else{const de=L,_e=L,Ae=new Map;for(L=_e;L<=re;L++){const Ge=_[L]=M?Zt(_[L]):Ht(_[L]);Ge.key!=null&&Ae.set(Ge.key,L)}let Te,He=0;const ze=re-_e+1;let yt=!1,Ze=0;const Wt=new Array(ze);for(L=0;L<ze;L++)Wt[L]=0;for(L=de;L<=Q;L++){const Ge=g[L];if(He>=ze){z(Ge,H,j,!0);continue}let ut;if(Ge.key!=null)ut=Ae.get(Ge.key);else for(Te=_e;Te<=re;Te++)if(Wt[Te-_e]===0&&Qn(Ge,_[Te])){ut=Te;break}ut===void 0?z(Ge,H,j,!0):(Wt[ut-_e]=L+1,ut>=Ze?Ze=ut:yt=!0,C(Ge,_[ut],$,null,H,j,Z,G,M),He++)}const Ii=yt?sd(Wt):jn;for(Te=Ii.length-1,L=ze-1;L>=0;L--){const Ge=_e+L,ut=_[Ge],kt=_[Ge+1],Pt=Ge+1<se?kt.el||Xr(kt):B;Wt[L]===0?C(null,ut,$,Pt,H,j,Z,G,M):yt&&(Te<0||L!==Ii[Te]?V(ut,$,Pt,2):Te--)}}},V=(g,_,$,B,H=null)=>{const{el:j,type:Z,transition:G,children:M,shapeFlag:L}=g;if(L&6){V(g.component.subTree,_,$,B);return}if(L&128){g.suspense.move(_,$,B);return}if(L&64){Z.move(g,_,$,R);return}if(Z===ne){l(j,_,$);for(let Q=0;Q<M.length;Q++)V(M[Q],_,$,B);l(g.anchor,_,$);return}if(Z===Bi){w(g,_,$);return}if(B!==2&&L&1&&G)if(B===0)G.beforeEnter(j),l(j,_,$),st(()=>G.enter(j),H);else{const{leave:Q,delayLeave:re,afterLeave:de}=G,_e=()=>{g.ctx.isUnmounted?i(j):l(j,_,$)},Ae=()=>{j._isLeaving&&j[xc](!0),Q(j,()=>{_e(),de&&de()})};re?re(j,_e,Ae):Ae()}else l(j,_,$)},z=(g,_,$,B=!1,H=!1)=>{const{type:j,props:Z,ref:G,children:M,dynamicChildren:L,shapeFlag:se,patchFlag:Q,dirs:re,cacheIndex:de,memo:_e}=g;if(Q===-2&&(H=!1),G!=null&&(on(),fi(G,null,$,g,!0),rn()),de!=null&&(_.renderCache[de]=void 0),se&256){_.ctx.deactivate(g);return}const Ae=se&1&&re,Te=!pi(g);let He;if(Te&&(He=Z&&Z.onVnodeBeforeUnmount)&&Rt(He,_,g),se&6)Je(g.component,$,B);else{if(se&128){g.suspense.unmount($,B);return}Ae&&bn(g,null,_,"beforeUnmount"),se&64?g.type.remove(g,_,$,R,B):L&&!L.hasOnce&&(j!==ne||Q>0&&Q&64)?Ve(L,_,$,!1,!0):(j===ne&&Q&384||!H&&se&16)&&Ve(M,_,$),B&&oe(g)}const ze=_e!=null&&de==null;(Te&&(He=Z&&Z.onVnodeUnmounted)||Ae||ze)&&st(()=>{He&&Rt(He,_,g),Ae&&bn(g,null,_,"unmounted"),ze&&(g.el=null)},$)},oe=g=>{const{type:_,el:$,anchor:B,transition:H}=g;if(_===ne){we($,B);return}if(_===Bi){A(g);return}const j=()=>{i($),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(g.shapeFlag&1&&H&&!H.persisted){const{leave:Z,delayLeave:G}=H,M=()=>Z($,j);G?G(g.el,j,M):M()}else j()},we=(g,_)=>{let $;for(;g!==_;)$=v(g),i(g),g=$;i(_)},Je=(g,_,$)=>{const{bum:B,scope:H,job:j,subTree:Z,um:G,m:M,a:L}=g;lo(M),lo(L),B&&Ni(B),H.stop(),j&&(j.flags|=8,z(Z,g,_,$)),G&&st(G,_),st(()=>{g.isUnmounted=!0},_)},Ve=(g,_,$,B=!1,H=!1,j=0)=>{for(let Z=j;Z<g.length;Z++)z(g[Z],_,$,B,H)},q=g=>{if(g.shapeFlag&6)return q(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const _=v(g.anchor||g.el),$=_&&_[Fr];return $?v($):_};let D=!1;const Me=(g,_,$)=>{let B;g==null?_._vnode&&(z(_._vnode,null,null,!0),B=_._vnode.component):C(_._vnode||null,g,_,null,null,null,$),_._vnode=g,D||(D=!0,Ws(B),Ar(),D=!1)},R={p:C,um:z,m:V,r:oe,mt:ye,mc:ie,pc:le,pbc:X,n:q,o:e};return{render:Me,hydrate:void 0,createApp:jc(Me)}}function Fl({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 wn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ld(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function As(e,t,n=!1){const l=e.children,i=t.children;if(fe(l)&&fe(i))for(let s=0;s<l.length;s++){const o=l[s];let r=i[s];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=i[s]=Zt(i[s]),r.el=o.el),!n&&r.patchFlag!==-2&&As(o,r)),r.type===gl&&(r.patchFlag===-1&&(r=i[s]=Zt(r)),r.el=o.el),r.type===gn&&!r.el&&(r.el=o.el)}}function sd(e){const t=e.slice(),n=[0];let l,i,s,o,r;const c=e.length;for(l=0;l<c;l++){const d=e[l];if(d!==0){if(i=n[n.length-1],e[i]<d){t[l]=i,n.push(l);continue}for(s=0,o=n.length-1;s<o;)r=s+o>>1,e[n[r]]<d?s=r+1:o=r;d<e[n[s]]&&(s>0&&(t[l]=n[s-1]),n[s]=l)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=t[o];return n}function Gr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Gr(t)}function lo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Xr(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Xr(t.subTree):null}const qr=e=>e.__isSuspense;function od(e,t){t&&t.pendingBranch?fe(e)?t.effects.push(...e):t.effects.push(e):fc(e)}const ne=Symbol.for("v-fgt"),gl=Symbol.for("v-txt"),gn=Symbol.for("v-cmt"),Bi=Symbol.for("v-stc"),vi=[];let _t=null;function m(e=!1){vi.push(_t=e?null:[])}function rd(){vi.pop(),_t=vi[vi.length-1]||null}let bi=1;function so(e,t=!1){bi+=e,e<0&&_t&&t&&(_t.hasOnce=!0)}function Jr(e){return e.dynamicChildren=bi>0?_t||jn:null,rd(),bi>0&&_t&&_t.push(e),e}function b(e,t,n,l,i,s){return Jr(u(e,t,n,l,i,s,!0))}function wt(e,t,n,l,i){return Jr(tt(e,t,n,l,i,!0))}function Zr(e){return e?e.__v_isVNode===!0:!1}function Qn(e,t){return e.type===t.type&&e.key===t.key}const Qr=({key:e})=>e??null,ji=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ue(e)||We(e)||ve(e)?{i:At,r:e,k:t,f:!!n}:e:null);function u(e,t=null,n=null,l=0,i=null,s=e===ne?0:1,o=!1,r=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qr(t),ref:t&&ji(t),scopeId:$r,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:l,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:At};return r?(Ss(c,n),s&128&&e.normalize(c)):n&&(c.shapeFlag|=Ue(n)?8:16),bi>0&&!o&&_t&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&&_t.push(c),c}const tt=ad;function ad(e,t=null,n=null,l=0,i=null,s=!1){if((!e||e===Rc)&&(e=gn),Zr(e)){const r=Gn(e,t,!0);return n&&Ss(r,n),bi>0&&!s&&_t&&(r.shapeFlag&6?_t[_t.indexOf(e)]=r:_t.push(r)),r.patchFlag=-2,r}if(yd(e)&&(e=e.__vccOpts),t){t=ud(t);let{class:r,style:c}=t;r&&!Ue(r)&&(t.class=J(r)),Fe(c)&&(fl(c)&&!fe(c)&&(c=it({},c)),t.style=Re(c))}const o=Ue(e)?1:qr(e)?128:yc(e)?64:Fe(e)?4:ve(e)?2:0;return u(e,t,n,l,i,o,s,!0)}function ud(e){return e?fl(e)||jr(e)?it({},e):e:null}function Gn(e,t,n=!1,l=!1){const{props:i,ref:s,patchFlag:o,children:r,transition:c}=e,d=t?ta(i||{},t):i,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Qr(d),ref:t&&t.ref?n&&s?fe(s)?s.concat(ji(t)):[s,ji(t)]:ji(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ne?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&&Gn(e.ssContent),ssFallback:e.ssFallback&&Gn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&l&&xs(a,c.clone(a)),a}function et(e=" ",t=0){return tt(gl,null,e,t)}function ea(e,t){const n=tt(Bi,null,e);return n.staticCount=t,n}function U(e="",t=!1){return t?(m(),wt(gn,null,e)):tt(gn,null,e)}function Ht(e){return e==null||typeof e=="boolean"?tt(gn):fe(e)?tt(ne,null,e.slice()):Zr(e)?Zt(e):tt(gl,null,String(e))}function Zt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gn(e)}function Ss(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(fe(t))n=16;else if(typeof t=="object")if(l&65){const i=t.default;i&&(i._c&&(i._d=!1),Ss(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!jr(t)?t._ctx=At:i===3&&At&&(At.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ve(t)?(t={default:t,_ctx:At},n=32):(t=String(t),l&64?(n=16,t=[et(t)]):n=8);e.children=t,e.shapeFlag|=n}function ta(...e){const t={};for(let n=0;n<e.length;n++){const l=e[n];for(const i in l)if(i==="class")t.class!==l.class&&(t.class=J([t.class,l.class]));else if(i==="style")t.style=Re([t.style,l.style]);else if(sl(i)){const s=t[i],o=l[i];o&&s!==o&&!(fe(s)&&s.includes(o))?t[i]=s?[].concat(s,o):o:o==null&&s==null&&!ol(i)&&(t[i]=o)}else i!==""&&(t[i]=l[i])}return t}function Rt(e,t,n,l=null){Kt(e,t,7,[n,l])}const cd=Dr();let dd=0;function fd(e,t,n){const l=e.type,i=(t?t.appContext:e.appContext)||cd,s={uid:dd++,vnode:e,type:l,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Fu(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Yr(l,i),emitsOptions:Nr(l,i),emit:null,emitted:null,propsDefaults:Oe,inheritAttrs:l.inheritAttrs,ctx:Oe,data:Oe,props:Oe,attrs:Oe,slots:Oe,refs:Oe,setupState:Oe,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=Yc.bind(null,s),e.ce&&e.ce(s),s}let pt=null;const pd=()=>pt||At;let qi,Jl;{const e=cl(),t=(n,l)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(l),s=>{i.length>1?i.forEach(o=>o(s)):i[0](s)}};qi=t("__VUE_INSTANCE_SETTERS__",n=>pt=n),Jl=t("__VUE_SSR_SETTERS__",n=>wi=n)}const Ti=e=>{const t=pt;return qi(e),e.scope.on(),()=>{e.scope.off(),qi(t)}},oo=()=>{pt&&pt.scope.off(),qi(null)};function na(e){return e.vnode.shapeFlag&4}let wi=!1;function hd(e,t=!1,n=!1){t&&Jl(t);const{props:l,children:i}=e.vnode,s=na(e);qc(e,l,s,t),ed(e,i,n||t);const o=s?vd(e,t):void 0;return t&&Jl(!1),o}function vd(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Mc);const{setup:l}=n;if(l){on();const i=e.setupContext=l.length>1?md(e):null,s=Ti(e),o=$i(l,e,0,[e.props,i]),r=Zo(o);if(rn(),s(),(r||e.sp)&&!pi(e)&&Pr(e),r){if(o.then(oo,oo),t)return o.then(c=>{ro(e,c)}).catch(c=>{pl(c,e,0)});e.asyncDep=o}else ro(e,o)}else ia(e)}function ro(e,t,n){ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Fe(t)&&(e.setupState=_r(t)),ia(e)}function ia(e,t,n){const l=e.type;e.render||(e.render=l.render||Ut);{const i=Ti(e);on();try{Lc(e)}finally{rn(),i()}}}const gd={get(e,t){return rt(e,"get",""),e[t]}};function md(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,gd),slots:e.slots,emit:e.emit,expose:t}}function ml(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(_r(Zu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in hi)return hi[n](e)},has(t,n){return n in t||n in hi}})):e.proxy}function yd(e){return ve(e)&&"__vccOpts"in e}const ae=(e,t)=>rc(e,t,wi),bd="3.5.31";/**
14
- * @vue/runtime-dom v3.5.31
15
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
- * @license MIT
17
- **/let Zl;const ao=typeof window<"u"&&window.trustedTypes;if(ao)try{Zl=ao.createPolicy("vue",{createHTML:e=>e})}catch{}const la=Zl?e=>Zl.createHTML(e):e=>e,wd="http://www.w3.org/2000/svg",_d="http://www.w3.org/1998/Math/MathML",Jt=typeof document<"u"?document:null,uo=Jt&&Jt.createElement("template"),xd={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const i=t==="svg"?Jt.createElementNS(wd,e):t==="mathml"?Jt.createElementNS(_d,e):n?Jt.createElement(e,{is:n}):Jt.createElement(e);return e==="select"&&l&&l.multiple!=null&&i.setAttribute("multiple",l.multiple),i},createText:e=>Jt.createTextNode(e),createComment:e=>Jt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Jt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,i,s){const o=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{uo.innerHTML=la(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const r=uo.content;if(l==="svg"||l==="mathml"){const c=r.firstChild;for(;c.firstChild;)r.appendChild(c.firstChild);r.removeChild(c)}t.insertBefore(r,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},kd=Symbol("_vtc");function Cd(e,t,n){const l=e[kd];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const co=Symbol("_vod"),Ad=Symbol("_vsh"),Sd=Symbol(""),$d=/(?:^|;)\s*display\s*:/;function Td(e,t,n){const l=e.style,i=Ue(n);let s=!1;if(n&&!i){if(t)if(Ue(t))for(const o of t.split(";")){const r=o.slice(0,o.indexOf(":")).trim();n[r]==null&&Ui(l,r,"")}else for(const o in t)n[o]==null&&Ui(l,o,"");for(const o in n)o==="display"&&(s=!0),Ui(l,o,n[o])}else if(i){if(t!==n){const o=l[Sd];o&&(n+=";"+o),l.cssText=n,s=$d.test(n)}}else t&&e.removeAttribute("style");co in e&&(e[co]=s?l.display:"",e[Ad]&&(l.display="none"))}const fo=/\s*!important$/;function Ui(e,t,n){if(fe(n))n.forEach(l=>Ui(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=Ed(e,t);fo.test(n)?e.setProperty(yn(l),n.replace(fo,""),"important"):e[l]=n}}const po=["Webkit","Moz","ms"],Il={};function Ed(e,t){const n=Il[t];if(n)return n;let l=Et(t);if(l!=="filter"&&l in e)return Il[t]=l;l=tr(l);for(let i=0;i<po.length;i++){const s=po[i]+l;if(s in e)return Il[t]=s}return t}const ho="http://www.w3.org/1999/xlink";function vo(e,t,n,l,i,s=Tu(t)){l&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ho,t.slice(6,t.length)):e.setAttributeNS(ho,t,n):n==null||s&&!ir(n)?e.removeAttribute(t):e.setAttribute(t,s?"":St(n)?String(n):n)}function go(e,t,n,l,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?la(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const r=s==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(r!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const r=typeof e[t];r==="boolean"?n=ir(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 Sn(e,t,n,l){e.addEventListener(t,n,l)}function Fd(e,t,n,l){e.removeEventListener(t,n,l)}const mo=Symbol("_vei");function Id(e,t,n,l,i=null){const s=e[mo]||(e[mo]={}),o=s[t];if(l&&o)o.value=l;else{const[r,c]=Pd(t);if(l){const d=s[t]=Md(l,i);Sn(e,r,d,c)}else o&&(Fd(e,r,o,c),s[t]=void 0)}}const yo=/(?:Once|Passive|Capture)$/;function Pd(e){let t;if(yo.test(e)){t={};let l;for(;l=e.match(yo);)e=e.slice(0,e.length-l[0].length),t[l[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):yn(e.slice(2)),t]}let Pl=0;const Od=Promise.resolve(),Rd=()=>Pl||(Od.then(()=>Pl=0),Pl=Date.now());function Md(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;Kt(Ld(l,n.value),t,5,[l])};return n.value=e,n.attached=Rd(),n}function Ld(e,t){if(fe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(l=>i=>!i._stopped&&l&&l(i))}else return t}const bo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Dd=(e,t,n,l,i,s)=>{const o=i==="svg";t==="class"?Cd(e,l,o):t==="style"?Td(e,n,l):sl(t)?ol(t)||Id(e,t,n,l,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Nd(e,t,l,o))?(go(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&vo(e,t,l,o,s,t!=="value")):e._isVueCE&&(Vd(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ue(l)))?go(e,Et(t),l,s,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),vo(e,t,l,o))};function Nd(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&bo(t)&&ve(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return bo(t)&&Ue(n)?!1:t in e}function Vd(e,t){const n=e._def.props;if(!n)return!1;const l=Et(t);return Array.isArray(n)?n.some(i=>Et(i)===l):Object.keys(n).some(i=>Et(i)===l)}const Ji=e=>{const t=e.props["onUpdate:modelValue"]||!1;return fe(t)?n=>Ni(t,n):t};function Hd(e){e.target.composing=!0}function wo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Wn=Symbol("_assign");function _o(e,t,n){return t&&(e=e.trim()),n&&(e=ps(e)),e}const je={created(e,{modifiers:{lazy:t,trim:n,number:l}},i){e[Wn]=Ji(i);const s=l||i.props&&i.props.type==="number";Sn(e,t?"change":"input",o=>{o.target.composing||e[Wn](_o(e.value,n,s))}),(n||s)&&Sn(e,"change",()=>{e.value=_o(e.value,n,s)}),t||(Sn(e,"compositionstart",Hd),Sn(e,"compositionend",wo),Sn(e,"change",wo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:i,number:s}},o){if(e[Wn]=Ji(o),e.composing)return;const r=(s||e.type==="number")&&!/^0\d/.test(e.value)?ps(e.value):e.value,c=t??"";if(r===c)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(l&&t===n||i&&e.value.trim()===c)||(e.value=c)}},ei={deep:!0,created(e,t,n){e[Wn]=Ji(n),Sn(e,"change",()=>{const l=e._modelValue,i=Bd(e),s=e.checked,o=e[Wn];if(fe(l)){const r=lr(l,i),c=r!==-1;if(s&&!c)o(l.concat(i));else if(!s&&c){const d=[...l];d.splice(r,1),o(d)}}else if(rl(l)){const r=new Set(l);s?r.add(i):r.delete(i),o(r)}else o(sa(e,s))})},mounted:xo,beforeUpdate(e,t,n){e[Wn]=Ji(n),xo(e,t,n)}};function xo(e,{value:t,oldValue:n},l){e._modelValue=t;let i;if(fe(t))i=lr(t,l.props.value)>-1;else if(rl(t))i=t.has(l.props.value);else{if(t===n)return;i=Si(t,sa(e,!0))}e.checked!==i&&(e.checked=i)}function Bd(e){return"_value"in e?e._value:e.value}function sa(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const jd=["ctrl","shift","alt","meta"],Ud={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)=>jd.some(n=>e[`${n}Key`]&&!t.includes(n))},Be=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),l=t.join(".");return n[l]||(n[l]=((i,...s)=>{for(let o=0;o<t.length;o++){const r=Ud[t[o]];if(r&&r(i,t))return}return e(i,...s)}))},Yd={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ct=(e,t)=>{const n=e._withKeys||(e._withKeys={}),l=t.join(".");return n[l]||(n[l]=(i=>{if(!("key"in i))return;const s=yn(i.key);if(t.some(o=>o===s||Yd[o]===s))return e(i)}))},Kd=it({patchProp:Dd},xd);let ko;function Wd(){return ko||(ko=nd(Kd))}const zd=((...e)=>{const t=Wd().createApp(...e),{mount:n}=t;return t.mount=l=>{const i=Xd(l);if(!i)return;const s=t._component;!ve(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=n(i,!1,Gd(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t});function Gd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Xd(e){return Ue(e)?document.querySelector(e):e}const qd={class:"layout-controls"},Jd={class:"control-row"},Zd={class:"button-group"},Qd=["onClick"],ef={class:"control-row"},tf={class:"button-group"},nf={class:"control-row"},lf={class:"button-group"},sf=["title","onClick"],of={class:"control-row"},rf={class:"button-group"},af=["title","onClick"],uf={class:"control-row"},cf={class:"num-input-group"},df=["value"],ff={class:"num-value"},pf=lt({__name:"LayoutControls",props:{computedStyles:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t,i=ae(()=>n.computedStyles.display||"block"),s=ae(()=>n.computedStyles["flex-direction"]||"row"),o=ae(()=>n.computedStyles["align-items"]||"stretch"),r=ae(()=>n.computedStyles["justify-content"]||"flex-start"),c=ae(()=>n.computedStyles.gap||"0px"),d=["block","flex","grid","inline-flex","inline","none"],a=[{value:"flex-start",icon:"⬆",label:"Start"},{value:"center",icon:"⬌",label:"Center"},{value:"flex-end",icon:"⬇",label:"End"},{value:"stretch",icon:"⇕",label:"Stretch"}],f=[{value:"flex-start",icon:"◧",label:"Start"},{value:"center",icon:"◫",label:"Center"},{value:"flex-end",icon:"◨",label:"End"},{value:"space-between",icon:"⟺",label:"Between"},{value:"space-around",icon:"⟷",label:"Around"}],v=ae(()=>i.value==="flex"||i.value==="inline-flex");function h(y){return parseFloat(y)||0}return(y,C)=>(m(),b("div",qd,[u("div",Jd,[C[5]||(C[5]=u("label",{class:"control-label"},"Display",-1)),u("div",Zd,[(m(),b(ne,null,ge(d,S=>u("button",{key:S,class:J(["seg-btn",{active:i.value===S}]),onClick:P=>l("change","display",S)},I(S),11,Qd)),64))])]),v.value?(m(),b(ne,{key:0},[u("div",ef,[C[6]||(C[6]=u("label",{class:"control-label"},"Direction",-1)),u("div",tf,[u("button",{class:J(["seg-btn icon-btn",{active:s.value==="row"}]),onClick:C[0]||(C[0]=S=>l("change","flex-direction","row")),title:"Row"},"→",2),u("button",{class:J(["seg-btn icon-btn",{active:s.value==="row-reverse"}]),onClick:C[1]||(C[1]=S=>l("change","flex-direction","row-reverse")),title:"Row Reverse"},"←",2),u("button",{class:J(["seg-btn icon-btn",{active:s.value==="column"}]),onClick:C[2]||(C[2]=S=>l("change","flex-direction","column")),title:"Column"},"↓",2),u("button",{class:J(["seg-btn icon-btn",{active:s.value==="column-reverse"}]),onClick:C[3]||(C[3]=S=>l("change","flex-direction","column-reverse")),title:"Column Reverse"},"↑",2)])]),u("div",nf,[C[7]||(C[7]=u("label",{class:"control-label"},"Align",-1)),u("div",lf,[(m(),b(ne,null,ge(a,S=>u("button",{key:S.value,class:J(["seg-btn",{active:o.value===S.value}]),title:S.label,onClick:P=>l("change","align-items",S.value)},I(S.icon),11,sf)),64))])]),u("div",of,[C[8]||(C[8]=u("label",{class:"control-label"},"Justify",-1)),u("div",rf,[(m(),b(ne,null,ge(f,S=>u("button",{key:S.value,class:J(["seg-btn",{active:r.value===S.value}]),title:S.label,onClick:P=>l("change","justify-content",S.value)},I(S.icon),11,af)),64))])]),u("div",uf,[C[9]||(C[9]=u("label",{class:"control-label"},"Gap",-1)),u("div",cf,[u("input",{type:"range",min:"0",max:"64",step:"1",value:h(c.value),class:"range-input",onInput:C[4]||(C[4]=S=>l("change","gap",S.target.value+"px"))},null,40,df),u("span",ff,I(h(c.value))+"px",1)])])],64)):U("",!0)]))}}),vt=(e,t)=>{const n=e.__vccOpts||e;for(const[l,i]of t)n[l]=i;return n},hf=vt(pf,[["__scopeId","data-v-548da941"]]),vf={class:"spacing-controls"},gf={class:"box-model"},mf={class:"margin-box"},yf=["value"],bf=["value"],wf=["value"],_f=["value"],xf={class:"padding-box"},kf=["value"],Cf=["value"],Af=["value"],Sf=["value"],$f={class:"content-box"},Tf=lt({__name:"SpacingControls",props:{computedStyles:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t;function i(c){return parseFloat(c)||0}function s(c){const d=c.split(" ").map(a=>parseFloat(a)||0);return d.length===1?{top:d[0],right:d[0],bottom:d[0],left:d[0]}:d.length===2?{top:d[0],right:d[1],bottom:d[0],left:d[1]}:d.length===3?{top:d[0],right:d[1],bottom:d[2],left:d[1]}:{top:d[0],right:d[1],bottom:d[2],left:d[3]}}const o=ae(()=>s(n.computedStyles.padding||"0")),r=ae(()=>s(n.computedStyles.margin||"0"));return(c,d)=>(m(),b("div",vf,[u("div",gf,[u("div",mf,[d[9]||(d[9]=u("span",{class:"box-label margin-label"},"margin",-1)),u("input",{class:"side-input top",value:r.value.top,onChange:d[0]||(d[0]=a=>l("change","margin-top",a.target.value+"px"))},null,40,yf),u("input",{class:"side-input right",value:r.value.right,onChange:d[1]||(d[1]=a=>l("change","margin-right",a.target.value+"px"))},null,40,bf),u("input",{class:"side-input bottom",value:r.value.bottom,onChange:d[2]||(d[2]=a=>l("change","margin-bottom",a.target.value+"px"))},null,40,wf),u("input",{class:"side-input left",value:r.value.left,onChange:d[3]||(d[3]=a=>l("change","margin-left",a.target.value+"px"))},null,40,_f),u("div",xf,[d[8]||(d[8]=u("span",{class:"box-label padding-label"},"padding",-1)),u("input",{class:"side-input top",value:o.value.top,onChange:d[4]||(d[4]=a=>l("change","padding-top",a.target.value+"px"))},null,40,kf),u("input",{class:"side-input right",value:o.value.right,onChange:d[5]||(d[5]=a=>l("change","padding-right",a.target.value+"px"))},null,40,Cf),u("input",{class:"side-input bottom",value:o.value.bottom,onChange:d[6]||(d[6]=a=>l("change","padding-bottom",a.target.value+"px"))},null,40,Af),u("input",{class:"side-input left",value:o.value.left,onChange:d[7]||(d[7]=a=>l("change","padding-left",a.target.value+"px"))},null,40,Sf),u("div",$f,I(i(n.computedStyles.width||"0").toFixed(0))+" × "+I(i(n.computedStyles.height||"0").toFixed(0)),1)])])])]))}}),Ef=vt(Tf,[["__scopeId","data-v-e06fb04c"]]),Ff={class:"size-controls"},If={class:"size-row"},Pf={class:"size-field"},Of={class:"size-input-group"},Rf=["value"],Mf={class:"size-field"},Lf={class:"size-input-group"},Df=["value"],Nf={class:"control-row"},Vf={class:"button-group"},Hf=["onClick"],Bf=lt({__name:"SizeControls",props:{computedStyles:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t;function i(d){return parseFloat(d)||0}const s=ae(()=>n.computedStyles.width||"auto"),o=ae(()=>n.computedStyles.height||"auto"),r=ae(()=>n.computedStyles.overflow||"visible"),c=["visible","hidden","scroll","auto"];return(d,a)=>(m(),b("div",Ff,[u("div",If,[u("div",Pf,[a[3]||(a[3]=u("label",{class:"control-label"},"Width",-1)),u("div",Of,[u("input",{class:"size-input",value:i(s.value),type:"number",onChange:a[0]||(a[0]=f=>l("change","width",f.target.value+"px"))},null,40,Rf),a[2]||(a[2]=u("span",{class:"size-unit"},"px",-1))])]),u("div",Mf,[a[5]||(a[5]=u("label",{class:"control-label"},"Height",-1)),u("div",Lf,[u("input",{class:"size-input",value:i(o.value),type:"number",onChange:a[1]||(a[1]=f=>l("change","height",f.target.value+"px"))},null,40,Df),a[4]||(a[4]=u("span",{class:"size-unit"},"px",-1))])])]),u("div",Nf,[a[6]||(a[6]=u("label",{class:"control-label"},"Overflow",-1)),u("div",Vf,[(m(),b(ne,null,ge(c,f=>u("button",{key:f,class:J(["seg-btn",{active:r.value===f}]),onClick:v=>l("change","overflow",f)},I(f),11,Hf)),64))])])]))}}),jf=vt(Bf,[["__scopeId","data-v-c3ca7e31"]]),Uf=[{name:"Slate",shades:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"}},{name:"Gray",shades:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"}},{name:"Zinc",shades:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"}},{name:"Neutral",shades:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"}},{name:"Stone",shades:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},{name:"Red",shades:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"}},{name:"Orange",shades:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"}},{name:"Amber",shades:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"}},{name:"Yellow",shades:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"}},{name:"Lime",shades:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"}},{name:"Green",shades:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"}},{name:"Emerald",shades:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"}},{name:"Teal",shades:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"}},{name:"Cyan",shades:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"}},{name:"Sky",shades:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"}},{name:"Blue",shades:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"}},{name:"Indigo",shades:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4e"}},{name:"Violet",shades:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"}},{name:"Purple",shades:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"}},{name:"Fuchsia",shades:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"}},{name:"Pink",shades:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"}},{name:"Rose",shades:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}}],Yf=["50","100","200","300","400","500","600","700","800","900","950"],Ol=Y([]),Kf=20;function Ql(e){const t=e.match(/\d+/g);if(!t||t.length<3)return"#000000";const[n,l,i]=t.map(Number);return"#"+[n,l,i].map(s=>s.toString(16).padStart(2,"0")).join("")}function Wf(e,t){var l;if(!e||e==="inherit"||e==="initial"||e==="unset")return null;const n=t.createElement("span");n.style.display="none",n.style.color="",t.body.appendChild(n);try{n.style.color=e;const i=(l=t.defaultView)==null?void 0:l.getComputedStyle(n).color;return!i||i===""?null:Ql(i)}finally{n.remove()}}function zf(e){var s;const t=e.documentElement,n=new Set;for(const o of Array.from(e.styleSheets))try{for(const r of Array.from(o.cssRules))if(r instanceof CSSStyleRule&&((s=r.selectorText)!=null&&s.includes(":root")))for(let c=0;c<r.style.length;c++){const d=r.style[c];d.startsWith("--")&&n.add(d)}}catch{}const l=getComputedStyle(t),i=[];for(const o of n){const r=l.getPropertyValue(o).trim(),c=Wf(r,e);c&&i.push({label:o,value:c,source:"css-var"})}return i}function Gf(e){const t=Y([]);let n=!1;const l=ae(()=>Uf.map(c=>({name:c.name,swatches:Yf.map(d=>({label:`${c.name.toLowerCase()}-${d}`,value:c.shades[d],source:"tailwind"}))}))),i=ae(()=>t.value.length===0?null:{name:"App Variables",swatches:t.value});function s(){const c=e.value;c&&(t.value=zf(c),n=!0)}function o(){n||s()}function r(c){const d=c.toLowerCase();Ol.value=[{label:d,value:d,source:"recent"},...Ol.value.filter(a=>a.value!==d)].slice(0,Kf)}return{tailwindCategories:l,cssVarCategory:i,recentColors:Ol,ensureScanned:o,refreshCssVars:s,addRecentColor:r}}const Xf={class:"picker-trigger"},qf=["value"],Jf={key:0,class:"color-match"},Zf={class:"palette-tabs"},Qf={key:0,class:"palette-body"},ep={class:"family-label"},tp={class:"swatch-row"},np=["title","onClick"],ip={key:1,class:"palette-body"},lp={key:0,class:"var-grid"},sp=["onClick"],op={class:"var-name"},rp={class:"var-hex"},ap={key:1,class:"empty-msg"},up={key:2,class:"palette-body"},cp={key:0,class:"swatch-grid"},dp=["title","onClick"],fp={key:1,class:"empty-msg"},pp=lt({__name:"ColorPalettePicker",props:{modelValue:{},iframeDoc:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,l=t,{tailwindCategories:i,cssVarCategory:s,recentColors:o,ensureScanned:r,addRecentColor:c}=Gf(lc(n,"iframeDoc")),d=Y(!1),a=Y("tailwind"),f=Y(null),v=Y(null);function h(){d.value=!d.value,d.value&&r()}function y(P){l("update:modelValue",P),c(P),d.value=!1}function C(P){var w,A;if(!d.value)return;const x=P.target;(w=f.value)!=null&&w.contains(x)||(A=v.value)!=null&&A.contains(x)||(d.value=!1)}const S=ae(()=>{var w,A;const P=(w=n.modelValue)==null?void 0:w.toLowerCase();if(!P)return null;for(const F of i.value){const N=F.swatches.find(W=>W.value.toLowerCase()===P);if(N)return N.label}const x=(A=s.value)==null?void 0:A.swatches.find(F=>F.value.toLowerCase()===P);return x?x.label:null});return qn(()=>{document.addEventListener("mousedown",C)}),In(()=>{document.removeEventListener("mousedown",C)}),(P,x)=>(m(),b("div",{class:"color-palette-picker",ref_key:"triggerRef",ref:v},[u("div",Xf,[u("input",{type:"color",value:e.modelValue,class:"color-swatch",onInput:x[0]||(x[0]=w=>P.$emit("update:modelValue",w.target.value))},null,40,qf),u("button",{class:J(["palette-btn",{active:d.value}]),onClick:h,title:"Color palette"},[...x[4]||(x[4]=[ea('<svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor" data-v-b0ade670><rect x="0" y="0" width="7" height="7" rx="1.5" data-v-b0ade670></rect><rect x="9" y="0" width="7" height="7" rx="1.5" data-v-b0ade670></rect><rect x="0" y="9" width="7" height="7" rx="1.5" data-v-b0ade670></rect><rect x="9" y="9" width="7" height="7" rx="1.5" data-v-b0ade670></rect></svg>',1)])],2),S.value?(m(),b("span",Jf,I(S.value),1)):U("",!0)]),d.value?(m(),b("div",{key:0,class:"palette-popover",ref_key:"popoverRef",ref:f},[u("div",Zf,[u("button",{class:J(["ptab",{active:a.value==="tailwind"}]),onClick:x[1]||(x[1]=w=>a.value="tailwind")},"Tailwind",2),u("button",{class:J(["ptab",{active:a.value==="css-var"}]),onClick:x[2]||(x[2]=w=>a.value="css-var")},"App Vars",2),u("button",{class:J(["ptab",{active:a.value==="recent"}]),onClick:x[3]||(x[3]=w=>a.value="recent")},"Recent",2)]),a.value==="tailwind"?(m(),b("div",Qf,[(m(!0),b(ne,null,ge(ee(i),w=>(m(),b("div",{key:w.name,class:"color-family"},[u("span",ep,I(w.name),1),u("div",tp,[(m(!0),b(ne,null,ge(w.swatches,A=>{var F;return m(),b("button",{key:A.value,class:J(["swatch",{selected:A.value.toLowerCase()===((F=e.modelValue)==null?void 0:F.toLowerCase())}]),style:Re({background:A.value}),title:A.label,onClick:N=>y(A.value)},null,14,np)}),128))])]))),128))])):U("",!0),a.value==="css-var"?(m(),b("div",ip,[ee(s)?(m(),b("div",lp,[(m(!0),b(ne,null,ge(ee(s).swatches,w=>{var A;return m(),b("button",{key:w.label,class:J(["var-swatch",{selected:w.value.toLowerCase()===((A=e.modelValue)==null?void 0:A.toLowerCase())}]),onClick:F=>y(w.value)},[u("span",{class:"var-color",style:Re({background:w.value})},null,4),u("span",op,I(w.label),1),u("span",rp,I(w.value),1)],10,sp)}),128))])):(m(),b("p",ap,"No color variables detected"))])):U("",!0),a.value==="recent"?(m(),b("div",up,[ee(o).length?(m(),b("div",cp,[(m(!0),b(ne,null,ge(ee(o),w=>{var A;return m(),b("button",{key:w.value,class:J(["swatch large",{selected:w.value.toLowerCase()===((A=e.modelValue)==null?void 0:A.toLowerCase())}]),style:Re({background:w.value}),title:w.value,onClick:F=>y(w.value)},null,14,dp)}),128))])):(m(),b("p",fp,"No colors used yet"))])):U("",!0)],512)):U("",!0)],512))}}),es=vt(pp,[["__scopeId","data-v-b0ade670"]]),hp={class:"appearance-controls"},vp={class:"control-row"},gp={class:"color-input-group"},mp={class:"color-value"},yp={class:"control-row"},bp={class:"color-input-group"},wp={class:"color-value"},_p={class:"control-row"},xp={class:"num-input-group"},kp=["value"],Cp={class:"num-value"},Ap={class:"control-row"},Sp={class:"button-group"},$p=["onClick"],Tp={class:"control-row"},Ep={class:"num-input-group"},Fp=["value"],Ip={class:"num-value"},Pp={class:"control-row"},Op={class:"num-input-group"},Rp=["value"],Mp={class:"num-value"},Lp=lt({__name:"AppearanceControls",props:{computedStyles:{},iframeDoc:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t;function i(v){return parseFloat(v)||0}const s=ae(()=>n.computedStyles["background-color"]||"rgba(0,0,0,0)"),o=ae(()=>n.computedStyles.color||"#000"),r=ae(()=>i(n.computedStyles["font-size"]||"16")),c=ae(()=>n.computedStyles["font-weight"]||"400"),d=ae(()=>i(n.computedStyles["border-radius"]||"0")),a=ae(()=>i(n.computedStyles.opacity||"1")),f=["100","300","400","500","600","700","900"];return(v,h)=>(m(),b("div",hp,[u("div",vp,[h[5]||(h[5]=u("label",{class:"control-label"},"Background",-1)),u("div",gp,[tt(es,{modelValue:ee(Ql)(s.value),iframeDoc:e.iframeDoc,"onUpdate:modelValue":h[0]||(h[0]=y=>l("change","background-color",y))},null,8,["modelValue","iframeDoc"]),u("span",mp,I(s.value),1)])]),u("div",yp,[h[6]||(h[6]=u("label",{class:"control-label"},"Text Color",-1)),u("div",bp,[tt(es,{modelValue:ee(Ql)(o.value),iframeDoc:e.iframeDoc,"onUpdate:modelValue":h[1]||(h[1]=y=>l("change","color",y))},null,8,["modelValue","iframeDoc"]),u("span",wp,I(o.value),1)])]),u("div",_p,[h[7]||(h[7]=u("label",{class:"control-label"},"Font Size",-1)),u("div",xp,[u("input",{type:"range",min:"8",max:"72",step:"1",value:r.value,class:"range-input",onInput:h[2]||(h[2]=y=>l("change","font-size",y.target.value+"px"))},null,40,kp),u("span",Cp,I(r.value)+"px",1)])]),u("div",Ap,[h[8]||(h[8]=u("label",{class:"control-label"},"Font Weight",-1)),u("div",Sp,[(m(),b(ne,null,ge(f,y=>u("button",{key:y,class:J(["seg-btn",{active:c.value===y}]),onClick:C=>l("change","font-weight",y)},I(y),11,$p)),64))])]),u("div",Tp,[h[9]||(h[9]=u("label",{class:"control-label"},"Border Radius",-1)),u("div",Ep,[u("input",{type:"range",min:"0",max:"50",step:"1",value:d.value,class:"range-input",onInput:h[3]||(h[3]=y=>l("change","border-radius",y.target.value+"px"))},null,40,Fp),u("span",Ip,I(d.value)+"px",1)])]),u("div",Pp,[h[10]||(h[10]=u("label",{class:"control-label"},"Opacity",-1)),u("div",Op,[u("input",{type:"range",min:"0",max:"1",step:"0.05",value:a.value,class:"range-input",onInput:h[4]||(h[4]=y=>l("change","opacity",y.target.value))},null,40,Rp),u("span",Mp,I((a.value*100).toFixed(0))+"%",1)])])]))}}),Dp=vt(Lp,[["__scopeId","data-v-47449e0a"]]);let Bt=null,ts=0,Rl=null;const si=new Map;function Np(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/__annotask/ws`}function oa(){try{Bt=new WebSocket(Np()),Bt.onopen=()=>{ts=0,console.log("[Annotask] WebSocket connected")},Bt.onmessage=e=>{try{const t=JSON.parse(e.data);if(t.event){const n=si.get(t.event);if(n)for(const l of n)l(t.data)}}catch{}},Bt.onclose=()=>{Bt=null,Co()},Bt.onerror=()=>{}}catch{Co()}}function Co(){if(Rl)return;ts++;const e=Math.min(1e3*Math.pow(2,ts-1),3e4);Rl=setTimeout(()=>{Rl=null,oa()},e)}function ra(e,t){return si.has(e)||si.set(e,new Set),si.get(e).add(t),()=>{var n;(n=si.get(e))==null||n.delete(t)}}function Vp(e,t){(Bt==null?void 0:Bt.readyState)===WebSocket.OPEN&&Bt.send(JSON.stringify({event:e,data:t,timestamp:Date.now()}))}oa();const ns=Y(null),is=Y(!1),aa=Y(!0);let Ao=!1;async function Ml(){try{const t=await(await fetch("/__annotask/api/design-spec")).json();ns.value=t,is.value=!!t.initialized}catch{ns.value=null,is.value=!1}finally{aa.value=!1}}function $s(){return Ao||(Ao=!0,Ml(),ra("designspec:updated",()=>Ml())),{designSpec:ns,isInitialized:is,isLoading:aa,refetch:Ml}}const ls=[{id:"iphone-se",label:"iPhone SE",width:375,height:667,category:"phone"},{id:"iphone-14-pro",label:"iPhone 14 Pro",width:393,height:852,category:"phone"},{id:"iphone-16-pro-max",label:"iPhone 16 Pro Max",width:440,height:956,category:"phone"},{id:"pixel-7",label:"Pixel 7",width:412,height:915,category:"phone"},{id:"ipad",label:"iPad",width:768,height:1024,category:"tablet"},{id:"ipad-pro",label:'iPad Pro 12.9"',width:1024,height:1366,category:"tablet"},{id:"laptop",label:"Laptop",width:1366,height:768,category:"desktop"},{id:"desktop",label:"Desktop",width:1440,height:900,category:"desktop"},{id:"desktop-xl",label:"Desktop XL",width:1920,height:1080,category:"desktop"}],Qt=Y(null),en=Y(null),tn=Y(null),Nt=Y(!1);try{const e=localStorage.getItem("annotask:viewport");if(e){const t=JSON.parse(e);Qt.value=t.presetId??null,en.value=t.customWidth??null,tn.value=t.customHeight??null,Nt.value=t.rotated??!1}}catch{}function Hp(){localStorage.setItem("annotask:viewport",JSON.stringify({presetId:Qt.value,customWidth:en.value,customHeight:tn.value,rotated:Nt.value}))}ot([Qt,en,tn,Nt],Hp);function Ts(){const e=ae(()=>Qt.value?ls.find(o=>o.id===Qt.value)??null:null),t=ae(()=>!Qt.value&&!en.value&&!tn.value),n=ae(()=>{const o=e.value;if(o){const r=Nt.value?o.height:o.width,c=Nt.value?o.width:o.height;return{width:r,height:c,label:o.label}}return en.value||tn.value?{width:en.value,height:tn.value,label:"Custom"}:{width:null,height:null,label:"Full Width"}});function l(o){Qt.value=(o==null?void 0:o.id)??null,en.value=null,tn.value=null,Nt.value=!1}function i(o,r){Qt.value=null,en.value=o,tn.value=r,Nt.value=!1}function s(){Nt.value=!Nt.value}return{activePreset:e,activePresetId:Qt,customWidth:en,customHeight:tn,rotated:Nt,effectiveViewport:n,isFullWidth:t,selectPreset:l,setCustomDimensions:i,toggleRotate:s,VIEWPORT_PRESETS:ls}}const So=100,dn=Y([]);function ua(){function e(i,s,o){const r={};for(const[c,d]of Object.entries(o))d!==""&&(r[c]=d);dn.value.push({event:i,route:s,data:r}),dn.value.length>So&&dn.value.splice(0,dn.value.length-So)}function t(){const i=[];for(const s of dn.value)if(s.event==="route_change"){const o=s.data.path||s.route;i[i.length-1]!==o&&i.push(o)}else i.length===0&&s.route&&i.push(s.route);return i}function n(i){const s=dn.value.slice(-20).map(o=>{if(o.route===i){const{route:r,...c}=o;return c}return o});return{current_route:i,navigation_path:t(),recent_actions:s}}function l(){dn.value=[]}return{push:e,snapshotForChange:n,clear:l,history:dn}}const Qe=Y([]);let fn=0;const bt=new Map;function _n(e,t){Vp(e,t)}function Bp(){function e(a,f,v,h,y){const C=Qe.value.find(S=>S.type==="style_update"&&S.file===y.file&&S.line===(parseInt(y.line)||0)&&S.property===f&&bt.get(S.id)===a);if(C)C.after=v,C.description=`Set ${f} to ${v}`;else{fn++;const S=`s${fn}`;Qe.value.push({id:S,type:"style_update",description:`Set ${f} to ${v}`,file:y.file,section:"style",line:parseInt(y.line)||0,component:y.component,element:"element",property:f,before:h,after:v}),bt.set(S,a)}}function t(a,f){fn++;const v=`ci${fn}`,h=a.position==="append"||a.position==="prepend",y={id:v,type:"component_insert",description:`Insert <${f.tag}> ${a.position} in ${a.component}`,file:a.file,section:"template",line:parseInt(a.line)||0,component:a.component,insert_inside:h?{component:a.component}:void 0,insert_position:a.position,inserted:{tag:f.tag,library:f.library,props:f.defaultProps,classes:f.defaultClasses,text_content:f.defaultTextContent}};return Qe.value.push(y),v}function n(a){fn++;const f=`an${fn}`,v={id:f,type:"annotation",description:a.intent,file:a.file,section:"template",line:parseInt(a.line)||0,component:a.component,intent:a.intent,action:a.action,context:{element_tag:a.elementTag,element_classes:a.elementClasses,parent_layout:a.parentLayout,siblings_count:a.siblingsCount},pinId:a.pinId};return Qe.value.push(v),f}function l(a,f,v,h){const y=parseInt(h.line)||0,C=Qe.value.find(P=>P.type!=="class_update"||P.file!==h.file||P.line!==y?!1:bt.get(P.id)===a);if(C)return C.after={classes:v},C.description="Update classes",C.id;fn++;const S=`cl${fn}`;return Qe.value.push({id:S,type:"class_update",description:"Update classes",file:h.file,section:"template",line:y,component:h.component,element:"element",before:{classes:f},after:{classes:v}}),bt.set(S,a),S}function i(){if(Qe.value.length===0)return null;const a=Qe.value.pop();if(a.type==="style_update"){const f=bt.get(a.id);return bt.delete(a.id),_n("report:updated",d.value),{type:"style",eid:f,property:a.property,value:a.before}}else if(a.type==="class_update"){const f=bt.get(a.id);return bt.delete(a.id),_n("report:updated",d.value),{type:"class",eid:f,classes:a.before.classes}}else if(a.type==="component_insert"){const f=bt.get(a.id);return bt.delete(a.id),_n("report:updated",d.value),{type:"insert_remove",eid:f}}return _n("report:updated",d.value),null}function s(a){Qe.value=Qe.value.filter(f=>f.id!==a),bt.delete(a)}function o(a,f){Qe.value=Qe.value.filter(v=>v.type!=="annotation"?!0:!(v.file===a&&v.line===f))}function r(){const a=[];for(const f of Qe.value)if(f.type==="component_insert"){const v=bt.get(f.id);v&&a.push(v)}return Qe.value=[],bt.clear(),_n("changes:cleared",{}),a}function c(a){const f=typeof a.line=="number"&&Number.isFinite(a.line)?a.line:0,v={id:a.id,type:a.type,description:a.description||"",file:a.file||"",section:a.section,line:f};switch(a.type){case"style_update":return{...v,component:a.component,element:a.element,property:a.property,before:a.before,after:a.after};case"class_update":return{...v,component:a.component,element:a.element,before:a.before,after:a.after};case"component_insert":return{...v,insert_inside:a.insert_inside,insert_position:a.insert_position,component:a.inserted};case"component_move":return{...v,element:{tag:a.element_tag,component:a.component,from_file:a.from_file,from_line:a.from_line},move_to:a.move_to};case"annotation":return{...v,component:a.component,intent:a.intent,action:a.action,context:a.context};default:return null}}const d=ae(()=>{if(Qe.value.length===0)return null;const a=Qe.value.filter(F=>F.type==="component_insert"||F.type==="component_move"||F.type==="annotation"?!0:F.type==="class_update"?F.before.classes!==F.after.classes:F.before!==F.after);if(a.length===0)return null;const f=a.map(c).filter(Boolean),{designSpec:v}=$s(),h=v.value,y=h!=null&&h.framework?{framework:h.framework.name||"vue",styling:h.framework.styling||[],root:""}:{framework:"vue",styling:[],root:""},{effectiveViewport:C}=Ts(),S=C.value,P=S.width||S.height?{width:S.width,height:S.height}:void 0,{snapshotForChange:x}=ua(),w=x(window.location.pathname),A=w.recent_actions.length>0?w:void 0;return{version:"1.0",project:y,...P?{viewport:P}:{},...A?{interaction_history:A}:{},changes:f}});return ot(()=>d.value,a=>{_n("report:updated",a)},{deep:!0}),{changes:Qe,applyStyle:e,recordInsert:t,recordAnnotation:n,recordClassChange:l,removeChange:s,removeAnnotationsByFile:o,undo:i,clearChanges:r,report:d,broadcast:_n}}const Ll=localStorage.getItem("annotask:mode"),hn=Y(Ll&&["select","interact","pin","arrow","draw","highlight"].includes(Ll)?Ll:"interact");function $o(e){var n;const t=(n=e.target)==null?void 0:n.tagName;if(!(t==="INPUT"||t==="TEXTAREA"||t==="SELECT"))switch(e.key.toLowerCase()){case"v":hn.value="select";break;case"i":hn.value="interact";break;case"p":hn.value="pin";break;case"a":hn.value="arrow";break;case"d":hn.value="draw";break;case"h":hn.value="highlight";break}}ot(hn,e=>localStorage.setItem("annotask:mode",e));function jp(){return qn(()=>document.addEventListener("keydown",$o)),In(()=>document.removeEventListener("keydown",$o)),{mode:hn}}function Up(e){const t=Y(!1),n=Y([]);function l(){var d;try{return((d=e.value)==null?void 0:d.contentDocument)??null}catch{return null}}function i(d){if(!e.value)return null;const a=d.getBoundingClientRect(),f=e.value.getBoundingClientRect();return new DOMRect(f.left+a.left,f.top+a.top,a.width,a.height)}function s(){const d=l();if(!d){n.value=[];return}const a=[],f=d.querySelectorAll("*"),v=d.defaultView;if(v){for(const h of f){if(h.nodeType!==1)continue;const y=v.getComputedStyle(h),C=y.display;if(!C.includes("flex")&&!C.includes("grid"))continue;const S=i(h);if(!S||S.width<20||S.height<20)continue;const P=C.includes("grid"),x=P?"grid":"flex",w=P?"grid":y.flexDirection,A={x:S.x,y:S.y,width:S.width,height:S.height,display:x,direction:w,columnGap:parseFloat(y.columnGap)||0,rowGap:parseFloat(y.rowGap)||0,el:h};if(P){const F=y.gridTemplateColumns,N=y.gridTemplateRows;A.templateColumns=F,A.templateRows=N,F&&F!=="none"&&(A.columns=F.split(/\s+/).map(W=>parseFloat(W)||0).filter(W=>W>0)),N&&N!=="none"&&(A.rows=N.split(/\s+/).map(W=>parseFloat(W)||0).filter(W=>W>0))}a.push(A)}n.value=a}}function o(){t.value=!t.value,t.value?s():n.value=[]}function r(d,a){const f=d.el;if(!f)return null;const v=f.ownerDocument.defaultView;if(!v)return null;const h=v.getComputedStyle(f),y=a==="col"?"grid-template-columns":"grid-template-rows",C=h.getPropertyValue(y)||"",S=C,P=C&&C!=="none"?C+" 1fr":"1fr";return f.style.setProperty(y,P),s(),{el:f,property:y,before:S,after:P}}function c(d){const a=d.el;if(!a)return null;const v=a.ownerDocument.createElement("div");return v.style.minWidth="60px",v.style.minHeight="40px",v.style.border="2px dashed #a855f7",v.style.borderRadius="4px",v.style.background="rgba(168,85,247,0.05)",v.setAttribute("data-annotask-placeholder","true"),a.appendChild(v),s(),{parentEl:a,childEl:v}}return{showOverlay:t,containers:n,toggle:o,scan:s,addTrack:r,addChild:c}}const Mt=Y([]),Rn=Y([]),xn=Y([]),kn=Y([]),Cn=Y([]),Tt=Y("/"),Mn=Y(null),ti=Y(null),ni=Y(null),ii=Y(null);let ct=0;function Yp(){function e(O){Tt.value=O}const t=ae(()=>Mt.value.filter(O=>O.route===Tt.value)),n=ae(()=>xn.value.filter(O=>O.route===Tt.value)),l=ae(()=>kn.value.filter(O=>O.route===Tt.value)),i=ae(()=>Cn.value.filter(O=>O.route===Tt.value));function s(O,X,te){ct++;const pe={id:`pin-${ct}`,number:ct,file:O.file,line:parseInt(O.line)||0,component:O.component,elementTag:O.elementTag,elementClasses:O.elementClasses,clickX:X,clickY:te,note:"",route:Tt.value,timestamp:Date.now()};return Mt.value.push(pe),Mn.value=pe.id,pe}function o(O){Mt.value=Mt.value.filter(X=>X.id!==O),Mn.value===O&&(Mn.value=null)}function r(O,X){const te=Mt.value.find(pe=>pe.id===O);te&&(te.note=X)}function c(O,X){const te=Mt.value.find(pe=>pe.id===O);te&&(te.action=X)}function d(O,X){return Mt.value.filter(te=>te.file===O&&te.line===X)}const a=ae(()=>Mt.value.find(O=>O.id===Mn.value)||null);function f(O,X){ct++;const te={id:`sticky-${ct}`,number:ct,x:O-60,y:X-60,width:120,height:120,text:"",color:"yellow",route:Tt.value,timestamp:Date.now()};return Rn.value.push(te),ti.value=te.id,te}function v(O){Rn.value=Rn.value.filter(X=>X.id!==O),ti.value===O&&(ti.value=null)}function h(O,X){const te=Rn.value.find(pe=>pe.id===O);te&&Object.assign(te,X)}function y(O,X,te,pe,me){ct++;const ye={id:`arrow-${ct}`,number:ct,fromX:O,fromY:X,toX:te,toY:pe,label:me||"Move here",route:Tt.value,timestamp:Date.now()};return xn.value.push(ye),ni.value=ye.id,ye}function C(O){xn.value=xn.value.filter(X=>X.id!==O),ni.value===O&&(ni.value=null)}function S(O,X){const te=xn.value.find(pe=>pe.id===O);te&&Object.assign(te,X)}function P(O,X,te,pe){ct++;const me={id:`section-${ct}`,number:ct,x:O,y:X,width:te,height:pe,prompt:"",route:Tt.value,timestamp:Date.now()};return kn.value.push(me),ii.value=me.id,me}function x(O){kn.value=kn.value.filter(X=>X.id!==O),ii.value===O&&(ii.value=null)}function w(O,X){const te=kn.value.find(pe=>pe.id===O);te&&Object.assign(te,X)}const A=Y(null);function F(O,X){ct++;const te={id:`hl-${ct}`,number:ct,selectedText:O,prompt:"",file:X.file,line:X.line,component:X.component,elementTag:X.elementTag,route:Tt.value,timestamp:Date.now()};return Cn.value.push(te),A.value=te.id,te}function N(O){Cn.value=Cn.value.filter(X=>X.id!==O),A.value===O&&(A.value=null)}function W(O,X){const te=Cn.value.find(pe=>pe.id===O);te&&Object.assign(te,X)}function ie(){Mt.value=[],Rn.value=[],xn.value=[],kn.value=[],Cn.value=[],Mn.value=null,ti.value=null,ni.value=null,ii.value=null}return{pins:Mt,stickyNotes:Rn,arrows:xn,drawnSections:kn,highlights:Cn,routePins:t,routeArrows:n,routeSections:l,routeHighlights:i,activeRoute:Tt,setRoute:e,selectedPinId:Mn,selectedStickyId:ti,selectedArrowId:ni,selectedSectionId:ii,selectedHighlightId:A,selectedPin:a,addPin:s,removePin:o,updatePinNote:r,setPinAction:c,getPinsForElement:d,addStickyNote:f,removeStickyNote:v,updateStickyNote:h,addArrow:y,removeArrow:C,updateArrow:S,addDrawnSection:P,removeDrawnSection:x,updateDrawnSection:w,addHighlight:F,removeHighlight:N,updateHighlight:W,clearAll:ie}}let Kp=0;const sn=new Map,oi=new Map;let Fn=null,Ei="*",Fi=!1,Zi=[];function ca(e){const t=e.data;if(!(!t||t.source!=="annotask-client")){if(t.type==="bridge:ready"){Ei=e.origin||"*",Fi=!0;for(const n of Zi)n();Zi=[],To("bridge:ready",t.payload);return}if(t.id&&sn.has(t.id)){const n=sn.get(t.id);clearTimeout(n.timer),sn.delete(t.id),n.resolve(t.payload);return}To(t.type,t.payload)}}function To(e,t){const n=oi.get(e);if(n)for(const l of n)l(t)}function Wp(e){Fn=e,Fi=!1,Ei="*",window.addEventListener("message",ca)}function zp(){window.removeEventListener("message",ca);for(const[,e]of sn)clearTimeout(e.timer),e.reject(new Error("bridge destroyed"));sn.clear(),Fn=null,Fi=!1,Zi=[]}function Gp(e){for(const[,t]of sn)clearTimeout(t.timer),t.reject(new Error("bridge reset"));sn.clear(),Fn=e,Fi=!1,Ei="*"}function Eo(e){if(Fi){e();return}Zi.push(e)}function Xp(e,t={}){if(!Fn)return;const n={type:e,payload:t,source:"annotask-shell"};Fn.postMessage(n,Ei)}function Ie(e,t={},n=5e3){return new Promise((l,i)=>{if(!Fn){i(new Error("bridge not connected"));return}const s=`req-${++Kp}`,o=setTimeout(()=>{sn.delete(s),i(new Error(`bridge timeout: ${e}`))},n);sn.set(s,{resolve:l,reject:i,timer:o});const r={type:e,id:s,payload:t,source:"annotask-shell"};Fn.postMessage(r,Ei)})}function Fo(e,t){return oi.has(e)||oi.set(e,new Set),oi.get(e).add(t),()=>{var n;(n=oi.get(e))==null||n.delete(t)}}function qp(e){const t=Y("/"),n=Y(!1);function l(){var z;const V=(z=e.value)==null?void 0:z.contentWindow;V&&(Gp(V),n.value=!1,Eo(()=>{n.value=!0}),Fo("route:changed",oe=>{t.value=oe.path}))}function i(){var z;const V=(z=e.value)==null?void 0:z.contentWindow;V&&Wp(V)}function s(){zp()}function o(V){const z=e.value;if(!z)return null;const oe=z.getBoundingClientRect();return{x:oe.left+V.x,y:oe.top+V.y,width:V.width,height:V.height}}function r(V,z){const oe=e.value;if(!oe)return null;const we=oe.getBoundingClientRect();return{x:V-we.left,y:z-we.top}}async function c(V,z){const oe=r(V,z);if(!oe||oe.x<0||oe.y<0)return null;const we=e.value;if(!we)return null;const Je=we.getBoundingClientRect();if(oe.x>Je.width||oe.y>Je.height)return null;try{const Ve=await Ie("resolve:at-point",oe,500);return Ve?(Ve.rect=o(Ve.rect)||Ve.rect,Ve):null}catch{return null}}async function d(V,z,oe){try{const we=await Ie("resolve:template-group",{file:V,line:z,tagName:oe});return we.rects=we.rects.map(Je=>o(Je)||Je),we}catch{return{eids:[],rects:[]}}}async function a(V){try{const z=await Ie("resolve:rect",{eid:V});return z?o(z.rect)||z.rect:null}catch{return null}}async function f(V){if(V.length===0)return[];try{return(await Ie("resolve:rects",{eids:[...V]})).rects.map(oe=>oe?o(oe)||oe:null)}catch{return V.map(()=>null)}}async function v(V,z){try{return(await Ie("style:get-computed",{eid:V,properties:z})).styles}catch{return{}}}async function h(V,z,oe){try{return(await Ie("style:apply",{eid:V,property:z,value:oe})).before}catch{return""}}async function y(V,z,oe){try{return(await Ie("style:apply-batch",{eids:[...V],property:z,value:oe})).befores}catch{return V.map(()=>"")}}async function C(V,z){try{return(await Ie("class:set",{eid:V,classes:z})).before}catch{return""}}async function S(V,z){try{return(await Ie("class:set-batch",{eids:[...V],classes:z})).befores}catch{return V.map(()=>"")}}async function P(V,z,oe){try{await Ie("style:undo",{eid:V,property:z,value:oe})}catch{}}async function x(V,z){try{await Ie("class:undo",{eid:V,classes:z})}catch{}}async function w(V){try{return await Ie("classify:element",{eid:V})}catch{return null}}async function A(){try{const V=await Ie("layout:scan");for(const z of V.containers)z.rect=o(z.rect)||z.rect;return V.containers}catch{return[]}}async function F(V,z){try{return await Ie("layout:add-track",{eid:V,axis:z})}catch{return null}}async function N(V){try{return await Ie("layout:add-child",{eid:V})}catch{return null}}async function W(){try{return(await Ie("check:source-mapping")).hasMapping}catch{return!1}}async function ie(V,z){try{await Ie("theme:inject-css",{css:V,styleId:z})}catch{}}async function O(V){try{await Ie("theme:remove-css",{styleId:V})}catch{}}async function X(){try{return(await Ie("palette:scan-vars")).swatches}catch{return[]}}async function te(){try{const V=await Ie("route:current");return t.value=V.path,V.path}catch{return"/"}}async function pe(V,z,oe,we){try{return(await Ie("insert:placeholder",{targetEid:V,position:z,tag:oe,...we||{}})).placeholderEid}catch{return""}}async function me(V){try{await Ie("insert:remove",{eid:V})}catch{}}async function ye(V,z,oe){try{await Ie("move:element",{eid:V,targetEid:z,position:oe})}catch{}}async function De(V,z,oe,we){try{return await Ie("insert:component",{targetEid:V,position:z,componentName:oe,props:we})}catch{return{eid:"",mounted:!1}}}const $e=De;async function be(V){try{return await Ie("resolve:element-context",{eid:V})}catch{return null}}async function le(V){try{return await Ie("screenshot:capture",{rect:V},15e3)}catch{return{error:"timeout"}}}async function ke(V){try{return await Ie("a11y:scan",{eid:V},15e3)}catch{return{violations:[],error:"timeout"}}}function Ne(V){Xp("mode:set",{mode:V})}return{currentRoute:t,bridgeReady:n,mountBridge:i,unmountBridge:s,initBridgeForIframe:l,toShellRect:o,toIframeCoords:r,resolveElementAt:c,findTemplateGroup:d,getElementRect:a,getElementRects:f,getComputedStyles:v,applyStyleVia:h,applyStyleBatch:y,setClass:C,setClassBatch:S,undoStyle:P,undoClass:x,classifyElement:w,getElementContext:be,captureScreenshot:le,scanA11y:ke,scanLayout:A,layoutAddTrack:F,layoutAddChild:N,checkSourceMapping:W,injectThemeCss:ie,removeThemeCss:O,scanColorVars:X,getCurrentRoute:te,insertPlaceholder:pe,removePlaceholder:me,moveElement:ye,insertComponent:De,insertVueComponent:$e,setMode:Ne,onBridgeEvent:Fo,onBridgeReady:Eo}}function Jp(e,t,n,l){const i=Y(null),s=Y(null);let o=null;async function r(f){const v=n();if(v==="arrow"){o={x:f.clientX,y:f.clientY},i.value={fromX:f.clientX,fromY:f.clientY,toX:f.clientX,toY:f.clientY};const h=await t(f.clientX,f.clientY);i.value&&h&&(i.value={...i.value,fromRect:h.rect})}else v==="draw"&&(o={x:f.clientX,y:f.clientY},s.value={x:f.clientX,y:f.clientY,width:0,height:0})}let c=null;function d(f){if(!o)return;const v=n();if(v==="arrow"&&i.value){i.value={...i.value,toX:f.clientX,toY:f.clientY},c&&clearTimeout(c);const h=f.clientX,y=f.clientY;c=setTimeout(async()=>{const C=await t(h,y);i.value&&(i.value={...i.value,toRect:C==null?void 0:C.rect})},50)}else if(v==="draw"&&s.value){const h=Math.min(o.x,f.clientX),y=Math.min(o.y,f.clientY),C=Math.abs(f.clientX-o.x),S=Math.abs(f.clientY-o.y);s.value={x:h,y,width:C,height:S}}}async function a(f){if(!o)return;c&&(clearTimeout(c),c=null);const v=n();if(v==="arrow"&&i.value){const h=i.value;if(Math.abs(h.toX-h.fromX)>20||Math.abs(h.toY-h.fromY)>20){const y=await t(h.fromX,h.fromY),C=await t(h.toX,h.toY),S=e.addArrow(h.fromX,h.fromY,h.toX,h.toY);y&&e.updateArrow(S.id,{fromFile:y.file,fromLine:parseInt(y.line)||0,fromComponent:y.component}),C&&e.updateArrow(S.id,{toFile:C.file,toLine:parseInt(C.line)||0}),e.updateArrow(S.id,{label:""}),l==null||l(S.id,y,C)}i.value=null}else if(v==="draw"&&s.value){const h=s.value;if(h.width>30&&h.height>30){const y=await t(h.x+h.width/2,h.y),C=e.addDrawnSection(h.x,h.y,h.width,h.height);if(y){const S=h.y>((o==null?void 0:o.y)||0)?"below":"above";e.updateDrawnSection(C.id,{nearFile:y.file,nearLine:parseInt(y.line)||0,nearComponent:y.component,placement:S})}}s.value=null}o=null}return{drawingArrow:i,drawingRect:s,onCanvasPointerDown:r,onCanvasPointerMove:d,onCanvasPointerUp:a}}const Zp={class:"mode-toolbar"},Qp=lt({__name:"ModeToolbar",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t;return(l,i)=>(m(),b("div",Zp,[u("button",{class:J(["mode-btn mode-interact",{active:e.modelValue==="interact"}]),onClick:i[0]||(i[0]=s=>n("update:modelValue","interact")),title:"Interact (I)"},[...i[6]||(i[6]=[u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("path",{d:"M18 8a6 6 0 0 0-12 0c0 7 6 13 6 13s6-6 6-13z"}),u("circle",{cx:"12",cy:"8",r:"1",fill:"currentColor"}),u("path",{d:"M9 21h6"})],-1)])],2),u("button",{class:J(["mode-btn",{active:e.modelValue==="select"}]),onClick:i[1]||(i[1]=s=>n("update:modelValue","select")),title:"Select (V)"},[...i[7]||(i[7]=[u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[u("path",{d:"M4 4l7.07 17 2.51-7.39L21 11.07z"})],-1)])],2),i[12]||(i[12]=u("span",{class:"mode-sep"},null,-1)),u("button",{class:J(["mode-btn",{active:e.modelValue==="pin"}]),onClick:i[2]||(i[2]=s=>n("update:modelValue","pin")),title:"Pin Note (P)"},[...i[8]||(i[8]=[u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("circle",{cx:"12",cy:"10",r:"3"}),u("path",{d:"M12 21.7C17.3 17 20 13 20 10a8 8 0 1 0-16 0c0 3 2.7 7 8 11.7z"})],-1)])],2),u("button",{class:J(["mode-btn arrow",{active:e.modelValue==="arrow"}]),onClick:i[3]||(i[3]=s=>n("update:modelValue","arrow")),title:"Arrow (A)"},[...i[9]||(i[9]=[u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[u("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),u("polyline",{points:"12 5 19 12 12 19"})],-1)])],2),u("button",{class:J(["mode-btn draw",{active:e.modelValue==="draw"}]),onClick:i[4]||(i[4]=s=>n("update:modelValue","draw")),title:"Draw Section (D)"},[...i[10]||(i[10]=[u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2","stroke-dasharray":"4 2"}),u("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),u("line",{x1:"8",y1:"12",x2:"16",y2:"12"})],-1)])],2),u("button",{class:J(["mode-btn mode-highlight",{active:e.modelValue==="highlight"}]),onClick:i[5]||(i[5]=s=>n("update:modelValue","highlight")),title:"Highlight Text (H)"},[...i[11]||(i[11]=[u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("path",{d:"M12 20h9"}),u("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})],-1)])],2)]))}}),eh=vt(Qp,[["__scopeId","data-v-90efa075"]]),th={key:0,class:"separator"},nh=["disabled","onClick"],ih={class:"item-label"},lh={key:0,class:"item-shortcut"},sh=lt({__name:"ContextMenu",props:{visible:{type:Boolean},x:{},y:{}},emits:["close","action"],setup(e,{emit:t}){const n=e,l=t,i=Y(null),s=[{id:"move",label:"Move",shortcut:"M",enabled:!0},{id:"resize",label:"Resize",shortcut:"R",enabled:!0},{id:"separator"},{id:"duplicate",label:"Duplicate",enabled:!1},{id:"delete",label:"Delete",enabled:!1}];function o(d){l("action",d),l("close")}function r(d){var a;n.visible&&((a=i.value)!=null&&a.contains(d.target)||l("close"))}function c(d){d.key==="Escape"&&l("close")}return qn(()=>{document.addEventListener("mousedown",r),document.addEventListener("keydown",c)}),In(()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",c)}),(d,a)=>(m(),wt(_c,{to:"body"},[e.visible?(m(),b("div",{key:0,ref_key:"menuRef",ref:i,class:"context-menu",style:Re({left:e.x+"px",top:e.y+"px"})},[(m(),b(ne,null,ge(s,f=>(m(),b(ne,{key:f.id},[f.id==="separator"?(m(),b("div",th)):(m(),b("button",{key:1,class:J(["menu-item",{disabled:!f.enabled}]),disabled:!f.enabled,onClick:v=>f.enabled&&o(f.id)},[u("span",ih,I(f.label),1),f.shortcut?(m(),b("span",lh,I(f.shortcut),1)):U("",!0)],10,nh))],64))),64))],4)):U("",!0)]))}}),oh=vt(sh,[["__scopeId","data-v-b4795b28"]]),rh=["onClick"],ah={class:"pin-number"},uh=["onClick"],ch=lt({__name:"PinOverlay",props:{pins:{},selectedPinId:{},iframeOffset:{}},emits:["select-pin","remove-pin"],setup(e,{emit:t}){const n=t;return(l,i)=>(m(!0),b(ne,null,ge(e.pins,s=>(m(),b("div",{key:s.id,class:J(["pin",{selected:s.id===e.selectedPinId,"has-action":!!s.action,"has-note":!!s.note}]),style:Re({left:e.iframeOffset.x+s.clickX+"px",top:e.iframeOffset.y+s.clickY+"px"}),onClick:Be(o=>n("select-pin",s.id),["stop"])},[u("span",ah,I(s.number),1),u("button",{class:"pin-remove",onClick:Be(o=>n("remove-pin",s.id),["stop"])},"×",8,uh)],14,rh))),128))}}),dh=vt(ch,[["__scopeId","data-v-006ef709"]]),fh={class:"arrow-svg"},ph=["onClick"],hh=["d","stroke","stroke-width"],vh=["cx","cy"],gh=["cx","cy"],mh=["x","y"],yh=["transform","onClick"],bh={key:0},wh=["d"],_h=["d"],xh=["d"],kh=["cx","cy"],Ch=lt({__name:"ArrowOverlay",props:{arrows:{},selectedId:{},drawingArrow:{}},emits:["select","remove"],setup(e,{emit:t}){const n=t;function l(r,c,d,a,f,v){let h=r,y=c;if(f){const N=f.x+f.width/2,W=f.y+f.height/2,ie=Math.atan2(a-W,d-N);h=N+Math.cos(ie)*(f.width/2+4),y=W+Math.sin(ie)*(f.height/2+4)}let C=d,S=a;if(v){const N=v.x+v.width/2,W=v.y+v.height/2,ie=Math.atan2(y-W,h-N);C=N+Math.cos(ie)*(v.width/2+4),S=W+Math.sin(ie)*(v.height/2+4)}const P=C-h,x=h+P*.4,w=y,A=h+P*.6;return`M ${h} ${y} C ${x} ${w}, ${A} ${S}, ${C} ${S}`}function i(r,c,d,a){const f=d-r,v=r+f*.4,h=c,y=r+f*.6;return`M ${r} ${c} C ${v} ${h}, ${y} ${a}, ${d} ${a}`}function s(r,c,d,a){return{x:(r+d)/2,y:(c+a)/2-10}}function o(r){return`M ${r.x} ${r.y} h ${r.width} v ${r.height} h ${-r.width} Z`}return(r,c)=>(m(),b("svg",fh,[c[1]||(c[1]=u("defs",null,[u("marker",{id:"arrowhead",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto"},[u("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#ef4444"})]),u("marker",{id:"arrowhead-drawing",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto"},[u("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#3b82f6"})])],-1)),(m(!0),b(ne,null,ge(e.arrows,d=>(m(),b("g",{key:d.id,onClick:Be(a=>n("select",d.id),["stop"])},[u("path",{d:i(d.fromX,d.fromY,d.toX,d.toY),fill:"none",stroke:d.id===e.selectedId?"#dc2626":"#ef4444","stroke-width":d.id===e.selectedId?3:2,"stroke-dasharray":"6 3","marker-end":"url(#arrowhead)",class:"arrow-path"},null,8,hh),u("circle",{cx:d.fromX,cy:d.fromY,r:"5",fill:"#ef4444",opacity:"0.8"},null,8,vh),u("circle",{cx:d.toX,cy:d.toY,r:"5",fill:"#ef4444",opacity:"0.8"},null,8,gh),d.label?(m(),b("text",{key:0,x:s(d.fromX,d.fromY,d.toX,d.toY).x,y:s(d.fromX,d.fromY,d.toX,d.toY).y,"text-anchor":"middle",class:"arrow-label"},I(d.label),9,mh)):U("",!0),d.id===e.selectedId?(m(),b("g",{key:1,class:"arrow-delete",transform:`translate(${(d.fromX+d.toX)/2+20}, ${(d.fromY+d.toY)/2-20})`,onClick:Be(a=>n("remove",d.id),["stop"])},[...c[0]||(c[0]=[u("circle",{r:"8",fill:"#ef4444"},null,-1),u("text",{"text-anchor":"middle",dy:"3.5",fill:"white","font-size":"10","font-weight":"bold"},"×",-1)])],8,yh)):U("",!0)],8,ph))),128)),e.drawingArrow?(m(),b("g",bh,[e.drawingArrow.fromRect?(m(),b("path",{key:0,d:o(e.drawingArrow.fromRect),fill:"none",stroke:"#3b82f6","stroke-width":"2","stroke-dasharray":"4 2",opacity:"0.6"},null,8,wh)):U("",!0),e.drawingArrow.toRect?(m(),b("path",{key:1,d:o(e.drawingArrow.toRect),fill:"rgba(59,130,246,0.08)",stroke:"#3b82f6","stroke-width":"2","stroke-dasharray":"4 2",opacity:"0.6"},null,8,_h)):U("",!0),u("path",{d:l(e.drawingArrow.fromX,e.drawingArrow.fromY,e.drawingArrow.toX,e.drawingArrow.toY,e.drawingArrow.fromRect,e.drawingArrow.toRect),fill:"none",stroke:"#3b82f6","stroke-width":"2.5","stroke-dasharray":"6 3","marker-end":"url(#arrowhead-drawing)",opacity:"0.8"},null,8,xh),u("circle",{cx:e.drawingArrow.fromX,cy:e.drawingArrow.fromY,r:"5",fill:"#3b82f6",opacity:"0.6"},null,8,kh)])):U("",!0)]))}}),Ah=vt(Ch,[["__scopeId","data-v-1d2c9ec9"]]),Sh=["onClick"],$h={class:"section-header"},Th={class:"section-badge"},Eh={key:0,class:"section-placement"},Fh=["onClick"],Ih=["value","onInput","onBlur"],Ph={class:"section-dims"},Oh=lt({__name:"DrawnSectionOverlay",props:{sections:{},selectedId:{},drawingRect:{}},emits:["select","remove","update-prompt","commit"],setup(e,{emit:t}){const n=t;return(l,i)=>(m(),b(ne,null,[e.drawingRect&&e.drawingRect.width>5&&e.drawingRect.height>5?(m(),b("div",{key:0,class:"section-preview",style:Re({left:e.drawingRect.x+"px",top:e.drawingRect.y+"px",width:e.drawingRect.width+"px",height:e.drawingRect.height+"px"})},null,4)):U("",!0),(m(!0),b(ne,null,ge(e.sections,s=>(m(),b("div",{key:s.id,class:J(["drawn-section",{selected:s.id===e.selectedId}]),style:Re({left:s.x+"px",top:s.y+"px",width:s.width+"px",height:s.height+"px"}),onClick:Be(o=>n("select",s.id),["stop"])},[u("div",$h,[u("span",Th,"#"+I(s.number)+" New Section",1),s.placement?(m(),b("span",Eh,I(s.placement),1)):U("",!0),u("button",{class:"section-delete",onClick:Be(o=>n("remove",s.id),["stop"])},"×",8,Fh)]),u("textarea",{class:"section-prompt",value:s.prompt,placeholder:"Describe what should go here...",onInput:o=>n("update-prompt",s.id,o.target.value),onBlur:o=>n("commit",s.id),onClick:i[0]||(i[0]=Be(()=>{},["stop"]))},null,40,Ih),u("div",Ph,I(Math.round(s.width))+"×"+I(Math.round(s.height))+"px ",1)],14,Sh))),128))],64))}}),Rh=vt(Oh,[["__scopeId","data-v-d10f1f9f"]]),Mh={class:"notes-tab"},Lh={key:0,class:"quick-actions"},Dh={class:"action-grid"},Nh=["onClick"],Vh={key:1,class:"add-note"},Hh=["onKeydown"],Bh={class:"task-toggles"},jh={class:"history-toggle"},Uh=["checked"],Yh={class:"history-toggle"},Kh=["checked"],Wh={key:0,class:"screenshot-preview"},zh=["src"],Gh={class:"note-actions"},Xh=["disabled"],qh={key:2,class:"element-pins"},Jh=["onClick"],Zh={class:"pin-content"},Qh={key:0,class:"pin-action"},ev={key:1,class:"pin-note"},tv={key:2,class:"pin-empty"},nv=["onClick"],iv={class:"all-pins"},lv={class:"section-label"},sv={key:0,class:"empty-hint"},ov=["onClick"],rv={class:"pin-content"},av={class:"pin-file"},uv={key:0,class:"pin-action"},cv={key:1,class:"pin-note"},dv=["onClick"],fv={key:3,class:"task-review"},pv={class:"section-label"},hv={class:"task-header"},vv={class:"task-desc"},gv={class:"task-file"},mv={key:0,class:"task-feedback"},yv={class:"task-actions"},bv=["onClick"],wv=["value","onInput"],_v=["onClick"],xv=["onClick"],kv=lt({__name:"NotesTab",props:{pins:{},selectedPinId:{},selectedElement:{},elementRole:{},tasks:{},includeHistory:{type:Boolean},includeElementContext:{type:Boolean},pendingScreenshot:{}},emits:["add-note","add-action","add-task","update:includeHistory","update:includeElementContext","start-snip","remove-screenshot","select-pin","accept-task","deny-task","cancel-task","update-note","remove-pin"],setup(e,{emit:t}){const n=e,l=Y({}),i=t,s=Y(""),o=ae(()=>n.selectedElement?n.pins.filter(v=>v.file===n.selectedElement.file&&v.line===parseInt(n.selectedElement.line)):[]),r=[{action:"add_column",label:"+ Column"},{action:"add_row",label:"+ Row"},{action:"change_direction",label:"Direction"},{action:"set_gap",label:"Set Gap"}],c=[{action:"move_up",label:"Move Up"},{action:"move_down",label:"Move Down"},{action:"wrap_container",label:"Wrap"},{action:"duplicate",label:"Duplicate"}],d=[{action:"delete",label:"Delete"}],a=ae(()=>{const v=n.elementRole;return v==="container"?[...r,...d]:v==="content"?[...c,...d]:d});function f(){const v=s.value.trim();v&&(i("add-note",v),s.value="")}return(v,h)=>(m(),b("div",Mh,[e.selectedElement?(m(),b("div",Lh,[h[6]||(h[6]=u("span",{class:"section-label"},"Quick Actions",-1)),u("div",Dh,[(m(!0),b(ne,null,ge(a.value,y=>(m(),b("button",{key:y.action,class:"action-btn",onClick:C=>i("add-action",y.action,y.label)},I(y.label),9,Nh))),128))])])):U("",!0),e.selectedElement?(m(),b("div",Vh,[h[9]||(h[9]=u("span",{class:"section-label"},"Add Task",-1)),Pe(u("textarea",{"onUpdate:modelValue":h[0]||(h[0]=y=>s.value=y),class:"note-input",rows:"3",placeholder:"Describe what you want to change...",onKeydown:Ct(Be(f,["ctrl"]),["enter"])},null,40,Hh),[[je,s.value]]),u("div",Bh,[u("label",jh,[u("input",{type:"checkbox",checked:e.includeHistory,onChange:h[1]||(h[1]=y=>i("update:includeHistory",y.target.checked))},null,40,Uh),h[7]||(h[7]=u("span",null,"History",-1))]),u("label",Yh,[u("input",{type:"checkbox",checked:e.includeElementContext,onChange:h[2]||(h[2]=y=>i("update:includeElementContext",y.target.checked))},null,40,Kh),h[8]||(h[8]=u("span",null,"DOM context",-1))])]),e.pendingScreenshot?(m(),b("div",Wh,[u("img",{src:"/__annotask/screenshots/"+e.pendingScreenshot,class:"screenshot-thumb"},null,8,zh),u("button",{class:"screenshot-remove",onClick:h[3]||(h[3]=y=>i("remove-screenshot"))},"×")])):(m(),b("button",{key:1,class:"screenshot-btn",onClick:h[4]||(h[4]=y=>i("start-snip"))},"Add Screenshot")),u("div",Gh,[u("button",{class:"submit-btn",disabled:!s.value.trim(),onClick:f},"Add Task",8,Xh)])])):U("",!0),o.value.length?(m(),b("div",qh,[h[10]||(h[10]=u("span",{class:"section-label"},"Notes on this element",-1)),(m(!0),b(ne,null,ge(o.value,y=>(m(),b("div",{key:y.id,class:"pin-item",onClick:C=>i("select-pin",y.id)},[u("span",{class:J(["pin-badge",{action:y.action}])},I(y.number),3),u("div",Zh,[y.action?(m(),b("span",Qh,I(y.action),1)):U("",!0),y.note?(m(),b("span",ev,I(y.note),1)):U("",!0),!y.note&&!y.action?(m(),b("span",tv,"No note yet")):U("",!0)]),u("button",{class:"pin-delete",onClick:Be(C=>i("remove-pin",y.id),["stop"])},"×",8,nv)],8,Jh))),128))])):U("",!0),u("div",iv,[u("span",lv,"All Pins ("+I(e.pins.length)+")",1),e.pins.length===0?(m(),b("div",sv," Press P then click on the page to add pins ")):U("",!0),(m(!0),b(ne,null,ge(e.pins,y=>(m(),b("div",{key:y.id,class:J(["pin-item",{selected:y.id===e.selectedPinId}]),onClick:C=>i("select-pin",y.id)},[u("span",{class:J(["pin-badge",{action:y.action}])},I(y.number),3),u("div",rv,[u("code",av,I(y.file)+":"+I(y.line),1),y.action?(m(),b("span",uv,I(y.action),1)):U("",!0),y.note?(m(),b("span",cv,I(y.note),1)):U("",!0)]),u("button",{class:"pin-delete",onClick:Be(C=>i("remove-pin",y.id),["stop"])},"×",8,dv)],10,ov))),128))]),e.tasks.length>0?(m(),b("div",fv,[u("span",pv,"Tasks ("+I(e.tasks.length)+")",1),(m(!0),b(ne,null,ge(e.tasks,y=>(m(),b("div",{key:y.id,class:J(["task-item",y.status])},[u("div",hv,[u("span",{class:J(["task-status-badge",y.status])},I(y.status),3),u("span",vv,I(y.description),1)]),u("code",gv,I(y.file),1),y.feedback?(m(),b("div",mv,"Feedback: "+I(y.feedback),1)):U("",!0),u("div",yv,[y.status==="review"?(m(),b(ne,{key:0},[u("button",{class:"task-accept",onClick:C=>i("accept-task",y.id)},"Accept",8,bv),u("input",{value:l.value[y.id]||"",onInput:C=>l.value[y.id]=C.target.value,class:"deny-input",placeholder:"Reason...",onClick:h[5]||(h[5]=Be(()=>{},["stop"]))},null,40,wv),u("button",{class:"task-deny",onClick:C=>{i("deny-task",y.id,l.value[y.id]||""),delete l.value[y.id]}},"Deny",8,_v)],64)):U("",!0),u("button",{class:"task-cancel",onClick:C=>i("cancel-task",y.id)},"×",8,xv)])],2))),128))])):U("",!0)]))}}),Cv=vt(kv,[["__scopeId","data-v-0b4424b4"]]),Av={class:"prompt-header"},Sv={class:"prompt-text-preview"},$v=["onClick"],Tv={class:"hl-header"},Ev={class:"hl-badge"},Fv={class:"hl-file"},Iv=["onClick"],Pv={class:"hl-text"},Ov={key:0,class:"hl-prompt"},Rv=["value","onInput"],Mv=lt({__name:"TextHighlightOverlay",props:{highlights:{},selectedId:{},pending:{}},emits:["select","remove","update-prompt","submit-pending","cancel-pending"],setup(e,{emit:t}){const n=t;return(l,i)=>(m(),b(ne,null,[e.pending?(m(),b("div",{key:0,class:"highlight-prompt",style:Re({left:e.pending.x+"px",top:e.pending.y+"px"})},[u("div",Av,[u("span",Sv,'"'+I(e.pending.text.substring(0,50))+I(e.pending.text.length>50?"...":"")+'"',1)]),u("input",{class:"prompt-input",placeholder:"What should this text become?",autofocus:"",onKeydown:[i[0]||(i[0]=Ct(s=>n("submit-pending",s.target.value),["enter"])),i[1]||(i[1]=Ct(s=>n("cancel-pending"),["escape"]))]},null,32),i[3]||(i[3]=u("div",{class:"prompt-hint"},"Enter to submit, Escape to cancel",-1))],4)):U("",!0),(m(!0),b(ne,null,ge(e.highlights,s=>(m(),b("div",{key:s.id,class:J(["text-highlight-card",{selected:s.id===e.selectedId}]),onClick:Be(o=>n("select",s.id),["stop"])},[u("div",Tv,[u("span",Ev,"#"+I(s.number),1),u("code",Fv,I(s.file)+":"+I(s.line),1),u("button",{class:"hl-delete",onClick:Be(o=>n("remove",s.id),["stop"])},"×",8,Iv)]),u("div",Pv,'"'+I(s.selectedText)+'"',1),s.prompt?(m(),b("div",Ov,"→ "+I(s.prompt),1)):U("",!0),s.id===e.selectedId?(m(),b("input",{key:1,class:"hl-prompt-edit",value:s.prompt,placeholder:"What should this become?",onInput:o=>n("update-prompt",s.id,o.target.value),onClick:i[2]||(i[2]=Be(()=>{},["stop"]))},null,40,Rv)):U("",!0)],10,$v))),128))],64))}}),Lv=vt(Mv,[["__scopeId","data-v-b4a28a2c"]]),Dv={class:"layout-label"},Nv=["onPointerdown"],Vv=["onPointerdown"],Hv=["onClick"],Bv=["onClick"],jv=["onClick"],Uv=["onClick"],Yv=lt({__name:"LayoutOverlay",props:{containers:{}},emits:["grid-line-drag","add-track","add-child"],setup(e,{emit:t}){const n=t;function l(c){var d,a;if(c.display==="grid"){const f=((d=c.columns)==null?void 0:d.length)||"?",v=((a=c.rows)==null?void 0:a.length)||"?";return`grid ${f}×${v}`}return c.direction==="row"?"flex →":c.direction==="row-reverse"?"flex ←":c.direction==="column"?"flex ↓":c.direction==="column-reverse"?"flex ↑":"flex"}function i(c){if(!c.columns||c.columns.length<=1)return[];const d=[];let a=0;for(let f=0;f<c.columns.length-1;f++)a+=c.columns[f],c.columnGap&&(a+=c.columnGap/2),d.push({x:a,height:c.height}),c.columnGap&&(a+=c.columnGap/2);return d}function s(c){if(!c.rows||c.rows.length<=1)return[];const d=[];let a=0;for(let f=0;f<c.rows.length-1;f++)a+=c.rows[f],c.rowGap&&(a+=c.rowGap/2),d.push({y:a,width:c.width}),c.rowGap&&(a+=c.rowGap/2);return d}function o(c){return c.width>60&&c.height>60}function r(c){return c.display==="grid"||c.direction==="row"||c.direction==="row-reverse"}return(c,d)=>(m(!0),b(ne,null,ge(e.containers,(a,f)=>(m(),b(ne,{key:f},[u("div",{class:J(["layout-outline",a.display]),style:Re({left:a.x+"px",top:a.y+"px",width:a.width+"px",height:a.height+"px"})},[u("span",Dv,I(l(a)),1)],6),(m(!0),b(ne,null,ge(i(a),(v,h)=>(m(),b("div",{key:"col-"+f+"-"+h,class:"grid-line col",style:Re({left:a.x+v.x+"px",top:a.y+"px",height:v.height+"px"}),onPointerdown:Be(y=>n("grid-line-drag",a,"col",h,y),["stop","prevent"])},null,44,Nv))),128)),(m(!0),b(ne,null,ge(s(a),(v,h)=>(m(),b("div",{key:"row-"+f+"-"+h,class:"grid-line row",style:Re({left:a.x+"px",top:a.y+v.y+"px",width:v.width+"px"}),onPointerdown:Be(y=>n("grid-line-drag",a,"row",h,y),["stop","prevent"])},null,44,Vv))),128)),o(a)?(m(),b(ne,{key:0},[a.display==="grid"?(m(),b(ne,{key:0},[u("button",{class:"add-track-btn col",style:Re({left:a.x+a.width+4+"px",top:a.y+a.height/2-11+"px"}),title:"Add column",onClick:Be(v=>n("add-track",a,"col"),["stop"])},"+col",12,Hv),u("button",{class:"add-track-btn row",style:Re({left:a.x+a.width/2-16+"px",top:a.y+a.height+4+"px"}),title:"Add row",onClick:Be(v=>n("add-track",a,"row"),["stop"])},"+row",12,Bv)],64)):(m(),b(ne,{key:1},[r(a)?(m(),b("button",{key:0,class:"add-child-btn",style:Re({left:a.x+a.width+4+"px",top:a.y+a.height/2-11+"px"}),title:"Add item",onClick:Be(v=>n("add-child",a),["stop"])},"+",12,jv)):(m(),b("button",{key:1,class:"add-child-btn",style:Re({left:a.x+a.width/2-11+"px",top:a.y+a.height+4+"px"}),title:"Add item",onClick:Be(v=>n("add-child",a),["stop"])},"+",12,Uv))],64))],64)):U("",!0)],64))),128))}}),Kv=vt(Yv,[["__scopeId","data-v-ed4fb8a3"]]),Io="annotask-theme-preview",Dt=Y(new Map);function Wv(){return Dt.value.size===0?"":`:root {
18
- ${Array.from(Dt.value.entries()).map(([t,n])=>` ${t}: ${n} !important;`).join(`
19
- `)}
20
- }`}function zv(e){var t;try{return((t=e.value)==null?void 0:t.contentDocument)??null}catch{return null}}function Gv(e){const t=Wv();let n=e.getElementById(Io);if(!t){n==null||n.remove();return}n||(n=e.createElement("style"),n.id=Io,e.head.appendChild(n)),n.textContent=t}function Xv(e){function t(){const o=zv(e);o&&Gv(o)}function n(o,r){const c=new Map(Dt.value);c.set(o,r),Dt.value=c}function l(o){const r=new Map(Dt.value);r.delete(o),Dt.value=r}function i(){Dt.value=new Map}ot(Dt,t,{deep:!0});function s(){t()}return ot(e,(o,r)=>{r&&r.removeEventListener("load",s),o&&(o.addEventListener("load",s),t())},{immediate:!0}),{overrides:Dt,setOverride:n,removeOverride:l,clearAll:i,hasChanges:()=>Dt.value.size>0}}const Nn=Y([]),ss=Y(!1);async function Qi(){try{ss.value=!0;const t=await(await fetch("/__annotask/api/tasks")).json();Nn.value=t.tasks||[]}catch{}finally{ss.value=!1}}async function qv(e){try{const n=await(await fetch("/__annotask/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json();return await Qi(),n}catch{return null}}async function Jv(e,t,n){try{await fetch(`/__annotask/api/tasks/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:t,...n?{feedback:n}:{}})}),await Qi()}catch{}}let Po=!1;function da(){Po||(Po=!0,Qi(),ra("tasks:updated",l=>{const i=l;Nn.value=(i==null?void 0:i.tasks)||[]}));const e=ae(()=>Nn.value.filter(l=>l.status==="pending")),t=ae(()=>Nn.value.filter(l=>l.status==="review")),n=ae(()=>Nn.value.filter(l=>l.status==="denied"));return{tasks:Nn,pendingTasks:e,reviewTasks:t,deniedTasks:n,isLoading:ss,createTask:qv,updateTaskStatus:Jv,fetchTasks:Qi}}const Zv={class:"theme-page"},Qv={class:"theme-header"},eg={key:0,class:"theme-actions"},tg={class:"theme-change-count"},ng={key:0,class:"theme-empty"},ig={key:1,class:"theme-empty"},lg={class:"theme-tabs"},sg={key:0,class:"theme-tab-badge"},og={key:0,class:"theme-tab-badge"},rg={key:0,class:"theme-tab-badge"},ag={key:0,class:"theme-tab-badge"},ug={class:"theme-content"},cg={key:0,class:"theme-section"},dg={key:0,class:"theme-section-empty"},fg={class:"token-info"},pg={class:"token-source"},hg={class:"token-controls"},vg={class:"color-swatch-wrapper"},gg=["value","onChange"],mg={key:0,class:"no-preview-badge",title:"No CSS variable — preview unavailable"},yg={class:"token-info"},bg={class:"token-role new-badge"},wg={class:"token-controls"},_g={class:"token-value-ro"},xg=["onClick"],kg={key:1,class:"add-token-form"},Cg={class:"add-actions"},Ag=["disabled"],Sg={key:1,class:"theme-section"},$g={key:0,class:"theme-section-empty"},Tg={class:"token-info"},Eg={class:"token-source"},Fg={class:"token-controls"},Ig=["value","onChange"],Pg={class:"token-info"},Og={class:"token-role new-badge"},Rg={class:"token-controls"},Mg={class:"token-value-ro"},Lg=["onClick"],Dg={key:1,class:"add-token-form"},Ng={class:"add-actions"},Vg=["disabled"],Hg={key:3,class:"theme-section-empty"},Bg={class:"token-info"},jg={class:"token-source"},Ug={class:"token-controls"},Yg=["value","onChange"],Kg={class:"token-info"},Wg={class:"token-role new-badge"},zg={class:"token-controls"},Gg={class:"token-value-ro"},Xg=["onClick"],qg={key:4,class:"add-token-form"},Jg={class:"add-actions"},Zg=["disabled"],Qg={key:6,class:"section-subtitle",style:{"margin-top":"16px"}},e0={key:7,class:"weight-chips"},t0={key:2,class:"theme-section"},n0={key:0,class:"theme-section-empty"},i0={class:"token-info"},l0={class:"token-source"},s0={class:"token-controls"},o0=["value","onChange"],r0={class:"spacing-preview"},a0={class:"token-info"},u0={class:"token-role new-badge"},c0={class:"token-controls"},d0={class:"token-value-ro"},f0=["onClick"],p0={key:1,class:"add-token-form"},h0={class:"add-actions"},v0=["disabled"],g0={key:3,class:"theme-section"},m0={key:0,class:"theme-section-empty"},y0={class:"token-info"},b0={class:"token-source"},w0={class:"token-controls"},_0=["value","onChange"],x0={class:"token-info"},k0={class:"token-role new-badge"},C0={class:"token-controls"},A0={class:"token-value-ro"},S0=["onClick"],$0={key:1,class:"add-token-form"},T0={class:"add-actions"},E0=["disabled"],F0={key:4,class:"theme-section"},I0={key:0,class:"theme-section-empty"},P0={key:1,class:"library-card"},O0={class:"library-name"},R0={key:0,class:"library-version"},M0={key:2,class:"theme-section-empty"},L0={class:"library-card"},D0={class:"library-name"},N0={key:0,class:"library-version"},V0={key:0,class:"library-components"},H0={key:4,class:"library-card"},B0={class:"library-name"},j0={class:"library-version"},U0=lt({__name:"ThemePage",props:{iframeRef:{}},setup(e){const t=e,{designSpec:n,isInitialized:l,isLoading:i}=$s(),s=Xv(ae(()=>t.iframeRef)),o=da(),r=Y("colors"),c=Y(new Map),d=Y(new Map),a=Y(new Map),f=Y(new Map),v=Y(new Map),h=Y([]),y=Y([]),C=Y([]),S=Y([]),P=Y([]),x=Y(null),w=Y(""),A=Y(""),F=Y(""),N=ae(()=>{var q;try{return((q=t.iframeRef)==null?void 0:q.contentDocument)??null}catch{return null}}),W=ae(()=>{var q;return((q=n.value)==null?void 0:q.colors)??[]}),ie=ae(()=>{var q,D;return((D=(q=n.value)==null?void 0:q.typography)==null?void 0:D.families)??[]}),O=ae(()=>{var q,D;return((D=(q=n.value)==null?void 0:q.typography)==null?void 0:D.scale)??[]}),X=ae(()=>{var q,D;return((D=(q=n.value)==null?void 0:q.typography)==null?void 0:D.weights)??[]}),te=ae(()=>{var q;return((q=n.value)==null?void 0:q.spacing)??[]}),pe=ae(()=>{var q,D;return((D=(q=n.value)==null?void 0:q.borders)==null?void 0:D.radius)??[]}),me=ae(()=>{var q;return((q=n.value)==null?void 0:q.icons)??null}),ye=ae(()=>{var q;return((q=n.value)==null?void 0:q.components)??null}),De=ae(()=>c.value.size+d.value.size+a.value.size+f.value.size+v.value.size+h.value.length+y.value.length+C.value.length+S.value.length+P.value.length);function $e(q,D){c.value.set(q.role,D),c.value=new Map(c.value),q.cssVar&&s.setOverride(q.cssVar,D)}function be(q,D,Me){Me.value.set(q.role,D),Me.value=new Map(Me.value),q.cssVar&&s.setOverride(q.cssVar,D)}function le(q,D){return D.get(q.role)??q.value}function ke(q,D){const Me=D.get(q.role);return Me!==void 0&&Me!==q.value}function Ne(q){x.value=q,w.value="",A.value="",F.value=""}function V(){x.value=null}function z(){if(!w.value.trim()||!A.value.trim())return;const q={role:w.value.trim(),value:A.value.trim(),cssVar:F.value.trim()||void 0,source:"new"};switch(x.value){case"colors":h.value=[...h.value,q];break;case"families":y.value=[...y.value,q];break;case"scale":C.value=[...C.value,q];break;case"spacing":S.value=[...S.value,q];break;case"radius":P.value=[...P.value,q];break}q.cssVar&&s.setOverride(q.cssVar,q.value),x.value=null}function oe(q,D){const Me=q.value[D];Me.cssVar&&s.removeOverride(Me.cssVar),q.value=q.value.filter((R,he)=>he!==D)}function we(){var he,g;const q=[],D=((g=(he=n.value)==null?void 0:he.framework)==null?void 0:g.styling)??[];function Me(_,$,B){const H=B.get($.role);!H||H===$.value||q.push({type:"theme_update",description:`Update ${_} "${$.role}" from ${$.value} to ${H}`,file:$.sourceFile||"",line:$.sourceLine||0,intent:`Change the ${$.role} ${_} token to ${H} across the application`,action:"theme_update",context:{category:_,role:$.role,before:$.value,after:H,cssVar:$.cssVar||null,source:$.source,sourceFile:$.sourceFile||null,sourceLine:$.sourceLine||null,styling:D}})}function R(_,$){q.push({type:"theme_update",description:`Add new ${_} token "${$.role}" with value ${$.value}`,file:"",line:0,intent:`Add a new ${$.role} ${_} token with value ${$.value} to the design system`,action:"theme_update",context:{category:_,role:$.role,before:null,after:$.value,cssVar:$.cssVar||null,source:null,sourceFile:null,sourceLine:null,styling:D,isNew:!0}})}for(const _ of W.value)Me("colors",_,c.value);for(const _ of ie.value)Me("typography.families",_,d.value);for(const _ of O.value)Me("typography.scale",_,a.value);for(const _ of te.value)Me("spacing",_,f.value);for(const _ of pe.value)Me("borders.radius",_,v.value);for(const _ of h.value)R("colors",_);for(const _ of y.value)R("typography.families",_);for(const _ of C.value)R("typography.scale",_);for(const _ of S.value)R("spacing",_);for(const _ of P.value)R("borders.radius",_);return q}async function Je(){const q=we();for(const D of q)await o.createTask(D);c.value=new Map,d.value=new Map,a.value=new Map,f.value=new Map,v.value=new Map,h.value=[],y.value=[],C.value=[],S.value=[],P.value=[],s.clearAll()}function Ve(){c.value=new Map,d.value=new Map,a.value=new Map,f.value=new Map,v.value=new Map,h.value=[],y.value=[],C.value=[],S.value=[],P.value=[],s.clearAll()}return(q,D)=>{var Me;return m(),b("div",Zv,[u("div",Qv,[D[25]||(D[25]=u("span",{class:"theme-title"},"Design Tokens",-1)),De.value>0?(m(),b("div",eg,[u("span",tg,I(De.value)+" change"+I(De.value===1?"":"s"),1),u("button",{class:"theme-btn commit",onClick:Je},"Commit"),u("button",{class:"theme-btn discard",onClick:Ve},"Discard")])):U("",!0)]),ee(i)?(m(),b("div",ng,[...D[26]||(D[26]=[u("p",null,"Loading design spec...",-1)])])):ee(l)?(m(),b(ne,{key:2},[u("div",lg,[u("button",{class:J(["theme-tab",{active:r.value==="colors"}]),onClick:D[0]||(D[0]=R=>r.value="colors")},[D[28]||(D[28]=et(" Colors ",-1)),c.value.size+h.value.length?(m(),b("span",sg,I(c.value.size+h.value.length),1)):U("",!0)],2),u("button",{class:J(["theme-tab",{active:r.value==="typography"}]),onClick:D[1]||(D[1]=R=>r.value="typography")},[D[29]||(D[29]=et(" Type ",-1)),d.value.size+a.value.size+y.value.length+C.value.length?(m(),b("span",og,I(d.value.size+a.value.size+y.value.length+C.value.length),1)):U("",!0)],2),u("button",{class:J(["theme-tab",{active:r.value==="spacing"}]),onClick:D[2]||(D[2]=R=>r.value="spacing")},[D[30]||(D[30]=et(" Spacing ",-1)),f.value.size+S.value.length?(m(),b("span",rg,I(f.value.size+S.value.length),1)):U("",!0)],2),u("button",{class:J(["theme-tab",{active:r.value==="borders"}]),onClick:D[3]||(D[3]=R=>r.value="borders")},[D[31]||(D[31]=et(" Borders ",-1)),v.value.size+P.value.length?(m(),b("span",ag,I(v.value.size+P.value.length),1)):U("",!0)],2),u("button",{class:J(["theme-tab",{active:r.value==="libraries"}]),onClick:D[4]||(D[4]=R=>r.value="libraries")},"Libraries",2)]),u("div",ug,[r.value==="colors"?(m(),b("div",cg,[W.value.length===0&&h.value.length===0?(m(),b("div",dg,"No color tokens detected")):U("",!0),(m(!0),b(ne,null,ge(W.value,R=>(m(),b("div",{key:R.role,class:"token-row"},[u("div",fg,[u("span",{class:J(["token-role",{edited:ke(R,c.value)}])},I(R.role),3),u("code",pg,I(R.source),1)]),u("div",hg,[u("div",vg,[tt(es,{modelValue:le(R,c.value),iframeDoc:N.value,"onUpdate:modelValue":he=>$e(R,he)},null,8,["modelValue","iframeDoc","onUpdate:modelValue"])]),u("input",{class:"token-value-input color-hex",value:le(R,c.value),onChange:he=>$e(R,he.target.value)},null,40,gg),R.cssVar?U("",!0):(m(),b("span",mg,"no preview"))])]))),128)),(m(!0),b(ne,null,ge(h.value,(R,he)=>(m(),b("div",{key:"new-"+he,class:"token-row new"},[u("div",yg,[u("span",bg,"+ "+I(R.role),1)]),u("div",wg,[u("div",{class:"color-swatch-inline",style:Re({background:R.value})},null,4),u("code",_g,I(R.value),1),u("button",{class:"token-remove",onClick:g=>oe(h.value,he)},"×",8,xg)])]))),128)),x.value==="colors"?(m(),b("div",kg,[Pe(u("input",{"onUpdate:modelValue":D[5]||(D[5]=R=>w.value=R),class:"add-input",placeholder:"Role (e.g. info)"},null,512),[[je,w.value]]),Pe(u("input",{"onUpdate:modelValue":D[6]||(D[6]=R=>A.value=R),class:"add-input",placeholder:"Value (e.g. #3b82f6)"},null,512),[[je,A.value]]),Pe(u("input",{"onUpdate:modelValue":D[7]||(D[7]=R=>F.value=R),class:"add-input",placeholder:"CSS var (optional, e.g. --color-info)"},null,512),[[je,F.value]]),u("div",Cg,[u("button",{class:"theme-btn commit small",onClick:z,disabled:!w.value.trim()||!A.value.trim()},"Add",8,Ag),u("button",{class:"theme-btn discard small",onClick:V},"Cancel")])])):(m(),b("button",{key:2,class:"add-token-btn",onClick:D[8]||(D[8]=R=>Ne("colors"))},"+ Add Color"))])):U("",!0),r.value==="typography"?(m(),b("div",Sg,[D[32]||(D[32]=u("h4",{class:"section-subtitle"},"Font Families",-1)),ie.value.length===0&&y.value.length===0?(m(),b("div",$g,"No font families detected")):U("",!0),(m(!0),b(ne,null,ge(ie.value,R=>(m(),b("div",{key:R.role,class:"token-row"},[u("div",Tg,[u("span",{class:J(["token-role",{edited:ke(R,d.value)}])},I(R.role),3),u("code",Eg,I(R.source),1)]),u("div",Fg,[u("input",{class:"token-value-input wide",value:le(R,d.value),onChange:he=>be(R,he.target.value,d.value)},null,40,Ig)])]))),128)),(m(!0),b(ne,null,ge(y.value,(R,he)=>(m(),b("div",{key:"new-"+he,class:"token-row new"},[u("div",Pg,[u("span",Og,"+ "+I(R.role),1)]),u("div",Rg,[u("code",Mg,I(R.value),1),u("button",{class:"token-remove",onClick:g=>oe(y.value,he)},"×",8,Lg)])]))),128)),x.value==="families"?(m(),b("div",Dg,[Pe(u("input",{"onUpdate:modelValue":D[9]||(D[9]=R=>w.value=R),class:"add-input",placeholder:"Role (e.g. display)"},null,512),[[je,w.value]]),Pe(u("input",{"onUpdate:modelValue":D[10]||(D[10]=R=>A.value=R),class:"add-input",placeholder:"Value (e.g. Poppins, sans-serif)"},null,512),[[je,A.value]]),Pe(u("input",{"onUpdate:modelValue":D[11]||(D[11]=R=>F.value=R),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[je,F.value]]),u("div",Ng,[u("button",{class:"theme-btn commit small",onClick:z,disabled:!w.value.trim()||!A.value.trim()},"Add",8,Vg),u("button",{class:"theme-btn discard small",onClick:V},"Cancel")])])):(m(),b("button",{key:2,class:"add-token-btn",onClick:D[12]||(D[12]=R=>Ne("families"))},"+ Add Family")),D[33]||(D[33]=u("h4",{class:"section-subtitle",style:{"margin-top":"16px"}},"Font Scale",-1)),O.value.length===0&&C.value.length===0?(m(),b("div",Hg,"No font sizes detected")):U("",!0),(m(!0),b(ne,null,ge(O.value,R=>(m(),b("div",{key:R.role,class:"token-row"},[u("div",Bg,[u("span",{class:J(["token-role",{edited:ke(R,a.value)}])},I(R.role),3),u("code",jg,I(R.source),1)]),u("div",Ug,[u("input",{class:"token-value-input",value:le(R,a.value),onChange:he=>be(R,he.target.value,a.value)},null,40,Yg),u("div",{class:"font-size-preview",style:Re({fontSize:le(R,a.value)})},"Aa",4)])]))),128)),(m(!0),b(ne,null,ge(C.value,(R,he)=>(m(),b("div",{key:"new-"+he,class:"token-row new"},[u("div",Kg,[u("span",Wg,"+ "+I(R.role),1)]),u("div",zg,[u("code",Gg,I(R.value),1),u("button",{class:"token-remove",onClick:g=>oe(C.value,he)},"×",8,Xg)])]))),128)),x.value==="scale"?(m(),b("div",qg,[Pe(u("input",{"onUpdate:modelValue":D[13]||(D[13]=R=>w.value=R),class:"add-input",placeholder:"Role (e.g. 2xl)"},null,512),[[je,w.value]]),Pe(u("input",{"onUpdate:modelValue":D[14]||(D[14]=R=>A.value=R),class:"add-input",placeholder:"Value (e.g. 1.5rem)"},null,512),[[je,A.value]]),Pe(u("input",{"onUpdate:modelValue":D[15]||(D[15]=R=>F.value=R),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[je,F.value]]),u("div",Jg,[u("button",{class:"theme-btn commit small",onClick:z,disabled:!w.value.trim()||!A.value.trim()},"Add",8,Zg),u("button",{class:"theme-btn discard small",onClick:V},"Cancel")])])):(m(),b("button",{key:5,class:"add-token-btn",onClick:D[16]||(D[16]=R=>Ne("scale"))},"+ Add Size")),X.value.length?(m(),b("h4",Qg,"Weights")):U("",!0),X.value.length?(m(),b("div",e0,[(m(!0),b(ne,null,ge(X.value,R=>(m(),b("span",{key:R,class:"weight-chip"},I(R),1))),128))])):U("",!0)])):U("",!0),r.value==="spacing"?(m(),b("div",t0,[te.value.length===0&&S.value.length===0?(m(),b("div",n0,"No spacing tokens detected")):U("",!0),(m(!0),b(ne,null,ge(te.value,R=>(m(),b("div",{key:R.role,class:"token-row"},[u("div",i0,[u("span",{class:J(["token-role",{edited:ke(R,f.value)}])},I(R.role),3),u("code",l0,I(R.source),1)]),u("div",s0,[u("input",{class:"token-value-input",value:le(R,f.value),onChange:he=>be(R,he.target.value,f.value)},null,40,o0),u("div",r0,[u("div",{class:"spacing-bar",style:Re({width:le(R,f.value)})},null,4)])])]))),128)),(m(!0),b(ne,null,ge(S.value,(R,he)=>(m(),b("div",{key:"new-"+he,class:"token-row new"},[u("div",a0,[u("span",u0,"+ "+I(R.role),1)]),u("div",c0,[u("code",d0,I(R.value),1),u("button",{class:"token-remove",onClick:g=>oe(S.value,he)},"×",8,f0)])]))),128)),x.value==="spacing"?(m(),b("div",p0,[Pe(u("input",{"onUpdate:modelValue":D[17]||(D[17]=R=>w.value=R),class:"add-input",placeholder:"Role (e.g. 2xl)"},null,512),[[je,w.value]]),Pe(u("input",{"onUpdate:modelValue":D[18]||(D[18]=R=>A.value=R),class:"add-input",placeholder:"Value (e.g. 32px)"},null,512),[[je,A.value]]),Pe(u("input",{"onUpdate:modelValue":D[19]||(D[19]=R=>F.value=R),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[je,F.value]]),u("div",h0,[u("button",{class:"theme-btn commit small",onClick:z,disabled:!w.value.trim()||!A.value.trim()},"Add",8,v0),u("button",{class:"theme-btn discard small",onClick:V},"Cancel")])])):(m(),b("button",{key:2,class:"add-token-btn",onClick:D[20]||(D[20]=R=>Ne("spacing"))},"+ Add Spacing"))])):U("",!0),r.value==="borders"?(m(),b("div",g0,[D[34]||(D[34]=u("h4",{class:"section-subtitle"},"Border Radius",-1)),pe.value.length===0&&P.value.length===0?(m(),b("div",m0,"No border radius tokens detected")):U("",!0),(m(!0),b(ne,null,ge(pe.value,R=>(m(),b("div",{key:R.role,class:"token-row"},[u("div",y0,[u("span",{class:J(["token-role",{edited:ke(R,v.value)}])},I(R.role),3),u("code",b0,I(R.source),1)]),u("div",w0,[u("input",{class:"token-value-input",value:le(R,v.value),onChange:he=>be(R,he.target.value,v.value)},null,40,_0),u("div",{class:"radius-preview",style:Re({borderRadius:le(R,v.value)})},null,4)])]))),128)),(m(!0),b(ne,null,ge(P.value,(R,he)=>(m(),b("div",{key:"new-"+he,class:"token-row new"},[u("div",x0,[u("span",k0,"+ "+I(R.role),1)]),u("div",C0,[u("code",A0,I(R.value),1),u("button",{class:"token-remove",onClick:g=>oe(P.value,he)},"×",8,S0)])]))),128)),x.value==="radius"?(m(),b("div",$0,[Pe(u("input",{"onUpdate:modelValue":D[21]||(D[21]=R=>w.value=R),class:"add-input",placeholder:"Role (e.g. xl)"},null,512),[[je,w.value]]),Pe(u("input",{"onUpdate:modelValue":D[22]||(D[22]=R=>A.value=R),class:"add-input",placeholder:"Value (e.g. 16px)"},null,512),[[je,A.value]]),Pe(u("input",{"onUpdate:modelValue":D[23]||(D[23]=R=>F.value=R),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[je,F.value]]),u("div",T0,[u("button",{class:"theme-btn commit small",onClick:z,disabled:!w.value.trim()||!A.value.trim()},"Add",8,E0),u("button",{class:"theme-btn discard small",onClick:V},"Cancel")])])):(m(),b("button",{key:2,class:"add-token-btn",onClick:D[24]||(D[24]=R=>Ne("radius"))},"+ Add Radius"))])):U("",!0),r.value==="libraries"?(m(),b("div",F0,[D[35]||(D[35]=u("h4",{class:"section-subtitle"},"Icons",-1)),me.value?(m(),b("div",P0,[u("span",O0,I(me.value.library),1),me.value.version?(m(),b("span",R0,"v"+I(me.value.version),1)):U("",!0)])):(m(),b("div",I0,"No icon library detected")),D[36]||(D[36]=u("h4",{class:"section-subtitle",style:{"margin-top":"16px"}},"Components",-1)),ye.value?(m(),b(ne,{key:3},[u("div",L0,[u("span",D0,I(ye.value.library),1),ye.value.version?(m(),b("span",N0,"v"+I(ye.value.version),1)):U("",!0)]),ye.value.used.length?(m(),b("div",V0,[(m(!0),b(ne,null,ge(ye.value.used,R=>(m(),b("span",{key:R,class:"component-chip"},I(R),1))),128))])):U("",!0)],64)):(m(),b("div",M0,"No component library detected")),D[37]||(D[37]=u("h4",{class:"section-subtitle",style:{"margin-top":"16px"}},"Framework",-1)),(Me=ee(n))!=null&&Me.framework?(m(),b("div",H0,[u("span",B0,I(ee(n).framework.name),1),u("span",j0,"v"+I(ee(n).framework.version),1),(m(!0),b(ne,null,ge(ee(n).framework.styling,R=>(m(),b("span",{key:R,class:"styling-chip"},I(R),1))),128))])):U("",!0)])):U("",!0)])],64)):(m(),b("div",ig,[...D[27]||(D[27]=[u("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",opacity:"0.3"},[u("circle",{cx:"12",cy:"12",r:"10"}),u("path",{d:"M12 8v4l2 2"})],-1),u("p",null,"No design spec found",-1),u("p",{class:"theme-empty-hint"},[et("Run "),u("code",null,"/annotask-init"),et(" in your AI assistant to scan your project's design system")],-1)])]))])}}}),Y0=vt(U0,[["__scopeId","data-v-67b64182"]]);var Oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function K0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dl={exports:{}},Ro;function W0(){return Ro||(Ro=1,(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
21
- * Prism: Lightweight, robust, elegant syntax highlighting
22
- *
23
- * @license MIT <https://opensource.org/licenses/MIT>
24
- * @author Lea Verou <https://lea.verou.me>
25
- * @namespace
26
- * @public
27
- */var n=(function(l){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,o={},r={manual:l.Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function x(w){return w instanceof c?new c(w.type,x(w.content),w.alias):Array.isArray(w)?w.map(x):w.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(x){return Object.prototype.toString.call(x).slice(8,-1)},objId:function(x){return x.__id||Object.defineProperty(x,"__id",{value:++s}),x.__id},clone:function x(w,A){A=A||{};var F,N;switch(r.util.type(w)){case"Object":if(N=r.util.objId(w),A[N])return A[N];F={},A[N]=F;for(var W in w)w.hasOwnProperty(W)&&(F[W]=x(w[W],A));return F;case"Array":return N=r.util.objId(w),A[N]?A[N]:(F=[],A[N]=F,w.forEach(function(ie,O){F[O]=x(ie,A)}),F);default:return w}},getLanguage:function(x){for(;x;){var w=i.exec(x.className);if(w)return w[1].toLowerCase();x=x.parentElement}return"none"},setLanguage:function(x,w){x.className=x.className.replace(RegExp(i,"gi"),""),x.classList.add("language-"+w)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(F){var x=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(F.stack)||[])[1];if(x){var w=document.getElementsByTagName("script");for(var A in w)if(w[A].src==x)return w[A]}return null}},isActive:function(x,w,A){for(var F="no-"+w;x;){var N=x.classList;if(N.contains(w))return!0;if(N.contains(F))return!1;x=x.parentElement}return!!A}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(x,w){var A=r.util.clone(r.languages[x]);for(var F in w)A[F]=w[F];return A},insertBefore:function(x,w,A,F){F=F||r.languages;var N=F[x],W={};for(var ie in N)if(N.hasOwnProperty(ie)){if(ie==w)for(var O in A)A.hasOwnProperty(O)&&(W[O]=A[O]);A.hasOwnProperty(ie)||(W[ie]=N[ie])}var X=F[x];return F[x]=W,r.languages.DFS(r.languages,function(te,pe){pe===X&&te!=x&&(this[te]=W)}),W},DFS:function x(w,A,F,N){N=N||{};var W=r.util.objId;for(var ie in w)if(w.hasOwnProperty(ie)){A.call(w,ie,w[ie],F||ie);var O=w[ie],X=r.util.type(O);X==="Object"&&!N[W(O)]?(N[W(O)]=!0,x(O,A,null,N)):X==="Array"&&!N[W(O)]&&(N[W(O)]=!0,x(O,A,ie,N))}}},plugins:{},highlightAll:function(x,w){r.highlightAllUnder(document,x,w)},highlightAllUnder:function(x,w,A){var F={callback:A,container:x,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",F),F.elements=Array.prototype.slice.apply(F.container.querySelectorAll(F.selector)),r.hooks.run("before-all-elements-highlight",F);for(var N=0,W;W=F.elements[N++];)r.highlightElement(W,w===!0,F.callback)},highlightElement:function(x,w,A){var F=r.util.getLanguage(x),N=r.languages[F];r.util.setLanguage(x,F);var W=x.parentElement;W&&W.nodeName.toLowerCase()==="pre"&&r.util.setLanguage(W,F);var ie=x.textContent,O={element:x,language:F,grammar:N,code:ie};function X(pe){O.highlightedCode=pe,r.hooks.run("before-insert",O),O.element.innerHTML=O.highlightedCode,r.hooks.run("after-highlight",O),r.hooks.run("complete",O),A&&A.call(O.element)}if(r.hooks.run("before-sanity-check",O),W=O.element.parentElement,W&&W.nodeName.toLowerCase()==="pre"&&!W.hasAttribute("tabindex")&&W.setAttribute("tabindex","0"),!O.code){r.hooks.run("complete",O),A&&A.call(O.element);return}if(r.hooks.run("before-highlight",O),!O.grammar){X(r.util.encode(O.code));return}if(w&&l.Worker){var te=new Worker(r.filename);te.onmessage=function(pe){X(pe.data)},te.postMessage(JSON.stringify({language:O.language,code:O.code,immediateClose:!0}))}else X(r.highlight(O.code,O.grammar,O.language))},highlight:function(x,w,A){var F={code:x,grammar:w,language:A};if(r.hooks.run("before-tokenize",F),!F.grammar)throw new Error('The language "'+F.language+'" has no grammar.');return F.tokens=r.tokenize(F.code,F.grammar),r.hooks.run("after-tokenize",F),c.stringify(r.util.encode(F.tokens),F.language)},tokenize:function(x,w){var A=w.rest;if(A){for(var F in A)w[F]=A[F];delete w.rest}var N=new f;return v(N,N.head,x),a(x,N,w,N.head,0),y(N)},hooks:{all:{},add:function(x,w){var A=r.hooks.all;A[x]=A[x]||[],A[x].push(w)},run:function(x,w){var A=r.hooks.all[x];if(!(!A||!A.length))for(var F=0,N;N=A[F++];)N(w)}},Token:c};l.Prism=r;function c(x,w,A,F){this.type=x,this.content=w,this.alias=A,this.length=(F||"").length|0}c.stringify=function x(w,A){if(typeof w=="string")return w;if(Array.isArray(w)){var F="";return w.forEach(function(X){F+=x(X,A)}),F}var N={type:w.type,content:x(w.content,A),tag:"span",classes:["token",w.type],attributes:{},language:A},W=w.alias;W&&(Array.isArray(W)?Array.prototype.push.apply(N.classes,W):N.classes.push(W)),r.hooks.run("wrap",N);var ie="";for(var O in N.attributes)ie+=" "+O+'="'+(N.attributes[O]||"").replace(/"/g,"&quot;")+'"';return"<"+N.tag+' class="'+N.classes.join(" ")+'"'+ie+">"+N.content+"</"+N.tag+">"};function d(x,w,A,F){x.lastIndex=w;var N=x.exec(A);if(N&&F&&N[1]){var W=N[1].length;N.index+=W,N[0]=N[0].slice(W)}return N}function a(x,w,A,F,N,W){for(var ie in A)if(!(!A.hasOwnProperty(ie)||!A[ie])){var O=A[ie];O=Array.isArray(O)?O:[O];for(var X=0;X<O.length;++X){if(W&&W.cause==ie+","+X)return;var te=O[X],pe=te.inside,me=!!te.lookbehind,ye=!!te.greedy,De=te.alias;if(ye&&!te.pattern.global){var $e=te.pattern.toString().match(/[imsuy]*$/)[0];te.pattern=RegExp(te.pattern.source,$e+"g")}for(var be=te.pattern||te,le=F.next,ke=N;le!==w.tail&&!(W&&ke>=W.reach);ke+=le.value.length,le=le.next){var Ne=le.value;if(w.length>x.length)return;if(!(Ne instanceof c)){var V=1,z;if(ye){if(z=d(be,ke,x,me),!z||z.index>=x.length)break;var Ve=z.index,oe=z.index+z[0].length,we=ke;for(we+=le.value.length;Ve>=we;)le=le.next,we+=le.value.length;if(we-=le.value.length,ke=we,le.value instanceof c)continue;for(var Je=le;Je!==w.tail&&(we<oe||typeof Je.value=="string");Je=Je.next)V++,we+=Je.value.length;V--,Ne=x.slice(ke,we),z.index-=ke}else if(z=d(be,0,Ne,me),!z)continue;var Ve=z.index,q=z[0],D=Ne.slice(0,Ve),Me=Ne.slice(Ve+q.length),R=ke+Ne.length;W&&R>W.reach&&(W.reach=R);var he=le.prev;D&&(he=v(w,he,D),ke+=D.length),h(w,he,V);var g=new c(ie,pe?r.tokenize(q,pe):q,De,q);if(le=v(w,he,g),Me&&v(w,le,Me),V>1){var _={cause:ie+","+X,reach:R};a(x,w,A,le.prev,ke,_),W&&_.reach>W.reach&&(W.reach=_.reach)}}}}}}function f(){var x={value:null,prev:null,next:null},w={value:null,prev:x,next:null};x.next=w,this.head=x,this.tail=w,this.length=0}function v(x,w,A){var F=w.next,N={value:A,prev:w,next:F};return w.next=N,F.prev=N,x.length++,N}function h(x,w,A){for(var F=w.next,N=0;N<A&&F!==x.tail;N++)F=F.next;w.next=F,F.prev=w,x.length-=N}function y(x){for(var w=[],A=x.head.next;A!==x.tail;)w.push(A.value),A=A.next;return w}if(!l.document)return l.addEventListener&&(r.disableWorkerMessageHandler||l.addEventListener("message",function(x){var w=JSON.parse(x.data),A=w.language,F=w.code,N=w.immediateClose;l.postMessage(r.highlight(F,r.languages[A],A)),N&&l.close()},!1)),r;var C=r.util.currentScript();C&&(r.filename=C.src,C.hasAttribute("data-manual")&&(r.manual=!0));function S(){r.manual||r.highlightAll()}if(!r.manual){var P=document.readyState;P==="loading"||P==="interactive"&&C&&C.defer?document.addEventListener("DOMContentLoaded",S):window.requestAnimationFrame?window.requestAnimationFrame(S):window.setTimeout(S,16)}return r})(t);e.exports&&(e.exports=n),typeof Oo<"u"&&(Oo.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(l){l.type==="entity"&&(l.attributes.title=l.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,s){var o={};o["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};r["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:r},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(l,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+l+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(l){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;l.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},l.languages.css.atrule.inside.rest=l.languages.css;var s=l.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,(function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var l="Loading…",i=function(C,S){return"✖ Error "+C+" while fetching file: "+S},s="✖ Error: File does not exist or is empty",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",c="loading",d="loaded",a="failed",f="pre[data-src]:not(["+r+'="'+d+'"]):not(['+r+'="'+c+'"])';function v(C,S,P){var x=new XMLHttpRequest;x.open("GET",C,!0),x.onreadystatechange=function(){x.readyState==4&&(x.status<400&&x.responseText?S(x.responseText):x.status>=400?P(i(x.status,x.statusText)):P(s))},x.send(null)}function h(C){var S=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(C||"");if(S){var P=Number(S[1]),x=S[2],w=S[3];return x?w?[P,Number(w)]:[P,void 0]:[P,P]}}n.hooks.add("before-highlightall",function(C){C.selector+=", "+f}),n.hooks.add("before-sanity-check",function(C){var S=C.element;if(S.matches(f)){C.code="",S.setAttribute(r,c);var P=S.appendChild(document.createElement("CODE"));P.textContent=l;var x=S.getAttribute("data-src"),w=C.language;if(w==="none"){var A=(/\.(\w+)$/.exec(x)||[,"none"])[1];w=o[A]||A}n.util.setLanguage(P,w),n.util.setLanguage(S,w);var F=n.plugins.autoloader;F&&F.loadLanguages(w),v(x,function(N){S.setAttribute(r,d);var W=h(S.getAttribute("data-range"));if(W){var ie=N.split(/\r\n?|\n/g),O=W[0],X=W[1]==null?ie.length:W[1];O<0&&(O+=ie.length),O=Math.max(0,Math.min(O-1,ie.length)),X<0&&(X+=ie.length),X=Math.max(0,Math.min(X,ie.length)),N=ie.slice(O,X).join(`
28
- `),S.hasAttribute("data-start")||S.setAttribute("data-start",String(O+1))}P.textContent=N,n.highlightElement(P)},function(N){S.setAttribute(r,a),P.textContent=N})}}),n.plugins.fileHighlight={highlight:function(S){for(var P=(S||document).querySelectorAll(f),x=0,w;w=P[x++];)n.highlightElement(w)}};var y=!1;n.fileHighlight=function(){y||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),y=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()})(Dl)),Dl.exports}var z0=W0();const Mo=K0(z0);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;(function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,l="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(r,c){c=(c||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<value>>/g,function(){return r});return RegExp(d,c)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return l})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<key>>/g,function(){return"(?:"+i+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(s),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(Prism);/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function fa(e){return typeof e>"u"||e===null}function G0(e){return typeof e=="object"&&e!==null}function X0(e){return Array.isArray(e)?e:fa(e)?[]:[e]}function q0(e,t){var n,l,i,s;if(t)for(s=Object.keys(t),n=0,l=s.length;n<l;n+=1)i=s[n],e[i]=t[i];return e}function J0(e,t){var n="",l;for(l=0;l<t;l+=1)n+=e;return n}function Z0(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Q0=fa,em=G0,tm=X0,nm=J0,im=Z0,lm=q0,qe={isNothing:Q0,isObject:em,toArray:tm,repeat:nm,isNegativeZero:im,extend:lm};function pa(e,t){var n="",l=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
29
-
30
- `+e.mark.snippet),l+" "+n):l}function _i(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=pa(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}_i.prototype=Object.create(Error.prototype);_i.prototype.constructor=_i;_i.prototype.toString=function(t){return this.name+": "+pa(this,t)};var ht=_i;function Nl(e,t,n,l,i){var s="",o="",r=Math.floor(i/2)-1;return l-t>r&&(s=" ... ",t=l-r+s.length),n-l>r&&(o=" ...",n=l+r-o.length),{str:s+e.slice(t,n).replace(/\t/g,"→")+o,pos:l-t+s.length}}function Vl(e,t){return qe.repeat(" ",t-e.length)+e}function sm(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,l=[0],i=[],s,o=-1;s=n.exec(e.buffer);)i.push(s.index),l.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=l.length-2);o<0&&(o=l.length-1);var r="",c,d,a=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+a+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)d=Nl(e.buffer,l[o-c],i[o-c],e.position-(l[o]-l[o-c]),f),r=qe.repeat(" ",t.indent)+Vl((e.line-c+1).toString(),a)+" | "+d.str+`
31
- `+r;for(d=Nl(e.buffer,l[o],i[o],e.position,f),r+=qe.repeat(" ",t.indent)+Vl((e.line+1).toString(),a)+" | "+d.str+`
32
- `,r+=qe.repeat("-",t.indent+a+3+d.pos)+`^
33
- `,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)d=Nl(e.buffer,l[o+c],i[o+c],e.position-(l[o]-l[o+c]),f),r+=qe.repeat(" ",t.indent)+Vl((e.line+c+1).toString(),a)+" | "+d.str+`
34
- `;return r.replace(/\n$/,"")}var om=sm,rm=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],am=["scalar","sequence","mapping"];function um(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(l){t[String(l)]=n})}),t}function cm(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(rm.indexOf(n)===-1)throw new ht('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=um(t.styleAliases||null),am.indexOf(this.kind)===-1)throw new ht('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var nt=cm;function Lo(e,t){var n=[];return e[t].forEach(function(l){var i=n.length;n.forEach(function(s,o){s.tag===l.tag&&s.kind===l.kind&&s.multi===l.multi&&(i=o)}),n[i]=l}),n}function dm(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function l(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(l);return e}function os(e){return this.extend(e)}os.prototype.extend=function(t){var n=[],l=[];if(t instanceof nt)l.push(t);else if(Array.isArray(t))l=l.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(l=l.concat(t.explicit));else throw new ht("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(s){if(!(s instanceof nt))throw new ht("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new ht("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new ht("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),l.forEach(function(s){if(!(s instanceof nt))throw new ht("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(os.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(l),i.compiledImplicit=Lo(i,"implicit"),i.compiledExplicit=Lo(i,"explicit"),i.compiledTypeMap=dm(i.compiledImplicit,i.compiledExplicit),i};var ha=os,va=new nt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),ga=new nt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),ma=new nt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),ya=new ha({explicit:[va,ga,ma]});function fm(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function pm(){return null}function hm(e){return e===null}var ba=new nt("tag:yaml.org,2002:null",{kind:"scalar",resolve:fm,construct:pm,predicate:hm,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function vm(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function gm(e){return e==="true"||e==="True"||e==="TRUE"}function mm(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var wa=new nt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:vm,construct:gm,predicate:mm,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function ym(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function bm(e){return 48<=e&&e<=55}function wm(e){return 48<=e&&e<=57}function _m(e){if(e===null)return!1;var t=e.length,n=0,l=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;l=!0}return l&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!ym(e.charCodeAt(n)))return!1;l=!0}return l&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!bm(e.charCodeAt(n)))return!1;l=!0}return l&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!wm(e.charCodeAt(n)))return!1;l=!0}return!(!l||i==="_")}function xm(e){var t=e,n=1,l;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),l=t[0],(l==="-"||l==="+")&&(l==="-"&&(n=-1),t=t.slice(1),l=t[0]),t==="0")return 0;if(l==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function km(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!qe.isNegativeZero(e)}var _a=new nt("tag:yaml.org,2002:int",{kind:"scalar",resolve:_m,construct:xm,predicate:km,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Cm=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Am(e){return!(e===null||!Cm.test(e)||e[e.length-1]==="_")}function Sm(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var $m=/^[-+]?[0-9]+e/;function Tm(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(qe.isNegativeZero(e))return"-0.0";return n=e.toString(10),$m.test(n)?n.replace("e",".e"):n}function Em(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||qe.isNegativeZero(e))}var xa=new nt("tag:yaml.org,2002:float",{kind:"scalar",resolve:Am,construct:Sm,predicate:Em,represent:Tm,defaultStyle:"lowercase"}),ka=ya.extend({implicit:[ba,wa,_a,xa]}),Ca=ka,Aa=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Sa=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Fm(e){return e===null?!1:Aa.exec(e)!==null||Sa.exec(e)!==null}function Im(e){var t,n,l,i,s,o,r,c=0,d=null,a,f,v;if(t=Aa.exec(e),t===null&&(t=Sa.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],l=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,l,i));if(s=+t[4],o=+t[5],r=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(a=+t[10],f=+(t[11]||0),d=(a*60+f)*6e4,t[9]==="-"&&(d=-d)),v=new Date(Date.UTC(n,l,i,s,o,r,c)),d&&v.setTime(v.getTime()-d),v}function Pm(e){return e.toISOString()}var $a=new nt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Fm,construct:Im,instanceOf:Date,represent:Pm});function Om(e){return e==="<<"||e===null}var Ta=new nt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Om}),Es=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
35
- \r`;function Rm(e){if(e===null)return!1;var t,n,l=0,i=e.length,s=Es;for(n=0;n<i;n++)if(t=s.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;l+=6}return l%8===0}function Mm(e){var t,n,l=e.replace(/[\r\n=]/g,""),i=l.length,s=Es,o=0,r=[];for(t=0;t<i;t++)t%4===0&&t&&(r.push(o>>16&255),r.push(o>>8&255),r.push(o&255)),o=o<<6|s.indexOf(l.charAt(t));return n=i%4*6,n===0?(r.push(o>>16&255),r.push(o>>8&255),r.push(o&255)):n===18?(r.push(o>>10&255),r.push(o>>2&255)):n===12&&r.push(o>>4&255),new Uint8Array(r)}function Lm(e){var t="",n=0,l,i,s=e.length,o=Es;for(l=0;l<s;l++)l%3===0&&l&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[l];return i=s%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function Dm(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Ea=new nt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Rm,construct:Mm,predicate:Dm,represent:Lm}),Nm=Object.prototype.hasOwnProperty,Vm=Object.prototype.toString;function Hm(e){if(e===null)return!0;var t=[],n,l,i,s,o,r=e;for(n=0,l=r.length;n<l;n+=1){if(i=r[n],o=!1,Vm.call(i)!=="[object Object]")return!1;for(s in i)if(Nm.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function Bm(e){return e!==null?e:[]}var Fa=new nt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Hm,construct:Bm}),jm=Object.prototype.toString;function Um(e){if(e===null)return!0;var t,n,l,i,s,o=e;for(s=new Array(o.length),t=0,n=o.length;t<n;t+=1){if(l=o[t],jm.call(l)!=="[object Object]"||(i=Object.keys(l),i.length!==1))return!1;s[t]=[i[0],l[i[0]]]}return!0}function Ym(e){if(e===null)return[];var t,n,l,i,s,o=e;for(s=new Array(o.length),t=0,n=o.length;t<n;t+=1)l=o[t],i=Object.keys(l),s[t]=[i[0],l[i[0]]];return s}var Ia=new nt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Um,construct:Ym}),Km=Object.prototype.hasOwnProperty;function Wm(e){if(e===null)return!0;var t,n=e;for(t in n)if(Km.call(n,t)&&n[t]!==null)return!1;return!0}function zm(e){return e!==null?e:{}}var Pa=new nt("tag:yaml.org,2002:set",{kind:"mapping",resolve:Wm,construct:zm}),Fs=Ca.extend({implicit:[$a,Ta],explicit:[Ea,Fa,Ia,Pa]}),mn=Object.prototype.hasOwnProperty,el=1,Oa=2,Ra=3,tl=4,Hl=1,Gm=2,Do=3,Xm=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,qm=/[\x85\u2028\u2029]/,Jm=/[,\[\]\{\}]/,Ma=/^(?:!|!!|![a-z\-]+!)$/i,La=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function No(e){return Object.prototype.toString.call(e)}function Yt(e){return e===10||e===13}function En(e){return e===9||e===32}function mt(e){return e===9||e===32||e===10||e===13}function Hn(e){return e===44||e===91||e===93||e===123||e===125}function Zm(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Qm(e){return e===120?2:e===117?4:e===85?8:0}function e1(e){return 48<=e&&e<=57?e-48:-1}function Vo(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
36
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function t1(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Da(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var Na=new Array(256),Va=new Array(256);for(var Ln=0;Ln<256;Ln++)Na[Ln]=Vo(Ln)?1:0,Va[Ln]=Vo(Ln);function n1(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Fs,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ha(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=om(n),new ht(t,n)}function ue(e,t){throw Ha(e,t)}function nl(e,t){e.onWarning&&e.onWarning.call(null,Ha(e,t))}var Ho={YAML:function(t,n,l){var i,s,o;t.version!==null&&ue(t,"duplication of %YAML directive"),l.length!==1&&ue(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(l[0]),i===null&&ue(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&ue(t,"unacceptable YAML version of the document"),t.version=l[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&nl(t,"unsupported YAML version of the document")},TAG:function(t,n,l){var i,s;l.length!==2&&ue(t,"TAG directive accepts exactly two arguments"),i=l[0],s=l[1],Ma.test(i)||ue(t,"ill-formed tag handle (first argument) of the TAG directive"),mn.call(t.tagMap,i)&&ue(t,'there is a previously declared suffix for "'+i+'" tag handle'),La.test(s)||ue(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{ue(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function vn(e,t,n,l){var i,s,o,r;if(t<n){if(r=e.input.slice(t,n),l)for(i=0,s=r.length;i<s;i+=1)o=r.charCodeAt(i),o===9||32<=o&&o<=1114111||ue(e,"expected valid JSON character");else Xm.test(r)&&ue(e,"the stream contains non-printable characters");e.result+=r}}function Bo(e,t,n,l){var i,s,o,r;for(qe.isObject(n)||ue(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),o=0,r=i.length;o<r;o+=1)s=i[o],mn.call(t,s)||(Da(t,s,n[s]),l[s]=!0)}function Bn(e,t,n,l,i,s,o,r,c){var d,a;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),d=0,a=i.length;d<a;d+=1)Array.isArray(i[d])&&ue(e,"nested arrays are not supported inside keys"),typeof i=="object"&&No(i[d])==="[object Object]"&&(i[d]="[object Object]");if(typeof i=="object"&&No(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),l==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(d=0,a=s.length;d<a;d+=1)Bo(e,t,s[d],n);else Bo(e,t,s,n);else!e.json&&!mn.call(n,i)&&mn.call(t,i)&&(e.line=o||e.line,e.lineStart=r||e.lineStart,e.position=c||e.position,ue(e,"duplicated mapping key")),Da(t,i,s),delete n[i];return t}function Is(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ue(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ke(e,t,n){for(var l=0,i=e.input.charCodeAt(e.position);i!==0;){for(;En(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Yt(i))for(Is(e),i=e.input.charCodeAt(e.position),l++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&l!==0&&e.lineIndent<n&&nl(e,"deficient indentation"),l}function yl(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||mt(n)))}function Ps(e,t){t===1?e.result+=" ":t>1&&(e.result+=qe.repeat(`
37
- `,t-1))}function i1(e,t,n){var l,i,s,o,r,c,d,a,f=e.kind,v=e.result,h;if(h=e.input.charCodeAt(e.position),mt(h)||Hn(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),mt(i)||n&&Hn(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,r=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),mt(i)||n&&Hn(i))break}else if(h===35){if(l=e.input.charCodeAt(e.position-1),mt(l))break}else{if(e.position===e.lineStart&&yl(e)||n&&Hn(h))break;if(Yt(h))if(c=e.line,d=e.lineStart,a=e.lineIndent,Ke(e,!1,-1),e.lineIndent>=t){r=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=d,e.lineIndent=a;break}}r&&(vn(e,s,o,!1),Ps(e,e.line-c),s=o=e.position,r=!1),En(h)||(o=e.position+1),h=e.input.charCodeAt(++e.position)}return vn(e,s,o,!1),e.result?!0:(e.kind=f,e.result=v,!1)}function l1(e,t){var n,l,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,l=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(vn(e,l,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)l=e.position,e.position++,i=e.position;else return!0;else Yt(n)?(vn(e,l,i,!0),Ps(e,Ke(e,!1,t)),l=i=e.position):e.position===e.lineStart&&yl(e)?ue(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ue(e,"unexpected end of the stream within a single quoted scalar")}function s1(e,t){var n,l,i,s,o,r;if(r=e.input.charCodeAt(e.position),r!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=l=e.position;(r=e.input.charCodeAt(e.position))!==0;){if(r===34)return vn(e,n,e.position,!0),e.position++,!0;if(r===92){if(vn(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),Yt(r))Ke(e,!1,t);else if(r<256&&Na[r])e.result+=Va[r],e.position++;else if((o=Qm(r))>0){for(i=o,s=0;i>0;i--)r=e.input.charCodeAt(++e.position),(o=Zm(r))>=0?s=(s<<4)+o:ue(e,"expected hexadecimal character");e.result+=t1(s),e.position++}else ue(e,"unknown escape sequence");n=l=e.position}else Yt(r)?(vn(e,n,l,!0),Ps(e,Ke(e,!1,t)),n=l=e.position):e.position===e.lineStart&&yl(e)?ue(e,"unexpected end of the document within a double quoted scalar"):(e.position++,l=e.position)}ue(e,"unexpected end of the stream within a double quoted scalar")}function o1(e,t){var n=!0,l,i,s,o=e.tag,r,c=e.anchor,d,a,f,v,h,y=Object.create(null),C,S,P,x;if(x=e.input.charCodeAt(e.position),x===91)a=93,h=!1,r=[];else if(x===123)a=125,h=!0,r={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=r),x=e.input.charCodeAt(++e.position);x!==0;){if(Ke(e,!0,t),x=e.input.charCodeAt(e.position),x===a)return e.position++,e.tag=o,e.anchor=c,e.kind=h?"mapping":"sequence",e.result=r,!0;n?x===44&&ue(e,"expected the node content, but found ','"):ue(e,"missed comma between flow collection entries"),S=C=P=null,f=v=!1,x===63&&(d=e.input.charCodeAt(e.position+1),mt(d)&&(f=v=!0,e.position++,Ke(e,!0,t))),l=e.line,i=e.lineStart,s=e.position,Xn(e,t,el,!1,!0),S=e.tag,C=e.result,Ke(e,!0,t),x=e.input.charCodeAt(e.position),(v||e.line===l)&&x===58&&(f=!0,x=e.input.charCodeAt(++e.position),Ke(e,!0,t),Xn(e,t,el,!1,!0),P=e.result),h?Bn(e,r,y,S,C,P,l,i,s):f?r.push(Bn(e,null,y,S,C,P,l,i,s)):r.push(C),Ke(e,!0,t),x=e.input.charCodeAt(e.position),x===44?(n=!0,x=e.input.charCodeAt(++e.position)):n=!1}ue(e,"unexpected end of the stream within a flow collection")}function r1(e,t){var n,l,i=Hl,s=!1,o=!1,r=t,c=0,d=!1,a,f;if(f=e.input.charCodeAt(e.position),f===124)l=!1;else if(f===62)l=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Hl===i?i=f===43?Do:Gm:ue(e,"repeat of a chomping mode identifier");else if((a=e1(f))>=0)a===0?ue(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ue(e,"repeat of an indentation width identifier"):(r=t+a-1,o=!0);else break;if(En(f)){do f=e.input.charCodeAt(++e.position);while(En(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Yt(f)&&f!==0)}for(;f!==0;){for(Is(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndent<r)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>r&&(r=e.lineIndent),Yt(f)){c++;continue}if(e.lineIndent<r){i===Do?e.result+=qe.repeat(`
38
- `,s?1+c:c):i===Hl&&s&&(e.result+=`
39
- `);break}for(l?En(f)?(d=!0,e.result+=qe.repeat(`
40
- `,s?1+c:c)):d?(d=!1,e.result+=qe.repeat(`
41
- `,c+1)):c===0?s&&(e.result+=" "):e.result+=qe.repeat(`
42
- `,c):e.result+=qe.repeat(`
43
- `,s?1+c:c),s=!0,o=!0,c=0,n=e.position;!Yt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);vn(e,n,e.position,!1)}return!0}function jo(e,t){var n,l=e.tag,i=e.anchor,s=[],o,r=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ue(e,"tab characters must not be used in indentation")),!(c!==45||(o=e.input.charCodeAt(e.position+1),!mt(o))));){if(r=!0,e.position++,Ke(e,!0,-1)&&e.lineIndent<=t){s.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,Xn(e,t,Ra,!1,!0),s.push(e.result),Ke(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)ue(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return r?(e.tag=l,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function a1(e,t,n){var l,i,s,o,r,c,d=e.tag,a=e.anchor,f={},v=Object.create(null),h=null,y=null,C=null,S=!1,P=!1,x;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),x=e.input.charCodeAt(e.position);x!==0;){if(!S&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ue(e,"tab characters must not be used in indentation")),l=e.input.charCodeAt(e.position+1),s=e.line,(x===63||x===58)&&mt(l))x===63?(S&&(Bn(e,f,v,h,y,null,o,r,c),h=y=C=null),P=!0,S=!0,i=!0):S?(S=!1,i=!0):ue(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,x=l;else{if(o=e.line,r=e.lineStart,c=e.position,!Xn(e,n,Oa,!1,!0))break;if(e.line===s){for(x=e.input.charCodeAt(e.position);En(x);)x=e.input.charCodeAt(++e.position);if(x===58)x=e.input.charCodeAt(++e.position),mt(x)||ue(e,"a whitespace character is expected after the key-value separator within a block mapping"),S&&(Bn(e,f,v,h,y,null,o,r,c),h=y=C=null),P=!0,S=!1,i=!1,h=e.tag,y=e.result;else if(P)ue(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=d,e.anchor=a,!0}else if(P)ue(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=d,e.anchor=a,!0}if((e.line===s||e.lineIndent>t)&&(S&&(o=e.line,r=e.lineStart,c=e.position),Xn(e,t,tl,!0,i)&&(S?y=e.result:C=e.result),S||(Bn(e,f,v,h,y,C,o,r,c),h=y=C=null),Ke(e,!0,-1),x=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&x!==0)ue(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return S&&Bn(e,f,v,h,y,null,o,r,c),P&&(e.tag=d,e.anchor=a,e.kind="mapping",e.result=f),P}function u1(e){var t,n=!1,l=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&ue(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(l=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):ue(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!mt(o);)o===33&&(l?ue(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Ma.test(i)||ue(e,"named tag handle cannot contain such characters"),l=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Jm.test(s)&&ue(e,"tag suffix cannot contain flow indicator characters")}s&&!La.test(s)&&ue(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{ue(e,"tag name is malformed: "+s)}return n?e.tag=s:mn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:ue(e,'undeclared tag handle "'+i+'"'),!0}function c1(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&ue(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!mt(n)&&!Hn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ue(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function d1(e){var t,n,l;if(l=e.input.charCodeAt(e.position),l!==42)return!1;for(l=e.input.charCodeAt(++e.position),t=e.position;l!==0&&!mt(l)&&!Hn(l);)l=e.input.charCodeAt(++e.position);return e.position===t&&ue(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),mn.call(e.anchorMap,n)||ue(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Ke(e,!0,-1),!0}function Xn(e,t,n,l,i){var s,o,r,c=1,d=!1,a=!1,f,v,h,y,C,S;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=r=tl===n||Ra===n,l&&Ke(e,!0,-1)&&(d=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;u1(e)||c1(e);)Ke(e,!0,-1)?(d=!0,r=s,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):r=!1;if(r&&(r=d||i),(c===1||tl===n)&&(el===n||Oa===n?C=t:C=t+1,S=e.position-e.lineStart,c===1?r&&(jo(e,S)||a1(e,S,C))||o1(e,C)?a=!0:(o&&r1(e,C)||l1(e,C)||s1(e,C)?a=!0:d1(e)?(a=!0,(e.tag!==null||e.anchor!==null)&&ue(e,"alias node should not have any properties")):i1(e,C,el===n)&&(a=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(a=r&&jo(e,S))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ue(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,v=e.implicitTypes.length;f<v;f+=1)if(y=e.implicitTypes[f],y.resolve(e.result)){e.result=y.construct(e.result),e.tag=y.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(mn.call(e.typeMap[e.kind||"fallback"],e.tag))y=e.typeMap[e.kind||"fallback"][e.tag];else for(y=null,h=e.typeMap.multi[e.kind||"fallback"],f=0,v=h.length;f<v;f+=1)if(e.tag.slice(0,h[f].tag.length)===h[f].tag){y=h[f];break}y||ue(e,"unknown tag !<"+e.tag+">"),e.result!==null&&y.kind!==e.kind&&ue(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+y.kind+'", not "'+e.kind+'"'),y.resolve(e.result,e.tag)?(e.result=y.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ue(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||a}function f1(e){var t=e.position,n,l,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Ke(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!mt(o);)o=e.input.charCodeAt(++e.position);for(l=e.input.slice(n,e.position),i=[],l.length<1&&ue(e,"directive name must not be less than one character in length");o!==0;){for(;En(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Yt(o));break}if(Yt(o))break;for(n=e.position;o!==0&&!mt(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&Is(e),mn.call(Ho,l)?Ho[l](e,l,i):nl(e,'unknown document directive "'+l+'"')}if(Ke(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ke(e,!0,-1)):s&&ue(e,"directives end mark is expected"),Xn(e,e.lineIndent-1,tl,!1,!0),Ke(e,!0,-1),e.checkLineBreaks&&qm.test(e.input.slice(t,e.position))&&nl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&yl(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ke(e,!0,-1));return}if(e.position<e.length-1)ue(e,"end of the stream or a document separator is expected");else return}function Ba(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
44
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new n1(e,t),l=e.indexOf("\0");for(l!==-1&&(n.position=l,ue(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)f1(n);return n.documents}function p1(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var l=Ba(e,n);if(typeof t!="function")return l;for(var i=0,s=l.length;i<s;i+=1)t(l[i])}function h1(e,t){var n=Ba(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new ht("expected a single document in the stream, but found more")}}var v1=p1,g1=h1,ja={loadAll:v1,load:g1},Ua=Object.prototype.toString,Ya=Object.prototype.hasOwnProperty,Os=65279,m1=9,xi=10,y1=13,b1=32,w1=33,_1=34,rs=35,x1=37,k1=38,C1=39,A1=42,Ka=44,S1=45,il=58,$1=61,T1=62,E1=63,F1=64,Wa=91,za=93,I1=96,Ga=123,P1=124,Xa=125,at={};at[0]="\\0";at[7]="\\a";at[8]="\\b";at[9]="\\t";at[10]="\\n";at[11]="\\v";at[12]="\\f";at[13]="\\r";at[27]="\\e";at[34]='\\"';at[92]="\\\\";at[133]="\\N";at[160]="\\_";at[8232]="\\L";at[8233]="\\P";var O1=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],R1=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function M1(e,t){var n,l,i,s,o,r,c;if(t===null)return{};for(n={},l=Object.keys(t),i=0,s=l.length;i<s;i+=1)o=l[i],r=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&Ya.call(c.styleAliases,r)&&(r=c.styleAliases[r]),n[o]=r;return n}function L1(e){var t,n,l;if(t=e.toString(16).toUpperCase(),e<=255)n="x",l=2;else if(e<=65535)n="u",l=4;else if(e<=4294967295)n="U",l=8;else throw new ht("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+qe.repeat("0",l-t.length)+t}var D1=1,ki=2;function N1(e){this.schema=e.schema||Fs,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=qe.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=M1(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?ki:D1,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Uo(e,t){for(var n=qe.repeat(" ",t),l=0,i=-1,s="",o,r=e.length;l<r;)i=e.indexOf(`
45
- `,l),i===-1?(o=e.slice(l),l=r):(o=e.slice(l,i+1),l=i+1),o.length&&o!==`
46
- `&&(s+=n),s+=o;return s}function as(e,t){return`
47
- `+qe.repeat(" ",e.indent*t)}function V1(e,t){var n,l,i;for(n=0,l=e.implicitTypes.length;n<l;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function ll(e){return e===b1||e===m1}function Ci(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Os||65536<=e&&e<=1114111}function Yo(e){return Ci(e)&&e!==Os&&e!==y1&&e!==xi}function Ko(e,t,n){var l=Yo(e),i=l&&!ll(e);return(n?l:l&&e!==Ka&&e!==Wa&&e!==za&&e!==Ga&&e!==Xa)&&e!==rs&&!(t===il&&!i)||Yo(t)&&!ll(t)&&e===rs||t===il&&i}function H1(e){return Ci(e)&&e!==Os&&!ll(e)&&e!==S1&&e!==E1&&e!==il&&e!==Ka&&e!==Wa&&e!==za&&e!==Ga&&e!==Xa&&e!==rs&&e!==k1&&e!==A1&&e!==w1&&e!==P1&&e!==$1&&e!==T1&&e!==C1&&e!==_1&&e!==x1&&e!==F1&&e!==I1}function B1(e){return!ll(e)&&e!==il}function ri(e,t){var n=e.charCodeAt(t),l;return n>=55296&&n<=56319&&t+1<e.length&&(l=e.charCodeAt(t+1),l>=56320&&l<=57343)?(n-55296)*1024+l-56320+65536:n}function qa(e){var t=/^\n* /;return t.test(e)}var Ja=1,us=2,Za=3,Qa=4,Vn=5;function j1(e,t,n,l,i,s,o,r){var c,d=0,a=null,f=!1,v=!1,h=l!==-1,y=-1,C=H1(ri(e,0))&&B1(ri(e,e.length-1));if(t||o)for(c=0;c<e.length;d>=65536?c+=2:c++){if(d=ri(e,c),!Ci(d))return Vn;C=C&&Ko(d,a,r),a=d}else{for(c=0;c<e.length;d>=65536?c+=2:c++){if(d=ri(e,c),d===xi)f=!0,h&&(v=v||c-y-1>l&&e[y+1]!==" ",y=c);else if(!Ci(d))return Vn;C=C&&Ko(d,a,r),a=d}v=v||h&&c-y-1>l&&e[y+1]!==" "}return!f&&!v?C&&!o&&!i(e)?Ja:s===ki?Vn:us:n>9&&qa(e)?Vn:o?s===ki?Vn:us:v?Qa:Za}function U1(e,t,n,l,i){e.dump=(function(){if(t.length===0)return e.quotingType===ki?'""':"''";if(!e.noCompatMode&&(O1.indexOf(t)!==-1||R1.test(t)))return e.quotingType===ki?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),r=l||e.flowLevel>-1&&n>=e.flowLevel;function c(d){return V1(e,d)}switch(j1(t,r,e.indent,o,c,e.quotingType,e.forceQuotes&&!l,i)){case Ja:return t;case us:return"'"+t.replace(/'/g,"''")+"'";case Za:return"|"+Wo(t,e.indent)+zo(Uo(t,s));case Qa:return">"+Wo(t,e.indent)+zo(Uo(Y1(t,o),s));case Vn:return'"'+K1(t)+'"';default:throw new ht("impossible error: invalid scalar style")}})()}function Wo(e,t){var n=qa(e)?String(t):"",l=e[e.length-1]===`
48
- `,i=l&&(e[e.length-2]===`
49
- `||e===`
50
- `),s=i?"+":l?"":"-";return n+s+`
51
- `}function zo(e){return e[e.length-1]===`
52
- `?e.slice(0,-1):e}function Y1(e,t){for(var n=/(\n+)([^\n]*)/g,l=(function(){var d=e.indexOf(`
53
- `);return d=d!==-1?d:e.length,n.lastIndex=d,Go(e.slice(0,d),t)})(),i=e[0]===`
54
- `||e[0]===" ",s,o;o=n.exec(e);){var r=o[1],c=o[2];s=c[0]===" ",l+=r+(!i&&!s&&c!==""?`
55
- `:"")+Go(c,t),i=s}return l}function Go(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,l,i=0,s,o=0,r=0,c="";l=n.exec(e);)r=l.index,r-i>t&&(s=o>i?o:r,c+=`
56
- `+e.slice(i,s),i=s+1),o=r;return c+=`
57
- `,e.length-i>t&&o>i?c+=e.slice(i,o)+`
58
- `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function K1(e){for(var t="",n=0,l,i=0;i<e.length;n>=65536?i+=2:i++)n=ri(e,i),l=at[n],!l&&Ci(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=l||L1(n);return t}function W1(e,t,n){var l="",i=e.tag,s,o,r;for(s=0,o=n.length;s<o;s+=1)r=n[s],e.replacer&&(r=e.replacer.call(n,String(s),r)),(un(e,t,r,!1,!1)||typeof r>"u"&&un(e,t,null,!1,!1))&&(l!==""&&(l+=","+(e.condenseFlow?"":" ")),l+=e.dump);e.tag=i,e.dump="["+l+"]"}function Xo(e,t,n,l){var i="",s=e.tag,o,r,c;for(o=0,r=n.length;o<r;o+=1)c=n[o],e.replacer&&(c=e.replacer.call(n,String(o),c)),(un(e,t+1,c,!0,!0,!1,!0)||typeof c>"u"&&un(e,t+1,null,!0,!0,!1,!0))&&((!l||i!=="")&&(i+=as(e,t)),e.dump&&xi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function z1(e,t,n){var l="",i=e.tag,s=Object.keys(n),o,r,c,d,a;for(o=0,r=s.length;o<r;o+=1)a="",l!==""&&(a+=", "),e.condenseFlow&&(a+='"'),c=s[o],d=n[c],e.replacer&&(d=e.replacer.call(n,c,d)),un(e,t,c,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),un(e,t,d,!1,!1)&&(a+=e.dump,l+=a));e.tag=i,e.dump="{"+l+"}"}function G1(e,t,n,l){var i="",s=e.tag,o=Object.keys(n),r,c,d,a,f,v;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new ht("sortKeys must be a boolean or a function");for(r=0,c=o.length;r<c;r+=1)v="",(!l||i!=="")&&(v+=as(e,t)),d=o[r],a=n[d],e.replacer&&(a=e.replacer.call(n,d,a)),un(e,t+1,d,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&xi===e.dump.charCodeAt(0)?v+="?":v+="? "),v+=e.dump,f&&(v+=as(e,t)),un(e,t+1,a,!0,f)&&(e.dump&&xi===e.dump.charCodeAt(0)?v+=":":v+=": ",v+=e.dump,i+=v));e.tag=s,e.dump=i||"{}"}function qo(e,t,n){var l,i,s,o,r,c;for(i=n?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(r=i[s],(r.instanceOf||r.predicate)&&(!r.instanceOf||typeof t=="object"&&t instanceof r.instanceOf)&&(!r.predicate||r.predicate(t))){if(n?r.multi&&r.representName?e.tag=r.representName(t):e.tag=r.tag:e.tag="?",r.represent){if(c=e.styleMap[r.tag]||r.defaultStyle,Ua.call(r.represent)==="[object Function]")l=r.represent(t,c);else if(Ya.call(r.represent,c))l=r.represent[c](t,c);else throw new ht("!<"+r.tag+'> tag resolver accepts not "'+c+'" style');e.dump=l}return!0}return!1}function un(e,t,n,l,i,s,o){e.tag=null,e.dump=n,qo(e,n,!1)||qo(e,n,!0);var r=Ua.call(e.dump),c=l,d;l&&(l=e.flowLevel<0||e.flowLevel>t);var a=r==="[object Object]"||r==="[object Array]",f,v;if(a&&(f=e.duplicates.indexOf(n),v=f!==-1),(e.tag!==null&&e.tag!=="?"||v||e.indent!==2&&t>0)&&(i=!1),v&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(a&&v&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),r==="[object Object]")l&&Object.keys(e.dump).length!==0?(G1(e,t,e.dump,i),v&&(e.dump="&ref_"+f+e.dump)):(z1(e,t,e.dump),v&&(e.dump="&ref_"+f+" "+e.dump));else if(r==="[object Array]")l&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Xo(e,t-1,e.dump,i):Xo(e,t,e.dump,i),v&&(e.dump="&ref_"+f+e.dump)):(W1(e,t,e.dump),v&&(e.dump="&ref_"+f+" "+e.dump));else if(r==="[object String]")e.tag!=="?"&&U1(e,e.dump,t,s,c);else{if(r==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ht("unacceptable kind of an object to dump "+r)}e.tag!==null&&e.tag!=="?"&&(d=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?d="!"+d:d.slice(0,18)==="tag:yaml.org,2002:"?d="!!"+d.slice(18):d="!<"+d+">",e.dump=d+" "+e.dump)}return!0}function X1(e,t){var n=[],l=[],i,s;for(cs(e,n,l),i=0,s=l.length;i<s;i+=1)t.duplicates.push(n[l[i]]);t.usedDuplicates=new Array(s)}function cs(e,t,n){var l,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)cs(e[i],t,n);else for(l=Object.keys(e),i=0,s=l.length;i<s;i+=1)cs(e[l[i]],t,n)}function q1(e,t){t=t||{};var n=new N1(t);n.noRefs||X1(e,n);var l=e;return n.replacer&&(l=n.replacer.call({"":l},"",l)),un(n,0,l,!0,!0)?n.dump+`
59
- `:""}var J1=q1,Z1={dump:J1};function Rs(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var Q1=nt,ey=ha,ty=ya,ny=ka,iy=Ca,ly=Fs,sy=ja.load,oy=ja.loadAll,ry=Z1.dump,ay=ht,uy={binary:Ea,float:xa,map:ma,null:ba,pairs:Ia,set:Pa,timestamp:$a,bool:wa,int:_a,merge:Ta,omap:Fa,seq:ga,str:va},cy=Rs("safeLoad","load"),dy=Rs("safeLoadAll","loadAll"),fy=Rs("safeDump","dump"),py={Type:Q1,Schema:ey,FAILSAFE_SCHEMA:ty,JSON_SCHEMA:ny,CORE_SCHEMA:iy,DEFAULT_SCHEMA:ly,load:sy,loadAll:oy,dump:ry,YAMLException:ay,types:uy,safeLoad:cy,safeLoadAll:dy,safeDump:fy};const hy={class:"report-drawer"},vy={class:"report-header"},gy={class:"report-title"},my={key:0,class:"report-badge"},yy={class:"report-controls"},by={class:"format-toggle"},wy=["disabled"],_y={key:0,width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},xy={class:"report-body"},ky={key:0,class:"report-code"},Cy=["innerHTML"],Ay={key:1,class:"report-empty"},Sy=lt({__name:"ReportViewer",props:{tasks:{}},emits:["close"],setup(e,{emit:t}){const n=e,l=t,i=Y("json"),s=Y(!1),o=ae(()=>n.tasks.length?{version:"1.0",tasks:n.tasks}:null),r=ae(()=>o.value?i.value==="yaml"?py.dump(o.value,{indent:2,lineWidth:120,noRefs:!0}):JSON.stringify(o.value,null,2):""),c=Y("");ot([r,i],()=>{kr(()=>{const v=i.value==="yaml"?"yaml":"json",h=Mo.languages[v];c.value=h?Mo.highlight(r.value,h,v):d(r.value)})},{immediate:!0});function d(v){return v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function a(){navigator.clipboard.writeText(r.value),s.value=!0,setTimeout(()=>s.value=!1,2e3)}function f(v){v.key==="Escape"&&l("close")}return(v,h)=>(m(),b("div",{class:"report-overlay",onKeydown:f,tabindex:"-1"},[u("div",{class:"report-backdrop",onClick:h[0]||(h[0]=y=>l("close"))}),u("aside",hy,[u("header",vy,[u("div",gy,[h[4]||(h[4]=u("span",null,"Tasks",-1)),e.tasks.length?(m(),b("span",my,I(e.tasks.length)+" task"+I(e.tasks.length===1?"":"s"),1)):U("",!0)]),u("div",yy,[u("div",by,[u("button",{class:J(["fmt-btn",{active:i.value==="json"}]),onClick:h[1]||(h[1]=y=>i.value="json")},"JSON",2),u("button",{class:J(["fmt-btn",{active:i.value==="yaml"}]),onClick:h[2]||(h[2]=y=>i.value="yaml")},"YAML",2)]),u("button",{class:"copy-btn",onClick:a,disabled:!o.value},[s.value?U("",!0):(m(),b("svg",_y,[...h[5]||(h[5]=[u("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"},null,-1),u("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},null,-1)])])),et(" "+I(s.value?"Copied!":"Copy"),1)],8,wy),u("button",{class:"close-btn",onClick:h[3]||(h[3]=y=>l("close")),title:"Close (Esc)"},[...h[6]||(h[6]=[u("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),u("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])])]),u("div",xy,[o.value?(m(),b("pre",ky,[u("code",{innerHTML:c.value},null,8,Cy)])):(m(),b("div",Ay,[...h[7]||(h[7]=[u("p",null,"No tasks yet.",-1),u("p",{class:"report-empty-hint"},"Pin elements, draw sections, or add annotations to create tasks for your coding agent.",-1)])]))])])],32))}}),$y=["title"],Ty={class:"vp-label"},Ey={key:0,class:"vp-dropdown"},Fy={class:"vp-group"},Iy=["onClick"],Py={class:"vp-item-label"},Oy={class:"vp-item-dim"},Ry={class:"vp-group"},My=["onClick"],Ly={class:"vp-item-label"},Dy={class:"vp-item-dim"},Ny={class:"vp-group"},Vy=["onClick"],Hy={class:"vp-item-label"},By={class:"vp-item-dim"},jy={class:"vp-custom"},Uy={class:"vp-custom-row"},Yy=lt({__name:"ViewportSelector",setup(e){const t=Ts(),n=Y(!1),l=Y(""),i=Y(""),s=Y(null),o=ae(()=>{const f={phone:[],tablet:[],desktop:[]};for(const v of ls)f[v.category].push(v);return f}),r=ae(()=>{const f=t.effectiveViewport.value;return!f.width&&!f.height?"Responsive":`${f.width}×${f.height}`});function c(f){t.selectPreset(f),n.value=!1}function d(){const f=parseInt(l.value)||null,v=parseInt(i.value)||null;(f||v)&&(t.setCustomDimensions(f,v),n.value=!1)}function a(f){n.value&&s.value&&!s.value.contains(f.target)&&(n.value=!1)}return qn(()=>document.addEventListener("click",a)),In(()=>document.removeEventListener("click",a)),(f,v)=>(m(),b("div",{ref_key:"root",ref:s,class:"viewport-selector"},[u("button",{class:"vp-trigger",onClick:v[0]||(v[0]=h=>n.value=!n.value),title:ee(t).effectiveViewport.value.label},[v[5]||(v[5]=u("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}),u("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),u("line",{x1:"12",y1:"17",x2:"12",y2:"21"})],-1)),u("span",Ty,I(r.value),1),v[6]||(v[6]=u("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3"},[u("polyline",{points:"6 9 12 15 18 9"})],-1))],8,$y),n.value?(m(),b("div",Ey,[u("button",{class:J(["vp-item",{active:ee(t).isFullWidth.value}]),onClick:v[1]||(v[1]=h=>c(null))},[...v[7]||(v[7]=[u("span",{class:"vp-item-label"},"Responsive",-1),u("span",{class:"vp-item-dim"},"100%",-1)])],2),u("div",Fy,[v[8]||(v[8]=u("div",{class:"vp-group-title"},"Phone",-1)),(m(!0),b(ne,null,ge(o.value.phone,h=>(m(),b("button",{key:h.id,class:J(["vp-item",{active:ee(t).activePresetId.value===h.id}]),onClick:y=>c(h)},[u("span",Py,I(h.label),1),u("span",Oy,I(h.width)+"×"+I(h.height),1)],10,Iy))),128))]),u("div",Ry,[v[9]||(v[9]=u("div",{class:"vp-group-title"},"Tablet",-1)),(m(!0),b(ne,null,ge(o.value.tablet,h=>(m(),b("button",{key:h.id,class:J(["vp-item",{active:ee(t).activePresetId.value===h.id}]),onClick:y=>c(h)},[u("span",Ly,I(h.label),1),u("span",Dy,I(h.width)+"×"+I(h.height),1)],10,My))),128))]),u("div",Ny,[v[10]||(v[10]=u("div",{class:"vp-group-title"},"Desktop",-1)),(m(!0),b(ne,null,ge(o.value.desktop,h=>(m(),b("button",{key:h.id,class:J(["vp-item",{active:ee(t).activePresetId.value===h.id}]),onClick:y=>c(h)},[u("span",Hy,I(h.label),1),u("span",By,I(h.width)+"×"+I(h.height),1)],10,Vy))),128))]),u("div",jy,[v[12]||(v[12]=u("div",{class:"vp-group-title"},"Custom",-1)),u("div",Uy,[Pe(u("input",{"onUpdate:modelValue":v[2]||(v[2]=h=>l.value=h),type:"number",placeholder:"W",class:"vp-input",onKeydown:Ct(d,["enter"])},null,544),[[je,l.value]]),v[11]||(v[11]=u("span",{class:"vp-x"},"×",-1)),Pe(u("input",{"onUpdate:modelValue":v[3]||(v[3]=h=>i.value=h),type:"number",placeholder:"H",class:"vp-input",onKeydown:Ct(d,["enter"])},null,544),[[je,i.value]]),u("button",{class:"vp-apply",onClick:d},"Set")])]),ee(t).isFullWidth.value?U("",!0):(m(),b("button",{key:0,class:"vp-item vp-rotate",onClick:v[4]||(v[4]=h=>ee(t).toggleRotate())},[...v[13]||(v[13]=[u("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("polyline",{points:"1 4 1 10 7 10"}),u("path",{d:"M3.51 15a9 9 0 1 0 2.13-9.36L1 10"})],-1),u("span",{class:"vp-item-label"},"Rotate",-1)])]))])):U("",!0)],512))}}),Ky=vt(Yy,[["__scopeId","data-v-0f350755"]]),Wy={class:"annotask-shell"},zy={class:"toolbar"},Gy={class:"toolbar-left"},Xy={class:"view-toggle"},qy={key:0,class:"toolbar-center"},Jy={class:"route-indicator"},Zy={key:1,class:"toolbar-center"},Qy={key:2,class:"toolbar-right"},eb={class:"panel-toggle"},tb={key:0,class:"toggle-badge"},nb={key:0,class:"toggle-badge"},ib={class:"visibility-toggles"},lb={key:3,class:"toolbar-right"},sb={key:0,class:"warning-banner"},ob={key:1,class:"setup-banner"},rb={class:"main"},ab=["src"],ub={key:0,class:"hover-label"},cb={class:"hover-tag"},db={key:0,class:"hover-comp"},fb={key:0,class:"select-label"},pb={key:0,class:"theme-panel"},hb={key:1,class:"panel"},vb={class:"panel-source"},gb={key:2,class:"panel"},mb={class:"pending-task-panel"},yb={class:"pending-task-context"},bb={key:0,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},wb={key:1,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},_b={class:"pending-task-file"},xb=["onKeydown"],kb={class:"task-toggles"},Cb={class:"history-toggle"},Ab={class:"history-toggle"},Sb={key:0,class:"screenshot-preview"},$b=["src"],Tb={class:"pending-task-actions"},Eb=["disabled"],Fb={key:3,class:"panel"},Ib={class:"panel-source"},Pb={class:"component-badge"},Ob={key:0,class:"new-task-form"},Rb=["onKeydown"],Mb={class:"task-toggles"},Lb={class:"history-toggle"},Db={class:"history-toggle"},Nb={key:0,class:"screenshot-preview"},Vb=["src"],Hb={class:"new-task-actions"},Bb=["disabled"],jb={class:"tab-content"},Ub={key:0,class:"empty-hint",style:{padding:"20px 0"}},Yb={class:"task-card-header"},Kb={class:"task-card-desc"},Wb=["onClick"],zb={class:"task-card-meta"},Gb={class:"task-card-file"},Xb={key:0,class:"task-route-badge"},qb=["src"],Jb={key:1,class:"task-card-feedback"},Zb={key:2,class:"task-card-actions"},Qb=["onClick"],ew=["onClick"],tw=["onKeydown"],nw=["disabled","onClick"],iw={key:4,class:"panel"},lw={class:"panel-source"},sw=["disabled"],ow={class:"tab-content"},rw={key:0,class:"a11y-error"},aw={key:1,class:"a11y-pass"},uw={key:2,class:"a11y-empty"},cw={key:3,class:"a11y-summary"},dw={class:"a11y-card-header"},fw={class:"a11y-rule"},pw={class:"a11y-count"},hw={class:"a11y-help"},vw={key:0,class:"a11y-tasked"},gw=["onClick"],mw={key:5,class:"panel"},yw={class:"panel-source"},bw={class:"source-path"},ww={class:"component-badge"},_w={key:0,class:"panel-group-bar"},xw={class:"group-summary"},kw={key:0,class:"group-toggle"},Cw={class:"toggle-label"},Aw={class:"panel-tabs"},Sw={key:0,class:"tab-badge"},$w={class:"tab-content"},Tw={key:4,class:"classes-tab"},Ew=["onKeydown"],Fw={key:1,class:"changes-footer"},Iw={class:"changes-list"},Pw={class:"change-prop"},Ow={class:"change-val"},Rw={class:"change-val"},Mw={class:"changes-actions"},Lw={class:"changes-count"},Dw={key:6,class:"panel empty"},Nw=lt({__name:"App",setup(e){const t=Bp(),{applyStyle:n,recordAnnotation:l,recordClassChange:i,removeAnnotationsByFile:s,changes:o}=t;async function r(){const k=t.undo();k&&(k.type==="style"&&k.eid?await w.undoStyle(k.eid,k.property,k.value||""):k.type==="class"&&k.eid?await w.undoClass(k.eid,k.classes||""):k.type==="insert_remove"&&k.eid&&await w.removePlaceholder(k.eid),await Pn())}async function c(){const k=t.clearChanges();for(const p of k)await w.removePlaceholder(p)}async function d(){var Ye,Gt,Xt,Ot,$t,Jn,Oi,Hs,Bs;if(o.value.length===0)return;const k=o.value.filter(Xe=>Xe.type==="style_update"),p=o.value.filter(Xe=>Xe.type==="class_update"),E=[];for(const Xe of k)E.push(`${Xe.property}: ${Xe.after}`);for(const Xe of p)E.push(`classes: ${Xe.after.classes}`);const K=E.length<=3?`Update ${E.join(", ")}`:`Update ${E.slice(0,2).join(", ")} and ${E.length-2} more`,ce=((Ye=M.value)==null?void 0:Ye.file)||((Gt=k[0])==null?void 0:Gt.file)||((Xt=p[0])==null?void 0:Xt.file)||"",Ce=(Ot=M.value)!=null&&Ot.line?parseInt(M.value.line):(($t=k[0])==null?void 0:$t.line)||((Jn=p[0])==null?void 0:Jn.line)||0,T=((Oi=M.value)==null?void 0:Oi.component)||((Hs=k[0])==null?void 0:Hs.component)||((Bs=p[0])==null?void 0:Bs.component)||"",xe=[];for(const Xe of k)xe.push({property:Xe.property,before:Xe.before,after:Xe.after,file:Xe.file,line:Xe.line});for(const Xe of p)xe.push({type:"class",before:Xe.before.classes,after:Xe.after.classes,file:Xe.file,line:Xe.line});await zt({type:"style_update",description:K,file:ce,line:Ce,component:T,context:{changes:xe}}),await c()}const a=Yp(),f=da(),v=Ts(),h=ua(),y=Y(null),{mode:C}=jp(),{isInitialized:S}=$s(),P=Y(localStorage.getItem("annotask:shellView")==="theme"?"theme":"editor");ot(P,k=>localStorage.setItem("annotask:shellView",k));const x=Up(y),w=qp(y),{currentRoute:A}=w,F=Jp(a,(k,p)=>w.resolveElementAt(k,p),()=>C.value,pu),{drawingArrow:N,drawingRect:W,onCanvasPointerDown:ie,onCanvasPointerMove:O,onCanvasPointerUp:X}=F;ot(C,k=>{w.setMode(k),k==="interact"&&(M.value=null,L.value=[],se.value=[],kt.value=null,Pt.value=null),k==="select"&&(me.value="notes")});const te=Y(!1),pe=Y(!1),me=Y("notes"),ye=Y({pins:!0,arrows:!0,sections:!0,highlights:!0,inspector:!0}),De=Y(["inspector","tasks","a11y"].includes(localStorage.getItem("annotask:activePanel")||"")?localStorage.getItem("annotask:activePanel"):"inspector");ot(De,k=>localStorage.setItem("annotask:activePanel",k));const $e=Y(!1),be=Y(""),le=Y(localStorage.getItem("annotask:includeHistory")==="true");ot(le,k=>localStorage.setItem("annotask:includeHistory",String(k)));const ke=Y(localStorage.getItem("annotask:includeElementContext")==="true"),Ne=Y(!1),V=Y(null),z=Y(null),oe=Y(null),we=Y([]),Je=ae(()=>{var p;const k=new Set;for(const E of f.tasks.value)E.type==="a11y_fix"&&((p=E.context)!=null&&p.rule)&&k.add(E.context.rule);return k}),Ve=Y(!1),q=Y(null),D=Y(!1),Me=Y("");ot(ke,k=>localStorage.setItem("annotask:includeElementContext",String(k)));const R=Y(null),he=Y(""),g=Y(localStorage.getItem("annotask:showShortcuts")==="true");ot(g,k=>localStorage.setItem("annotask:showShortcuts",String(k)));const _=Y(null),$=Y(""),B=ae(()=>f.tasks.value);function H(k){const p=f.tasks.value.find(E=>E.id===k);if(p!=null&&p.visual){const E=p.visual;if(E.annotationId)E.kind==="pin"?a.removePin(E.annotationId):E.kind==="arrow"?a.removeArrow(E.annotationId):E.kind==="section"&&a.removeDrawnSection(E.annotationId);else if(E.kind==="pin"){const K=a.getPinsForElement(p.file,p.line);for(const ce of K)a.removePin(ce.id)}else if(E.kind==="arrow"){const K=a.arrows.value.find(ce=>Math.abs(ce.fromX-E.fromX)<5&&Math.abs(ce.fromY-E.fromY)<5);K&&a.removeArrow(K.id)}else if(E.kind==="section"){const K=a.drawnSections.value.find(ce=>Math.abs(ce.x-E.x)<5&&Math.abs(ce.y-E.y)<5);K&&a.removeDrawnSection(K.id)}}p.file&&p.line!=null&&s(p.file,p.line),f.updateTaskStatus(k,"accepted")}function j(k){he.value.trim()&&(f.updateTaskStatus(k,"denied",he.value.trim()),R.value=null,he.value="")}function Z(){const k=be.value.trim();k&&(zt({type:"annotation",description:k,file:"",line:0}),be.value="",$e.value=!1)}const G=Y(null),M=Y(null),L=Y([]),se=Y([]),Q=Y(!0),re=ae(()=>L.value.length>1?L.value:Q.value&&se.value.length>1?se.value:M.value?[M.value.eid]:[]),de=Y([]),_e=Y([]);let Ae=0,Te=!1;async function He(){const k=++Ae;if(L.value.length>0){const p=await w.getElementRects(L.value);if(k!==Ae)return;de.value=p.filter(E=>E!==null)}else de.value=[];if(Q.value&&L.value.length<=1&&se.value.length>0){const p=se.value.filter(K=>!L.value.includes(K)),E=await w.getElementRects(p);if(k!==Ae)return;_e.value=E.filter(K=>K!==null)}else _e.value=[]}function ze(){if(Te)return;Te=!0;function k(){if(!L.value.length){Te=!1;return}He(),requestAnimationFrame(k)}requestAnimationFrame(k)}ot([L,se,Q],()=>{L.value.length?ze():He()},{deep:!0});const yt=ae(()=>{const k=L.value.length,p=se.value.length;return k>1?`${k} elements selected`:p>1?`1 selected · ${p} instances in template`:null}),Ze=Y(null);async function Wt(){if(!M.value){Ze.value=null;return}const k=await w.classifyElement(M.value.eid);Ze.value=(k==null?void 0:k.role)||null}async function Ii(k="element"){var K,ce,Ce;Ve.value=!0,q.value=null;const p=k==="element"?(K=M.value)==null?void 0:K.eid:void 0;Me.value=p?`<${(ce=M.value)==null?void 0:ce.tagName}> · ${(Ce=M.value)==null?void 0:Ce.component}`:"full page";const E=await w.scanA11y(p);we.value=E.violations,q.value=E.error||null,Ve.value=!1,D.value=!0}const Ge=Y({}),ut=Y(""),kt=Y(null),Pt=Y(null),eu=["display","position","width","height","min-width","max-width","min-height","max-height","padding","padding-top","padding-right","padding-bottom","padding-left","margin","margin-top","margin-right","margin-bottom","margin-left","gap","flex-direction","align-items","justify-content","flex-wrap","background-color","color","font-size","font-weight","font-family","text-align","line-height","letter-spacing","border","border-radius","border-color","border-width","opacity","overflow","box-shadow"];async function Pn(){var k;(k=M.value)!=null&&k.eid&&(Ge.value=await w.getComputedStyles(M.value.eid,eu))}async function tu(){w.initBridgeForIframe(),w.onBridgeReady(async()=>{w.setMode(C.value),te.value=!await w.checkSourceMapping();const k=await w.getCurrentRoute();a.setRoute(k),su(),x.showOverlay.value&&x.scan()})}function nu(){w.onBridgeEvent("hover:enter",k=>{const p=w.toShellRect(k.rect);kt.value=p,Pt.value=k.file?{tag:k.tag,file:k.file,component:k.component}:null}),w.onBridgeEvent("hover:leave",()=>{kt.value=null,Pt.value=null}),w.onBridgeEvent("click:element",async k=>{const{file:p,line:E,component:K,mfe:ce,tag:Ce,classes:T,eid:xe,shiftKey:Ye,clientX:Gt,clientY:Xt}=k,Ot=w.toShellRect(k.rect);if(C.value==="pin"){const $t=Ot?Ot.x+Ot.width/2:Gt,Jn=Ot?Ot.y:Xt,Oi=a.addPin({file:p,line:E,component:K,elementTag:Ce,elementClasses:T},$t,Jn);M.value={file:p,line:E,component:K,mfe:ce||"",tagName:Ce,classes:T,eid:xe},L.value=[xe],await Pn(),await Wt(),_.value={kind:"pin",label:`Pin on ${xl({component:K,tag:Ce,classes:T})}`,file:p,line:E,component:K,annotationId:Oi.id,meta:{elementTag:Ce,elementClasses:T,pinX:$t,pinY:Jn}},$.value="";return}if(Ye&&M.value){const $t=L.value.indexOf(xe);$t>=0?(L.value.splice($t,1),L.value.length===0&&(M.value=null,se.value=[])):L.value.push(xe),await He()}else{M.value={file:p,line:E,component:K,mfe:ce||"",tagName:Ce,classes:T,eid:xe},L.value=[xe];const $t=await w.findTemplateGroup(p,E,Ce);se.value=$t.eids,Q.value=$t.eids.length>1,ut.value=T,await Pn(),await Wt(),await He()}kt.value=null}),w.onBridgeEvent("contextmenu:element",async k=>{const{file:p,line:E,component:K,mfe:ce,tag:Ce,classes:T,eid:xe}=k,Ye=w.toShellRect(k.rect);M.value={file:p,line:E,component:K,tagName:Ce,classes:T,eid:xe},L.value=[xe],await Pn(),await Wt(),bl.value={visible:!0,x:Ye?Ye.x+Ye.width/2:k.clientX,y:Ye?Ye.y+Ye.height/2:k.clientY}}),w.onBridgeEvent("selection:text",k=>{const p=y.value,E=(p==null?void 0:p.getBoundingClientRect().left)||0,K=(p==null?void 0:p.getBoundingClientRect().top)||0;G.value={text:k.text,x:E+100,y:K+100,file:k.file,line:k.line,component:k.component,tag:k.tag}}),w.onBridgeEvent("keydown",k=>{(k.ctrlKey||k.metaKey)&&k.key==="z"&&!k.shiftKey&&r()}),w.onBridgeEvent("route:changed",k=>{a.setRoute(k.path),h.push("route_change",k.path,{previousRoute:A.value})}),w.onBridgeEvent("user:action",k=>{h.push("action",A.value,k)})}async function Pi(k,p){if(!M.value)return;const E={file:M.value.file,line:M.value.line,component:M.value.component},K=re.value;for(const ce of K){const Ce=await w.applyStyleVia(ce,k,p);n(ce,k,p,Ce,E)}await Pn()}async function Ms(){if(!M.value)return;const k=M.value.classes,p=ut.value;if(k===p)return;const E={file:M.value.file,line:M.value.line,component:M.value.component},K=re.value;for(const ce of K)await w.setClass(ce,p),i(ce,k,p,E);M.value.classes=p,await Pn()}const bl=Y({visible:!1,x:0,y:0});async function iu(k){if(!M.value)return;const p=M.value,E=[{file:p.file,line:p.line,component:p.component,tag:p.tagName,classes:p.classes}];for(const T of E)if(l({file:T.file,line:T.line,component:T.component,intent:k,elementTag:T.tag,elementClasses:T.classes}),a.getPinsForElement(T.file,parseInt(T.line)).length===0){const Ye=de.value[0],Gt=Ye?Ye.x+Ye.width/2:100,Xt=Ye?Ye.y+10:100,Ot=a.addPin({file:T.file,line:T.line,component:T.component,elementTag:T.tag,elementClasses:T.classes},Gt,Xt);a.updatePinNote(Ot.id,k)}const K=E[0],ce=a.getPinsForElement(K.file,parseInt(K.line)),Ce=ce.length>0?{x:ce[0].clickX,y:ce[0].clickY}:null;zt({type:"annotation",description:k,file:K.file,line:parseInt(K.line)||0,component:K.component,visual:Ce?{kind:"pin",annotationId:ce[0].id,x:Ce.x,y:Ce.y}:void 0,context:{element_tag:K.tag,element_classes:K.classes,...E.length>1?{elements:E.map(T=>({tag:T.tag,classes:T.classes,component:T.component,file:T.file,line:parseInt(T.line)||0}))}:{}}})}function lu(k,p){if(!M.value)return;const E=M.value,K=[{file:E.file,line:E.line,component:E.component,tag:E.tagName,classes:E.classes}];for(const Ce of K)l({file:Ce.file,line:Ce.line,component:Ce.component,intent:p,action:k,elementTag:Ce.tag,elementClasses:Ce.classes});const ce=K[0];zt({type:"annotation",description:p,file:ce.file,line:parseInt(ce.line)||0,component:ce.component,action:k,context:{element_tag:ce.tag,element_classes:ce.classes}})}async function su(){await f.fetchTasks();const k=A.value;for(const p of f.tasks.value){if(p.route&&p.route!==k||p.status==="accepted")continue;const E=p.visual;if(E){if(E.kind==="pin"&&E.x&&E.y){if(a.getPinsForElement(p.file,p.line).length===0){const ce=a.addPin({file:p.file,line:String(p.line),component:p.component||"",elementTag:E.element_tag||"",elementClasses:""},E.x,E.y);a.updatePinNote(ce.id,p.description)}}else if(E.kind==="arrow")a.addArrow(E.fromX,E.fromY,E.toX,E.toY,E.label||p.description);else if(E.kind==="section"){const K=a.addDrawnSection(E.x,E.y,E.width,E.height);(p.prompt||p.description)&&a.updateDrawnSection(K.id,{prompt:p.prompt||p.description,nearFile:p.file,nearLine:p.line})}}}}async function zt(k){var Ye,Gt;const p=((Ye=M.value)==null?void 0:Ye.mfe)||"",E=v.effectiveViewport.value,K=E.width||E.height?{viewport:{width:E.width,height:E.height}}:{},ce=le.value?h.snapshotForChange(A.value):null,Ce=ce&&ce.recent_actions.length>0?{interaction_history:ce}:{};let T={};if(ke.value&&((Gt=M.value)!=null&&Gt.eid)){const Xt=await w.getElementContext(M.value.eid);Xt&&(T={element_context:Xt})}const xe=oe.value?{screenshot:oe.value}:{};return oe.value=null,f.createTask({...k,route:A.value,...p?{mfe:p}:{},...K,...Ce,...T,...xe})}function wl(){Ne.value=!0}function ou(k){z.value={x:k.clientX,y:k.clientY},V.value={x:k.clientX,y:k.clientY,width:0,height:0}}function ru(k){if(!z.value)return;const p=Math.min(z.value.x,k.clientX),E=Math.min(z.value.y,k.clientY);V.value={x:p,y:E,width:Math.abs(k.clientX-z.value.x),height:Math.abs(k.clientY-z.value.y)}}async function au(){let k=null;if(V.value&&V.value.width>30&&V.value.height>30){const E=w.toIframeCoords(V.value.x,V.value.y),K=w.toIframeCoords(V.value.x+V.value.width,V.value.y+V.value.height);E&&K&&(k={x:E.x,y:E.y,width:K.x-E.x,height:K.y-E.y})}Ne.value=!1,V.value=null,z.value=null;const p=await w.captureScreenshot(k);if(p.error||!p.dataUrl){console.warn("Screenshot failed:",p.error);return}try{const E=await fetch("/__annotask/api/screenshots",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:p.dataUrl})}),{filename:K}=await E.json();oe.value=K}catch{console.warn("Screenshot upload failed")}}function Ls(){Ne.value=!1,V.value=null,z.value=null}function _l(){oe.value=null}function uu(k){const p=k.elements||[],E=p.find(K=>K.file);f.createTask({type:"a11y_fix",description:`Fix accessibility: ${k.help}`,file:(E==null?void 0:E.file)||"",line:E!=null&&E.line?parseInt(E.line):0,component:(E==null?void 0:E.component)||"",route:A.value,context:{rule:k.id,impact:k.impact,description:k.description,help:k.help,helpUrl:k.helpUrl,affected_elements:k.nodes,elements:p.map(K=>({html:K.html,selector:K.target,fix:K.failureSummary,...K.file?{file:K.file,line:K.line,component:K.component}:{}}))}})}function cu(k){if(!G.value||!k.trim())return;const p=G.value,E=a.addHighlight(p.text,{file:p.file,line:p.line,component:p.component,elementTag:p.tag});a.updateHighlight(E.id,{prompt:k.trim()});const K=`Change "${p.text}" → ${k.trim()}`;l({file:p.file,line:String(p.line),component:p.component,intent:K,action:"text_edit",elementTag:p.tag}),zt({type:"annotation",description:K,file:p.file,line:p.line,component:p.component,action:"text_edit",context:{element_tag:p.tag,selected_text:p.text}}),G.value=null}function du(){G.value=null}const Ds=new Set;function fu(k){const p=a.drawnSections.value.find(E=>E.id===k);!p||!p.prompt.trim()||Ds.has(k)||(Ds.add(k),l({file:p.nearFile||"",line:String(p.nearLine||0),component:p.nearComponent||"",intent:p.prompt.trim(),action:"section_request"}),zt({type:"section_request",description:p.prompt.trim(),file:p.nearFile||"",line:p.nearLine||0,component:p.nearComponent||"",placement:p.placement||"",visual:{kind:"section",annotationId:p.id,x:Math.round(p.x),y:Math.round(p.y),width:Math.round(p.width),height:Math.round(p.height)}}))}const Ns=new Set;function xl(k){var K;if(!k)return"element";const p=k.tag||"element",E=(K=k.classes)==null?void 0:K.split(" ").find(ce=>ce&&!ce.startsWith("data-"));return k.component&&E?`<${p}.${E}> in ${k.component}`:k.component&&k.tag!==k.component.toLowerCase()?`<${p}> in ${k.component}`:E?`<${p}.${E}>`:`<${p}>`}function pu(k,p,E){const K=a.arrows.value.find(T=>T.id===k);if(!K)return;const ce=xl(p),Ce=xl(E);_.value={kind:"arrow",label:`Arrow from ${ce} → ${Ce}`,file:K.fromFile||(p==null?void 0:p.file)||"",line:K.fromLine||(p==null?void 0:p.line)||"",component:K.fromComponent||(p==null?void 0:p.component)||"",annotationId:k,meta:{fromTag:(p==null?void 0:p.tag)||"",fromClasses:(p==null?void 0:p.classes)||"",fromComponent:(p==null?void 0:p.component)||"",toFile:K.toFile||(E==null?void 0:E.file)||"",toLine:K.toLine||(E==null?void 0:E.line)||0,toTag:(E==null?void 0:E.tag)||"",toClasses:(E==null?void 0:E.classes)||"",toComponent:(E==null?void 0:E.component)||""}},$.value=""}function hu(k,p){var ce;const E=a.arrows.value.find(Ce=>Ce.id===k);if(!E||!p.trim()||Ns.has(k))return;Ns.add(k),a.updateArrow(k,{label:p.trim()});const K=((ce=_.value)==null?void 0:ce.meta)||{};l({file:E.fromFile||"",line:String(E.fromLine||0),component:E.fromComponent||"",intent:p.trim(),elementTag:K.fromTag||"",elementClasses:K.fromClasses||""}),zt({type:"annotation",description:p.trim(),file:E.fromFile||"",line:E.fromLine||0,component:E.fromComponent||"",visual:{kind:"arrow",annotationId:E.id,fromX:E.fromX,fromY:E.fromY,toX:E.toX,toY:E.toY,label:p.trim()},context:{from_element_tag:K.fromTag||"",from_element_classes:K.fromClasses||"",to_element:{tag:K.toTag||"",classes:K.toClasses||"",component:K.toComponent||"",file:E.toFile||"",line:E.toLine||0}}})}function Vs(){const k=_.value;if(!(!k||!$.value.trim())){if(k.kind==="pin"){const p=k.meta;a.updatePinNote(k.annotationId,$.value.trim()),l({file:k.file,line:String(k.line),component:k.component,intent:$.value.trim(),elementTag:p.elementTag,elementClasses:p.elementClasses}),zt({type:"annotation",description:$.value.trim(),file:k.file,line:parseInt(String(k.line))||0,component:k.component,visual:{kind:"pin",annotationId:k.annotationId,x:p.pinX,y:p.pinY},context:{element_tag:p.elementTag,element_classes:p.elementClasses}})}else k.kind==="arrow"&&hu(k.annotationId,$.value.trim());_.value=null,$.value=""}}function kl(){const k=_.value;k&&(k.kind==="pin"&&a.removePin(k.annotationId),k.kind==="arrow"&&a.removeArrow(k.annotationId)),_.value=null,$.value=""}function vu(k){zt({type:"annotation",description:k,file:"",line:0})}function gu(k){var ce;const p=k.ctrlKey||k.metaKey;if(p&&k.key==="z"&&!k.shiftKey){k.preventDefault(),r();return}const E=(ce=k.target)==null?void 0:ce.tagName;if(E==="INPUT"||E==="TEXTAREA"||E==="SELECT")return;const K=k.key;if(K==="?"||K==="/"&&k.shiftKey){g.value=!g.value;return}if(K==="Escape"){if(Ne.value){Ls();return}if(pe.value){pe.value=!1;return}if(g.value){g.value=!1;return}if(_.value){kl();return}M.value=null,L.value=[],se.value=[],de.value=[],_e.value=[];return}if((K==="l"||K==="L")&&!p){x.toggle();return}if((K==="t"||K==="T")&&!p){De.value=De.value==="tasks"?"inspector":"tasks";return}}qn(()=>{var k;w.mountBridge(),nu(),(k=y.value)==null||k.addEventListener("load",tu),document.addEventListener("keydown",gu)}),In(()=>{w.unmountBridge()});const mu=ae(()=>{const k=v.effectiveViewport.value;return!k.width&&!k.height?{}:{width:k.width?`${k.width}px`:"100%",height:k.height?`${k.height}px`:"100%"}}),yu=ae(()=>new URLSearchParams(window.location.search).get("appUrl")||window.location.origin+"/");return(k,p)=>{var E,K,ce,Ce;return m(),b("div",Wy,[u("header",zy,[u("div",Gy,[p[55]||(p[55]=u("svg",{class:"logo",viewBox:"0 0 85.81 90.51",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[u("path",{d:"m72.02 90.31c-.17-.1-.43-.48-.57-.82-.37-.93-1.97-3.46-2.74-4.33-.66-.74-.77-.79-5.99-2.5-2.93-.96-5.52-1.85-5.77-1.98-.47-.25-.35.01-4.7-9.99-1.1-2.53-2.11-4.72-2.25-4.87-.22-.24-1.7-.26-11.7-.21-6.3.03-11.51.12-11.58.19-.11.11-2.06 4.98-4.34 10.84-.4 1.04-1.21 3.11-1.8 4.6-.58 1.49-1.52 3.88-2.08 5.32-.64 1.65-1.18 2.76-1.45 3.02l-.44.41H8.31 0l.49-1.22c4.92-12.33 8.69-21.78 9.54-23.94 1.22-3.09 4.33-10.89 6.52-16.32.82-2.03 1.72-4.3 2-5.05.28-.74 1.17-2.97 1.97-4.96 2.26-5.6 3-7.45 4.7-11.72 2.32-5.86 5.17-13 7.63-19.11 1.2-2.98 2.29-5.73 2.44-6.13.15-.4.45-.9.68-1.13l.42-.41h8.22c4.57 0 8.4.07 8.63.17.49.19.22-.38 3.81 8.22 1.57 3.77 3 7.18 3.17 7.57.73 1.72 6 14.31 7.22 17.22 1.71 4.1 5.73 13.7 6 14.34.17.4.66 1.58 1.09 2.61.43 1.04 1.63 3.94 2.68 6.46 1.05 2.51 1.9 4.63 1.9 4.71 0 .08-.14.2-.3.27-.17.07-2.89 1.13-6.05 2.37-3.16 1.23-6.39 2.5-7.17 2.81-.78.31-1.47.51-1.53.45-.06-.06-.47-1.07-.92-2.24-1.24-3.24-5.96-15.5-7.72-20.06-.86-2.23-2.45-6.33-3.52-9.11-1.07-2.78-2.93-7.6-4.14-10.73-1.2-3.12-2.4-6.25-2.67-6.94l-.48-1.26-.19.54c-.42 1.17-1.35 3.64-3.23 8.56-1.08 2.83-2.45 6.44-3.05 8.02-.6 1.59-2.24 5.89-3.65 9.56l-2.57 6.67 8.58.05 8.58.05.31.76c.17.42 1.14 2.91 2.16 5.54 6.49 16.81 6.66 17.24 6.88 17.18.08-.02 1.08-.41 2.21-.87 1.13-.46 3.45-1.39 5.15-2.06 5.12-2.03 14.4-5.73 14.68-5.85.14-.06.39-.01.55.12.32.25 2.19 4.68 2.19 5.19 0 .18-.14.48-.3.68-.27.32-5.46 2.61-10.94 4.83-4.74 1.92-6.58 2.65-7.29 2.92l-.77.29 1.94.34 1.94.34.77-.38c1.61-.79 3.36-1.45 7.27-2.71 2.22-.72 4.1-1.32 4.19-1.33.16-.02.94 1.75 2.24 5.12.41 1.04 1.36 3.49 2.13 5.45.77 1.96 1.39 3.71 1.39 3.89 0 .75-.14.76-6.94.76-4.33 0-6.64-.07-6.85-.2z"})],-1)),u("div",Xy,[u("button",{class:J(["toggle-btn",{active:P.value==="editor"}]),onClick:p[0]||(p[0]=T=>P.value="editor")},"Editor",2),u("button",{class:J(["toggle-btn",{active:P.value==="theme"}]),onClick:p[1]||(p[1]=T=>P.value="theme")},"Theme",2)]),P.value==="editor"?(m(),b(ne,{key:0},[tt(eh,{modelValue:ee(C),"onUpdate:modelValue":p[2]||(p[2]=T=>We(C)?C.value=T:null)},null,8,["modelValue"]),u("button",{class:J(["tool-btn",{active:ee(x).showOverlay.value}]),onClick:p[3]||(p[3]=T=>ee(x).toggle()),title:"Show Layout (L)"},[...p[54]||(p[54]=[u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),u("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),u("line",{x1:"9",y1:"3",x2:"9",y2:"21"})],-1)])],2)],64)):U("",!0)]),P.value==="editor"?(m(),b("div",qy,[tt(Ky),u("code",Jy,I(ee(A)),1)])):(m(),b("div",Zy)),P.value==="editor"?(m(),b("div",Qy,[u("div",eb,[u("button",{class:J(["toggle-btn",{active:De.value==="inspector"}]),onClick:p[4]||(p[4]=T=>De.value="inspector")},[...p[56]||(p[56]=[u("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[u("path",{d:"M4 4l7.07 17 2.51-7.39L21 11.07z"})],-1),et(" Inspector ",-1)])],2),u("button",{class:J(["toggle-btn",{active:De.value==="tasks"}]),onClick:p[5]||(p[5]=T=>De.value="tasks")},[p[57]||(p[57]=u("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("path",{d:"M9 11l3 3L22 4"}),u("path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"})],-1)),p[58]||(p[58]=et(" Tasks ",-1)),B.value.length?(m(),b("span",tb,I(B.value.length),1)):U("",!0)],2),u("button",{class:J(["toggle-btn",{active:De.value==="a11y"}]),onClick:p[6]||(p[6]=T=>De.value="a11y")},[p[59]||(p[59]=u("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("circle",{cx:"12",cy:"4",r:"2"}),u("path",{d:"M4 8h16M6 12l3 8M18 12l-3 8"})],-1)),p[60]||(p[60]=et(" A11y ",-1)),we.value.length?(m(),b("span",nb,I(we.value.length),1)):U("",!0)],2)]),u("div",ib,[u("button",{class:J(["vis-btn",{off:!ye.value.inspector}]),onClick:p[7]||(p[7]=T=>ye.value.inspector=!ye.value.inspector),title:"Toggle Inspector Highlights"},"I",2),u("button",{class:J(["vis-btn",{off:!ye.value.pins}]),onClick:p[8]||(p[8]=T=>ye.value.pins=!ye.value.pins),title:"Toggle Pins"},"P",2),u("button",{class:J(["vis-btn",{off:!ye.value.arrows}]),onClick:p[9]||(p[9]=T=>ye.value.arrows=!ye.value.arrows),title:"Toggle Arrows"},"A",2),u("button",{class:J(["vis-btn",{off:!ye.value.sections}]),onClick:p[10]||(p[10]=T=>ye.value.sections=!ye.value.sections),title:"Toggle Sections"},"D",2),u("button",{class:J(["vis-btn",{off:!ye.value.highlights}]),onClick:p[11]||(p[11]=T=>ye.value.highlights=!ye.value.highlights),title:"Toggle Highlights"},"H",2)]),u("button",{class:J(["tool-btn",{active:pe.value}]),onClick:p[12]||(p[12]=T=>pe.value=!pe.value)}," View Tasks ",2),u("button",{class:J(["tool-btn",{active:g.value}]),onClick:p[13]||(p[13]=T=>g.value=!g.value),title:"Keyboard Shortcuts (?)"},"?",2)])):(m(),b("div",lb))]),te.value?(m(),b("div",sb,[...p[61]||(p[61]=[et(" Source mapping unavailable — add ",-1),u("code",null,"annotask()",-1),et(" to your Vite plugins. ",-1)])])):U("",!0),ee(S)?U("",!0):(m(),b("div",ob,[...p[62]||(p[62]=[et(" Annotask not initialized — run ",-1),u("code",null,"/annotask-init",-1),et(" in your AI assistant to set up project tokens and component detection. ",-1)])])),Ne.value?(m(),b("div",{key:2,class:"snip-overlay",onPointerdown:ou,onPointermove:ru,onPointerup:au,onKeydown:Ct(Ls,["escape"])},[p[63]||(p[63]=u("div",{class:"snip-hint"},"Drag to select a region, or click for full page",-1)),V.value&&V.value.width>5&&V.value.height>5?(m(),b("div",{key:0,class:"snip-selection",style:Re({left:V.value.x+"px",top:V.value.y+"px",width:V.value.width+"px",height:V.value.height+"px"})},null,4)):U("",!0)],32)):U("",!0),u("div",rb,[u("div",{class:J(["canvas-area",{"viewport-active":!ee(v).isFullWidth.value}]),onPointerdown:p[20]||(p[20]=T=>P.value==="editor"?ee(ie)(T):void 0),onPointermove:p[21]||(p[21]=T=>P.value==="editor"?ee(O)(T):void 0),onPointerup:p[22]||(p[22]=T=>P.value==="editor"?ee(X)(T):void 0)},[u("iframe",{ref_key:"iframeRef",ref:y,src:yu.value,class:"app-iframe",style:Re(mu.value)},null,12,ab),P.value==="editor"?(m(),b(ne,{key:0},[ee(C)==="arrow"||ee(C)==="draw"?(m(),b("div",{key:0,class:J(["drawing-shield",ee(C)])},null,2)):U("",!0),ye.value.inspector?(m(),b(ne,{key:1},[kt.value?(m(),b("div",{key:0,class:"highlight hover",style:Re({left:kt.value.x+"px",top:kt.value.y+"px",width:kt.value.width+"px",height:kt.value.height+"px"})},[Pt.value?(m(),b("div",ub,[u("span",cb,"<"+I(Pt.value.tag)+">",1),Pt.value.component?(m(),b("span",db,I(Pt.value.component),1)):U("",!0)])):U("",!0)],4)):U("",!0),(m(!0),b(ne,null,ge(_e.value,(T,xe)=>(m(),b("div",{key:"g"+xe,class:"highlight group",style:Re({left:T.x+"px",top:T.y+"px",width:T.width+"px",height:T.height+"px"})},null,4))),128)),(m(!0),b(ne,null,ge(de.value,(T,xe)=>(m(),b("div",{key:"s"+xe,class:"highlight select",style:Re({left:T.x+"px",top:T.y+"px",width:T.width+"px",height:T.height+"px"})},[xe===0&&M.value?(m(),b("div",fb," <"+I(M.value.tagName)+"> · "+I(M.value.component),1)):U("",!0)],4))),128))],64)):U("",!0),ye.value.pins?(m(),wt(dh,{key:2,pins:ee(a).routePins.value,selectedPinId:ee(a).selectedPinId.value,iframeOffset:{x:((K=(E=y.value)==null?void 0:E.getBoundingClientRect())==null?void 0:K.left)||0,y:((Ce=(ce=y.value)==null?void 0:ce.getBoundingClientRect())==null?void 0:Ce.top)||0},onSelectPin:p[14]||(p[14]=T=>{ee(a).selectedPinId.value=T,me.value="notes"}),onRemovePin:ee(a).removePin},null,8,["pins","selectedPinId","iframeOffset","onRemovePin"])):U("",!0),ye.value.arrows?(m(),wt(Ah,{key:3,arrows:ee(a).routeArrows.value,selectedId:ee(a).selectedArrowId.value,drawingArrow:ee(N),onSelect:p[15]||(p[15]=T=>ee(a).selectedArrowId.value=T),onRemove:ee(a).removeArrow},null,8,["arrows","selectedId","drawingArrow","onRemove"])):U("",!0),ye.value.sections?(m(),wt(Rh,{key:4,sections:ee(a).routeSections.value,selectedId:ee(a).selectedSectionId.value,drawingRect:ee(W),onSelect:p[16]||(p[16]=T=>ee(a).selectedSectionId.value=T),onRemove:ee(a).removeDrawnSection,onUpdatePrompt:p[17]||(p[17]=(T,xe)=>ee(a).updateDrawnSection(T,{prompt:xe})),onCommit:fu},null,8,["sections","selectedId","drawingRect","onRemove"])):U("",!0),ye.value.highlights?(m(),wt(Lv,{key:5,highlights:ee(a).routeHighlights.value,selectedId:ee(a).selectedHighlightId.value,pending:G.value,onSelect:p[18]||(p[18]=T=>ee(a).selectedHighlightId.value=T),onRemove:ee(a).removeHighlight,onUpdatePrompt:p[19]||(p[19]=(T,xe)=>ee(a).updateHighlight(T,{prompt:xe})),onSubmitPending:cu,onCancelPending:du},null,8,["highlights","selectedId","pending","onRemove"])):U("",!0),ee(x).showOverlay.value?(m(),wt(Kv,{key:6,containers:ee(x).containers.value},null,8,["containers"])):U("",!0)],64)):U("",!0)],34),P.value==="theme"?(m(),b("aside",pb,[tt(Y0,{iframeRef:y.value},null,8,["iframeRef"])])):U("",!0),P.value==="editor"&&g.value?(m(),b("aside",hb,[u("div",vb,[p[64]||(p[64]=u("span",{class:"source-path",style:{color:"var(--text)"}},"Keyboard Shortcuts",-1)),u("button",{class:"component-badge",style:{cursor:"pointer","margin-left":"auto"},onClick:p[23]||(p[23]=T=>g.value=!1)},"Esc to close")]),p[65]||(p[65]=ea('<div class="shortcuts-panel"><div class="shortcut-group"><div class="shortcut-group-title">Tools</div><div class="shortcut-row"><kbd>V</kbd><span>Select</span></div><div class="shortcut-row"><kbd>P</kbd><span>Pin</span></div><div class="shortcut-row"><kbd>A</kbd><span>Arrow</span></div><div class="shortcut-row"><kbd>D</kbd><span>Draw Section</span></div><div class="shortcut-row"><kbd>H</kbd><span>Highlight Text</span></div><div class="shortcut-row"><kbd>I</kbd><span>Interact Mode</span></div></div><div class="shortcut-group"><div class="shortcut-group-title">View</div><div class="shortcut-row"><kbd>L</kbd><span>Toggle Layout Overlay</span></div><div class="shortcut-row"><kbd>T</kbd><span>Toggle Task Panel</span></div><div class="shortcut-row"><kbd>?</kbd><span>Toggle Shortcuts</span></div><div class="shortcut-row"><kbd>Esc</kbd><span>Deselect / Close Panel</span></div></div><div class="shortcut-group"><div class="shortcut-group-title">Actions</div><div class="shortcut-row"><kbd class="mod">Ctrl</kbd><kbd>Z</kbd><span>Undo</span></div><div class="shortcut-row"><kbd class="mod">Ctrl</kbd><kbd>Enter</kbd><span>Submit Form</span></div></div><div class="shortcut-hint">On Mac, use <kbd class="mod">⌘</kbd> instead of <kbd class="mod">Ctrl</kbd></div></div>',1))])):P.value==="editor"&&_.value?(m(),b("aside",gb,[p[70]||(p[70]=u("div",{class:"panel-source"},[u("span",{class:"source-path",style:{color:"var(--text)"}},"Add Task")],-1)),u("div",mb,[u("div",yb,[u("div",{class:J(["pending-task-kind",_.value.kind])},[_.value.kind==="pin"?(m(),b("svg",bb,[...p[66]||(p[66]=[u("circle",{cx:"12",cy:"10",r:"3"},null,-1),u("path",{d:"M12 21.7C17.3 17 20 13 20 10a8 8 0 1 0-16 0c0 3 2.7 7 8 11.7z"},null,-1)])])):_.value.kind==="arrow"?(m(),b("svg",wb,[...p[67]||(p[67]=[u("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),u("polyline",{points:"12 5 19 12 12 19"},null,-1)])])):U("",!0),u("span",null,I(_.value.label),1)],2),u("code",_b,I(_.value.file)+":"+I(_.value.line),1)]),Pe(u("textarea",{"onUpdate:modelValue":p[24]||(p[24]=T=>$.value=T),class:"pending-task-input",rows:"3",placeholder:"Describe the change...",autofocus:"",onKeydown:[Ct(Be(Vs,["ctrl"]),["enter"]),Ct(kl,["escape"])]},null,40,xb),[[je,$.value]]),u("div",kb,[u("label",Cb,[Pe(u("input",{type:"checkbox","onUpdate:modelValue":p[25]||(p[25]=T=>le.value=T)},null,512),[[ei,le.value]]),p[68]||(p[68]=u("span",null,"History",-1))]),u("label",Ab,[Pe(u("input",{type:"checkbox","onUpdate:modelValue":p[26]||(p[26]=T=>ke.value=T)},null,512),[[ei,ke.value]]),p[69]||(p[69]=u("span",null,"DOM context",-1))])]),oe.value?(m(),b("div",Sb,[u("img",{src:"/__annotask/screenshots/"+oe.value,class:"screenshot-thumb"},null,8,$b),u("button",{class:"screenshot-remove",onClick:_l},"×")])):(m(),b("button",{key:1,class:"screenshot-btn",onClick:wl},"Add Screenshot")),u("div",Tb,[u("button",{class:"submit-btn",disabled:!$.value.trim(),onClick:Vs},"Add Task",8,Eb),u("button",{class:"cancel-btn",onClick:kl},"Cancel")])])])):P.value==="editor"&&De.value==="tasks"?(m(),b("aside",Fb,[u("div",Ib,[p[71]||(p[71]=u("span",{class:"source-path",style:{color:"var(--text)"}},"Tasks",-1)),u("span",Pb,I(ee(f).tasks.value.length),1),u("button",{class:"new-task-toggle",onClick:p[27]||(p[27]=T=>$e.value=!$e.value)},I($e.value?"−":"+")+" New ",1)]),$e.value?(m(),b("div",Ob,[Pe(u("textarea",{"onUpdate:modelValue":p[28]||(p[28]=T=>be.value=T),class:"new-task-input",rows:"2",placeholder:"Describe a change...",onKeydown:Ct(Be(Z,["ctrl"]),["enter"])},null,40,Rb),[[je,be.value]]),u("div",Mb,[u("label",Lb,[Pe(u("input",{type:"checkbox","onUpdate:modelValue":p[29]||(p[29]=T=>le.value=T)},null,512),[[ei,le.value]]),p[72]||(p[72]=u("span",null,"History",-1))]),u("label",Db,[Pe(u("input",{type:"checkbox","onUpdate:modelValue":p[30]||(p[30]=T=>ke.value=T)},null,512),[[ei,ke.value]]),p[73]||(p[73]=u("span",null,"DOM context",-1))])]),oe.value?(m(),b("div",Nb,[u("img",{src:"/__annotask/screenshots/"+oe.value,class:"screenshot-thumb"},null,8,Vb),u("button",{class:"screenshot-remove",onClick:_l},"×")])):(m(),b("button",{key:1,class:"screenshot-btn",onClick:wl},"Add Screenshot")),u("div",Hb,[u("button",{class:"submit-btn",disabled:!be.value.trim(),onClick:Z},"Add",8,Bb),u("button",{class:"cancel-btn",onClick:p[31]||(p[31]=T=>{$e.value=!1,be.value=""})},"Cancel")])])):U("",!0),u("div",jb,[ee(f).tasks.value.length===0&&!$e.value?(m(),b("div",Ub," No tasks yet. Click + New to add one. ")):U("",!0),(m(!0),b(ne,null,ge(B.value,T=>(m(),b("div",{key:T.id,class:J(["task-card",T.status])},[u("div",Yb,[u("span",{class:J(["task-status-dot",T.status])},null,2),u("span",Kb,I(T.description),1),u("button",{class:"task-card-close",onClick:xe=>H(T.id)},"×",8,Wb)]),u("div",zb,[u("code",Gb,I(T.file)+":"+I(T.line),1),T.route?(m(),b("span",Xb,I(T.route),1)):U("",!0)]),T.screenshot?(m(),b("img",{key:0,class:"task-screenshot-thumb",src:"/__annotask/screenshots/"+T.screenshot},null,8,qb)):U("",!0),T.feedback?(m(),b("div",Jb,I(T.feedback),1)):U("",!0),T.status==="review"?(m(),b("div",Zb,[R.value!==T.id?(m(),b(ne,{key:0},[u("button",{class:"task-accept",onClick:xe=>H(T.id)},"Accept",8,Qb),u("button",{class:"task-deny",onClick:xe=>{R.value=T.id,he.value=""}},"Deny",8,ew)],64)):(m(),b(ne,{key:1},[Pe(u("input",{"onUpdate:modelValue":p[32]||(p[32]=xe=>he.value=xe),class:"deny-feedback-input",placeholder:"What needs to change?",autofocus:"",onKeydown:[Ct(xe=>j(T.id),["enter"]),p[33]||(p[33]=Ct(xe=>R.value=null,["escape"]))]},null,40,tw),[[je,he.value]]),u("button",{class:"task-deny",disabled:!he.value.trim(),onClick:xe=>j(T.id)},"Send",8,nw),u("button",{class:"cancel-btn",style:{padding:"4px 8px","font-size":"10px"},onClick:p[34]||(p[34]=xe=>R.value=null)},"Cancel")],64))])):U("",!0)],2))),128))])])):P.value==="editor"&&De.value==="a11y"?(m(),b("aside",iw,[u("div",lw,[p[74]||(p[74]=u("span",{class:"source-path",style:{color:"var(--text)"}},"Accessibility",-1)),u("button",{class:"scan-btn",disabled:Ve.value,onClick:p[35]||(p[35]=T=>Ii("page")),style:{"margin-left":"auto"}},I(Ve.value?"Scanning...":"Scan Page"),9,sw)]),u("div",ow,[q.value?(m(),b("div",rw,I(q.value),1)):U("",!0),!Ve.value&&we.value.length===0&&!q.value&&D.value?(m(),b("div",aw,[...p[75]||(p[75]=[u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[u("path",{d:"M20 6L9 17l-5-5"})],-1),et(" No violations found ",-1)])])):!Ve.value&&we.value.length===0&&!q.value?(m(),b("div",uw," Click Scan Page to check accessibility ")):U("",!0),we.value.length?(m(),b("div",cw,I(we.value.length)+" violation"+I(we.value.length===1?"":"s"),1)):U("",!0),(m(!0),b(ne,null,ge(we.value,T=>(m(),b("div",{key:T.id,class:J(["a11y-card",T.impact])},[u("div",dw,[u("span",{class:J(["a11y-impact",T.impact])},I(T.impact),3),u("span",fw,I(T.id),1),u("span",pw,I(T.nodes)+" element"+I(T.nodes===1?"":"s"),1)]),u("p",hw,I(T.help),1),Je.value.has(T.id)?(m(),b("span",vw,"Task created")):(m(),b("button",{key:1,class:"a11y-fix-btn",onClick:xe=>uu(T)},"Create Fix Task",8,gw))],2))),128))])])):P.value==="editor"&&De.value==="inspector"&&M.value?(m(),b("aside",mw,[u("div",yw,[u("code",bw,I(M.value.file)+":"+I(M.value.line),1),u("span",ww,I(M.value.component),1),Ze.value?(m(),b("span",{key:0,class:J(["role-badge",Ze.value])},I(Ze.value),3)):U("",!0)]),yt.value?(m(),b("div",_w,[u("span",xw,I(yt.value),1),se.value.length>1&&L.value.length<=1?(m(),b("label",kw,[Pe(u("input",{type:"checkbox","onUpdate:modelValue":p[36]||(p[36]=T=>Q.value=T)},null,512),[[ei,Q.value]]),u("span",Cw,"Apply to all "+I(se.value.length),1)])):U("",!0)])):U("",!0),u("div",Aw,[u("button",{class:J(["tab",{active:me.value==="notes"}]),onClick:p[37]||(p[37]=T=>me.value="notes")},[p[76]||(p[76]=et(" Task ",-1)),ee(a).routePins.value.length?(m(),b("span",Sw,I(ee(a).routePins.value.length),1)):U("",!0)],2),u("button",{class:J(["tab",{active:me.value==="layout"}]),onClick:p[38]||(p[38]=T=>me.value="layout")},"Layout",2),u("button",{class:J(["tab",{active:me.value==="spacing"}]),onClick:p[39]||(p[39]=T=>me.value="spacing")},"Spacing",2),u("button",{class:J(["tab",{active:me.value==="size"}]),onClick:p[40]||(p[40]=T=>me.value="size")},"Size",2),u("button",{class:J(["tab",{active:me.value==="style"}]),onClick:p[41]||(p[41]=T=>me.value="style")},"Style",2),u("button",{class:J(["tab",{active:me.value==="classes"}]),onClick:p[42]||(p[42]=T=>me.value="classes")},"Classes",2)]),u("div",$w,[me.value==="layout"?(m(),wt(hf,{key:0,computedStyles:Ge.value,onChange:Pi},null,8,["computedStyles"])):U("",!0),me.value==="spacing"?(m(),wt(Ef,{key:1,computedStyles:Ge.value,onChange:Pi},null,8,["computedStyles"])):U("",!0),me.value==="size"?(m(),wt(jf,{key:2,computedStyles:Ge.value,onChange:Pi},null,8,["computedStyles"])):U("",!0),me.value==="style"?(m(),wt(Dp,{key:3,computedStyles:Ge.value,iframeDoc:null,onChange:Pi},null,8,["computedStyles"])):U("",!0),me.value==="classes"?(m(),b("div",Tw,[Pe(u("textarea",{"onUpdate:modelValue":p[43]||(p[43]=T=>ut.value=T),class:"class-editor",rows:"4",onBlur:Ms,onKeydown:Ct(Be(Ms,["ctrl"]),["enter"]),placeholder:"Edit CSS classes..."},null,40,Ew),[[je,ut.value]]),p[77]||(p[77]=u("p",{class:"hint"},"Ctrl+Enter or blur to apply",-1))])):U("",!0),me.value==="notes"?(m(),wt(Cv,{key:5,pins:ee(a).routePins.value,selectedPinId:ee(a).selectedPinId.value,selectedElement:M.value,elementRole:Ze.value,tasks:ee(f).tasks.value,includeHistory:le.value,includeElementContext:ke.value,"onUpdate:includeHistory":p[44]||(p[44]=T=>le.value=T),"onUpdate:includeElementContext":p[45]||(p[45]=T=>ke.value=T),pendingScreenshot:oe.value,onStartSnip:wl,onRemoveScreenshot:_l,onAddNote:iu,onAddAction:lu,onAddTask:vu,onSelectPin:p[46]||(p[46]=T=>ee(a).selectedPinId.value=T),onUpdateNote:p[47]||(p[47]=T=>ee(a).updatePinNote(T,"")),onRemovePin:p[48]||(p[48]=T=>ee(a).removePin(T)),onAcceptTask:p[49]||(p[49]=T=>ee(f).updateTaskStatus(T,"accepted")),onDenyTask:p[50]||(p[50]=(T,xe)=>ee(f).updateTaskStatus(T,"denied",xe)),onCancelTask:p[51]||(p[51]=T=>ee(f).updateTaskStatus(T,"accepted"))},null,8,["pins","selectedPinId","selectedElement","elementRole","tasks","includeHistory","includeElementContext","pendingScreenshot"])):U("",!0)]),ee(o).length?(m(),b("div",Fw,[u("div",Iw,[(m(!0),b(ne,null,ge(ee(o),T=>(m(),b("div",{key:T.id,class:"change-item"},[T.type==="style_update"?(m(),b(ne,{key:0},[u("code",Pw,I(T.property),1),p[78]||(p[78]=u("span",{class:"change-arrow"},"→",-1)),u("code",Ow,I(T.after),1)],64)):T.type==="class_update"?(m(),b(ne,{key:1},[p[79]||(p[79]=u("code",{class:"change-prop"},"classes",-1)),p[80]||(p[80]=u("span",{class:"change-arrow"},"→",-1)),u("code",Rw,I(T.after.classes.substring(0,30)),1)],64)):U("",!0)]))),128))]),u("div",Mw,[u("span",Lw,I(ee(o).length)+" change"+I(ee(o).length===1?"":"s"),1),u("button",{class:"changes-commit",onClick:d},"Commit to Task"),u("button",{class:"changes-discard",onClick:c},"Discard")])])):U("",!0)])):P.value==="editor"&&De.value==="inspector"?(m(),b("aside",Dw,[...p[81]||(p[81]=[u("div",{class:"empty-content"},[u("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",opacity:"0.3"},[u("path",{d:"M4 4l7.07 17 2.51-7.39L21 11.07z"})]),u("p",null,"Click an element to inspect"),u("p",{class:"empty-hint"},"Press P to pin, hover to highlight")],-1)])])):U("",!0)]),tt(oh,ta(bl.value,{onClose:p[52]||(p[52]=T=>bl.value.visible=!1)}),null,16),pe.value?(m(),wt(Sy,{key:3,tasks:ee(f).tasks.value,onClose:p[53]||(p[53]=T=>pe.value=!1)},null,8,["tasks"])):U("",!0)])}}});zd(Nw).mount("#app");