@aislop-inc/opencode-mem 2.41.1 → 2.42.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/README.md +107 -1
  2. package/dist/config.d.ts +69 -3
  3. package/dist/config.d.ts.map +1 -1
  4. package/dist/config.js +80 -16
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +84 -5
  7. package/dist/services/ai/ai-provider-factory.d.ts.map +1 -1
  8. package/dist/services/ai/ai-provider-factory.js +4 -0
  9. package/dist/services/ai/generation-ledger.d.ts +16 -0
  10. package/dist/services/ai/generation-ledger.d.ts.map +1 -0
  11. package/dist/services/ai/generation-ledger.js +20 -0
  12. package/dist/services/ai/memory-provider-presets.d.ts +16 -0
  13. package/dist/services/ai/memory-provider-presets.d.ts.map +1 -0
  14. package/dist/services/ai/memory-provider-presets.js +51 -0
  15. package/dist/services/ai/opencode-provider.d.ts +11 -0
  16. package/dist/services/ai/opencode-provider.d.ts.map +1 -1
  17. package/dist/services/ai/opencode-provider.js +31 -2
  18. package/dist/services/ai/provider-config.d.ts.map +1 -1
  19. package/dist/services/ai/provider-config.js +5 -8
  20. package/dist/services/ai/providers/api-route.d.ts +2 -2
  21. package/dist/services/ai/providers/api-route.d.ts.map +1 -1
  22. package/dist/services/ai/providers/api-route.js +3 -2
  23. package/dist/services/ai/providers/atlas-cloud.d.ts +2 -2
  24. package/dist/services/ai/providers/atlas-cloud.d.ts.map +1 -1
  25. package/dist/services/ai/providers/atlas-cloud.js +3 -2
  26. package/dist/services/ai/providers/cheaper-inference.d.ts +2 -2
  27. package/dist/services/ai/providers/cheaper-inference.d.ts.map +1 -1
  28. package/dist/services/ai/providers/cheaper-inference.js +3 -2
  29. package/dist/services/ai/providers/cloudgpu.d.ts +2 -2
  30. package/dist/services/ai/providers/cloudgpu.d.ts.map +1 -1
  31. package/dist/services/ai/providers/cloudgpu.js +3 -2
  32. package/dist/services/ai/providers/orcarouter.d.ts +2 -2
  33. package/dist/services/ai/providers/orcarouter.d.ts.map +1 -1
  34. package/dist/services/ai/providers/orcarouter.js +3 -2
  35. package/dist/services/ai/providers/runcrate.d.ts +2 -2
  36. package/dist/services/ai/providers/runcrate.d.ts.map +1 -1
  37. package/dist/services/ai/providers/runcrate.js +3 -2
  38. package/dist/services/ai/providers/standardcompute.d.ts +54 -0
  39. package/dist/services/ai/providers/standardcompute.d.ts.map +1 -0
  40. package/dist/services/ai/providers/standardcompute.js +63 -0
  41. package/dist/services/ai/session/session-types.d.ts +1 -1
  42. package/dist/services/ai/session/session-types.d.ts.map +1 -1
  43. package/dist/services/auto-capture.d.ts.map +1 -1
  44. package/dist/services/auto-capture.js +18 -1
  45. package/dist/services/memory-recall.d.ts +9 -1
  46. package/dist/services/memory-recall.d.ts.map +1 -1
  47. package/dist/services/memory-recall.js +16 -1
  48. package/dist/services/memory-review.d.ts +74 -0
  49. package/dist/services/memory-review.d.ts.map +1 -0
  50. package/dist/services/memory-review.js +259 -0
  51. package/dist/services/migration-service.d.ts.map +1 -1
  52. package/dist/services/migration-service.js +15 -11
  53. package/dist/services/user-profile/user-profile-manager.d.ts +1 -0
  54. package/dist/services/user-profile/user-profile-manager.d.ts.map +1 -1
  55. package/dist/services/user-profile/user-profile-manager.js +23 -0
  56. package/dist/services/user-prompt/user-prompt-manager.d.ts +6 -0
  57. package/dist/services/user-prompt/user-prompt-manager.d.ts.map +1 -1
  58. package/dist/services/user-prompt/user-prompt-manager.js +15 -0
  59. package/dist/types/index.d.ts +1 -1
  60. package/dist/types/index.d.ts.map +1 -1
  61. package/dist/v2/adapter.d.ts +7 -0
  62. package/dist/v2/adapter.d.ts.map +1 -1
  63. package/dist/v2/adapter.js +33 -2
  64. package/dist/v2/legacy-client.d.ts +1 -1
  65. package/dist/v2/legacy-client.d.ts.map +1 -1
  66. package/dist/v2/legacy-client.js +26 -4
  67. package/dist/v2/plugin.d.ts.map +1 -1
  68. package/dist/v2/plugin.js +2 -1
  69. package/dist/web/assets/index-Bc7-K6u-.css +2 -0
  70. package/dist/web/assets/index-h_HQTX3Y.js +112 -0
  71. package/dist/web/index.html +2 -2
  72. package/package.json +1 -1
  73. package/dist/web/assets/index-mTgxOb5l.css +0 -2
  74. package/dist/web/assets/index-ysje17yK.js +0 -109
@@ -1,109 +0,0 @@
1
- (function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var e=Array.isArray,t=Array.prototype.indexOf,n=Array.prototype.includes,r=Array.from,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyDescriptors,s=Object.prototype,c=Array.prototype,l=Object.getPrototypeOf,u=Object.isExtensible;function d(e){return typeof e==`function`}var f=()=>{};function p(e){for(var t=0;t<e.length;t++)e[t]()}function m(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function h(e,t,n=!1){return e===void 0?n?t():t:e}function g(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var _=1<<24,v=1024,y=2048,b=4096,x=8192,S=16384,C=32768,w=1<<25,ee=65536,te=1<<19,ne=1<<20,re=1<<25,ie=1<<21,ae=1<<22,oe=1<<23,se=Symbol(`$state`),ce=Symbol(`component`),le=Symbol(`legacy props`),ue=Symbol(``),T=Symbol(`attributes`),de=Symbol(`class`),fe=Symbol(`style`),pe=Symbol(`text`),me=Symbol(`form reset`),he=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ge=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`),_e={},ve=Symbol(`uninitialized`),ye=`http://www.w3.org/1999/xhtml`,be=`http://www.w3.org/2000/svg`,xe=`http://www.w3.org/1998/Math/MathML`,Se=`@attach`;function Ce(){console.warn(`https://svelte.dev/e/derived_inert`)}function we(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Te(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Ee(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function De(e){E=e}var Oe;function ke(e){if(e===null)throw we(),_e;return Oe=e}function Ae(){return ke(xn(Oe))}function D(e){if(E){if(xn(Oe)!==null)throw we(),_e;Oe=e}}function O(e=1){if(E){for(var t=e,n=Oe;t--;)n=xn(n);Oe=n}}function je(e=!0){for(var t=0,n=Oe;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=xn(n);e&&n.remove(),n=i}}function Me(e){if(!e||e.nodeType!==8)throw we(),_e;return e.data}function Ne(e){return e===this.v}function Pe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Fe(e){return!Pe(e,this.v)}function Ie(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function Le(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Re(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function ze(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Be(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Ve(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function He(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ue(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function We(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ge(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ke(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function qe(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Je=[];function Ye(e,t=!1,n=!1){return Xe(e,new Map,``,Je,null,n)}function Xe(t,n,r,i,a=null,o=!1){if(typeof t==`object`&&t){var c=n.get(t);if(c!==void 0)return c;if(t instanceof Map)return new Map(t);if(t instanceof Set)return new Set(t);if(e(t)){var u=Array(t.length);n.set(t,u),a!==null&&n.set(a,u);for(var d=0;d<t.length;d+=1){var f=t[d];d in t&&(u[d]=Xe(f,n,r,i,null,o))}return u}if(l(t)===s){u={},n.set(t,u),a!==null&&n.set(a,u);for(var p of Object.keys(t))u[p]=Xe(t[p],n,r,i,null,o);return u}if(t instanceof Date)return t.getTime(),structuredClone(t);if(typeof t.toJSON==`function`&&!o)return Xe(t.toJSON(),n,r,i,t)}if(t instanceof EventTarget)return t;try{return structuredClone(t)}catch{return t}}function Ze(e){let t=e.p;for(;t!==null&&t.c===null;)t=t.p;return t?.c??null}function Qe(e,t){return e===null&&Ie(t),e.c??=new Map(Ze(e)||void 0)}var $e=null;function et(e){$e=e}function tt(e){return Qe($e,`getContext`).get(e)}function nt(e,t){return Qe($e,`setContext`).set(e,t),t}function rt(e){return Qe($e,`hasContext`).has(e)}function it(){return Qe($e,`getAllContexts`)}function k(e,t=!1,n){$e={p:$e,i:!1,c:null,e:null,s:e,x:null,r:cr,l:null}}function A(e){var t=$e,n=t.e;if(n!==null){t.e=null;for(var r of n)Fn(r)}return e!==void 0&&(t.x=e),t.i=!0,$e=t.p,at(e)}function at(e={}){return i(e,ce,{value:!0}),e}function ot(){return!0}var st=[];function ct(){var e=st;st=[],p(e)}function lt(e){if(st.length===0&&!zt){var t=st;queueMicrotask(()=>{t===st&&ct()})}st.push(e)}function ut(){for(;st.length>0;)ct()}var dt=~(y|b|v);function ft(e,t){e.f=e.f&dt|t}function pt(e){e.f&512||e.deps===null?ft(e,v):ft(e,b)}function mt(e,t){e.f&2048?t.set(e,y):e.f&4096&&t.get(e)!==2048&&t.set(e,b),ft(e,v)}function ht(e,t){if(t){let t=document.body;e.autofocus=!0,lt(()=>{document.activeElement===t&&e.focus()})}}function gt(e){E&&bn(e)!==null&&Sn(e)}var _t=!1;function vt(){_t||(_t=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[me]?.()})},{capture:!0}))}function yt(e){var t=ar,n=cr;sr(null),lr(null);try{return e()}finally{sr(t),lr(n)}}function bt(e,t,n,r=n){e.addEventListener(t,()=>yt(n));let i=e[me];e[me]=i?()=>{i(),r(!0)}:()=>r(!0),vt()}function xt(e,t,n,r){let i=ot()?Tt:Ot;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=cr,c=St(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){On(e,s)}Ct()}}var d=wt();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>Dt(e))).then(u).catch(e=>On(e,s)).finally(d)}l?l.then(()=>{s.f&16384?d():(c(),f(),Ct())}):f()}function St(){var e=cr,t=ar,n=$e,r=Ft;return function(i=!0){lr(e),sr(t),et(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Ct(e=!0){lr(null),sr(null),et(null),e&&Ft?.deactivate()}function wt(){var e=cr,t=e.b,n=Ft,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function Tt(e){var t=2|y;return cr!==null&&(cr.f|=te),{ctx:$e,deps:null,effects:null,equals:Ne,f:t,fn:e,reactions:null,rv:0,v:ve,wv:0,parent:cr,ac:null}}var Et=Symbol(`obsolete`);function Dt(e,t,n){let r=cr;r===null&&Le();var i=void 0,a=nn(ve),o=!ar,s=new Set;return Bn(()=>{var t=cr,n=m();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==he&&n.reject(e)}).finally(Ct)}catch(e){n.reject(e),Ct()}var c=Ft;if(o){if(t.f&32768)var l=wt();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(Et);else for(let e of s.values())e.reject(Et);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==Et&&(c.activate(),t?(a.f|=oe,sn(a,t)):(a.f&8388608&&(a.f^=oe),sn(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),Nn(()=>{for(let e of s)e.reject(Et)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function j(e){let t=Tt(e);return dr(t),t}function Ot(e){let t=Tt(e);return t.equals=Fe,t}function kt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Jn(t[n])}}function At(e){var t,n=cr,r=e.parent;if(!rr&&r!==null&&e.v!==ve&&r.f&24576)return Ce(),e.v;lr(r);try{kt(e),t=Cr(e)}finally{lr(n)}return t}function jt(e){var t=At(e);!e.equals(t)&&(e.wv=br(),(!Ft?.is_fork||e.deps===null)&&(Ft===null?e.v=t:(Ft.capture(e,t,!0),It?.capture(e,t,!0)),e.deps===null))?ft(e,v):rr||(Lt===null?pt(e):(Mn()||Ft?.is_fork)&&Lt.set(e,t))}function Mt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&yt(()=>{t.ac.abort(he),t.ac=null}),t.fn!==null&&(t.teardown=f),Er(t,0),Kn(t))}function Nt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&Dr(t)}var Pt=null,Ft=null,It=null,Lt=null,Rt=null,zt=!1,Bt=!1,Vt=null,Ht=null,Ut=0,Wt=1,Gt=class e{id=Wt++;started=!1;linked=!0;prev=null;next=null;async_deriveds=new Map;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=new Map;#i=null;#a=[];#o=[];#s=new Map;#c=new Map;#l=new Set;is_fork=!1;#u=!1;constructor(){Pt===null?Pt=this:(Pt.next=this,this.prev=Pt),Pt=this}#d(){if(this.is_fork)return!0;for(let e of this.#r.keys())if(!this.#f(e))return!0;return!1}#f(e){for(var t=e;t!==null;t=t.parent)if(this.#c.has(t))return!0;return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]}),this.#l.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#c.get(e);if(n){this.#c.delete(e);for(var r of n.d)ft(r,y),t(r);for(r of n.m)ft(r,b),t(r)}this.#l.add(e)}#p(){var e=[];for(let i of this.#a)if(!(i.f&16384||!(i.f&6144))){for(var t=i,n=!1;t.parent!==null;){t=t.parent;var r=t.f;if(r&96){if(!(r&1024)){n=!0;break}t.f^=v}}n||e.push(t)}return this.#a=[],e}#m(){this.started=!0;for(let[e,t]of this.#s)ft(e,t),this.schedule(e);this.apply();for(var t=Vt=[],n=[],r=Ht=[];this.#a.length>0;){Ut++>1e3&&(this.#b(),qt());for(let e of this.#p())try{this.#h(e,t,n)}catch(t){throw Qt(e),this.#d()||this.discard(),t}}if(Ft=null,r.length>0){var i=e.ensure();for(let e of r)i.schedule(e)}if(Vt=null,Ht=null,this.#d()){this.#y(n),this.#y(t);for(let[e,t]of this.#c)Zt(e,t);r.length>0&&Ft.#m();return}let a=this.#g();if(a)this.#y(n),this.#y(t),a.#v(this);else{this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),It=this,Yt(n),Yt(t),It=null,this.#i?.resolve();var o=Ft;this.#n===0&&(this.#a.length===0||o!==null)&&this.#b(),o!==null&&(en.clear(),o.#m())}}#h(e,t,n){e.f^=v;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=v:i&4?t.push(r):xr(r)&&(i&16&&this.add_dirty_reaction(r,b),Dr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#g(){for(var e=this.prev;e!==null;e=e.prev)if(!e.is_fork&&this.#_(e))return e;return null}#_(e){for(let[t,[,n]]of this.current)if(!n&&e.current.has(t))return!0;return!1}#v(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_reactions(e.#s);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#s.delete(i),ft(i,y),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#b(),Ft=this,this.#m()}#y(e){for(var t=0;t<e.length;t+=1)mt(e[t],this.#s)}capture(e,t,n=!1){e.v!==ve&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),Lt?.set(e,t)),this.is_fork||(e.v=t)}activate(){Ft=this}deactivate(){Ft=null,Lt=null}flush(){try{Bt=!0,Ft=this,this.#m()}finally{Ut=0,Rt=null,Vt=null,Ht=null,Bt=!1,Ft=null,Lt=null,en.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear();for(let e of this.async_deriveds.values())e.reject(Et);this.#b(),this.#i?.resolve()}register_created_effect(e){this.#o.push(e)}increment(e,t){if(this.#n+=1,e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t){if(--this.#n,e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#u||(this.#u=!0,lt(()=>{this.#u=!1,this.linked&&this.flush()}))}transfer_reactions(e){for(let[t,n]of e)this.add_dirty_reaction(t,n);e.clear()}add_dirty_reaction(e,t){(t===2048||this.#s.get(e)!==2048)&&this.#s.set(e,t)}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=m()).promise}static ensure(){if(Ft===null){let t=Ft=new e;!Bt&&!zt&&lt(()=>{t.started||t.flush()})}return Ft}apply(){Lt=null}schedule(e){Rt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)?e.b.defer_effect(e):this.#a.push(e)}#b(){if(this.linked){var e=this.prev,t=this.next;e===null||(e.next=t),t===null?Pt=e:t.prev=e,this.linked=!1}}};function Kt(e){var t=zt,n=It;It=null,zt=!0;try{var r;for(e&&(Kt(),r=e());;){if(ut(),Ft===null)return r;Ft.flush()}}finally{zt=t,It=n}}function qt(){try{He()}catch(e){On(e,Rt)}}var Jt=null;function Yt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&xr(r)&&(Jt=new Set,Dr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Xn(r),Jt?.size>0)){en.clear();for(let e of Jt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Jt.has(n)&&(Jt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Dr(n)}}Jt.clear()}}Jt=null}}function Xt(e){Ft.schedule(e)}function Zt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),ft(e,v);for(var n=e.first;n!==null;)Zt(n,t),n=n.next}}function Qt(e){ft(e,v);for(var t=e.first;t!==null;)Qt(t),t=t.next}var $t=new Set,en=new Map,tn=!1;function nn(e,t){return{f:0,v:e,reactions:null,equals:Ne,rv:0,wv:0}}function M(e,t){let n=nn(e,t);return dr(n),n}function rn(e,t=!1,n=!0){let r=nn(e);return t||(r.equals=Fe),r}function N(e,t,n=!1){return ar!==null&&(!or||ar.f&131072)&&ot()&&ar.f&4325394&&(ur===null||!ur.has(e))&&Ke(),sn(e,n?dn(t):t,Ht)}var an=null,on=0;function sn(e,t,n=null){if(!e.equals(t)){rr?en.set(e,t):en.has(e)||en.set(e,e.v);var r=Gt.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&At(t),Lt===null&&pt(t)}e.wv=br(),an=null,on=0,un(e,y,n),an=null,ot()&&cr!==null&&cr.f&1024&&!(cr.f&96)&&(mr===null?hr([e]):mr.push(e)),!r.is_fork&&$t.size>0&&!tn&&cn()}return t}function cn(){tn=!1;for(let e of $t){e.f&1024&&ft(e,b);let t;try{t=xr(e)}catch{t=!0}t&&Dr(e)}$t.clear()}function ln(e){N(e,e.v+1)}function un(e,t,n){var r=e.reactions;if(r!==null){var i=ot(),a=r.length;if(on+=a,on>1e5&&an===null&&(an=new Set),an!==null){if(an.has(e))return;an.add(e)}for(var o=0;o<a;o++){var s=r[o],c=s.f;if(i||s!==cr){var l=(c&y)===0;if(l&&ft(s,t),c&131072)$t.add(s);else if(c&2){var u=s;Lt?.delete(u),un(u,b,n)}else if(l){var d=s;c&16&&Jt!==null&&Jt.add(d),n===null?Xt(d):n.push(d)}}}}}function dn(t){if(typeof t!=`object`||!t||se in t||ce in t)return t;let n=l(t);if(n!==s&&n!==c)return t;var r=new Map,i=e(t),o=M(0),u=null,d=vr,f=e=>{if(vr===d)return e();var t=ar,n=vr;sr(null),yr(d);var r=e();return sr(t),yr(n),r};return i&&r.set(`length`,M(t.length,u)),new Proxy(t,{defineProperty(e,t,n){`value`in n&&n.configurable!==!1&&n.enumerable!==!1&&n.writable!==!1||We();var i=r.get(t);return i===void 0?f(()=>{var e=M(n.value,u);return r.set(t,e),e}):N(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>M(ve,u));r.set(t,e),ln(o)}}else N(n,ve),ln(o);return!0},get(e,n,i){if(n===se)return t;var o=r.get(n),s=n in e;if(o===void 0&&(!s||a(e,n)?.writable)&&(o=f(()=>M(dn(s?e[n]:ve),u)),r.set(n,o)),o!==void 0){var c=z(o);return c===ve?void 0:c}return Reflect.get(e,n,i)},getOwnPropertyDescriptor(e,t){this.has?.(e,t);var n=Reflect.getOwnPropertyDescriptor(e,t),i=r.get(t);if(i!==void 0){var a=z(i);if(a===ve)return;if(n&&`value`in n)n.value=a;else return{enumerable:!0,configurable:!0,value:a,writable:!0}}return n},has(e,t){if(t===se)return!0;var n=r.get(t),i=n!==void 0&&n.v!==ve||Reflect.has(e,t);return(n!==void 0||(cr!==null||ar!==null)&&(!i||a(e,t)?.writable))&&(n===void 0&&(n=f(()=>M(i?dn(e[t]):ve,u)),r.set(t,n)),z(n)===ve)?!1:i},set(e,t,n,s){var c=r.get(t),l=t in e;if(i&&t===`length`)for(var d=n;d<c.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>M(ve,u)),r.set(d+``,p)):N(p,ve)}if(c===void 0)(!l||a(e,t)?.writable)&&(c=f(()=>M(void 0,u)),N(c,dn(n)),r.set(t,c));else{l=c.v!==ve;var m=f(()=>dn(n));N(c,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(s,n),!l){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&N(g,_+1)}ln(o)}return!0},ownKeys(e){z(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==ve});for(var[n,i]of r)i.v!==ve&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Ge()}})}function fn(e){try{if(typeof e==`object`&&e&&se in e)return e[se]}catch{}return e}function pn(e,t){return Object.is(fn(e),fn(t))}var mn,hn,gn,_n;function vn(){if(mn===void 0){mn=window,hn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;gn=a(t,`firstChild`).get,_n=a(t,`nextSibling`).get,u(e)&&(e[de]=void 0,e[T]=null,e[fe]=void 0,e.__e=void 0),u(n)&&(n[pe]=void 0)}}function yn(e=``){return document.createTextNode(e)}function bn(e){return gn.call(e)}function xn(e){return _n.call(e)}function P(e,t){if(!E)return bn(e);var n=bn(Oe);if(n===null)n=Oe.appendChild(yn());else if(t&&n.nodeType!==3){var r=yn();return n?.before(r),ke(r),r}return t&&En(n),ke(n),n}function F(e,t=!1){if(!E){var n=bn(e);return n instanceof Comment&&n.data===``?xn(n):n}if(t){if(Oe?.nodeType!==3){var r=yn();return Oe?.before(r),ke(r),r}En(Oe)}return Oe}function I(e,t=!1){if(!E)return bn(e);var n=P(e,t);return D(e),n}function L(e,t=1,n=!1){let r=E?Oe:e;for(var i;t--;)i=r,r=xn(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=yn();return r===null?i?.after(a):r.before(a),ke(a),a}En(r)}return ke(r),r}function Sn(e){e.textContent=``}function Cn(){return!1}function wn(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function Tn(e=``){return document.createComment(e)}function En(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Dn(e){var t=cr;if(t===null)return ar.f|=oe,e;if(!(t.f&32768)&&!(t.f&4))throw e;On(e,t)}function On(e,t){if(e===_e)throw e;if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128&&!(t.f&33570816)){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}function kn(e){cr===null&&(ar===null&&Ve(e),Be()),rr&&ze(e)}function An(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function jn(e,t){var n=cr;n!==null&&n.f&8192&&(e|=x);var r={ctx:$e,deps:null,nodes:null,f:e|y|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};Ft?.register_created_effect(r);var i=r;if(e&4)Vt===null?Gt.ensure().schedule(r):Vt.push(r);else if(t!==null){try{Dr(r)}catch(e){throw Jn(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ee))}if(i!==null&&(i.parent=n,n!==null&&An(i,n),ar!==null&&ar.f&2&&!(e&64))){var a=ar;(a.effects??=[]).push(i)}return r}function Mn(){return ar!==null&&!or}function Nn(e){let t=jn(8,null);return ft(t,v),t.teardown=e,t}function Pn(e){kn(`$effect`);var t=cr.f;if(!ar&&t&32&&$e!==null&&!$e.i){var n=$e;(n.e??=[]).push(e)}else return Fn(e)}function Fn(e){return jn(4|ne,e)}function In(e){return kn(`$effect.pre`),jn(8|ne,e)}function Ln(e){Gt.ensure();let t=jn(64|te,e);return()=>{Jn(t)}}function Rn(e){Gt.ensure();let t=jn(64|te,e);return(e={})=>new Promise(n=>{e.outro?Zn(t,()=>{Jn(t),n(void 0)}):(Jn(t),n(void 0))})}function zn(e){return jn(4,e)}function Bn(e){return jn(ae|te,e)}function Vn(e,t=0){return jn(8|t,e)}function R(e,t=[],n=[],r=[]){xt(r,t,n,t=>{jn(8,()=>{e(...t.map(z))})})}function Hn(e,t=0){return jn(16|t,e)}function Un(e,t=0){return jn(_|t,e)}function Wn(e){return jn(32|te,e)}function Gn(e){var t=e.teardown;if(t!==null){let n=rr,r=ar;ir(!0),sr(null);try{t.call(null)}catch(t){On(t,e.parent)}finally{ir(n),sr(r)}}}function Kn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&yt(()=>{e.abort(he)});var r=n.next;n.f&64?n.parent=null:Jn(n,t),n=r}}function qn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Jn(t),t=n}}function Jn(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Yn(e.nodes.start,e.nodes.end),n=!0),e.f|=w,Kn(e,t&&!n),Er(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Gn(e),e.f^=w,e.f|=S;var i=e.parent;i!==null&&i.first!==null&&Xn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Yn(e,t){for(;e!==null;){var n=e===t?null:xn(e);e.remove(),e=n}}function Xn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Zn(e,t,n=!0){var r=[];e.f|=256,Qn(e,r,!0);var i=()=>{n&&Jn(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Qn(e,t,n){if(!(e.f&8192)){e.f^=x;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);Qn(i,t,o?n:!1)}i=a}}}function $n(e){e.f&=-257,er(e,!0)}function er(e,t){if(!(e.f&256)&&e.f&8192){e.f^=x,e.f&1024||(ft(e,y),Gt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);er(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function tr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:xn(n);t.append(n),n=i}}var nr=null,rr=!1;function ir(e){rr=e}var ar=null,or=!1;function sr(e){ar=e}var cr=null;function lr(e){cr=e}var ur=null;function dr(e){ar!==null&&(ar.f&2097152||ar.f&2)&&(ur??=new Set).add(e)}var fr=null,pr=0,mr=null;function hr(e){mr=e}var gr=1,_r=0,vr=_r;function yr(e){vr=e}function br(){return++gr}function xr(e){var t=e.f;if(t&2048)return!0;if(t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(xr(a)&&jt(a),a.wv>e.wv)return!0}t&512&&Lt===null&&ft(e,v)}return!1}function Sr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(ur!==null&&ur.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Sr(a,t,!1):t===a&&(n?ft(a,y):a.f&1024&&ft(a,b),Xt(a))}}function Cr(e){var t=fr,n=pr,r=mr,i=ar,a=ur,o=$e,s=or,c=vr,l=e.f;fr=null,pr=0,mr=null,ar=l&96?null:e,ur=null,et(e.ctx),or=!1,vr=++_r,e.ac!==null&&(yt(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=ie;var u=e.fn,d=u();e.f|=C;var f=wr(e);if(ot()&&mr!==null&&!or&&f!==null&&!(e.f&6146))for(var p=0;p<mr.length;p++)Sr(mr[p],e);if(i!==null&&i!==e){if(_r++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=_r;if(t!==null)for(let e of t)e.rv=_r;mr!==null&&(r===null?r=mr:r.push(...mr))}return e.f&8388608&&(e.f^=oe),d}catch(t){return wr(e),Dn(t)}finally{e.f^=ie,fr=t,pr=n,mr=r,ar=i,ur=a,et(o),or=s,vr=c}}function wr(e){var t=e.deps,n=Ft?.is_fork;if(fr!==null){var r;if(n||Er(e,pr),t!==null&&pr>0)for(t.length=pr+fr.length,r=0;r<fr.length;r++)t[pr+r]=fr[r];else e.deps=t=fr;if(Mn()&&e.f&512)for(r=pr;r<t.length;r++)(t[r].reactions??=[]).push(e)}else!n&&t!==null&&pr<t.length&&(Er(e,pr),t.length=pr);return t}function Tr(e,r){let i=r.reactions;if(i!==null){var a=t.call(i,e);if(a!==-1){var o=i.length-1;o===0?i=r.reactions=null:(i[a]=i[o],i.pop())}}if(i===null&&r.f&2&&(fr===null||!n.call(fr,r))){var s=r;s.f&512&&(s.f^=512),s.v!==ve&&pt(s),s.ac!==null&&yt(()=>{s.ac.abort(he),s.ac=null,ft(s,y)}),Mt(s),Er(s,0)}}function Er(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Tr(e,n[r])}function Dr(e){var t=e.f;if(!(t&16384)){ft(e,v);var n=cr;cr=e;try{t&16777232?qn(e):Kn(e),Gn(e);var r=Cr(e);e.teardown=typeof r==`function`?r:null,e.wv=gr}finally{cr=n}}}async function Or(){await Promise.resolve(),Kt()}function z(e){var t=!!(e.f&2);if(nr?.add(e),ar!==null&&!or&&!(cr!==null&&cr.f&16384)&&(ur===null||!ur.has(e))){var r=ar.deps;if(ar.f&2097152)e.rv<_r&&(e.rv=_r,fr===null&&r!==null&&r[pr]===e?pr++:fr===null?fr=[e]:fr.push(e));else{ar.deps??=[],n.call(ar.deps,e)||ar.deps.push(e);var i=e.reactions;i===null?e.reactions=[ar]:n.call(i,ar)||i.push(ar)}}if(rr&&en.has(e))return en.get(e);if(t){var a=e;if(rr){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||Ar(a))&&(o=At(a)),en.set(a,o),o}var s=!(a.f&512)&&!or&&ar!==null&&!!(ar.f&512),c=(a.f&C)===0;xr(a)&&(s&&(a.f|=512),jt(a)),s&&!c&&(Nt(a),kr(a))}if(Lt?.has(e))return Lt.get(e);if(e.f&8388608)throw e.v;return e.v}function kr(e){if(e.f|=512,e.deps!==null)for(let r of e.deps){var t=r.reactions;t===null?r.reactions=[e]:n.call(t,e)||t.push(e),r.f&2&&!(r.f&512)&&(Nt(r),kr(r))}}function Ar(e){if(e.v===ve)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(en.has(t)||t.f&2&&Ar(t))return!0;return!1}function jr(e){var t=or;try{return or=!0,e()}finally{or=t}}function Mr(){return Symbol(Se)}function Nr(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var Pr=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function Fr(e){return Pr.includes(e)}var Ir=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),Lr={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function Rr(e){return e=e.toLowerCase(),Lr[e]??e}[...Ir];var zr=[`touchstart`,`touchmove`];function Br(e){return zr.includes(e)}var Vr=[`textarea`,`script`,`style`,`title`];function Hr(e){return Vr.includes(e)}var Ur=Symbol(`events`),Wr=new Set,Gr=new Set;function Kr(e,t,n,r={}){function i(e){if(r.capture||$r.call(t,e),!e.cancelBubble)return yt(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?(i.__removed=!1,lt(()=>{i.__removed||t.addEventListener(e,i,r)})):t.addEventListener(e,i,r),i}function qr(e,t,n,r={}){var i=Kr(t,e,n,r);return()=>{i.__removed=!0,e.removeEventListener(t,i,r)}}function Jr(e,t,n,r,i){var a={capture:r,passive:i},o=Kr(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Nn(()=>{o.__removed=!0,t.removeEventListener(e,o,a)})}function Yr(e,t,n){(t[Ur]??={})[e]=n}function Xr(e){for(var t=0;t<e.length;t++)Wr.add(e[t]);for(var n of Gr)n(e)}var Zr=null,Qr=!1;function $r(e){var t=this,n=t.ownerDocument,r=e.type,a=e.composedPath?.()||[],o=a[0]||e.target;Zr=e,Qr||(Qr=!0,setTimeout(()=>{Qr=!1,Zr=null}));var s=0,c=Zr===e&&e[Ur];if(c){var l=a.indexOf(c);if(l!==-1&&(t===document||t===window)){e[Ur]=t;return}var u=a.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=a[s]||e.target,o!==t){i(e,`currentTarget`,{configurable:!0,get(){return o||n}});var d=ar,f=cr;sr(null),lr(null);try{for(var p,m=[];o!==null&&o!==t;){try{var h=o[Ur]?.[r];h==null||o.disabled&&e.target!==o||h.call(o,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble)break;s++,o=s<a.length?a[s]:null}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Ur]=t,delete e.currentTarget,sr(d),lr(f)}}}var ei=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function ti(e){return ei?.createHTML(e)??e}function ni(e){var t=wn(`template`);return t.innerHTML=ti(e.replaceAll(`<!>`,`<!---->`)),t.content}function ri(e,t){var n=cr;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function B(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(E)return ri(Oe,null),Oe;i===void 0&&(i=ni(a?e:`<!>`+e),n||(i=bn(i)));var t=r||hn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=bn(t),s=t.lastChild;ri(o,s)}else ri(t,t);return t}}function ii(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=!!(t&1),a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(E)return ri(Oe,null),Oe;if(!o){var e=bn(ni(a));if(i)for(o=document.createDocumentFragment();bn(e);)o.appendChild(bn(e));else o=bn(e)}var t=o.cloneNode(!0);if(i){var n=bn(t),r=t.lastChild;ri(n,r)}else ri(t,t);return t}}function ai(e,t){return ii(e,t,`svg`)}function oi(e=``){if(!E){var t=yn(e+``);return ri(t,t),t}var n=Oe;return n.nodeType===3?En(n):(n.before(n=yn()),ke(n)),ri(n,n),n}function V(){if(E)return ri(Oe,null),Oe;var e=document.createDocumentFragment(),t=document.createComment(``),n=yn();return e.append(t,n),ri(t,n),e}function H(e,t){if(E){var n=cr;n.f&32768&&n.nodes.end!==null||(n.nodes.end=Oe),Ae()}else e!==null&&e.before(t)}function si(){if(E&&Oe&&Oe.nodeType===8&&Oe.textContent?.startsWith(`$`)){let e=Oe.textContent.substring(1);return Ae(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function ci(e){let t=0,n=nn(0),r;return()=>{Mn()&&(z(n),Vn(()=>(t===0&&(r=jr(()=>e(()=>ln(n)))),t+=1,()=>{lt(()=>{--t,t===0&&(r?.(),r=void 0,ln(n))})})))}}var li=ee|te;function ui(e,t,n,r){new di(e,t,n,r)}var di=class{parent;is_pending=!1;transform_error;#e;#t=E?Oe:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Map;#p=null;#m=ci(()=>(this.#p=nn(this.#l),()=>{this.#p=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=cr;t.b=this,t.f|=128,n(e)},this.parent=cr.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Hn(()=>{if(E){let e=Me(this.#t);Ae();let t=e===`[!`;if(e.startsWith(`[?`)){let t=JSON.parse(e.slice(2));this.#g(t)}else t?this.#y():this.#h()}else this.#b()},li),E&&(this.#e=Oe)}#h(){try{this.#a=Wn(()=>this.#r(this.#e))}catch(e){this.error(e)}}#g(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#_(e);lt(r),t&&(this.#s=Wn(()=>{t(this.#e,()=>e,()=>n)}))}#_(e){var t=!1,n=!1;let r=()=>{this.#v()||(t?Ee():(t=!0,n&&qe(),this.#s!==null&&Zn(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()})))};return{reset:r,invoke_onerror:()=>{if(!this.#v())try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){On(e,this.#i&&this.#i.parent)}}}}#v(){return(this.#i.f&(S|w))!==0}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=Wn(()=>e(this.#e)),lt(()=>{if(!this.#v()){var e=this.#c=document.createDocumentFragment(),t=yn(),n=!1;e.append(t),this.#a=this.#S(()=>{try{return Wn(()=>this.#r(t))}catch(e){try{this.error(e),n=!0}catch(e){On(e,this.#i.parent)}return null}}),this.#a===null?(this.#c=null,n&&this.#x(Ft)):this.#u===0&&(this.#e.before(e),this.#c=null,Zn(this.#o,()=>{this.#o=null}),this.#x(Ft))}}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=Wn(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();tr(this.#a,e);let t=this.#n.pending;this.#o=Wn(()=>t(this.#e))}else this.#x(Ft)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_reactions(this.#f)}defer_effect(e){mt(e,this.#f)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#S(e){var t=cr,n=ar,r=$e;lr(this.#i),sr(this.#i),et(this.#i.ctx);try{return Gt.ensure(),e()}finally{lr(t),sr(n),et(r)}}#C(e,t){this.has_pending_snippet()?(this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&Zn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))):this.parent&&this.parent.#C(e,t)}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!(!this.#p||this.#d)&&(this.#d=!0,lt(()=>{this.#d=!1,this.#p&&sn(this.#p,this.#l)}))}get_effect_pending(){return this.#m(),z(this.#p)}error(e){if(e===_e||!this.#n.onerror&&!this.#n.failed)throw e;Ft?.is_fork?(this.#a&&Ft.skip_effect(this.#a),this.#o&&Ft.skip_effect(this.#o),this.#s&&Ft.skip_effect(this.#s),Ft.oncommit(()=>{this.#v()||this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(Jn(this.#a),null),this.#o&&=(Jn(this.#o),null),this.#s&&=(Jn(this.#s),null),E&&(ke(this.#t),O(),ke(je()));let t=this.#n.failed,n=e=>{if(this.#v())return;let{reset:n,invoke_onerror:r}=this.#_(e);r(),t&&!this.#v()&&(this.#s=this.#S(()=>{try{return Wn(()=>{var r=cr;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return On(e,this.#i.parent),null}}))};lt(()=>{if(!this.#v()){var t;try{t=this.transform_error(e)}catch(e){On(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>On(e,this.#i&&this.#i.parent)):n(t)}})}};function U(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[pe]??=e.nodeValue)&&(e[pe]=n,e.nodeValue=`${n}`)}function fi(e,t){return mi(e,t)}var pi=new Map;function mi(e,{target:t,anchor:n,props:i={},events:a,context:o,intro:s=!0,transformError:c}){vn();var l=void 0,u=Rn(()=>{var s=n??t.appendChild(yn());ui(s,{pending:()=>{}},t=>{k({});var n=$e;if(o&&(n.c=o),a&&(i.$$events=a),E&&ri(t,null),l=e(t,i)||at(),E&&(cr.nodes.end=Oe,Oe===null||Oe.nodeType!==8||Oe.data!==`]`))throw we(),_e;A()},c);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=Br(r);for(let e of[t,document]){var a=pi.get(e);a===void 0&&(a=new Map,pi.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,$r,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(r(Wr)),Gr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=pi.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,$r),r.delete(e),r.size===0&&pi.delete(n)):r.set(e,i)}Gr.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return hi.set(l,u),l}var hi=new WeakMap;function gi(e,t){let n=hi.get(e);return n?(hi.delete(e),n(t)):Promise.resolve()}var _i=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)$n(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&($n(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(Jn(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();tr(r,t),t.append(yn()),this.#n.set(e,{effect:r,fragment:t})}else Jn(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Zn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(Jn(n.effect),this.#n.delete(e))};ensure(e,t){var n=Ft,r=Cn();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=yn();i.append(a),this.#n.set(e,{effect:Wn(()=>t(a)),fragment:i})}else this.#t.set(e,Wn(()=>t(this.anchor)))}if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else E&&(this.anchor=Oe),this.#a(n)}};function W(e,t,n=!1){var r;E&&(r=Oe,Ae());var i=new _i(e),a=n?ee:0;function o(e,t){if(E){var n=Me(r);if(e!==parseInt(n.substring(1))){var a=je();ke(a),i.anchor=a,De(!1),i.ensure(e,t),De(!0);return}}i.ensure(e,t)}Hn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var vi=Symbol(`NaN`);function yi(e,t,n){E&&Ae();var r=new _i(e),i=!ot();Hn(()=>{var e=t();e!==e&&(e=vi),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function bi(e,t){return t}function xi(e,t,n){for(var i=[],a=t.length,o,s=t.length,c=0;c<a;c++){let n=t[c];Zn(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;Si(e,r(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else--s},!1)}if(s===0){var l=i.length===0&&n!==null&&e.pending.size===0;if(l){var u=n,d=u.parentNode;Sn(d),d.append(u),e.items.clear()}Si(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Si(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=re,tr(a,document.createDocumentFragment())):Jn(t[i],n)}}var Ci;function wi(t,n,i,a,o,s=null){var c=t,l=new Map;if(n&4){var u=t;c=E?ke(bn(u)):u.appendChild(yn())}E&&Ae();var d=null,f=Ot(()=>{var t=i();return e(t)?t:t==null?[]:r(t)}),p=new Map,m=!0;function h(e){if(!(_.effect.f&16384)){_.pending.delete(e);var t=z(f);_.fallback=d,Ei(_,t,c,n,a),d!==null&&(t.length===0?d.f&33554432?(d.f^=re,Oi(d,null,c)):$n(d):Zn(d,()=>{d=null}))}}function g(e){_.pending.delete(e)}var _={effect:Hn(()=>{var e=z(f),t=e.length;let r=!1;E&&Me(c)===`[!`!=(t===0)&&(c=je(),ke(c),De(!1),r=!0);for(var u=new Set,_=Ft,v=Cn(),y=0;y<t;y+=1){E&&Oe.nodeType===8&&Oe.data===`]`&&(c=Oe,r=!0,De(!1));var b=e[y],x=a(b,y),S=m?null:l.get(x);S?(S.v&&sn(S.v,b),S.i&&sn(S.i,y),v&&_.unskip_effect(S.e)):(S=Di(l,m?c:Ci??=yn(),b,x,y,o,n,i),m||(S.e.f|=re),l.set(x,S)),u.add(x)}if(t===0&&s&&!d&&(m?d=Wn(()=>s(c)):(d=Wn(()=>s(Ci??=yn())),d.f|=re)),t>u.size&&Re(``,``,``),E&&t>0&&ke(je()),!m){if(p.set(_,u),v){for(let[e,t]of l)u.has(e)||_.skip_effect(t.e);_.oncommit(h),_.ondiscard(g)}else h(_)}r&&De(!0),z(f)}),flags:n,items:l,pending:p,outrogroups:null,fallback:d};m=!1,E&&(c=Oe)}function Ti(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Ei(e,t,n,i,a){var o=!!(i&8),s=t.length,c=e.items,l=Ti(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v<s;v+=1)h=t[v],g=a(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<s;v+=1){if(h=t[v],g=a(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&($n(_),o&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432){if(_.f^=re,_===l)Oi(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),ki(e,d,_),ki(e,_,y),Oi(_,y,n),d=_,p=[],m=[],l=Ti(d.next);continue}}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],C=p[p.length-1];for(x=0;x<p.length;x+=1)Oi(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);ki(e,S.prev,C.next),ki(e,d,S),ki(e,C,b),l=b,d=C,--v,p=[],m=[]}else u.delete(_),Oi(_,l,n),ki(e,_.prev,_.next),ki(e,_,d===null?e.effect.first:d.next),ki(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Ti(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Ti(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Si(e,r(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var w=[];if(u!==void 0)for(_ of u)_.f&8192||w.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&w.push(l),l=Ti(l.next);var ee=w.length;if(ee>0){var te=i&4&&s===0?n:null;if(o){for(v=0;v<ee;v+=1)w[v].nodes?.a?.measure();for(v=0;v<ee;v+=1)w[v].nodes?.a?.fix()}xi(e,w,te)}}o&&lt(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Di(e,t,n,r,i,a,o,s){var c=o&1?o&16?nn(n):rn(n,!1,!1):null,l=o&2?nn(i):null;return{v:c,i:l,e:Wn(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Oi(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=xn(r);if(a.before(r),r===i)return;r=o}}function ki(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Ai(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;E&&(o=ke(bn(c)))}R(()=>{var e=cr;if(s===(s=t()??``))E&&Ae();else if(n&&!E)e.nodes=null,c.innerHTML=s,s!==``&&ri(bn(c),c.lastChild);else if(e.nodes!==null&&(Yn(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(E){for(var a=Oe.data,l=Ae(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=xn(l);if(l===null)throw we(),_e;ri(Oe,u),o=ke(l)}else{var d=wn(r?`svg`:i?`math`:`template`,r?be:i?xe:void 0);d.innerHTML=s;var f=r||i?d:d.content;if(ri(bn(f),f.lastChild),r||i)for(;bn(f);)o.before(bn(f));else o.before(f)}}})}function ji(e,t,...n){var r=new _i(e);Hn(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ee)}function Mi(e,t,n){var r;E&&(r=Oe,Ae());var i=new _i(e);Hn(()=>{var e=t()??null;if(E&&Me(r)===`[`!=(e!==null)){var a=je();ke(a),i.anchor=a,De(!1),i.ensure(e,e&&(t=>n(t,e))),De(!0)}else i.ensure(e,e&&(t=>n(t,e)))},ee)}function Ni(e,t,n,r,i,a){let o=E;E&&Ae();var s=null;E&&Oe.nodeType===1&&(s=Oe,Ae());var c=E?Oe:e,l=new _i(c,!1);Hn(()=>{let e=t()||null;var a=i?i():n||e===`svg`?be:void 0;if(e===null)l.ensure(null,null);else return l.ensure(e,t=>{if(e){var n=E;if(s=E?s:wn(e,a),ri(s,s),r){var i=null;E&&Hr(e)&&s.append(i=document.createComment(``));var o=E?bn(s):s.appendChild(yn());E&&(o===null?De(!1):ke(o)),r(s,o),i?.remove()}cr.nodes.end=s,n||t.before(s)}E&&ke(t)}),()=>{}},ee),Nn(()=>{}),o&&(De(!0),ke(c))}function Pi(e,t){var n=void 0,r;Un(()=>{n!==(n=t())&&(r&&=(Jn(r),null),n&&(r=Wn(()=>{zn(()=>n(e))})))})}function Fi(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Fi(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Ii(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Fi(e))&&(r&&(r+=` `),r+=t);return r}function G(e){return typeof e==`object`?Ii(e):e??``}var Li=[...`
2
- \r\f\xA0\v`];function Ri(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Li.includes(r[o-1]))&&(s===r.length||Li.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function zi(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Bi(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Vi(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Bi)),i&&c.push(...Object.keys(i).map(Bi));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Bi(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=zi(r)),i&&(n+=zi(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function K(e,t,n,r,i,a){var o=e[de];if(E||o!==n||o===void 0){var s=Ri(n,r,a);E&&s===e.getAttribute(`class`)||(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[de]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Hi(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Ui(e,t,n,r){var i=e[fe];if(E||i!==t){var a=Vi(t,r);E&&a===e.getAttribute(`style`)||(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[fe]=t}else r&&(Array.isArray(r)?(Hi(e,n?.[0],r[0]),Hi(e,n?.[1],r[1],`important`)):Hi(e,n,r));return r}function Wi(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function Gi(e,t){var n=!(`__defaultValue`in e);(n||e.__defaultValue!==t)&&(e.__defaultValue=t,Ki(e,!n||`__value`in e))}function Ki(t,n){var r=t.__defaultValue,i=t.multiple,a=i?r??[]:null;if(!i||e(a)){var o=t.selectedIndex,s=n&&i?new Set(t.selectedOptions):null;for(var c of t.options){var l=Xi(c);Wi(c,i?a.includes(l):pn(l,r))}if(n){if(s!==null)for(c of t.options){var u=s.has(c);c.selected!==u&&(c.selected=u)}else t.selectedIndex!==o&&(t.selectedIndex=o)}}}function qi(t,n,r=!1){if(t.multiple){if(n==null)return;if(!e(n))return Te();for(var i of t.options)i.selected=n.includes(Xi(i))}else{for(i of t.options)if(pn(Xi(i),n)){i.selected=!0;return}r&&n===void 0||(t.selectedIndex=-1)}}function Ji(e){var t=new MutationObserver(t=>{t.every(Zi)||(`__defaultValue`in e&&Ki(e,!1),`__value`in e&&qi(e,e.__value))});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Nn(()=>{t.disconnect()})}function Yi(e,t,n=t){var r=new WeakSet,i=!0;bt(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),Xi);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&Xi(o)}n(a),e.__value=a,Ft!==null&&r.add(Ft)}),zn(()=>{var a=t();if(e===document.activeElement){var o=Ft;if(r.has(o))return}if(qi(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=Xi(s),n(a))}e.__value=a,i=!1})}function Xi(e){return`__value`in e?e.__value:e.value}function Zi(e){if(e.target.closest(`selectedcontent`)!==null)return!0;if(e.type===`childList`){var t=[...e.addedNodes,...e.removedNodes];return t.length>0&&t.every(e=>e.nodeName===`SELECTEDCONTENT`)}return!1}var Qi=Symbol(`class`),$i=Symbol(`style`),ea=Symbol(`is custom element`),ta=Symbol(`is html`),na=ge?`link`:`LINK`,ra=ge?`input`:`INPUT`,ia=ge?`option`:`OPTION`,aa=ge?`select`:`SELECT`,oa=ge?`progress`:`PROGRESS`;function sa(e){if(E){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;q(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;q(e,`checked`,null),e.checked=r}}};e[me]=n,lt(n),vt()}}function q(e,t,n,r){var i=ua(e);if(!(E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===na))){var a=i[t];a!==(i[t]=n)&&(t===`loading`&&(e[ue]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&fa(e).has(t)?e[t]=n:(!E||typeof n!=`number`&&typeof n!=`boolean`||a!==String(n))&&e.setAttribute(t,n))}}function ca(e,t,n,r,i=!1,a=!1){E&&i&&e.nodeName===ra&&(`defaultValue`in n||`defaultChecked`in n||sa(e));var o=ua(e),s=o[ea],c=!o[ta];let l=E&&s;l&&De(!1);var u=t||{},d=e.nodeName===ia,f=e.nodeName===aa;try{for(var p in t)!(p in n)&&p[0]+p[1]!==`$$`&&(n[p]=null);n.class?n.class=G(n.class):(r||n[Qi])&&(n.class=null),n[$i]&&(n.style??=null);var m=fa(e);if(e.nodeName===ra&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==u.type||h===void 0&&e.hasAttribute(`type`))&&(u.type=h,q(e,`type`,h,a))}for(let i in n){let l=n[i];if(d&&i===`value`&&l==null)e.value=e.__value=``,u[i]=l;else if(i===`class`)K(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,l,r,t?.[Qi],n[Qi]),u[i]=l,u[Qi]=n[Qi];else if(i===`style`)Ui(e,l,t?.[$i],n[$i]),u[i]=l,u[$i]=n[$i];else{var g=u[i];if(l!==g||l===void 0&&e.hasAttribute(i)){u[i]=l;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=Fr(r);if(Nr(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(l!=null)continue;e.removeEventListener(r,u[n],t),u[n]=null}if(v)Yr(r,e,l),Xr([r]);else if(l!=null){function a(e){u[i].call(this,e)}u[n]=Kr(r,e,a,t)}}else if(i===`style`)q(e,i,l);else if(i===`autofocus`)ht(e,!!l);else if(!s&&(i===`__value`||i===`value`&&l!=null))e.__value=l,(g==null||e.value!==l||l===0&&e.nodeName===oa)&&(e.value=l);else if(i===`selected`&&d)Wi(e,l);else{var y=i;c||(y=Rr(y));var b=y===`defaultValue`||y===`defaultChecked`;if(f&&y===`defaultValue`)continue;if(l==null&&!s&&!b){if(o[i]=null,y===`value`||y===`checked`){let n=e,r=t===void 0;if(y===`value`){let e=n.defaultValue;n.removeAttribute(y),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(y),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else b||(s||typeof l!=`string`)&&m.has(y)?(e[y]=l,y in o&&(o[y]=ve)):typeof l!=`function`&&q(e,y,l,a)}}}}}}finally{l&&De(!0)}return u}function la(e,t,n=[],r=[],i=[],a,o=!1,s=!1){xt(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===aa,l=!1;if(Un(()=>{var u=t(...n.map(z)),d=ca(e,r,u,a,o,s);if(l&&c){var f=e;`defaultValue`in u&&Gi(f,u.defaultValue),`value`in u&&qi(f,u.value)}for(let e of Object.getOwnPropertySymbols(i))u[e]||Jn(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var p=u[t];t.description!==`@attach`||r&&p===r[t]||(i[t]&&Jn(i[t]),i[t]=Wn(()=>Pi(e,()=>p))),d[t]=p}r=d}),c){var u=e;zn(()=>{var e=r;`defaultValue`in e&&Gi(u,e.defaultValue),qi(u,e.value,!0),Ji(u)})}l=!0})}function ua(e){return e[T]??={[ea]:e.nodeName.includes(`-`),[ta]:e.namespaceURI===ye}}var da=new Map;function fa(e){var t=e.getAttribute(`is`)||e.nodeName,n=da.get(t);if(n)return n;da.set(t,n=new Set);for(var r,i=e,a=Element.prototype;a!==i;){for(var s in r=o(i),r)r[s].set&&s!==`innerHTML`&&s!==`textContent`&&s!==`innerText`&&n.add(s);i=l(i)}return n}var pa=null;function ma(){if(pa===null){var e=wn(`select`);e.innerHTML=ti(`<option><span>t</span></option>`),pa=e.firstChild?.firstChild?.nodeType===1}return pa}function ha(e,t){var n=E;ma()||(De(!1),e.textContent=``,e.append(Tn(``)));try{t()}finally{n&&(E?D(e):(De(!0),ke(e)))}}function ga(e,t,n=t){var r=new WeakSet;bt(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=_a(e)?va(a):a,n(a),Ft!==null&&r.add(Ft),await Or(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(E&&e.defaultValue!==e.value||jr(t)==null&&e.value)&&(n(_a(e)?va(e.value):e.value),Ft!==null&&r.add(Ft)),Vn(()=>{var n=t();if(e===document.activeElement){var i=Ft;if(r.has(i))return}_a(e)&&n===va(e.value)||(e.type!==`date`||n||e.value)&&n!==e.value&&(e.value=n??``)})}function _a(e){var t=e.type;return t===`number`||t===`range`}function va(e){return e===``?null:+e}function ya(e,t){return e===t||e?.[se]===t}function ba(e=at(),t,n,r){var i=$e.r,a=cr;return zn(()=>{var o,s;return Vn(()=>{o=s,s=r?.()||[],jr(()=>{ya(n(...s),e)||(t(e,...s),o&&ya(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&ya(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var xa=!1;function Sa(e){var t=xa;try{return xa=!1,[e(),xa]}finally{xa=t}}var Ca={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}};function J(e,t,n){return new Proxy({props:e,exclude:t},Ca)}var wa={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(d(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];d(i)&&(i=i());let o=a(i,t);if(o&&o.set)return o.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(d(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=a(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===se||t===le)return!1;for(let n of e.props)if(d(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(d(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function Y(...e){return new Proxy({props:e},wa)}function X(e,t,n,r){var i=!0,o=!!(n&8),s=!!(n&16),c=r,l=!0,u=void 0,d=()=>s&&i?(u??=Tt(r),z(u)):(l&&(l=!1,c=s?jr(r):r),c);let f;if(o){var p=se in e||le in e;f=a(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;o?[m,h]=Sa(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Ue(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?Tt:Ot)(()=>(v=!1,g()));o&&z(y);var b=cr;return(function(e,t){if(arguments.length>0){let n=t?z(y):i&&o?dn(e):e;return N(y,n),v=!0,c!==void 0&&(c=n),e}return rr&&v||b.f&16384?y.v:z(y)})}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var Ta={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},Ea=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim();function Da(e){return e!=null}function Oa(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Ta.width,a=e.size??e.height??Ta.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Ea(...c):Ea(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Ta[`stroke-width`])*Number(e.size??e.width??Ta.width)/Number(t.size??t.width??Ta.width):t.strokeWidth??Ta[`stroke-width`];return[`svg`,{...Object.entries(Ta).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Da(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Da(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Da(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}var ka=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Aa=Symbol(`lucide-context`),ja=()=>tt(Aa),Ma=new Set([`$$slots`,`$$events`,`$$legacy`,`color`,`size`,`width`,`height`,`strokeWidth`,`absoluteStrokeWidth`,`nonScalingStroke`,`iconNode`,`icon`,`class`,`children`]),Na=ai(`<svg><!><!></svg>`);function Pa(e,t){k(t,!0);let n=ja()??{},r=X(t,`color`,19,()=>n.color??`currentColor`),i=X(t,`size`,19,()=>n.size??24),a=X(t,`width`,19,i),o=X(t,`height`,19,i),s=X(t,`strokeWidth`,19,()=>n.strokeWidth??2),c=X(t,`absoluteStrokeWidth`,19,()=>n.absoluteStrokeWidth??!1),l=X(t,`nonScalingStroke`,19,()=>n.nonScalingStroke??!1),u=X(t,`iconNode`,19,()=>[]),d=X(t,`icon`,19,()=>({node:u(),aliases:[],size:24})),p=J(t,Ma),m=j(()=>!!t.children||ka(p)),_=j(()=>Oa(d(),{color:r(),width:a(),height:o(),strokeWidth:s(),absoluteStrokeWidth:c(),nonScalingStroke:l(),className:Ea(`lucide-icon`,n.class),hasA11yProp:z(m),attributes:p})),v=j(()=>g(z(_),3)),y=j(()=>z(v)[1]),b=j(()=>h(z(v)[2],()=>[],!0)),x=j(()=>({...z(y),class:[...z(y).class.split(` `),t.class]}));var S=Na();la(S,()=>({...z(x)}));var C=P(S);wi(C,17,()=>z(b),bi,(e,t)=>{var n=j(()=>g(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1];var a=V();Ni(F(a),r,!0,(e,t)=>{la(e,()=>({...i()}))}),H(e,a)}),ji(L(C),()=>t.children??f),D(S),H(e,S),A()}var Fa={name:`loader`,size:24,node:[[`path`,{d:`M12 2v4`}],[`path`,{d:`m16.2 7.8 2.9-2.9`}],[`path`,{d:`M18 12h4`}],[`path`,{d:`m16.2 16.2 2.9 2.9`}],[`path`,{d:`M12 18v4`}],[`path`,{d:`m4.9 19.1 2.9-2.9`}],[`path`,{d:`M2 12h4`}],[`path`,{d:`m4.9 4.9 2.9 2.9`}]]};Fa.node;var Ia=new Set([`$$slots`,`$$events`,`$$legacy`]);function La(e,t){let n=J(t,Ia);Pa(e,Y(()=>n,{get icon(){return Fa}}))}var Ra={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`}],[`path`,{d:`M4 12h16`}],[`path`,{d:`M4 19h16`}]]};Ra.node;var za=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ba(e,t){let n=J(t,za);Pa(e,Y(()=>n,{get icon(){return Ra}}))}var Va={name:`panel-left-close`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M9 3v18`}],[`path`,{d:`m16 15-3-3 3-3`}]],aliases:[`sidebar-close`]};Va.node;var Ha=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ua(e,t){let n=J(t,Ha);Pa(e,Y(()=>n,{get icon(){return Va}}))}var Wa={name:`panel-left-open`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M9 3v18`}],[`path`,{d:`m14 9 3 3-3 3`}]],aliases:[`sidebar-open`]};Wa.node;var Ga=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ka(e,t){let n=J(t,Ga);Pa(e,Y(()=>n,{get icon(){return Wa}}))}var qa={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`}],[`path`,{d:`M12 5v14`}]]};qa.node;var Ja=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ya(e,t){let n=J(t,Ja);Pa(e,Y(()=>n,{get icon(){return qa}}))}var Xa={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`}],[`path`,{d:`M21 3v5h-5`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`}],[`path`,{d:`M8 16H3v5`}]]};Xa.node;var Za=new Set([`$$slots`,`$$events`,`$$legacy`]);function Qa(e,t){let n=J(t,Za);Pa(e,Y(()=>n,{get icon(){return Xa}}))}var $a={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`}],[`path`,{d:`M14 11v6`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`}],[`path`,{d:`M3 6h18`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`}]],aliases:[`trash-2`]};$a.node;var eo=new Set([`$$slots`,`$$events`,`$$legacy`]);function to(e,t){let n=J(t,eo);Pa(e,Y(()=>n,{get icon(){return $a}}))}var no={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`}],[`path`,{d:`M12 9v4`}],[`path`,{d:`M12 17h.01`}]],aliases:[`alert-triangle`]};no.node;var ro=new Set([`$$slots`,`$$events`,`$$legacy`]);function io(e,t){let n=J(t,ro);Pa(e,Y(()=>n,{get icon(){return no}}))}var ao={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`}]]};ao.node;var oo=new Set([`$$slots`,`$$events`,`$$legacy`]);function so(e,t){let n=J(t,oo);Pa(e,Y(()=>n,{get icon(){return ao}}))}var co={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`}]]};co.node;var lo=new Set([`$$slots`,`$$events`,`$$legacy`]);function uo(e,t){let n=J(t,lo);Pa(e,Y(()=>n,{get icon(){return co}}))}var fo={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`}]]};fo.node;var po=new Set([`$$slots`,`$$events`,`$$legacy`]);function mo(e,t){let n=J(t,po);Pa(e,Y(()=>n,{get icon(){return fo}}))}var ho={name:`git-merge`,size:24,node:[[`circle`,{cx:`18`,cy:`18`,r:`3`}],[`circle`,{cx:`6`,cy:`6`,r:`3`}],[`path`,{d:`M6 21V9a9 9 0 0 0 9 9`}]]};ho.node;var go=new Set([`$$slots`,`$$events`,`$$legacy`]);function _o(e,t){let n=J(t,go);Pa(e,Y(()=>n,{get icon(){return ho}}))}var vo={name:`target`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`circle`,{cx:`12`,cy:`12`,r:`6`}],[`circle`,{cx:`12`,cy:`12`,r:`2`}]]};vo.node;var yo=new Set([`$$slots`,`$$events`,`$$legacy`]);function bo(e,t){let n=J(t,yo);Pa(e,Y(()=>n,{get icon(){return vo}}))}var xo=3200;function So(){let e=new Uint32Array(4);return crypto.getRandomValues(e),Array.from(e,e=>e.toString(16).padStart(8,`0`)).join(``)}function Co(e,t,n=`success`){return[...e,{id:So(),text:t,variant:n}].slice(-5)}var wo=dn({items:[]});function To(e,t=`success`){wo.items=Co(wo.items,e,t)}function Eo(e){wo.items=wo.items.filter(t=>t.id!==e)}var Do={success:e=>To(e,`success`),error:e=>To(e,`error`),warning:e=>To(e,`warning`),info:e=>To(e,`info`)},Oo={en:{"tab-stats":`Stats`,"stats-overview":`Overview`,"stats-total-memories":`Total memories`,"stats-active-shards":`Active shards`,"stats-scope-user":`User`,"stats-scope-project":`Project`,"stats-last-analyzed":`Last analyzed`,"stats-no-profile":`No profile yet`,"stats-generated":`Last generated`,"stats-snapshot-note":`Refresh to get the latest snapshot.`,"stats-loading":`Loading stats…`,"stats-load-failed":`Could not load stats. Try refreshing.`,"stats-stale":`Showing the last successful snapshot.`,"stats-unavailable":`Data unavailable`,"stats-daily":`Daily activity · last 14 days`,"stats-no-activity":`No daily activity recorded yet.`,"stats-date":`Date`,"stats-captures":`Captures`,"stats-skipped":`Skipped captures`,"stats-profile-injections":`Profile injections`,"stats-compaction-injections":`Compaction injections`,"stats-errors":`Errors`,"stats-no-errors":`No errors`,"stats-shards":`Storage shards`,"stats-no-shards":`No storage shards yet.`,"stats-scope":`Scope / hash`,"stats-file":`File`,"stats-index":`Index`,"stats-status":`Status`,"stats-memory-vectors":`Memories / registered vectors`,"stats-memory-dates":`Memory dates`,"stats-duplicate-tags":`Duplicate tags`,"stats-file-present":`File present`,"stats-file-missing":`File missing`,"stats-active":`Active`,"stats-inactive":`Inactive`,"stats-count-mismatch":`Counts differ`,"stats-oldest":`Oldest`,"stats-newest":`Newest`,title:`OpenCode Memory Explorer`,brand:`opencode-mem`,"tab-project":`Project Memories`,"tab-profile":`User Profile`,"nav-menu":`Menu`,"nav-close":`Close menu`,"nav-collapse":`Collapse sidebar`,"nav-expand":`Expand sidebar`,"nav-language":`Language`,"nav-theme":`Theme`,"theme-dark":`Dark`,"theme-light":`Light`,"label-tag":`Tag`,"label-type":`Type`,"label-tags":`Tags`,"label-content":`Content`,"btn-cleanup":`Cleanup`,"btn-deduplicate":`Deduplicate`,"btn-trash":`Trash`,"btn-restore":`Restore`,"btn-dreaming":`Dream`,"modal-trash-title":`Memory Trash`,"loading-trash":`Loading trash…`,"empty-trash":`Trash is empty`,"trash-merged-into":`Merged into {id}`,"trash-superseded-by":`Superseded by {id}`,"toast-trash-load-failed":`Failed to load trash`,"toast-restore-success":`Memory restored`,"toast-restore-failed":`Failed to restore memory`,"toast-dreaming-success":`Dreaming completed`,"toast-dreaming-failed":`Dreaming failed`,"toast-dreaming-already-running":`Dreaming is already running`,"toast-dreaming-partial":`Dreaming finished with {failed} of {considered} groups failed`,"confirm-dreaming-title":`Run Dreaming`,"confirm-dreaming":`Merge near-duplicate memories with the configured LLM? Superseded rows go to trash.`,"status-dreaming":`Running dreaming…`,"btn-filter":`Filter`,"btn-filter-clear":`Clear selection`,"btn-delete-selected":`Delete Selected`,"btn-select-all":`Select Page`,"btn-deselect-all":`Deselect All`,"btn-add-memory":`Add Memory`,"section-project":`Project Memories ({count})`,"section-profile":`User Profile`,"section-add":`Add New Memory`,"opt-all-tags":`All Tags`,"opt-select-tag":`Select tag`,"opt-other":`other`,"opt-feature":`feature`,"opt-bug-fix":`bug-fix`,"opt-refactor":`refactor`,"opt-architecture":`architecture`,"opt-rule":`rule`,"opt-documentation":`documentation`,"opt-discussion":`discussion`,"opt-analysis":`analysis`,"opt-configuration":`configuration`,"modal-edit-title":`Edit Memory`,"modal-migration-title":`Memory Tagging Migration`,"modal-changelog-title":`Profile Version History`,"btn-cancel":`Cancel`,"btn-save":`Save Changes`,"btn-start-migration":`Start Migration`,"loading-init":`Initializing…`,"loading-profile":`Loading profile…`,"loading-changelog":`Loading changelog…`,"migration-mismatch":`Model dimension mismatch detected!`,"migration-understand":`I understand this operation is irreversible and will affect all stored memories`,"btn-fresh-start":`Fresh Start (Delete All)`,"btn-reembed":`Re-embed (Preserve Data)`,"migration-note":`Please don't close the browser. This will re-vectorize your memories with technical tags to improve search accuracy.`,"placeholder-filter":`Filter…`,"placeholder-search":`Search memories…`,"placeholder-search-skills":`Search skills…`,"placeholder-tags":`react, hooks, auth (comma separated)`,"placeholder-new-tag":`New tag…`,"btn-add-tag":`Add tag`,"placeholder-content":`Enter memory content…`,"toast-add-success":`Memory added successfully`,"toast-add-error":`Content and tag are required`,"toast-add-failed":`Failed to add memory`,"toast-delete-success":`Memory deleted successfully`,"toast-delete-failed":`Failed to delete memory`,"toast-update-success":`Memory updated successfully`,"toast-update-failed":`Failed to update memory`,"toast-cleanup-success":`Cleanup completed successfully`,"toast-cleanup-failed":`Cleanup failed`,"toast-dedup-success":`Deduplication completed successfully`,"toast-dedup-failed":`Deduplication failed`,"toast-bulk-delete-success":`Selected memories deleted successfully`,"toast-bulk-delete-failed":`Failed to delete selected memories`,"toast-migration-success":`Migration completed successfully`,"toast-migration-failed":`Migration failed`,"toast-migration-tag-failures":`Migration failed: {count} memory tag generation failure(s)`,"toast-fresh-start-success":`Fresh start completed successfully`,"toast-fresh-start-failed":`Fresh start failed`,"confirm-delete":`Delete this memory?`,"confirm-delete-title":`Confirm Delete`,"confirm-delete-pair":`Delete this memory AND its linked prompt?`,"confirm-delete-prompt":`Delete this prompt AND its linked memory?`,"confirm-bulk-delete":`Delete {count} selected memories?`,"confirm-bulk-delete-title":`Delete Selected`,"confirm-cleanup":`This will remove all memories that are no longer relevant. Continue?`,"confirm-cleanup-title":`Cleanup Memories`,"confirm-dedup":`This will merge duplicate or highly similar memories. Continue?`,"confirm-dedup-title":`Deduplicate Memories`,"confirm-migration-title":`Confirm Migration`,"confirm-migration":`Run {strategy}?
3
-
4
- This operation is irreversible.`,"text-selected":`{count} selected`,"text-page":`Page {current} of {total}`,"text-total":`Total: {count}`,"empty-memories":`No memories found`,"empty-changelog":`No changelog available`,"status-cleanup":`Running cleanup…`,"status-dedup":`Running deduplication…`,"status-migration-init":`Initializing migration…`,"status-migration-progress":`Migrating… {current}/{total}`,"profile-version":`Version`,"profile-prompts":`Prompts`,"profile-updated":`Last Updated`,"profile-meta":`{count} prompts · {date}`,"profile-preferences":`Preferences`,"profile-type-pref":`Pref`,"profile-type-pat":`Pat`,"profile-type-wf":`Wf`,"profile-patterns":`Patterns`,"profile-workflows":`Workflows`,"label-evidence-tooltip":`AI analysis hit {count} times`,"badge-prompt":`User Prompt`,"badge-memory":`Memory`,"badge-pinned":`Pinned`,"section-all":`All`,"badge-linked":`Linked`,"date-created":`Created:`,"date-updated":`Updated:`,"empty-preferences":`No preferences learned yet`,"empty-patterns":`No patterns detected yet`,"empty-workflows":`No workflows identified yet`,"btn-delete-pair":`Delete Pair`,"btn-edit":`Edit`,"btn-delete":`Delete`,"label-category":`Category`,"label-description":`Description`,"label-steps":`Steps`,"btn-add-step":`+ Add Step`,"text-generated-above":`Generated memory above`,"text-from-below":`From prompt below`,"btn-refresh":`Refresh`,"btn-ai-cleanup":`AI Cleanup`,"label-ai-cleanup-title":`AI Profile Cleanup`,"label-ai-cleanup-loading":`AI is analyzing profile…`,"label-ai-cleanup-merged":`Merged`,"label-ai-cleanup-removed":`Removed`,"label-ai-cleanup-kept":`Remaining`,"label-ai-cleanup-none":`None`,"label-ai-cleanup-select-all":`Select All`,"label-ai-cleanup-deselect-all":`Deselect All`,"label-ai-cleanup-apply":`Apply Changes`,"label-ai-cleanup-merge-check":`Merge`,"label-ai-cleanup-remove-check":`Remove`,"label-ai-cleanup-changes-selected":`{selected}/{total} changes selected`,"label-ai-cleanup-merged-header":`Merged ({count} groups)`,"label-ai-cleanup-removed-header":`Removed ({count} items)`,"btn-apply":`Apply`,"toast-ai-cleanup-success":`Profile cleanup completed`,"toast-ai-cleanup-failed":`AI cleanup failed`,"toast-cleanup-apply-failed":`Apply cleanup failed`,"label-ai-cleanup-select":`Select items for cleanup analysis`,"label-ai-cleanup-select-low":`Low Freq (≤3)`,"label-ai-cleanup-select-same-cat":`Same Category Pairs`,"label-ai-cleanup-analyze":`Analyze Selected`,"label-ai-cleanup-selected":`{count} selected`,"migration-found-tags":`Found {count} memories needing technical tags.`,"migration-stopped":`Migration stopped: maximum attempts reached`,"migration-shards-mismatch":`{count} shard(s) have different dimensions`,"migration-dimension-mismatch":`dimension mismatch detected`,"migration-mismatch-details":`Model mismatch: Config uses {configDimensions}D ({configModel}), but {shardInfo}.`,"auth-warning-text":`Cross-origin editing disabled. Set webServerAuthPassword to enable.`,"btn-pin":`Pin`,"btn-unpin":`Unpin`,"btn-clear":`Clear`,"label-search":`Search`,"nav-prev-page":`Previous page`,"nav-next-page":`Next page`,"tab-skills":`Skills`,"tab-markdown":`Markdown`,"markdown-disabled":`Markdown backend is off. Set memoryBackend to "markdown" and markdownPath in config.`,"markdown-vault-path":`Vault path`,"markdown-file-count":`{count} files`,"markdown-watcher-on":`Watcher on`,"markdown-watcher-off":`Watcher off`,"markdown-last-sync":`Last sync: {date}`,"markdown-reindex":`Reindex`,"markdown-reindex-ok":`Vault reindexed`,"markdown-reindex-fail":`Reindex failed`,"markdown-empty":`No Markdown files in the vault yet.`,"markdown-search-empty":`No vault files match your search.`,"markdown-open-fail":`Could not open vault file`,"placeholder-search-markdown":`Search vault files…`,"btn-add-markdown":`Add memory`,"section-skills":`Skills ({count})`,"btn-add-skill":`Add Skill`,"btn-new-skill":`New Skill`,"modal-skill-create-title":`Create Skill`,"modal-skill-edit-title":`Edit Skill`,"label-skill-name":`Name`,"label-skill-description":`Description`,"label-skill-content":`Instructions (Markdown)`,"label-skill-autoinvoke":`Auto-invoke`,"label-skill-enabled":`Enabled`,"placeholder-skill-name":`Git Release`,"placeholder-skill-description":`When to use this skill…`,"placeholder-skill-content":`## What I do
5
-
6
- - …`,"skill-edit":`Edit`,"skill-preview":`Preview`,"skill-empty":`No skills found`,"skill-disabled":`Disabled`,"confirm-delete-skill":`Delete skill “{name}”?`,"toast-skill-save-success":`Skill saved`,"toast-skill-save-failed":`Failed to save skill`,"toast-skill-delete-success":`Skill deleted`,"toast-skill-delete-failed":`Failed to delete skill`,"toast-skill-load-failed":`Failed to load skills`},de:{"tab-stats":`Statistiken`,"stats-overview":`Übersicht`,"stats-total-memories":`Erinnerungen insgesamt`,"stats-active-shards":`Aktive Shards`,"stats-scope-user":`Benutzer`,"stats-scope-project":`Projekt`,"stats-last-analyzed":`Zuletzt analysiert`,"stats-no-profile":`Noch kein Profil`,"stats-generated":`Zuletzt erstellt`,"stats-snapshot-note":`Aktualisieren, um den neuesten Stand abzurufen.`,"stats-loading":`Statistiken werden geladen…`,"stats-load-failed":`Statistiken konnten nicht geladen werden. Bitte aktualisieren.`,"stats-stale":`Der letzte erfolgreich geladene Stand wird angezeigt.`,"stats-unavailable":`Daten nicht verfügbar`,"stats-daily":`Tägliche Aktivität · letzte 14 Tage`,"stats-no-activity":`Noch keine tägliche Aktivität erfasst.`,"stats-date":`Datum`,"stats-captures":`Erfassungen`,"stats-skipped":`Übersprungene Erfassungen`,"stats-profile-injections":`Profileinfügungen`,"stats-compaction-injections":`Einfügungen bei Komprimierung`,"stats-errors":`Fehler`,"stats-no-errors":`Keine Fehler`,"stats-shards":`Speicher-Shards`,"stats-no-shards":`Noch keine Speicher-Shards vorhanden.`,"stats-scope":`Bereich / Hash`,"stats-file":`Datei`,"stats-index":`Index`,"stats-status":`Status`,"stats-memory-vectors":`Erinnerungen / registrierte Vektoren`,"stats-memory-dates":`Erinnerungsdaten`,"stats-duplicate-tags":`Doppelte Tags`,"stats-file-present":`Datei vorhanden`,"stats-file-missing":`Datei fehlt`,"stats-active":`Aktiv`,"stats-inactive":`Inaktiv`,"stats-count-mismatch":`Anzahlen weichen ab`,"stats-oldest":`Älteste`,"stats-newest":`Neueste`,title:`OpenCode Memory Explorer`,brand:`opencode-mem`,"tab-project":`Projekt-Memories`,"tab-profile":`Benutzerprofil`,"nav-menu":`Menü`,"nav-close":`Menü schließen`,"nav-collapse":`Seitenleiste einklappen`,"nav-expand":`Seitenleiste ausklappen`,"nav-language":`Sprache`,"nav-theme":`Design`,"theme-dark":`Dunkel`,"theme-light":`Hell`,"label-tag":`Tag`,"label-type":`Typ`,"label-tags":`Tags`,"label-content":`Inhalt`,"btn-cleanup":`Aufräumen`,"btn-deduplicate":`Duplikate entfernen`,"btn-trash":`Papierkorb`,"btn-restore":`Wiederherstellen`,"btn-dreaming":`Dreaming`,"modal-trash-title":`Memory-Papierkorb`,"loading-trash":`Papierkorb wird geladen…`,"empty-trash":`Papierkorb ist leer`,"trash-merged-into":`Zusammengeführt in {id}`,"trash-superseded-by":`Ersetzt durch {id}`,"toast-trash-load-failed":`Papierkorb konnte nicht geladen werden`,"toast-restore-success":`Memory wiederhergestellt`,"toast-restore-failed":`Wiederherstellen fehlgeschlagen`,"toast-dreaming-success":`Dreaming abgeschlossen`,"toast-dreaming-failed":`Dreaming fehlgeschlagen`,"toast-dreaming-already-running":`Dreaming läuft bereits`,"toast-dreaming-partial":`Dreaming beendet: {failed} von {considered} Gruppen fehlgeschlagen`,"confirm-dreaming-title":`Dreaming starten`,"confirm-dreaming":`Nahe Duplikate per LLM zusammenführen? Ersetzte Einträge landen im Papierkorb.`,"status-dreaming":`Dreaming läuft…`,"btn-filter":`Filter`,"btn-filter-clear":`Auswahl aufheben`,"btn-delete-selected":`Auswahl löschen`,"btn-select-all":`Seite auswählen`,"btn-deselect-all":`Auswahl aufheben`,"btn-add-memory":`Memory hinzufügen`,"section-project":`Projekt-Memories ({count})`,"section-profile":`Benutzerprofil`,"section-add":`Neues Memory hinzufügen`,"opt-all-tags":`Alle Tags`,"opt-select-tag":`Tag auswählen`,"opt-other":`sonstiges (other)`,"opt-feature":`Feature (feature)`,"opt-bug-fix":`Bugfix (bug-fix)`,"opt-refactor":`Refactoring (refactor)`,"opt-architecture":`Architektur (architecture)`,"opt-rule":`Regel (rule)`,"opt-documentation":`Dokumentation (documentation)`,"opt-discussion":`Diskussion (discussion)`,"opt-analysis":`Analyse (analysis)`,"opt-configuration":`Konfiguration (configuration)`,"modal-edit-title":`Memory bearbeiten`,"modal-migration-title":`Memory-Tag-Migration`,"modal-changelog-title":`Profil-Versionsverlauf`,"btn-cancel":`Abbrechen`,"btn-save":`Änderungen speichern`,"btn-start-migration":`Migration starten`,"loading-init":`Wird initialisiert…`,"loading-profile":`Profil wird geladen…`,"loading-changelog":`Changelog wird geladen…`,"migration-mismatch":`Abweichende Modelldimensionen erkannt!`,"migration-understand":`Ich verstehe, dass dieser Vorgang nicht rückgängig gemacht werden kann und alle gespeicherten Memories betrifft`,"btn-fresh-start":`Neustart (Alles löschen)`,"btn-reembed":`Neu einbetten (Daten behalten)`,"migration-note":`Bitte den Browser nicht schließen. Deine Memories werden mit technischen Tags neu vektorisiert, um die Suchgenauigkeit zu verbessern.`,"placeholder-filter":`Filtern…`,"placeholder-search":`Memories suchen…`,"placeholder-search-skills":`Skills suchen…`,"placeholder-tags":`react, hooks, auth (kommagetrennt)`,"placeholder-new-tag":`Neuer Tag…`,"btn-add-tag":`Tag hinzufügen`,"placeholder-content":`Memory-Inhalt eingeben…`,"toast-add-success":`Memory erfolgreich hinzugefügt`,"toast-add-error":`Inhalt und Tag sind erforderlich`,"toast-add-failed":`Memory konnte nicht hinzugefügt werden`,"toast-delete-success":`Memory erfolgreich gelöscht`,"toast-delete-failed":`Memory konnte nicht gelöscht werden`,"toast-update-success":`Memory erfolgreich aktualisiert`,"toast-update-failed":`Memory konnte nicht aktualisiert werden`,"toast-cleanup-success":`Aufräumen erfolgreich abgeschlossen`,"toast-cleanup-failed":`Aufräumen fehlgeschlagen`,"toast-dedup-success":`Duplikatentfernung erfolgreich abgeschlossen`,"toast-dedup-failed":`Duplikatentfernung fehlgeschlagen`,"toast-bulk-delete-success":`Ausgewählte Memories erfolgreich gelöscht`,"toast-bulk-delete-failed":`Ausgewählte Memories konnten nicht gelöscht werden`,"toast-migration-success":`Migration erfolgreich abgeschlossen`,"toast-migration-failed":`Migration fehlgeschlagen`,"toast-migration-tag-failures":`Migration fehlgeschlagen: {count} Fehler bei der Tag-Generierung`,"toast-fresh-start-success":`Neustart erfolgreich abgeschlossen`,"toast-fresh-start-failed":`Neustart fehlgeschlagen`,"confirm-delete":`Dieses Memory löschen?`,"confirm-delete-title":`Löschen bestätigen`,"confirm-delete-pair":`Dieses Memory UND den verknüpften Prompt löschen?`,"confirm-delete-prompt":`Diesen Prompt UND das verknüpfte Memory löschen?`,"confirm-bulk-delete":`{count} ausgewählte Memories löschen?`,"confirm-bulk-delete-title":`Auswahl löschen`,"confirm-cleanup":`Damit werden alle Memories entfernt, die nicht mehr relevant sind. Fortfahren?`,"confirm-cleanup-title":`Memories aufräumen`,"confirm-dedup":`Damit werden doppelte oder sehr ähnliche Memories zusammengeführt. Fortfahren?`,"confirm-dedup-title":`Duplikate entfernen`,"confirm-migration-title":`Migration bestätigen`,"confirm-migration":`{strategy} ausführen?
7
-
8
- Dieser Vorgang ist nicht rückgängig zu machen.`,"text-selected":`{count} ausgewählt`,"text-page":`Seite {current} von {total}`,"text-total":`Gesamt: {count}`,"empty-memories":`Keine Memories gefunden`,"empty-changelog":`Kein Changelog verfügbar`,"status-cleanup":`Aufräumen läuft…`,"status-dedup":`Duplikatentfernung läuft…`,"status-migration-init":`Migration wird initialisiert…`,"status-migration-progress":`Migration… {current}/{total}`,"profile-version":`Version`,"profile-prompts":`Prompts`,"profile-updated":`Zuletzt aktualisiert`,"profile-meta":`{count} Prompts · {date}`,"profile-preferences":`Präferenzen`,"profile-type-pref":`Präf`,"profile-type-pat":`Muster`,"profile-type-wf":`Ablauf`,"profile-patterns":`Muster`,"profile-workflows":`Workflows`,"label-evidence-tooltip":`KI-Analyse traf {count}-mal zu`,"badge-prompt":`Benutzer-Prompt`,"badge-memory":`Memory`,"badge-pinned":`Angepinnt`,"section-all":`Alle`,"badge-linked":`Verknüpft`,"date-created":`Erstellt:`,"date-updated":`Aktualisiert:`,"empty-preferences":`Noch keine Präferenzen gelernt`,"empty-patterns":`Noch keine Muster erkannt`,"empty-workflows":`Noch keine Workflows identifiziert`,"btn-delete-pair":`Paar löschen`,"btn-edit":`Bearbeiten`,"btn-delete":`Löschen`,"label-category":`Kategorie`,"label-description":`Beschreibung`,"label-steps":`Schritte`,"btn-add-step":`+ Schritt hinzufügen`,"text-generated-above":`Generiertes Memory oben`,"text-from-below":`Aus Prompt unten`,"btn-refresh":`Aktualisieren`,"btn-ai-cleanup":`KI-Aufräumen`,"label-ai-cleanup-title":`KI-Profil-Aufräumen`,"label-ai-cleanup-loading":`KI analysiert das Profil…`,"label-ai-cleanup-merged":`Zusammengeführt`,"label-ai-cleanup-removed":`Entfernt`,"label-ai-cleanup-kept":`Verbleibend`,"label-ai-cleanup-none":`Keine`,"label-ai-cleanup-select-all":`Alle auswählen`,"label-ai-cleanup-deselect-all":`Auswahl aufheben`,"label-ai-cleanup-apply":`Änderungen übernehmen`,"label-ai-cleanup-merge-check":`Zusammenführen`,"label-ai-cleanup-remove-check":`Entfernen`,"label-ai-cleanup-changes-selected":`{selected}/{total} Änderungen ausgewählt`,"label-ai-cleanup-merged-header":`Zusammengeführt ({count} Gruppen)`,"label-ai-cleanup-removed-header":`Entfernt ({count} Einträge)`,"btn-apply":`Übernehmen`,"toast-ai-cleanup-success":`Profil-Aufräumen abgeschlossen`,"toast-ai-cleanup-failed":`KI-Aufräumen fehlgeschlagen`,"toast-cleanup-apply-failed":`Aufräumen konnte nicht übernommen werden`,"label-ai-cleanup-select":`Einträge für die Aufräum-Analyse auswählen`,"label-ai-cleanup-select-low":`Niedrige Häufigkeit (≤3)`,"label-ai-cleanup-select-same-cat":`Paare derselben Kategorie`,"label-ai-cleanup-analyze":`Auswahl analysieren`,"label-ai-cleanup-selected":`{count} ausgewählt`,"migration-found-tags":`{count} Memories benötigen technische Tags.`,"migration-stopped":`Migration gestoppt: Maximale Anzahl Versuche erreicht`,"migration-shards-mismatch":`{count} Shard(s) haben unterschiedliche Dimensionen`,"migration-dimension-mismatch":`Dimensionsabweichung erkannt`,"migration-mismatch-details":`Modellabweichung: Konfiguration nutzt {configDimensions}D ({configModel}), aber {shardInfo}.`,"auth-warning-text":`Cross-Origin-Bearbeitung deaktiviert. Setze webServerAuthPassword zum Aktivieren.`,"btn-pin":`Anheften`,"btn-unpin":`Loslösen`,"btn-clear":`Leeren`,"label-search":`Suchen`,"nav-prev-page":`Vorherige Seite`,"nav-next-page":`Nächste Seite`,"tab-skills":`Skills`,"tab-markdown":`Markdown`,"markdown-disabled":`Markdown-Backend ist aus. Setze memoryBackend auf "markdown" und markdownPath in der Config.`,"markdown-vault-path":`Vault-Pfad`,"markdown-file-count":`{count} Dateien`,"markdown-watcher-on":`Watcher an`,"markdown-watcher-off":`Watcher aus`,"markdown-last-sync":`Letzter Sync: {date}`,"markdown-reindex":`Neu indexieren`,"markdown-reindex-ok":`Vault neu indexiert`,"markdown-reindex-fail":`Reindex fehlgeschlagen`,"markdown-empty":`Noch keine Markdown-Dateien im Vault.`,"markdown-search-empty":`Keine Vault-Dateien passen zur Suche.`,"markdown-open-fail":`Vault-Datei konnte nicht geöffnet werden`,"placeholder-search-markdown":`Vault-Dateien suchen…`,"btn-add-markdown":`Memory hinzufügen`,"section-skills":`Skills ({count})`,"btn-add-skill":`Skill hinzufügen`,"btn-new-skill":`Neuer Skill`,"modal-skill-create-title":`Skill erstellen`,"modal-skill-edit-title":`Skill bearbeiten`,"label-skill-name":`Name`,"label-skill-description":`Beschreibung`,"label-skill-content":`Anweisungen (Markdown)`,"label-skill-autoinvoke":`Auto-Invoke`,"label-skill-enabled":`Aktiv`,"placeholder-skill-name":`Git Release`,"placeholder-skill-description":`Wann dieser Skill genutzt werden soll…`,"placeholder-skill-content":`## Was ich tue
9
-
10
- - …`,"skill-edit":`Bearbeiten`,"skill-preview":`Vorschau`,"skill-empty":`Keine Skills gefunden`,"skill-disabled":`Deaktiviert`,"confirm-delete-skill":`Skill „{name}“ löschen?`,"toast-skill-save-success":`Skill gespeichert`,"toast-skill-save-failed":`Skill konnte nicht gespeichert werden`,"toast-skill-delete-success":`Skill gelöscht`,"toast-skill-delete-failed":`Skill konnte nicht gelöscht werden`,"toast-skill-load-failed":`Skills konnten nicht geladen werden`},zh:{"tab-stats":`统计`,"stats-overview":`概览`,"stats-total-memories":`记忆总数`,"stats-active-shards":`活跃分片`,"stats-scope-user":`用户`,"stats-scope-project":`项目`,"stats-last-analyzed":`上次分析`,"stats-no-profile":`暂无用户画像`,"stats-generated":`上次生成`,"stats-snapshot-note":`刷新以获取最新数据。`,"stats-loading":`正在加载统计数据…`,"stats-load-failed":`无法加载统计数据,请尝试刷新。`,"stats-stale":`当前显示上次成功获取的数据。`,"stats-unavailable":`数据不可用`,"stats-daily":`每日活动 · 最近 14 天`,"stats-no-activity":`暂无每日活动记录。`,"stats-date":`日期`,"stats-captures":`捕获次数`,"stats-skipped":`跳过捕获`,"stats-profile-injections":`画像注入`,"stats-compaction-injections":`上下文压缩注入`,"stats-errors":`错误`,"stats-no-errors":`无错误`,"stats-shards":`存储分片`,"stats-no-shards":`暂无存储分片。`,"stats-scope":`范围 / 哈希`,"stats-file":`文件`,"stats-index":`索引`,"stats-status":`状态`,"stats-memory-vectors":`记忆数 / 已注册向量数`,"stats-memory-dates":`记忆日期`,"stats-duplicate-tags":`重复标签`,"stats-file-present":`文件存在`,"stats-file-missing":`文件缺失`,"stats-active":`活跃`,"stats-inactive":`非活跃`,"stats-count-mismatch":`数量不一致`,"stats-oldest":`最早`,"stats-newest":`最新`,title:`OpenCode Memory Explorer`,brand:`opencode-mem`,"tab-project":`项目记忆`,"tab-profile":`用户画像`,"nav-menu":`菜单`,"nav-close":`关闭菜单`,"nav-collapse":`收起侧边栏`,"nav-expand":`展开侧边栏`,"nav-language":`语言`,"nav-theme":`主题`,"theme-dark":`深色`,"theme-light":`浅色`,"label-tag":`标签`,"label-type":`类型`,"label-tags":`标签`,"label-content":`内容`,"btn-cleanup":`清理`,"btn-deduplicate":`去重`,"btn-trash":`回收站`,"btn-restore":`恢复`,"btn-dreaming":`Dreaming`,"modal-trash-title":`记忆回收站`,"loading-trash":`正在加载回收站…`,"empty-trash":`回收站为空`,"trash-merged-into":`已合并到 {id}`,"trash-superseded-by":`已被 {id} 取代`,"toast-trash-load-failed":`加载回收站失败`,"toast-restore-success":`记忆已恢复`,"toast-restore-failed":`恢复记忆失败`,"toast-dreaming-success":`Dreaming 完成`,"toast-dreaming-failed":`Dreaming 失败`,"toast-dreaming-already-running":`Dreaming 已在运行`,"toast-dreaming-partial":`Dreaming 完成,{failed}/{considered} 组失败`,"confirm-dreaming-title":`运行 Dreaming`,"confirm-dreaming":`用已配置的 LLM 合并近似重复记忆?被替换的条目会进入回收站。`,"status-dreaming":`正在运行 Dreaming…`,"btn-filter":`筛选`,"btn-filter-clear":`清除选择`,"btn-delete-selected":`删除选中`,"btn-select-all":`全选当前页`,"btn-deselect-all":`取消全选`,"btn-add-memory":`添加记忆`,"section-project":`项目记忆 ({count})`,"section-profile":`用户画像`,"section-add":`添加新记忆`,"opt-all-tags":`所有标签`,"opt-select-tag":`选择标签`,"opt-other":`其他 (other)`,"opt-feature":`功能 (feature)`,"opt-bug-fix":`修复 (bug-fix)`,"opt-refactor":`重构 (refactor)`,"opt-architecture":`架构 (architecture)`,"opt-rule":`规则 (rule)`,"opt-documentation":`文档 (documentation)`,"opt-discussion":`讨论 (discussion)`,"opt-analysis":`分析 (analysis)`,"opt-configuration":`配置 (configuration)`,"modal-edit-title":`编辑记忆`,"modal-migration-title":`记忆标签迁移`,"modal-changelog-title":`画像版本历史`,"btn-cancel":`取消`,"btn-save":`保存更改`,"btn-start-migration":`开始迁移`,"loading-init":`初始化中...`,"loading-profile":`加载画像中...`,"loading-changelog":`加载更新日志中...`,"migration-mismatch":`检测到模型维度不匹配!`,"migration-understand":`我了解此操作不可逆,并将影响所有存储的记忆`,"btn-fresh-start":`重新开始 (删除所有)`,"btn-reembed":`重新向量化 (保留数据)`,"migration-note":`请不要关闭浏览器。这将使用技术标签重新向量化您的记忆,以提高搜索准确性。`,"placeholder-filter":`筛选…`,"placeholder-search":`搜索记忆...`,"placeholder-search-skills":`搜索技能…`,"placeholder-tags":`react, hooks, auth (逗号分隔)`,"placeholder-new-tag":`新标签…`,"btn-add-tag":`添加标签`,"placeholder-content":`输入记忆内容...`,"toast-add-success":`记忆添加成功`,"toast-add-error":`内容和标签为必填项`,"toast-add-failed":`添加记忆失败`,"toast-delete-success":`记忆删除成功`,"toast-delete-failed":`删除记忆失败`,"toast-update-success":`记忆更新成功`,"toast-update-failed":`更新记忆失败`,"toast-cleanup-success":`清理完成`,"toast-cleanup-failed":`清理失败`,"toast-dedup-success":`去重完成`,"toast-dedup-failed":`去重失败`,"toast-bulk-delete-success":`选中的记忆删除成功`,"toast-bulk-delete-failed":`删除选中的记忆失败`,"toast-migration-success":`迁移完成`,"toast-migration-failed":`迁移失败`,"toast-migration-tag-failures":`迁移失败:{count} 条记忆标签生成失败`,"toast-fresh-start-success":`重新开始完成`,"toast-fresh-start-failed":`重新开始失败`,"confirm-delete":`删除这条记忆?`,"confirm-delete-title":`确认删除`,"confirm-delete-pair":`删除这条记忆及其关联的提示词?`,"confirm-delete-prompt":`删除这条提示词及其关联的记忆?`,"confirm-bulk-delete":`删除选中的 {count} 条记忆?`,"confirm-bulk-delete-title":`删除选中`,"confirm-cleanup":`这将删除所有不再相关的记忆。是否继续?`,"confirm-cleanup-title":`清理记忆`,"confirm-dedup":`这将合并重复或高度相似的记忆。是否继续?`,"confirm-dedup-title":`去重记忆`,"confirm-migration-title":`确认迁移`,"confirm-migration":`执行 {strategy}?
11
-
12
- 此操作不可逆。`,"text-selected":`已选择 {count} 条`,"text-page":`第 {current} 页,共 {total} 页`,"text-total":`总计: {count}`,"empty-memories":`未找到记忆`,"empty-changelog":`暂无更新日志`,"status-cleanup":`正在运行清理...`,"status-dedup":`正在运行去重...`,"status-migration-init":`正在初始化迁移...`,"status-migration-progress":`迁移中... {current}/{total}`,"profile-version":`版本`,"profile-prompts":`提示词数`,"profile-updated":`最后更新`,"profile-meta":`{count} 条提示 · {date}`,"profile-preferences":`偏好设置`,"profile-type-pref":`偏好`,"profile-type-pat":`模式`,"profile-type-wf":`流程`,"profile-patterns":`行为模式`,"profile-workflows":`工作流程`,"label-evidence-tooltip":`AI 分析命中 {count} 次`,"badge-prompt":`用户提示词`,"badge-memory":`记忆`,"badge-pinned":`已置顶`,"section-all":`全部`,"badge-linked":`已关联`,"date-created":`创建于:`,"date-updated":`更新于:`,"empty-preferences":`尚未学习到偏好设置`,"empty-patterns":`尚未检测到行为模式`,"empty-workflows":`尚未识别出工作流程`,"btn-delete-pair":`删除组合`,"btn-edit":`编辑`,"btn-delete":`删除`,"label-category":`类别`,"label-description":`描述`,"label-steps":`步骤`,"btn-add-step":`+ 添加步骤`,"text-generated-above":`由上方记忆生成`,"text-from-below":`来自下方提示词`,"btn-refresh":`刷新`,"btn-ai-cleanup":`AI 清理`,"label-ai-cleanup-title":`AI 画像清理`,"label-ai-cleanup-loading":`AI 正在分析画像...`,"label-ai-cleanup-merged":`合并项`,"label-ai-cleanup-removed":`删除项`,"label-ai-cleanup-kept":`保留`,"label-ai-cleanup-none":`无`,"label-ai-cleanup-select-all":`全选`,"label-ai-cleanup-deselect-all":`清空`,"label-ai-cleanup-apply":`应用变更`,"label-ai-cleanup-merge-check":`合并`,"label-ai-cleanup-remove-check":`删除`,"label-ai-cleanup-changes-selected":`已选 {selected}/{total} 项`,"label-ai-cleanup-merged-header":`合并 ({count} 组)`,"label-ai-cleanup-removed-header":`删除 ({count} 项)`,"btn-apply":`确认替换`,"toast-ai-cleanup-success":`画像清理完成`,"toast-ai-cleanup-failed":`AI 清理失败`,"toast-cleanup-apply-failed":`应用清理失败`,"label-ai-cleanup-select":`选择需要清理分析的条目`,"label-ai-cleanup-select-low":`低频 (≤3)`,"label-ai-cleanup-select-same-cat":`同分类多条目`,"label-ai-cleanup-analyze":`分析选中项`,"label-ai-cleanup-selected":`已选 {count} 项`,"migration-found-tags":`发现 {count} 条需要技术标签的记忆。`,"migration-stopped":`迁移已停止:达到最大尝试次数`,"migration-shards-mismatch":`{count} 个分片具有不同的维度`,"migration-dimension-mismatch":`检测到维度不匹配`,"migration-mismatch-details":`模型不匹配:配置使用 {configDimensions}D ({configModel}),但{shardInfo}。`,"auth-warning-text":`跨源编辑已禁用. 设置 webServerAuthPassword 即可启用.`,"btn-pin":`置顶`,"btn-unpin":`取消置顶`,"btn-clear":`清除`,"label-search":`搜索`,"nav-prev-page":`上一页`,"nav-next-page":`下一页`,"tab-skills":`技能`,"tab-markdown":`Markdown`,"markdown-disabled":`Markdown 后端未启用。请在配置中设置 memoryBackend 为 "markdown" 并指定 markdownPath。`,"markdown-vault-path":`仓库路径`,"markdown-file-count":`{count} 个文件`,"markdown-watcher-on":`监视已开启`,"markdown-watcher-off":`监视已关闭`,"markdown-last-sync":`上次同步:{date}`,"markdown-reindex":`重新索引`,"markdown-reindex-ok":`仓库已重新索引`,"markdown-reindex-fail":`重新索引失败`,"markdown-empty":`仓库中尚无 Markdown 文件。`,"markdown-search-empty":`没有匹配的仓库文件。`,"markdown-open-fail":`无法打开仓库文件`,"placeholder-search-markdown":`搜索仓库文件…`,"btn-add-markdown":`添加记忆`,"section-skills":`技能 ({count})`,"btn-add-skill":`添加技能`,"btn-new-skill":`新建技能`,"modal-skill-create-title":`创建技能`,"modal-skill-edit-title":`编辑技能`,"label-skill-name":`名称`,"label-skill-description":`描述`,"label-skill-content":`说明(Markdown)`,"label-skill-autoinvoke":`自动调用`,"label-skill-enabled":`启用`,"placeholder-skill-name":`Git Release`,"placeholder-skill-description":`何时使用此技能…`,"placeholder-skill-content":`## 我做什么
13
-
14
- - …`,"skill-edit":`编辑`,"skill-preview":`预览`,"skill-empty":`未找到技能`,"skill-disabled":`已禁用`,"confirm-delete-skill":`删除技能“{name}”?`,"toast-skill-save-success":`技能已保存`,"toast-skill-save-failed":`保存技能失败`,"toast-skill-delete-success":`技能已删除`,"toast-skill-delete-failed":`删除技能失败`,"toast-skill-load-failed":`加载技能失败`},ar:{"tab-stats":`الإحصائيات`,"stats-overview":`نظرة عامة`,"stats-total-memories":`إجمالي الذكريات`,"stats-active-shards":`أجزاء التخزين النشطة`,"stats-scope-user":`المستخدم`,"stats-scope-project":`المشروع`,"stats-last-analyzed":`آخر تحليل`,"stats-no-profile":`لا يوجد ملف شخصي بعد`,"stats-generated":`آخر إنشاء للإحصائيات`,"stats-snapshot-note":`حدّث للحصول على أحدث البيانات.`,"stats-loading":`جارٍ تحميل الإحصائيات…`,"stats-load-failed":`تعذر تحميل الإحصائيات. حاول التحديث.`,"stats-stale":`تُعرض آخر بيانات تم تحميلها بنجاح.`,"stats-unavailable":`البيانات غير متاحة`,"stats-daily":`النشاط اليومي · آخر 14 يومًا`,"stats-no-activity":`لم يُسجَّل أي نشاط يومي بعد.`,"stats-date":`التاريخ`,"stats-captures":`عمليات الالتقاط`,"stats-skipped":`عمليات الالتقاط المتخطاة`,"stats-profile-injections":`إدراجات الملف الشخصي`,"stats-compaction-injections":`إدراجات ضغط السياق`,"stats-errors":`الأخطاء`,"stats-no-errors":`لا توجد أخطاء`,"stats-shards":`أجزاء التخزين`,"stats-no-shards":`لا توجد أجزاء تخزين بعد.`,"stats-scope":`النطاق / البصمة`,"stats-file":`الملف`,"stats-index":`الفهرس`,"stats-status":`الحالة`,"stats-memory-vectors":`الذكريات / المتجهات المسجلة`,"stats-memory-dates":`تواريخ الذكريات`,"stats-duplicate-tags":`الوسوم المكررة`,"stats-file-present":`الملف موجود`,"stats-file-missing":`الملف مفقود`,"stats-active":`نشط`,"stats-inactive":`غير نشط`,"stats-count-mismatch":`الأعداد غير متطابقة`,"stats-oldest":`الأقدم`,"stats-newest":`الأحدث`,title:`مستكشف ذاكرة OpenCode`,brand:`opencode-mem`,"tab-project":`ذكريات المشروع`,"tab-profile":`ملف المستخدم`,"nav-menu":`القائمة`,"nav-close":`إغلاق القائمة`,"nav-collapse":`طي الشريط الجانبي`,"nav-expand":`توسيع الشريط الجانبي`,"nav-language":`اللغة`,"nav-theme":`المظهر`,"theme-dark":`داكن`,"theme-light":`فاتح`,"label-tag":`الوسم`,"label-type":`النوع`,"label-tags":`الوسوم`,"label-content":`المحتوى`,"btn-cleanup":`تنظيف`,"btn-deduplicate":`إزالة التكرار`,"btn-trash":`المهملات`,"btn-restore":`استعادة`,"btn-dreaming":`Dreaming`,"modal-trash-title":`مهملات الذاكرة`,"loading-trash":`جارٍ تحميل المهملات…`,"empty-trash":`المهملات فارغة`,"trash-merged-into":`دُمج في {id}`,"trash-superseded-by":`استُبدل بـ {id}`,"toast-trash-load-failed":`فشل تحميل المهملات`,"toast-restore-success":`تمت استعادة الذاكرة`,"toast-restore-failed":`فشلت استعادة الذاكرة`,"toast-dreaming-success":`اكتمل Dreaming`,"toast-dreaming-failed":`فشل Dreaming`,"toast-dreaming-already-running":`Dreaming قيد التشغيل بالفعل`,"toast-dreaming-partial":`انتهى Dreaming مع فشل {failed} من {considered} مجموعات`,"confirm-dreaming-title":`تشغيل Dreaming`,"confirm-dreaming":`دمج الذكريات شبه المكررة عبر النموذج المضبوط؟ تنتقل الصفوف المستبدلة إلى المهملات.`,"status-dreaming":`جارٍ تشغيل Dreaming…`,"btn-filter":`تصفية`,"btn-filter-clear":`مسح التحديد`,"btn-delete-selected":`حذف المحدد`,"btn-select-all":`تحديد الصفحة`,"btn-deselect-all":`إلغاء التحديد`,"btn-add-memory":`إضافة ذكرى`,"section-project":`ذكريات المشروع ({count})`,"section-profile":`ملف المستخدم`,"section-add":`إضافة ذكرى جديدة`,"opt-all-tags":`جميع الوسوم`,"opt-select-tag":`اختر وسمًا`,"opt-other":`أخرى`,"opt-feature":`ميزة`,"opt-bug-fix":`إصلاح خطأ`,"opt-refactor":`إعادة هيكلة`,"opt-architecture":`معمارية`,"opt-rule":`قاعدة`,"opt-documentation":`توثيق`,"opt-discussion":`نقاش`,"opt-analysis":`تحليل`,"opt-configuration":`إعدادات`,"modal-edit-title":`تعديل الذكرى`,"modal-migration-title":`ترحيل وسوم الذكريات`,"modal-changelog-title":`سجل إصدارات الملف الشخصي`,"btn-cancel":`إلغاء`,"btn-save":`حفظ التغييرات`,"btn-start-migration":`بدء الترحيل`,"loading-init":`جاري التهيئة...`,"loading-profile":`جاري تحميل الملف الشخصي...`,"loading-changelog":`جاري تحميل السجل...`,"migration-mismatch":`تم اكتشاف عدم تطابق في أبعاد النموذج!`,"migration-understand":`أفهم أن هذه العملية غير قابلة للتراجع وستؤثر على جميع الذكريات المخزنة`,"btn-fresh-start":`بداية جديدة (حذف الكل)`,"btn-reembed":`إعادة إنشاء المتجهات (مع الاحتفاظ بالبيانات)`,"migration-note":`يرجى عدم إغلاق المتصفح. سيتم إعادة فهرسة الذكريات باستخدام وسوم تقنية لتحسين دقة البحث.`,"placeholder-filter":`تصفية…`,"placeholder-search":`ابحث في الذكريات...`,"placeholder-search-skills":`ابحث في المهارات…`,"placeholder-tags":`react, hooks, auth (مفصولة بفواصل)`,"placeholder-new-tag":`وسم جديد…`,"btn-add-tag":`إضافة وسم`,"placeholder-content":`أدخل محتوى الذكرى...`,"toast-add-success":`تمت إضافة الذكرى بنجاح`,"toast-add-error":`المحتوى والوسم مطلوبان`,"toast-add-failed":`فشلت إضافة الذكرى`,"toast-delete-success":`تم حذف الذكرى بنجاح`,"toast-delete-failed":`فشل حذف الذكرى`,"toast-update-success":`تم تحديث الذكرى بنجاح`,"toast-update-failed":`فشل تحديث الذكرى`,"toast-cleanup-success":`اكتملت عملية التنظيف بنجاح`,"toast-cleanup-failed":`فشلت عملية التنظيف`,"toast-dedup-success":`اكتملت إزالة التكرار بنجاح`,"toast-dedup-failed":`فشلت إزالة التكرار`,"toast-bulk-delete-success":`تم حذف الذكريات المحددة بنجاح`,"toast-bulk-delete-failed":`فشل حذف الذكريات المحددة`,"toast-migration-success":`اكتملت عملية الترحيل بنجاح`,"toast-migration-failed":`فشلت عملية الترحيل`,"toast-migration-tag-failures":`فشلت عملية الترحيل: {count} من حالات فشل توليد الوسوم`,"toast-fresh-start-success":`تمت البداية الجديدة بنجاح`,"toast-fresh-start-failed":`فشلت البداية الجديدة`,"confirm-delete":`هل تريد حذف هذه الذكرى؟`,"confirm-delete-title":`تأكيد الحذف`,"confirm-delete-pair":`هل تريد حذف هذه الذكرى والموجه المرتبط بها؟`,"confirm-delete-prompt":`هل تريد حذف هذا الموجه والذكرى المرتبطة به؟`,"confirm-bulk-delete":`هل تريد حذف {count} من الذكريات المحددة؟`,"confirm-bulk-delete-title":`حذف المحدد`,"confirm-cleanup":`سيؤدي هذا إلى حذف جميع الذكريات التي لم تعد ذات صلة. هل تريد المتابعة؟`,"confirm-cleanup-title":`تنظيف الذكريات`,"confirm-dedup":`سيؤدي هذا إلى دمج الذكريات المتكررة أو المتشابهة جدًا. هل تريد المتابعة؟`,"confirm-dedup-title":`إزالة التكرار`,"confirm-migration-title":`تأكيد الترحيل`,"confirm-migration":`تشغيل {strategy}؟
15
-
16
- هذه العملية غير قابلة للتراجع.`,"text-selected":`تم تحديد {count}`,"text-page":`الصفحة {current} من {total}`,"text-total":`الإجمالي: {count}`,"empty-memories":`لم يتم العثور على ذكريات`,"empty-changelog":`لا يوجد سجل تغييرات`,"status-cleanup":`جاري التنظيف...`,"status-dedup":`جاري إزالة التكرار...`,"status-migration-init":`جاري تهيئة الترحيل...`,"status-migration-progress":`جاري الترحيل... {current}/{total}`,"profile-version":`الإصدار`,"profile-prompts":`الموجهات`,"profile-updated":`آخر تحديث`,"profile-meta":`{count} موجهات · {date}`,"profile-preferences":`التفضيلات`,"profile-type-pref":`تفضيل`,"profile-type-pat":`نمط`,"profile-type-wf":`سير`,"profile-patterns":`الأنماط`,"profile-workflows":`سير العمل`,"label-evidence-tooltip":`الذكاء الاصطناعي حدد هذا {count} مرات`,"badge-prompt":`موجه المستخدم`,"badge-memory":`ذكرى`,"badge-pinned":`مثبتة`,"section-all":`الكل`,"badge-linked":`مرتبطة`,"date-created":`تاريخ الإنشاء:`,"date-updated":`تاريخ التحديث:`,"empty-preferences":`لم يتم تعلم أي تفضيلات بعد`,"empty-patterns":`لم يتم اكتشاف أي أنماط بعد`,"empty-workflows":`لم يتم التعرف على أي سير عمل بعد`,"btn-delete-pair":`حذف الزوج`,"btn-edit":`تعديل`,"btn-delete":`حذف`,"label-category":`الفئة`,"label-description":`الوصف`,"label-steps":`الخطوات`,"btn-add-step":`+ أضف خطوة`,"text-generated-above":`تم إنشاء الذكرى أعلاه`,"text-from-below":`من الموجه أدناه`,"btn-refresh":`تحديث`,"btn-ai-cleanup":`تنظيف بالذكاء الاصطناعي`,"label-ai-cleanup-title":`تنظيف الملف الشخصي`,"label-ai-cleanup-loading":`الذكاء الاصطناعي يحلل الملف الشخصي...`,"label-ai-cleanup-merged":`مدموجة`,"label-ai-cleanup-removed":`محذوفة`,"label-ai-cleanup-kept":`متبقية`,"label-ai-cleanup-none":`لا يوجد`,"label-ai-cleanup-select-all":`تحديد الكل`,"label-ai-cleanup-deselect-all":`إلغاء الكل`,"label-ai-cleanup-apply":`تطبيق التغييرات`,"label-ai-cleanup-merge-check":`دمج`,"label-ai-cleanup-remove-check":`حذف`,"label-ai-cleanup-changes-selected":`تم تحديد {selected}/{total}`,"label-ai-cleanup-merged-header":`دمج ({count} مجموعة)`,"label-ai-cleanup-removed-header":`حذف ({count} عنصر)`,"btn-apply":`تأكيد الاستبدال`,"toast-ai-cleanup-success":`اكتمل تنظيف الملف الشخصي`,"toast-ai-cleanup-failed":`فشل تنظيف الملف الشخصي`,"toast-cleanup-apply-failed":`فشل تطبيق التنظيف`,"label-ai-cleanup-select":`حدد العناصر للتحليل`,"label-ai-cleanup-select-low":`تردد منخفض (≤3)`,"label-ai-cleanup-select-same-cat":`نفس الفئة`,"label-ai-cleanup-analyze":`تحليل المحدد`,"label-ai-cleanup-selected":`{count} محدد`,"migration-found-tags":`تم العثور على {count} من الذكريات التي تحتاج إلى وسوم تقنية.`,"migration-stopped":`تم إيقاف الترحيل: تم الوصول إلى الحد الأقصى للمحاولات`,"migration-shards-mismatch":`{count} من الأجزاء تحتوي على أبعاد مختلفة`,"migration-dimension-mismatch":`تم اكتشاف عدم تطابق في الأبعاد`,"migration-mismatch-details":`عدم تطابق النموذج: يستخدم الإعداد {configDimensions}D ({configModel}) بينما {shardInfo}.`,"auth-warning-text":`التحرير عبر المصادر معطّل. قم بتعيين webServerAuthPassword لتفعيله.`,"btn-pin":`تثبيت`,"btn-unpin":`إلغاء التثبيت`,"btn-clear":`مسح`,"label-search":`بحث`,"nav-prev-page":`الصفحة السابقة`,"nav-next-page":`الصفحة التالية`,"tab-skills":`المهارات`,"tab-markdown":`Markdown`,"markdown-disabled":`واجهة Markdown غير مفعّلة. عيّن memoryBackend إلى "markdown" وmarkdownPath في الإعدادات.`,"markdown-vault-path":`مسار الخزنة`,"markdown-file-count":`{count} ملفات`,"markdown-watcher-on":`المراقبة تعمل`,"markdown-watcher-off":`المراقبة متوقفة`,"markdown-last-sync":`آخر مزامنة: {date}`,"markdown-reindex":`إعادة الفهرسة`,"markdown-reindex-ok":`تمت إعادة فهرسة الخزنة`,"markdown-reindex-fail":`فشلت إعادة الفهرسة`,"markdown-empty":`لا توجد ملفات Markdown في الخزنة بعد.`,"markdown-search-empty":`لا توجد ملفات خزنة مطابقة للبحث.`,"markdown-open-fail":`تعذر فتح ملف الخزنة`,"placeholder-search-markdown":`ابحث في ملفات الخزنة…`,"btn-add-markdown":`إضافة ذاكرة`,"section-skills":`المهارات ({count})`,"btn-add-skill":`إضافة مهارة`,"btn-new-skill":`مهارة جديدة`,"modal-skill-create-title":`إنشاء مهارة`,"modal-skill-edit-title":`تعديل مهارة`,"label-skill-name":`الاسم`,"label-skill-description":`الوصف`,"label-skill-content":`التعليمات (Markdown)`,"label-skill-autoinvoke":`استدعاء تلقائي`,"label-skill-enabled":`مفعّل`,"placeholder-skill-name":`Git Release`,"placeholder-skill-description":`متى تُستخدم هذه المهارة…`,"placeholder-skill-content":`## ماذا أفعل
17
-
18
- - …`,"skill-edit":`تعديل`,"skill-preview":`معاينة`,"skill-empty":`لا توجد مهارات`,"skill-disabled":`معطّل`,"confirm-delete-skill":`حذف المهارة “{name}”؟`,"toast-skill-save-success":`تم حفظ المهارة`,"toast-skill-save-failed":`فشل حفظ المهارة`,"toast-skill-delete-success":`تم حذف المهارة`,"toast-skill-delete-failed":`فشل حذف المهارة`,"toast-skill-load-failed":`فشل تحميل المهارات`},tr:{"tab-stats":`İstatistikler`,"stats-overview":`Genel bakış`,"stats-total-memories":`Toplam anı`,"stats-active-shards":`Etkin depolama parçaları`,"stats-scope-user":`Kullanıcı`,"stats-scope-project":`Proje`,"stats-last-analyzed":`Son analiz`,"stats-no-profile":`Henüz profil yok`,"stats-generated":`Son oluşturulma`,"stats-snapshot-note":`En güncel verileri almak için yenileyin.`,"stats-loading":`İstatistikler yükleniyor…`,"stats-load-failed":`İstatistikler yüklenemedi. Yenilemeyi deneyin.`,"stats-stale":`Son başarıyla alınan veriler gösteriliyor.`,"stats-unavailable":`Veriler kullanılamıyor`,"stats-daily":`Günlük etkinlik · son 14 gün`,"stats-no-activity":`Henüz günlük etkinlik kaydedilmedi.`,"stats-date":`Tarih`,"stats-captures":`Yakalamalar`,"stats-skipped":`Atlanan yakalamalar`,"stats-profile-injections":`Profil eklemeleri`,"stats-compaction-injections":`Bağlam sıkıştırma eklemeleri`,"stats-errors":`Hatalar`,"stats-no-errors":`Hata yok`,"stats-shards":`Depolama parçaları`,"stats-no-shards":`Henüz depolama parçası yok.`,"stats-scope":`Kapsam / karma`,"stats-file":`Dosya`,"stats-index":`Dizin`,"stats-status":`Durum`,"stats-memory-vectors":`Anılar / kayıtlı vektörler`,"stats-memory-dates":`Anı tarihleri`,"stats-duplicate-tags":`Yinelenen etiketler`,"stats-file-present":`Dosya mevcut`,"stats-file-missing":`Dosya eksik`,"stats-active":`Etkin`,"stats-inactive":`Etkin değil`,"stats-count-mismatch":`Sayılar farklı`,"stats-oldest":`En eski`,"stats-newest":`En yeni`,title:`OpenCode Hafıza Gezgini`,brand:`opencode-mem`,"tab-project":`Proje Hafızası`,"tab-profile":`Kullanıcı Profili`,"nav-menu":`Menü`,"nav-close":`Menüyü kapat`,"nav-collapse":`Kenar çubuğunu daralt`,"nav-expand":`Kenar çubuğunu genişlet`,"nav-language":`Dil`,"nav-theme":`Tema`,"theme-dark":`Koyu`,"theme-light":`Açık`,"label-tag":`Etiket`,"label-type":`Tür`,"label-tags":`Etiketler`,"label-content":`İçerik`,"btn-cleanup":`Temizle`,"btn-deduplicate":`Yinelenenleri kaldır`,"btn-trash":`Çöp kutusu`,"btn-restore":`Geri yükle`,"btn-dreaming":`Dreaming`,"modal-trash-title":`Bellek çöp kutusu`,"loading-trash":`Çöp kutusu yükleniyor…`,"empty-trash":`Çöp kutusu boş`,"trash-merged-into":`{id} ile birleştirildi`,"trash-superseded-by":`{id} tarafından geçersiz kılındı`,"toast-trash-load-failed":`Çöp kutusu yüklenemedi`,"toast-restore-success":`Bellek geri yüklendi`,"toast-restore-failed":`Bellek geri yüklenemedi`,"toast-dreaming-success":`Dreaming tamamlandı`,"toast-dreaming-failed":`Dreaming başarısız`,"toast-dreaming-already-running":`Dreaming zaten çalışıyor`,"toast-dreaming-partial":`Dreaming bitti: {failed}/{considered} grup başarısız`,"confirm-dreaming-title":`Dreaming çalıştır`,"confirm-dreaming":`Yapılandırılmış LLM ile yakın yinelenen bellekleri birleştir? Değiştirilen satırlar çöp kutusuna gider.`,"status-dreaming":`Dreaming çalışıyor…`,"btn-filter":`Filtre`,"btn-filter-clear":`Seçimi temizle`,"btn-delete-selected":`Seçilenleri sil`,"btn-select-all":`Sayfayı seç`,"btn-deselect-all":`Seçimi kaldır`,"btn-add-memory":`Hafıza ekle`,"section-project":`Proje hafızası ({count})`,"section-profile":`Kullanıcı profili`,"section-add":`Yeni hafıza ekle`,"opt-all-tags":`Tüm etiketler`,"opt-select-tag":`Etiket seç`,"opt-other":`diğer (other)`,"opt-feature":`özellik (feature)`,"opt-bug-fix":`hata düzeltme (bug-fix)`,"opt-refactor":`yeniden düzenleme (refactor)`,"opt-architecture":`mimari (architecture)`,"opt-rule":`kural (rule)`,"opt-documentation":`dokümantasyon (documentation)`,"opt-discussion":`tartışma (discussion)`,"opt-analysis":`analiz (analysis)`,"opt-configuration":`yapılandırma (configuration)`,"modal-edit-title":`Hafızayı düzenle`,"modal-migration-title":`Hafıza etiketleme geçişi`,"modal-changelog-title":`Profil sürüm geçmişi`,"btn-cancel":`İptal`,"btn-save":`Değişiklikleri kaydet`,"btn-start-migration":`Geçişi başlat`,"loading-init":`Başlatılıyor...`,"loading-profile":`Profil yükleniyor...`,"loading-changelog":`Değişiklik günlüğü yükleniyor...`,"migration-mismatch":`Model boyut uyumsuzluğu algılandı!`,"migration-understand":`Bu işlemin geri alınamaz olduğunu ve saklanan tüm hafızaları etkileyeceğini anlıyorum`,"btn-fresh-start":`Yeni başlangıç (tümünü sil)`,"btn-reembed":`Yeniden gömme (verileri koru)`,"migration-note":`Lütfen tarayıcıyı kapatmayın. Hafızalarınız arama doğruluğunu artırmak için teknik etiketlerle yeniden vektörlenecek.`,"placeholder-filter":`Filtrele…`,"placeholder-search":`Hafızalarda ara...`,"placeholder-search-skills":`Becerilerde ara…`,"placeholder-tags":`react, hooks, auth (virgülle ayrılmış)`,"placeholder-new-tag":`Yeni etiket…`,"btn-add-tag":`Etiket ekle`,"placeholder-content":`Hafıza içeriğini girin...`,"toast-add-success":`Hafıza başarıyla eklendi`,"toast-add-error":`İçerik ve etiket zorunludur`,"toast-add-failed":`Hafıza eklenemedi`,"toast-delete-success":`Hafıza başarıyla silindi`,"toast-delete-failed":`Hafıza silinemedi`,"toast-update-success":`Hafıza başarıyla güncellendi`,"toast-update-failed":`Hafıza güncellenemedi`,"toast-cleanup-success":`Temizleme başarıyla tamamlandı`,"toast-cleanup-failed":`Temizleme başarısız oldu`,"toast-dedup-success":`Yinelenenleri kaldırma tamamlandı`,"toast-dedup-failed":`Yinelenenleri kaldırma başarısız oldu`,"toast-bulk-delete-success":`Seçilen hafızalar başarıyla silindi`,"toast-bulk-delete-failed":`Seçilen hafızalar silinemedi`,"toast-migration-success":`Geçiş başarıyla tamamlandı`,"toast-migration-failed":`Geçiş başarısız oldu`,"toast-migration-tag-failures":`Geçiş başarısız: {count} hafıza etiketi oluşturma hatası`,"toast-fresh-start-success":`Yeni başlangıç başarıyla tamamlandı`,"toast-fresh-start-failed":`Yeni başlangıç başarısız oldu`,"confirm-delete":`Bu hafıza silinsin mi?`,"confirm-delete-title":`Silmeyi onayla`,"confirm-delete-pair":`Bu hafıza VE bağlı olduğu istem silinsin mi?`,"confirm-delete-prompt":`Bu istem VE bağlı olduğu hafıza silinsin mi?`,"confirm-bulk-delete":`Seçilen {count} hafıza silinsin mi?`,"confirm-bulk-delete-title":`Seçilenleri sil`,"confirm-cleanup":`Bu işlem, artık geçerli olmayan tüm hafızaları kaldırır. Devam edilsin mi?`,"confirm-cleanup-title":`Hafızaları temizle`,"confirm-dedup":`Bu işlem, yinelenen veya birbirine çok benzer hafızaları birleştirir. Devam edilsin mi?`,"confirm-dedup-title":`Yinelenenleri kaldır`,"confirm-migration-title":`Geçişi onayla`,"confirm-migration":`{strategy} çalıştırılsın mı?
19
-
20
- Bu işlem geri alınamaz.`,"text-selected":`{count} seçili`,"text-page":`Sayfa {current} / {total}`,"text-total":`Toplam: {count}`,"empty-memories":`Hafıza bulunamadı`,"empty-changelog":`Değişiklik günlüğü yok`,"status-cleanup":`Temizleme çalışıyor...`,"status-dedup":`Yinelenenleri kaldırma çalışıyor...`,"status-migration-init":`Geçiş hazırlanıyor...`,"status-migration-progress":`Geçiş sürüyor... {current}/{total}`,"profile-version":`Sürüm`,"profile-prompts":`İstemler`,"profile-updated":`Son Güncelleme`,"profile-meta":`{count} istem · {date}`,"profile-preferences":`Tercihler`,"profile-type-pref":`Tercih`,"profile-type-pat":`Desen`,"profile-type-wf":`Akış`,"profile-patterns":`Desenler`,"profile-workflows":`İş Akışları`,"label-evidence-tooltip":`AI analizi {count} kez yakaladı`,"badge-prompt":`Kullanıcı İstemi`,"badge-memory":`Hafıza`,"badge-pinned":`Sabitlendi`,"section-all":`Tümü`,"badge-linked":`Bağlı`,"date-created":`Oluşturma:`,"date-updated":`Güncelleme:`,"empty-preferences":`Henüz öğrenilen tercih yok`,"empty-patterns":`Henüz algılanan desen yok`,"empty-workflows":`Henüz tanımlanan iş akışı yok`,"btn-delete-pair":`Çifti sil`,"btn-edit":`Düzenle`,"btn-delete":`Sil`,"label-category":`Kategori`,"label-description":`Açıklama`,"label-steps":`Adımlar`,"btn-add-step":`+ Adım ekle`,"text-generated-above":`Yukarıdaki hafızadan üretildi`,"text-from-below":`Aşağıdaki istemden`,"btn-refresh":`Yenile`,"btn-ai-cleanup":`AI temizleme`,"label-ai-cleanup-title":`AI profil temizliği`,"label-ai-cleanup-loading":`AI profili analiz ediyor...`,"label-ai-cleanup-merged":`Birleştirilen`,"label-ai-cleanup-removed":`Kaldırılan`,"label-ai-cleanup-kept":`Kalan`,"label-ai-cleanup-none":`Yok`,"label-ai-cleanup-select-all":`Tümünü seç`,"label-ai-cleanup-deselect-all":`Seçimi temizle`,"label-ai-cleanup-apply":`Değişiklikleri uygula`,"label-ai-cleanup-merge-check":`Birleştir`,"label-ai-cleanup-remove-check":`Kaldır`,"label-ai-cleanup-changes-selected":`{selected}/{total} değişiklik seçildi`,"label-ai-cleanup-merged-header":`Birleştirilen ({count} grup)`,"label-ai-cleanup-removed-header":`Kaldırılan ({count} öğe)`,"btn-apply":`Uygula`,"toast-ai-cleanup-success":`Profil temizliği tamamlandı`,"toast-ai-cleanup-failed":`AI temizleme başarısız oldu`,"toast-cleanup-apply-failed":`Temizlik uygulanamadı`,"label-ai-cleanup-select":`Temizlik analizi için öğe seçin`,"label-ai-cleanup-select-low":`Düşük sıklık (≤3)`,"label-ai-cleanup-select-same-cat":`Aynı kategoridekiler`,"label-ai-cleanup-analyze":`Seçilenleri analiz et`,"label-ai-cleanup-selected":`{count} seçili`,"migration-found-tags":`Teknik etiket gerektiren {count} hafıza bulundu.`,"migration-stopped":`Geçiş durduruldu: maksimum deneme sayısına ulaşıldı`,"migration-shards-mismatch":`{count} parçada farklı boyutlar var`,"migration-dimension-mismatch":`boyut uyumsuzluğu algılandı`,"migration-mismatch-details":`Model uyumsuzluğu: Yapılandırma {configDimensions}D ({configModel}) kullanıyor, ancak {shardInfo}.`,"auth-warning-text":`Çapraz kaynak düzenleme devre dışı. Etkinleştirmek için webServerAuthPassword ayarlayın.`,"btn-pin":`Sabitle`,"btn-unpin":`Sabitlemeyi kaldır`,"btn-clear":`Temizle`,"label-search":`Ara`,"nav-prev-page":`Önceki sayfa`,"nav-next-page":`Sonraki sayfa`,"tab-skills":`Beceriler`,"tab-markdown":`Markdown`,"markdown-disabled":`Markdown backend kapalı. Yapılandırmada memoryBackend değerini "markdown" ve markdownPath ayarlayın.`,"markdown-vault-path":`Vault yolu`,"markdown-file-count":`{count} dosya`,"markdown-watcher-on":`İzleyici açık`,"markdown-watcher-off":`İzleyici kapalı`,"markdown-last-sync":`Son senkron: {date}`,"markdown-reindex":`Yeniden dizinle`,"markdown-reindex-ok":`Vault yeniden dizinlendi`,"markdown-reindex-fail":`Yeniden dizinleme başarısız`,"markdown-empty":`Vault'ta henüz Markdown dosyası yok.`,"markdown-search-empty":`Aramanızla eşleşen vault dosyası yok.`,"markdown-open-fail":`Vault dosyası açılamadı`,"placeholder-search-markdown":`Vault dosyalarında ara…`,"btn-add-markdown":`Hafıza ekle`,"section-skills":`Beceriler ({count})`,"btn-add-skill":`Beceri ekle`,"btn-new-skill":`Yeni beceri`,"modal-skill-create-title":`Beceri oluştur`,"modal-skill-edit-title":`Beceri düzenle`,"label-skill-name":`Ad`,"label-skill-description":`Açıklama`,"label-skill-content":`Talimatlar (Markdown)`,"label-skill-autoinvoke":`Otomatik çağır`,"label-skill-enabled":`Etkin`,"placeholder-skill-name":`Git Release`,"placeholder-skill-description":`Bu beceri ne zaman kullanılmalı…`,"placeholder-skill-content":`## Ne yaparım
21
-
22
- - …`,"skill-edit":`Düzenle`,"skill-preview":`Önizleme`,"skill-empty":`Beceri bulunamadı`,"skill-disabled":`Devre dışı`,"confirm-delete-skill":`“{name}” becerisi silinsin mi?`,"toast-skill-save-success":`Beceri kaydedildi`,"toast-skill-save-failed":`Beceri kaydedilemedi`,"toast-skill-delete-success":`Beceri silindi`,"toast-skill-delete-failed":`Beceri silinemedi`,"toast-skill-load-failed":`Beceriler yüklenemedi`},nl:{"tab-stats":`Statistieken`,"stats-overview":`Overzicht`,"stats-total-memories":`Totaal aantal herinneringen`,"stats-active-shards":`Actieve opslagdelen`,"stats-scope-user":`Gebruiker`,"stats-scope-project":`Project`,"stats-last-analyzed":`Laatst geanalyseerd`,"stats-no-profile":`Nog geen profiel`,"stats-generated":`Laatst gegenereerd`,"stats-snapshot-note":`Vernieuw om de nieuwste gegevens op te halen.`,"stats-loading":`Statistieken laden…`,"stats-load-failed":`Statistieken konden niet worden geladen. Probeer te vernieuwen.`,"stats-stale":`De laatst succesvol opgehaalde gegevens worden getoond.`,"stats-unavailable":`Gegevens niet beschikbaar`,"stats-daily":`Dagelijkse activiteit · afgelopen 14 dagen`,"stats-no-activity":`Nog geen dagelijkse activiteit vastgelegd.`,"stats-date":`Datum`,"stats-captures":`Vastleggingen`,"stats-skipped":`Overgeslagen vastleggingen`,"stats-profile-injections":`Profielinvoegingen`,"stats-compaction-injections":`Invoegingen bij contextcompressie`,"stats-errors":`Fouten`,"stats-no-errors":`Geen fouten`,"stats-shards":`Opslagdelen`,"stats-no-shards":`Nog geen opslagdelen.`,"stats-scope":`Bereik / hash`,"stats-file":`Bestand`,"stats-index":`Index`,"stats-status":`Status`,"stats-memory-vectors":`Herinneringen / geregistreerde vectoren`,"stats-memory-dates":`Datums van herinneringen`,"stats-duplicate-tags":`Dubbele tags`,"stats-file-present":`Bestand aanwezig`,"stats-file-missing":`Bestand ontbreekt`,"stats-active":`Actief`,"stats-inactive":`Inactief`,"stats-count-mismatch":`Aantallen verschillen`,"stats-oldest":`Oudste`,"stats-newest":`Nieuwste`,title:`OpenCode Memory Explorer`,brand:`opencode-mem`,"tab-project":`PROJECTGEHEUGENS`,"tab-profile":`GEBRUIKERSPROFIEL`,"nav-menu":`Menu`,"nav-close":`Menu sluiten`,"nav-collapse":`Zijbalk inklappen`,"nav-expand":`Zijbalk uitklappen`,"nav-language":`Taal`,"nav-theme":`Thema`,"theme-dark":`Donker`,"theme-light":`Licht`,"label-tag":`Tag:`,"label-type":`Type:`,"label-tags":`Tags:`,"label-content":`Inhoud:`,"btn-cleanup":`Opschonen`,"btn-deduplicate":`Dedupliceren`,"btn-trash":`Prullenbak`,"btn-restore":`Herstellen`,"btn-dreaming":`Dreaming`,"modal-trash-title":`Geheugenprullenbak`,"loading-trash":`Prullenbak laden…`,"empty-trash":`Prullenbak is leeg`,"trash-merged-into":`Samengevoegd in {id}`,"trash-superseded-by":`Vervangen door {id}`,"toast-trash-load-failed":`Prullenbak laden mislukt`,"toast-restore-success":`Geheugen hersteld`,"toast-restore-failed":`Herstellen mislukt`,"toast-dreaming-success":`Dreaming voltooid`,"toast-dreaming-failed":`Dreaming mislukt`,"toast-dreaming-already-running":`Dreaming is al bezig`,"toast-dreaming-partial":`Dreaming klaar: {failed} van {considered} groepen mislukt`,"confirm-dreaming-title":`Dreaming starten`,"confirm-dreaming":`Bijna-duplicaten samenvoegen met het geconfigureerde LLM? Vervangen rijen gaan naar de prullenbak.`,"status-dreaming":`Dreaming bezig…`,"btn-filter":`Filteren`,"btn-filter-clear":`Selectie wissen`,"btn-delete-selected":`Selectie verwijderen`,"btn-select-all":`Pagina selecteren`,"btn-deselect-all":`Selectie opheffen`,"btn-add-memory":`Memory toevoegen`,"section-project":`Projectgeheugens ({count})`,"section-profile":`Gebruikersprofiel`,"section-add":`Nieuwe memory toevoegen`,"opt-all-tags":`Alle tags`,"opt-select-tag":`Selecteer tag`,"opt-other":`overig (other)`,"opt-feature":`functie (feature)`,"opt-bug-fix":`bugfix (bug-fix)`,"opt-refactor":`refactor (refactor)`,"opt-architecture":`architectuur (architecture)`,"opt-rule":`regel (rule)`,"opt-documentation":`documentatie (documentation)`,"opt-discussion":`discussie (discussion)`,"opt-analysis":`analyse (analysis)`,"opt-configuration":`configuratie (configuration)`,"modal-edit-title":`Memory bewerken`,"modal-migration-title":`Migratie van memory-tags`,"modal-changelog-title":`Versiegeschiedenis van profiel`,"btn-cancel":`Annuleren`,"btn-save":`Wijzigingen opslaan`,"btn-start-migration":`Migratie starten`,"loading-init":`Initialiseren...`,"loading-profile":`Profiel laden...`,"loading-changelog":`Wijzigingslogboek laden...`,"migration-mismatch":`Afwijkende modeldimensies gedetecteerd!`,"migration-understand":`Ik begrijp dat deze bewerking onomkeerbaar is en alle opgeslagen memories beïnvloedt`,"btn-fresh-start":`Opnieuw beginnen (alles verwijderen)`,"btn-reembed":`Opnieuw vectoriseren (data behouden)`,"migration-note":`Sluit de browser niet af. Hiermee worden je memories opnieuw gevectoriseerd met technische tags om de zoeknauwkeurigheid te verbeteren.`,"placeholder-filter":`Filteren…`,"placeholder-search":`Memories zoeken...`,"placeholder-search-skills":`Skills zoeken…`,"placeholder-tags":`react, hooks, auth (komma-gescheiden)`,"placeholder-new-tag":`Nieuwe tag…`,"btn-add-tag":`Tag toevoegen`,"placeholder-content":`Voer de inhoud van de memory in...`,"toast-add-success":`Memory succesvol toegevoegd`,"toast-add-error":`Inhoud en tag zijn verplicht`,"toast-add-failed":`Toevoegen van memory mislukt`,"toast-delete-success":`Memory succesvol verwijderd`,"toast-delete-failed":`Verwijderen van memory mislukt`,"toast-update-success":`Memory succesvol bijgewerkt`,"toast-update-failed":`Bijwerken van memory mislukt`,"toast-cleanup-success":`Opschonen succesvol voltooid`,"toast-cleanup-failed":`Opschonen mislukt`,"toast-dedup-success":`Dedupliceren succesvol voltooid`,"toast-dedup-failed":`Dedupliceren mislukt`,"toast-bulk-delete-success":`Geselecteerde memories succesvol verwijderd`,"toast-bulk-delete-failed":`Verwijderen van selectie mislukt`,"toast-migration-success":`Migratie succesvol voltooid`,"toast-migration-failed":`Migratie mislukt`,"toast-migration-tag-failures":`Migratie mislukt: {count} keer mislukt om memory-tags te genereren`,"toast-fresh-start-success":`Opnieuw beginnen succesvol voltooid`,"toast-fresh-start-failed":`Opnieuw beginnen mislukt`,"confirm-delete":`Deze memory verwijderen?`,"confirm-delete-title":`Verwijderen bevestigen`,"confirm-delete-pair":`Deze memory EN de gekoppelde prompt verwijderen?`,"confirm-delete-prompt":`Deze prompt EN de gekoppelde memory verwijderen?`,"confirm-bulk-delete":`{count} geselecteerde memories verwijderen?`,"confirm-bulk-delete-title":`Selectie verwijderen`,"confirm-cleanup":`Hiermee worden alle memories verwijderd die niet meer relevant zijn. Doorgaan?`,"confirm-cleanup-title":`Memories opschonen`,"confirm-dedup":`Hiermee worden dubbele of sterk overeenkomende memories samengevoegd. Doorgaan?`,"confirm-dedup-title":`Memories dedupliceren`,"confirm-migration-title":`Migratie bevestigen`,"confirm-migration":`{strategy} uitvoeren?
23
-
24
- Deze bewerking is onomkeerbaar.`,"text-selected":`{count} geselecteerd`,"text-page":`Pagina {current} van {total}`,"text-total":`Totaal: {count}`,"empty-memories":`Geen memories gevonden`,"empty-changelog":`Geen wijzigingslogboek beschikbaar`,"status-cleanup":`Opschonen bezig...`,"status-dedup":`Dedupliceren bezig...`,"status-migration-init":`Migratie initialiseren...`,"status-migration-progress":`Migreren... {current}/{total}`,"profile-version":`VERSIE`,"profile-prompts":`PROMPTS`,"profile-updated":`LAATST GEWIJZIGD`,"profile-meta":`{count} prompts · {date}`,"profile-preferences":`VOORKEUREN`,"profile-type-pref":`Voorkeur`,"profile-type-pat":`Patroon`,"profile-type-wf":`Workflow`,"profile-patterns":`PATRONEN`,"profile-workflows":`WORKFLOWS`,"label-evidence-tooltip":`AI-analyse trof {count} keer`,"badge-prompt":`GEBRUIKERSPROMPT`,"badge-memory":`MEMORY`,"badge-pinned":`VASTGEZET`,"section-all":`Alles`,"badge-linked":`GEKOPPELD`,"date-created":`Aangemaakt:`,"date-updated":`Bijgewerkt:`,"empty-preferences":`Nog geen voorkeuren geleerd`,"empty-patterns":`Nog geen patronen gedetecteerd`,"empty-workflows":`Nog geen workflows vastgesteld`,"btn-delete-pair":`Paar verwijderen`,"btn-edit":`Bewerken`,"btn-delete":`Verwijderen`,"label-category":`Categorie`,"label-description":`Beschrijving`,"label-steps":`Stappen`,"btn-add-step":`+ Stap toevoegen`,"text-generated-above":`Hieronder gegenereerde memory`,"text-from-below":`Uit de prompt hieronder`,"btn-refresh":`Vernieuwen`,"btn-ai-cleanup":`AI-opschoning`,"label-ai-cleanup-title":`AI-opschoning van profiel`,"label-ai-cleanup-loading":`AI analyseert het profiel...`,"label-ai-cleanup-merged":`Samengevoegd`,"label-ai-cleanup-removed":`Verwijderd`,"label-ai-cleanup-kept":`Overig`,"label-ai-cleanup-none":`Geen`,"label-ai-cleanup-select-all":`Alles selecteren`,"label-ai-cleanup-deselect-all":`Selectie opheffen`,"label-ai-cleanup-apply":`Wijzigingen doorvoeren`,"label-ai-cleanup-merge-check":`Samenvoegen`,"label-ai-cleanup-remove-check":`Verwijderen`,"label-ai-cleanup-changes-selected":`{selected}/{total} wijzigingen geselecteerd`,"label-ai-cleanup-merged-header":`Samengevoegd ({count} groepen)`,"label-ai-cleanup-removed-header":`Verwijderd ({count} items)`,"btn-apply":`Doorvoeren`,"toast-ai-cleanup-success":`Opschonen van profiel voltooid`,"toast-ai-cleanup-failed":`AI-opschoning mislukt`,"toast-cleanup-apply-failed":`Doorvoeren van opschoning mislukt`,"label-ai-cleanup-select":`Selecteer items voor de opschoonanalyse`,"label-ai-cleanup-select-low":`Lage frequentie (≤3)`,"label-ai-cleanup-select-same-cat":`Paren in dezelfde categorie`,"label-ai-cleanup-analyze":`Selectie analyseren`,"label-ai-cleanup-selected":`{count} geselecteerd`,"migration-found-tags":`{count} memories gevonden die technische tags nodig hebben.`,"migration-stopped":`Migratie gestopt: maximaal aantal pogingen bereikt`,"migration-shards-mismatch":`{count} shard(s) hebben afwijkende dimensies`,"migration-dimension-mismatch":`afwijkende dimensies gedetecteerd`,"migration-mismatch-details":`Modelmismatch: configuratie gebruikt {configDimensions}D ({configModel}), maar {shardInfo}.`,"auth-warning-text":`Bewerken vanuit andere bronnen is uitgeschakeld. Stel webServerAuthPassword in om dit in te schakelen.`,"btn-pin":`Vastzetten`,"btn-unpin":`Losmaken`,"btn-clear":`Wissen`,"label-search":`Zoeken`,"nav-prev-page":`Vorige pagina`,"nav-next-page":`Volgende pagina`,"tab-skills":`Skills`,"tab-markdown":`Markdown`,"markdown-disabled":`Markdown-backend is uit. Zet memoryBackend op "markdown" en markdownPath in de config.`,"markdown-vault-path":`Vault-pad`,"markdown-file-count":`{count} bestanden`,"markdown-watcher-on":`Watcher aan`,"markdown-watcher-off":`Watcher uit`,"markdown-last-sync":`Laatste sync: {date}`,"markdown-reindex":`Herindexeren`,"markdown-reindex-ok":`Vault geherindexeerd`,"markdown-reindex-fail":`Herindexeren mislukt`,"markdown-empty":`Nog geen Markdown-bestanden in de vault.`,"markdown-search-empty":`Geen vault-bestanden komen overeen met je zoekopdracht.`,"markdown-open-fail":`Vault-bestand kon niet worden geopend`,"placeholder-search-markdown":`Vault-bestanden zoeken…`,"btn-add-markdown":`Geheugen toevoegen`,"section-skills":`Skills ({count})`,"btn-add-skill":`Skill toevoegen`,"btn-new-skill":`Nieuwe skill`,"modal-skill-create-title":`Skill maken`,"modal-skill-edit-title":`Skill bewerken`,"label-skill-name":`Naam`,"label-skill-description":`Beschrijving`,"label-skill-content":`Instructies (Markdown)`,"label-skill-autoinvoke":`Automatisch aanroepen`,"label-skill-enabled":`Ingeschakeld`,"placeholder-skill-name":`Git Release`,"placeholder-skill-description":`Wanneer deze skill gebruiken…`,"placeholder-skill-content":`## Wat ik doe
25
-
26
- - …`,"skill-edit":`Bewerken`,"skill-preview":`Voorbeeld`,"skill-empty":`Geen skills gevonden`,"skill-disabled":`Uitgeschakeld`,"confirm-delete-skill":`Skill “{name}” verwijderen?`,"toast-skill-save-success":`Skill opgeslagen`,"toast-skill-save-failed":`Skill opslaan mislukt`,"toast-skill-delete-success":`Skill verwijderd`,"toast-skill-delete-failed":`Skill verwijderen mislukt`,"toast-skill-load-failed":`Skills laden mislukt`}},ko=Object.keys(Oo);function Ao(){if(typeof window>`u`)return`en`;let e=localStorage.getItem(`opencode-mem-lang`);return e&&e in Oo?e:`en`}var jo=Ao(),Mo=new Set;function No(){for(let e of Mo)e()}function Po(e){jo=e,typeof document<`u`&&(localStorage.setItem(`opencode-mem-lang`,e),document.documentElement.dir=e===`ar`?`rtl`:`ltr`,document.documentElement.lang=e),No()}function Fo(e){return Mo.add(e),()=>{Mo.delete(e)}}function Io(){return jo}function Lo(e){Po(e)}function Ro(){let e=ko[(ko.indexOf(Io())+1)%ko.length];return Lo(e),e}function zo(e,t={},n=Io()){let r=Oo[n][e]||Oo.en[e]||e;for(let[e,n]of Object.entries(t))r=r.replace(RegExp(`\\{${e}\\}`,`g`),String(n));return r}typeof document<`u`&&(document.documentElement.dir=jo===`ar`?`rtl`:`ltr`,document.documentElement.lang=jo);function Bo(e,t){let n={"x-opencode-mem-token":window.__OPENCODE_MEM_TOKEN__||``};if(e!=null&&!(e instanceof FormData)&&(n[`Content-Type`]=`application/json`),t){let e=t instanceof Headers?[...t.entries()]:Array.isArray(t)?t:Object.entries(t);for(let[t,r]of e)r!=null&&(n[t]=String(r))}return n}async function Vo(e,t={}){try{let n=new AbortController,r=t.timeout||(t.method===`POST`&&e.includes(`/ai-cleanup`)?18e4:6e4),{timeout:i,headers:a,...o}=t,s=setTimeout(()=>n.abort(),r),c=await fetch(e,{...o,headers:Bo(o.body,a),signal:n.signal});return clearTimeout(s),await c.json()}catch(e){return console.error(`API Error:`,e),{success:!1,error:e instanceof Error?e.message:String(e)}}}async function Ho(e,t={}){let n=t.translate??zo;if(e.success){let r=t.success||(t.successKey?n(t.successKey):void 0)||(typeof e.data==`object`&&e.data&&`message`in e.data&&typeof e.data.message==`string`?e.data.message:void 0);return r&&Do.success(r),await t.onSuccess?.(),!0}return Do.error(e.error||(t.failKey?n(t.failKey):`Request failed`)),!1}function Uo(e){return typeof e==`object`&&!!e}var Wo=[`string`,`number`,`bigint`,`boolean`];function Go(e){return e==null||Wo.includes(typeof e)?!0:Array.isArray(e)?e.every(e=>Go(e)):typeof e==`object`&&Object.getPrototypeOf(e)===Object.prototype}var Ko=Symbol(`box`),qo=Symbol(`is-writable`);function Jo(e,t){let n=j(e);return t?{[Ko]:!0,[qo]:!0,get current(){return z(n)},set current(e){t(e)}}:{[Ko]:!0,get current(){return e()}}}function Yo(e){return Uo(e)&&Ko in e}function Xo(e){let t=M(dn(e));return{[Ko]:!0,[qo]:!0,get current(){return z(t)},set current(e){N(t,e,!0)}}}function Zo(...e){return function(t){for(let n of e)if(n){if(t.defaultPrevented)return;typeof n==`function`?n.call(this,t):n.current?.call(this,t)}}}var Qo=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,$o=/\n/g,es=/^\s*/,ts=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ns=/^:\s*/,rs=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,is=/^[;\s]*/,as=/^\s+|\s+$/g,os=`
27
- `,ss=`/`,cs=`*`,ls=``,us=`comment`,ds=`declaration`;function fs(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match($o);t&&(n+=t.length);var i=e.lastIndexOf(os);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(es)}function u(e){var t;for(e||=[];t=d();)t!==!1&&e.push(t);return e}function d(){var t=a();if(ss==e.charAt(0)&&cs==e.charAt(1)){for(var n=2;ls!=e.charAt(n)&&(cs!=e.charAt(n)||ss!=e.charAt(n+1));)++n;if(n+=2,ls===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:us,comment:o})}}function f(){var e=a(),t=c(ts);if(t){if(d(),!c(ns))return s(`property missing ':'`);var n=c(rs),r=e({type:ds,property:ps(t[0].replace(Qo,ls)),value:n?ps(n[0].replace(Qo,ls)):ls});return c(is),r}}function p(){var e=[];u(e);for(var t;t=f();)t!==!1&&(e.push(t),u(e));return e}return l(),p()}function ps(e){return e?e.replace(as,ls):ls}function ms(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=fs(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n||={},n[r]=a)}),n}var hs=/\d/,gs=[`-`,`_`,`/`,`.`];function _s(e=``){if(!hs.test(e))return e!==e.toLowerCase()}function vs(e){let t=[],n=``,r,i;for(let a of e){let e=gs.includes(a);if(e===!0){t.push(n),n=``,r=void 0;continue}let o=_s(a);if(i===!1){if(r===!1&&o===!0){t.push(n),n=a,r=o;continue}if(r===!0&&o===!1&&n.length>1){let e=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=e+a,r=o;continue}}n+=a,r=o,i=e}return t.push(n),t}function ys(e){return e?vs(e).map(e=>xs(e)).join(``):``}function bs(e){return Ss(ys(e||``))}function xs(e){return e?e[0].toUpperCase()+e.slice(1):``}function Ss(e){return e?e[0].toLowerCase()+e.slice(1):``}function Cs(e){if(!e)return{};let t={};function n(e,n){e.startsWith(`-moz-`)||e.startsWith(`-webkit-`)||e.startsWith(`-ms-`)||e.startsWith(`-o-`)?t[ys(e)]=n:e.startsWith(`--`)?t[e]=n:t[bs(e)]=n}return ms(e,n),t}function ws(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function Ts(e,t){let n=RegExp(e,`g`);return e=>{if(typeof e!=`string`)throw TypeError(`expected an argument of type string, but got ${typeof e}`);return e.match(n)?e.replace(n,t):e}}var Es=Ts(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Ds(e){if(!e||typeof e!=`object`||Array.isArray(e))throw TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${Es(t)}: ${e[t]};`).join(`
28
- `)}function Os(e={}){return Ds(e).replace(`
29
- `,` `)}var ks=new Set(`onabort.onanimationcancel.onanimationend.onanimationiteration.onanimationstart.onauxclick.onbeforeinput.onbeforetoggle.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncompositionend.oncompositionstart.oncompositionupdate.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onfocusin.onfocusout.onformdata.ongotpointercapture.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onload.onloadeddata.onloadedmetadata.onloadstart.onlostpointercapture.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onpaste.onpause.onplay.onplaying.onpointercancel.onpointerdown.onpointerenter.onpointerleave.onpointermove.onpointerout.onpointerover.onpointerup.onprogress.onratechange.onreset.onresize.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onselectionchange.onselectstart.onslotchange.onstalled.onsubmit.onsuspend.ontimeupdate.ontoggle.ontouchcancel.ontouchend.ontouchmove.ontouchstart.ontransitioncancel.ontransitionend.ontransitionrun.ontransitionstart.onvolumechange.onwaiting.onwebkitanimationend.onwebkitanimationiteration.onwebkitanimationstart.onwebkittransitionend.onwheel`.split(`.`));function As(e){return ks.has(e)}function js(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];if(r){for(let e of Object.keys(r)){let n=t[e],i=r[e],a=typeof n==`function`,o=typeof i==`function`;if(a&&typeof o&&As(e))t[e]=Zo(n,i);else if(a&&o)t[e]=ws(n,i);else if(e===`class`){let r=Go(n),a=Go(i);r&&a?t[e]=Ii(n,i):r?t[e]=Ii(n):a&&(t[e]=Ii(i))}else if(e===`style`){let r=typeof n==`object`,a=typeof i==`object`,o=typeof n==`string`,s=typeof i==`string`;if(r&&a)t[e]={...n,...i};else if(r&&s){let r=Cs(i);t[e]={...n,...r}}else if(o&&a)t[e]={...Cs(n),...i};else if(o&&s){let r=Cs(n),a=Cs(i);t[e]={...r,...a}}else r?t[e]=n:a?t[e]=i:o?t[e]=n:s&&(t[e]=i)}else t[e]=i===void 0?n:i}for(let e of Object.getOwnPropertySymbols(r)){let n=t[e],i=r[e];t[e]=i===void 0?n:i}}}return typeof t.style==`object`&&(t.style=Os(t.style).replaceAll(`
30
- `,` `)),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}var Ms={position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`,transform:`translateX(-100%)`};Os(Ms);var Ns=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function Ps(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Fs=class extends Map{#e=new Map;#t=M(0);#n=M(0);#r=vr||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return vr===this.#r?M(e):nn(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else return z(this.#t),!1}return z(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else{z(this.#t);return}}return z(n),super.get(e)}getOrInsert(e,t){return super.has(e)||this.set(e,t),this.get(e)}getOrInsertComputed(e,t){return super.has(e)||this.set(e,t(e)),this.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),N(this.#n,super.size),ln(o);else if(i!==t){ln(r);var s=o.reactions===null?null:new Set(o.reactions);s!==null&&r.reactions?.every(e=>s.has(e))||ln(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),N(n,-1)),r&&(N(this.#n,super.size),ln(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;N(this.#n,0);for(var t of e.values())N(t,-1);ln(this.#t),e.clear()}}#a(){z(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)z(n)}keys(){return z(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return z(this.#n),super.size}};new class{#e;#t;constructor(e={}){let{window:t=Ns,document:n=t?.document}=e;t!==void 0&&(this.#e=n,this.#t=ci(e=>{let n=qr(t,`focusin`,e),r=qr(t,`focusout`,e);return()=>{n(),r()}}))}get current(){return this.#t?.(),this.#e?Ps(this.#e):null}};var Is=class{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return rt(this.#t)}get(){let e=tt(this.#t);if(e===void 0)throw Error(`Context "${this.#e}" not found`);return e}getOr(e){let t=tt(this.#t);return t===void 0?e:t}set(e){return nt(this.#t,e)}};function Ls(e,t){switch(e){case`post`:Pn(t);break;case`pre`:In(t)}}function Rs(e,t,n,r={}){let{lazy:i=!1}=r,a=!i,o=Array.isArray(e)?[]:void 0;Ls(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!a){a=!0,o=t;return}let r=jr(()=>n(t,o));return o=t,r})}function zs(e,t,n){Rs(e,`post`,t,n)}function Bs(e,t,n){Rs(e,`pre`,t,n)}zs.pre=Bs;function Vs(e){Pn(()=>()=>{e()})}function Hs(e){Or().then(e)}var Us=1,Ws=9,Gs=11;function Ks(e){return Uo(e)&&e.nodeType===Us&&typeof e.nodeName==`string`}function qs(e){return Uo(e)&&e.nodeType===Ws}function Js(e){return Uo(e)&&e.constructor?.name===`VisualViewport`}function Ys(e){return Uo(e)&&e.nodeType!==void 0}function Xs(e){return Ys(e)&&e.nodeType===Gs&&`host`in e}function Zs(e,t){if(!e||!t||!Ks(e)||!Ks(t))return!1;let n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&Xs(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Qs(e){return qs(e)?e:Js(e)?e.document:e?.ownerDocument??document}function $s(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var ec=class{element;#e=j(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return z(this.#e)}set root(e){N(this.#e,e)}constructor(e){this.element=typeof e==`function`?Jo(e):e}getDocument=()=>Qs(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>$s(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,t)=>this.getWindow().setTimeout(e,t);clearTimeout=e=>this.getWindow().clearTimeout(e)};function tc(e,t){return{[Mr()]:n=>Yo(e)?(e.current=n,jr(()=>t?.(n)),()=>{`isConnected`in n&&n.isConnected||(e.current=null,t?.(null))}):(e(n),jr(()=>t?.(n)),()=>{`isConnected`in n&&n.isConnected||(e(null),t?.(null))})}}function nc(e){return e?`true`:`false`}function rc(e){return e?``:void 0}function ic(e){return e?`open`:`closed`}function ac(e){return e===`starting`?{"data-starting-style":``}:e===`ending`?{"data-ending-style":``}:{}}function oc(e,t){return t?`mixed`:e?`true`:`false`}var sc=class{#e;#t;attrs;constructor(e){this.#e=e.getVariant?e.getVariant():null,this.#t=this.#e?`data-${this.#e}-`:`data-${e.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(e.parts.map(e=>[e,this.getAttr(e)]))}getAttr(e,t){return t?`data-${t}-${e}`:`${this.#t}${e}`}selector(e,t){return`[${this.getAttr(e,t)}]`}};function cc(e){let t=new sc(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}var lc=typeof document<`u`,uc=dc();function dc(){return lc&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function fc(e){return e instanceof HTMLElement}function pc(e){return e instanceof Element||e instanceof SVGElement}var mc=class{#e;#t=null;#n=null;#r=0;constructor(e){this.#e=e,Vs(()=>this.#i())}#i(){this.#t!==null&&(window.cancelAnimationFrame(this.#t),this.#t=null),this.#n?.disconnect(),this.#n=null,this.#r++}run(e){this.#i();let t=this.#r,n=()=>{t===this.#r&&this.#a(e)},r=()=>{if(t!==this.#r)return;let i=this.#e.ref.current;if(!i)return;if(typeof i.getAnimations!=`function`){this.#a(e);return}let a=i.getAnimations();a.length===0?n():Promise.all(a.map(e=>e.finished)).then(()=>{n()}).catch(()=>{t===this.#r&&(i.getAnimations().some(e=>e.pending||e.playState!==`finished`)?r():n())})},i=()=>{this.#t=window.requestAnimationFrame(()=>{this.#t=null,r()})};this.#e.afterTick.current?this.#t=window.requestAnimationFrame(()=>{this.#t=null;let e=`data-starting-style`,n=this.#e.ref.current;n&&(n.hasAttribute(e)?(this.#n=new MutationObserver(()=>{t===this.#r&&(n.hasAttribute(e)||(this.#n?.disconnect(),this.#n=null,i()))}),this.#n.observe(n,{attributes:!0,attributeFilter:[e]})):i())}):i()}#a(e){let t=this.#r,n=()=>{t===this.#r&&e()};this.#e.afterTick.current?Hs(n):n()}},hc=class{#e;#t;#n;#r=M(!1);#i=M(void 0);#a=!1;#o=null;constructor(e){this.#e=e,N(this.#r,e.open.current,!0),this.#t=e.enabled??!0,this.#n=new mc({ref:this.#e.ref,afterTick:this.#e.open}),Vs(()=>this.#s()),zs(()=>this.#e.open.current,e=>{this.#a?(this.#s(),!e&&this.#e.shouldSkipExitAnimation?.()?(N(this.#r,!1),N(this.#i,void 0),this.#e.onComplete?.()):(e&&N(this.#r,!0),N(this.#i,e?`starting`:`ending`,!0),e&&(this.#o=window.requestAnimationFrame(()=>{this.#o=null,this.#e.open.current&&N(this.#i,void 0)})),this.#t?this.#n.run(()=>{e===this.#e.open.current&&(this.#e.open.current||N(this.#r,!1),N(this.#i,void 0),this.#e.onComplete?.())}):(e||N(this.#r,!1),N(this.#i,void 0),this.#e.onComplete?.()))):this.#a=!0})}get shouldRender(){return z(this.#r)}get transitionStatus(){return z(this.#i)}#s(){this.#o!==null&&(window.cancelAnimationFrame(this.#o),this.#o=null)}};function gc(){}function _c(e,t){return t===void 0?`bits-${e}`:`bits-${e}-${t}`}var vc=cc({component:`dialog`,parts:[`content`,`trigger`,`overlay`,`title`,`description`,`close`,`cancel`,`action`]}),yc=new Is(`Dialog.Root | AlertDialog.Root`),bc=class e{static create(t){let n=yc.getOr(null);return yc.set(new e(t,n))}opts;#e=M(null);get triggerNode(){return z(this.#e)}set triggerNode(e){N(this.#e,e,!0)}#t=M(null);get contentNode(){return z(this.#t)}set contentNode(e){N(this.#t,e,!0)}#n=M(null);get overlayNode(){return z(this.#n)}set overlayNode(e){N(this.#n,e,!0)}#r=M(null);get descriptionNode(){return z(this.#r)}set descriptionNode(e){N(this.#r,e,!0)}#i=M(void 0);get contentId(){return z(this.#i)}set contentId(e){N(this.#i,e,!0)}#a=M(void 0);get titleId(){return z(this.#a)}set titleId(e){N(this.#a,e,!0)}#o=M(void 0);get triggerId(){return z(this.#o)}set triggerId(e){N(this.#o,e,!0)}#s=M(void 0);get descriptionId(){return z(this.#s)}set descriptionId(e){N(this.#s,e,!0)}#c=M(null);get cancelNode(){return z(this.#c)}set cancelNode(e){N(this.#c,e,!0)}#l=M(0);get nestedOpenCount(){return z(this.#l)}set nestedOpenCount(e){N(this.#l,e,!0)}depth;parent;contentPresence;overlayPresence;constructor(e,t){this.opts=e,this.parent=t,this.depth=t?t.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new hc({ref:Jo(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new hc({ref:Jo(()=>this.overlayNode),open:this.opts.open,enabled:!0}),zs(()=>this.opts.open.current,e=>{this.parent&&(e?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),Vs(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=e=>vc.getAttr(e,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=j(()=>({"data-state":ic(this.opts.open.current)}));get sharedProps(){return z(this.#u)}set sharedProps(e){N(this.#u,e)}},xc=class e{static create(t){return new e(t,yc.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=tc(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleClose())}#e=j(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:``,onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return z(this.#e)}set props(e){N(this.#e,e)}},Sc=class e{static create(t){return new e(t,yc.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.titleId=this.opts.id.current,this.attachment=tc(this.opts.ref),zs.pre(()=>this.opts.id.current,e=>{this.root.titleId=e})}#e=j(()=>({id:this.opts.id.current,role:`heading`,"aria-level":this.opts.level.current,[this.root.getBitsAttr(`title`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return z(this.#e)}set props(e){N(this.#e,e)}},Cc=class e{static create(t){return new e(t,yc.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=tc(this.opts.ref,e=>{this.root.contentNode=e,this.root.contentId=e?.id})}#e=j(()=>({open:this.root.opts.open.current}));get snippetProps(){return z(this.#e)}set snippetProps(e){N(this.#e,e)}#t=j(()=>({id:this.opts.id.current,role:this.root.opts.variant.current===`alert-dialog`?`alertdialog`:`dialog`,"aria-modal":`true`,"aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr(`content`)]:``,style:{pointerEvents:`auto`,outline:this.root.opts.variant.current===`alert-dialog`?`none`:void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:`layout style`},tabindex:this.root.opts.variant.current===`alert-dialog`?-1:void 0,"data-nested-open":rc(this.root.nestedOpenCount>0),"data-nested":rc(this.root.parent!==null),...ac(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return z(this.#t)}set props(e){N(this.#t,e)}get shouldRender(){return this.root.contentPresence.shouldRender}},wc=class e{static create(t){return new e(t,yc.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=tc(this.opts.ref,e=>this.root.overlayNode=e)}#e=j(()=>({open:this.root.opts.open.current}));get snippetProps(){return z(this.#e)}set snippetProps(e){N(this.#e,e)}#t=j(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`overlay`)]:``,style:{pointerEvents:`auto`,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":rc(this.root.nestedOpenCount>0),"data-nested":rc(this.root.parent!==null),...ac(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return z(this.#t)}set props(e){N(this.#t,e)}get shouldRender(){return this.root.overlayPresence.shouldRender}},Tc=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`child`,`children`,`level`]),Ec=B(`<div><!></div>`);function Dc(e,t){let n=si();k(t,!0);let r=X(t,`id`,19,()=>_c(n)),i=X(t,`ref`,15,null),a=X(t,`level`,3,2),o=J(t,Tc),s=Sc.create({id:Jo(()=>r()),level:Jo(()=>a()),ref:Jo(()=>i(),e=>i(e))}),c=j(()=>js(o,s.props));var l=V(),u=F(l),d=e=>{var n=V();ji(F(n),()=>t.child,()=>({props:z(c)})),H(e,n)},p=e=>{var n=Ec();la(n,()=>({...z(c)})),ji(P(n),()=>t.children??f),D(n),H(e,n)};W(u,e=>{t.child?e(d):e(p,-1)}),H(e,l),A()}function Oc(e,t){var n=V();yi(F(n),()=>t.children,e=>{var n=V();ji(F(n),()=>t.children??f),H(e,n)}),H(e,n)}var kc=new Is(`BitsConfig`);function Ac(){let e=new jc(null,{});return kc.getOr(e).opts}var jc=class{opts;constructor(e,t){let n=Mc(e,t);this.opts={defaultPortalTo:n(e=>e.defaultPortalTo),defaultLocale:n(e=>e.defaultLocale)}}};function Mc(e,t){return n=>Jo(()=>{let r=n(t)?.current;if(r!==void 0)return r;if(e!==null)return n(e.opts)?.current})}function Nc(e,t){return n=>{let r=Ac();return Jo(()=>{let i=n();if(i!==void 0)return i;let a=e(r).current;return a===void 0?t:a})}}var Pc=Nc(e=>e.defaultPortalTo,`body`);function Fc(e,t){k(t,!0);let n=Pc(()=>t.to),r=it(),i=j(a);function a(){if(!lc||t.disabled)return null;let e=null;return e=typeof n.current==`string`?document.querySelector(n.current):n.current,e}let o;function s(){o&&=(gi(o),null)}zs([()=>z(i),()=>t.disabled],([e,n])=>{if(!e||n)s();else return o=fi(Oc,{target:e,props:{children:t.children},context:r}),()=>{s()}});var c=V(),l=F(c),u=e=>{var n=V();ji(F(n),()=>t.children??f),H(e,n)};W(l,e=>{t.disabled&&e(u)}),H(e,c),A()}function Ic(e,t=500){let n=null,r=null,i=(...e)=>{i.destroy(),r=e,n=setTimeout(i.flush,t)};return i.flush=()=>{if(r===null)return;let t=r;i.destroy(),e(...t)},i.destroy=()=>{n!==null&&(clearTimeout(n),n=null),r=null},i}function Lc(e,t){return e===t||e.contains(t)}function Rc(e){return e?.ownerDocument??document}function zc(e,t){let{clientX:n,clientY:r}=e,i=t.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}var Bc=`data-context-menu-trigger`,Vc=`data-context-menu-content`;globalThis.bitsDismissableLayers??=new Map;var Hc=class e{static create(t){return new e(t)}opts;#e;#t;#n={pointerdown:!1};#r=!1;#i=null;#a=!1;#o=void 0;#s;#c=gc;#l=!1;constructor(e){this.opts=e,this.#t=e.interactOutsideBehavior,this.#e=e.onInteractOutside,this.#s=e.onFocusOutside;let t=gc,n=null,r=()=>{n=null,this.#y(),globalThis.bitsDismissableLayers.delete(this),this.#m.destroy(),this.#c(),t()};zs([()=>this.opts.enabled.current,()=>this.opts.ref.current],([e,i])=>{let a=e?i:null;n!==a&&(r(),a&&(n=a,this.#o=Rc(a),globalThis.bitsDismissableLayers.set(this,this.#t),t=this.#d()))}),Vs(()=>{this.#l=!0,r()})}#u=e=>{e.defaultPrevented||this.#l||!this.opts.ref.current||Hs(()=>{this.#l||this.opts.ref.current&&!this.#v(e.target)&&e.target&&!this.#a&&this.#s.current?.(e)})};#d(){let e=this.#o,t=e=>{jr(()=>{this.#m.flush(),this.#h(e),this.#_(e)})},n=e=>{e.cancelBubble||e!==this.#i||(this.#g(e),e.pointerType===`touch`?(this.#m.destroy(),this.#p(e)):this.#m(e))};return e.addEventListener(`pointerdown`,t,!0),e.addEventListener(`pointerdown`,n),ws(()=>e.removeEventListener(`pointerdown`,t,!0),()=>e.removeEventListener(`pointerdown`,n),qr(e,`focusin`,this.#u))}#f=e=>{let t=e;t.defaultPrevented&&(t=Kc(e)),this.#e.current(e)};#p=e=>{if(!this.opts.ref.current){this.#c();return}let t=this.opts.isValidEvent.current(e,this.opts.ref.current)||Gc(e,this.opts.ref.current);if(!this.#r||this.#b()||!t){this.#c();return}let n=e;if(n.defaultPrevented&&(n=Kc(n)),this.#t.current!==`close`&&this.#t.current!==`defer-otherwise-close`)this.#c();else if(e.pointerType===`touch`){this.#c();let e=null,t=gc,n=e=>{t(),this.#f(e)};t=ws(qr(this.#o,`click`,n,{once:!0}),qr(this.#o,`click`,t=>{e=setTimeout(()=>n(t),0)},{once:!0,capture:!0}),()=>{e!==null&&clearTimeout(e),e=null}),this.#c=t}else this.#e.current(n)};#m=Ic(this.#p,10);#h=e=>{this.#n[e.type]=!0};#g=e=>{this.#n[e.type]=!1};#_=e=>{this.#i=e,this.opts.ref.current&&(this.#r=Wc(this.opts.ref.current))};#v=e=>this.opts.ref.current?Lc(this.opts.ref.current,e):!1;#y=()=>{for(let e in this.#n)this.#n[e]=!1;this.#r=!1,this.#i=null};#b(){return Object.values(this.#n).some(Boolean)}#x=()=>{this.#a=!0};#S=()=>{this.#a=!1};props={onfocuscapture:this.#x,onblurcapture:this.#S}};function Uc(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([e,{current:t}])=>t===`close`||t===`ignore`)}function Wc(e){let t=[...globalThis.bitsDismissableLayers],n=Uc(t);if(n)return n[0].opts.ref.current===e;let[r]=t[0];return r.opts.ref.current===e}function Gc(e,t){let n=e.target;if(!pc(n))return!1;let r=!!n.closest(`[${Bc}]`),i=!!t.closest(`[${Vc}]`);return`button`in e&&e.button>0&&!r?!1:`button`in e&&e.button===0&&r&&i?!0:r&&i?!1:Rc(n).documentElement.contains(n)&&!Lc(t,n)&&zc(e,t)}function Kc(e){let t=e.currentTarget,n=e.target,r;r=e instanceof PointerEvent?new PointerEvent(e.type,e):new PointerEvent(`pointerdown`,e);let i=!1;return new Proxy(r,{get:(r,a)=>a===`currentTarget`?t:a===`target`?n:a===`preventDefault`?()=>{i=!0,typeof r.preventDefault==`function`&&r.preventDefault()}:a===`defaultPrevented`?i:a in r?r[a]:e[a]})}function qc(e,t){k(t,!0);let n=X(t,`interactOutsideBehavior`,3,`close`),r=X(t,`onInteractOutside`,3,gc),i=X(t,`onFocusOutside`,3,gc),a=X(t,`isValidEvent`,3,()=>!1),o=Hc.create({id:Jo(()=>t.id),interactOutsideBehavior:Jo(()=>n()),onInteractOutside:Jo(()=>r()),enabled:Jo(()=>t.enabled),onFocusOutside:Jo(()=>i()),isValidEvent:Jo(()=>a()),ref:jr(()=>t.ref)});var s=V();ji(F(s),()=>t.children??f,()=>({props:o.props})),H(e,s),A()}globalThis.bitsEscapeLayers??=new Map;var Jc=class e{static create(t){return new e(t)}opts;domContext;constructor(e){this.opts=e,this.domContext=new ec(this.opts.ref);let t=gc;zs(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=this.#e()),()=>{t(),globalThis.bitsEscapeLayers.delete(this)}))}#e=()=>qr(this.domContext.getDocument(),`keydown`,this.#t,{passive:!1});#t=e=>{if(e.key!==`Escape`||!Yc(this))return;let t=new KeyboardEvent(e.type,e);e.preventDefault();let n=this.opts.escapeKeydownBehavior.current;(n===`close`||n===`defer-otherwise-close`)&&this.opts.onEscapeKeydown.current(t)}};function Yc(e){let t=[...globalThis.bitsEscapeLayers],n=t.findLast(([e,{current:t}])=>t===`close`||t===`ignore`);if(n)return n[0]===e;let[r]=t[0];return r===e}function Xc(e,t){k(t,!0);let n=X(t,`escapeKeydownBehavior`,3,`close`),r=X(t,`onEscapeKeydown`,3,gc);Jc.create({escapeKeydownBehavior:Jo(()=>n()),onEscapeKeydown:Jo(()=>r()),enabled:Jo(()=>t.enabled),ref:jr(()=>t.ref)});var i=V();ji(F(i),()=>t.children??f),H(e,i),A()}var Zc=class e{static instance;#e=Xo([]);#t=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||=new e,this.instance}register(e){let t=this.getActive();t&&t!==e&&t.pause();let n=$s(document);n&&n!==document.body&&this.#n.set(e,n),this.#e.current=this.#e.current.filter(t=>t!==e),this.#e.current.unshift(e),e.resume()}unregister(e){this.#e.current=this.#e.current.filter(t=>t!==e);let t=this.getActive();t&&t.resume()}getActive(){return this.#e.current[0]}setFocusMemory(e,t){this.#t.set(e,t)}getFocusMemory(e){return this.#t.get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,t){this.#n.set(e,t)}getPreFocusMemory(e){return this.#n.get(e)}clearPreFocusMemory(e){this.#n.delete(e)}},Qc=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],$c=Qc.join(`,`),el=typeof Element>`u`,tl=el?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,nl=!el&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},rl=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):rl(e.parentNode))},il=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},al=function(e,t,n){if(rl(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll($c));return t&&tl.call(e,$c)&&r.unshift(e),r=r.filter(n),r},ol=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!rl(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=ol(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{tl.call(a,$c)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!rl(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=ol(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},sl=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},cl=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||il(e))&&!sl(e)?0:e.tabIndex},ll=function(e,t){var n=cl(e);return n<0&&t&&!sl(e)?0:n},ul=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},dl=function(e){return e.tagName===`INPUT`},fl=function(e){return dl(e)&&e.type===`hidden`},pl=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},ml=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},hl=function(e){if(!e.name)return!0;var t=e.form||nl(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=ml(r,e.form);return!i||i===e},gl=function(e){return dl(e)&&e.type===`radio`},_l=function(e){return gl(e)&&!hl(e)},vl=function(e){var t=e&&nl(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=nl(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},yl=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},bl=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=tl.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(tl.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=nl(e);if(s&&!s.shadowRoot&&r(s)===!0)return yl(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(vl(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return yl(e);return!1},xl=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return tl.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},Sl=function(e,t){return!(t.disabled||fl(t)||bl(t,e)||pl(t)||xl(t))},Cl=function(e,t){return!(_l(t)||cl(t)<0||!Sl(e,t))},wl=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},Tl=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=ll(a,i),s=i?Tl(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(ul).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},El=function(e,t){return t||={},Tl(t.getShadowRoot?ol([e],t.includeContainer,{filter:Cl.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:wl}):al(e,t.includeContainer,Cl.bind(null,t)))},Dl=function(e,t){return t||={},t.getShadowRoot?ol([e],t.includeContainer,{filter:Sl.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):al(e,t.includeContainer,Sl.bind(null,t))},Ol=Qc.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),kl=function(e,t){if(t||={},!e)throw Error(`No node provided`);return tl.call(e,Ol)!==!1&&Sl(t,e)};function Al(e,t){let n=t.getRootNode();for(;e;){let t=e.getRootNode();if(t===n)return e;e=t!==e&&`host`in t?t.host:null}return null}var jl=class e{#e=!1;#t=null;#n=Zc.getInstance();#r=[];#i;constructor(e){this.#i=e}get paused(){return this.#e}pause(){this.#e=!0}resume(){this.#e=!1}#a(){for(let e of this.#r)e();this.#r=[]}mount(e){this.#t&&this.unmount(),this.#t=e,this.#n.register(this),this.#c(),this.#o()}unmount(){this.#t&&=(this.#a(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),null)}#o(){if(!this.#t)return;let e=new CustomEvent(`focusScope.onOpenAutoFocus`,{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!this.#t||this.#e||!this.#n.isActiveScope(this)||this.#t.contains(Al($s(this.#t.ownerDocument),this.#t)))return;let e=this.#u();e?(e.focus({preventScroll:!0}),this.#n.setFocusMemory(this,e)):this.#t.focus({preventScroll:!0})})}#s(){let e=new CustomEvent(`focusScope.onCloseAutoFocus`,{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(e),!e.defaultPrevented){let e=this.#n.getPreFocusMemory(this);if(e&&e.isConnected)try{e.focus({preventScroll:!0})}catch{document.body.focus()}}}#c(){if(!this.#t||!this.#i.trap.current)return;let e=this.#t,t=e.ownerDocument;this.#r.push(qr(t,`focusin`,t=>{if(this.#e||!this.#n.isActiveScope(this))return;let n=Al(t.composedPath()[0],e);if(n!==null&&e.contains(n))this.#n.setFocusMemory(this,n);else{let n=this.#n.getFocusMemory(this);if(n&&e.contains(n)&&kl(n))t.preventDefault(),n.focus({preventScroll:!0});else{let t=this.#u(),n=this.#d()[0];(t||n||e).focus({preventScroll:!0})}}},{capture:!0}),qr(e,`keydown`,e=>{if(!this.#i.loop||this.#e||e.key!==`Tab`||!this.#n.isActiveScope(this))return;let n=this.#l();if(n.length===0)return;let r=n[0],i=n[n.length-1];!e.shiftKey&&$s(t)===i?(e.preventDefault(),r.focus()):e.shiftKey&&$s(t)===r&&(e.preventDefault(),i.focus())}));let n=new MutationObserver(()=>{let t=this.#n.getFocusMemory(this);if(t&&!e.contains(t)){let t=this.#u(),n=this.#d()[0],r=t||n;r?(r.focus({preventScroll:!0}),this.#n.setFocusMemory(this,r)):e.focus({preventScroll:!0})}});n.observe(e,{childList:!0,subtree:!0}),this.#r.push(()=>n.disconnect())}#l(){return this.#t?El(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#l()[0]||null}#d(){return this.#t?Dl(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return zs([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(n||=new e(t),n.mount(r)):n&&=(n.unmount(),null)}),Vs(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}};function Ml(e,t){k(t,!0);let n=X(t,`enabled`,3,!1),r=X(t,`trapFocus`,3,!1),i=X(t,`loop`,3,!1),a=X(t,`onCloseAutoFocus`,3,gc),o=X(t,`onOpenAutoFocus`,3,gc),s=jl.use({enabled:Jo(()=>n()),trap:Jo(()=>r()),loop:jr(()=>i()),onCloseAutoFocus:Jo(()=>a()),onOpenAutoFocus:Jo(()=>o()),ref:jr(()=>t.ref)});var c=V();ji(F(c),()=>t.focusScope??f,()=>({props:s.props})),H(e,c),A()}var Nl=()=>{};globalThis.bitsTextSelectionLayers??=new Map;var Pl=class e{static create(t){return new e(t)}opts;domContext;#e=gc;#t=!1;#n=Nl;#r=Nl;constructor(e){this.opts=e,this.domContext=new ec(e.ref);let t=gc;zs(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([e,n,r])=>(this.#t=e,this.#n=n,this.#r=r,e&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=this.#i()),()=>{this.#t=!1,t(),this.#s(),globalThis.bitsTextSelectionLayers.delete(this)}))}#i(){return ws(qr(this.domContext.getDocument(),`pointerdown`,this.#o),qr(this.domContext.getDocument(),`pointerup`,this.#a))}#a=e=>{this.#s(),!e.defaultPrevented&&this.#r(e)};#o=e=>{if(!this.#t)return;this.#s();let t=this.opts.ref.current,n=e.target;fc(t)&&fc(n)&&Rl(this)&&Zs(t,n)&&(this.#n(e),!e.defaultPrevented&&(this.#e=Il(t,this.domContext.getDocument().body)))};#s=()=>{this.#e(),this.#e=gc}},Fl=e=>e.style.userSelect||e.style.webkitUserSelect;function Il(e,t){let n=Fl(t),r=Fl(e);return Ll(t,`none`),Ll(e,`text`),()=>{Ll(t,n),Ll(e,r)}}function Ll(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function Rl(e){let t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;let n=t.at(-1);return n?n[0]===e:!1}function zl(e,t){k(t,!0);let n=X(t,`preventOverflowTextSelection`,3,!0),r=X(t,`onPointerDown`,3,gc),i=X(t,`onPointerUp`,3,gc);Pl.create({id:Jo(()=>t.id),onPointerDown:Jo(()=>r()),onPointerUp:Jo(()=>i()),enabled:Jo(()=>t.enabled&&n()),ref:jr(()=>t.ref)});var a=V();ji(F(a),()=>t.children??f),H(e,a),A()}globalThis.bitsIdCounter??={current:0};function Bl(e=`bits`){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}var Vl=class{#e;#t=0;#n=M();#r;constructor(e){this.#e=e}#i(){--this.#t,this.#r&&this.#t<=0&&(this.#r(),N(this.#n,void 0),this.#r=void 0)}get(...e){return this.#t+=1,z(this.#n)===void 0&&(this.#r=Ln(()=>{N(this.#n,this.#e(...e),!0)})),Pn(()=>()=>{this.#i()}),z(this.#n)}},Hl=new Fs,Ul=[`padding-right`,`margin-right`,`overflow`,`overflow-x`,`overflow-y`,`pointer-events`,`--scrollbar-width`],Wl=null,Gl=!1,Kl=new Set,ql=null,Jl=null,Yl=!1;function Xl(e,t,n){e.setProperty(t,n),Kl.add(t),t===`overflow`&&(Kl.add(`overflow-x`),Kl.add(`overflow-y`))}var Zl=Jo(()=>{for(let e of Hl.values())if(e)return!0;return!1}),Ql=null,$l=new Vl(()=>{function e(e,t){let n=Wl?.get(t);n?.value?e.body.style.setProperty(t,n.value,n.priority):e.body.style.removeProperty(t)}function t(t){for(let n of Ul)Kl.has(n)&&e(t,n);!Gl&&t.body.style.length===0&&t.body.removeAttribute(`style`),Wl=null,Kl.clear(),uc&&ql?.()}function n(t){Kl.delete(`pointer-events`)&&e(t,`pointer-events`)}function r(){Jl!==null&&(window.clearTimeout(Jl),Jl=null)}function i(e,t){r(),Yl=!0,Ql=Date.now();let n=Ql,i=()=>{Jl=null,Ql===n&&(tu(Hl)?Yl=!1:(Yl=!1,t()))},a=e===null?24:e;Jl=window.setTimeout(i,a)}function a(){if(Wl===null&&Hl.size===0&&!Yl){Gl=document.body.hasAttribute(`style`),Wl=new Map;for(let e of Ul)Wl.set(e,{value:document.body.style.getPropertyValue(e),priority:document.body.style.getPropertyPriority(e)})}}return zs(()=>Zl.current,()=>{if(!Zl.current)return;a(),Yl=!1;let e=getComputedStyle(document.documentElement),t=getComputedStyle(document.body),n=e.scrollbarGutter?.includes(`stable`)||t.scrollbarGutter?.includes(`stable`),r=window.innerWidth-document.documentElement.clientWidth,i={padding:Number.parseInt(t.paddingRight??`0`,10)+r,margin:Number.parseInt(t.marginRight??`0`,10)};r>0&&!n&&(Xl(document.body.style,`padding-right`,`${i.padding}px`),Xl(document.body.style,`margin-right`,`${i.margin}px`),Xl(document.body.style,`--scrollbar-width`,`${r}px`)),Xl(document.body.style,`overflow`,`hidden`),uc&&(ql=qr(document,`touchmove`,e=>{e.target===document.documentElement&&(e.touches.length>1||e.preventDefault())},{passive:!1})),Hs(()=>{Xl(document.body.style,`pointer-events`,`none`),Xl(document.body.style,`overflow`,`hidden`)})}),Vs(()=>()=>{ql?.()}),{get lockMap(){return Hl},resetBodyStyle:t,restorePointerEvents:n,scheduleCleanupIfNoNewLocks:i,cancelPendingCleanup:r,ensureInitialStyleCaptured:a}}),eu=class{#e=Bl();#t;#n=()=>null;#r;locked;constructor(e,t=()=>null){this.#t=e,this.#n=t,this.#r=$l.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#e,this.#t??!1),this.locked=Jo(()=>this.#r.lockMap.get(this.#e)??!1,e=>this.#r.lockMap.set(this.#e,e)),Vs(()=>{if(this.#r.lockMap.delete(this.#e),tu(this.#r.lockMap))return;let e=this.#n(),t=document;this.#r.restorePointerEvents(t),this.#r.scheduleCleanupIfNoNewLocks(e,()=>{this.#r.resetBodyStyle(t)})}))}};function tu(e){for(let[t,n]of e)if(n)return!0;return!1}function nu(e,t){k(t,!0);let n=X(t,`preventScroll`,3,!0),r=X(t,`restoreScrollDelay`,3,null);jr(()=>{n()&&new eu(n(),()=>r())}),A()}var ru=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`forceMount`,`child`,`children`,`ref`]),iu=B(`<div><!></div>`);function au(e,t){let n=si();k(t,!0);let r=X(t,`id`,19,()=>_c(n)),i=X(t,`forceMount`,3,!1),a=X(t,`ref`,15,null),o=J(t,ru),s=wc.create({id:Jo(()=>r()),ref:Jo(()=>a(),e=>a(e))}),c=j(()=>js(o,s.props));var l=V(),u=F(l),d=e=>{var n=V(),r=F(n),i=e=>{var n=V(),r=F(n);{let e=j(()=>({props:js(z(c)),...s.snippetProps}));ji(r,()=>t.child,()=>z(e))}H(e,n)},a=e=>{var n=iu();la(n,e=>({...e}),[()=>js(z(c))]),ji(P(n),()=>t.children??f,()=>s.snippetProps),D(n),H(e,n)};W(r,e=>{t.child?e(i):e(a,-1)}),H(e,n)};W(u,e=>{(s.shouldRender||i())&&e(d)}),H(e,l),A()}var ou=cc({component:`checkbox`,parts:[`root`,`group`,`group-label`,`input`]}),su=new Is(`Checkbox.Group`),cu=new Is(`Checkbox.Root`),lu=class e{static create(t,n=null){return cu.set(new e(t,n))}opts;group;#e=j(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current);get trueName(){return z(this.#e)}set trueName(e){N(this.#e,e)}#t=j(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current);get trueRequired(){return z(this.#t)}set trueRequired(e){N(this.#t,e)}#n=j(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current);get trueDisabled(){return z(this.#n)}set trueDisabled(e){N(this.#n,e)}#r=j(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current);get trueReadonly(){return z(this.#r)}set trueReadonly(e){N(this.#r,e)}attachment;constructor(e,t){this.opts=e,this.group=t,this.attachment=tc(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),zs.pre([()=>Ye(this.group?.opts.value.current),()=>this.opts.value.current],([e,t])=>{e&&t&&(this.opts.checked.current=e.includes(t))}),zs.pre(()=>this.opts.checked.current,e=>{this.group&&(e?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}onkeydown(e){this.trueDisabled||this.trueReadonly||(e.key===`Enter`?(e.preventDefault(),this.opts.type.current===`submit`&&(e.currentTarget.form??e.currentTarget.closest(`form`))?.requestSubmit()):e.key===` `&&(e.preventDefault(),this.#i()))}#i(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}onclick(e){this.trueDisabled||this.trueReadonly||(this.opts.type.current===`submit`||e.preventDefault(),this.#i())}#a=j(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return z(this.#a)}set snippetProps(e){N(this.#a,e)}#o=j(()=>({id:this.opts.id.current,role:`checkbox`,type:this.opts.type.current,form:this.opts.form.current,disabled:this.trueDisabled,"aria-checked":oc(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":nc(this.trueRequired),"aria-readonly":nc(this.trueReadonly),"data-disabled":rc(this.trueDisabled),"data-readonly":rc(this.trueReadonly),"data-state":du(this.opts.checked.current,this.opts.indeterminate.current),[ou.root]:``,onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return z(this.#o)}set props(e){N(this.#o,e)}},uu=class e{static create(){return new e(cu.get())}root;#e=j(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current);get trueChecked(){return z(this.#e)}set trueChecked(e){N(this.#e,e)}#t=j(()=>!!this.root.trueName);get shouldRender(){return z(this.#t)}set shouldRender(e){N(this.#t,e)}constructor(e){this.root=e,this.onfocus=this.onfocus.bind(this)}onfocus(e){fc(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}#n=j(()=>({type:`checkbox`,checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,form:this.root.opts.form.current,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus}));get props(){return z(this.#n)}set props(e){N(this.#n,e)}};function du(e,t){return t?`indeterminate`:e?`checked`:`unchecked`}var fu=new Set([`$$slots`,`$$events`,`$$legacy`,`value`]),pu=B(`<input/>`);function mu(e,t){k(t,!0);let n=X(t,`value`,15),r=J(t,fu),i=j(()=>js(r,{"aria-hidden":`true`,tabindex:-1,style:{...Ms,position:`absolute`,top:`0`,left:`0`}}));var a=V(),o=F(a),s=e=>{var t=pu();la(t,()=>({...z(i),value:n(),defaultChecked:z(i).checked})),H(e,t)},c=e=>{var t=pu(),r=e=>n(e.currentTarget.value);la(t,()=>({...z(i),value:n(),defaultValue:n()??``,oninput:r})),H(e,t)};W(o,e=>{z(i).type===`checkbox`?e(s):e(c,-1)}),H(e,a),A()}function hu(e,t){k(t,!0);let n=uu.create();var r=V(),i=F(r),a=e=>{mu(e,Y(()=>n.props))};W(i,e=>{n.shouldRender&&e(a)}),H(e,r),A()}var gu=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`ref`,`onCheckedChange`,`children`,`disabled`,`required`,`name`,`form`,`value`,`id`,`indeterminate`,`onIndeterminateChange`,`child`,`type`,`readonly`]),_u=B(`<button><!></button>`),vu=B(`<!> <!>`,1);function yu(e,t){let n=si();k(t,!0);let r=X(t,`checked`,15,!1),i=X(t,`ref`,15,null),a=X(t,`disabled`,3,!1),o=X(t,`required`,3,!1),s=X(t,`name`,3,void 0),c=X(t,`form`,3,void 0),l=X(t,`value`,3,`on`),u=X(t,`id`,19,()=>_c(n)),d=X(t,`indeterminate`,15,!1),p=X(t,`type`,3,`button`),m=J(t,gu),h=su.getOr(null);jr(()=>{h&&l()&&(h.opts.value.current.includes(l())?r(!0):r(!1))}),zs.pre(()=>l(),()=>{h&&l()&&(h.opts.value.current.includes(l())?r(!0):r(!1))});let g=lu.create({checked:Jo(()=>r(),e=>{r(e),t.onCheckedChange?.(e)}),disabled:Jo(()=>a()??!1),required:Jo(()=>o()),name:Jo(()=>s()),form:Jo(()=>c()),value:Jo(()=>l()),id:Jo(()=>u()),ref:Jo(()=>i(),e=>i(e)),indeterminate:Jo(()=>d(),e=>{d(e),t.onIndeterminateChange?.(e)}),type:Jo(()=>p()),readonly:Jo(()=>!!t.readonly)},h),_=j(()=>js({...m},g.props));var v=vu(),y=F(v),b=e=>{var n=V(),r=F(n);{let e=j(()=>({props:z(_),...g.snippetProps}));ji(r,()=>t.child,()=>z(e))}H(e,n)},x=e=>{var n=_u();la(n,()=>({...z(_)})),ji(P(n),()=>t.children??f,()=>g.snippetProps),D(n),H(e,n)};W(y,e=>{t.child?e(b):e(x,-1)}),hu(L(y,2),{}),H(e,v),A()}function bu(e,t){k(t,!0);let n=X(t,`open`,15,!1),r=X(t,`onOpenChange`,3,gc),i=X(t,`onOpenChangeComplete`,3,gc);bc.create({variant:Jo(()=>`dialog`),open:Jo(()=>n(),e=>{n(e),r()(e)}),onOpenChangeComplete:Jo(()=>i())});var a=V();ji(F(a),()=>t.children??f),H(e,a),A()}var xu=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`disabled`]),Su=B(`<button><!></button>`);function Cu(e,t){let n=si();k(t,!0);let r=X(t,`id`,19,()=>_c(n)),i=X(t,`ref`,15,null),a=X(t,`disabled`,3,!1),o=J(t,xu),s=xc.create({variant:Jo(()=>`close`),id:Jo(()=>r()),ref:Jo(()=>i(),e=>i(e)),disabled:Jo(()=>!!a())}),c=j(()=>js(o,s.props));var l=V(),u=F(l),d=e=>{var n=V();ji(F(n),()=>t.child,()=>({props:z(c)})),H(e,n)},p=e=>{var n=Su();la(n,()=>({...z(c)})),ji(P(n),()=>t.children??f),D(n),H(e,n)};W(u,e=>{t.child?e(d):e(p,-1)}),H(e,l),A()}var wu=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`ref`,`forceMount`,`onCloseAutoFocus`,`onOpenAutoFocus`,`onEscapeKeydown`,`onInteractOutside`,`trapFocus`,`preventScroll`,`preventOverflowTextSelection`,`restoreScrollDelay`]),Tu=B(`<!> <!>`,1),Eu=B(`<!> <div><!></div>`,1);function Du(e,t){let n=si();k(t,!0);let r=X(t,`id`,19,()=>_c(n)),i=X(t,`ref`,15,null),a=X(t,`forceMount`,3,!1),o=X(t,`onCloseAutoFocus`,3,gc),s=X(t,`onOpenAutoFocus`,3,gc),c=X(t,`onEscapeKeydown`,3,gc),l=X(t,`onInteractOutside`,3,gc),u=X(t,`trapFocus`,3,!0),d=X(t,`preventScroll`,3,!0),p=X(t,`preventOverflowTextSelection`,3,!0),m=X(t,`restoreScrollDelay`,3,null),h=J(t,wu),g=Cc.create({id:Jo(()=>r()),ref:Jo(()=>i(),e=>i(e))}),_=j(()=>js(h,g.props));var v=V(),y=F(v),b=e=>{Ml(e,{get ref(){return g.opts.ref},loop:!0,get trapFocus(){return u()},get enabled(){return g.root.opts.open.current},get onOpenAutoFocus(){return s()},get onCloseAutoFocus(){return o()},focusScope:(e,n)=>{let r=()=>(n?.()).props;Xc(e,Y(()=>z(_),{get enabled(){return g.root.opts.open.current},get ref(){return g.opts.ref},onEscapeKeydown:e=>{c()(e),!e.defaultPrevented&&g.root.handleClose()},children:(e,n)=>{qc(e,Y(()=>z(_),{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},onInteractOutside:e=>{l()(e),!e.defaultPrevented&&g.root.handleClose()},children:(e,n)=>{zl(e,Y(()=>z(_),{get preventOverflowTextSelection(){return p()},get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},children:(e,n)=>{var i=V(),a=F(i),o=e=>{var n=Tu(),i=F(n),a=e=>{nu(e,{get preventScroll(){return d()},get restoreScrollDelay(){return m()}})};W(i,e=>{g.root.opts.open.current&&e(a)});var o=L(i,2);{let e=j(()=>({props:js(z(_),r()),...g.snippetProps}));ji(o,()=>t.child,()=>z(e))}H(e,n)},s=e=>{var n=Eu(),i=F(n);nu(i,{get preventScroll(){return d()}});var a=L(i,2);la(a,e=>({...e}),[()=>js(z(_),r())]),ji(P(a),()=>t.children??f),D(a),H(e,n)};W(a,e=>{t.child?e(o):e(s,-1)}),H(e,i)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};W(y,e=>{(g.shouldRender||a())&&e(b)}),H(e,v),A()}var Ou={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`}],[`path`,{d:`m6 6 12 12`}]]};Ou.node;var ku=new Set([`$$slots`,`$$events`,`$$legacy`]);function Au(e,t){let n=J(t,ku);Pa(e,Y(()=>n,{get icon(){return Ou}}))}var ju=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Mu=(e,t)=>({classGroupId:e,validator:t}),Nu=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Pu=`-`,Fu=[],Iu=`arbitrary..`,Lu=e=>{let t=Bu(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return zu(e);let n=e.split(Pu);return Ru(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?ju(i,t):t:i||Fu}return n[e]||Fu}}},Ru=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Ru(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Pu):e.slice(t).join(Pu),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},zu=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Iu+r:void 0})(),Bu=e=>{let{theme:t,classGroups:n}=e;return Vu(n,t)},Vu=(e,t)=>{let n=Nu();for(let r in e){let i=e[r];Hu(i,n,r,t)}return n},Hu=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Uu(i,t,n,r)}},Uu=(e,t,n,r)=>{typeof e==`string`?Wu(e,t,n):typeof e==`function`?Gu(e,t,n,r):Ku(e,t,n,r)},Wu=(e,t,n)=>{let r=e===``?t:qu(t,e);r.classGroupId=n},Gu=(e,t,n,r)=>{Ju(e)?Hu(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(Mu(n,e)))},Ku=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Hu(o,qu(t,a),n,r)}},qu=(e,t)=>{let n=e,r=t.split(Pu),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Nu(),n.nextPart.set(t,i)),n=i}return n},Ju=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Yu=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Xu=`!`,Zu=`:`,Qu=[],$u=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),ed=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Zu){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Xu)?(c=s.slice(0,-1),l=!0):s.startsWith(Xu)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return $u(t,l,c,u)};if(t){let e=t+Zu,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):$u(Qu,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},td=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},nd=e=>({cache:Yu(e.cacheSize),parseClassName:ed(e),sortModifiers:td(e),postfixLookupClassGroupIds:rd(e),...Lu(e)}),rd=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},id=/\s+/,ad=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(id),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h||(g=r(p),!g)){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Xu:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},od=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=sd(n))&&(i&&(i+=` `),i+=r);return i},sd=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=sd(e[r]))&&(n&&(n+=` `),n+=t);return n},cd=(e,...t)=>{let n,r,i,a,o=o=>(n=nd(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ad(e,n);return i(e,a),a};return a=o,(...e)=>a(od(...e))},ld=[],ud=e=>{let t=t=>t[e]||ld;return t.isThemeGetter=!0,t.themeKey=e,t},dd=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fd=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,md=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,_d=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yd=e=>pd.test(e),bd=e=>!!e&&!Number.isNaN(Number(e)),xd=e=>!!e&&Number.isInteger(Number(e)),Sd=e=>e.endsWith(`%`)&&bd(e.slice(0,-1)),Cd=e=>md.test(e),wd=()=>!0,Td=e=>hd.test(e)&&!gd.test(e),Ed=()=>!1,Dd=e=>_d.test(e),Od=e=>vd.test(e),kd=e=>!Z(e)&&!Q(e),Ad=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),jd=e=>Kd(e,Xd,Ed),Z=e=>dd.test(e),Md=e=>Kd(e,Zd,Td),Nd=e=>Kd(e,Qd,bd),Pd=e=>Kd(e,ef,wd),Fd=e=>Kd(e,$d,Ed),Id=e=>Kd(e,Jd,Ed),Ld=e=>Kd(e,Yd,Od),Rd=e=>Kd(e,tf,Dd),Q=e=>fd.test(e),zd=e=>qd(e,Zd),Bd=e=>qd(e,$d),Vd=e=>qd(e,Jd),Hd=e=>qd(e,Xd),Ud=e=>qd(e,Yd),Wd=e=>qd(e,tf,!0),Gd=e=>qd(e,ef,!0),Kd=(e,t,n)=>{let r=dd.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},qd=(e,t,n=!1)=>{let r=fd.exec(e);return r?r[1]?t(r[1]):n:!1},Jd=e=>e===`position`||e===`percentage`,Yd=e=>e===`image`||e===`url`,Xd=e=>e===`length`||e===`size`||e===`bg-size`,Zd=e=>e===`length`,Qd=e=>e===`number`,$d=e=>e===`family-name`,ef=e=>e===`number`||e===`weight`,tf=e=>e===`shadow`,nf=cd(()=>{let e=ud(`color`),t=ud(`font`),n=ud(`text`),r=ud(`font-weight`),i=ud(`tracking`),a=ud(`leading`),o=ud(`breakpoint`),s=ud(`container`),c=ud(`spacing`),l=ud(`radius`),u=ud(`shadow`),d=ud(`inset-shadow`),f=ud(`text-shadow`),p=ud(`drop-shadow`),m=ud(`blur`),h=ud(`perspective`),g=ud(`aspect`),_=ud(`ease`),v=ud(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Q,Z],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Q,Z,c],ee=()=>[yd,`full`,`auto`,...w()],te=()=>[xd,`none`,`subgrid`,Q,Z],ne=()=>[`auto`,{span:[`full`,xd,Q,Z]},xd,Q,Z],re=()=>[xd,`auto`,Q,Z],ie=()=>[`auto`,`min`,`max`,`fr`,Q,Z],ae=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],oe=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],se=()=>[`auto`,...w()],ce=()=>[yd,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],le=()=>[s,yd,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ue=()=>[yd,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],T=()=>[e,Q,Z],de=()=>[...b(),Vd,Id,{position:[Q,Z]}],fe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],pe=()=>[`auto`,`cover`,`contain`,Hd,jd,{size:[Q,Z]}],me=()=>[Sd,zd,Md],he=()=>[``,`none`,`full`,l,Q,Z],ge=()=>[``,bd,zd,Md],_e=()=>[`solid`,`dashed`,`dotted`,`double`],ve=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ye=()=>[bd,Sd,Vd,Id],be=()=>[``,`none`,m,Q,Z],xe=()=>[`none`,bd,Q,Z],Se=()=>[`none`,bd,Q,Z],Ce=()=>[bd,Q,Z],we=()=>[yd,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Cd],breakpoint:[Cd],color:[wd],container:[Cd],"drop-shadow":[Cd],ease:[`in`,`out`,`in-out`],font:[kd],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Cd],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Cd],shadow:[Cd],spacing:[`px`,bd],text:[Cd],"text-shadow":[Cd],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,yd,Z,Q,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Q,Z]}],"container-named":[Ad],columns:[{columns:[bd,`auto`,Z,Q,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{"inset-s":ee(),start:ee()}],end:[{"inset-e":ee(),end:ee()}],"inset-bs":[{"inset-bs":ee()}],"inset-be":[{"inset-be":ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[xd,`auto`,Q,Z]}],basis:[{basis:[yd,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[bd,yd,`auto`,`initial`,`none`,Z]}],grow:[{grow:[``,bd,Q,Z]}],shrink:[{shrink:[``,bd,Q,Z]}],order:[{order:[xd,`first`,`last`,`none`,Q,Z]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ae(),`normal`]}],"justify-items":[{"justify-items":[...oe(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...oe()]}],"align-content":[{content:[`normal`,...ae()]}],"align-items":[{items:[...oe(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...oe(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...oe(),`baseline`]}],"place-self":[{"place-self":[`auto`,...oe()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:se()}],mx:[{mx:se()}],my:[{my:se()}],ms:[{ms:se()}],me:[{me:se()}],mbs:[{mbs:se()}],mbe:[{mbe:se()}],mt:[{mt:se()}],mr:[{mr:se()}],mb:[{mb:se()}],ml:[{ml:se()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ce()}],"inline-size":[{inline:[`auto`,...le()]}],"min-inline-size":[{"min-inline":[`auto`,...le()]}],"max-inline-size":[{"max-inline":[`none`,...le()]}],"block-size":[{block:[`auto`,...ue()]}],"min-block-size":[{"min-block":[`auto`,...ue()]}],"max-block-size":[{"max-block":[`none`,...ue()]}],w:[{w:[s,`screen`,...ce()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ce()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ce()]}],h:[{h:[`screen`,`lh`,...ce()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ce()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...ce()]}],"font-size":[{text:[`base`,n,zd,Md]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Gd,Pd]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Sd,Z]}],"font-family":[{font:[Bd,Fd,t]}],"font-features":[{"font-features":[Z]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,Q,Z]}],"line-clamp":[{"line-clamp":[bd,`none`,Q,Nd]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,Q,Z]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Q,Z]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[..._e(),`wavy`]}],"text-decoration-thickness":[{decoration:[bd,`from-font`,`auto`,Q,Md]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[bd,`auto`,Q,Z]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[xd,Q,Z]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Q,Z]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Q,Z]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:pe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},xd,Q,Z],radial:[``,Q,Z],conic:[``,xd,Q,Z]},Ud,Ld]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:me()}],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:ge()}],"border-w-x":[{"border-x":ge()}],"border-w-y":[{"border-y":ge()}],"border-w-s":[{"border-s":ge()}],"border-w-e":[{"border-e":ge()}],"border-w-bs":[{"border-bs":ge()}],"border-w-be":[{"border-be":ge()}],"border-w-t":[{"border-t":ge()}],"border-w-r":[{"border-r":ge()}],"border-w-b":[{"border-b":ge()}],"border-w-l":[{"border-l":ge()}],"divide-x":[{"divide-x":ge()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ge()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[..._e(),`hidden`,`none`]}],"divide-style":[{divide:[..._e(),`hidden`,`none`]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[..._e(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[bd,Q,Z]}],"outline-w":[{outline:[``,bd,zd,Md]}],"outline-color":[{outline:T()}],shadow:[{shadow:[``,`inner`,`none`,u,Wd,Rd]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":[`none`,d,Wd,Rd]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:ge()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[bd,Md]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":[`none`,f,Wd,Rd]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[bd,Q,Z]}],"mix-blend":[{"mix-blend":[...ve(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ve()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[bd]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Q,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[bd]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:pe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Q,Z]}],filter:[{filter:[``,`none`,Q,Z]}],blur:[{blur:be()}],brightness:[{brightness:[bd,Q,Z]}],contrast:[{contrast:[bd,Q,Z]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Wd,Rd]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:[``,bd,Q,Z]}],"hue-rotate":[{"hue-rotate":[bd,Q,Z]}],invert:[{invert:[``,bd,Q,Z]}],saturate:[{saturate:[bd,Q,Z]}],sepia:[{sepia:[``,bd,Q,Z]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Q,Z]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[bd,Q,Z]}],"backdrop-contrast":[{"backdrop-contrast":[bd,Q,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,bd,Q,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[bd,Q,Z]}],"backdrop-invert":[{"backdrop-invert":[``,bd,Q,Z]}],"backdrop-opacity":[{"backdrop-opacity":[bd,Q,Z]}],"backdrop-saturate":[{"backdrop-saturate":[bd,Q,Z]}],"backdrop-sepia":[{"backdrop-sepia":[``,bd,Q,Z]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Q,Z]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[bd,`initial`,Q,Z]}],ease:[{ease:[`linear`,`initial`,_,Q,Z]}],delay:[{delay:[bd,Q,Z]}],animate:[{animate:[`none`,v,Q,Z]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Q,Z]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:xe()}],"rotate-x":[{"rotate-x":xe()}],"rotate-y":[{"rotate-y":xe()}],"rotate-z":[{"rotate-z":xe()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":[`scale-3d`],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[Q,Z,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":[`translate-none`],zoom:[{zoom:[xd,Q,Z]}],accent:[{accent:T()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Q,Z]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Q,Z]}],fill:[{fill:[`none`,...T()]}],"stroke-w":[{stroke:[bd,zd,Md,Nd]}],stroke:[{stroke:[`none`,...T()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function $(...e){return nf(Ii(e))}var rf=Array.isArray,af=e=>{if(!e&&e!==0&&e!==0n)return``;if(typeof e==`string`)return e;if(typeof e==`number`)return e===e?``+e:``;if(typeof e==`bigint`)return``+e;let t=``;if(rf(e)){let n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!n&&n!==0&&n!==0n)continue;let i=typeof n==`string`?n:af(n);i&&(t&&(t+=` `),t+=i)}return t}if(typeof e==`object`)for(let n in e)e[n]&&(t&&(t+=` `),t+=n);return t},of=/\s+/g,sf=Array.isArray,cf=e=>typeof e!=`string`||!e?e:e.replace(of,` `).trim(),lf=/ {2}|[\t-\r\u00a0]/,uf=e=>{let t=e.length;return t===0?!1:e.charCodeAt(0)===32||e.charCodeAt(t-1)===32||lf.test(e)},df=e=>uf(e)?cf(e):e,ff=function(){let e=arguments.length,t=``,n=0;for(;n<e;n++){let e=arguments[n];if(e||e===0||e===0n){if(typeof e!=`string`)break;t&&(t+=` `),t+=e}}for(;n<e;n++){let e=arguments[n];if(!e&&e!==0&&e!==0n)continue;let r=typeof e==`string`?e:af(e);r&&(t&&(t+=` `),t+=r)}return t?uf(t)?cf(t):t:``},pf=e=>e===!1?`false`:e===!0?`true`:e===0?`0`:e,mf=e=>{if(!e||typeof e!=`object`)return!0;for(let t in e)return!1;return!0},hf=(e,t)=>{let n=e;for(let e in t)if(Object.hasOwn(t,e)){let r=t[e];n[e]=e in n?ff(n[e],r):r}return e},gf=(e,t)=>{for(let n=0;n<e.length;n++){let r=e[n];sf(r)?gf(r,t):r&&t.push(r)}},_f=(...e)=>{let t=[];return gf(e,t),t},vf=e=>typeof e==`object`&&!!e&&!sf(e),yf=(e,t)=>{let n=e,r=t,i={};for(let e in n){let t=n[e];if(e in r){let n=r[e];i[e]=sf(t)||sf(n)?_f(n,t):vf(t)&&vf(n)?yf(t,n):vf(t)&&typeof n==`string`?yf(t,{base:n}):typeof t==`string`&&vf(n)?yf({base:t},n):n+` `+t}else i[e]=t}for(let e in r)e in n||(i[e]=r[e]);return i},bf={twMerge:!0,twMergeConfig:{}},xf=256,Sf=Symbol(`tv-cache-miss`),Cf=e=>e?.class!=null&&e.class!==``||e?.className!=null&&e.className!==``,wf=Symbol(`tv-non-finite`),Tf=(e,t)=>{if(typeof t==`number`&&!Number.isFinite(t))throw wf;return t},Ef=e=>{if(e===void 0)return``;if(e===null)return`null`;let t=typeof e;if(t===`string`)return e;if(t===`boolean`)return e?`true`:`false`;if(t===`number`||t===`bigint`)return String(e);if(t===`object`)try{return JSON.stringify(e,Tf)}catch{return null}return null},Df=0,Of=1,kf=2,Af=0,jf=1,Mf=2,Nf=3,Pf=0,Ff=1,If=2,Lf=e=>{let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},Rf=e=>typeof e==`number`&&!Number.isFinite(e),zf=(e,t,n)=>{try{return e.kinds[t]=Nf,e.tokens[t]=JSON.stringify(n,Tf),!0}catch{return!1}},Bf=(e,t,n)=>{if(typeof n!=`object`||!n)return e.kinds[t]=Af,e.tokens[t]=n,!0;if(Array.isArray(n)){for(let r=0;r<n.length;r++){let i=n[r];if(typeof i==`object`&&i)return zf(e,t,n);if(Rf(i))return!1}return e.kinds[t]=jf,e.tokens[t]=n.slice(),!0}if(Lf(n)){let r=[];for(let i in n){let a=n[i];if(Rf(a))return!1;if(typeof a==`object`&&a)return zf(e,t,n);if(typeof a==`bigint`)return!1;r.push(i,a)}return e.kinds[t]=Mf,e.tokens[t]=r,!0}return zf(e,t,n)},Vf=(e,t,n)=>{if(e===Af)return Object.is(t,n)?Pf:Ff;if(typeof n!=`object`||!n)return Ff;if(e===jf){let e=t;if(!Array.isArray(n)||n.length!==e.length)return Ff;for(let t=0;t<e.length;t++)if(!Object.is(e[t],n[t]))return Ff;return Pf}if(e===Mf){if(Array.isArray(n)||!Lf(n))return Ff;let e=t,r=0;for(let t in n){if(r>=e.length||e[r]!==t||!Object.is(e[r+1],n[t]))return Ff;r+=2}return r===e.length?Pf:Ff}try{return JSON.stringify(n,Tf)===t?Pf:Ff}catch{return If}},Hf=e=>Array.isArray(e)?e:void 0,Uf=(e,t,n)=>{let r=Hf(n);e.kinds[t]=r===void 0?Af:jf,e.tokens[t]=r===void 0?void 0:r.slice()},Wf=(e,t,n)=>{let r=0;for(let n=0;n<t.length;n++){let{conditionKeys:i,source:a}=t[n];for(let t=0;t<i.length;t++)if(!Bf(e,r++,a[i[t]]))return!1;if(!Bf(e,r++,a.class)||!Bf(e,r++,a.className))return!1}for(let t=0;t<n.length;t++){let{conditionKeys:i,source:a}=n[t];for(let t=0;t<i.length;t++)if(!Bf(e,r++,a[i[t]]))return!1;if(Uf(e,r++,a.slots),!Bf(e,r++,a.class)||!Bf(e,r++,a.className))return!1}return e.kinds.length=r,e.tokens.length=r,!0},Gf=({kinds:e,tokens:t},n,r)=>{let i=e.length,a=0,o;for(let r=0;r<n.length;r++){let{conditionKeys:s,source:c}=n[r];if(a+s.length+2>i)return Ff;for(let n=0;n<s.length;n++,a++)if(o=Vf(e[a],t[a],c[s[n]]),o!==Pf)return o;if(o=Vf(e[a],t[a],c.class),o!==Pf||(a++,o=Vf(e[a],t[a],c.className),o!==Pf))return o;a++}for(let n=0;n<r.length;n++){let{conditionKeys:s,source:c}=r[n];if(a+s.length+3>i)return Ff;for(let n=0;n<s.length;n++,a++)if(o=Vf(e[a],t[a],c[s[n]]),o!==Pf)return o;if(o=Vf(e[a],t[a],Hf(c.slots)),o!==Pf||(a++,o=Vf(e[a],t[a],c.class),o!==Pf)||(a++,o=Vf(e[a],t[a],c.className),o!==Pf))return o;a++}return a===i?Pf:Ff},Kf=()=>{let e=null;return(t,n)=>{if(e!==null){let r=Gf(e,t,n);if(r===Pf)return Df;if(r===If)return e=null,kf}let r={kinds:[],tokens:[]};return Wf(r,t,n)?(e=r,Of):(e=null,kf)}},qf=Symbol(`tv-uncacheable`),Jf=()=>({children:new Map,hasLeaf:!1,leaf:void 0}),Yf=(e,t,n,r)=>{let i=t[e];return n&&n[e]!==void 0&&(i=n[e]),r&&r[e]!==void 0&&(i=r[e]),i},Xf=(e,t,n)=>{let r=e.children.get(t);if(!r){if(!n)return;r=Jf(),e.children.set(t,r)}return r},Zf=(e,t=xf)=>{let n=Jf(),r=null,i=0,a=Object.create(null);for(let t=0;t<e.length;t++)a[e[t]]=1;let o=(e,t,n)=>{let r=null,i=null;for(let t in e)t===`class`||t===`className`||a[t]||((i??=Object.create(null))[t]=1,(r??=[]).push(t));if(t)for(let e in t)e===`class`||e===`className`||a[e]||i?.[e]||t[e]===void 0||((i??=Object.create(null))[e]=1,(r??=[]).push(e));if(n)for(let e in n)e===`class`||e===`className`||a[e]||i?.[e]||n[e]===void 0||((i??=Object.create(null))[e]=1,(r??=[]).push(e));return r&&r.length>1&&r.sort(),r},s=(t,n,r,i,a,o)=>{let s=t;for(let t=0;t<e.length;t++){let a=Ef(Yf(e[t],n,r,i));if(a===null)return qf;if(s=Xf(s,a,o),!s)return}if(a)for(let e=0;e<a.length;e++){let t=a[e],c=Ef(Yf(t,n,r,i));if(c===null)return qf;if(s=Xf(s,t+`\0`+c,o),!s)return}return s};return{get(e,t,a){let c=o(e,t,a),l=s(n,e,t,a,c,!1);if(l===qf)return qf;if(l&&l.hasLeaf)return l.leaf;if(r){let o=s(r,e,t,a,c,!1);if(o===qf)return qf;if(o&&o.hasLeaf){let r=s(n,e,t,a,c,!0);return r!==qf&&r&&(r.hasLeaf||i++,r.hasLeaf=!0,r.leaf=o.leaf),o.leaf}}return Sf},set(e,a,c,l){i>=t&&(r=n,n=Jf(),i=0);let u=o(e,a,c),d=s(n,e,a,c,u,!0);d!==qf&&d&&(d.hasLeaf||i++,d.hasLeaf=!0,d.leaf=l)},clear(){n=Jf(),r=null,i=0}}},Qf=e=>(t,n)=>Cf(n)?e.override(t,n.class,n.className):t,$f=()=>({base:void 0,variants:{},defaultVariants:{},slots:{},compoundVariants:[],compoundSlots:[]}),ep=e=>({base:e.base,variants:e.variants??{},defaultVariants:e.defaultVariants??{},slots:e.slots??{},compoundVariants:e.compoundVariants??[],compoundSlots:e.compoundSlots??[]}),tp=(e,t)=>{let n=e.base!=null||t.base!=null?ff(e.base,t.base):void 0,r=mf(t.variants)?e.variants:mf(e.variants)?t.variants:yf(t.variants,e.variants),i=mf(t.defaultVariants)?e.defaultVariants:{...e.defaultVariants,...t.defaultVariants},a=mf(e.slots),o=mf(t.slots),s;s=a&&o?{}:a?e.base==null?{...t.slots}:hf({base:e.base},{...t.slots}):o?t.base==null?{...e.slots}:hf({...e.slots},{base:t.base}):hf({...e.slots},t.slots);let c=mf(t.compoundVariants)?e.compoundVariants:mf(e.compoundVariants)?t.compoundVariants:_f(e.compoundVariants,t.compoundVariants),l=mf(t.compoundSlots)?e.compoundSlots:mf(e.compoundSlots)?t.compoundSlots:_f(e.compoundSlots,t.compoundSlots);return{base:n,variants:r,defaultVariants:i,slots:s,compoundVariants:c,compoundSlots:l}},np=e=>{let t=$f();for(let n=0;n<e.length;n++)t=tp(t,ep(e[n]));return t},rp=e=>e?df(af(e)):``,ip=e=>{let t=rp(e.class),n=rp(e.className);return t?n?t+` `+n:t:n},ap=(e,t,n)=>{if(!n)return;let r=e[t];e[t]=r?r+` `+n:n},op=e=>{let t={},n=[e.class,e.className];for(let e=0;e<n.length;e++){let r=n[e];if(typeof r==`string`||Array.isArray(r))ap(t,`base`,rp(r));else if(r&&typeof r==`object`)for(let e in r)ap(t,e,rp(r[e]))}return t},sp=(e,t)=>{let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e[i];n.push({key:i,values:a,isEmpty:mf(a),normalizedFrom:null,normalized:null})}return n},cp=(e,t,n,r)=>{let i;if(!r||typeof n==`string`||Array.isArray(n))i=rp(n);else if(n&&typeof n==`object`){let e={};for(let t in n){let r=rp(n[t]);r&&(e[t]=r)}i=e}else i=``;return(e.normalizedFrom??={})[t]=n,(e.normalized??={})[t]=i,i},lp=(e,t)=>{for(let t=0;t<e.length;t++)e[t].classes=null,e[t].slotClasses=null;for(let e=0;e<t.length;e++)t[e].classes=null},up=e=>{if(!Array.isArray(e)||e.length===0)return[];let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=[];for(let e in r)e!==`class`&&e!==`className`&&i.push(e);t.push({conditionKeys:i,source:r,classes:null,slotClasses:null})}return t},dp=e=>{if(!Array.isArray(e)||e.length===0)return[];let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=[];for(let e in r)e!==`slots`&&e!==`class`&&e!==`className`&&i.push(e);t.push({conditionKeys:i,source:r,classes:null})}return t},fp=e=>{let t={};for(let n=0;n<e.length;n++){let r=e[n],i=r.source.slots;if(Array.isArray(i))for(let e=0;e<i.length;e++){let n=i[e];t[n]||(t[n]=[]),t[n].push(r)}}return t},pp=(e,t)=>{let{extend:n=null,base:r,slots:i,variants:a={},compoundVariants:o=[],compoundSlots:s=[],defaultVariants:c={}}=e,l=i!==void 0,u=l?i:{},d=n,f=null;if(Array.isArray(d)){let e=d.filter(Boolean);e.length===1?f=e[0]:e.length>1&&(f=np(e))}else d!=null&&(f=d);let p={...bf,...t},m=f?.base?ff(f.base,r):r,h=f?.variants&&!mf(f.variants)?yf(a,f.variants):a,g=f?.defaultVariants&&!mf(f.defaultVariants)?{...f.defaultVariants,...c}:c,_=!f?.slots||mf(f.slots),v=l?_&&f?.base?ff(r,f.base):typeof r==`string`||r==null?r:ff(r):void 0,y=l?{base:v,...u}:{},b=_?y:hf({...f?.slots},mf(y)?{base:r}:y),x=!f?.compoundVariants||mf(f.compoundVariants)?o:_f(f?.compoundVariants,o),S=!f?.compoundSlots||mf(f.compoundSlots)?s:_f(f?.compoundSlots,s),C=Object.keys(h);return{config:p,extend:d,base:m,variants:h,defaultVariants:g,slots:b,compoundVariants:x,compoundSlots:S,compiledVariants:null,compiledCompoundVariants:null,compiledCompoundSlots:null,compiledCompoundSlotsBySlot:null,deferredError:x&&!Array.isArray(x)?TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof x}`):S&&!Array.isArray(S)?TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof S}`):null,mode:l||!_?`slots`:C.length===0?`plain`:`variants`,slotKeys:null,variantKeys:C}},mp=e=>(e.compiledVariants===null&&(e.compiledVariants=sp(e.variants,e.variantKeys),e.compiledCompoundVariants=up(e.compoundVariants),e.compiledCompoundSlots=dp(e.compoundSlots),e.compiledCompoundSlotsBySlot=fp(e.compiledCompoundSlots),e.slotKeys=Object.keys(e.slots)),e),hp=[],gp=[],_p=(e,t,n,r)=>{let i=t[e];return n&&n[e]!==void 0&&(i=n[e]),r&&r[e]!==void 0&&(i=r[e]),i},vp=e=>e==null||e===!1,yp=(e,t)=>{if(!Array.isArray(e))return e===t||vp(e)&&vp(t);for(let n=0;n<e.length;n++){let r=e[n];if(r===t||vp(r)&&vp(t))return!0}return!1},bp=(e,t)=>`${pf(e[t])||`false`}`,xp=(e,t,n,r,i)=>{if(e.isEmpty)return``;let a=r?.[e.key]??n?.[e.key];if(a===null)return``;let o=pf(a);if(typeof o==`object`)return``;let s=t?.[e.key],c=(o??pf(s))||`false`,l=e.values[c];if(!l)return``;if(typeof l==`string`)return l;let u=e.normalizedFrom;return u!==null&&u[c]===l?e.normalized[c]:cp(e,c,l,i)},Sp=(e,t)=>typeof e==`string`?t===`base`?e:``:e[t]??``,Cp=(e,t,n,r)=>{let{conditionKeys:i,source:a}=e;for(let e=0;e<i.length;e++){let o=i[e];if(!yp(a[o],_p(o,t,n,r)))return!1}return!0},wp=(e,t,n,r,i,a)=>{for(let o=0;o<n.length;o++){let s=n[o],c=xp(s,r,i,void 0,!1);c&&(e[t++]=c,a&&(a[s.key]=c))}return t},Tp=(e,t,n,r,i,a,o,s)=>{for(let c=0;c<r.length;c++){let l=r[c],u=Sp(xp(l,i,a,o,!0),n);u&&(e[t++]=u,s&&(s[l.key]=u))}return t},Ep=(e,t,n,r,i)=>{for(let a=0;a<n.length;a++){let o=n[a],s=o.classes;s!==``&&Cp(o,r,i)&&(s===null&&(s=o.classes=ip(o.source)),s&&(e[t++]=s))}return t},Dp=(e,t,n,r,i,a,o)=>{for(let s=0;s<r.length;s++){let c=r[s],l=c.slotClasses;if(l!==null&&!l[n]||!Cp(c,i,a,o))continue;l===null&&(l=c.slotClasses=op(c.source));let u=l[n];u&&(e[t++]=u)}return t},Op=(e,t,n,r,i,a)=>{for(let o=0;o<n.length;o++){let s=n[o],c=s.classes;c!==``&&Cp(s,r,i,a)&&(c===null&&(c=s.classes=ip(s.source)),c&&(e[t++]=c))}return t},kp=0,Ap=1,jp=2,Mp=(e,t)=>{let n=Object.create(null);for(let t=0;t<e.length;t++){let r=e[t].conditionKeys;for(let e=0;e<r.length;e++)n[r[e]]=1}for(let e=0;e<t.length;e++){let r=t[e].conditionKeys;for(let e=0;e<r.length;e++)n[r[e]]=1}return n},Np=(e,t,n,r)=>{let i=Ap;for(let a in e){let o=e[a];if(a===`class`||a===`className`){o!=null&&o!==``&&(i=jp);continue}if(o===void 0)continue;if(t[a]===void 0){if(r()[a])return kp;continue}let s=n[a];if(o===s)continue;if(o===null)return kp;let c=typeof o;if(c===typeof s&&(c===`string`||c===`boolean`)&&o!==``&&s!==``)return kp;let l=pf(o);if(typeof l==`object`||`${l||`false`}`!==bp(n,a))return kp}return i},Pp=()=>({defaults:[],optionKeys:[],options:[]}),Fp=(e,t,n)=>{for(let r=0;r<e.length;r++){let i=e[r],a=bp(t,i.key);n.defaults[r]=t[i.key],n.optionKeys[r]=a,n.options[r]=i.isEmpty?void 0:i.values[a]}},Ip=(e,t,n)=>{for(let r=0;r<e.length;r++){let i=e[r];if(t[i.key]!==n.defaults[r]||!i.isEmpty&&i.values[n.optionKeys[r]]!==n.options[r])return!1}return!0},Lp=(e,t)=>{let{base:n,deferredError:r}=e,i=Sf,a=Qf(t);return(e=>{if(r)throw r;if(i===Sf){let e=rp(n);gp[0]=e,i=t.parts(gp,+!!e)}return a(i,e)})},Rp=(e,t)=>{let{base:n,defaultVariants:r,deferredError:i,variantKeys:a,variants:o}=e,s=e.compiledCompoundVariants,c=e.compiledVariants,l=hp,u=``,d=!1,f=null,p=null,m=null,h=Qf(t),g=1,_=null,v=null,y=()=>{(c===null||s===null)&&(mp(e),c=e.compiledVariants,s=e.compiledCompoundVariants,l=e.compiledCompoundSlots??hp,u=rp(n),d=s.length>0||l.length>0)},b=()=>f??=Mp(s,l),x=e=>{let n=gp,i=0;return u&&(n[i++]=u),i=wp(n,i,c,r,e),s.length>0&&(i=Ep(n,i,s,r,e)),t.parts(n,i)},S=()=>{let e=(m??=Kf())(s,l);return e===Df||(lp(s,l),e!==kf&&(p=null,_=null,!0))},C=()=>(_!==null&&Ip(c,r,v)||(_=x(void 0),Fp(c,r,v??=Pp())),_);return(e=>{if(i)throw i;y();let t=e==null?Ap:Np(e,o,r,b);if(t!==kp){let n;return d?g>0?(g=0,n=x(e)):n=S()?C():x(e):(g=0,n=C()),t===jp?h(n,e):n}let n;if(g>0)g--,n=x(e);else if(d&&!S())n=x(e);else{p??=Zf(a);let t=p.get(r,e);t===qf?n=x(e):t===Sf?(n=x(e),p.set(r,e,void 0,n)):n=t}return h(n,e)})},zp=(e,t)=>{let{defaultVariants:n,deferredError:r,slots:i,variantKeys:a,variants:o}=e,s=null,c=null,l=null,u=null,d=null,f=!1,p=null,m=null,h=null,g=null,_=1,v=null,y=null,b=null,x=()=>{if(u!==null)return;(e.compiledVariants===null||e.compiledCompoundVariants===null||e.compiledCompoundSlots===null||e.compiledCompoundSlotsBySlot===null||e.slotKeys===null)&&mp(e),s=e.compiledVariants,c=e.compiledCompoundVariants,l=e.compiledCompoundSlots;let r=e.compiledCompoundSlotsBySlot;u=e.slotKeys,f=c.length>0||l.length>0,m=Qf(t);let a=Array(u.length);for(let e=0;e<u.length;e++){let o=u[e],l=r[o]??hp,d,p=``;a[e]=(e,r)=>{let a=gp,u=0,m=i[o];return m!==d&&(d=m,p=rp(m)),p&&(a[u++]=p),u=Tp(a,u,o,s,n,e,r),f&&(u=Dp(a,u,o,c,n,e,r),u=Op(a,u,l,n,e,r)),t.parts(a,u)}}d=a},S=e=>{let t=u,n=d,r=m,i={};for(let a=0;a<t.length;a++){let o=n[a],s=o(e,void 0);i[t[a]]=t=>{if(t==null)return s;let n=!1;for(let e in t)if(e!==`class`&&e!==`className`&&t[e]!==void 0){n=!0;break}return r(n?o(e,t):s,t)}}return i},C=()=>{let e=(g??=Kf())(c,l);return e===Df||(lp(c,l),e!==kf&&(h=null,v=null,!0))},w=()=>p??=Mp(c,l),ee=()=>{if(!Ip(s,n,y))return!1;let e=u,t=b;for(let n=0;n<e.length;n++)if(i[e[n]]!==t[n])return!1;return!0},te=()=>{if(v===null||!ee()){v=S(void 0),Fp(s,n,y??=Pp());let e=u,t=b??=[];for(let n=0;n<e.length;n++)t[n]=i[e[n]]}return v};return(e=>{if(r)throw r;if(x(),(e==null?Ap:Np(e,o,n,w))!==kp)return f?_>0?(_=0,S(e)):C()?te():S(e):(_=0,te());if(_>0)return _--,S(e);if(f&&!C())return S(e);h??=Zf(a);let t=h.get(n,e);if(t===qf)return S(e);if(t!==Sf)return t;let i=S(e);return h.set(n,e,void 0,i),i})},Bp=(e,t)=>{if(e.mode===`plain`)return Lp(e,t);let n;return(r=>(n??=e.mode===`slots`?zp(e,t):Rp(e,t),n(r)))},Vp=(e,t)=>{let n={...e,...t};return e.twMergeConfig&&t.twMergeConfig&&(n.twMergeConfig={...e.twMergeConfig,...t.twMergeConfig}),n},Hp=(e,t)=>{e.variantKeys=t.variantKeys,e.extend=t.extend,e.base=t.base,e.slots=t.slots,e.variants=t.variants,e.defaultVariants=t.defaultVariants,e.compoundSlots=t.compoundSlots,e.compoundVariants=t.compoundVariants},Up=(e,t)=>{let n=(n,r)=>{let i=pp(n,r),a=Bp(i,e(i.config));return Hp(a,i),t?t(a,i,Hp):a};return{tv:n,createTV:e=>(t,r)=>n(t,r&&e?Vp(e,r):r??e)}},Wp=`line`in Error(),Gp=-1,Kp=-1,qp=(e,t,n)=>{let r=2166136261;for(let i=t;i<n;i++)r=Math.imul(r^e.charCodeAt(i),16777619);return r},Jp=(e,t,n)=>{let r=n-t,i=Math.imul(r,2654435761)^e.charCodeAt(t);if(r>3){let a=r>>2,o=r>>1;i=Math.imul(i^e.charCodeAt(t+1)<<8^e.charCodeAt(t+2)<<16^e.charCodeAt(t+a),2246822507),i=Math.imul(i^e.charCodeAt(t+o)<<8^e.charCodeAt(t+o+a)<<16^e.charCodeAt(n-3),3266489909),i^=e.charCodeAt(n-2)<<8^e.charCodeAt(n-1)<<16;for(let r=t+3,a=n-4;r<t+8&&r<a;r++,a--)i=Math.imul(i^e.charCodeAt(r)^e.charCodeAt(a)<<8,16777619)}return i^i>>>15},Yp=(e,t,n={})=>{let{GROUP_COUNT:r,edgeStart:i,labelStart:a,labelText:o,edgeTarget:s,nodeGroup:c,nodeVlist:l,vlistPat:u,vlistOps:d,vlistRef:f,vlistGroup:p,litAnchor:m,litGroup:h,litPool:g,poolOffsets:_,poolText:v,adjGid:y,adjStart:b,adjTgt:x,patGid:S,patTgt:C,postfixLookupGroups:w,customValidatorNames:ee,orderSensitiveModifiers:te}=e,ne=new Int32Array(r).fill(-1);for(let e=0;e<y.length;e++)ne[y[e]]=e;let re=0;for(let e=0;e+1<b.length;e++){let t=b[e+1]-b[e];t>re&&(re=t)}let ie=32;for(;ie<2*(1+re+S.length);)ie<<=1;let ae=new Int32Array(f.length+1);for(let e=0;e<f.length;e++)ae[e+1]=ae[e]+u[f[e]+1]-u[f[e]];let oe=new Uint8Array(r);for(let e=0;e<w.length;e++)oe[w[e]]=1;let se=i.length-1,ce=new Uint8Array(se),le=0,ue=!0;for(let e=0;e<m.length;e++){ce[m[e]]=1;let t=_[g[e]*2+1];t>le&&(le=t);let n=v.charCodeAt(_[g[e]*2]);(n===91||n===40)&&(ue=!1)}let T=1;for(;T<m.length*2;)T<<=1;let de=new Int32Array(T).fill(-1);for(let e=0;e<m.length;e++){let t=_[g[e]*2],n=(qp(v,t,t+_[g[e]*2+1])^Math.imul(m[e],2654435761)|0)&T-1;for(;de[n]!==-1;)n=n+1&T-1;de[n]=e}let fe=(e,t,n,r)=>{let i=(qp(t,n,r)^Math.imul(e,2654435761)|0)&T-1,a=r-n;for(;;){let r=de[i];if(r===-1)return-1;if(m[r]===e&&_[g[r]*2+1]===a){let e=_[g[r]*2],i=!0;for(let r=0;r<a;r++)if(v.charCodeAt(e+r)!==t.charCodeAt(n+r)){i=!1;break}if(i)return h[r]}i=i+1&T-1}},pe=n.cacheSize??8192,me=n.prefix??e.prefix??``,he=me===``?``:me+`:`,ge=he.length,_e=(ee??[]).map(e=>{let n=t&&t[e];if(!n)throw Error(`cn: missing validator `+e);return n}),ve=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ye=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,be=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Se=0,Ce=-1,we=-1,Te=-1,Ee=-1,E=e=>e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||e===95,De=e=>/\s/.test(String.fromCharCode(e)),Oe=(e,t,n)=>{if(Se=0,Ce=-1,n-t<3)return;let r=e.charCodeAt(t),i=e.charCodeAt(n-1);if(r===91&&i===93)Se=1;else if(r===40&&i===41)Se=2;else return;Te=t+1,Ee=n-1;let a=t+1;if(E(e.charCodeAt(a))){for(a++;a<n-1;){let t=e.charCodeAt(a);if(!E(t)&&t!==45)break;a++}a<n-2&&e.charCodeAt(a)===58&&(Ce=t+1,we=a,Te=a+1)}},ke=(e,t,n,r)=>{if(n-t!==r.length)return!1;for(let n=0;n<r.length;n++)if(e.charCodeAt(t+n)!==r.charCodeAt(n))return!1;return!0},Ae=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,D=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,O=e=>!!e&&!Number.isNaN(Number(e)),je=(e,t,n)=>{if(n-t<11||!ke(e,t,t+10,`@container`))return!1;if(e.charCodeAt(t+10)===47)return n-t>=12;let r=e.charCodeAt(t+11);return r===115&&n-t>=17&&ke(e,t+10,t+16,`-size/`)||r===110&&n-t>=19&&ke(e,t+10,t+18,`-normal/`)},Me=[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2],Ne=`length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight`.split(`|`).map(e=>e.split(` `)),Pe=[2,3,3,6,0,0,4,5,0,0,0,0,0,1,1],Fe=(e,t,n,r)=>{if(e>=10){if(e>=25)return _e[e-25](t.slice(n,r));let i=e-10;if(Se!==Me[i])return!1;if(Ce>=0){for(let e of Ne[i])if(ke(t,Ce,we,e))return!0;return!1}switch(Pe[i]){case 0:return!1;case 1:return!0;case 2:{let e=t.slice(Te,Ee);return ve.test(e)&&!ye.test(e)}case 3:return O(t.slice(Te,Ee));case 4:return xe.test(t.slice(Te,Ee));case 5:return be.test(t.slice(Te,Ee));default:return!O(t.slice(Te,Ee))}}switch(e){case 0:return!0;case 1:return Se===0;case 2:return Se===1;case 3:return Se===2;case 4:return Ae.test(t.slice(n,r));case 5:return O(t.slice(n,r));case 6:{let e=t.slice(n,r);return!!e&&Number.isInteger(Number(e))}case 7:return r>n&&t.charCodeAt(r-1)===37&&O(t.slice(n,r-1));case 8:return D.test(t.slice(n,r));default:return je(t,n,r)}},Ie=new Set(typeof te==`string`?te.split(` `):te),Le=(e,t,n,r,i,a)=>{let o=qp(t,n,r)^(i?2654435769:0),s=e.get(o);if(s!==void 0)outer:for(let e=0;e<s.length;e++){let a=s[e];if(a.imp===i&&a.k.length===r-n){for(let e=0;e<a.k.length;e++)if(a.k.charCodeAt(e)!==t.charCodeAt(n+e))continue outer;return a.id}}else e.set(o,s=[]);let c=t.slice(n,r),l=a(c);return s.push({k:c,imp:i,id:l}),l},Re=new Map,ze=new Map,Be=2,Ve=4096,He=(e,t)=>{let n=[],r=0,i=0,a=0;for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);r===0&&i===0&&o===58?(n.push(e.slice(a,t)),a=t+1):o===91?r++:o===93?r--:o===40?i++:o===41&&i--}n.push(e.slice(a));let o=n[0];if(n.length>1){let e=[],t=[];for(let r of n)r.charCodeAt(0)===91||Ie.has(r)?(t.length&&(e.push(...t.sort()),t=[]),e.push(r)):t.push(r);t.length&&e.push(...t.sort()),o=e.join(`:`)}let s=t?o+` !`:o,c=ze.get(s);return c===void 0&&ze.set(s,c=Be++),c},Ue=new Map,We=r,Ge=r+4096,Ke=()=>We++,qe=2097152,Je=8192,Ye=new Int32Array(Je),Xe=Array(Je).fill(null),Ze=new Int32Array(Je),Qe=new Int32Array(Je),$e=new Uint8Array(Je),et=0,tt=(e,t,n,r,i,a,o,s)=>{let c=e;if(Xe[e]!==null){if(Xe[e|1]===null)c=e|1;else if(!(et++&3))c=e|et>>2&1;else return}Xe[c]=t.slice(n,r),Ye[c]=i,Ze[c]=a,Qe[c]=o,$e[c]=s},nt=()=>Xe.fill(null),rt=256,it=[new Int32Array(rt),new Int32Array(rt),new Int32Array(rt),new Int32Array(rt)],[k,A,at,ot]=it,st=new Uint8Array(rt),ct=new Uint8Array(rt),lt=()=>{rt*=2,it=it.map(e=>{let t=new Int32Array(rt);return t.set(e),t}),[k,A,at,ot]=it;let e=new Uint8Array(rt);e.set(st),st=e,ct=new Uint8Array(rt)},ut=64,dt=new Int32Array(ut),ft=new Int32Array(ut),pt=new Int32Array(r),mt=2048,ht=21,gt=new Float64Array(mt),_t=new Int32Array(mt),vt=0,yt=(e,t)=>{if(e===0&&t<r)return pt[t]===vt?1:(pt[t]=vt,0);let n=e*2097152+t+1,i=Math.imul(n,2654435761)>>>ht;for(;_t[i]===vt;){if(gt[i]===n)return 1;i=i+1&mt-1}return gt[i]=n,_t[i]=vt,0},bt=(e,t,n,r,i)=>{if(n-t>=2&&e.charCodeAt(t)===91&&e.charCodeAt(n-1)===93){let r=-1;for(let i=t+1;i<n-1;i++)if(e.charCodeAt(i)===58){r=i;break}return r===-1||r===t+1?Gp:Le(Ue,e,t+1,r,0,Ke)}if(r>=0&&c[r]>=0)return c[r];for(let t=i-1;t>=0;t--){let r=ft[t];if(r>n)continue;let i=dt[t],a=n-r;if(ce[i]===1&&a>0&&a<=le){let t=e.charCodeAt(r);if(ue===!1||t!==91&&t!==40){let t=fe(i,e,r,n);if(t>=0)return t}}let o=l[i];if(o<0)continue;let s=f[o],c=u[s],m=u[s+1];if(c===m)continue;Oe(e,r,n);let h=ae[o]-c;for(let t=c;t<m;t++)if(Fe(d[t],e,r,n))return p[h+t]}return Gp},xt=e=>{let t=e.length,n=0,c=0,u=!1;(Be>Ve||Re.size>Ve)&&(Re=new Map,ze=new Map,Be=2,nt()),We>Ge&&(Ue=new Map,We=r,nt());let d=0;for(;d<t;){let f=e.charCodeAt(d);if(f===32||f>=9&&f<=13||f>=160&&De(f)){f!==32&&(u=!0),d++;continue}let p=d,m=0;for(;d<t;){if(f=e.charCodeAt(d),f<=32){if(f===32)break;if(f>=9&&f<=13){u=!0;break}}else if(f>=160&&De(f)){u=!0;break}m=Math.imul(m^f,16777619),d++}let h=d,g=h-p;n===rt&&lt();let _=n++;k[_]=p,A[_]=h,c+=g,m^=Math.imul(g,2654435761);let v=m^m>>>15,y=v&8190;{let t=-1;if(Ye[y]===v&&Xe[y]!==null&&Xe[y].length===g?t=y:Ye[y|1]===v&&Xe[y|1]!==null&&Xe[y|1].length===g&&(t=y|1),t>=0){let n=Xe[t],r=!0;for(let t=0;t<g;t++)if(n.charCodeAt(t)!==e.charCodeAt(p+t)){r=!1;break}if(r){at[_]=Ze[t],ot[_]=Qe[t],st[_]=$e[t];continue}}}let b=p;if(ge!==0){if(h-p<=ge||!e.startsWith(he,p)){at[_]=Gp,tt(y,e,p,h,v,Gp,0,0);continue}b=p+ge}let x=0,S=0,C=-1,w=-1;for(let t=b;t<h;t++){let n=e.charCodeAt(t);if(x===0&&S===0){if(n===58){C=t;continue}if(n===47){w=t;continue}}n===91?x++:n===93?x--:n===40?S++:n===41&&S--}let ee=C>=b?C+1:b,te=ee,ne=h,re=!1,ie=0;ne>te&&e.charCodeAt(ne-1)===33?(re=!0,ne--):ne>te&&e.charCodeAt(te)===33&&(re=!0,te++,ie=1);let ae=-1;w>ee&&(ae=w+ie,ae>=ne&&(ae=-1));let se=te;ne-te>1&&e.charCodeAt(te)===45&&(se=te+1);let le=0,ue=0,T=0,de=-1,fe=0;(l[0]>=0||ce[0]===1)&&(dt[0]=0,ft[0]=se,fe=1);let pe=Kp,me=0;for(let t=se;t<ne;t++)if(t===ae&&(pe=ue<T?Kp:le,me=fe),le!==Kp){let n=e.charCodeAt(t),r=-1;if(ue<T)o.charCodeAt(ue)===n?(ue++,ue===T&&(r=le=de)):le=Kp;else{let e=i[le],t=i[le+1],c=Kp;for(let i=e;i<t;i++){let e=a[i];if(o.charCodeAt(e)===n){a[i+1]-e===1?r=c=s[i]:(ue=e+1,T=a[i+1],de=s[i],c=le);break}}le=c}if(r>=0&&(l[r]>=0||ce[r]===1)&&t+1<ne&&e.charCodeAt(t+1)===45){if(fe===ut){ut*=2;let e=new Int32Array(ut);e.set(dt),dt=e;let t=new Int32Array(ut);t.set(ft),ft=t}dt[fe]=r,ft[fe]=t+2,fe++}}ae===ne&&(pe=ue<T?Kp:le,me=fe);let _e=ue<T?Kp:le,ve,ye=!1;if(ae>=0){if(ye=!0,ve=bt(e,te,ae,pe,me),ve!==Gp&&ve<r&&oe[ve]){let t=bt(e,te,ne,_e,fe);t!==Gp&&t!==ve&&(ve=t,ye=!1)}else ve===Gp&&(ve=bt(e,te,ne,_e,fe),ye=!1)}else ve=bt(e,te,ne,_e,fe);let be=0,xe=0;ve===Gp?at[_]=Gp:(xe=+!!ye,be=b>=C?+!!re:Le(Re,e,b,C,+!!re,e=>He(e,re)),at[_]=ve,st[_]=xe,ot[_]=be),tt(y,e,p,h,v,ve,be,xe)}if(n===0)return``;if(n===1)return k[0]===0&&A[0]===t?e:e.slice(k[0],A[0]);if(n*ie>mt){for(;n*ie>mt;)mt<<=1,ht--;gt=new Float64Array(mt),_t=new Int32Array(mt)}if(Be>=qe||We>=qe)throw Error(`cn: too many distinct classes in one merge`);vt=vt+1|0,vt===0&&(pt.fill(0),_t.fill(0),vt=1);let f=!1;for(let e=n-1;e>=0;e--){let t=at[e];if(t===Gp){ct[e]=1;continue}let n=ot[e];if(yt(n,t)===1)ct[e]=0,f=!0;else if(ct[e]=1,t<r){let r=ne[t];if(r>=0)for(let e=b[r];e<b[r+1];e++)yt(n,x[e]);if(st[e]&1)for(let e=0;e<S.length;e++)S[e]===t&&yt(n,C[e])}}if(!f&&!u&&t===c+n-1)return e;let p=``,m=0;for(;m<n;){if(!ct[m]){m++;continue}let t=k[m],r=A[m],i=m+1;for(;i<n&&ct[i]&&k[i]===r+1&&e.charCodeAt(r)===32;)r=A[i],i++;p.length>0&&(p+=` `),p+=e.slice(t,r),m=i}return p},St=16384,Ct=new Int32Array(St*2),wt=0,Tt=1,Et=Object.create(null),Dt=Object.create(null),j=new Map,Ot=new Map,kt=0,At=0,jt=()=>{wt^=St,Tt=Tt+1|0,At=0},Mt=e=>{let t=Et[e];if(t!==void 0)return t;let n=Jp(e,0,e.length),r=(n&16383)+wt,i=Ct[r]===(n^Tt)||Ct[r^St]===(n^Tt-1);return i&&(t=Dt[e],t!==void 0)?(Et[e]=t,t):(t=xt(e),i?(Et[e]=t,++kt>pe&&(kt=0,Dt=Et,Et=Object.create(null),jt())):(Ct[r]=n^Tt,++At>St&&jt()),t)},Nt=e=>{let t=j.get(e);if(t!==void 0)return t;let n=Jp(e,0,e.length),r=(n&16383)+wt,i=Ct[r]===(n^Tt)||Ct[r^St]===(n^Tt-1);return i&&(t=Ot.get(e),t!==void 0)?(j.set(e,t),t):(t=xt(e),i?(j.set(e,t),++kt>pe&&(kt=0,Ot=j,j=new Map,jt())):(Ct[r]=n^Tt,++At>St&&jt()),t)},Pt=e=>{let t=Jp(e,0,e.length),n=(t&16383)+wt;return Ct[n]===(t^Tt)||Ct[n^St]===(t^Tt-1)||(Ct[n]=t^Tt,++At>St&&jt(),!1)},Ft=pe===0?xt:Wp?e=>{let t=j.get(e);return t===void 0?Nt(e):t}:Mt;return{merge:function(){return arguments.length===1&&typeof arguments[0]==`string`?Ft(arguments[0]):Ft(Qp.apply(null,arguments))},mergeString:Ft,seenBefore:pe===0?()=>!1:Pt,mergeUncached:xt}},Xp=(e,t)=>{if(!e)return``;if(typeof e==`string`)return e;let n=``;if(typeof e.length==`number`&&(!t||Array.isArray(e))){let r=e;for(let e=0;e<r.length;e++){let i=r[e];if(!i)continue;let a=typeof i==`string`?i:Xp(i,t);a&&(n&&(n+=` `),n+=a)}return n}if(t){if(typeof e==`number`)return``+e;if(typeof e==`object`)for(let t in e)e[t]&&(n&&(n+=` `),n+=t)}return n},Zp=(e,t)=>{let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(!i)continue;let a=typeof i==`string`?i:Xp(i,t);a&&(n&&(n+=` `),n+=a)}return n},Qp=function(){return Zp(arguments,!1)},$p=256,em=16,tm=1024,nm=4096,rm=(e,t)=>{let n=t===void 0?()=>!0:t.seenBefore,r=t===void 0?e:t.mergeUncached,i=new Map,a=new Map,o=0,s=null,c=null,l=[],u=[],d=0,f=(t,n,r)=>{c===null&&(c=Array(nm).fill(``),l=Array(nm).fill(``),u=Array(nm).fill(``));let i=Jp(t,0,t.length)&nm-2;if(c[i]===t&&l[i]===n)return u[i];if(c[i|1]===t&&l[i|1]===n)return u[i|1];let a=e(r?n+` `+t:t),o=c[i]===``?i:i|(c[i|1]===``?1:d++&1);return c[o]=t,l[o]=n,u[o]=a,a},p=(e,t,n,r)=>{let i=0;if(t){if(t!==e.a0)return!1;i=1}if(n){if(n!==(i===0?e.a0:e.a1))return!1;i++}if(r){if(r!==(i===0?e.a0:i===1?e.a1:e.a2))return!1;i++}return i===e.t},m=(e,t)=>{let n=e.a,r=0;for(let e=0;e<t.length;e++){let i=t[e];if(i){if(i!==n[r])return!1;r++}}return r===e.t},h=(t,c)=>{let l=t.length,u=s===null?null:s.n;if(!c){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let d=``,p=-1,h=0,g=!1;for(let e=0;e<l;e++){let n=t[e];if(n){if(typeof n!=`string`){if(n=t[e]=Xp(n,!0),!n)continue;g=!0}p<0&&(d=n,p=e),h++}}if(h===0)return``;if(h===1)return e(d);if(g){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let _=i.get(d);_===void 0&&(_=a.get(d),_!==void 0&&i.set(d,_));let v=null;if(_!==void 0){if(_.skip>0){_.skip--,s=null;let e=d;for(let n=p+1;n<l;n++){let r=t[n];r&&(e+=` `+r)}return f(e,``,!1)}let e=_.e;outer:for(let n=0;n<e.length;n++){let r=e[n];if(r.t!==h)continue;let i=r.a,a=1;for(let e=p+1;e<l;e++){let n=t[e];if(n&&n!==i[a++])continue outer}v=r;break}v!==null&&(_.miss=0)}if(v===null){let s=d,c=[d];for(let e=p+1;e<l;e++){let n=t[e];n&&(s+=` `+n,c.push(n))}if(!n(s))return r(s);v={r:e(s),t:c.length,a0:c[0],a1:c[1],a2:c[2]??``,a:c,n:null},_===void 0?i.set(d,_={e:[],miss:0,skip:0,at:0}):++_.miss>em&&(_.miss=em,_.skip=tm,_.e.length=0,_.at=0);let u=_.e;u.length<$p?u.push(v):(u[_.at]=v,_.at=_.at+1&$p-1),++o>1e3&&(o=0,a=i,i=new Map)}return s!==null&&s!==v&&(s.n=v),s=v,v.r},g=t=>Array.isArray(t)?h(t.slice(),!1):t===0||t===0n?`0`:e(Xp(t,!0));return function(t,n,r){let a=arguments.length;if((a|1)==3){let e=s;if(e!==null){let i=e.n;if(i!==null&&p(i,t,n,r))return s=i,i.r;if(e!==i&&p(e,t,n,r))return e.r}if(a===2&&typeof n==`string`&&n!==``){let e=i.get(t);if(e!==void 0&&e.skip>0)return e.skip--,s=null,f(n,t,!0)}return h([t,n,r],!0)}if(a===1)return typeof t==`string`?e(t):g(t);let o=s;if(o!==null){let e=o.n;if(e!==null){let t=e.a,n=0,r=!0;for(let e=0;e<a;e++){let i=arguments[e];if(i){if(i!==t[n]){r=!1;break}n++}}if(r&&n===e.t)return s=e,e.r}if(o!==e){let e=o.a,t=0,n=!0;for(let r=0;r<a;r++){let i=arguments[r];if(i){if(i!==e[t]){n=!1;break}t++}}if(n&&t===o.t)return o.r}}let c=[];for(let e=0;e<a;e++)c.push(arguments[e]);return h(c,!0)}},im=48,am=(e,t=0)=>{let n=new Int32Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r)-im-t;return n},om=e=>{let t=new Int32Array(e.length+1);for(let n=0;n<e.length;n++)t[n+1]=t[n]+e[n];return t},sm=e=>{let t=new Int32Array(e.length),n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r)-im;n+=i>>>1^-(i&1),t[r]=n}return t},cm=384,lm=[],um=om(am(`E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010`)),dm=om(am(`:11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3`)),fm=`@containerabcdefghinlmoprstunderlineviawzccentlignnimatespectuto-colsrowsaglorightnessckdrop-sisbcontrastfiltergrayscalehue-rotateinvertopacityslurrightnessaturateepia-coniclinearpositionradialsizeockurrderttom-belrstxyespacing-xyaretoursorlnt-umnsendspantartainentrasteividerop-shadowurationcorationlay-xyasendillexontromlter-featuresstretchapr-xyayscaleidow-colsrowsue-rotatedentlinesetvert-beringsxyeshadoweiadingftnest-clamp-imageabein-lrstxyskx--b-coniclpositionrsizet-x-y-fromto-fromto-inearfromto-fromto-adialfromto-fromtofromtofromtofromtoblockhinlinew-screenesblockhinlinewbjectpacityrutlinederigin-offsetbelrstxyesrspective-originaceholderioghtng-offsettateundedw-xyz-belrstlreseslr-endspantartaturatecepiahizekewpace-taleroll-xyz-barmpbelrstxyesbelrstxyes-thumbrackadowrink-xyxyartrokeabextora-shadowpckingnsformitionlate-xyz-offsetill-changeoom`,pm=(()=>{let e=um.length-1,t=new Int32Array(e);for(let n=e-1;n>=0;n--){let e=1,r=n+1;for(let i=um[n];i<um[n+1];i++)e+=t[r],r+=t[r];t[n]=e}let n=new Int32Array(um[e]),r=0;for(let i=0;i<e;i++){let e=i+1;for(let a=um[i];a<um[i+1];a++)n[r++]=e,e+=t[e]}return n})(),mm=am(`02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000…ŏ000ˆ0000ŏ0000000000—0000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000`,1),hm=om(am(`1233333593464636351265367151576`)),gm=am(`93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0324325853;D>E?3257D>03258432585:0325B:;0328B:032`),_m=am(`012113445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EJK4444::EJ4444441691;644444114244444:;L6666555555555555555999666664444444444444444444444226?6:66644M9N?D:111::::6DJ199`),vm=sm(`020200202020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200`),ym=(()=>{let e=new Int32Array(319).fill(-1),t=sm(`02422242:222222242224222242442222222422222244442242226224222426222422442462222422622222222626222462242622422622422424242422222222422222222242422222222222222222622442224222222222222224424442262222222222222222222226224222424242422224422422422222`),n=sm(`02222222222222222222202222222222222222222222221422222222222222222222222222222222222Y\\222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221422222222222222222222222222222222222222Ŀł222222222222222222`);for(let r=0;r<t.length;r++)e[t[r]]=n[r];return e})(),bm=`container |break-after- all auto avoid avoid-page column left page right|break-before- all auto avoid avoid-page column left page right|break-inside-a uto void void-column void-page|box-decoration- clone slice|box- border content| contents flow-root hidden table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|float- end left none right start|clear- both end left none right start|isolat e ion-auto|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none|overscroll-x- auto contain none|overscroll-y- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-items- center center-safe end end-safe normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch|place-items- baseline center center-safe end end-safe start stretch|place-self- auto center center-safe end end-safe start stretch| antialiased subpixel-antialiased| italic not-italic|normal-nums |ordinal |slashed-zero | lining-nums oldstyle-nums| proportional-nums tabular-nums| diagonal-fractions stacked-fractions| no-underline overline| capitalize lowercase normal-case uppercase|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|hyphens- auto manual none|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|backface- hidden visible|appearance- auto none|scheme- dark light light-dark normal only-dark only-light|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|snap- align-none center end start|snap- always normal|snap- both none x y|snap- mandatory proximity|touch- auto manipulation none|touch-pan- left right x|touch-pan- down up y|touch-pinch-zoom |select- all auto none text|forced-color-adjust- auto none| normal size| baseline bottom middle sub super text-bottom text-top top| bounce none ping pulse spin| auto square video| auto fr max min px|none | auto full px| fixed local scroll|clip- border content padding text|origin- border content padding| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| no-repeat repeat repeat-round repeat-space repeat-x repeat-y| auto contain cover| gradient-to-b gradient-to-bl gradient-to-br gradient-to-l gradient-to-r gradient-to-t gradient-to-tl gradient-to-tr none|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light|to- b bl br l r t tl tr| auto dvh fit full lh lvh max min px screen svh| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| inline-size size|layout |paint |style | around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out| dashed dotted double solid wavy| auto from-font|reverse |initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| condensed expanded extra-condensed extra-expanded normal semi-condensed semi-expanded ultra-condensed ultra-expanded|flow- col col-dense dense row row-dense| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| block flex grid table| auto dvw fit full lvw max min px screen svw| loose none normal px relaxed snug tight|through |item | inside outside| decimal disc none| auto px| clip-border clip-content clip-fill clip-padding clip-stroke clip-view no-clip| add exclude intersect subtract| alpha luminance match|origin- border content fill padding stroke view|type- alpha luminance| circle ellipse| closest-corner closest-side farthest-corner farthest-side|at- bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| dvh fit full lh lvh max min none px screen svh| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| dvw fit full lvw max min none px screen svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| contain cover fill none scale-down| first last none| distant dramatic midrange near none normal|inset | full none|3d | auto smooth|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw|base | center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| cpu gpu none| 3d flat| all colors none opacity shadow transform| discrete normal| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw| auto contents scroll transform`.split(`|`).map(e=>{let t=e.split(` `),n=t.shift();for(let e=0;e<t.length;e++)t[e]=n+t[e];return t}),xm=sm(`0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422`),Sm=sm(`ɠ222222222222222222222222222222222222222222222222222222222222˕4222226>ʶ22ʷʺʷ2ʸʷ42ʴ2ʓ22>621422ɶ222ɹɼɷɺɷɺ22ɱ42222ɨ2ɧ26622ɘɓ244ƸƵ222]d24242ǖǓƚÄȫ2263ȨȥȨ2222222ǣ222222222222222222ǂƽ2ƾƵ2222222422222ƜƑ22222222222222222222144Ŧţ22Ţş222222222222222222222ĸ2ı68ĦģĦɡŰ4Ġ«®ĝ822ĔđĔ2ē2222622`),Cm=sm(`02222222222222222222222222222222222222222222222222222222222222222202022222222222EH2200IL021042222Y\\222IL0cf2e10j2222U00X202[^2y0000120|{~‚22…ˆ‡:22|22222222222G000q†OVI00000}š2›>40000ŒB00000I¨©000¬00000000000000021M®­00°“000000000000000000000–222›HGHa1º222¿2À2222ÉÌ000­°2±`),wm=new Int32Array(995),Tm=new Int32Array(995),Em=new Int32Array(995),Dm=``,Om=new Int32Array(1038);{let e=new Map,t=0,n=0;for(let r=0;r<xm.length;r++)for(let i of bm[Cm[r]]){let a=e.get(i);a===void 0&&(a=t++,e.set(i,a),Om[a*2]=Dm.length,Om[a*2+1]=i.length,Dm+=i),wm[n]=xm[r],Tm[n]=Sm[r],Em[n]=a,n++}}var km=sm(`0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p`),Am=om(am(`1::24444432:442:44:44>222222:44:4421322511111311111114`)),jm=sm(`2Š4A;33N=C@H4A;33N=C@<27;83:;8393NQ:3NQʰ222ˉºŴŽ2R2=18cƴÅҜ=cĞÛC1ƈǝȈ:ħ25=11D3A@4=<1;1DEr25;11B3?<6;:371BCn9@7=<8192>2E121@9@EHE@9>2T25511<398454131<=V25511<398454131<=„ƧNž2Đå242L222290000f22500ɛ000ǘ222`),Mm=am(`ij`),Nm=am(`—`),Pm=am(`1`),Fm={GROUP_COUNT:cm,customValidatorNames:lm,edgeStart:um,labelStart:dm,labelText:fm,edgeTarget:pm,nodeGroup:mm,nodeVlist:ym,vlistPat:hm,vlistOps:gm,vlistRef:_m,vlistGroup:vm,litAnchor:wm,litGroup:Tm,litPool:Em,poolOffsets:Om,poolText:Dm,adjGid:km,adjStart:Am,adjTgt:jm,patGid:Mm,patTgt:Nm,postfixLookupGroups:Pm,orderSensitiveModifiers:`* ** after backdrop before details-content file first-letter first-line marker placeholder selection`},Im=8192,Lm=Yp(Fm,void 0,{cacheSize:Im}),Rm=rm(Lm.mergeString,Lm);Lm.merge;var zm=e=>e,Bm=[],Vm={reset(){for(let e=0;e<Bm.length;e++)Bm[e]()},onReset(e){Bm.push(e)}},Hm=e=>{if(e.indexOf(` `)!==-1)return!1;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n>=9&&n<=13)return!1}return!0},Um=1024,Wm=256,Gm=1e3,Km=e=>typeof e==`string`?e:e==null?``:af(e),qm=(e,t,n)=>e?t?n?`${e} ${t} ${n}`:`${e} ${t}`:n?`${e} ${n}`:e:t?n?`${t} ${n}`:t:n,Jm=((e,t,n)=>{let{mergeString:r,mergeUncached:i,seenBefore:a}=e,o=n>0,s=new Map,c=new Map,l=0,u=(e,t)=>{if(t===0)return``;let n=e[0];if(t===1)return Hm(n)?n:o&&a(n)?r(n):i(n);if(!o){let r=n;for(let n=1;n<t;n++)r+=` ${e[n]}`;return i(r)}let u=s.get(n);if(u===void 0&&(u=c.get(n),u!==void 0&&s.set(n,u)),u!==void 0)outer:for(let n=0;n<u.length;n++){let r=u[n],i=r.a;if(i.length===t){for(let n=1;n<t;n++)if(e[n]!==i[n])continue outer;return r.r}}let d=n;for(let n=1;n<t;n++)d+=` ${e[n]}`;if(!a(d))return i(d);let f=r(d);return u===void 0&&s.set(n,u=[]),u.length>=Wm&&u.shift(),u.push({a:e.slice(0,t),r:f}),++l>Gm&&(l=0,c=s,s=new Map),f},d=new Map,f=new Map,p=0,m=``,h=``,g=``,_=``;return{engine:e,cn:t,adapter:{parts:u,override:(e,t,n)=>{let s=Km(t),c=Km(n);if(!s&&!c)return e;if(!o)return i(qm(e,s,c));if(e===m&&s===h&&c===g)return _;let l=s?c?`${s}\0${c}`:s:c,u=d.get(e);u===void 0&&(u=f.get(e),u!==void 0&&d.set(e,u));let v=u===void 0?void 0:u.get(l);if(v===void 0){let t=qm(e,s,c);if(!a(t))return i(t);v=r(t),u===void 0&&d.set(e,u=new Map),u.set(l,v),++p>Um&&(p=0,f=d,d=new Map)}return m=e,h=s,g=c,_=v,v}},reset(){s=new Map,c=new Map,l=0,d=new Map,f=new Map,p=0,m=``,h=``,g=``,_=``}}})(Lm,Rm,Im);Vm.onReset(()=>{Jm.reset()});var Ym=e=>{let t=e.twMergeConfig;return t!=null&&!mf(t)},Xm=()=>TypeError("[tailwind-variants] `twMergeConfig` is only supported by the `tailwind-variants/config` entry. Import `tv`, `createTV`, or `cnMerge` from there, or inject a merge function with `twMerge`."),Zm=(e,t)=>{if(t===0)return``;let n=e[0];for(let r=1;r<t;r++)n+=` ${e[r]}`;return n},Qm={parts:Zm,override:(e,t,n)=>ff(e,t,n)},$m=e=>{let t=t=>t?e(t):``;return{parts:(e,n)=>t(Zm(e,n)),override:(e,n,r)=>t(ff(e,n,r))}},eh=e=>e.twMerge===!1?Qm:typeof e.twMerge==`function`?$m(e.twMerge):Ym(e)?null:Jm.adapter,th=Up(e=>{let t=eh(e);if(t===null)throw Xm();return t},zm),nh=th.tv;th.createTV;var rh=nh({base:`inline-flex shrink-0 items-center justify-center gap-1.5 whitespace-nowrap text-sm font-medium transition-[color,background-color,border-color,opacity,box-shadow,transform] outline-none select-none focus-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,variants:{variant:{default:`rounded-xl bg-primary font-semibold text-primary-foreground hover:opacity-90`,outline:`rounded-xl border border-border bg-card text-foreground hover:bg-surface-hover hover:text-foreground-bright`,secondary:`rounded-xl border border-border bg-card font-semibold text-foreground hover:bg-surface-hover hover:text-foreground-bright`,ghost:`rounded-xl text-muted-foreground hover:bg-surface-hover hover:text-foreground-bright`,destructive:`rounded-xl border border-destructive/30 bg-destructive/10 font-semibold text-destructive hover:bg-destructive/20`,link:`rounded-lg text-primary underline-offset-4 hover:underline`},size:{default:`h-10 px-4`,xs:`h-8 gap-1 px-2.5 text-xs rounded-lg [&_svg:not([class*='size-'])]:size-3.5`,sm:`h-9 gap-1.5 px-2.5`,lg:`h-10 gap-2 px-4 rounded-xl`,icon:`size-10 rounded-xl`,"icon-xs":`size-9 rounded-xl [&_svg:not([class*='size-'])]:size-3.5`,"icon-sm":`size-10 rounded-xl`,"icon-lg":`size-10 rounded-xl`}},defaultVariants:{variant:`default`,size:`default`}}),ih=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`variant`,`size`,`type`,`children`]),ah=B(`<button><!></button>`);function oh(e,t){k(t,!0);let n=X(t,`variant`,3,`default`),r=X(t,`size`,3,`default`),i=X(t,`type`,3,`button`),a=J(t,ih);var o=ah();la(o,e=>({"data-slot":`button`,type:i(),class:e,...a}),[()=>$(rh({variant:n(),size:r()}),t.class)]),ji(P(o),()=>t.children??f),D(o),H(e,o),A()}var sh=B(`<!> <span class="sr-only">Close</span>`,1),ch=B(`<!> <!>`,1);function lh(e,t){k(t,!0);let n=X(t,`open`,15,!1),r=X(t,`showCloseButton`,3,!0);function i(e){n(e),t.onOpenChange?.(e)}var a=V();Mi(F(a),()=>bu,(e,a)=>{a(e,{onOpenChange:i,get open(){return n()},set open(e){n(e)},children:(e,n)=>{var i=V();Mi(F(i),()=>Fc,(e,n)=>{n(e,{children:(e,n)=>{var i=ch(),a=F(i);Mi(a,()=>au,(e,t)=>{t(e,{class:`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50`})});var o=L(a,2);{let e=j(()=>$(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 ring-foreground/5 dark:ring-foreground/10 flex max-h-[calc(100dvh-2rem)] max-w-[calc(100%-2rem)] flex-col gap-6 overflow-hidden rounded-[min(var(--radius-4xl),24px)] p-6 text-sm shadow-xl ring-1 duration-100 sm:max-w-md fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none [--floating-label-bg:var(--popover)]`,t.class));Mi(o,()=>Du,(n,i)=>{i(n,{get class(){return z(e)},children:(e,n)=>{var i=ch(),a=F(i);ji(a,()=>t.children??f);var o=L(a,2),s=e=>{var t=V(),n=F(t);{let e=(e,t)=>{oh(e,Y(()=>(t?.()).props,{variant:`ghost`,class:`bg-secondary absolute top-4 right-4 z-10`,size:`icon-sm`,children:(e,t)=>{var n=sh();Au(F(n),{}),O(2),H(e,n)},$$slots:{default:!0}}))};Mi(n,()=>Cu,(t,n)=>{n(t,{child:e,$$slots:{child:!0}})})}H(e,t)};W(o,e=>{r()&&e(s)}),H(e,i)},$$slots:{default:!0}})})}H(e,i)},$$slots:{default:!0}})}),H(e,i)},$$slots:{default:!0}})}),H(e,a),A()}var uh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),dh=B(`<div><!></div>`);function fh(e,t){k(t,!0);let n=J(t,uh);var r=dh();la(r,e=>({"data-slot":`dialog-footer`,class:e,...n}),[()=>$(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,t.class)]),ji(P(r),()=>t.children??f),D(r),H(e,r),A()}var ph=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),mh=B(`<div><!></div>`);function hh(e,t){k(t,!0);let n=J(t,ph);var r=mh();la(r,e=>({"data-slot":`dialog-header`,class:e,...n}),[()=>$(`flex flex-col gap-2 text-center sm:text-start`,t.class)]),ji(P(r),()=>t.children??f),D(r),H(e,r),A()}var gh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);function _h(e,t){k(t,!0);let n=J(t,gh);var r=V(),i=F(r);{let e=j(()=>$(`text-base font-medium leading-none`,t.class));Mi(i,()=>Dc,(r,i)=>{i(r,Y({"data-slot":`dialog-title`,get class(){return z(e)}},()=>n,{children:(e,n)=>{var r=V();ji(F(r),()=>t.children??f),H(e,r)},$$slots:{default:!0}}))})}H(e,r),A()}var vh=B(`<!> <div class="flex min-h-0 flex-1 flex-col overflow-y-auto pt-4"><!></div> <!>`,1);function yh(e,t){k(t,!0);let n=X(t,`open`,15,!1),r=X(t,`showCloseButton`,3,!0);lh(e,{get onOpenChange(){return t.onOpenChange},get class(){return t.class},get showCloseButton(){return r()},get open(){return n()},set open(e){n(e)},children:(e,n)=>{var r=vh(),i=F(r);hh(i,{class:`shrink-0 pe-10`,children:(e,n)=>{_h(e,{children:(e,n)=>{O();var r=oi();R(()=>U(r,t.title)),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}});var a=L(i,2);ji(P(a),()=>t.children??f),D(a);var o=L(a,2),s=e=>{fh(e,{class:`shrink-0`,children:(e,n)=>{var r=V();ji(F(r),()=>t.footer),H(e,r)},$$slots:{default:!0}})};W(o,e=>{t.footer&&e(s)}),H(e,r)},$$slots:{default:!0}}),A()}function bh(){let e=M(dn(Io()));return Pn(()=>Fo(()=>{N(e,Io(),!0)})),{get language(){return z(e)},t:(t,n={})=>zo(t,n,z(e))}}var xh=Symbol(`opencode-mem-i18n`);function Sh(){let e=bh();return nt(xh,e),e}function Ch(){let e=tt(xh);if(!e)throw Error(`useI18n() requires setI18nContext() in a parent component`);return e}var wh=B(`<!> <!>`,1);function Th(e,t){k(t,!0);let n=X(t,`primaryVariant`,3,`default`),r=X(t,`primaryDisabled`,3,!1),i=X(t,`primaryType`,3,`button`),a=Ch();var o=wh(),s=F(o);oh(s,{type:`button`,variant:`secondary`,get onclick(){return t.onCancel},children:(e,n)=>{O();var r=oi();R(e=>U(r,e),[()=>t.cancelLabel||a.t(`btn-cancel`)]),H(e,r)},$$slots:{default:!0}});var c=L(s,2),l=e=>{oh(e,{get type(){return i()},get variant(){return n()},get disabled(){return r()},get onclick(){return t.onPrimary},children:(e,n)=>{O();var r=oi();R(()=>U(r,t.primaryLabel)),H(e,r)},$$slots:{default:!0}})};W(c,e=>{t.primaryLabel&&e(l)}),H(e,o),A()}var Eh={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`}]]};Eh.node;var Dh=new Set([`$$slots`,`$$events`,`$$legacy`]);function Oh(e,t){let n=J(t,Dh);Pa(e,Y(()=>n,{get icon(){return Eh}}))}var kh={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`}]]};kh.node;var Ah=new Set([`$$slots`,`$$events`,`$$legacy`]);function jh(e,t){let n=J(t,Ah);Pa(e,Y(()=>n,{get icon(){return kh}}))}var Mh=`bg-primary/15 text-primary`,Nh=`hover:bg-surface-hover hover:text-foreground-bright`,Ph=`inline-flex items-center justify-center rounded-xl ${Mh}`,Fh=`size-10 rounded-xl`,Ih=`size-10`,Lh=`size-9`,Rh=`size-3`,zh=`size-3.5`,Bh=`size-4`,Vh=`gap-1.5`,Hh=`gap-2`,Uh=`gap-3`,Wh=`space-y-1`,Gh=`space-y-1.5`,Kh=`space-y-2`,qh=`space-y-3`,Jh=`space-y-4`,Yh=`space-y-6`,Xh=`space-y-8`,Zh=`w-full h-10 rounded-xl border border-border bg-background px-3 text-sm text-foreground-bright focus-ring`,Qh=`rounded-xl border border-border bg-card`,$h=`px-3 py-3`,eg=`inline-flex items-center rounded-lg border border-border bg-card px-2.5 py-1 text-xs tabular-nums text-muted-foreground`,tg=`flex w-full items-center rounded-xl text-sm font-semibold transition-colors`,ng=`px-[clamp(16px,3vw,40px)]`,rg=`px-3 md:px-4`,ig=`flex flex-col ${Uh} -mx-[clamp(16px,3vw,40px)] mb-4 ${ng} py-3`,ag=`mx-auto w-full max-w-none flex-1 space-y-6 pt-3 pb-12 `+ng,og=`rounded-xl border border-border bg-card p-4 space-y-3`,sg=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`checked`,`indeterminate`]),cg=B(`<div data-slot="checkbox-indicator" class="pointer-events-none grid place-content-center text-current [&amp;>svg]:size-3.5"><!></div>`);function lg(e,t){k(t,!0);let n=X(t,`checked`,15,!1),r=X(t,`indeterminate`,15,!1),i=J(t,sg);var a=V(),o=F(a);{let e=(e,t)=>{let n=()=>(t?.()).checked,r=()=>(t?.()).indeterminate;var i=cg(),a=P(i),o=e=>{jh(e,{get class(){return zh}})},s=e=>{Oh(e,{get class(){return zh}})};W(a,e=>{r()?e(o):n()&&e(s,1)}),D(i),H(e,i)},a=j(()=>$(`border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground dark:data-[state=indeterminate]:bg-primary data-[state=indeterminate]:border-primary focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive peer relative flex size-4 shrink-0 items-center justify-center overflow-hidden rounded-lg border shadow-xs transition-shadow outline-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50`,t.class));Mi(o,()=>yu,(t,o)=>{o(t,Y({"data-slot":`checkbox`,get class(){return z(a)}},()=>i,{get checked(){return n()},set checked(e){n(e)},get indeterminate(){return r()},set indeterminate(e){r(e)},children:e,$$slots:{default:!0}}))})}H(e,a),A()}var ug=B(`<div role="checkbox"><span class="pointer-events-none inline-flex"><!></span> <!></div>`);function dg(e,t){k(t,!0);function n(e){(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),t.onToggle(!t.checked))}var r=ug();q(r,`tabindex`,0);var i=P(r);lg(P(i),{get checked(){return t.checked},tabindex:-1}),D(i),ji(L(i,2),()=>t.children??f),D(r),R(e=>{K(r,1,e),q(r,`aria-checked`,t.checked)},[()=>G($(`flex items-center gap-2 text-sm cursor-pointer`,t.class))]),Yr(`click`,r,()=>t.onToggle(!t.checked)),Yr(`keydown`,r,n),H(e,r),A()}Xr([`click`,`keydown`]);var fg={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`}],[`path`,{d:`m12 5 7 7-7 7`}]]};fg.node;var pg=new Set([`$$slots`,`$$events`,`$$legacy`]);function mg(e,t){let n=J(t,pg);Pa(e,Y(()=>n,{get icon(){return fg}}))}var hg=B(`<div class="contents"><div><span class="text-muted-foreground tabular-nums"></span> <span> </span></div> <!></div>`),gg=B(`<div></div>`),_g=B(`<span class="contents"><span> </span> <!></span>`),vg=B(`<div class="flex flex-wrap gap-1 text-xs text-muted-foreground"></div>`);function yg(e,t){k(t,!0);let n=X(t,`variant`,3,`chips`);var r=V(),i=F(r),a=e=>{var r=V(),i=F(r),a=e=>{var n=gg();wi(n,21,()=>t.steps,bi,(e,n,r)=>{var i=hg(),a=P(i),o=P(a);o.textContent=r+1;var s=I(L(o,2),!0);D(a);var c=L(a,2),l=e=>{mg(e,{get class(){return`size-3 text-muted-foreground`}})};W(c,e=>{r<t.steps.length-1&&e(l)}),D(i),R(()=>{K(a,1,`inline-flex items-center gap-1.5 rounded-lg bg-muted px-2 py-1 text-xs`),U(s,z(n))}),H(e,i)}),D(n),R(()=>K(n,1,`flex flex-wrap items-center gap-1.5`)),H(e,n)},o=e=>{var n=vg();wi(n,21,()=>t.steps,bi,(e,n,r)=>{var i=_g(),a=P(i),o=I(a),s=L(a,2),c=e=>{mg(e,{get class(){return`size-3 inline`}})};W(s,e=>{r<t.steps.length-1&&e(c)}),D(i),R(()=>U(o,`${r+1}. ${z(n)??``}`)),H(e,i)}),D(n),H(e,n)};W(i,e=>{n()===`chips`?e(a):e(o,-1)}),H(e,r)};W(i,e=>{t.steps.length&&e(a)}),H(e,r),A()}function bg(e){let t=new Date(e),n=Io(),r=n===`zh`?`zh-CN`:n===`ar`?`ar-SA`:n===`de`?`de-DE`:`en-US`;return t.toLocaleString(r,{year:`numeric`,month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`})}function xg(e,t){return e.length>t?`${e.substring(0,t)}...`:e}var Sg=class extends Error{constructor(e,t){super(`${e} at position ${t}`),this.position=t}},Cg=32,wg=10,Tg=9,Eg=13,Dg=160,Og=6158,kg=8192,Ag=8203,jg=8239,Mg=8287,Ng=12288,Pg=65279;function Fg(e){return/^[0-9A-Fa-f]$/.test(e)}function Ig(e){return e>=`0`&&e<=`9`}function Lg(e){return e>=` `}function Rg(e){return`,:[]/{}()
31
- +`.includes(e)}function zg(e){return e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e===`_`||e===`$`}function Bg(e){return e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e===`_`||e===`$`||e>=`0`&&e<=`9`}var Vg=/^(http|https|ftp|mailto|file|data|irc):\/\/$/,Hg=/^[A-Za-z0-9-._~:/?#@!$&'()*+;=]$/;function Ug(e){return`,[]/{}
32
- +`.includes(e)}function Wg(e){return Xg(e)||Gg.test(e)}var Gg=/^[[{\w-]$/;function Kg(e){return e===`
33
- `||e===`\r`||e===` `||e===`\b`||e===`\f`}function qg(e,t){let n=e.charCodeAt(t);return n===Cg||n===wg||n===Tg||n===Eg}function Jg(e,t){let n=e.charCodeAt(t);return n===Cg||n===Tg||n===Eg}function Yg(e,t){let n=e.charCodeAt(t);return n===Dg||n===Og||n>=kg&&n<=Ag||n===jg||n===Mg||n===Ng||n===Pg}function Xg(e){return Zg(e)||$g(e)}function Zg(e){return e===`"`||e===`“`||e===`”`}function Qg(e){return e===`"`}function $g(e){return e===`'`||e===`‘`||e===`’`||e==="`"||e===`´`}function e_(e){return e===`'`}function t_(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=e.lastIndexOf(t);return r===-1?e:e.substring(0,r)+(n?``:e.substring(r+1))}function n_(e,t){let n=e.length;if(!qg(e,n-1))return e+t;for(;qg(e,n-1);)n--;return e.substring(0,n)+t+e.substring(n)}function r_(e,t,n){return e.substring(0,t)+e.substring(t+n)}function i_(e){return/[,\n][ \t\r]*$/.test(e)}var a_={"&quot;":`"`,"&amp;":`&`,"&lt;":`<`,"&gt;":`>`,"&apos;":`'`};function o_(e){if(e.charAt(0)!==`&`)return null;let t=e.indexOf(`;`);if(t===-1)return null;let n=e.substring(0,t+1),r=a_[n];if(r!==void 0)return{char:r,length:n.length};if(e.charAt(1)===`#`){let r=e.substring(2,t),i=r.charAt(0)===`x`||r.charAt(0)===`X`,a=i?r.substring(1):r;if(a.length>0){let e=Number.parseInt(a,i?16:10);if(!Number.isNaN(e)&&e>=0&&e<=1114111)return{char:String.fromCodePoint(e),length:n.length}}}return null}function s_(e){return e!==null&&e.char===`"`}function c_(e){return e!==null&&e.char===`'`}function l_(e,t){let n=0;for(let r=0;r<e.length;r++)e.charAt(r)===t&&n++;return n}function u_(e,t){switch(t){case`)`:return l_(e,`(`)>l_(e,`)`);case`]`:return l_(e,`[`)>l_(e,`]`);case`}`:return l_(e,`{`)>l_(e,`}`);default:return!1}}var d_={"\b":`\\b`,"\f":`\\f`,"\n":`\\n`,"\r":`\\r`," ":`\\t`},f_={'"':`"`,"\\":`\\`,"/":`/`,b:`\b`,f:`\f`,n:`
34
- `,r:`\r`,t:` `};function p_(e){let t=0,n=``;c(["```","[```","{```"]),i()||ie(),c(["```","```]","```}"]);let r=u(`,`);for(r&&a(),Wg(e[t])&&i_(n)?(r||(n=n_(n,`,`)),g()):r&&(n=t_(n,`,`));e[t]===`}`||e[t]===`]`;)t++,a();if(t>=e.length)return n;re();function i(){a();let e=m()||h()||_()||y()||b()||S(!1)||C();return a(),e}function a(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,n=t,r=o(e);do r=s(),r&&=o(e);while(r);return t>n}function o(r){let i=r?qg:Jg,a=``;for(;;)if(i(e,t))a+=e[t],t++;else if(Yg(e,t))a+=` `,t++;else break;return a.length>0&&(n+=a,!0)}function s(){if(e[t]===`/`&&e[t+1]===`*`){for(;t<e.length&&!m_(e,t);)t++;return t+=2,!0}if(e[t]===`/`&&e[t+1]===`/`){for(;t<e.length&&e[t]!==`
35
- `;)t++;return!0}return!1}function c(n){if(l(n)){if(zg(e[t]))for(;t<e.length&&Bg(e[t]);)t++;return a(),!0}return!1}function l(n){o(!0);for(let r of n){let n=t+r.length;if(e.slice(t,n)===r)return t=n,!0}return!1}function u(r){return e[t]===r&&(n+=e[t],t++,!0)}function d(n){return e[t]===n&&(t++,!0)}function f(){return d(`\\`)}function p(){return a(),e[t]===`.`&&e[t+1]===`.`&&e[t+2]===`.`&&(t+=3,a(),d(`,`),!0)}function m(){if(e[t]===`{`){n+=`{`,t++,a(),d(`,`)&&a();let r=!0;for(;t<e.length&&e[t]!==`}`;){let o;if(r?o=!0:(o=u(`,`),o||(n=n_(n,`,`)),a()),p(),!(_()||S(!0))){e[t]===`}`||e[t]===`{`||e[t]===`]`||e[t]===`[`||e[t]===void 0?r||(n=t_(n,`,`)):ae();break}a();let s=u(`:`),c=t>=e.length;s||(Wg(e[t])||c?n=n_(n,`:`):oe()),i()||(s||c?n+=`null`:oe()),r=!1}return e[t]===`}`?(n+=`}`,t++):n=n_(n,`}`),!0}return!1}function h(){if(e[t]===`[`){n+=`[`,t++,a(),d(`,`)&&a();let r=!0;for(;t<e.length&&e[t]!==`]`;){if(r||u(`,`)||(n=n_(n,`,`)),p(),!i()){r||(n=t_(n,`,`));break}r=!1}return e[t]===`]`?(n+=`]`,t++):n=n_(n,`]`),!0}return!1}function g(){let e=!0,t=!0;for(;t;)e?e=!1:u(`,`)||(n=n_(n,`,`)),t=i();t||(n=t_(n,`,`)),n=`[\n${n}\n]`}function _(){let r=arguments.length>0&&arguments[0]!==void 0&&arguments[0],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,o=e[t]===`\\`;o&&(t++,Xg(e[t])||re());let s=e[t]===`&`?o_(e.slice(t,t+12)):null,c=s_(s)||c_(s);if(Xg(e[t])||c){let l=Qg(e[t])?Qg:e_(e[t])?e_:$g(e[t])?$g:Zg,u=t,d=n.length,p=`"`;for(t+=c&&s?s.length:1;;){if(t>=e.length){let i=w(t-1);return!r&&Rg(e.charAt(i))?(t=u,n=n.substring(0,d),_(!0)):(p=n_(p,`"`),n+=p,!0)}if(t===i)return p=n_(p,`"`),n+=p,!0;let m=c&&e[t]===`&`?o_(e.slice(t,t+12)):null;if(m&&s?m.char===s.char:l(e[t])){let i=t,o=p.length;if(p+=`"`,t+=m?m.length:1,n+=p,a(!1),r||t>=e.length||Rg(e[t])&&!u_(p,e[t])||Xg(e[t])&&!ee(t)||Ig(e[t]))return v(),!0;e[t]===`\\`&&re();let s=w(i-1),c=e.charAt(s);if(c===`,`)return t=u,n=n.substring(0,d),_(!1,s);if(Rg(c))return t=u,n=n.substring(0,d),_(!0);n=n.substring(0,d),t=i+(m?m.length:1),p=`${p.substring(0,o)}\\${p.substring(o)}`}else if(r&&Ug(e[t])){if(e[t-1]===`:`&&Vg.test(e.substring(u+1,t+2)))for(;t<e.length&&Hg.test(e[t]);)p+=e[t],t++;return p=n_(p,`"`),n+=p,v(),!0}else if(m){let e=m.char;e===`"`?p+=`\\"`:Kg(e)?p+=d_[e]:p+=e,t+=m.length}else if(e[t]===`\\`){let n=e.charAt(t+1);if(f_[n]!==void 0)p+=e.slice(t,t+2),t+=2;else if(n===`u`){let n=2;for(;n<6&&Fg(e[t+n]);)n++;n===6?(p+=e.slice(t,t+6),t+=6):t+n>=e.length?t=e.length:se()}else n===`
36
- `?(p+=`\\n`,t+=2):(p+=n,t+=2)}else{let n=e.charAt(t);n===`"`&&e[t-1]!==`\\`?(p+=`\\${n}`,t++):Kg(n)?(p+=d_[n],t++):(Lg(n)||ne(n),p+=n,t++)}o&&f()}}return!1}function v(){let r=!1;for(a();e[t]===`+`;){r=!0,t++,a(),n=t_(n,`"`,!0);let e=n.length;n=_()?r_(n,e,1):n_(n,`"`)}return r}function y(){let r=t,i=``,a=!1;for(e[t]===`-`&&(i+=e[t],t++,!Ig(e[t])&&te()&&(i+=`0`)),e[t]===`0`&&Ig(e[t+1])&&(a=!0);Ig(e[t]);)i+=e[t],t++;if(e[t]===`.`)for((i===``||i===`-`)&&(i+=`0`),i+=e[t],t++,Ig(e[t])||(i+=`0`);Ig(e[t]);)i+=e[t],t++;if(t>r){if(e[t]===`e`||e[t]===`E`)for(i===`-`&&(a=!0),i+=e[t],t++,(e[t]===`-`||e[t]===`+`)&&(i+=e[t],t++),Ig(e[t])||(i+=`0`);Ig(e[t]);)i+=e[t],t++;return te()?(n+=a?`"${e.substring(r,t)}"`:i,!0):(t=r,!1)}return!1}function b(){return x(`true`,`true`)||x(`false`,`false`)||x(`null`,`null`)||x(`True`,`true`)||x(`False`,`false`)||x(`None`,`null`)}function x(r,i){return e.slice(t,t+r.length)===r&&!Bg(e[t+r.length])&&(n+=i,t+=r.length,!0)}function S(r){let a=t;if(zg(e[t])){for(;t<e.length&&Bg(e[t]);)t++;let n=t;for(;qg(e,n);)n++;if(e[n]===`(`)return t=n+1,i(),e[t]===`)`&&(t++,e[t]===`;`&&t++),!0}for(;t<e.length&&!Ug(e[t])&&!Xg(e[t])&&(!r||e[t]!==`:`);)t++;if(e[t-1]===`:`&&Vg.test(e.substring(a,t+2)))for(;t<e.length&&Hg.test(e[t]);)t++;if(t>a){for(;qg(e,t-1)&&t>0;)t--;let r=e.slice(a,t);return n+=r===`undefined`?`null`:JSON.stringify(r),e[t]===`"`&&t++,!0}}function C(){if(e[t]===`/`){let r=t;for(t++;t<e.length&&(e[t]!==`/`||e[t-1]===`\\`);)t++;return t++,n+=JSON.stringify(e.substring(r,t)),!0}}function w(t){let n=t;for(;n>0&&qg(e,n);)n--;return n}function ee(t){let n=t+1;for(;n<e.length&&qg(e,n);)n++;return n>=e.length||Rg(e[n])}function te(){return t>=e.length||Rg(e[t])||qg(e,t)}function ne(e){throw new Sg(`Invalid character ${JSON.stringify(e)}`,t)}function re(){throw new Sg(`Unexpected character ${JSON.stringify(e[t])}`,t)}function ie(){throw new Sg(`Unexpected end of json string`,e.length)}function ae(){throw new Sg(`Object key expected`,t)}function oe(){throw new Sg(`Colon expected`,t)}function se(){throw new Sg(`Invalid unicode character "${e.slice(t,t+6)}"`,t)}}function m_(e,t){return e[t]===`*`&&e[t+1]===`/`}function h_(e){if(!e)return[];let t=e,n=null;for(;typeof t==`string`&&t!==n;){n=t;try{t=JSON.parse(p_(t))}catch{break}}if(!Array.isArray(t))return[];let r=[],i=e=>{Array.isArray(e)?e.forEach(i):e&&typeof e==`object`&&r.push(e)};return i(t),r}function g_(e){if(!e)return null;let t=e;if(typeof t==`string`)try{t=JSON.parse(p_(t))}catch{return null}if(!t||typeof t!=`object`)return null;let n=t;return{preferences:h_(n.preferences),patterns:h_(n.patterns),workflows:h_(n.workflows)}}function __(e){if(!e)return[];let t=(e.preferences||[]).map((e,t)=>({...e,_id:`pref_${t}`,_type:`pref`})),n=(e.patterns||[]).map((e,t)=>({...e,_id:`pat_${t}`,_type:`pat`})),r=(e.workflows||[]).map((e,t)=>({...e,_id:`wf_${t}`,_type:`wf`}));return[...t,...n,...r]}function v_(e){if(!e.includes(`_`))return null;let[t,n]=e.split(`_`),r=parseInt(n,10);return Number.isNaN(r)?null:{prefix:t,index:r}}function y_(e,t){let n=v_(t);return!n||!e?null:n.prefix===`pref`?e.preferences?.[n.index]??null:n.prefix===`pat`?e.patterns?.[n.index]??null:n.prefix===`wf`?e.workflows?.[n.index]??null:null}function b_(e,t){return y_(t,e)?.description??null}function x_(e,t){let n=v_(e);return!n||n.prefix!==`wf`?null:y_(t,e)?.steps||null}function S_(e,t){let n=v_(e);return n?n.prefix===`pref`?t.pref:n.prefix===`pat`?t.pat:n.prefix===`wf`?t.wf:`?`:`?`}function C_(e){return Math.round((e.confidence||0)*1e3)/10}function w_(e){return e.evidence?Array.isArray(e.evidence)?e.evidence.join(`
37
- `):e.evidence:``}function T_(e){return e.evidence?Array.isArray(e.evidence)?e.evidence.length:1:0}function E_(e,t,n){let r=new Set(e);return n?r.add(t):r.delete(t),r}function D_(e,t){let n=new Set(e);return n.delete(t),n}var O_=B(`<div><!> <span class="text-sm"> </span></div>`),k_=B(`<span class="text-[10px] font-medium text-muted-foreground w-4"> </span> <span class="flex-1 truncate"> </span> <span class="inline-flex items-center gap-1 text-xs text-muted-foreground shrink-0"><!> </span>`,1),A_=B(`<div><div><span class="text-xs rounded-full bg-muted px-2 py-0.5"> </span> <span class="text-xs text-muted-foreground"> </span></div> <!></div>`),j_=B(`<div><div><h3 class="text-sm font-medium"> </h3> <div><!> <!> <!> <!></div></div> <div></div> <div><span class="text-xs text-muted-foreground"> </span> <!></div></div>`),M_=B(`<span> </span>`),N_=B(`<div><div><span class="text-[10px] rounded bg-muted px-1.5 py-0.5"> </span> </div> <!></div>`),P_=B(`<div><!> <div><div></div> <div class="text-muted-foreground self-center grid place-items-center"><!></div> <div><div> </div> <!></div></div></div>`),F_=B(`<div><h4><!> </h4> <!></div>`),I_=B(`<div><!> <div class="text-sm"> </div> <!> <div class="text-xs text-muted-foreground"> </div></div>`),L_=B(`<div class="text-xs text-muted-foreground rounded bg-muted/40 px-2 py-1"> </div>`),R_=B(`<div></div>`),z_=B(`<div><button type="button"> <span class="text-muted-foreground"> </span> <!></button> <!></div>`),B_=B(`<div><div><span class="text-xs text-muted-foreground"> </span> <div><!> <!></div></div> <div><!> <!> <!></div></div>`);function V_(e,t){k(t,!0);let n=X(t,`open`,15,!1),r=X(t,`profile`,3,null),i=Ch(),a=M(`select`),o=M(dn([])),s=M(dn(new Set)),c=M(null),l=M(dn(new Set)),u=M(dn(new Set)),d=M(!1),f=M(!1),p=!1,m=j(()=>{let e={};for(let t of z(o)){let n=t.category||`(none)`;e[n]||(e[n]={pref:[],pat:[],wf:[]}),e[n][t._type].push(t)}return e}),h=j(()=>Object.keys(z(m)).sort()),g=j(()=>z(s).size),_=j(()=>z(l).size+z(u).size),v=j(()=>(z(c)?.changes.merged?.length||0)+(z(c)?.changes.removed?.length||0)),y=j(()=>({pref:i.t(`profile-type-pref`),pat:i.t(`profile-type-pat`),wf:i.t(`profile-type-wf`)}));function b(){let e=g_(r()?.profileData);if(!e){Do.error(`No profile data loaded`),x(!1);return}let t=__(e);N(o,t,!0),N(s,new Set(t.filter(e=>(e.frequency||0)<=3).map(e=>e._id)),!0),N(a,`select`),N(c,null),N(d,!1)}Pn(()=>{let e=n();e&&!p?jr(()=>b()):!e&&p&&(N(a,`select`),N(c,null),N(f,!1)),p=e});function x(e){n(e),t.onOpenChange?.(e)}function S(e,t){N(s,E_(z(s),e,t),!0)}function C(){N(s,new Set(z(o).map(e=>e._id)),!0)}function w(){N(s,new Set,!0)}function ee(){N(s,new Set(z(o).filter(e=>(e.frequency||0)<=3).map(e=>e._id)),!0)}function te(){let e=new Set;for(let t of Object.keys(z(m))){let n=[...z(m)[t].pref,...z(m)[t].pat,...z(m)[t].wf];if(n.length>=3)for(let t of n)e.add(t._id)}N(s,e,!0)}async function ne(){let e=[...z(s)];if(e.length===0){Do.warning(`No items selected`);return}N(a,`loading`);let t=await Vo(`/api/user-profile/ai-cleanup`,{method:`POST`,body:JSON.stringify({includeIds:e,profileVersion:r()?.version}),timeout:18e4});!await Ho(t,{failKey:`toast-ai-cleanup-failed`,translate:i.t})||!t.data?N(a,`select`):(N(c,t.data,!0),N(l,new Set((t.data.changes.merged||[]).map((e,t)=>t)),!0),N(u,new Set((t.data.changes.removed||[]).map((e,t)=>t)),!0),N(a,`diff`))}function re(e,t){N(l,E_(z(l),e,t),!0)}function ie(e,t){N(u,E_(z(u),e,t),!0)}function ae(){N(l,new Set((z(c)?.changes.merged||[]).map((e,t)=>t)),!0),N(u,new Set((z(c)?.changes.removed||[]).map((e,t)=>t)),!0)}function oe(){N(l,new Set,!0),N(u,new Set,!0)}async function se(){if(!z(c)||z(_)===0)return;N(f,!0);let e=[...z(l)].map(e=>z(c)?.changes.merged?.[e]?.ids).filter(e=>!!e),n=[...z(u)].map(e=>z(c)?.changes.removed?.[e]?.id).filter(e=>!!e),r=await Vo(`/api/user-profile/ai-cleanup/apply`,{method:`POST`,body:JSON.stringify({profile:z(c).new,acceptedMerged:e,acceptedRemoved:n})});N(f,!1),await Ho(r,{successKey:`toast-ai-cleanup-success`,failKey:`toast-cleanup-apply-failed`,translate:i.t,onSuccess:()=>{x(!1),t.onApplied?.()}})}{let t=e=>{{let t=j(()=>z(a)===`diff`?z(_)>0?`${i.t(`label-ai-cleanup-apply`)} (${z(_)})`:i.t(`label-ai-cleanup-apply`):void 0),n=j(()=>z(_)===0||z(f));Th(e,{onCancel:()=>x(!1),get primaryLabel(){return z(t)},get primaryDisabled(){return z(n)},onPrimary:se})}},r=j(()=>i.t(`label-ai-cleanup-title`));yh(e,{get title(){return z(r)},get class(){return`sm:max-w-2xl gap-4`},onOpenChange:x,get open(){return n()},set open(e){n(e)},footer:t,children:(e,t)=>{var n=V(),r=F(n),o=e=>{var t=O_(),n=P(t);{let e=j(()=>$(Bh,`size-6 animate-spin`));La(n,{get class(){return z(e)},"aria-hidden":`true`})}var r=I(L(n,2),!0);D(t),R(e=>{K(t,1,`flex flex-col items-center gap-3 py-10 text-muted-foreground`),U(r,e)},[()=>i.t(`label-ai-cleanup-loading`)]),H(e,t)},f=e=>{var t=j_(),n=P(t),r=P(n),a=I(r,!0),o=L(r,2),c=P(o);oh(c,{variant:`secondary`,size:`xs`,onclick:C,children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>i.t(`label-ai-cleanup-select-all`)]),H(e,n)},$$slots:{default:!0}});var l=L(c,2);oh(l,{variant:`secondary`,size:`xs`,onclick:w,children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>i.t(`label-ai-cleanup-deselect-all`)]),H(e,n)},$$slots:{default:!0}});var u=L(l,2);oh(u,{variant:`secondary`,size:`xs`,onclick:ee,children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>i.t(`label-ai-cleanup-select-low`)]),H(e,n)},$$slots:{default:!0}}),oh(L(u,2),{variant:`secondary`,size:`xs`,onclick:te,children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>i.t(`label-ai-cleanup-select-same-cat`)]),H(e,n)},$$slots:{default:!0}}),D(o),D(n);var d=L(n,2);wi(d,20,()=>z(h),e=>e,(e,t)=>{let n=j(()=>[...z(m)[t].pref,...z(m)[t].pat,...z(m)[t].wf]);var r=A_(),i=P(r),a=P(i),o=I(a,!0),c=I(L(a,2));D(i),wi(L(i,2),17,()=>z(n),e=>e._id,(e,t)=>{let n=j(()=>z(s).has(z(t)._id));dg(e,{get checked(){return z(n)},class:`rounded-xl border border-border/60 px-2 py-1.5 hover:bg-muted/40`,onToggle:e=>S(z(t)._id,e),children:(e,n)=>{var r=k_(),i=F(r),a=I(i,!0),o=L(i,2),s=I(o,!0),c=L(o,2),l=P(c);bo(l,{get class(){return Rh},"aria-hidden":`true`});var u=L(l);D(c),R((e,n)=>{U(a,z(t)._type===`pref`?`P`:z(t)._type===`pat`?`T`:`W`),U(s,e),U(u,` ${(z(t).frequency||0)??``}${n??``}`)},[()=>xg(z(t).description||``,80),()=>z(t).confidence==null?``:` | ${C_(z(t))}%`]),H(e,r)},$$slots:{default:!0}})}),D(r),R(()=>{K(r,1,G(Gh)),K(i,1,`flex items-center gap-2`),U(o,t),U(c,`${z(n).length??``} items`)}),H(e,r)}),D(d);var f=L(d,2),p=P(f),_=I(p,!0);oh(L(p,2),{onclick:ne,children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>i.t(`label-ai-cleanup-analyze`)]),H(e,n)},$$slots:{default:!0}}),D(f),D(t),R((e,r,i)=>{K(t,1,`flex min-h-0 flex-1 flex-col gap-3 overflow-hidden`),K(n,1,`flex flex-wrap items-center justify-between gap-2`),U(a,e),K(o,1,`flex flex-wrap gap-1.5`),K(d,1,r),K(f,1,`flex items-center justify-between gap-2 pt-1`),U(_,i)},[()=>i.t(`label-ai-cleanup-select`),()=>G($(`min-h-0 flex-1 overflow-y-auto pr-1`,Jh)),()=>i.t(`label-ai-cleanup-selected`,{count:z(g)})]),H(e,t)},p=e=>{var t=B_(),n=P(t),r=P(n),a=I(r,!0),o=L(r,2),s=P(o);oh(s,{variant:`link`,size:`xs`,onclick:ae,children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>i.t(`label-ai-cleanup-select-all`)]),H(e,n)},$$slots:{default:!0}}),oh(L(s,2),{variant:`link`,size:`xs`,onclick:oe,children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>i.t(`label-ai-cleanup-deselect-all`)]),H(e,n)},$$slots:{default:!0}}),D(o),D(n);var f=L(n,2),p=P(f),m=e=>{var t=F_(),n=P(t),r=P(n);_o(r,{get class(){return zh},"aria-hidden":`true`});var a=L(r);D(n),wi(L(n,2),17,()=>z(c).changes.merged||[],bi,(e,t,n)=>{let r=j(()=>z(t).ids.slice(1)),a=j(()=>z(t).result||``),o=j(()=>x_(z(t).ids[0],z(c).old)),s=j(()=>z(l).has(n));var u=P_(),d=P(u);dg(d,{get checked(){return z(s)},onToggle:e=>re(n,e),children:(e,t)=>{var n=M_(),r=I(n,!0);R(e=>U(r,e),[()=>i.t(`label-ai-cleanup-merge-check`)]),H(e,n)},$$slots:{default:!0}});var f=L(d,2),p=P(f);wi(p,20,()=>z(r),e=>e,(e,t)=>{let n=j(()=>b_(t,z(c).old)),r=j(()=>x_(t,z(c).old));var i=V(),a=F(i),o=e=>{var i=N_(),a=P(i),o=P(a),s=I(o,!0),c=L(o);D(a);var l=L(a,2),u=e=>{yg(e,{get steps(){return z(r)},variant:`inline`})};W(l,e=>{z(r)?.length&&e(u)}),D(i),R((e,t)=>{K(i,1,`rounded-lg bg-muted/50 p-2 space-y-1`),U(s,e),U(c,`
38
- ${t??``}`)},[()=>S_(t,z(y)),()=>xg(z(n),80)]),H(e,i)};W(a,e=>{z(n)&&e(o)}),H(e,i)}),D(p);var m=L(p,2);uo(P(m),{get class(){return Bh},"aria-hidden":`true`}),D(m);var h=L(m,2),g=P(h),_=I(g,!0),v=L(g,2),b=e=>{yg(e,{get steps(){return z(o)},variant:`inline`})};W(v,e=>{z(o)?.length&&e(b)}),D(h),D(f),D(u),R((e,t)=>{K(u,1,e),K(f,1,`grid gap-2 sm:grid-cols-[1fr_auto_1fr] items-start text-sm`),K(p,1,G(Gh)),K(h,1,`rounded-lg bg-primary/10 p-2 space-y-1`),U(_,t)},[()=>G($(Qh,$h,Kh)),()=>xg(z(a),120)]),H(e,u)}),D(t),R(e=>{K(t,1,G(Kh)),K(n,1,`flex items-center gap-1.5 text-sm font-medium`),U(a,` ${e??``}`)},[()=>i.t(`label-ai-cleanup-merged-header`,{count:z(c).changes.merged?.length||0})]),H(e,t)};W(p,e=>{(z(c).changes.merged||[]).length>0&&e(m)});var h=L(p,2),g=e=>{var t=F_(),n=P(t),r=P(n);to(r,{get class(){return zh},"aria-hidden":`true`});var a=L(r);D(n),wi(L(n,2),17,()=>z(c).changes.removed||[],bi,(e,t,n)=>{let r=j(()=>b_(z(t).id,z(c).old)),a=j(()=>x_(z(t).id,z(c).old)),o=j(()=>z(u).has(n));var s=I_(),l=P(s);dg(l,{get checked(){return z(o)},onToggle:e=>ie(n,e),children:(e,t)=>{var n=M_(),r=I(n,!0);R(e=>U(r,e),[()=>i.t(`label-ai-cleanup-remove-check`)]),H(e,n)},$$slots:{default:!0}});var d=L(l,2),f=I(d,!0),p=L(d,2),m=e=>{yg(e,{get steps(){return z(a)},variant:`inline`})};W(p,e=>{z(a)?.length&&e(m)});var h=I(L(p,2),!0);D(s),R(e=>{K(s,1,e),U(f,z(r)||z(t).id),U(h,z(t).reason)},[()=>G($(Qh,$h,Kh))]),H(e,s)}),D(t),R(e=>{K(t,1,G(Kh)),K(n,1,`flex items-center gap-1.5 text-sm font-medium`),U(a,` ${e??``}`)},[()=>i.t(`label-ai-cleanup-removed-header`,{count:z(c).changes.removed?.length||0})]),H(e,t)};W(h,e=>{(z(c).changes.removed||[]).length>0&&e(g)});var b=L(h,2),x=e=>{var t=z_(),n=P(t),r=P(n),a=L(r),o=I(a),s=L(a,2),l=e=>{mo(e,{get class(){return zh},"aria-hidden":`true`})},u=e=>{so(e,{get class(){return zh},"aria-hidden":`true`})};W(s,e=>{z(d)?e(l):e(u,-1)}),D(n);var f=L(n,2),p=e=>{var t=R_();wi(t,21,()=>z(c).changes.kept||[],bi,(e,t)=>{var n=L_(),r=I(n,!0);R(()=>U(r,z(t))),H(e,n)}),D(t),R(()=>K(t,1,G(Wh))),H(e,t)};W(f,e=>{z(d)&&e(p)}),D(t),R(e=>{K(t,1,G(Kh)),K(n,1,`flex items-center gap-1.5 text-sm font-medium`),U(r,`${e??``} `),U(o,`(${(z(c).changes.kept?.length||0)??``})`)},[()=>i.t(`label-ai-cleanup-kept`)]),Yr(`click`,n,()=>N(d,!z(d))),H(e,t)};W(b,e=>{(z(c).changes.kept||[]).length>0&&e(x)}),D(f),D(t),R((e,r)=>{K(t,1,`flex min-h-0 flex-1 flex-col gap-3 overflow-hidden`),K(n,1,`flex flex-wrap items-center justify-between gap-2`),U(a,e),K(o,1,`flex gap-2`),K(f,1,r)},[()=>i.t(`label-ai-cleanup-changes-selected`,{selected:z(_),total:z(v)}),()=>G($(`min-h-0 flex-1 overflow-y-auto pr-1`,Jh))]),H(e,t)};W(r,e=>{z(a)===`loading`?e(o):z(a)===`select`?e(f,1):z(a)===`diff`&&z(c)&&e(p,2)}),H(e,n)},$$slots:{footer:!0,default:!0}})}A()}Xr([`click`]);var H_=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`label`,`class`,`labelClass`,`floating`,`value`,`spacing`,`srOnly`,`children`]),U_=B(`<div><label> </label> <!></div>`),W_=B(`<div><!> <label> </label></div>`);function G_(e,t){k(t,!0);let n=X(t,`floating`,3,!0),r=X(t,`spacing`,3,`tight`),i=X(t,`srOnly`,3,!1),a=J(t,H_),o=M(!1),s=j(()=>t.value!==void 0),c=j(()=>z(o)||t.value!=null&&String(t.value).length>0);var l=V(),u=F(l),d=e=>{var n=U_();la(n,e=>({class:e,...a}),[()=>$(r()===`tight`?Wh:Kh,t.class)]);var o=P(n),s=I(o,!0);ji(L(o,2),()=>t.children??f),D(n),R(e=>{q(o,`for`,t.id),K(o,1,e),U(s,t.label)},[()=>G($(`flex items-center gap-2 text-xs font-medium leading-none select-none text-foreground`,i()&&`sr-only`,t.labelClass))]),H(e,n)},p=e=>{var n=W_(),r=()=>N(o,!0),i=()=>N(o,!1);la(n,e=>({class:e,...a,onfocusin:r,onfocusout:i}),[()=>$(`group/field relative`,t.class)]);var l=P(n);ji(l,()=>t.children??f);var u=L(l,2),d=I(u,!0);D(n),R(e=>{q(u,`for`,t.id),K(u,1,e),U(d,t.label)},[()=>G($(`pointer-events-none absolute inset-s-2.5 z-10 max-w-[calc(100%-1.25rem)] rounded-none leading-tight transition-[top,transform,font-size,color,background-color,padding] duration-150`,z(s)?z(c)?`top-0 -translate-y-1/2 bg-(--floating-label-bg,var(--card)) px-1 py-px text-xs font-medium text-foreground-bright`:`top-1/2 -translate-y-1/2 bg-transparent px-0 py-0 text-sm font-normal text-muted-foreground`:[`top-0 -translate-y-1/2 bg-(--floating-label-bg,var(--card)) px-1 py-px text-xs font-medium text-foreground-bright`,`group-has-[input:placeholder-shown:not(:focus)]/field:top-1/2`,`group-has-[input:placeholder-shown:not(:focus)]/field:bg-transparent`,`group-has-[input:placeholder-shown:not(:focus)]/field:px-0`,`group-has-[input:placeholder-shown:not(:focus)]/field:py-0`,`group-has-[input:placeholder-shown:not(:focus)]/field:text-sm`,`group-has-[input:placeholder-shown:not(:focus)]/field:font-normal`,`group-has-[input:placeholder-shown:not(:focus)]/field:text-muted-foreground`,`group-has-[textarea:placeholder-shown:not(:focus)]/field:top-3`,`group-has-[textarea:placeholder-shown:not(:focus)]/field:translate-y-0`,`group-has-[textarea:placeholder-shown:not(:focus)]/field:bg-transparent`,`group-has-[textarea:placeholder-shown:not(:focus)]/field:px-0`,`group-has-[textarea:placeholder-shown:not(:focus)]/field:py-0`,`group-has-[textarea:placeholder-shown:not(:focus)]/field:text-sm`,`group-has-[textarea:placeholder-shown:not(:focus)]/field:font-normal`,`group-has-[textarea:placeholder-shown:not(:focus)]/field:text-muted-foreground`],t.labelClass))]),H(e,n)};W(u,e=>{i()||!n()?e(d):e(p,-1)}),H(e,l),A()}var K_=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`value`,`placeholder`]),q_=B(`<div data-slot="textarea"><textarea></textarea></div>`);function J_(e,t){k(t,!0);let n=X(t,`value`,15),r=X(t,`placeholder`,3,` `),i=J(t,K_);var a=q_(),o=P(a);gt(o),la(o,()=>({class:`field-sizing-content min-h-20 w-full resize-y border-0 bg-transparent px-2.5 py-2.5 text-sm outline-none placeholder:text-transparent disabled:cursor-not-allowed`,placeholder:r(),...i})),D(a),R(e=>K(a,1,e),[()=>G($(`border-input flex w-full overflow-hidden rounded-xl border bg-card shadow-xs transition-[color,box-shadow]`,`focus-within:border-primary`,`has-aria-invalid:border-destructive has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40`,`has-disabled:opacity-50`,t.class))]),ga(o,n),H(e,a),A()}function Y_(e,t){this.v=e,this.k=t}function X_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Z_(e){if(Array.isArray(e))return e}function Q_(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function $_(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
39
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ev(e,t){return Z_(e)||Q_(e,t)||tv(e,t)||$_()}function tv(e,t){if(e){if(typeof e==`string`)return X_(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X_(e,t):void 0}}function nv(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof Y_;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}nv.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},nv.prototype.next=function(e){return this._invoke(`next`,e)},nv.prototype.throw=function(e){return this._invoke(`throw`,e)},nv.prototype.return=function(e){return this._invoke(`return`,e)};var rv=Object.entries,iv=Object.setPrototypeOf,av=Object.isFrozen,ov=Object.getPrototypeOf,sv=Object.getOwnPropertyDescriptor,cv=Object.freeze,lv=Object.seal,uv=Object.create,dv=typeof Reflect<`u`&&Reflect,fv=dv.apply,pv=dv.construct;cv||=function(e){return e},lv||=function(e){return e},fv||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},pv||=function(e){return new e(...[...arguments].slice(1))};var mv=Rv(Array.prototype.forEach);Array.prototype.indexOf;var hv=Rv(Array.prototype.lastIndexOf),gv=Rv(Array.prototype.pop),_v=Rv(Array.prototype.push),vv=Rv(Array.prototype.slice),yv=Rv(Array.prototype.splice),bv=Array.isArray,xv=zv(Set),Sv=Rv(Set.prototype.add),Cv=Rv(Set.prototype.has),wv=Rv(String.prototype.toLowerCase),Tv=Rv(String.prototype.toString),Ev=Rv(String.prototype.match),Dv=Rv(String.prototype.replace),Ov=Rv(String.prototype.indexOf),kv=Rv(String.prototype.trim),Av=Rv(Number.prototype.toString),jv=Rv(Boolean.prototype.toString),Mv=typeof BigInt>`u`?null:Rv(BigInt.prototype.toString),Nv=typeof Symbol>`u`?null:Rv(Symbol.prototype.toString),Pv=Rv(Object.prototype.hasOwnProperty),Fv=Rv(Object.prototype.toString),Iv=Rv(RegExp.prototype.test),Lv=zv(TypeError);function Rv(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return fv(e,t,n)}}function zv(e){return function(){return pv(e,[...arguments])}}function Bv(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:wv;if(iv&&iv(e,null),!bv(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(av(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Vv(e){for(let t=0;t<e.length;t++)Pv(e,t)||(e[t]=null);return e}function Hv(e){let t=uv(null);for(let r of rv(e)){var n=ev(r,2);let i=n[0],a=n[1];Pv(e,i)&&(t[i]=bv(a)?Vv(a):a&&typeof a==`object`&&a.constructor===Object?Hv(a):a)}return t}function Uv(e){switch(typeof e){case`string`:return e;case`number`:return Av(e);case`boolean`:return jv(e);case`bigint`:return Mv?Mv(e):`0`;case`symbol`:return Nv?Nv(e):`Symbol()`;case`undefined`:return Fv(e);case`function`:case`object`:{if(e===null)return Fv(e);let t=e,n=Wv(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Fv(e)}return Fv(e)}default:return Fv(e)}}function Wv(e,t){for(;e!==null;){let n=sv(e,t);if(n){if(n.get)return Rv(n.get);if(typeof n.value==`function`)return Rv(n.value)}e=ov(e)}function n(){return null}return n}function Gv(e,t){for(;e!==null;){let n=sv(e,t);if(n)return n.get?Rv(n.get):null;e=ov(e)}return null}function Kv(e){try{return Iv(e,``),!0}catch{return!1}}var qv=cv(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Jv=cv(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Yv=cv([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Xv=cv([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Zv=cv(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Qv=cv([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),$v=cv([`#text`]),ey=cv(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),ty=cv(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),ny=cv(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),ry=cv([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),iy=lv(/{{[\w\W]*|^[\w\W]*}}/g),ay=lv(/<%[\w\W]*|^[\w\W]*%>/g),oy=lv(/\${[\w\W]*/g),sy=lv(/^data-[\-\w.\u00B7-\uFFFF]+$/),cy=lv(/^aria-[\-\w]+$/),ly=lv(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),uy=lv(/^(?:\w+script|data):/i),dy=lv(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fy=lv(/^html$/i),py=lv(/^[a-z][.\w]*(-[.\w]+)+$/i),my=lv(/<[/\w!]/g),hy=lv(/<[/\w]/g),gy=lv(/<\/no(script|embed|frames)/i),_y=lv(/\/>/i),vy={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},yy=cv(Bv({},[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`])),by=function(){return typeof window>`u`?null:window},xy=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Sy=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Cy=function(e,t,n,r){return Pv(e,t)&&bv(e[t])?Bv(r.base?Hv(r.base):{},e[t],r.transform):n},wy=function(e,t,n){let r=Pv(e,t)?e[t]:void 0;return r&&typeof r==`object`?Hv(r):n()};function Ty(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:by(),t=e=>Ty(e);if(t.version=`3.4.17`,t.removed=[],!e||!e.document||e.document.nodeType!==vy.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=Wv(d,`cloneNode`),p=Wv(d,`remove`),m=Wv(d,`removeAttributeNode`),h=Wv(d,`nextSibling`),g=Wv(d,`childNodes`),_=Wv(d,`parentNode`),v=Wv(d,`shadowRoot`),y=Wv(d,`attributes`),b=o&&o.prototype?Wv(o.prototype,`nodeType`):null,x=o&&o.prototype?Wv(o.prototype,`nodeName`):null,S=o&&o.prototype?Wv(o.prototype,`ownerDocument`):null,C=function(e){return b?b(e):e.nodeType},w=function(e){return x?x(e):e.nodeName},ee=Gv(d,`namespaceURI`),te=function(e){return ee?ee(e):e.namespaceURI};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let ne,re=``,ie,ae=!1,oe=0,se=function(){if(oe>0)throw Lv(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},ce=function(e){se(),oe++;try{return ne.createHTML(e)}finally{oe--}},le=function(e){se(),oe++;try{return ne.createScriptURL(e)}finally{oe--}},ue=function(){return ae||=(ie=xy(u,i),!0),ie},T=n,de=T.implementation,fe=T.createNodeIterator,pe=T.createDocumentFragment,me=T.getElementsByTagName,he=r.importNode,ge=Sy();t.isSupported=typeof rv==`function`&&typeof _==`function`&&de&&de.createHTMLDocument!==void 0;let _e=iy,ve=ay,ye=oy,be=sy,xe=cy,Se=uy,Ce=dy,we=py,Te=ly,Ee=null,E=Bv({},[...qv,...Jv,...Yv,...Zv,...$v]),De=null,Oe=Bv({},[...ey,...ty,...ny,...ry]),ke=Object.seal(uv(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ae=null,D=null,O=Object.seal(uv(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),je=!0,Me=!0,Ne=!1,Pe=!0,Fe=!1,Ie=!0,Le=!1,Re=!1,ze=null,Be=null,Ve=!1,He=!1,Ue=!1,We=!1,Ge=!0,Ke=!1,qe=`user-content-`,Je=!0,Ye=!1,Xe=null,Ze={},Qe=null,$e=Bv({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),et=null,tt=Bv({},[`audio`,`video`,`img`,`source`,`image`,`track`]),nt=null,rt=Bv({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),it=`http://www.w3.org/1998/Math/MathML`,k=`http://www.w3.org/2000/svg`,A=`http://www.w3.org/1999/xhtml`,at=A,ot=!1,st=null,ct=Bv({},[it,k,A],Tv),lt=cv([`mi`,`mo`,`mn`,`ms`,`mtext`]),ut=Bv({},lt),dt=cv([`annotation-xml`]),ft=Bv({},dt),pt=Bv({},[`title`,`style`,`font`,`a`,`script`]),mt=null,ht=[`application/xhtml+xml`,`text/html`],gt=null,_t=null,vt=n.createElement(`form`),yt=function(e){return e instanceof RegExp||e instanceof Function},bt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(_t&&_t===e)return;e&&typeof e==`object`||(e={}),e=Hv(e),mt=ht.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,gt=mt===`application/xhtml+xml`?Tv:wv,Ee=Cy(e,`ALLOWED_TAGS`,E,{transform:gt}),De=Cy(e,`ALLOWED_ATTR`,Oe,{transform:gt}),st=Cy(e,`ALLOWED_NAMESPACES`,ct,{transform:Tv}),nt=Cy(e,`ADD_URI_SAFE_ATTR`,rt,{transform:gt,base:rt}),et=Cy(e,`ADD_DATA_URI_TAGS`,tt,{transform:gt,base:tt}),Qe=Cy(e,`FORBID_CONTENTS`,$e,{transform:gt}),Ae=Cy(e,`FORBID_TAGS`,Hv({}),{transform:gt}),D=Cy(e,`FORBID_ATTR`,Hv({}),{transform:gt}),Ze=Pv(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Hv(e.USE_PROFILES):e.USE_PROFILES:!1,je=e.ALLOW_ARIA_ATTR!==!1,Me=e.ALLOW_DATA_ATTR!==!1,Ne=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Fe=e.SAFE_FOR_TEMPLATES||!1,Ie=e.SAFE_FOR_XML!==!1,Le=e.WHOLE_DOCUMENT||!1,He=e.RETURN_DOM||!1,Ue=e.RETURN_DOM_FRAGMENT||!1,We=e.RETURN_TRUSTED_TYPE||!1,Ve=e.FORCE_BODY||!1,Ge=e.SANITIZE_DOM!==!1,Ke=e.SANITIZE_NAMED_PROPS||!1,Je=e.KEEP_CONTENT!==!1,Ye=e.IN_PLACE||!1,Te=Kv(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:ly,at=typeof e.NAMESPACE==`string`?e.NAMESPACE:A,ut=wy(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>Bv({},lt)),ft=wy(e,`HTML_INTEGRATION_POINTS`,()=>Bv({},dt));let t=wy(e,`CUSTOM_ELEMENT_HANDLING`,()=>uv(null));if(ke=uv(null),Pv(t,`tagNameCheck`)&&yt(t.tagNameCheck)&&(ke.tagNameCheck=t.tagNameCheck),Pv(t,`attributeNameCheck`)&&yt(t.attributeNameCheck)&&(ke.attributeNameCheck=t.attributeNameCheck),Pv(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(ke.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),lv(ke),Fe&&(Me=!1),Ue&&(He=!0),Ze&&(Ee=Bv({},$v),De=uv(null),Ze.html===!0&&(Bv(Ee,qv),Bv(De,ey)),Ze.svg===!0&&(Bv(Ee,Jv),Bv(De,ty),Bv(De,ry)),Ze.svgFilters===!0&&(Bv(Ee,Yv),Bv(De,ty),Bv(De,ry)),Ze.mathMl===!0&&(Bv(Ee,Zv),Bv(De,ny),Bv(De,ry))),O.tagCheck=null,O.attributeCheck=null,Pv(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?O.tagCheck=e.ADD_TAGS:bv(e.ADD_TAGS)&&(Ee===E&&(Ee=Hv(Ee)),Bv(Ee,e.ADD_TAGS,gt))),Pv(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?O.attributeCheck=e.ADD_ATTR:bv(e.ADD_ATTR)&&(De===Oe&&(De=Hv(De)),Bv(De,e.ADD_ATTR,gt))),Pv(e,`ADD_FORBID_CONTENTS`)&&bv(e.ADD_FORBID_CONTENTS)&&(Qe===$e&&(Qe=Hv(Qe)),Bv(Qe,e.ADD_FORBID_CONTENTS,gt)),Je&&(Ee[`#text`]=!0),Le&&Bv(Ee,[`html`,`head`,`body`]),Ee.table&&(Bv(Ee,[`tbody`]),delete Ae.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Lv(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Lv(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=ne;ne=e.TRUSTED_TYPES_POLICY;try{re=ce(``)}catch(e){throw ne=t,e}}else e.TRUSTED_TYPES_POLICY===null?(ne=void 0,re=``):(ne===void 0&&(ne=ue()),ne&&typeof re==`string`&&(re=ce(``)));cv&&cv(e),_t=e},xt=Bv({},[...Jv,...Yv,...Xv]),St=Bv({},[...Zv,...Qv]),Ct=function(e,t,n){return t.namespaceURI===A?e===`svg`:t.namespaceURI===it?e===`svg`&&(n===`annotation-xml`||ut[n]):!!xt[e]},wt=function(e,t,n){return t.namespaceURI===A?e===`math`:t.namespaceURI===k?e===`math`&&ft[n]:!!St[e]},Tt=function(e,t,n){return t.namespaceURI===k&&!ft[n]||t.namespaceURI===it&&!ut[n]?!1:!St[e]&&(pt[e]||!xt[e])},Et=function(e){let t=te(e),n=wv(w(e)),r=_(e),i,a;return r&&C(r)===vy.element?(i={namespaceURI:te(r)},a=wv(w(r))):(i={namespaceURI:at},a=`template`),st[t]?t===k?Ct(n,i,a):t===it?wt(n,i,a):t===A?Tt(n,i,a):!!(mt===`application/xhtml+xml`&&st[t]):!1},Dt=function(e){_v(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw Lv(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},j=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},Ot=function(e){Mt(e);let t=g(e);t&&mv(vv(t),e=>{try{p(e)}catch{}});let n=C(e)===vy.element?y(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&j(e,r,i)}},kt=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}_v(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(He||Ue)try{Dt(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},At=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||De[gt(i)]||j(e,r,i)}},jt=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=[e];for(;r.length>0;){let e=r.pop();if(t(e)===!1)continue;if(n&&C(e)===vy.element){let t=v(e);qt(t)&&r.push(t)}let i=g(e);if(i)for(let e=i.length-1;e>=0;--e)r.push(i[e])}},Mt=function(e){jt(e,e=>{C(e)===vy.element&&At(e)})},Nt=function(e){let t=[];return jt(e,e=>{t.push(e)},!0),t},Pt=function(e,t){let n=xv();mv(Nt(e),e=>{C(e)===vy.element&&Sv(n,e)}),mv(t,e=>{C(e)===vy.element&&!Cv(n,e)&&At(e)})},Ft=function(e,n){let r=!1;return mv(t.removed,t=>{t.element&&(r||=t.element===e,Mt(t.element))}),Pt(e,n),r},It=function(e,t){let n=Xe,r=null,i=()=>(r||(r=xv(),mv(t,e=>{Sv(r,e)})),r);for(let t=0;;t++){let r=Nt(e),a=[e],o=!1;if(mv(r,e=>{C(e)===vy.documentFragment?_v(a,e):!o&&!Cv(n,e)&&(o=Cv(i(),e))}),!o)return;if(t>=8)throw Lv(`the tree kept changing during in-place sanitization; refusing to return it`);mv(a,(t,n)=>{Lt(t,n>0,e,i())})}},Lt=function(e,t,n,r){let i=Ht(e),a;for(;a=i.nextNode();)Cv(r,a)&&!Cv(Xe,a)&&(t&&Yt(ge.uponSanitizeShadowNode,a,null),tn(a,n),sn(a,n),qt(a.content)&&cn(a.content))},Rt=function(e){Xe&&Sv(Xe,e)},zt=function(e,t){return Ie?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},Bt=function(e){Ie&&jt(e,e=>{let t=C(e);if(t===vy.processingInstruction||t===vy.comment&&Iv(hy,e.data)){try{p(e)}catch{}return!1}if(t===vy.element){let t=e,n=gt(w(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&zt(`for`,n)&&t.removeAttribute(`for`)}catch{}}return!0})},Vt=function(e){let t=null,r=null;if(Ve)e=`<remove></remove>`+e;else{let t=Ev(e,/^[\r\n\t ]+/);r=t&&t[0]}mt===`application/xhtml+xml`&&at===A&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=ne?ce(e):e;if(at===A)try{t=new l().parseFromString(i,mt)}catch{}if(!t||!t.documentElement){t=de.createDocument(at,`template`,null);try{t.documentElement.innerHTML=ot?re:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),at===A?me.call(t,Le?`html`:`body`)[0]:Le?t.documentElement:a},Ht=function(e){let t=S?S(e):e.ownerDocument;return fe.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ut=function(e){return e=Dv(e,_e,` `),e=Dv(e,ve,` `),e=Dv(e,ye,` `),e},Wt=function(e){Gt(e);let t=e.querySelectorAll?.call(e,`template`);t&&mv(t,e=>{qt(e.content)&&Wt(e.content)})},Gt=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=fe.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Ut(r.data),r=n.nextNode()},Kt=function(e){let t=x?x(e):null;return typeof t!=`string`||gt(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},qt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===vy.documentFragment}catch{return!1}},Jt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function Yt(e,n,r){e.length!==0&&mv(e,e=>{e.call(t,n,r,_t)})}let Xt=function(e,t){return!!(Ie&&e.hasChildNodes()&&!Jt(e.firstElementChild)&&Iv(my,e.textContent)&&Iv(my,e.innerHTML)||Ie&&yy[t]&&C(e)===vy.element&&te(e)===A&&(Jt(e.firstElementChild)||typeof e.textContent==`string`&&Iv(my,e.textContent))||e.nodeType===vy.processingInstruction||Ie&&e.nodeType===vy.comment&&Iv(hy,e.data))},Zt=function(e,t){return e instanceof RegExp?Iv(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},Qt=function(e,t,n){if(!Ae[t]&&rn(t)&&Zt(ke.tagNameCheck,t))return!1;if(Je&&!Qe[t]&&!Qe[wv(t)]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return Dt(e),!0},$t=function(e,t,n,r){return e.length===0?t:t===n||t===r?Hv(t):t},en=function(e,t){return e===t||_(e)!==null?!1:(Ye&&Mt(e),!0)},tn=function(e,n){if(Rt(e),Yt(ge.beforeSanitizeElements,e,null),en(e,n))return!0;if(Kt(e))return Dt(e),!0;let r=gt(w(e));if(Ee=$t(ge.uponSanitizeElement,Ee,E,ze),Yt(ge.uponSanitizeElement,e,{tagName:r,allowedTags:Ee}),en(e,n))return!0;if(Xt(e,r))return Dt(e),!0;if(Ae[r]||!(O.tagCheck instanceof Function&&O.tagCheck(r))&&!Ee[r]){let t=Qt(e,r,n);return t===!1&&(Yt(ge.afterSanitizeElements,e,null),en(e,n))?!0:t}if(C(e)===vy.element&&!Et(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Iv(gy,e.innerHTML))return Dt(e),!0;if(Fe&&e.nodeType===vy.text){let n=Ut(e.textContent);e.textContent!==n&&(_v(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Yt(ge.afterSanitizeElements,e,null),en(e,n)},nn=function(e,t,r){if(D[t]||zt(t,e)||Ge&&(t===`id`||t===`name`)&&(r in n||r in vt))return!1;let i=De[t]||O.attributeCheck instanceof Function&&O.attributeCheck(t,e);return Me&&Iv(be,t)||je&&Iv(xe,t)?!0:i?nt[t]||Iv(Te,Dv(r,Ce,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Ov(r,`data:`)===0&&et[e]||Ne&&!Iv(Se,Dv(r,Ce,``))?!0:!r:rn(e)&&Zt(ke.tagNameCheck,e)&&Zt(ke.attributeNameCheck,t,e)||t===`is`&&ke.allowCustomizedBuiltInElements&&Zt(ke.tagNameCheck,r)},M=Bv({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),rn=function(e){return!M[wv(e)]&&Iv(we,e)},N=function(e,t,n,r){if(ne&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return ce(r);case`TrustedScriptURL`:return le(r)}return r},an=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!Kt(e)||(Dt(e),!1)}catch{return kt(t,e),!1}},on=function(e,t){return Ie&&Iv(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t)?!0:wv(e)===`attributename`&&Ev(t,`href`)!==null},sn=function(e,n){if(Yt(ge.beforeSanitizeAttributes,e,null),en(e,n))return;let r=e.attributes;if(!r||Kt(e))return;De=$t(ge.uponSanitizeAttribute,De,Oe,Be);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:De,forceKeepAttr:void 0},a=r.length,o=gt(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=gt(s),d=l,f=s===`value`?d:kv(d),p=!1;i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,Yt(ge.uponSanitizeAttribute,e,i),f=i.attrValue,Ke&&(u===`id`||u===`name`)&&Ov(f,qe)!==0&&(kt(s,e,n),f=qe+f,p=!0),on(s,f)?kt(s,e,n):i.forceKeepAttr||(i.keepAttr?!Pe&&Iv(_y,f)?kt(s,e,n):(Fe&&(f=Ut(f)),nn(o,u,f)?(f=N(o,u,c,f),f!==d&&an(e,s,c,f)&&p&&gv(t.removed)):kt(s,e,n)):kt(s,e,n))}Yt(ge.afterSanitizeAttributes,e,null),en(e,n)},cn=function(e){let t=null,n=Ht(e);for(Yt(ge.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Yt(ge.uponSanitizeShadowNode,t,null),tn(t,e),sn(t,e),qt(t.content)&&cn(t.content),C(t)===vy.element){let e=v(t);qt(e)&&(ln(e),cn(e))}Fe&&Gt(e),Yt(ge.afterSanitizeShadowDOM,e,null)},ln=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){cn(e.shadow);continue}let n=e.node,r=C(n)===vy.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&&gt(e)===`template`){let e=n.content;qt(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);qt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(ot=!e,ot&&(e=`<!-->`),typeof e!=`string`&&!Jt(e)&&(e=Uv(e),typeof e!=`string`))throw Lv(`dirty is not a string, aborting`);if(!t.isSupported)return e;Re?(Ee=ze,De=Be):bt(n),(ge.uponSanitizeElement.length>0||ge.uponSanitizeAttribute.length>0)&&(Ee=Hv(Ee)),ge.uponSanitizeAttribute.length>0&&(De=Hv(De)),t.removed=[];let c=Ye&&typeof e!=`string`&&Jt(e),l=[],u=Xe;if(c){Bt(e);let t=w(e);if(typeof t==`string`){let n=gt(t);if(!Ee[n]||Ae[n])throw Ot(e),Lv(`root node is forbidden and cannot be sanitized in-place`)}if(Kt(e))throw Ot(e),Lv(`root node is clobbered and cannot be sanitized in-place`);l=Nt(e),Xe=xv()}else if(Jt(e))i=Vt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===vy.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),ln(i);else{if(!He&&!Fe&&!Le&&e.indexOf(`<`)===-1)return ne&&We?ce(e):e;if(i=Vt(e),!i)return He?null:We?re:``}i&&Ve&&Dt(i.firstChild);let d=c?e:i;try{c&&ln(e);let t=Ht(d);for(;o=t.nextNode();)tn(o,d),sn(o,d),qt(o.content)&&cn(o.content);c&&It(e,l)}catch(t){throw c&&(Ot(e),Ft(e,l)),t}finally{Xe=u}if(c){if(Ft(e,l))throw Lv(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return Fe&&Wt(e),e}if(He){if(Fe&&Wt(i),Ue)for(s=pe.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(De.shadowroot||De.shadowrootmode)&&(s=he.call(r,s,!0)),s}let f=Le?i.outerHTML:i.innerHTML;return Le&&Ee[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Iv(fy,i.ownerDocument.doctype.name)&&(f=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
40
- `+f),Fe&&(f=Ut(f)),ne&&We?ce(f):f},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};bt(e),Re=!0,ze=Ee,Be=De},t.clearConfig=function(){_t=null,Re=!1,ze=null,Be=null,ne=ie,re=``},t.isValidAttribute=function(e,t,n){_t||bt({});let r=gt(e),i=gt(t);return typeof n==`string`&&(on(t,n)||!Pe&&Iv(_y,n))?!1:nn(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Pv(ge,e)&&_v(ge[e],t)},t.removeHook=function(e,t){if(Pv(ge,e)){if(t!==void 0){let n=hv(ge[e],t);return n===-1?void 0:yv(ge[e],n,1)[0]}return gv(ge[e])}},t.removeHooks=function(e){Pv(ge,e)&&(ge[e]=[])},t.removeAllHooks=function(){ge=Sy()},t}var Ey=Ty();function Dy(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Oy=Dy();function ky(e){Oy=e}var Ay={exec:()=>null};function jy(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function My(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Py.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var Ny=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),Py={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,blockquoteMarkerWhitespace:/^( {0,3}>)([ \t]+)/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/,numericCharacterReferenceOrAmpersand:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:jy(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:jy(e=>RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:jy(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:jy(e=>RegExp(`^ {0,${e}}#{1,6}(?:\\s|$)`)),pedanticHeadingBeginRegex:jy(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:jy(e=>RegExp(`^ {0,${e}}(?:</?(?:${Yy})(?: +|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`,`i`)),blockquoteBeginRegex:jy(e=>RegExp(`^ {0,${e}}>`))},Fy=/^(?:[ \t]*(?:\n|$))+/,Iy=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ly=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ry=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,zy=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,By=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Vy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Hy=My(Vy).replace(/bull/g,By).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Uy=My(Vy).replace(/bull/g,By).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Wy=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Gy=/^[^\n]+/,Ky=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,qy=My(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Ky).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Jy=My(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,By).getRegex(),Yy=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Xy=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Zy=My(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?:[ \\t]+|\\n|/?>|$)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!(?:script|pre|style|textarea)(?![a-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Xy).replace(`tag`,Yy).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Qy=e=>My(Wy).replace(`hr`,Ry).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,e).replace(`html`,` {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`).replace(`tag`,Yy).getRegex(),$y=Qy(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),eb=Qy(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),tb={blockquote:My(/^( {0,3}> ?(?:(?![ \t]*(?:\n|$))(paragraph)|[^\n]*)(?:\n|$))+/).replace(`paragraph`,eb).getRegex(),code:Iy,def:qy,fences:Ly,heading:zy,hr:Ry,html:Zy,lheading:Hy,list:Jy,newline:Fy,paragraph:$y,table:Ay,text:Gy},nb=My(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Ry).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,` {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`).replace(`tag`,Yy).getRegex(),rb={...tb,lheading:Uy,table:nb,paragraph:My(Wy).replace(`hr`,Ry).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,nb).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,` {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`).replace(`tag`,Yy).getRegex()},ib={...tb,html:My(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Xy).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ay,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:My(Wy).replace(`hr`,Ry).replace(`heading`,` *#{1,6} *[^
41
- ]`).replace(`lheading`,Hy).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},ab=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ob=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,sb=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,cb=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,lb=/[\p{P}\p{S}]/u,ub=/[\s\p{P}\p{S}]/u,db=/[^\s\p{P}\p{S}]/u,fb=My(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,ub).getRegex(),pb=/[\p{Pi}\p{Ps}"']/u,mb=/(?!~)[\p{P}\p{S}]/u,hb=/(?!~)[\s\p{P}\p{S}]/u,gb=/(?:[^\s\p{P}\p{S}]|~)/u,_b=My(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,Ny?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),vb=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,yb=My(vb,`u`).replace(/punct/g,lb).getRegex(),bb=My(vb,`u`).replace(/punct/g,mb).getRegex(),xb=My(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,`u`).replace(/openQuote/g,pb).replace(/punct/g,lb).getRegex(),Sb=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,Cb=My(Sb,`gu`).replace(/notPunctSpace/g,db).replace(/punctSpace/g,ub).replace(/punct/g,lb).getRegex(),wb=My(Sb,`gu`).replace(/notPunctSpace/g,gb).replace(/punctSpace/g,hb).replace(/punct/g,mb).getRegex(),Tb=My(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,db).replace(/punctSpace/g,ub).replace(/punct/g,lb).getRegex(),Eb=My(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,db).replace(/punctSpace/g,ub).replace(/punct/g,lb).getRegex(),Db=My(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,db).replace(/punctSpace/g,ub).replace(/punct/g,lb).getRegex(),Ob=My(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,lb).getRegex(),kb=My(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,db).replace(/punctSpace/g,ub).replace(/punct/g,lb).getRegex(),Ab=My(/\\(punct)/,`gu`).replace(/punct/g,lb).getRegex(),jb=My(/(`+)(?:[^`]|[^`][\s\S]*?[^`])\1(?!`)|`+|\\(punct)/,`gu`).replace(/punct/g,lb).getRegex(),Mb=My(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Nb=My(Xy).replace(`(?:-->|$)`,`-->`).getRegex(),Pb=My(`^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,Nb).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Fb=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,Ib=My(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace(`brackets`,Fb).getRegex(),Lb=My(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace(`label`,Ib).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Rb=My(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Ib).replace(`ref`,Ky).getRegex(),zb=My(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Ky).getRegex(),Bb=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,Vb=My(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace(`brackets`,Fb).getRegex(),Hb=My(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,My(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Vb).replace(`ref`,Bb).getRegex()).replace(`nolink`,My(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Bb).getRegex()).getRegex(),Ub=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Wb=My(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),Gb={_backpedal:Ay,anyPunctuation:Ab,anyPunctuationOutsideCode:jb,autolink:Mb,blockSkip:_b,br:sb,code:ob,del:Ay,delLDelim:Ay,delRDelim:Ay,emStrongLDelim:yb,emStrongRDelimAst:Cb,emStrongRDelimUnd:Eb,escape:ab,link:Lb,nolink:zb,punctuation:fb,reflink:Rb,reflinkSearch:Hb,tag:Pb,text:cb,url:Ay},Kb={...Gb,emStrongLDelim:xb,emStrongRDelimAst:Tb,emStrongRDelimUnd:Db,link:My(/^!?\[(label)\]\((.*?)\)/).replace(`label`,Ib).getRegex(),reflink:My(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,Ib).getRegex()},qb={...Gb,emStrongRDelimAst:wb,emStrongLDelim:bb,delLDelim:Ob,delRDelim:kb,url:My(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`emailProtocol`,Wb).replace(`protocol`,Ub).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:My(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace(`protocol`,Ub).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},Jb={...qb,br:My(sb).replace(`{2,}`,`*`).getRegex(),text:My(qb.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Yb={normal:tb,gfm:rb,pedantic:ib},Xb={normal:Gb,gfm:qb,breaks:Jb,pedantic:Kb},Zb={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Qb=e=>Zb[e];function $b(e,t){if(t){if(Py.escapeTest.test(e))return e.replace(Py.escapeReplace,Qb)}else if(Py.escapeTestNoEncode.test(e))return e.replace(Py.escapeReplaceNoEncode,Qb);return e}function ex(e){return Py.numericCharacterReference.test(e)?e.replace(Py.numericCharacterReferenceOrAmpersand,(e,t,n)=>{if(t===void 0&&n===void 0)return`&amp;`;let r=t===void 0?Number.parseInt(n,16):Number.parseInt(t,10);return r===0||r>1114111||r>=55296&&r<=57343?`�`:r===38?`&amp;`:String.fromCodePoint(r)}):e}function tx(e){try{e=encodeURI(e).replace(Py.percentDecode,`%`)}catch{return null}return e}function nx(e,t){let n=e.replace(Py.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(Py.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(Py.slashPipe,`|`);return n}function rx(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function ix(e){let t=e.split(`
42
- `),n=t.length-1;for(;n>=0&&Py.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
43
- `)}function ax(e){return e.trim().toLowerCase().toUpperCase().toLowerCase()}function ox(e,t){if(e.indexOf(t[0])===-1&&e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function sx(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function cx(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`),c=e[0].charAt(0)===`!`,l=r.state.inLink,u=r.state.linkEmitted,d=r.state.inRawBlock;r.state.inLink=!0,r.state.linkEmitted=!1;let f=r.inlineTokens(s),p=r.state.linkEmitted;if(r.state.linkEmitted=u,r.state.inLink=l,!c){if(p){r.state.inRawBlock=d;return}r.state.linkEmitted=!0}return{type:c?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:f}}function lx(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
44
- `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return e.slice(Math.min(r.length,i.length))}).join(`
45
- `)}function ux(e,t,n,r){if(!t.includes(`<`))return!1;for(let i=0;i<t.length;i++){if(t[i]===`\\`){i++;continue}if(t[i]==="`"){let e=r.inline.code.exec(t.slice(i));if(e){i+=e[0].length-1;continue}}if(t[i]!==`<`)continue;let a=e.slice(n+i),o=r.inline.tag.exec(a)||r.inline.autolink.exec(a);if(o){if(o[0].length>t.length-i)return!0;i+=o[0].length-1}}return!1}var dx=class{options;rules;lexer;constructor(e){this.options=e||Oy}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:ix(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=lx(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=rx(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceTabChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:rx(t[0],`
46
- `),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:rx(t[0],`
47
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=rx(t[0],`
48
- `).split(`
49
- `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
50
- `),c=s.replace(this.rules.other.blockquoteMarkerWhitespace,(e,t,n)=>t+sx(n,t.length)).replace(this.rules.other.blockquoteSetextReplace,`
51
- $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
52
- ${s}`:s,r=r?`${r}
53
- ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`||u?.type===`heading`||u?.type===`hr`||u?.type===`html`)break;if(u?.type===`blockquote`){let t=u,a=e.join(`
54
- `),o=t.raw+`
55
- `+a.replace(this.rules.other.blockquoteSetextReplace2,``),s=this.blockquote(o);i[i.length-1]=s;let c=o.substring(s.raw.length).replace(/^\n/,``),l=c?c.split(`
56
- `).length:0,d=l?e.slice(0,-l):e;d.length>0&&(n=`${n}
57
- ${d.join(`
58
- `)}`),r=r.substring(0,r.length-t.text.length)+s.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
59
- `+e.join(`
60
- `),o=this.list(a);i[i.length-1]=o;let s=o.raw.length>t.raw.length?a.slice(t.raw.length+1,o.raw.length).split(`
61
- `).length:0;if(s>0){let t=e.slice(0,s).join(`
62
- `);n=`${n}
63
- ${t}`,r=`${r}
64
- ${t}`}e=e.slice(s)}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=e,r=()=>n.length-e.length,i=t[1].trim(),a=i.length>1,o={type:`list`,raw:``,ordered:a,start:a?+i.slice(0,-1):``,loose:!1,items:[]};i=a?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=a?i:`[*+-]`);let s=this.rules.other.listItemRegex(i),c=!1;for(;e;){let i=!1,a=``;if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;let l=r();e=e.substring(t[0].length);let u=t[2].split(`
65
- `,1)[0],d=t[1].length,f=this.options.pedantic?sx(u,d):u.replace(this.rules.other.leadingSpaceTab,e=>sx(e,d)),p=e.split(`
66
- `,1)[0],m=!f.trim(),h=0;if(this.options.pedantic?(h=2,a=f.trimStart()):m?h=d+1:(h=f.search(this.rules.other.nonSpaceChar),h=h>4?1:h,a=f.slice(h),h+=d),m&&this.rules.other.blankLine.test(p)&&(e=e.substring(p.length+1),i=!0),!i){let t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),r=this.rules.other.fencesBeginRegex(h),i=this.options.pedantic?this.rules.other.pedanticHeadingBeginRegex(h):this.rules.other.headingBeginRegex(h),o=this.rules.other.htmlBeginRegex(h),s=this.rules.other.blockquoteBeginRegex(h);for(;e;){let c=e.split(`
67
- `,1)[0],l;if(p=c,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting,` `),l=p):l=p.replace(this.rules.other.leadingSpaceTab,e=>sx(e)),r.test(p)||i.test(p)||o.test(p)||s.test(p)||t.test(p)||n.test(p))break;if(l.search(this.rules.other.nonSpaceChar)>=h||!p.trim())a+=`
68
- `+l.slice(h);else{if(m||f.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||r.test(f)||i.test(f)||n.test(f))break;let e=!this.options.pedantic&&/^ {0,3}(?:=+|-+) *$/.test(p)&&this.rules.block.lheading.test(`${f}
69
- ${p}`)?` ${l.replace(/^ {0,3}/,``)}`:p;a+=`
70
- `+e}m=!p.trim(),e=e.substring(c.length+1),f=l.slice(h)}}let g=n.slice(l,r());o.loose||(c?o.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(c=!0)),o.items.push({type:`list_item`,raw:g,task:!!this.options.gfm&&this.rules.other.listIsTask.test(a),loose:!1,text:a,tokens:[]})}let l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=n.slice(0,r()).trimEnd();for(let e of o.items)if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),!o.loose){let t=e.tokens.filter(e=>e.type===`space`);o.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}for(let e of o.items){let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,o.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1}if(o.loose)for(let e of o.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return o}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=ix(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){if(!this.rules.other.startAngleBracket.test(t[2])&&ox(t[2],`()`)!==-1)return;let e=ax(t[1]).replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:rx(t[0],`
71
- `),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=nx(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
72
- `):[],a={type:`table`,raw:rx(t[0],`
73
- `),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(nx(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:rx(t[0],`
74
- `),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
75
- `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){if(this.lexer.state.linkParenPossible===!1)return;let t=this.rules.inline.link.exec(e);if(t){let n=t[0].charAt(0)===`!`?2:1;if(!this.options.pedantic&&ux(e,t[1],n,this.rules))return;let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let e=rx(r.slice(0,-1),`\\`);if((r.length-e.length)%2==0)return}else{let e=ox(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let i=t[2],a=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(i);e&&(i=e[1],a=e[3])}else a=t[3]?t[3].slice(1,-1):``;return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(i=this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i.slice(1):i.slice(1,-1)),cx(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,`$1`),title:a&&a.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=n[0].charAt(0)===`!`?2:1;if(!this.options.pedantic&&ux(e,n[1],r,this.rules))return;let i=t[ax((n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `))];if(!i){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return cx(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!r||!r[1]&&!r[2]&&!r[3]&&!r[4])return;let i=r[0][0],a=n===i,o=t.length-e.length,s=o;for(;!this.options.pedantic&&s>0&&t[s-1]===i;)s--;let c=[...t.slice(Math.max(0,s-2),s)].at(-1)??``,l=c===`*`||c===`_`||!!this.rules.inline.punctuation.exec(c);s<o&&(n=c);let u=s<o?l:!!this.rules.inline.punctuation.exec(n);if(r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))return;let d=r[1]||r[3]||``;if(!d||!n||u){let n=[...r[0]].length-1,u,f,p=n,m=0,h=o-s+n,g=!this.options.pedantic&&!!c.trim()&&(!!d||i===`*`&&!l),_=i===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(_.lastIndex=0,t=t.slice(-1*e.length+n);(r=_.exec(t))!==null;){if(u=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!u)continue;if(f=[...u].length,r[3]||r[4]){p+=f;continue}if(r[5]||r[6]||g){if(a&&(r[5]||r[6]))break;if(h%3&&!((h+f)%3)){m+=f;continue}}if(p-=f,p>0)continue;f=Math.min(f,f+p+m);let t=[...r[0]][0].length,i=e.slice(0,n+r.index+t+f);if(Math.min(n,f)%2){let e=i.slice(1,-1);return{type:`em`,raw:i,text:e,tokens:this.lexer.inlineTokens(e)}}let o=i.slice(2,-2);return{type:`strong`,raw:i,text:o,tokens:this.lexer.inlineTokens(o)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:e?t[0]:ex(t[0]),escaped:e}}}},fx=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Oy,this.options.tokenizer=this.options.tokenizer||new dx,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,linkParenPossible:!0,top:!0};let t={other:Py,block:Yb.normal,inline:Xb.normal};this.options.pedantic?(t.block=Yb.pedantic,t.inline=Xb.pedantic):this.options.gfm&&(t.block=Yb.gfm,t.inline=this.options.breaks?Xb.breaks:Xb.gfm),this.tokenizer.rules=t}static get rules(){return{block:Yb,inline:Xb}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(Py.carriageReturn,`
76
- `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.state.inRawBlock=!1,this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(Py.tabCharGlobal,` `).replace(Py.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
77
- `:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
78
- `)?``:`
79
- `)+i.raw,n.text+=`
80
- `+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if((i=this.tokenizer.fences(e))||(i=this.tokenizer.heading(e))||(i=this.tokenizer.hr(e))||(i=this.tokenizer.blockquote(e))||(i=this.tokenizer.list(e))||(i=this.tokenizer.html(e))){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
81
- `)?``:`
82
- `)+i.raw,n.text+=`
83
- `+i.raw,this.inlineQueue.at(-1).src=n.text):(this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}),t.push(i));continue}if((i=this.tokenizer.table(e))||(i=this.tokenizer.lheading(e))){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
84
- `)?``:`
85
- `)+i.raw,r.text+=`
86
- `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length)}else if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
87
- `)?``:`
88
- `)+i.raw,n.text+=`
89
- `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i)}else if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes(`[`))return!1;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&e.charAt(n.index-1)!==`!`)return!0;for(let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let e=t[0],n=e.lastIndexOf(`[`);if(e.charAt(0)!==`!`&&Object.hasOwn(this.tokens.links,ax(e.slice(n+1,-1)))&&!(n>1&&this.linkInText(e.slice(1,n-1))))return!0}return!1}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=this.state.linkParenPossible;this.state.linkParenPossible=n&&e.includes(`)`);try{return this.#e(e,t)}finally{this.state.linkParenPossible=n}}#e(e,t){let n=e.includes(`*`)||e.includes(`_`)||e.includes(`~`)||this.options.hooks?.emStrongMask||this.tokenizer.emStrong!==dx.prototype.emStrong||this.tokenizer.del!==dx.prototype.del?this.#t(e):e,r=!1,i=``,a=1/0;for(;e;){if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(i=``),r=!1;let o;if(this.options.extensions?.inline?.some(n=>(o=n.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),!0):!1))continue;if((o=this.tokenizer.escape(e))||(o=this.tokenizer.tag(e))||(o=this.tokenizer.link(e))){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let n=t.at(-1);o.type===`text`&&n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if((o=this.tokenizer.emStrong(e,n,i))||(o=this.tokenizer.codespan(e))||(o=this.tokenizer.br(e))||(o=this.tokenizer.del(e,n,i))||(o=this.tokenizer.autolink(e))||!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(s)){e=e.substring(o.raw.length),o.raw.slice(-1)!==`_`&&(i=o.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o)}else if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}#t(e){let t=e;if(this.tokens.links&&e.includes(`[`)){let e=this.tokenizer.rules.inline.reflinkSearch,n=t=>{let r=t.lastIndexOf(`[`);if(!Object.hasOwn(this.tokens.links,ax(t.slice(r+1,-1))))return t;if(r>1&&t.charAt(0)!==`!`){let i=t.slice(1,r-1);if(this.linkInText(i))return`[`+i.replace(e,n)+`][`+`a`.repeat(t.length-r-2)+`]`}return`[`+`a`.repeat(t.length-2)+`]`};t=t.replace(e,n)}return t=t.replace(this.tokenizer.rules.inline.anyPunctuationOutsideCode,(e,t,n)=>n?`+`.repeat(e.length):t?t+e.slice(t.length,-t.length).replace(/`/g,`+`)+t:e),t=t.replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+`[`+`a`.repeat(e.length-r-2)+`]`}),t=this.options.hooks?.emStrongMask?.call({lexer:this},t)??t,t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},px=class{options;parser;constructor(e){this.options=e||Oy}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(Py.notSpaceStart)?.[0],i=e?e.replace(Py.endingNewline,``)+`
90
- `:``;return r?`<pre><code class="language-`+$b(r)+`">`+(n?i:$b(i,!0))+`</code></pre>
91
- `:`<pre><code>`+(n?i:$b(i,!0))+`</code></pre>
92
- `}blockquote({tokens:e}){return`<blockquote>
93
- ${this.parser.parse(e)}</blockquote>
94
- `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
95
- `}hr(e){return`<hr>
96
- `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
97
- `+r+`</`+i+`>
98
- `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
99
- `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
100
- `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
101
- <thead>
102
- `+t+`</thead>
103
- `+r+`</table>
104
- `}tablerow({text:e}){return`<tr>
105
- ${e}</tr>
106
- `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
107
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${$b(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:n,tokens:r,autolink:i}){let a=i?$b(n,!0):this.parser.parseInline(r),o=tx(e);if(o===null)return a;e=$b(o,i);let s=`<a href="`+e+`"`;return t&&(s+=` title="`+$b(t)+`"`),s+=`>`+a+`</a>`,s}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=tx(e);if(i===null)return $b(n);e=i;let a=`<img src="${$b(e)}" alt="${$b(n)}"`;return t&&(a+=` title="${$b(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:$b(e.text)}},mx=class{parser;strong({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}em({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}codespan({text:e}){return e}del({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}html({text:e}){return e}text({text:e}){return e}link({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}image({text:e,tokens:t}){return t?this.parser.parseInline(t,this):e}br(){return``}checkbox({raw:e}){return e}},hx=class e{options;renderer;textRenderer;constructor(e){this.options=e||Oy,this.options.renderer=this.options.renderer||new px,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new mx,this.textRenderer.parser=this}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`checkbox`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`checkbox`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},gx=class{options;block;constructor(e){this.options=e||Oy}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?fx.lex:fx.lexInline}provideParser(e=this.block){return e?hx.parse:hx.parseInline}};function _x(e,t){if(Array.isArray(t))for(let n=0;n<t.length;n++)e.push(t[n]);else e.push(t)}var vx=new class{defaults=Dy();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=hx;Renderer=px;TextRenderer=mx;Lexer=fx;Tokenizer=dx;Hooks=gx;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(_x(n,t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)_x(n,this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)_x(n,this.walkTokens(e.tokens,t));break}case`list`:{let e=r;_x(n,this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);_x(n,this.walkTokens(i,t))}):e.tokens&&_x(n,this.walkTokens(e.tokens,t))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new px(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new dx(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new gx;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=gx.passThroughHooks.has(n)?e=>{if(t.options.async&&gx.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(t.options.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&_x(n,t.call(this,e)),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return fx.lex(e,t??this.defaults)}parser(e,t){return hx.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?fx.lex:fx.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?hx.parse:hx.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?fx.lex:fx.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?hx.parse:hx.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
108
- Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+$b(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function yx(e,t){return vx.parse(e,t)}yx.options=yx.setOptions=function(e){return vx.setOptions(e),yx.defaults=vx.defaults,ky(yx.defaults),yx},yx.getDefaults=Dy,yx.defaults=Oy;function bx(...e){return vx.use(...e),yx.defaults=vx.defaults,ky(yx.defaults),yx}yx.use=bx,yx.walkTokens=function(e,t){return vx.walkTokens(e,t)},yx.parseInline=vx.parseInline,yx.Parser=hx,yx.parser=hx.parse,yx.Renderer=px,yx.TextRenderer=mx,yx.Lexer=fx,yx.lexer=fx.lex,yx.Tokenizer=dx,yx.Hooks=gx,yx.parse=yx,yx.options,yx.setOptions,yx.walkTokens,yx.parseInline,hx.parse,fx.lex,yx.setOptions({gfm:!0,breaks:!0});function xx(e){let t=yx.parse(e,{async:!1});return Ey.sanitize(t)}var Sx=B(`<p class="text-muted-foreground"> </p>`),Cx=B(`<div><!></div>`),wx=B(`<div class="space-y-2"><div><label class="text-xs font-medium text-foreground"> </label> <div><!> <!></div></div> <!></div>`);function Tx(e,t){k(t,!0);let n=X(t,`value`,15,``),r=X(t,`rows`,3,6),i=X(t,`required`,3,!1),a=X(t,`placeholder`,3,``),o=X(t,`resetKey`,3,!1),s=Ch(),c=M(`edit`);Pn(()=>{o()&&N(c,`edit`)});let l=j(()=>xx(n()||``));var u=wx(),d=P(u),f=P(d),p=I(f,!0),m=L(f,2),h=P(m);{let e=j(()=>z(c)===`edit`?`secondary`:`ghost`);oh(h,{type:`button`,get variant(){return z(e)},size:`xs`,onclick:()=>N(c,`edit`),children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>s.t(`btn-edit`)]),H(e,n)},$$slots:{default:!0}})}var g=L(h,2);{let e=j(()=>z(c)===`preview`?`secondary`:`ghost`);oh(g,{type:`button`,get variant(){return z(e)},size:`xs`,onclick:()=>N(c,`preview`),children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>s.t(`skill-preview`)]),H(e,n)},$$slots:{default:!0}})}D(m),D(d);var _=L(d,2),v=e=>{J_(e,{get id(){return t.id},get rows(){return r()},get required(){return i()},get placeholder(){return a()},get value(){return n()},set value(e){n(e)}})},y=e=>{var t=Cx(),r=P(t),i=e=>{var t=V();Ai(F(t),()=>z(l)),H(e,t)},o=j(()=>n().trim()),c=e=>{var t=Sx(),n=I(t,!0);R(e=>U(n,e),[()=>a()||s.t(`label-content`)]),H(e,t)};W(r,e=>{z(o)?e(i):e(c,-1)}),D(t),R(e=>K(t,1,e),[()=>G($(Qh,$h,`markdown-content prose-invert max-w-none min-h-48 max-h-80 overflow-y-auto text-sm`))]),H(e,t)};W(_,e=>{z(c)===`edit`?e(v):e(y,-1)}),D(u),R((e,n)=>{K(d,1,e),q(f,`for`,t.id),U(p,t.label),K(m,1,n)},[()=>G($(`flex items-center justify-between`,Vh)),()=>G($(`flex items-center`,Vh))]),H(e,u),A()}var Ex=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`value`,`children`]),Dx=B(`<select><!></select>`);function Ox(e,t){k(t,!0);let n=X(t,`value`,15,``),r=J(t,Ex);var i=Dx();la(i,e=>({class:e,...r}),[()=>$(`h-10 w-full appearance-none rounded-xl border border-border bg-card px-2.5 py-0 text-sm leading-10 text-foreground transition hover:bg-surface-hover outline-none focus-visible:border-primary focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-50`,t.class)]),ha(i,()=>{var e=P(i),n=V();ji(F(n),()=>t.children??f),H(e,n)}),Yi(i,n),H(e,i),A()}var kx=nh({base:`h-5 gap-1 rounded-lg border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive group/badge inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap focus-visible:ring-[3px] [&>svg]:pointer-events-none`,variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20`,outline:`border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}}),Ax=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`variant`,`children`]),jx=B(`<span><!></span>`);function Mx(e,t){k(t,!0);let n=X(t,`variant`,3,`default`),r=J(t,Ax);var i=jx();la(i,e=>({"data-slot":`badge`,class:e,...r}),[()=>$(kx({variant:n()}),t.class)]),ji(P(i),()=>t.children??f),D(i),H(e,i),A()}var Nx=B(`<button type="button" class="relative inline-flex size-6 items-center justify-center rounded-md text-muted-foreground hover:text-foreground focus-ring before:absolute before:-inset-1.5 before:content-['']"><!></button>`),Px=B(` <!>`,1),Fx=B(`<button type="button" role="option" aria-selected="false" class="flex w-full px-2 py-2 text-left text-xs hover:bg-surface-hover focus-visible:bg-surface-hover focus-visible:outline-none"> </button>`),Ix=B(`<div class="absolute inset-s-0 top-[calc(100%+0.25rem)] z-50 max-h-40 min-w-36 overflow-y-auto rounded-lg border border-border bg-popover py-1 text-popover-foreground shadow-lg scrollbar-thin" role="listbox"></div>`),Lx=B(`<div class="relative"><input class="h-5 w-28 min-w-0 rounded-lg border border-border bg-card px-2 text-xs text-foreground-bright outline-none focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-ring/40"/> <!></div>`),Rx=B(`<button type="button"><!></button>`),zx=B(`<div><!> <!></div>`);function Bx(e,t){k(t,!0);let n=X(t,`value`,19,()=>[]),r=X(t,`suggestions`,19,()=>[]),i=X(t,`placeholder`,3,`New tag…`),a=X(t,`addLabel`,3,`Add tag`),o=X(t,`disabled`,3,!1),s=M(!1),c=M(``),l=M(void 0),u=M(void 0),d=j(()=>n().map(e=>e.trim()).filter(Boolean)),f=j(()=>new Set(z(d).map(e=>e.toLowerCase()))),p=j(()=>z(c).trim().toLowerCase()),m=j(()=>[...new Set(r().map(e=>e.trim()).filter(Boolean))].filter(e=>!z(f).has(e.toLowerCase())).filter(e=>!z(p)||e.toLowerCase().includes(z(p))).sort((e,t)=>e.localeCompare(t)));function h(e){let n=[...new Set(e.map(e=>e.trim()).filter(Boolean))];t.onChange?.(n)}function g(){o()||(N(s,!0),N(c,``),queueMicrotask(()=>z(l)?.focus()))}function _(){N(s,!1),N(c,``)}function v(e=z(c)){let t=e.trim().toLowerCase();t&&(z(d).some(e=>e.toLowerCase()===t)||h([...z(d),t])),_()}function y(e){v(e)}function b(e){o()||h(z(d).filter(t=>t!==e))}function x(e){e.key===`Enter`?(e.preventDefault(),v()):e.key===`Escape`&&(e.preventDefault(),_())}Pn(()=>{if(!z(s))return;let e=e=>{z(u)&&!z(u).contains(e.target)&&_()};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)});var S=zx(),C=P(S);wi(C,16,()=>z(d),e=>e,(e,t)=>{Mx(e,{variant:`outline`,class:`gap-1 font-normal`,children:(e,n)=>{O();var r=Px(),i=F(r),a=L(i),s=e=>{var n=Nx();Au(P(n),{get class(){return Rh},"aria-hidden":`true`}),D(n),R(()=>q(n,`aria-label`,`Remove ${t}`)),Yr(`click`,n,()=>b(t)),H(e,n)};W(a,e=>{o()||e(s)}),R(()=>U(i,`${t??``} `)),H(e,r)},$$slots:{default:!0}})});var w=L(C,2),ee=e=>{var t=Lx(),n=P(t);sa(n),ba(n,e=>N(l,e),()=>z(l));var r=L(n,2),s=e=>{var t=Ix();wi(t,20,()=>z(m),e=>e,(e,t)=>{var n=Fx(),r=I(n,!0);R(()=>U(r,t)),Yr(`click`,n,()=>y(t)),H(e,n)}),D(t),R(()=>q(t,`aria-label`,a())),H(e,t)};W(r,e=>{z(m).length>0&&e(s)}),D(t),R(()=>{q(n,`placeholder`,i()),q(n,`aria-label`,i()),n.disabled=o()}),Yr(`keydown`,n,x),ga(n,()=>z(c),e=>N(c,e)),H(e,t)},te=e=>{var t=Rx();Ya(P(t),{get class(){return Rh},"aria-hidden":`true`}),D(t),R(e=>{K(t,1,e),q(t,`title`,a()),q(t,`aria-label`,a()),t.disabled=o()},[()=>G($(`inline-flex shrink-0 items-center justify-center rounded-full border border-border bg-card text-muted-foreground transition-[color,border-color] hover:border-primary/50 hover:text-primary focus-ring`,Lh,o()&&`pointer-events-none opacity-50`))]),Yr(`click`,t,g),H(e,t)};W(w,e=>{z(s)?e(ee):e(te,-1)}),D(S),ba(S,e=>N(u,e),()=>z(u)),R(e=>K(S,1,e),[()=>G($(`relative flex flex-wrap items-center`,Vh,t.class))]),H(e,S),A()}Xr([`click`,`keydown`]);var Vx=[``,`feature`,`bug-fix`,`refactor`,`architecture`,`rule`,`documentation`,`discussion`,`analysis`,`configuration`],Hx=B(`<option> </option>`),Ux=B(`<option></option> <!>`,1),Wx=B(`<form id="add-memory-form"><div><!> <!></div> <!> <!></form>`);function Gx(e,t){k(t,!0);let n=X(t,`open`,15,!1),r=X(t,`tags`,19,()=>[]),i=X(t,`knownTags`,19,()=>[]),a=X(t,`tag`,15,``),o=X(t,`type`,15,``),s=X(t,`contentTags`,31,()=>dn([])),c=X(t,`content`,15,``),l=Ch();function u(e){n(e),t.onOpenChange?.(e)}async function d(e){e?.preventDefault(),await t.onSubmit?.(e??new Event(`submit`))}{let t=e=>{{let t=j(()=>l.t(`btn-add-memory`));Th(e,{onCancel:()=>u(!1),get primaryLabel(){return z(t)},onPrimary:()=>d()})}},f=j(()=>l.t(`section-add`));yh(e,{get title(){return z(f)},class:`sm:max-w-lg`,onOpenChange:u,get open(){return n()},set open(e){n(e)},footer:t,children:(e,t)=>{var u=Wx(),f=P(u),p=P(f);{let e=j(()=>l.t(`label-tag`));G_(p,{id:`add-tag`,get label(){return z(e)},get value(){return a()},children:(e,t)=>{Ox(e,{id:`add-tag`,required:!0,get value(){return a()},set value(e){a(e)},children:(e,t)=>{var n=Ux(),i=F(n);i.value=i.__value=``,wi(L(i,2),17,r,e=>e.tag,(e,t)=>{var n=Hx(),r=I(n,!0),i={};R(()=>{U(r,z(t).displayName||z(t).tag),i!==(i=z(t).tag)&&(n.value=(n.__value=i)??``)}),H(e,n)}),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}var m=L(p,2);{let e=j(()=>l.t(`label-type`));G_(m,{id:`add-type`,get label(){return z(e)},get value(){return o()},children:(e,t)=>{Ox(e,{id:`add-type`,get value(){return o()},set value(e){o(e)},children:(e,t)=>{var n=Ux(),r=F(n);r.value=r.__value=``,wi(L(r,2),17,()=>Vx,e=>e||`other`,(e,t)=>{var n=Hx(),r=I(n,!0),i={};R(e=>{U(r,e),i!==(i=z(t))&&(n.value=(n.__value=i)??``)},[()=>l.t(z(t)?`opt-${z(t)}`:`opt-other`)]),H(e,n)}),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}D(f);var h=L(f,2);{let e=j(()=>l.t(`label-tags`));G_(h,{get label(){return z(e)},floating:!1,spacing:`normal`,children:(e,t)=>{{let t=j(()=>l.t(`placeholder-new-tag`)),n=j(()=>l.t(`btn-add-tag`));Bx(e,{get value(){return s()},get suggestions(){return i()},get placeholder(){return z(t)},get addLabel(){return z(n)},onChange:e=>s(e)})}},$$slots:{default:!0}})}var g=L(h,2);{let e=j(()=>l.t(`label-content`));Tx(g,{id:`add-content`,get label(){return z(e)},rows:5,required:!0,get resetKey(){return n()},get value(){return c()},set value(e){c(e)}})}D(u),R(()=>{K(u,1,G(Jh)),K(f,1,`grid sm:grid-cols-2 gap-3`)}),Jr(`submit`,u,d),H(e,u)},$$slots:{footer:!0,default:!0}})}A()}var Kx={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`}]]};Kx.node;var qx=new Set([`$$slots`,`$$events`,`$$legacy`]);function Jx(e,t){let n=J(t,qx);Pa(e,Y(()=>n,{get icon(){return Kx}}))}var Yx={name:`brain`,size:24,node:[[`path`,{d:`M12 18V5`}],[`path`,{d:`M15 13a4.17 4.17 0 01-3-4 4.17 4.17 0 01-3 4`}],[`path`,{d:`M17.707 6.294A3 3 0 1012 5a3 3 0 10-5.707 1.294`}],[`path`,{d:`M17.996 5.125a4 4 0 012.526 5.77`}],[`path`,{d:`M18 18a4 4 0 002-7.465`}],[`path`,{d:`M19.967 17.482a4 4 0 11-7.967.517 4 4 0 11-7.967-.517`}],[`path`,{d:`M6 18a4 4 0 01-2-7.465`}],[`path`,{d:`M6.004 5.125a4 4 0 00-2.526 5.77`}]]};Yx.node;var Xx=new Set([`$$slots`,`$$events`,`$$legacy`]);function Zx(e,t){let n=J(t,Xx);Pa(e,Y(()=>n,{get icon(){return Yx}}))}var Qx={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`}],[`path`,{d:`M10 9H8`}],[`path`,{d:`M16 13H8`}],[`path`,{d:`M16 17H8`}]]};Qx.node;var $x=new Set([`$$slots`,`$$events`,`$$legacy`]);function eS(e,t){let n=J(t,$x);Pa(e,Y(()=>n,{get icon(){return Qx}}))}var tS={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`}]]};tS.node;var nS=new Set([`$$slots`,`$$events`,`$$legacy`]);function rS(e,t){let n=J(t,nS);Pa(e,Y(()=>n,{get icon(){return tS}}))}var iS={name:`languages`,size:24,node:[[`path`,{d:`m5 8 6 6`}],[`path`,{d:`m4 14 6-6 2-3`}],[`path`,{d:`M2 5h12`}],[`path`,{d:`M7 2h1`}],[`path`,{d:`m22 22-5-10-5 10`}],[`path`,{d:`M14 18h6`}]]};iS.node;var aS=new Set([`$$slots`,`$$events`,`$$legacy`]);function oS(e,t){let n=J(t,aS);Pa(e,Y(()=>n,{get icon(){return iS}}))}var sS={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`}]]};sS.node;var cS=new Set([`$$slots`,`$$events`,`$$legacy`]);function lS(e,t){let n=J(t,cS);Pa(e,Y(()=>n,{get icon(){return sS}}))}var uS={name:`scroll-text`,size:24,node:[[`path`,{d:`M15 12h-5`}],[`path`,{d:`M15 8h-5`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`}]]};uS.node;var dS=new Set([`$$slots`,`$$events`,`$$legacy`]);function fS(e,t){let n=J(t,dS);Pa(e,Y(()=>n,{get icon(){return uS}}))}var pS={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M12 2v2`}],[`path`,{d:`M12 20v2`}],[`path`,{d:`m4.93 4.93 1.41 1.41`}],[`path`,{d:`m17.66 17.66 1.41 1.41`}],[`path`,{d:`M2 12h2`}],[`path`,{d:`M20 12h2`}],[`path`,{d:`m6.34 17.66-1.41 1.41`}],[`path`,{d:`m19.07 4.93-1.41 1.41`}]]};pS.node;var mS=new Set([`$$slots`,`$$events`,`$$legacy`]);function hS(e,t){let n=J(t,mS);Pa(e,Y(()=>n,{get icon(){return pS}}))}var gS={name:`user`,size:24,node:[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`}],[`circle`,{cx:`12`,cy:`7`,r:`4`}]]};gS.node;var _S=new Set([`$$slots`,`$$events`,`$$legacy`]);function vS(e,t){let n=J(t,_S);Pa(e,Y(()=>n,{get icon(){return gS}}))}var yS=new Set([`$$slots`,`$$events`,`$$legacy`,`class`]),bS=ai(`<svg><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"></path></svg>`);function xS(e,t){k(t,!0);let n=J(t,yS);var r=bS();la(r,e=>({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,class:e,...n}),[()=>$(`size-4 shrink-0`,t.class)]),H(e,r),A()}var SS={home:`/`,project:`/project-memories`,profile:`/user-profile`,skills:`/skill-library`,markdown:`/markdown-vault`,stats:`/stats`};function CS(e){let t=e.replace(/\/+$/,``)||`/`;return t.startsWith(`/`)?t:`/${t}`}function wS(e){let t=CS(e);return t===SS.profile?`profile`:t===SS.skills?`skills`:t===SS.markdown?`markdown`:t===SS.stats?`stats`:`project`}function TS(e){let t=CS(e);return t===SS.home?SS.project:t===SS.project||t===SS.profile||t===SS.skills||t===SS.markdown||t===SS.stats?t:SS.project}var ES=TS(typeof window<`u`?window.location.pathname:SS.project),DS=new Set;function OS(){for(let e of DS)e()}function kS(e){ES!==e&&(ES=e,OS())}function AS(e){return DS.add(e),()=>{DS.delete(e)}}function jS(){return ES}function MS(e){return!(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)}function NS(e,t=!1){let n=TS(e);CS(window.location.pathname)===n||(t?window.history.replaceState({},``,n):window.history.pushState({},``,n)),kS(n)}function PS(){let e=()=>{let e=CS(window.location.pathname),t=TS(e);e!==t&&window.history.replaceState({},``,t),kS(t)};return e(),window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)}var FS=`opencode-mem-theme`;function IS(){if(typeof window>`u`)return`dark`;let e=localStorage.getItem(FS);return e===`light`||e===`dark`?e:`dark`}var LS=IS(),RS=new Set;function zS(){for(let e of RS)e()}function BS(e){if(LS=e,typeof document<`u`){let t=document.documentElement;t.classList.add(`theme-switching`),t.classList.toggle(`dark`,e===`dark`),localStorage.setItem(FS,e),requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.classList.remove(`theme-switching`)})})}zS()}function VS(e){return RS.add(e),()=>{RS.delete(e)}}function HS(){return LS}function US(e){BS(e)}function WS(){let e=LS===`dark`?`light`:`dark`;return US(e),e}function GS(){BS(IS())}typeof document<`u`&&BS(LS);function KS(){let e=M(dn(HS()));return Pn(()=>VS(()=>{N(e,HS(),!0)})),{get theme(){return z(e)}}}var qS=B(`<button type="button" class="fixed inset-0 z-40 bg-black/50 md:hidden"></button>`),JS=B(`<span class="min-w-0 truncate text-xl font-bold text-foreground-bright"> </span>`),YS=B(`<span class="truncate text-start"> </span>`),XS=B(`<a><!> <!></a>`),ZS=B(`<div><!> <!> <a href="https://github.com/tickernelz/opencode-mem" target="_blank" rel="noopener noreferrer" title="GitHub" aria-label="GitHub"><!></a></div>`),QS=B(`<div class="flex w-full items-center rounded-xl border border-sidebar-border/80 bg-card/70"><button type="button"><!> <span class="truncate"> </span> <span class="ms-auto text-xs tabular-nums"> </span></button> <button type="button"><!></button> <a href="https://github.com/tickernelz/opencode-mem" target="_blank" rel="noopener noreferrer" title="GitHub" aria-label="GitHub"><!></a></div>`),$S=B(`<!> <aside><div><a><span aria-hidden="true"><!></span> <!></a> <!></div> <nav class="flex flex-1 flex-col gap-1 p-2" aria-label="Main"><a><!> <!></a> <a><!> <!></a> <a><!> <!></a> <!> <a><!> <!></a></nav> <div><!></div></aside>`,1);function eC(e,t){k(t,!0);let n=X(t,`open`,3,!1),r=X(t,`collapsed`,3,!1),i=X(t,`showMarkdown`,3,!1),a=KS(),o=j(()=>a.theme===`dark`),s=j(()=>r()&&!n());function c(e){t.onOpenChange?.(e)}function l(e,t){MS(e)&&(e.preventDefault(),NS(t),c(!1))}function u(e){return $(tg,z(s)?`justify-center px-0 py-2.5`:$(Uh,`px-3 py-2.5`),e?Mh:$(`text-muted-foreground`,Nh),`focus-ring`)}let d=`inline-flex items-center justify-center self-stretch min-w-11 px-2.5 text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-ring`;var f=$S(),p=F(f),m=e=>{var n=qS();R(()=>q(n,`aria-label`,t.closeLabel)),Yr(`click`,n,()=>c(!1)),H(e,n)};W(p,e=>{n()&&e(m)});var h=L(p,2),g=P(h),_=P(g),v=P(_);Zx(P(v),{get class(){return Bh}}),D(v);var y=L(v,2),b=e=>{var n=JS(),r=I(n,!0);R(()=>U(r,t.brand)),H(e,n)};W(y,e=>{z(s)||e(b)}),D(_),oh(L(_,2),{variant:`ghost`,size:`icon-sm`,class:`md:hidden shrink-0`,onclick:()=>c(!1),get"aria-label"(){return t.closeLabel},children:(e,t)=>{Au(e,{get class(){return Bh},"aria-hidden":`true`})},$$slots:{default:!0}}),D(g);var x=L(g,2),S=P(x),C=P(S);{let e=j(()=>$(Bh,`shrink-0`));rS(C,{get class(){return z(e)},"aria-hidden":`true`})}var w=L(C,2),ee=e=>{var n=YS(),r=I(n,!0);R(()=>U(r,t.projectLabel)),H(e,n)};W(w,e=>{z(s)||e(ee)}),D(S);var te=L(S,2),ne=P(te);{let e=j(()=>$(Bh,`shrink-0`));vS(ne,{get class(){return z(e)},"aria-hidden":`true`})}var re=L(ne,2),ie=e=>{var n=YS(),r=I(n,!0);R(()=>U(r,t.profileLabel)),H(e,n)};W(re,e=>{z(s)||e(ie)}),D(te);var ae=L(te,2),oe=P(ae);{let e=j(()=>$(Bh,`shrink-0`));fS(oe,{get class(){return z(e)},"aria-hidden":`true`})}var se=L(oe,2),ce=e=>{var n=YS(),r=I(n,!0);R(()=>U(r,t.skillsLabel)),H(e,n)};W(se,e=>{z(s)||e(ce)}),D(ae);var le=L(ae,2),ue=e=>{var n=XS(),r=P(n);{let e=j(()=>$(Bh,`shrink-0`));eS(r,{get class(){return z(e)},"aria-hidden":`true`})}var i=L(r,2),a=e=>{var n=YS(),r=I(n,!0);R(()=>U(r,t.markdownLabel)),H(e,n)};W(i,e=>{z(s)||e(a)}),D(n),R(e=>{q(n,`href`,SS.markdown),K(n,1,e),q(n,`aria-current`,t.currentView===`markdown`?`page`:void 0),q(n,`title`,t.markdownLabel),q(n,`aria-label`,t.markdownLabel)},[()=>G(u(t.currentView===`markdown`))]),Yr(`click`,n,e=>l(e,SS.markdown)),H(e,n)};W(le,e=>{i()&&e(ue)});var T=L(le,2),de=P(T);{let e=j(()=>$(Bh,`shrink-0`));Jx(de,{get class(){return z(e)},"aria-hidden":`true`})}var fe=L(de,2),pe=e=>{var n=YS(),r=I(n,!0);R(()=>U(r,t.statsLabel)),H(e,n)};W(fe,e=>{z(s)||e(pe)}),D(T),D(x);var me=L(x,2),he=P(me),ge=e=>{var n=ZS(),r=P(n);{let e=j(()=>`${t.languageLabel} (${t.langLabel})`);oh(r,{type:`button`,variant:`ghost`,size:`icon-sm`,get onclick(){return t.onLangToggle},get"aria-label"(){return t.languageLabel},get title(){return z(e)},children:(e,t)=>{oS(e,{get class(){return zh},"aria-hidden":`true`})},$$slots:{default:!0}})}var i=L(r,2);oh(i,{type:`button`,variant:`ghost`,size:`icon-sm`,onclick:()=>WS(),get"aria-label"(){return t.themeLabel},get title(){return t.themeLabel},children:(e,t)=>{var n=V(),r=F(n),i=e=>{lS(e,{get class(){return Bh},"aria-hidden":`true`})},a=e=>{hS(e,{get class(){return Bh},"aria-hidden":`true`})};W(r,e=>{z(o)?e(i):e(a,-1)}),H(e,n)},$$slots:{default:!0}});var a=L(i,2);xS(P(a),{get class(){return Bh},"aria-hidden":`true`}),D(a),D(n),R((e,t)=>{K(n,1,e),K(a,1,t)},[()=>G($(`flex flex-col items-center`,`gap-1`)),()=>G($(`inline-flex items-center justify-center rounded-xl text-muted-foreground transition-colors`,Ih,`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-ring`))]),H(e,n)},_e=e=>{var n=QS(),r=P(n),i=P(r);{let e=j(()=>$(zh,`shrink-0`));oS(i,{get class(){return z(e)},"aria-hidden":`true`})}var a=L(i,2),s=I(a,!0),c=I(L(a,2),!0);D(r);var l=L(r,2),u=P(l),f=e=>{lS(e,{get class(){return Bh},"aria-hidden":`true`})},p=e=>{hS(e,{get class(){return Bh},"aria-hidden":`true`})};W(u,e=>{z(o)?e(f):e(p,-1)}),D(l);var m=L(l,2);xS(P(m),{get class(){return Bh},"aria-hidden":`true`}),D(m),D(n),R((e,n,i)=>{K(r,1,e),q(r,`aria-label`,t.languageLabel),q(r,`title`,t.languageLabel),U(s,t.languageLabel),U(c,t.langLabel),K(l,1,n),q(l,`aria-label`,t.themeLabel),q(l,`title`,t.themeLabel),K(m,1,i)},[()=>G($(`group flex min-w-0 flex-1 items-center rounded-s-xl px-2.5 py-2.5 text-sm text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-ring`,Uh)),()=>G($(d,`border-s border-sidebar-border`)),()=>G($(d,`rounded-e-xl border-s border-sidebar-border`))]),Yr(`click`,r,function(...e){t.onLangToggle?.apply(this,e)}),Yr(`click`,l,()=>WS()),H(e,n)};W(he,e=>{z(s)?e(ge):e(_e,-1)}),D(me),D(h),R((e,n,r,i,a,o,s,c,l)=>{K(h,1,e),K(g,1,n),q(_,`href`,SS.home),K(_,1,r),q(_,`title`,t.brand),q(_,`aria-label`,t.brand),K(v,1,i),q(S,`href`,SS.project),K(S,1,a),q(S,`aria-current`,t.currentView===`project`?`page`:void 0),q(S,`title`,t.projectLabel),q(S,`aria-label`,t.projectLabel),q(te,`href`,SS.profile),K(te,1,o),q(te,`aria-current`,t.currentView===`profile`?`page`:void 0),q(te,`title`,t.profileLabel),q(te,`aria-label`,t.profileLabel),q(ae,`href`,SS.skills),K(ae,1,s),q(ae,`aria-current`,t.currentView===`skills`?`page`:void 0),q(ae,`title`,t.skillsLabel),q(ae,`aria-label`,t.skillsLabel),q(T,`href`,SS.stats),K(T,1,c),q(T,`aria-current`,t.currentView===`stats`?`page`:void 0),q(T,`title`,t.statsLabel),q(T,`aria-label`,t.statsLabel),K(me,1,l)},[()=>G($(`inset-y-0 inset-s-0 z-50 flex h-svh shrink-0 flex-col overflow-hidden border-e border-sidebar-border bg-sidebar text-sidebar-foreground transition-[width,transform] duration-200 motion-reduce:transition-none`,`fixed top-0 translate-x-0!`,r()?`md:w-16`:`md:w-64`,`w-64`,n()?`translate-x-0`:`max-md:-translate-x-full max-md:rtl:translate-x-full`)),()=>G($(`flex shrink-0 items-center py-4`,z(s)?`justify-center px-2`:$(Uh,`px-4`))),()=>G($(`flex min-w-0 items-center rounded-xl transition-colors hover:opacity-90 focus-ring`,z(s)?`justify-center`:$(`flex-1`,Uh))),()=>G($(Ph,`size-11 shrink-0 rounded-xl`)),()=>G(u(t.currentView===`project`)),()=>G(u(t.currentView===`profile`)),()=>G(u(t.currentView===`skills`)),()=>G(u(t.currentView===`stats`)),()=>G($(`mt-auto`,z(s)?`p-2`:`p-3`))]),Yr(`click`,_,e=>l(e,SS.home)),Yr(`click`,S,e=>l(e,SS.project)),Yr(`click`,te,e=>l(e,SS.profile)),Yr(`click`,ae,e=>l(e,SS.skills)),Yr(`click`,T,e=>l(e,SS.stats)),H(e,f),A()}Xr([`click`]);var tC=B(`<option> </option>`),nC=B(`<option></option> <!>`,1),rC=B(`<form id="edit-memory-form"><!> <!> <!></form>`);function iC(e,t){k(t,!0);let n=X(t,`open`,15,!1),r=X(t,`content`,3,``),i=X(t,`type`,3,``),a=X(t,`tags`,19,()=>[]),o=X(t,`knownTags`,19,()=>[]),s=Ch(),c=M(``),l=M(``),u=M(dn([]));Pn(()=>{n()&&(N(c,r()),N(l,i()),N(u,[...a()],!0))});function d(e){n(e),t.onOpenChange?.(e)}function f(e){e?.preventDefault();let n=z(c).trim();n&&t.onSave?.(n,z(u),z(l))}{let t=e=>{{let t=j(()=>s.t(`btn-save`));Th(e,{onCancel:()=>d(!1),get primaryLabel(){return z(t)},onPrimary:()=>f()})}},r=j(()=>s.t(`modal-edit-title`));yh(e,{get title(){return z(r)},class:`sm:max-w-lg`,onOpenChange:d,get open(){return n()},set open(e){n(e)},footer:t,children:(e,t)=>{var r=rC(),i=P(r);{let e=j(()=>s.t(`label-type`));G_(i,{id:`edit-type`,get label(){return z(e)},get value(){return z(l)},children:(e,t)=>{Ox(e,{id:`edit-type`,get value(){return z(l)},set value(e){N(l,e,!0)},children:(e,t)=>{var n=nC(),r=F(n);r.value=r.__value=``,wi(L(r,2),17,()=>Vx,e=>e||`other`,(e,t)=>{var n=tC(),r=I(n,!0),i={};R(e=>{U(r,e),i!==(i=z(t))&&(n.value=(n.__value=i)??``)},[()=>s.t(z(t)?`opt-${z(t)}`:`opt-other`)]),H(e,n)}),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}var a=L(i,2);{let e=j(()=>s.t(`label-content`));Tx(a,{id:`edit-content`,get label(){return z(e)},rows:6,required:!0,get resetKey(){return n()},get value(){return z(c)},set value(e){N(c,e,!0)}})}var d=L(a,2);{let e=j(()=>s.t(`label-tags`));G_(d,{get label(){return z(e)},floating:!1,spacing:`normal`,children:(e,t)=>{{let t=j(()=>s.t(`placeholder-new-tag`)),n=j(()=>s.t(`btn-add-tag`));Bx(e,{get value(){return z(u)},get suggestions(){return o()},get placeholder(){return z(t)},get addLabel(){return z(n)},onChange:e=>N(u,e,!0)})}},$$slots:{default:!0}})}D(r),R(()=>K(r,1,G(Jh))),Jr(`submit`,r,f),H(e,r)},$$slots:{footer:!0,default:!0}})}A()}var aC={name:`pin`,size:24,node:[[`path`,{d:`M12 17v5`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`}]]};aC.node;var oC=new Set([`$$slots`,`$$events`,`$$legacy`]);function sC(e,t){let n=J(t,oC);Pa(e,Y(()=>n,{get icon(){return aC}}))}var cC={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`}]],aliases:[`layers-3`]};cC.node;var lC=new Set([`$$slots`,`$$events`,`$$legacy`]);function uC(e,t){let n=J(t,lC);Pa(e,Y(()=>n,{get icon(){return cC}}))}var dC={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`}],[`path`,{d:`m19 12-7 7-7-7`}]]};dC.node;var fC=new Set([`$$slots`,`$$events`,`$$legacy`]);function pC(e,t){let n=J(t,fC);Pa(e,Y(()=>n,{get icon(){return dC}}))}var mC={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`}],[`path`,{d:`M12 19V5`}]]};mC.node;var hC=new Set([`$$slots`,`$$events`,`$$legacy`]);function gC(e,t){let n=J(t,hC);Pa(e,Y(()=>n,{get icon(){return mC}}))}var _C={name:`message-circle`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`}]]};_C.node;var vC=new Set([`$$slots`,`$$events`,`$$legacy`]);function yC(e,t){let n=J(t,vC);Pa(e,Y(()=>n,{get icon(){return _C}}))}var bC={name:`pen-line`,size:24,node:[[`path`,{d:`M13 21h8`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`}]],aliases:[`edit-3`]};bC.node;var xC=new Set([`$$slots`,`$$events`,`$$legacy`]);function SC(e,t){let n=J(t,xC);Pa(e,Y(()=>n,{get icon(){return bC}}))}var CC={name:`pin-off`,size:24,node:[[`path`,{d:`M12 17v5`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`}],[`path`,{d:`m2 2 20 20`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`}]]};CC.node;var wC=new Set([`$$slots`,`$$events`,`$$legacy`]);function TC(e,t){let n=J(t,wC);Pa(e,Y(()=>n,{get icon(){return CC}}))}var EC=B(`<div class="flex shrink-0 items-center gap-1"><!> <!> <!></div>`);function DC(e,t){k(t,!0);let n=X(t,`pinned`,3,!1),r=X(t,`isLinked`,3,!1),i=X(t,`showPin`,3,!0),a=Ch(),o=j(()=>t.deleteLabel??a.t(`btn-delete`));var s=EC(),c=P(s),l=e=>{var r=V(),i=F(r),o=e=>{{let n=j(()=>a.t(`btn-unpin`)),r=j(()=>a.t(`btn-unpin`));oh(e,{variant:`ghost`,size:`icon-xs`,class:`text-primary hover:text-primary`,get title(){return z(n)},get"aria-label"(){return z(r)},onclick:()=>t.onUnpin?.(t.id),children:(e,t)=>{TC(e,{get class(){return zh},"aria-hidden":`true`})},$$slots:{default:!0}})}},s=e=>{{let n=j(()=>a.t(`btn-pin`)),r=j(()=>a.t(`btn-pin`));oh(e,{variant:`ghost`,size:`icon-xs`,get title(){return z(n)},get"aria-label"(){return z(r)},onclick:()=>t.onPin?.(t.id),children:(e,t)=>{sC(e,{get class(){return zh},"aria-hidden":`true`})},$$slots:{default:!0}})}};W(i,e=>{n()?e(o):e(s,-1)}),H(e,r)};W(c,e=>{i()&&e(l)});var u=L(c,2),d=e=>{{let n=j(()=>a.t(`btn-edit`)),r=j(()=>a.t(`btn-edit`));oh(e,{variant:`ghost`,size:`icon-xs`,get title(){return z(n)},get"aria-label"(){return z(r)},onclick:()=>t.onEdit?.(t.id),children:(e,t)=>{SC(e,{get class(){return zh},"aria-hidden":`true`})},$$slots:{default:!0}})}};W(u,e=>{t.onEdit&&e(d)});var f=L(u,2),p=e=>{oh(e,{variant:`destructive`,size:`icon-xs`,get title(){return z(o)},get"aria-label"(){return z(o)},onclick:()=>t.onDelete?.(t.id,r()),children:(e,t)=>{to(e,{get class(){return zh},"aria-hidden":`true`})},$$slots:{default:!0}})};W(f,e=>{t.onDelete&&e(p)}),D(s),H(e,s),A()}function OC(e){if(e.projectPath){let t=e.projectPath.replace(/\\/g,`/`).split(`/`).filter(e=>e);return t[t.length-1]||e.projectPath}return e.displayName||e.id}function kC(e){return{createdDate:bg(e.createdAt),updatedDate:e.updatedAt&&e.updatedAt!==e.createdAt?bg(e.updatedAt):null}}function AC(e,t){return e.similarity===void 0?null:t?`${Math.round(e.similarity*100)}%`:`${e.similarity}%`}function jC(e){return $(Qh,$h,e.spaced===`loose`?qh:Kh,e.selected&&`ring-1 ring-primary/40`,e.pinned&&`border-primary/35`)}var MC=`m-0 flex max-w-full items-center `+Vh+` text-sm font-semibold leading-snug text-foreground-bright`,NC=(e,t=f)=>{var n=FC();Ai(n,()=>xx(t()),!0),D(n),H(e,n)},PC=(e,t=f,n=f)=>{var r=zC(),i=P(r),a=e=>{var t=RC(),r=F(t);gC(r,{get class(){return zh}});var i=L(r);pC(L(i),{get class(){return zh}}),R(()=>U(i,` ${n()??``} `)),H(e,t)},o=e=>{var t=RC(),r=F(t);pC(r,{get class(){return zh}});var i=L(r);gC(L(i),{get class(){return zh}}),R(()=>U(i,` ${n()??``} `)),H(e,t)};W(i,e=>{t()===`up`?e(a):e(o,-1)}),D(r),R(e=>K(r,1,e),[()=>G($(`flex items-center text-xs text-muted-foreground`,`gap-1`))]),H(e,r)},FC=B(`<div class="markdown-content text-sm prose-invert max-w-none"></div>`),IC=B(`<span> </span>`),LC=B(`<div><span> </span> <!> <span> </span></div>`),RC=B(`<!> <!>`,1),zC=B(`<div><!></div>`),BC=B(`<span class="font-normal text-muted-foreground">·</span> <span class="truncate font-normal text-muted-foreground"> </span>`,1),VC=B(`<span class="font-normal text-muted-foreground"> </span>`),HC=B(`<div><!> <h3><span class="truncate"> </span> <!> <!></h3> <!></div>`),UC=B(`<div class="text-xs text-muted-foreground tabular-nums"> </div>`),WC=B(`<div><!> <!> <!> <!> <div><div><!> <span class="font-medium text-foreground/80"> </span> <span>·</span> <span> </span></div> <p class="text-sm whitespace-pre-wrap wrap-break-word text-muted-foreground"> </p></div> <!></div>`),GC=B(`<div><!> <div><!> <span> </span></div> <p class="text-sm whitespace-pre-wrap wrap-break-word"> </p> <!></div>`),KC=B(`<div><!> <!> <!> <!> <!> <!></div>`);function qC(e,t){k(t,!0);let n=(e,n=f,r=f)=>{{let i=j(()=>n()||[]),a=j(()=>s.t(`placeholder-new-tag`)),c=j(()=>s.t(`btn-add-tag`));Bx(e,{get value(){return z(i)},get suggestions(){return o()},get placeholder(){return z(a)},get addLabel(){return z(c)},onChange:e=>{r()&&t.onTagsChange?.(r(),e)}})}},r=(e,t=f,n=f)=>{var r=LC(),i=P(r),a=I(i),o=L(i,2),c=e=>{var n=IC(),r=I(n);R(e=>U(r,`${e??``} ${t().updatedDate??``}`),[()=>s.t(`date-updated`)]),H(e,n)};W(o,e=>{t().updatedDate&&e(c)});var l=I(L(o,2));D(r),R((e,i)=>{K(r,1,e),U(a,`${i??``} ${t().createdDate??``}`),U(l,`ID: ${n()??``}`)},[()=>G($(`flex flex-wrap text-xs text-muted-foreground`,Uh)),()=>s.t(`date-created`)]),H(e,r)},i=(e,n=f,r=f,i=f,a=f)=>{var o=HC(),s=P(o);{let e=j(()=>`Select ${r()}`);lg(s,{get checked(){return a().selected},onCheckedChange:e=>t.onSelect?.(n(),e===!0),class:`shrink-0`,get"aria-label"(){return z(e)}})}var c=L(s,2),l=P(c),u=I(l,!0),d=L(l,2),p=e=>{var t=BC(),n=L(F(t),2),r=I(n,!0);R(()=>{q(n,`title`,i()),U(r,i())}),H(e,t)};W(d,e=>{i()&&e(p)});var m=L(d,2),h=e=>{var t=VC(),n=I(t);R(()=>U(n,`· ${a().linkedHint??``}`)),H(e,t)};W(m,e=>{a().linkedHint&&e(h)}),D(c);var g=L(c,2);{let e=j(()=>a().showPinEdit!==!1),r=j(()=>a().showPinEdit===!1?void 0:t.onEdit);DC(g,{get id(){return n()},get pinned(){return a().pinned},get isLinked(){return a().isLinked},get deleteLabel(){return a().deleteLabel},get showPin(){return z(e)},get onPin(){return t.onPin},get onUnpin(){return t.onUnpin},get onEdit(){return z(r)},get onDelete(){return a().onDelete}})}D(o),R((e,t)=>{K(o,1,e),K(c,1,t),U(u,r())},[()=>G($(`flex items-center`,Hh)),()=>G($(MC,`min-w-0 flex-1`))]),H(e,o)},a=X(t,`selected`,3,!1),o=X(t,`knownTags`,19,()=>[]),s=Ch(),c=j(()=>t.memory?.isPinned||!1),l=j(()=>t.memory?kC(t.memory):null),u=j(()=>t.memory?AC(t.memory,!0):null),d=j(()=>!!t.item?.linkedMemoryId),p=j(()=>t.item?.isPinned||!1),m=j(()=>!!t.item?.linkedPromptId),h=j(()=>t.item?kC(t.item):null),g=j(()=>t.item?AC(t.item,!1):null);var _=V(),v=F(_),y=e=>{var o=WC(),d=P(o);{let e=j(()=>t.memory.memoryType||s.t(`badge-memory`)),n=j(()=>OC(t.memory)),r=j(()=>({selected:a(),pinned:z(c),isLinked:!0,deleteLabel:s.t(`btn-delete-pair`),onDelete:t.onDeleteMemory}));i(d,()=>t.memory.id,()=>z(e),()=>z(n),()=>z(r))}var f=L(d,2),p=e=>{var t=UC(),n=I(t,!0);R(()=>U(n,z(u))),H(e,t)};W(f,e=>{z(u)&&e(p)});var m=L(f,2);n(m,()=>t.memory.tags,()=>t.memory.id);var h=L(m,2);NC(h,()=>t.memory.content);var g=L(h,2),_=P(g),v=P(_);{let e=j(()=>$(zh,`shrink-0`));yC(v,{get class(){return z(e)}})}var y=L(v,2),b=I(y,!0),x=I(L(y,4),!0);D(_);var S=I(L(_,2),!0);D(g);var C=L(g,2);r(C,()=>z(l),()=>t.memory.id),D(o),R((e,n,r,i,a)=>{K(o,1,e),q(o,`data-id`,t.memory.id),K(g,1,n),K(_,1,r),U(b,i),U(x,a),U(S,t.prompt.content)},[()=>G(jC({selected:a(),pinned:z(c),spaced:`loose`})),()=>G($(Kh,`rounded-xl border border-border/70 bg-muted/30 px-3 py-2.5`)),()=>G($(`flex items-center text-xs text-muted-foreground`,Vh)),()=>s.t(`badge-prompt`),()=>bg(t.prompt.createdAt)]),H(e,o)},b=e=>{var n=GC(),r=P(n);{let e=j(()=>s.t(`badge-prompt`)),n=j(()=>OC(t.item)),o=j(()=>({selected:a(),isLinked:z(d),deleteLabel:z(d)?s.t(`btn-delete-pair`):s.t(`btn-delete`),showPinEdit:!1,linkedHint:z(d)?s.t(`badge-linked`):void 0,onDelete:t.onDeletePrompt}));i(r,()=>t.item.id,()=>z(e),()=>z(n),()=>z(o))}var o=L(r,2),c=P(o);yC(c,{get class(){return zh}});var l=I(L(c,2),!0);D(o);var u=L(o,2),f=I(u,!0),p=L(u,2),m=e=>{{let t=j(()=>s.t(`text-generated-above`));PC(e,()=>`down`,()=>z(t))}};W(p,e=>{z(d)&&e(m)}),D(n),R((e,r,i)=>{K(n,1,e),q(n,`data-id`,t.item.id),K(o,1,r),U(l,i),U(f,t.item.content)},[()=>G(jC({selected:a()})),()=>G($(`flex flex-wrap items-center text-xs text-muted-foreground`,Vh)),()=>bg(t.item.createdAt)]),H(e,n)},x=e=>{var o=KC(),c=P(o);{let e=j(()=>t.item.memoryType||s.t(`badge-memory`)),n=j(()=>OC(t.item)),r=j(()=>({selected:a(),pinned:z(p),isLinked:z(m),deleteLabel:z(m)?s.t(`btn-delete-pair`):s.t(`btn-delete`),linkedHint:z(m)?s.t(`badge-linked`):void 0,onDelete:t.onDeleteMemory}));i(c,()=>t.item.id,()=>z(e),()=>z(n),()=>z(r))}var l=L(c,2),u=e=>{var t=UC(),n=I(t,!0);R(()=>U(n,z(g))),H(e,t)};W(l,e=>{z(g)&&e(u)});var d=L(l,2);n(d,()=>t.item.tags,()=>t.item.id);var f=L(d,2);NC(f,()=>t.item.content);var _=L(f,2),v=e=>{{let t=j(()=>s.t(`text-from-below`));PC(e,()=>`up`,()=>z(t))}};W(_,e=>{z(m)&&e(v)});var y=L(_,2);r(y,()=>z(h),()=>t.item.id),D(o),R(e=>{K(o,1,e),q(o,`data-id`,t.item.id)},[()=>G(jC({selected:a(),pinned:z(p)}))]),H(e,o)};W(v,e=>{t.variant===`pair`&&t.memory&&t.prompt&&z(l)?e(y):t.variant===`prompt`&&t.item?e(b,1):t.variant===`memory`&&t.item&&z(h)&&e(x,2)}),H(e,_),A()}var JC=B(`<div><!></div>`);function YC(e,t){k(t,!0);var n=JC();ji(P(n),()=>t.children??f),D(n),R(e=>K(n,1,e),[()=>G($(`text-sm text-muted-foreground py-8 text-center`,t.class))]),H(e,n),A()}var XC={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`}]]};XC.node;var ZC=new Set([`$$slots`,`$$events`,`$$legacy`]);function QC(e,t){let n=J(t,ZC);Pa(e,Y(()=>n,{get icon(){return XC}}))}var $C=B(`<div><!> <span class="text-xs text-muted-foreground tabular-nums"> </span> <!></div>`),ew=B(`<div><span class="text-xs text-muted-foreground mr-2"> </span> <!></div>`);function tw(e,t){k(t,!0);let n=X(t,`mode`,3,`pages`),r=X(t,`pageSize`,3,20),i=X(t,`currentPage`,3,1),a=X(t,`totalPages`,3,1),o=X(t,`pageInfo`,3,``),s=Ch(),c=j(()=>i()>1),l=j(()=>i()<a());var u=V(),d=F(u),f=e=>{var n=$C(),r=P(n);{let e=j(()=>!z(c)),n=j(()=>s.t(`nav-prev-page`));oh(r,{variant:`outline`,size:`icon-xs`,get disabled(){return z(e)},get"aria-label"(){return z(n)},onclick:()=>t.onDelta?.(-1),children:(e,t)=>{QC(e,{get class(){return zh}})},$$slots:{default:!0}})}var i=L(r,2),a=I(i,!0),u=L(i,2);{let e=j(()=>!z(l)),n=j(()=>s.t(`nav-next-page`));oh(u,{variant:`outline`,size:`icon-xs`,get disabled(){return z(e)},get"aria-label"(){return z(n)},onclick:()=>t.onDelta?.(1),children:(e,t)=>{uo(e,{get class(){return zh}})},$$slots:{default:!0}})}D(n),R(()=>{K(n,1,`flex items-center gap-2`),U(a,o())}),H(e,n)},p=e=>{var n=ew(),i=P(n),a=I(i);wi(L(i,2),16,()=>Array.from({length:t.page.totalPages},(e,t)=>t+1),e=>e,(e,n)=>{{let r=j(()=>n===t.page.page?`default`:`outline`);oh(e,{size:`xs`,get variant(){return z(r)},onclick:()=>t.onPageChange?.(n),children:(e,t)=>{O();var r=oi();R(()=>U(r,n)),H(e,r)},$$slots:{default:!0}})}}),D(n),R(e=>{K(n,1,`flex flex-wrap items-center gap-1.5 pt-2`),U(a,`${t.page.start+1}-${e??``} / ${t.page.total??``}`)},[()=>Math.min(t.page.start+r(),t.page.total)]),H(e,n)};W(d,e=>{n()===`prev-next`?e(f):t.page&&t.page.total>r()&&e(p,1)}),H(e,u),A()}function nw(e){let t=e.isPair?e.memory.createdAt:e.item.createdAt;return new Date(t).getTime()}function rw(e){return e.isPair?!!e.memory.isPinned:!!e.item.isPinned}function iw(e){let t=new Map(e.map(e=>[e.id,e])),n=[],r=new Map,i=new Set;function a(e,t){if(e?.type!==`memory`||t?.type!==`prompt`||r.has(e.id)||r.has(t.id))return;let n={isPair:!0,memory:e,prompt:t};r.set(e.id,n),r.set(t.id,n)}for(let e of t.values())e.type===`memory`&&e.linkedPromptId&&a(e,t.get(e.linkedPromptId));for(let e of t.values())e.type===`prompt`&&e.linkedMemoryId&&a(t.get(e.linkedMemoryId),e);for(let e of t.values()){if(i.has(e.id))continue;let t=r.get(e.id);t?.isPair?(n.push(t),i.add(t.memory.id),i.add(t.prompt.id)):(n.push({isPair:!1,type:e.type,item:e}),i.add(e.id))}return n.sort((e,t)=>{let n=+!!rw(e),r=+!!rw(t);return n===r?nw(t)-nw(e):r-n})}function aw(e){let t=[],n=[];for(let r of e)(rw(r)?t:n).push(r);return{pinned:t,rest:n}}var ow=B(`<span class="text-xs text-muted-foreground"> </span>`),sw=B(`<div><div><!> <span class="tabular-nums"> </span></div> <!></div>`),cw=B(`<div><div><div><!> <span class="tabular-nums"> </span></div> <!></div> <!></div>`),lw=B(`<div><div><!> <!> <div><!> <!></div></div> <div><!></div></div>`);function uw(e,t){k(t,!0);let n=(e,t=f)=>{var n=V();wi(F(n),17,t,e=>e.isPair?e.memory.id:e.item.id,(e,t)=>{let n=j(()=>g(z(t)));qC(e,Y(()=>z(n)))}),H(e,n)},r=X(t,`loading`,3,!1),i=X(t,`error`,3,null),a=X(t,`knownTags`,19,()=>[]),o=Ch(),s=j(()=>iw(t.memories)),c=j(()=>aw(z(s))),l=j(()=>o.t(`text-page`,{current:t.currentPage,total:t.totalPages})),u=j(()=>z(s).map(e=>e.isPair?e.memory.id:e.item.id)),d=j(()=>t.selectedIds.size),p=j(()=>z(u).length>0&&z(u).every(e=>t.selectedIds.has(e))),m=j(()=>z(u).some(e=>t.selectedIds.has(e)));function h(e){e===!0||e===!1&&!z(p)&&z(m)?t.onSelectAllPage():t.onDeselectAll()}function g(e){let n={onSelect:t.onSelect,onPin:t.onPin,onUnpin:t.onUnpin,onEdit:t.onEdit,onDeleteMemory:t.onDeleteMemory,onDeletePrompt:t.onDeletePrompt,onTagsChange:t.onTagsChange,knownTags:a()};return e.isPair?{...n,variant:`pair`,memory:e.memory,prompt:e.prompt,selected:t.selectedIds.has(e.memory.id),key:e.memory.id}:{...n,variant:e.type===`prompt`?`prompt`:`memory`,item:e.item,selected:t.selectedIds.has(e.item.id),key:e.item.id}}var _=lw(),v=P(_),y=P(v);{let e=j(()=>z(m)&&!z(p)),t=j(()=>z(p)?o.t(`btn-deselect-all`):o.t(`btn-select-all`)),n=j(()=>z(p)?o.t(`btn-deselect-all`):o.t(`btn-select-all`)),r=j(()=>z(u).length===0);lg(y,{get checked(){return z(p)},get indeterminate(){return z(e)},onCheckedChange:h,get"aria-label"(){return z(t)},get title(){return z(n)},get disabled(){return z(r)}})}var b=L(y,2),x=e=>{var t=ow(),n=I(t,!0);R(e=>U(n,e),[()=>o.t(`text-selected`,{count:z(d)})]),H(e,t)};W(b,e=>{z(d)>0&&e(x)});var S=L(b,2),C=P(S),w=e=>{{let n=j(()=>o.t(`btn-delete-selected`)),r=j(()=>o.t(`btn-delete-selected`));oh(e,{variant:`destructive`,size:`icon-xs`,get"aria-label"(){return z(n)},get title(){return z(r)},get onclick(){return t.onBulkDelete},children:(e,t)=>{to(e,{get class(){return zh}})},$$slots:{default:!0}})}};W(C,e=>{z(d)>0&&e(w)}),tw(L(C,2),{mode:`prev-next`,get currentPage(){return t.currentPage},get totalPages(){return t.totalPages},get pageInfo(){return z(l)},get onDelta(){return t.onPageChange}}),D(S),D(v);var ee=L(v,2),te=P(ee),ne=e=>{YC(e,{children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>o.t(`loading-init`)]),H(e,n)},$$slots:{default:!0}})},re=e=>{YC(e,{class:`text-destructive`,children:(e,t)=>{O();var n=oi();R(()=>U(n,`Error: ${i()??``}`)),H(e,n)},$$slots:{default:!0}})},ie=e=>{YC(e,{children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>o.t(`empty-memories`)]),H(e,n)},$$slots:{default:!0}})},ae=e=>{var t=cw(),r=P(t),i=P(r),a=P(i);{let e=j(()=>$(zh,`text-primary`));sC(a,{get class(){return z(e)}})}var s=L(a),l=I(L(s));D(i);var u=L(i,2);n(u,()=>z(c).pinned),D(r);var d=L(r,2),f=e=>{var t=sw(),r=P(t),i=P(r);uC(i,{get class(){return zh}});var a=L(i),s=I(L(a));D(r);var l=L(r,2);n(l,()=>z(c).rest),D(t),R((e,n)=>{K(t,1,G(qh)),K(r,1,e),U(a,` ${n??``} `),U(s,`(${z(c).rest.length??``})`)},[()=>G($(`flex items-center text-xs font-medium text-muted-foreground`,Vh)),()=>o.t(`section-all`)]),H(e,t)};W(d,e=>{z(c).rest.length>0&&e(f)}),D(t),R((e,n)=>{K(t,1,G(Yh)),K(r,1,G(qh)),K(i,1,e),U(s,` ${n??``} `),U(l,`(${z(c).pinned.length??``})`)},[()=>G($(`flex items-center text-xs font-medium text-muted-foreground`,Vh)),()=>o.t(`badge-pinned`)]),H(e,t)},oe=e=>{n(e,()=>z(s))};W(te,e=>{r()&&t.memories.length===0?e(ne):i()?e(re,1):z(s).length===0?e(ie,2):z(c).pinned.length>0?e(ae,3):e(oe,-1)}),D(ee),D(_),R((e,t,n)=>{K(_,1,G(qh)),K(v,1,e),K(S,1,t),K(ee,1,n)},[()=>G($(`flex items-center`,Hh)),()=>G($(`ms-auto flex items-center`,Hh)),()=>G($(qh,`min-h-32`))]),H(e,_),A()}var dw={name:`heart`,size:24,node:[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`}]]};dw.node;var fw=new Set([`$$slots`,`$$events`,`$$legacy`]);function pw(e,t){let n=J(t,fw);Pa(e,Y(()=>n,{get icon(){return dw}}))}var mw={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}],[`path`,{d:`M3 3v5h5`}],[`path`,{d:`M12 7v5l4 2`}]],aliases:[`history`]};mw.node;var hw=new Set([`$$slots`,`$$events`,`$$legacy`]);function gw(e,t){let n=J(t,hw);Pa(e,Y(()=>n,{get icon(){return mw}}))}var _w={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`}],[`path`,{d:`M20 2v4`}],[`path`,{d:`M22 4h-4`}],[`circle`,{cx:`4`,cy:`20`,r:`2`}]],aliases:[`stars`]};_w.node;var vw=new Set([`$$slots`,`$$events`,`$$legacy`]);function yw(e,t){let n=J(t,vw);Pa(e,Y(()=>n,{get icon(){return _w}}))}var bw={name:`user-x`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`}],[`circle`,{cx:`9`,cy:`7`,r:`4`}],[`line`,{x1:`17`,x2:`22`,y1:`8`,y2:`13`}],[`line`,{x1:`22`,x2:`17`,y1:`8`,y2:`13`}]]};bw.node;var xw=new Set([`$$slots`,`$$events`,`$$legacy`]);function Sw(e,t){let n=J(t,xw);Pa(e,Y(()=>n,{get icon(){return bw}}))}var Cw={name:`workflow`,size:24,node:[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`}]]};Cw.node;var ww=new Set([`$$slots`,`$$events`,`$$legacy`]);function Tw(e,t){let n=J(t,ww);Pa(e,Y(()=>n,{get icon(){return Cw}}))}var Ew=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),Dw=B(`<div><!></div>`);function Ow(e,t){k(t,!0);let n=J(t,Ew);var r=Dw();la(r,e=>({"data-slot":`scroll-area`,class:e,...n}),[()=>$(`relative overflow-auto`,t.class)]),ji(P(r),()=>t.children??f),D(r),H(e,r),A()}var kw=B(`<div><div><span class="font-medium"> </span> <span class="text-muted-foreground"> </span> <span class="text-muted-foreground ml-auto"> </span></div> <p class="text-sm"> </p></div>`),Aw=B(`<div></div>`);function jw(e,t){k(t,!0);let n=X(t,`open`,15,!1),r=X(t,`profileId`,3,``),i=Ch(),a=M(!1),o=M(dn([]));Pn(()=>{n()&&r()&&s(r())});async function s(e){N(a,!0),N(o,[],!0);let t=await Vo(`/api/user-profile/changelog?profileId=${encodeURIComponent(e)}&limit=10`);N(a,!1),t.success&&t.data?N(o,t.data,!0):N(o,[],!0)}function c(e){n(e),t.onOpenChange?.(e)}{let t=j(()=>i.t(`modal-changelog-title`));yh(e,{get title(){return z(t)},class:`sm:max-w-lg`,onOpenChange:c,get open(){return n()},set open(e){n(e)},children:(e,t)=>{Ow(e,{class:`max-h-80`,children:(e,t)=>{var n=V(),r=F(n),s=e=>{YC(e,{class:`py-6`,children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>i.t(`loading-changelog`)]),H(e,n)},$$slots:{default:!0}})},c=e=>{YC(e,{class:`py-6`,children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>i.t(`empty-changelog`)]),H(e,n)},$$slots:{default:!0}})},l=e=>{var t=Aw();wi(t,23,()=>z(o),(e,t)=>`${e.version}-${t}`,(e,t)=>{var n=kw(),r=P(n),i=P(r),a=I(i),o=L(i,2),s=I(o,!0),c=I(L(o,2),!0);D(r);var l=I(L(r,2),!0);D(n),R((e,i,o)=>{K(n,1,e),K(r,1,i),U(a,`v${z(t).version??``}`),U(s,z(t).changeType),U(c,o),U(l,z(t).changeSummary)},[()=>G($(Qh,$h,Wh)),()=>G($(`flex flex-wrap items-center text-xs`,Hh)),()=>bg(z(t).createdAt)]),H(e,n)}),D(t),R(e=>K(t,1,e),[()=>G($(qh,`pr-3`))]),H(e,t)};W(r,e=>{z(a)?e(s):z(o).length===0?e(c,1):e(l,-1)}),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}A()}var Mw={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`M12 16v-4`}],[`path`,{d:`M12 8h.01`}]]};Mw.node;var Nw=new Set([`$$slots`,`$$events`,`$$legacy`]);function Pw(e,t){let n=J(t,Nw);Pa(e,Y(()=>n,{get icon(){return Mw}}))}var Fw=B(`<p class="text-sm"> </p>`),Iw=B(`<span>·</span> <span class="inline-flex items-center gap-1"><!> </span>`,1),Lw=B(`<div><span class="inline-flex items-center gap-1"><!> </span> <!></div>`),Rw=B(`<div><div><div><h3><span class="truncate"><!></span></h3> <span> </span></div> <div class="flex shrink-0 items-center gap-1"><!> <!></div></div> <!> <!> <!></div>`);function zw(e,t){k(t,!0);let n=X(t,`variant`,3,`grid`),r=Ch(),i=j(()=>C_(t.item)),a=j(()=>T_(t.item)),o=j(()=>w_(t.item));var s=Rw(),c=P(s),l=P(c),u=P(l),d=P(u),f=P(d),p=e=>{var n=oi();R(e=>U(n,e),[()=>t.item.description||r.t(`profile-workflows`)]),H(e,n)},m=e=>{var n=oi();R(()=>U(n,t.item.category||`General`)),H(e,n)};W(f,e=>{n()===`workflow`?e(p):e(m,-1)}),D(d),D(u);var h=L(u,2),g=I(h);D(l);var _=L(l,2),v=P(_);{let e=j(()=>r.t(`btn-edit`)||`Edit`),n=j(()=>r.t(`btn-edit`)||`Edit`);oh(v,{variant:`ghost`,size:`icon-xs`,get title(){return z(e)},get"aria-label"(){return z(n)},get onclick(){return t.onEdit},children:(e,t)=>{SC(e,{get class(){return zh},"aria-hidden":`true`})},$$slots:{default:!0}})}var y=L(v,2);{let e=j(()=>r.t(`btn-delete`)||`Delete`),n=j(()=>r.t(`btn-delete`)||`Delete`);oh(y,{variant:`destructive`,size:`icon-xs`,get title(){return z(e)},get"aria-label"(){return z(n)},get onclick(){return t.onDelete},children:(e,t)=>{to(e,{get class(){return zh},"aria-hidden":`true`})},$$slots:{default:!0}})}D(_),D(c);var b=L(c,2),x=e=>{var n=Fw(),r=I(n,!0);R(()=>U(r,t.item.description||``)),H(e,n)};W(b,e=>{n()!==`workflow`&&e(x)});var S=L(b,2),C=e=>{yg(e,{get steps(){return t.item.steps},variant:`chips`})};W(S,e=>{n()===`workflow`&&t.item.steps?.length&&e(C)});var w=L(S,2),ee=e=>{var n=Lw(),i=P(n),s=P(i);bo(s,{get class(){return zh},"aria-hidden":`true`});var c=L(s);D(i);var l=L(i,2),u=e=>{var t=Iw(),n=L(F(t),2),r=P(n);Pw(r,{get class(){return zh},"aria-hidden":`true`});var i=L(r);D(n),R(()=>{q(n,`title`,z(o)),U(i,` ${z(a)??``} evidence`)}),H(e,t)};W(l,e=>{z(a)>0&&e(u)}),D(n),R((e,r)=>{K(n,1,e),q(i,`title`,r),U(c,` ${(t.item.frequency||1)??``}`)},[()=>G($(`flex items-center text-xs text-muted-foreground`,Vh)),()=>r.t(`label-evidence-tooltip`,{count:t.item.frequency||1})]),H(e,n)};W(w,e=>{(t.item.evidence||t.item.frequency||n()===`workflow`)&&e(ee)}),D(s),R((e,t,n,r,a)=>{K(s,1,e),K(c,1,t),K(l,1,n),K(u,1,r),K(h,1,a),q(h,`title`,`${z(i)}%`),U(g,`${z(i)??``}%`)},[()=>G($(Qh,$h,Kh)),()=>G($(`flex items-center`,Hh)),()=>G($(`flex min-w-0 flex-1 items-center`,Hh)),()=>G($(MC,`min-w-0`)),()=>G($(eg,`h-7 min-w-7 justify-center font-medium text-foreground`))]),H(e,s),A()}var Bw=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`value`,`placeholder`]),Vw=B(`<input/>`);function Hw(e,t){k(t,!0);let n=X(t,`value`,15),r=X(t,`placeholder`,3,` `),i=J(t,Bw);var a=Vw();la(a,e=>({"data-slot":`input`,class:e,placeholder:r(),...i}),[()=>$(`border-input file:text-foreground placeholder:text-transparent selection:bg-primary selection:text-primary-foreground h-10 w-full min-w-0 rounded-xl border bg-card px-2.5 py-0 text-sm leading-10 shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,`focus-visible:border-primary focus-visible:ring-0`,`aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,t.class)],void 0,void 0,void 0,!0),ga(a,n),H(e,a),A()}var Uw=B(`<div><span class="text-xs text-muted-foreground w-5 tabular-nums"></span> <!> <!></div>`),Ww=B(`<div></div> <!>`,1),Gw=B(`<!> <!> <!>`,1),Kw=B(`<form id="profile-item-form"><!></form>`);function qw(e,t){k(t,!0);let n=X(t,`open`,15,!1),r=X(t,`type`,3,null),i=X(t,`index`,3,0),a=X(t,`action`,3,`edit`),o=X(t,`item`,3,null),s=Ch(),c=M(``),l=M(``),u=M(dn([``])),d=M(`1`),f=M(!1),p=j(()=>a()===`edit`),m=j(()=>r()===`workflows`),h=j(()=>z(p)?s.t(`btn-edit`):z(d)===`2`?s.t(`confirm-delete-title`):s.t(`confirm-delete`));Pn(()=>{n()&&o()&&(N(c,o().category||``,!0),N(l,o().description||``,!0),N(u,o().steps?.length?[...o().steps]:[``],!0),N(d,`1`))});function g(e){n(e),t.onOpenChange?.(e)}function _(){N(u,[...z(u),``],!0)}function v(e){let t=z(u).filter((t,n)=>n!==e);N(u,t.length===0?[``]:t,!0)}function y(e,t){N(u,z(u).map((n,r)=>r===e?t:n),!0)}async function b(e){N(f,!0);let n=await Vo(`/api/user-profile/item`,{method:`PATCH`,body:JSON.stringify(e)});N(f,!1),await Ho(n,{successKey:e.action===`delete`?`toast-delete-success`:`toast-update-success`,failKey:e.action===`delete`?`toast-delete-failed`:`toast-update-failed`,translate:s.t,onSuccess:()=>{g(!1),t.onSaved?.()}})}async function x(e){if(e?.preventDefault(),!r())return;if(a()===`delete`){if(z(d)===`1`){N(d,`2`);return}await b({type:r(),index:i(),action:`delete`});return}let t={type:r(),index:i(),action:`edit`,category:z(m)?void 0:z(c),description:z(l)};r()===`workflows`&&(t.steps=z(u).map(e=>e.trim()).filter(Boolean)),await b(t)}yh(e,{get title(){return z(h)},class:`sm:max-w-lg`,onOpenChange:g,get open(){return n()},set open(e){n(e)},footer:e=>{{let t=j(()=>z(p)?s.t(`btn-save`):s.t(`btn-delete`)),n=j(()=>z(p)?`default`:`destructive`);Th(e,{onCancel:()=>g(!1),get primaryLabel(){return z(t)},get primaryVariant(){return z(n)},get primaryDisabled(){return z(f)},onPrimary:()=>void x()})}},children:(e,t)=>{var n=Kw(),r=P(n),i=e=>{var t=Gw(),n=F(t),r=e=>{{let t=j(()=>s.t(`label-category`));G_(e,{id:`profile-item-category`,get label(){return z(t)},get value(){return z(c)},children:(e,t)=>{{let t=j(()=>!z(p));Hw(e,{id:`profile-item-category`,get disabled(){return z(t)},get value(){return z(c)},set value(e){N(c,e,!0)}})}},$$slots:{default:!0}})}};W(n,e=>{z(m)||e(r)});var i=L(n,2);{let e=j(()=>s.t(`label-description`));G_(i,{id:`profile-item-description`,get label(){return z(e)},children:(e,t)=>{{let t=j(()=>!z(p));J_(e,{id:`profile-item-description`,rows:4,get disabled(){return z(t)},get value(){return z(l)},set value(e){N(l,e,!0)}})}},$$slots:{default:!0}})}var a=L(i,2),o=e=>{{let t=j(()=>s.t(`label-steps`));G_(e,{get label(){return z(t)},floating:!1,spacing:`normal`,children:(e,t)=>{var n=Ww(),r=F(n);wi(r,21,()=>z(u),bi,(e,t,n)=>{var r=Uw(),i=P(r);i.textContent=n+1;var a=L(i,2);G_(a,{id:`profile-step-${n}`,label:`Step ${n+1}`,get value(){return z(t)},class:`flex-1`,children:(e,r)=>{Hw(e,{id:`profile-step-${n}`,get value(){return z(t)},oninput:e=>y(n,e.currentTarget.value)})},$$slots:{default:!0}}),oh(L(a,2),{type:`button`,variant:`ghost`,size:`icon-xs`,onclick:()=>v(n),children:(e,t)=>{Au(e,{get class(){return zh}})},$$slots:{default:!0}}),D(r),R(e=>K(r,1,e),[()=>G($(`flex items-center`,Hh))]),H(e,r)}),D(r),oh(L(r,2),{type:`button`,variant:`secondary`,size:`sm`,onclick:_,class:`mt-2`,children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>s.t(`btn-add-step`)]),H(e,n)},$$slots:{default:!0}}),R(()=>K(r,1,G(Kh))),H(e,n)},$$slots:{default:!0}})}};W(a,e=>{z(m)&&z(p)&&e(o)}),H(e,t)};W(r,e=>{(z(p)||z(d)===`1`)&&e(i)}),D(n),R(()=>K(n,1,G(Jh))),Jr(`submit`,n,x),H(e,n)},$$slots:{footer:!0,default:!0}}),A()}var Jw=B(`<div class="shrink-0"><!></div>`),Yw=B(`<button type="button"><!> <h2 class="m-0 min-w-0 flex-1 text-sm font-semibold leading-snug text-foreground-bright"><span class="block truncate"> </span></h2> <!> <!> <!></button>`),Xw=B(`<div class="ms-auto shrink-0"><!></div>`),Zw=B(`<div><!> <h2 class="m-0 min-w-0 flex-1 text-sm font-semibold leading-snug text-foreground-bright"><span class="block truncate"> </span></h2> <!> <!></div>`),Qw=B(`<section><div><!> <!></div></section>`);function $w(e,t){k(t,!0);let n=X(t,`collapsible`,3,!1),r=X(t,`defaultOpen`,3,!0),i=M(dn(jr(()=>r())));function a(){n()&&N(i,!z(i))}var o=Qw(),s=P(o),c=P(s),l=e=>{var n=Yw(),r=P(n),o=e=>{var n=V();ji(F(n),()=>t.leading),H(e,n)};W(r,e=>{t.leading&&e(o)});var s=L(r,2),c=I(P(s),!0);D(s);var l=L(s,2),u=e=>{var n=V();ji(F(n),()=>t.trailing),H(e,n)};W(l,e=>{t.trailing&&e(u)});var d=L(l,2),f=e=>{var n=Jw();ji(P(n),()=>t.action),D(n),Yr(`pointerdown`,n,e=>e.stopPropagation()),H(e,n)};W(d,e=>{t.action&&e(f)});var p=L(d,2);{let e=j(()=>$(zh,`shrink-0 text-muted-foreground transition-transform motion-reduce:transition-none`,z(i)&&`rotate-180`));so(p,{get class(){return z(e)},"aria-hidden":`true`})}D(n),R(e=>{K(n,1,e),q(n,`aria-expanded`,z(i)),U(c,t.title)},[()=>G($(`flex w-full items-center min-w-0 text-start`,Hh))]),Yr(`click`,n,a),H(e,n)},u=e=>{var n=Zw(),r=P(n),i=e=>{var n=V();ji(F(n),()=>t.leading),H(e,n)};W(r,e=>{t.leading&&e(i)});var a=L(r,2),o=I(P(a),!0);D(a);var s=L(a,2),c=e=>{var n=V();ji(F(n),()=>t.trailing),H(e,n)};W(s,e=>{t.trailing&&e(c)});var l=L(s,2),u=e=>{var n=Xw();ji(P(n),()=>t.action),D(n),H(e,n)};W(l,e=>{t.action&&e(u)}),D(n),R(e=>{K(n,1,e),U(o,t.title)},[()=>G($(`flex items-center min-w-0`,Hh))]),H(e,n)};W(c,e=>{n()?e(l):e(u,-1)});var d=L(c,2),p=e=>{var n=V();ji(F(n),()=>t.children??f),H(e,n)};W(d,e=>{(!n()||z(i))&&e(p)}),D(s),D(o),R((e,t)=>{K(o,1,e),K(s,1,t)},[()=>G($(`min-w-0`,t.class)),()=>G($(og,`[--floating-label-bg:var(--card)]`))]),H(e,o),A()}Xr([`click`,`pointerdown`]);function eT(e,t,n=20){let r=e.length,i=Math.max(1,Math.ceil(r/n)),a=Math.min(Math.max(1,t),i),o=(a-1)*n;return{items:e.slice(o,o+n),total:r,totalPages:i,page:a,start:o}}var tT=B(`<div><!> <p class="text-sm"> </p></div>`),nT=B(`<!> `,1),rT=B(`<!> History`,1),iT=B(`<span aria-hidden="true"><!></span>`),aT=B(`<span class="text-sm font-normal text-muted-foreground"> </span>`),oT=B(`<p class="text-sm text-muted-foreground"> </p>`),sT=B(`<div></div> <!>`,1),cT=B(`<div><div><span> </span> <div><!> <!> <!></div></div> <div></div></div> <!> <!>`,1);function lT(e,t){k(t,!0);let n=X(t,`loading`,3,!1),r=Ch(),i=M(dn({pref:1,pat:1,wf:1})),a=M(!1),o=M(!1),s=M(null),c=M(0),l=M(`edit`),u=M(null),d=j(()=>{if(!t.profile?.exists||!t.profile.profileData)return null;let e=t.profile.profileData;if(typeof e==`string`)try{e=JSON.parse(e)}catch{return null}return e}),f=j(()=>h_(z(d)?.preferences)),p=j(()=>h_(z(d)?.patterns)),m=j(()=>h_(z(d)?.workflows)),h=j(()=>z(m).map((e,t)=>({item:e,index:t})).sort((e,t)=>(t.item.frequency||0)-(e.item.frequency||0))),g=j(()=>eT(z(f),z(i).pref,20)),_=j(()=>eT(z(p),z(i).pat,20)),v=j(()=>eT(z(h),z(i).wf,20));function y(e,t,n){let r=z(e===`preferences`?f:e===`patterns`?p:m)[t];r&&(N(s,e,!0),N(c,t,!0),N(l,n,!0),N(u,r,!0),N(o,!0))}function b(e,t){N(i,{...z(i),[e]:t},!0)}let x=j(()=>[{key:`pref`,type:`preferences`,icon:pw,titleKey:`profile-preferences`,emptyKey:`empty-preferences`,count:z(f).length,page:z(g),grid:!0},{key:`pat`,type:`patterns`,icon:Jx,titleKey:`profile-patterns`,emptyKey:`empty-patterns`,count:z(p).length,page:z(_),grid:!0},{key:`wf`,type:`workflows`,icon:Tw,titleKey:`profile-workflows`,emptyKey:`empty-workflows`,count:z(m).length,page:z(v)}]);var S=V(),C=F(S),w=e=>{YC(e,{children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>r.t(`loading-profile`)]),H(e,n)},$$slots:{default:!0}})},ee=e=>{var n=tT(),i=P(n);Sw(i,{class:`size-8`,"aria-hidden":`true`});var a=I(L(i,2),!0);D(n),R((e,t)=>{K(n,1,e),U(a,t)},[()=>G($(`flex flex-col items-center py-10 text-muted-foreground`,Hh)),()=>t.profile?.message||r.t(`empty-preferences`)]),H(e,n)},te=e=>{var n=cT(),i=F(n),d=P(i),m=P(d),h=I(m,!0),g=L(m,2),_=P(g);oh(_,{type:`button`,variant:`outline`,onclick:()=>t.onCleanup?.(),children:(e,t)=>{var n=nT(),i=F(n);yw(i,{get class(){return zh},"aria-hidden":`true`});var a=L(i);R(e=>U(a,` ${e??``}`),[()=>r.t(`btn-ai-cleanup`)]),H(e,n)},$$slots:{default:!0}});var v=L(_,2);oh(v,{type:`button`,variant:`outline`,onclick:()=>t.onRefresh?.(),children:(e,t)=>{var n=nT(),i=F(n);Qa(i,{get class(){return zh},"aria-hidden":`true`});var a=L(i);R(e=>U(a,` ${e??``}`),[()=>r.t(`btn-refresh`)]),H(e,n)},$$slots:{default:!0}}),oh(L(v,2),{type:`button`,variant:`outline`,onclick:()=>N(a,!0),children:(e,t)=>{var n=rT();gw(F(n),{get class(){return zh},"aria-hidden":`true`}),O(),H(e,n)},$$slots:{default:!0}}),D(g),D(d);var S=L(d,2);wi(S,21,()=>z(x),e=>e.key,(e,t)=>{{let n=e=>{var n=iT();Mi(P(n),()=>z(t).icon,(e,t)=>{t(e,{get class(){return zh}})}),D(n),R(e=>K(n,1,e),[()=>G($(Ph,`size-6`))]),H(e,n)},i=e=>{var n=aT(),r=I(n,!0);R(()=>U(r,z(t).count)),H(e,n)},a=j(()=>r.t(z(t).titleKey));$w(e,{get title(){return z(a)},collapsible:!0,leading:n,trailing:i,children:(e,n)=>{var i=V(),a=F(i),o=e=>{var n=oT(),i=I(n,!0);R(e=>U(i,e),[()=>r.t(z(t).emptyKey)]),H(e,n)},s=e=>{var n=sT(),r=F(n);wi(r,23,()=>z(t).page.items,(e,n)=>`${z(t).key}-${n}`,(e,n)=>{let r=j(()=>z(n)),i=j(()=>(z(t).type===`preferences`?z(f):z(p)).indexOf(z(r)));zw(e,{get item(){return z(r)},get type(){return z(t).type},onEdit:()=>y(z(t).type,z(i),`edit`),onDelete:()=>y(z(t).type,z(i),`delete`)})}),D(r),tw(L(r,2),{get page(){return z(t).page},pageSize:20,onPageChange:e=>b(z(t).key,e)}),R(()=>K(r,1,G(Kh))),H(e,n)},c=e=>{var n=sT(),r=F(n);wi(r,21,()=>z(t).page.items,e=>`wf-${e.index}`,(e,t)=>{let n=j(()=>z(t));zw(e,{get item(){return z(n).item},type:`workflows`,variant:`workflow`,onEdit:()=>y(`workflows`,z(n).index,`edit`),onDelete:()=>y(`workflows`,z(n).index,`delete`)})}),D(r),tw(L(r,2),{get page(){return z(t).page},pageSize:20,onPageChange:e=>b(z(t).key,e)}),R(()=>K(r,1,G(Kh))),H(e,n)};W(a,e=>{z(t).count===0?e(o):z(t).grid?e(s,1):e(c,-1)}),H(e,i)},$$slots:{leading:!0,trailing:!0,default:!0}})}}),D(S),D(i);var C=L(i,2);{let e=j(()=>t.profile?.id||``);jw(C,{onOpenChange:e=>N(a,e,!0),get profileId(){return z(e)},get open(){return z(a)},set open(e){N(a,e,!0)}})}qw(L(C,2),{onOpenChange:e=>N(o,e,!0),get type(){return z(s)},get index(){return z(c)},get action(){return z(l)},get item(){return z(u)},get onSaved(){return t.onRefresh},get open(){return z(o)},set open(e){N(o,e,!0)}}),R((e,t,n)=>{K(i,1,G(Xh)),K(d,1,e),K(m,1,G(eg)),U(h,t),K(g,1,n),K(S,1,G(Xh))},[()=>G($(`flex flex-wrap items-center justify-between`,Hh)),()=>r.t(`profile-meta`,{count:t.profile.totalPromptsAnalyzed??0,date:t.profile.lastAnalyzedAt?bg(t.profile.lastAnalyzedAt):`—`}),()=>G($(`flex flex-wrap items-center`,Vh))]),H(e,n)};W(C,e=>{n()&&!t.profile?e(w):t.profile?.exists?z(d)&&e(te,2):e(ee,1)}),H(e,S),A()}var uT=B(`<form id="skill-form"><!> <!> <!> <div class="flex flex-wrap gap-4"><label class="flex items-center gap-2 text-sm"><!> </label> <label class="flex items-center gap-2 text-sm"><!> </label></div></form>`);function dT(e,t){k(t,!0);let n=X(t,`open`,15,!1),r=X(t,`editing`,3,!1),i=X(t,`draft`,15),a=Ch();function o(e){n(e),t.onOpenChange?.(e)}function s(){t.onSave?.()}{let t=e=>{{let t=j(()=>a.t(`btn-save`));Th(e,{onCancel:()=>o(!1),get primaryLabel(){return z(t)},onPrimary:s})}},c=j(()=>r()?a.t(`modal-skill-edit-title`):a.t(`modal-skill-create-title`));yh(e,{get title(){return z(c)},class:`sm:max-w-lg`,onOpenChange:o,get open(){return n()},set open(e){n(e)},footer:t,children:(e,t)=>{var r=uT(),o=P(r);{let e=j(()=>a.t(`label-skill-name`));G_(o,{id:`skill-name`,get label(){return z(e)},get value(){return i().name},children:(e,t)=>{{let t=j(()=>a.t(`placeholder-skill-name`));Hw(e,{id:`skill-name`,required:!0,get placeholder(){return z(t)},get value(){return i().name},set value(e){i(i().name=e,!0)}})}},$$slots:{default:!0}})}var c=L(o,2);{let e=j(()=>a.t(`label-skill-description`));G_(c,{id:`skill-description`,get label(){return z(e)},get value(){return i().description},children:(e,t)=>{{let t=j(()=>a.t(`placeholder-skill-description`));J_(e,{id:`skill-description`,rows:4,get placeholder(){return z(t)},get value(){return i().description},set value(e){i(i().description=e,!0)}})}},$$slots:{default:!0}})}var l=L(c,2);{let e=j(()=>a.t(`label-skill-content`)),t=j(()=>a.t(`placeholder-skill-content`));Tx(l,{id:`skill-content`,get label(){return z(e)},rows:10,required:!0,get placeholder(){return z(t)},get resetKey(){return n()},get value(){return i().content},set value(e){i(i().content=e,!0)}})}var u=L(l,2),d=P(u),f=P(d);lg(f,{get checked(){return i().enabled},set checked(e){i(i().enabled=e,!0)}});var p=L(f);D(d);var m=L(d,2),h=P(m);lg(h,{get checked(){return i().autoinvoke},set checked(e){i(i().autoinvoke=e,!0)}});var g=L(h);D(m),D(u),D(r),R((e,t)=>{K(r,1,G(Jh)),U(p,` ${e??``}`),U(g,` ${t??``}`)},[()=>a.t(`label-skill-enabled`),()=>a.t(`label-skill-autoinvoke`)]),Jr(`submit`,r,e=>{e.preventDefault(),s()}),H(e,r)},$$slots:{footer:!0,default:!0}})}A()}var fT=B(`<div><!> <p class="text-sm"> </p></div>`),pT=B(`<p class="text-sm"> </p>`),mT=B(`<div><div><div><h3><span class="truncate"> </span></h3> <!> <!></div> <!></div> <!> <div><span> </span></div></div>`),hT=B(`<div></div>`),gT=B(`<div><!></div>`);function _T(e,t){k(t,!0);let n=X(t,`skills`,19,()=>[]),r=X(t,`filtered`,19,n),i=X(t,`loading`,3,!1),a=Ch();var o=gT(),s=P(o),c=e=>{YC(e,{children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>a.t(`loading-init`)]),H(e,n)},$$slots:{default:!0}})},l=e=>{var t=fT(),n=P(t);fS(n,{class:`size-8`,"aria-hidden":`true`});var r=I(L(n,2),!0);D(t),R((e,n)=>{K(t,1,e),U(r,n)},[()=>G($(`flex flex-col items-center py-10 text-muted-foreground`,Hh)),()=>a.t(`skill-empty`)]),H(e,t)},u=e=>{YC(e,{children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>a.t(`skill-empty`)]),H(e,n)},$$slots:{default:!0}})},d=e=>{var n=hT();wi(n,21,r,e=>e.id,(e,n)=>{var r=mT(),i=P(r),o=P(i),s=P(o),c=I(P(s),!0);D(s);var l=L(s,2),u=e=>{Mx(e,{variant:`secondary`,class:`shrink-0`,children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>a.t(`skill-disabled`)]),H(e,n)},$$slots:{default:!0}})};W(l,e=>{z(n).enabled||e(u)});var d=L(l,2),f=e=>{Mx(e,{variant:`outline`,class:`shrink-0 text-[10px]`,children:(e,t)=>{O(),H(e,oi(`auto`))},$$slots:{default:!0}})};W(d,e=>{z(n).autoinvoke&&e(f)}),D(o);var p=L(o,2);{let e=j(()=>t.onEdit?e=>{t.onEdit(z(n))}:void 0),r=j(()=>t.onDelete?e=>t.onDelete(e):void 0);DC(p,{get id(){return z(n).id},showPin:!1,get onEdit(){return z(e)},get onDelete(){return z(r)}})}D(i);var m=L(i,2),h=e=>{var t=pT(),r=I(t,!0);R(()=>U(r,z(n).description)),H(e,t)};W(m,e=>{z(n).description&&e(h)});var g=L(m,2),_=I(P(g),!0);D(g),D(r),R((e,t,a,l,u,d)=>{K(r,1,e),K(i,1,t),K(o,1,a),K(s,1,l),U(c,z(n).name),K(g,1,u),U(_,d)},[()=>G($(Qh,$h,Kh)),()=>G($(`flex items-center`,Hh)),()=>G($(`flex min-w-0 flex-1 items-center`,Hh)),()=>G($(MC,`min-w-0`)),()=>G($(`flex items-center text-xs text-muted-foreground`,Vh)),()=>bg(z(n).updatedAt)]),H(e,r)}),D(n),R(()=>K(n,1,G(Kh))),H(e,n)};W(s,e=>{i()&&n().length===0?e(c):n().length===0?e(l,1):r().length===0?e(u,2):e(d,-1)}),D(o),R(e=>K(o,1,e),[()=>G($(qh,`min-h-32`))]),H(e,o),A()}var vT={name:`folder-open`,size:24,node:[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`}]]};vT.node;var yT=new Set([`$$slots`,`$$events`,`$$legacy`]);function bT(e,t){let n=J(t,yT);Pa(e,Y(()=>n,{get icon(){return vT}}))}var xT=B(`<div><!> <p class="text-sm text-center max-w-md"> </p></div>`),ST=B(`<span class="text-xs text-muted-foreground"> </span>`),CT=B(`<!> `,1),wT=B(`<div><!> <p class="text-sm"> </p></div>`),TT=B(`<div><div><div><h3><span class="truncate"> </span></h3> <!></div> <!></div> <p class="truncate font-mono text-xs text-muted-foreground"> </p> <div><span> </span></div></div>`),ET=B(`<div></div>`),DT=B(`<div><div><div><div><!> <h2> </h2></div> <p class="truncate font-mono text-xs text-muted-foreground"> </p> <div><!> <!> <!></div></div> <!></div></div> <!>`,1),OT=B(`<div><!></div>`);function kT(e,t){k(t,!0);let n=X(t,`status`,3,null),r=X(t,`loading`,3,!1),i=X(t,`reindexing`,3,!1),a=X(t,`error`,3,null),o=X(t,`isSearching`,3,!1),s=Ch(),c=j(()=>n()?.files??[]),l=j(()=>t.filtered??z(c));function u(e){return z(c).find(t=>t.id===e)??z(l).find(t=>t.id===e)}var d=OT(),f=P(d),p=e=>{YC(e,{children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>s.t(`loading-init`)]),H(e,n)},$$slots:{default:!0}})},m=e=>{YC(e,{children:(e,t)=>{O();var n=oi();R(()=>U(n,a())),H(e,n)},$$slots:{default:!0}})},h=e=>{var t=xT(),n=P(t);eS(n,{class:`size-8`,"aria-hidden":`true`});var r=I(L(n,2),!0);D(t),R((e,n)=>{K(t,1,e),U(r,n)},[()=>G($(`flex flex-col items-center py-10 text-muted-foreground`,Hh)),()=>s.t(`markdown-disabled`)]),H(e,t)},g=e=>{var r=DT(),a=F(r),d=P(a),f=P(d),p=P(f),m=P(p);bT(m,{get class(){return zh},"aria-hidden":`true`});var h=L(m,2),g=I(h,!0);D(p);var _=L(p,2),v=I(_,!0),y=L(_,2),b=P(y);Mx(b,{variant:`secondary`,children:(e,t)=>{O();var r=oi();R(e=>U(r,e),[()=>s.t(`markdown-file-count`,{count:n().fileCount})]),H(e,r)},$$slots:{default:!0}});var x=L(b,2);{let e=j(()=>n().watcherActive?`default`:`outline`);Mx(x,{get variant(){return z(e)},children:(e,t)=>{O();var r=oi();R(e=>U(r,e),[()=>n().watcherActive?s.t(`markdown-watcher-on`):s.t(`markdown-watcher-off`)]),H(e,r)},$$slots:{default:!0}})}var S=L(x,2),C=e=>{var t=ST(),r=I(t,!0);R(e=>U(r,e),[()=>s.t(`markdown-last-sync`,{date:bg(new Date(n().lastReconcileAt).toISOString())})]),H(e,t)};W(S,e=>{n().lastReconcileAt&&e(C)}),D(y),D(f),oh(L(f,2),{type:`button`,variant:`outline`,get disabled(){return i()},onclick:()=>t.onReindex?.(),children:(e,t)=>{var n=CT(),r=F(n),a=e=>{{let t=j(()=>$(zh,`animate-spin`));La(e,{get class(){return z(t)},"aria-hidden":`true`})}},o=e=>{Qa(e,{get class(){return zh},"aria-hidden":`true`})};W(r,e=>{i()?e(a):e(o,-1)});var c=L(r);R(e=>U(c,` ${e??``}`),[()=>s.t(`markdown-reindex`)]),H(e,n)},$$slots:{default:!0}}),D(d),D(a);var w=L(a,2),ee=e=>{var t=wT(),n=P(t);eS(n,{class:`size-8`,"aria-hidden":`true`});var r=I(L(n,2),!0);D(t),R((e,n)=>{K(t,1,e),U(r,n)},[()=>G($(`flex flex-col items-center py-10 text-muted-foreground`,Hh)),()=>s.t(`markdown-empty`)]),H(e,t)},te=e=>{YC(e,{children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>o()?s.t(`markdown-search-empty`):s.t(`markdown-empty`)]),H(e,n)},$$slots:{default:!0}})},ne=e=>{var n=ET();wi(n,21,()=>z(l),e=>e.relPath,(e,n)=>{var r=TT(),i=P(r),a=P(i),o=P(a),s=I(P(o),!0);D(o);var c=L(o,2),l=e=>{Mx(e,{variant:`outline`,class:`shrink-0 text-[10px]`,children:(e,t)=>{O();var r=oi();R(()=>U(r,z(n).source)),H(e,r)},$$slots:{default:!0}})};W(c,e=>{z(n).source&&e(l)}),D(a);var d=L(a,2);{let e=j(()=>t.onEdit?e=>{let r=u(e)??z(n);t.onEdit(r)}:void 0),r=j(()=>t.onDelete?e=>t.onDelete(e):void 0);DC(d,{get id(){return z(n).id},showPin:!1,get onEdit(){return z(e)},get onDelete(){return z(r)}})}D(i);var f=L(i,2),p=I(f,!0),m=L(f,2),h=I(P(m),!0);D(m),D(r),R((e,t,c,l,u,d)=>{K(r,1,e),K(i,1,t),K(a,1,c),K(o,1,l),U(s,z(n).title||z(n).relPath),U(p,z(n).relPath),K(m,1,u),U(h,d)},[()=>G($(Qh,$h,Kh)),()=>G($(`flex items-center`,Hh)),()=>G($(`flex min-w-0 flex-1 items-center`,Hh)),()=>G($(MC,`min-w-0`)),()=>G($(`flex items-center text-xs text-muted-foreground`,Vh)),()=>bg(new Date(z(n).mtimeMs).toISOString())]),H(e,r)}),D(n),R(()=>K(n,1,G(Kh))),H(e,n)};W(w,e=>{z(c).length===0?e(ee):z(l).length===0?e(te,1):e(ne,-1)}),R((e,t,r,i,o,s)=>{K(a,1,e),K(d,1,t),K(f,1,r),K(p,1,i),K(h,1,G(MC)),U(g,o),q(_,`title`,n().path??``),U(v,n().path),K(y,1,s)},[()=>G($(Qh,$h,Kh)),()=>G($(`flex flex-wrap items-start justify-between`,Hh)),()=>G($(Kh,`min-w-0 flex-1`)),()=>G($(`flex items-center`,Vh)),()=>s.t(`markdown-vault-path`),()=>G($(`flex flex-wrap items-center`,Vh))]),H(e,r)};W(f,e=>{r()&&!n()?e(p):a()&&!n()?.enabled?e(m,1):n()?.enabled?e(g,-1):e(h,2)}),D(d),R(e=>K(d,1,e),[()=>G($(qh,`min-h-32`))]),H(e,d),A()}var AT=nh({base:`grid gap-0.5 rounded-xl border px-4 py-3 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 group/alert relative w-full`,variants:{variant:{default:`bg-card text-card-foreground`,destructive:`text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}}),jT=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`variant`,`children`]),MT=B(`<div><!></div>`);function NT(e,t){k(t,!0);let n=X(t,`variant`,3,`default`),r=J(t,jT);var i=MT();la(i,e=>({"data-slot":`alert`,role:`alert`,class:e,...r}),[()=>$(AT({variant:n()}),t.class)]),ji(P(i),()=>t.children??f),D(i),H(e,i),A()}var PT=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),FT=B(`<div><!></div>`);function IT(e,t){k(t,!0);let n=J(t,PT);var r=FT();la(r,e=>({"data-slot":`alert-description`,class:e,...n}),[()=>$(`text-muted-foreground text-sm [&_p]:leading-relaxed col-start-2`,t.class)]),ji(P(r),()=>t.children??f),D(r),H(e,r),A()}var LT=B(`<!> `,1),RT=B(`<p> </p>`),zT=B(`<p> </p> <!> <!>`,1),BT=B(`<!> <!>`,1),VT=B(`<p class="break-words text-xs text-warning"> </p>`),HT=B(`<p class="text-sm text-warning"> </p> <!>`,1),UT=B(`<dl class="grid grid-cols-[1fr_auto] gap-x-3 gap-y-1 text-xs text-muted-foreground"><dt> </dt> <dd class="tabular-nums"> </dd> <dt> </dt> <dd class="tabular-nums"> </dd> <dt> </dt> <dd class="tabular-nums"> </dd></dl>`),WT=B(`<p class="text-xs text-muted-foreground"> </p>`),GT=B(`<p class="text-xl font-semibold text-foreground-bright"> </p> <p class="text-xs text-muted-foreground"> </p> <!> <!>`,1),KT=B(`<p class="text-sm text-muted-foreground"> </p>`),qT=B(`<th scope="col" class="svelte-10rreie"> </th>`),JT=B(`<td class="svelte-10rreie"><div class="flex min-w-24 items-center gap-3"><span class="min-w-7 text-end"> </span> <span class="h-1.5 w-12 shrink-0 overflow-hidden rounded-full bg-muted" aria-hidden="true"><span class="block h-full rounded-full"></span></span></div></td>`),YT=B(`<li class="break-words"><bdi> </bdi> </li>`),XT=B(`<details class="min-w-24 text-destructive"><summary class="cursor-pointer rounded focus-ring"> </summary> <ul class="mt-2 space-y-1 text-xs"></ul></details>`),ZT=B(`<span class="inline-flex items-center gap-1.5 whitespace-nowrap text-muted-foreground"><!> </span>`),QT=B(`<tr class="svelte-10rreie"><th scope="row" class="whitespace-nowrap font-normal svelte-10rreie"><time> </time></th><!><td class="svelte-10rreie"><!></td></tr>`),$T=B(`<div><table class="w-full text-sm tabular-nums"><thead class="svelte-10rreie"><tr><th scope="col" class="svelte-10rreie"> </th><!><th scope="col" class="svelte-10rreie"> </th></tr></thead><tbody class="svelte-10rreie"></tbody></table></div>`),eE=B(`<p class="mt-2 text-xs text-destructive"> </p>`),tE=B(`<p class="mt-1 text-xs font-medium text-warning"> </p>`),nE=B(`<tr class="svelte-10rreie"><td class="svelte-10rreie"><p> </p> <bdi class="font-mono text-xs text-muted-foreground"> </bdi></td><td class="min-w-40 max-w-64 break-words svelte-10rreie"><bdi class="text-xs"> </bdi> <p> </p> <!></td><td class="svelte-10rreie"> </td><td class="svelte-10rreie"><span> </span></td><td class="svelte-10rreie"><p class="whitespace-nowrap"> </p> <!></td><td class="min-w-44 text-xs text-muted-foreground svelte-10rreie"><p> </p> <p class="mt-1"> </p></td><td> </td></tr>`),rE=B(`<div><table class="w-full text-sm tabular-nums"><thead class="svelte-10rreie"><tr><th scope="col" class="svelte-10rreie"> </th><th scope="col" class="svelte-10rreie"> </th><th scope="col" class="svelte-10rreie"> </th><th scope="col" class="svelte-10rreie"> </th><th scope="col" class="svelte-10rreie"> </th><th scope="col" class="svelte-10rreie"> </th><th scope="col" class="svelte-10rreie"> </th></tr></thead><tbody class="svelte-10rreie"></tbody></table></div>`),iE=B(`<section class="grid gap-3 sm:grid-cols-2 xl:grid-cols-4"><div><h2 class="text-sm text-muted-foreground"> </h2> <p class="text-3xl font-semibold tabular-nums text-foreground-bright"> </p> <p class="text-xs text-muted-foreground"> </p></div> <div><h2 class="text-sm text-muted-foreground"> </h2> <p class="text-3xl font-semibold tabular-nums text-foreground-bright"> </p> <p class="text-xs text-muted-foreground"> </p></div> <div><h2 class="text-sm text-muted-foreground"> </h2> <!></div> <div><h2 class="text-sm text-muted-foreground"> </h2> <p class="text-lg font-medium text-foreground-bright"><time> </time></p> <p class="text-xs text-muted-foreground"> </p></div></section> <section aria-labelledby="stats-daily-heading"><h2 id="stats-daily-heading" class="text-lg font-semibold text-foreground-bright"> </h2> <!></section> <section aria-labelledby="stats-shards-heading"><h2 id="stats-shards-heading" class="text-lg font-semibold text-foreground-bright"> </h2> <!></section>`,1),aE=B(`<div><div><!></div> <!> <!></div>`);function oE(e,t){k(t,!0);let n=X(t,`loading`,3,!1),r=X(t,`error`,3,null),i=Ch(),a=[{field:`captures`,label:`stats-captures`,color:`var(--chart-1)`},{field:`captureSkipped`,label:`stats-skipped`,color:`var(--chart-2)`},{field:`profileInjections`,label:`stats-profile-injections`,color:`var(--chart-3)`},{field:`compactionInjections`,label:`stats-compaction-injections`,color:`var(--chart-4)`}],o=j(()=>t.data?.daily??[]),s=j(()=>[...t.data?.shards??[]].sort((e,t)=>e.scope.localeCompare(t.scope)||t.memoryCount-e.memoryCount||e.shardIndex-t.shardIndex)),c=j(()=>Math.max(1,...z(o).flatMap(e=>a.map(({field:t})=>e[t]))));function l(e){return Object.entries(e.errors??{}).filter(([,e])=>e>0).sort(([e],[t])=>e.localeCompare(t))}function u(e){return e?bg(e):`—`}var d=aE(),f=P(d);oh(P(f),{type:`button`,variant:`outline`,get disabled(){return n()},onclick:()=>t.onRefresh?.(),children:(e,t)=>{var r=LT(),a=F(r);{let e=j(()=>$(zh,n()&&`animate-spin motion-reduce:animate-none`));Qa(a,{get class(){return z(e)},"aria-hidden":`true`})}var o=L(a);R(e=>U(o,` ${e??``}`),[()=>i.t(`btn-refresh`)]),H(e,r)},$$slots:{default:!0}}),D(f);var p=L(f,2),m=e=>{NT(e,{variant:`destructive`,children:(e,n)=>{var a=BT(),o=F(a);io(o,{"aria-hidden":`true`}),IT(L(o,2),{class:`break-words`,children:(e,n)=>{var a=zT(),o=F(a),s=I(o,!0),c=L(o,2),l=e=>{var t=RT(),n=I(t,!0);R(()=>U(n,r())),H(e,t)};W(c,e=>{r()&&e(l)});var u=L(c,2),d=e=>{var t=RT(),n=I(t,!0);R(e=>U(n,e),[()=>i.t(`stats-stale`)]),H(e,t)};W(u,e=>{t.data&&e(d)}),R(e=>U(s,e),[()=>i.t(`stats-load-failed`)]),H(e,a)},$$slots:{default:!0}}),H(e,a)},$$slots:{default:!0}})};W(p,e=>{r()!==null&&e(m)});var h=L(p,2),_=e=>{YC(e,{children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>i.t(`stats-loading`)]),H(e,n)},$$slots:{default:!0}})},v=e=>{var n=iE(),r=F(n),d=P(r),f=P(d),p=I(f,!0),m=L(f,2),h=I(m,!0),_=I(L(m,2));D(d);var v=L(d,2),y=P(v),b=I(y,!0),x=L(y,2),S=I(x,!0),C=I(L(x,2),!0);D(v);var w=L(v,2),ee=P(w),te=I(ee,!0),ne=L(ee,2),re=e=>{var n=HT(),r=F(n),a=I(r,!0),o=L(r,2),s=e=>{var n=VT(),r=I(n,!0);R(()=>U(r,t.data.profile.error)),H(e,n)};W(o,e=>{t.data.profile?.error&&e(s)}),R(e=>U(a,e),[()=>i.t(`stats-unavailable`)]),H(e,n)},ie=e=>{var n=GT(),r=F(n),a=I(r),o=L(r,2),s=I(o),c=L(o,2),l=e=>{var n=UT(),r=P(n),a=I(r,!0),o=L(r,2),s=I(o,!0),c=L(o,2),l=I(c,!0),u=L(c,2),d=I(u,!0),f=L(u,2),p=I(f,!0),m=I(L(f,2),!0);D(n),R((e,n,r)=>{U(a,e),U(s,t.data.profile.counts.preferences),U(l,n),U(d,t.data.profile.counts.patterns),U(p,r),U(m,t.data.profile.counts.workflows)},[()=>i.t(`profile-preferences`),()=>i.t(`profile-patterns`),()=>i.t(`profile-workflows`)]),H(e,n)};W(c,e=>{t.data.profile.counts&&e(l)});var d=L(c,2),f=e=>{var n=WT(),r=I(n);R(e=>U(r,`${e??``}: ${t.data.profile.totalPromptsAnalyzed??``}`),[()=>i.t(`profile-prompts`)]),H(e,n)};W(d,e=>{t.data.profile.totalPromptsAnalyzed!==void 0&&e(f)}),R((e,n,r)=>{U(a,`${e??``}
109
- ${t.data.profile.version??`—`??``}`),U(s,`${n??``}: ${r??``}`)},[()=>i.t(`profile-version`),()=>i.t(`stats-last-analyzed`),()=>u(t.data.profile.lastAnalyzedAt)]),H(e,n)},ae=e=>{var t=KT(),n=I(t,!0);R(e=>U(n,e),[()=>i.t(`stats-no-profile`)]),H(e,t)};W(ne,e=>{t.data.profile?.error||!t.data.profile?e(re):t.data.profile.exists?e(ie,1):e(ae,-1)}),D(w);var oe=L(w,2),se=P(oe),ce=I(se,!0),le=L(se,2),ue=P(le),T=I(ue,!0);D(le);var de=I(L(le,2),!0);D(oe),D(r);var fe=L(r,2),pe=P(fe),me=I(pe,!0),he=L(pe,2),ge=e=>{NT(e,{variant:`destructive`,children:(e,n)=>{var r=BT(),i=F(r);io(i,{"aria-hidden":`true`}),IT(L(i,2),{class:`break-words`,children:(e,n)=>{O();var r=oi();R(()=>U(r,t.data.dailyError)),H(e,r)},$$slots:{default:!0}}),H(e,r)},$$slots:{default:!0}})},_e=e=>{YC(e,{children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>i.t(`stats-unavailable`)]),H(e,n)},$$slots:{default:!0}})},ve=e=>{YC(e,{children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>i.t(`stats-no-activity`)]),H(e,n)},$$slots:{default:!0}})},ye=e=>{var t=$T(),n=P(t),r=P(n),s=P(r),u=P(s),d=I(u,!0),f=L(u);wi(f,17,()=>a,bi,(e,t)=>{var n=qT(),r=I(n,!0);R(e=>U(r,e),[()=>i.t(z(t).label)]),H(e,n)});var p=I(L(f),!0);D(s),D(r);var m=L(r);wi(m,21,()=>z(o),e=>e.date,(e,t)=>{let n=j(()=>l(z(t)));var r=QT(),o=P(r),s=P(o),u=I(s,!0);D(o);var d=L(o);wi(d,17,()=>a,bi,(e,n)=>{var r=JT(),i=P(r),a=P(i),o=I(a,!0),s=L(a,2),l=P(s);let u;D(s),D(i),D(r),R(()=>{U(o,z(t)[z(n).field]),u=Ui(l,``,u,{width:`${z(t)[z(n).field]/z(c)*100}%`,background:z(n).color})}),H(e,r)});var f=L(d),p=P(f),m=e=>{var t=XT(),r=P(t),i=I(r,!0),a=L(r,2);wi(a,21,()=>z(n),bi,(e,t)=>{var n=j(()=>g(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1];var a=YT(),o=P(a),s=I(o,!0),c=L(o);D(a),R(()=>{U(s,r()),U(c,` ×${i()??``}`)}),H(e,a)}),D(a),D(t),R(e=>U(i,e),[()=>z(n).reduce((e,[,t])=>e+t,0)]),H(e,t)},h=e=>{var t=ZT(),n=P(t);{let e=j(()=>$(zh,`text-primary`));Oh(n,{get class(){return z(e)},"aria-hidden":`true`})}var r=L(n,1,!0);D(t),R(e=>U(r,e),[()=>i.t(`stats-no-errors`)]),H(e,t)};W(p,e=>{z(n).length?e(m):e(h,-1)}),D(f),D(r),R(()=>{q(s,`datetime`,z(t).date),U(u,z(t).date)}),H(e,r)}),D(m),D(n),D(t),R((e,n,r)=>{K(t,1,e),U(d,n),U(p,r)},[()=>G($(Qh,`overflow-x-auto focus-ring`)),()=>i.t(`stats-date`),()=>i.t(`stats-errors`)]),H(e,t)};W(he,e=>{t.data.dailyError?e(ge):t.data.daily?z(o).length===0?e(ve,2):e(ye,-1):e(_e,1)}),D(fe);var be=L(fe,2),xe=P(be),Se=I(xe,!0),Ce=L(xe,2),we=e=>{var t=rE(),n=P(t),r=P(n),a=P(r),o=P(a),c=I(o,!0),l=L(o),d=I(l,!0),f=L(l),p=I(f,!0),m=L(f),h=I(m,!0),g=L(m),_=I(g,!0),v=L(g),y=I(v,!0),b=I(L(v),!0);D(a),D(r);var x=L(r);wi(x,21,()=>z(s),bi,(e,t)=>{var n=nE(),r=P(n),a=P(r),o=I(a,!0),s=L(a,2),c=I(s,!0);D(r);var l=L(r),d=P(l),f=I(d,!0),p=L(d,2),m=I(p,!0),h=L(p,2),g=e=>{var n=eE(),r=I(n,!0);R(()=>U(r,z(t).error)),H(e,n)};W(h,e=>{z(t).error&&e(g)}),D(l);var _=L(l),v=I(_,!0),y=L(_),b=P(y),x=I(b,!0);D(y);var S=L(y),C=P(S),w=I(C),ee=L(C,2),te=e=>{var t=tE(),n=I(t,!0);R(e=>U(n,e),[()=>i.t(`stats-count-mismatch`)]),H(e,t)};W(ee,e=>{z(t).memoryCount!==z(t).registeredVectorCount&&e(te)}),D(S);var ne=L(S),re=P(ne),ie=I(re),ae=I(L(re,2));D(ne);var oe=L(ne),se=I(oe,!0);D(n),R((e,n,r,i,a,l,u,d,h)=>{U(o,e),q(s,`title`,z(t).scopeHash),U(c,n),U(f,z(t).fileName),K(p,1,r),U(m,i),U(v,z(t).shardIndex),K(b,1,G(eg)),U(x,a),U(w,`${z(t).memoryCount??``} / ${z(t).registeredVectorCount??``}`),U(ie,`${l??``}: ${u??``}`),U(ae,`${d??``}: ${h??``}`),K(oe,1,G(z(t).duplicateTagCount>0?`font-medium text-warning`:`text-muted-foreground`),`svelte-10rreie`),U(se,z(t).duplicateTagCount)},[()=>i.t(z(t).scope===`user`?`stats-scope-user`:`stats-scope-project`),()=>z(t).scopeHash.slice(0,8)||`—`,()=>G($(`mt-1 text-xs`,z(t).fileExists?`text-muted-foreground`:`font-medium text-warning`)),()=>i.t(z(t).fileExists?`stats-file-present`:`stats-file-missing`),()=>i.t(z(t).isActive?`stats-active`:`stats-inactive`),()=>i.t(`stats-oldest`),()=>u(z(t).oldestCreatedAt),()=>i.t(`stats-newest`),()=>u(z(t).newestCreatedAt)]),H(e,n)}),D(x),D(n),D(t),R((e,n,r,i,a,o,s,l)=>{K(t,1,e),U(c,n),U(d,r),U(p,i),U(h,a),U(_,o),U(y,s),U(b,l)},[()=>G($(Qh,`overflow-x-auto focus-ring`)),()=>i.t(`stats-scope`),()=>i.t(`stats-file`),()=>i.t(`stats-index`),()=>i.t(`stats-status`),()=>i.t(`stats-memory-vectors`),()=>i.t(`stats-memory-dates`),()=>i.t(`stats-duplicate-tags`)]),H(e,t)},Te=e=>{YC(e,{children:(e,n)=>{O();var r=oi();R(e=>U(r,e),[()=>i.t(t.data.shards?`stats-no-shards`:`stats-unavailable`)]),H(e,r)},$$slots:{default:!0}})};W(Ce,e=>{z(s).length?e(we):e(Te,-1)}),D(be),R((e,n,i,a,o,s,c,l,u,f,m,g,y,x,ee,ne,re)=>{q(r,`aria-label`,e),K(d,1,n),U(p,i),U(h,t.data.total),U(_,`${a??``}: ${t.data.byScope?.user??`—`??``} · ${o??``}: ${t.data.byScope?.project??`—`??``}`),K(v,1,s),U(b,c),U(S,l),U(C,u),K(w,1,f),U(te,m),K(oe,1,g),U(ce,y),q(ue,`datetime`,t.data.generatedAt),U(T,x),U(de,ee),K(fe,1,G(qh)),U(me,ne),K(be,1,G(qh)),U(Se,re)},[()=>i.t(`stats-overview`),()=>G($(Qh,$h,qh)),()=>i.t(`stats-total-memories`),()=>i.t(`stats-scope-user`),()=>i.t(`stats-scope-project`),()=>G($(Qh,$h,qh)),()=>i.t(`stats-active-shards`),()=>t.data.shards?z(s).filter(e=>e.isActive).length:`—`,()=>t.data.shards?i.t(`text-total`,{count:z(s).length}):i.t(`stats-unavailable`),()=>G($(Qh,$h,qh)),()=>i.t(`tab-profile`),()=>G($(Qh,$h,qh)),()=>i.t(`stats-generated`),()=>u(t.data.generatedAt),()=>i.t(`stats-snapshot-note`),()=>i.t(`stats-daily`),()=>i.t(`stats-shards`)]),H(e,n)};W(h,e=>{n()&&!t.data?e(_):t.data&&e(v,1)}),D(d),R(e=>{K(d,1,G(Xh)),q(d,`aria-busy`,n()),K(f,1,e)},[()=>G($(`flex flex-wrap items-center justify-end`,Hh))]),H(e,d),A()}var sE=B(`<div><p class="text-sm text-muted-foreground"> </p> <div class="h-2 rounded-full bg-muted overflow-hidden"><div class="h-full bg-primary transition-all duration-200"></div></div> <p class="text-xs text-muted-foreground"> </p></div>`);function cE(e,t){k(t,!0);let n=X(t,`open`,15,!1),r=X(t,`count`,3,0),i=Ch(),a=M(!1),o=M(``),s=M(0);Pn(()=>{n()&&!z(a)&&(N(o,i.t(`migration-found-tags`,{count:r()}),!0),N(s,0))});function c(e){(!z(a)||e)&&(n(e),t.onOpenChange?.(e))}async function l(){N(a,!0),N(o,i.t(`status-migration-init`),!0),N(s,0);let e=!0,n=0,r=0,l=0,u=0,d=1e3;for(;e&&n<d;){n++;let t=await Vo(`/api/migration/tags/run-batch`,{method:`POST`,body:JSON.stringify({batchSize:3})});if(!t.success||!t.data){let e=i.t(`toast-migration-failed`)+(t.error?`: ${t.error}`:``);N(o,e),Do.error(e),N(a,!1);return}u=t.data.processed,e=t.data.hasMore,l=t.data.total,r=t.data.errors??0,N(s,l>0?Math.round(u/l*100):0,!0),N(o,i.t(`status-migration-progress`,{current:u,total:l}),!0),e&&await new Promise(e=>setTimeout(e,100))}if(n>=d)N(o,i.t(`migration-stopped`),!0),N(a,!1);else if(r>0){let e=l>0?Math.round(u/l*100):0;N(s,e,!0);let t=i.t(`toast-migration-tag-failures`,{count:r});N(o,t,!0),Do.error(t),N(a,!1)}else N(s,100),N(o,i.t(`toast-migration-success`),!0),Do.success(i.t(`toast-migration-success`)),setTimeout(()=>{N(a,!1),c(!1),t.onComplete?.()},2e3)}{let t=e=>{var t=V(),n=F(t),r=e=>{{let t=j(()=>i.t(`btn-start-migration`));Th(e,{onCancel:()=>c(!1),get primaryLabel(){return z(t)},onPrimary:()=>void l()})}};W(n,e=>{z(a)||e(r)}),H(e,t)},r=j(()=>i.t(`modal-migration-title`)),u=j(()=>!z(a));yh(e,{get title(){return z(r)},class:`sm:max-w-md`,get showCloseButton(){return z(u)},onOpenChange:c,get open(){return n()},set open(e){n(e)},footer:t,children:(e,t)=>{var n=sE(),r=P(n),a=I(r,!0),c=L(r,2),l=I(c),u=I(L(c,2),!0);D(n),R(e=>{K(n,1,G(qh)),U(a,z(o)),Ui(l,`width: ${z(s)}%`),U(u,e)},[()=>i.t(`migration-note`)]),H(e,n)},$$slots:{footer:!0,default:!0}})}A()}var lE=B(`<p class="text-muted-foreground text-sm"> </p>`),uE=B(`<span> </span>`),dE=B(`<li class="rounded border p-3"><p class="line-clamp-3 text-sm whitespace-pre-wrap"> </p> <div><span> </span> <!> <!> <!> <!></div></li>`),fE=B(`<ul></ul>`),pE=B(`<div class="fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4" role="dialog" aria-modal="true" aria-labelledby="trash-dialog-title"><div><div><h2 id="trash-dialog-title" class="text-lg font-semibold"> </h2> <!></div> <div class="min-h-0 flex-1 overflow-y-auto px-4 py-3"><!></div></div></div>`);function mE(e,t){k(t,!0);let n=X(t,`open`,15,!1),r=X(t,`items`,19,()=>[]),i=X(t,`loading`,3,!1),a=Ch();function o(){n(!1),t.onClose?.()}var s=V(),c=F(s),l=e=>{var n=pE(),s=P(n),c=P(s),l=P(c),u=I(l,!0);oh(L(l,2),{type:`button`,variant:`outline`,onclick:o,children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>a.t(`btn-cancel`)]),H(e,n)},$$slots:{default:!0}}),D(c);var d=L(c,2),f=P(d),p=e=>{var t=lE(),n=I(t,!0);R(e=>U(n,e),[()=>a.t(`loading-trash`)]),H(e,t)},m=e=>{var t=lE(),n=I(t,!0);R(e=>U(n,e),[()=>a.t(`empty-trash`)]),H(e,t)},h=e=>{var n=fE();wi(n,21,r,e=>e.id,(e,n)=>{var r=dE(),i=P(r),o=I(i,!0),s=L(i,2),c=P(s),l=I(c,!0),u=L(c,2),d=e=>{var t=uE(),r=I(t,!0);R(()=>U(r,z(n).projectName)),H(e,t)};W(u,e=>{z(n).projectName&&e(d)});var f=L(u,2),p=e=>{var t=uE(),r=I(t,!0);R(e=>U(r,e),[()=>a.t(`trash-merged-into`,{id:z(n).mergedInto})]),H(e,t)};W(f,e=>{z(n).mergedInto&&e(p)});var m=L(f,2),h=e=>{var t=uE(),r=I(t,!0);R(e=>U(r,e),[()=>a.t(`trash-superseded-by`,{id:z(n).supersededBy})]),H(e,t)};W(m,e=>{z(n).supersededBy&&e(h)}),oh(L(m,2),{type:`button`,size:`sm`,variant:`outline`,onclick:()=>t.onRestore(z(n).id),children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>a.t(`btn-restore`)]),H(e,n)},$$slots:{default:!0}}),D(s),D(r),R((e,t)=>{U(o,z(n).content),K(s,1,e),U(l,t)},[()=>G($(`text-muted-foreground mt-2 flex flex-wrap items-center text-xs`,Hh)),()=>new Date(z(n).deletedAt).toLocaleString()]),H(e,r)}),D(n),R(()=>K(n,1,G(qh))),H(e,n)};W(f,e=>{i()?e(p):r().length===0?e(m,1):e(h,-1)}),D(d),D(s),D(n),R((e,t,n)=>{K(s,1,e),K(c,1,t),U(u,n)},[()=>G($(`bg-background flex max-h-[80vh] w-full max-w-2xl flex-col overflow-hidden rounded-lg border shadow-lg`,qh)),()=>G($(`flex shrink-0 items-center justify-between border-b px-4 py-3`,Hh)),()=>a.t(`modal-trash-title`)]),H(e,n)};W(c,e=>{n()&&e(l)}),H(e,s),A()}var hE={name:`list-filter`,size:24,node:[[`path`,{d:`M2 5h20`}],[`path`,{d:`M6 12h12`}],[`path`,{d:`M9 19h6`}]]};hE.node;var gE=new Set([`$$slots`,`$$events`,`$$legacy`]);function _E(e,t){let n=J(t,gE);Pa(e,Y(()=>n,{get icon(){return hE}}))}var vE=B(`<span class="rounded-full bg-primary px-1.5 text-[10px] font-semibold text-primary-foreground"> </span>`),yE=B(`<!> <span> </span> <!> <!>`,1),bE=B(`<button type="button" role="menuitemcheckbox"><span aria-hidden="true"><!></span> <span class="min-w-0 flex-1 truncate font-normal"> </span></button>`),xE=B(`<p class="px-2 py-6 text-center text-sm text-muted-foreground">—</p>`),SE=B(`<div class="absolute inset-s-0 top-[calc(100%+0.35rem)] z-50 w-64 origin-top-left overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground shadow-lg outline-none" role="menu" tabindex="-1"><div class="p-2"><input/> <div class="bg-border -mx-2 my-1 h-px" aria-hidden="true"></div> <div class="relative h-64 overflow-y-auto scrollbar-thin"><button type="button" role="menuitemcheckbox"><span aria-hidden="true"><!></span> <span class="min-w-0 flex-1 truncate font-normal"> </span></button> <!></div> <div class="bg-border -mx-2 my-1 h-px" aria-hidden="true"></div> <!></div></div>`),CE=B(`<div class="relative shrink-0"><!> <!></div>`);function wE(e,t){k(t,!0);let n=X(t,`value`,19,()=>[]),r=X(t,`filterLabel`,3,`Filter`),i=X(t,`clearLabel`,3,`Clear selection`),a=X(t,`searchPlaceholder`,3,`Filter…`),o=M(!1),s=M(``),c=M(void 0),l=j(()=>new Set(n())),u=j(()=>z(l).size>0),d=j(()=>z(u)?`${r()} · ${z(l).size}`:r()),f=j(()=>z(s).trim().toLowerCase()),p=j(()=>t.tags.filter(e=>!z(f)||(e.displayName||e.tag).toLowerCase().includes(z(f))||e.tag.toLowerCase().includes(z(f))));function m(){t.onChange([])}function h(e){let n=new Set(z(l));n.has(e)?n.delete(e):n.add(e),t.onChange([...n])}Pn(()=>{if(!z(o)){N(s,``);return}let e=e=>{z(c)&&!z(c).contains(e.target)&&N(o,!1)},t=e=>{e.key===`Escape`&&N(o,!1)};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}});var g=CE(),_=P(g);{let e=j(()=>$(z(u)&&`border-primary/50 text-primary`));oh(_,{type:`button`,variant:`outline`,get class(){return z(e)},get"aria-expanded"(){return z(o)},"aria-haspopup":`dialog`,get"aria-label"(){return z(d)},get title(){return z(d)},onclick:()=>N(o,!z(o)),children:(e,t)=>{var n=yE(),i=F(n);_E(i,{get class(){return zh},"aria-hidden":`true`});var a=L(i,2),s=I(a,!0),c=L(a,2),d=e=>{var t=vE(),n=I(t,!0);R(()=>U(n,z(l).size)),H(e,t)};W(c,e=>{z(u)&&e(d)});var f=L(c,2);{let e=j(()=>$(zh,`transition-transform motion-reduce:transition-none`,z(o)&&`rotate-180`));so(f,{get class(){return z(e)},"aria-hidden":`true`})}R(()=>U(s,r())),H(e,n)},$$slots:{default:!0}})}var v=L(_,2),y=e=>{var n=SE(),o=P(n),c=P(o);sa(c);var d=L(c,4),f=P(d),g=P(f),_=P(g),v=e=>{Oh(e,{get class(){return Rh},"aria-hidden":`true`})};W(_,e=>{z(u)||e(v)}),D(g);var y=I(L(g,2),!0);D(f),wi(L(f,2),17,()=>z(p),e=>e.tag,(e,t)=>{let n=j(()=>z(l).has(z(t).tag));var r=bE(),i=P(r),a=P(i),o=e=>{Oh(e,{get class(){return Rh},"aria-hidden":`true`})};W(a,e=>{z(n)&&e(o)}),D(i);var s=I(L(i,2),!0);D(r),R((e,a)=>{q(r,`aria-checked`,z(n)),K(r,1,e),K(i,1,a),U(s,z(t).displayName||z(t).tag)},[()=>G($(`flex w-full cursor-pointer items-center px-2 py-2 text-left text-sm hover:bg-surface-hover focus-visible:bg-surface-hover focus-visible:outline-none`,Hh)),()=>G($(`inline-flex size-4 shrink-0 items-center justify-center rounded-lg border shadow-xs`,z(n)?`border-primary bg-primary text-primary-foreground`:`border-input bg-transparent`))]),Yr(`click`,r,()=>h(z(t).tag)),H(e,r)},e=>{H(e,xE())}),D(d);var b=L(d,4);{let e=j(()=>!z(u));oh(b,{type:`button`,variant:`outline`,class:`mt-2 w-full`,get disabled(){return z(e)},onclick:m,children:(e,t)=>{O();var n=oi();R(()=>U(n,i())),H(e,n)},$$slots:{default:!0}})}D(o),D(n),R((e,i,o)=>{q(n,`aria-label`,r()),K(c,1,e),q(c,`placeholder`,a()),q(c,`aria-label`,a()),q(f,`aria-checked`,!z(u)),K(f,1,i),K(g,1,o),U(y,t.allLabel)},[()=>G($(Zh,`mb-2`)),()=>G($(`flex w-full cursor-pointer items-center px-2 py-2 text-left text-sm hover:bg-surface-hover focus-visible:bg-surface-hover focus-visible:outline-none`,Hh)),()=>G($(`inline-flex size-4 shrink-0 items-center justify-center rounded-lg border shadow-xs`,z(u)?`border-input bg-transparent`:`border-primary bg-primary text-primary-foreground`))]),Yr(`pointerdown`,n,e=>e.stopPropagation()),ga(c,()=>z(s),e=>N(s,e)),Yr(`click`,f,m),H(e,n)};W(v,e=>{z(o)&&e(y)}),D(g),ba(g,e=>N(c,e),()=>z(c)),H(e,g),A()}Xr([`pointerdown`,`click`]);var TE={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]]};TE.node;var EE=new Set([`$$slots`,`$$events`,`$$legacy`]);function DE(e,t){let n=J(t,EE);Pa(e,Y(()=>n,{get icon(){return TE}}))}var OE=B(`<button type="button"><!></button>`),kE=B(`<div><input/> <!> <button type="button"><!></button></div>`);function AE(e,t){k(t,!0);let n=X(t,`value`,15,``),r=X(t,`class`,3,`max-w-xl`),i=X(t,`showClear`,3,!1),a=Ch();function o(e){t.onSearch?.();let n=e.currentTarget.closest(`form`);n&&n.requestSubmit()}var s=kE(),c=P(s);sa(c);var l=L(c,2),u=e=>{var n=OE();Au(P(n),{get class(){return Bh},"aria-hidden":`true`}),D(n),R((e,t)=>{K(n,1,e),q(n,`aria-label`,t)},[()=>G($(`absolute top-1/2 right-10 inline-flex -translate-y-1/2 items-center justify-center text-muted-foreground transition-[color,transform] active:scale-90 motion-reduce:transition-none motion-reduce:active:scale-100 focus-ring`,Fh,Nh)),()=>a.t(`btn-clear`)]),Yr(`click`,n,()=>t.onClear?.()),H(e,n)};W(l,e=>{i()&&e(u)});var d=L(l,2);DE(P(d),{get class(){return Bh},"aria-hidden":`true`}),D(d),D(s),R((e,n,r,i,a)=>{K(s,1,e),q(c,`id`,t.id),K(c,1,n),q(c,`placeholder`,t.placeholder),q(c,`aria-label`,t.placeholder),K(d,1,r),q(d,`aria-label`,i),q(d,`title`,a)},[()=>G($(`relative min-w-0 w-full`,r())),()=>G($(Zh,`placeholder:text-muted-foreground`,i()?`pr-18`:`pr-11`)),()=>G($(`absolute top-1/2 right-1 inline-flex -translate-y-1/2 items-center justify-center text-muted-foreground transition-[color,transform] active:scale-90 motion-reduce:transition-none motion-reduce:active:scale-100 focus-ring`,Fh,Nh)),()=>a.t(`label-search`),()=>a.t(`label-search`)]),Yr(`keydown`,c,function(...e){t.onkeydown?.apply(this,e)}),ga(c,n),Yr(`click`,d,o),H(e,s),A()}Xr([`keydown`,`click`]);var jE={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`}]],aliases:[`alert-circle`]};jE.node;var ME=new Set([`$$slots`,`$$events`,`$$legacy`]);function NE(e,t){let n=J(t,ME);Pa(e,Y(()=>n,{get icon(){return jE}}))}var PE={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`m16 9-5.5 5.5L8 12`}]],aliases:[`check-circle-2`]};PE.node;var FE=new Set([`$$slots`,`$$events`,`$$legacy`]);function IE(e,t){let n=J(t,FE);Pa(e,Y(()=>n,{get icon(){return PE}}))}var LE={name:`octagon-x`,size:24,node:[[`path`,{d:`m15 9-6 6`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`}],[`path`,{d:`m9 9 6 6`}]],aliases:[`x-octagon`]};LE.node;var RE=new Set([`$$slots`,`$$events`,`$$legacy`]);function zE(e,t){let n=J(t,RE);Pa(e,Y(()=>n,{get icon(){return LE}}))}var BE=B(`<div class="overflow-hidden rounded-xl border border-border bg-card shadow-[0_12px_40px_rgb(0_0_0/0.45)]"><div><span><!></span> <p class="min-w-0 flex-1 text-sm leading-snug font-medium text-foreground-bright"> </p> <button type="button" aria-label="Close" title="Close"><!></button></div> <div></div></div>`);function VE(e,t){k(t,!0);let n={success:{iconBg:`bg-primary/15`,iconColor:`text-primary`,bar:`bg-primary/80`},error:{iconBg:`bg-destructive/15`,iconColor:`text-destructive`,bar:`bg-destructive/80`},warning:{iconBg:`bg-warning/15`,iconColor:`text-warning`,bar:`bg-warning/80`},info:{iconBg:`bg-muted`,iconColor:`text-muted-foreground`,bar:`bg-muted-foreground/80`}},r=X(t,`dimmed`,3,!1),i=j(()=>n[t.item.variant]),a=j(()=>t.item.variant===`error`||t.item.variant===`warning`);Pn(()=>{let e=window.setTimeout(()=>t.onDismiss(t.item.id),xo);return()=>window.clearTimeout(e)});var o=BE(),s=P(o),c=P(s),l=P(c),u=e=>{IE(e,{get class(){return Bh},strokeWidth:2.25,"aria-hidden":`true`})},d=e=>{zE(e,{get class(){return Bh},strokeWidth:2.25,"aria-hidden":`true`})},f=e=>{NE(e,{get class(){return Bh},strokeWidth:2.25,"aria-hidden":`true`})},p=e=>{Pw(e,{get class(){return Bh},strokeWidth:2.25,"aria-hidden":`true`})};W(l,e=>{t.item.variant===`success`?e(u):t.item.variant===`error`?e(d,1):t.item.variant===`warning`?e(f,2):e(p,-1)}),D(c);var m=L(c,2),h=I(m,!0),g=L(m,2);Au(P(g),{get class(){return zh},"aria-hidden":`true`}),D(g),D(s);var _=L(s,2);D(o),R((e,n,i,l)=>{q(o,`role`,z(a)?`alert`:`status`),q(o,`aria-live`,z(a)?`assertive`:`polite`),K(s,1,e),K(c,1,n),U(h,t.item.text),q(g,`tabindex`,r()?-1:0),K(g,1,i),K(_,1,l)},[()=>G($(`flex items-center px-3.5 py-3 transition-opacity duration-200`,Uh,r()?`opacity-0`:`opacity-100`)),()=>G($(`flex size-8 shrink-0 items-center justify-center rounded-xl`,z(i).iconBg,z(i).iconColor)),()=>G($(`flex size-7 shrink-0 items-center justify-center rounded-xl text-muted-foreground transition focus-ring`,Nh)),()=>G($(`h-0.5 origin-left animate-[toast-progress_3200ms_linear_forwards]`,z(i).bar,r()?`opacity-0`:`opacity-100`))]),Yr(`click`,g,e=>{e.stopPropagation(),t.onDismiss(t.item.id)}),H(e,o),A()}Xr([`click`]);var HE=B(`<div class="w-full transition-[transform,opacity] duration-300 ease-out"><!></div>`),UE=B(`<div><!></div>`),WE=B(`<div role="region" aria-label="Notifications" aria-relevant="additions" class="pointer-events-none fixed right-4 bottom-[max(1rem,env(safe-area-inset-bottom))] left-4 z-50 sm:left-auto sm:w-88"><div role="group"></div></div>`);function GE(e,t){k(t,!0);let n=j(()=>t.toasts??wo.items),r=j(()=>t.onDismiss??Eo),i=M(!1),a=j(()=>[...z(n)].reverse()),o=j(()=>Math.min(Math.max(z(a).length-1,0),2));function s(){N(i,!0)}function c(e){let t=`relatedTarget`in e?e.relatedTarget:null;t instanceof Node&&e.currentTarget instanceof Node&&e.currentTarget.contains(t)||N(i,!1)}var l=V(),u=F(l),d=e=>{var t=WE(),n=P(t);wi(n,23,()=>z(a),e=>e.id,(e,t,n)=>{let o=j(()=>z(n)===0),s=j(()=>Math.min(z(n),2)),c=j(()=>!z(i)&&z(n)>2);var l=V(),u=F(l),d=e=>{var n=HE();VE(P(n),{get item(){return z(t)},get onDismiss(){return z(r)}}),D(n),H(e,n)},f=e=>{var i=UE(),l=P(i);{let e=j(()=>!z(o));VE(l,{get item(){return z(t)},get onDismiss(){return z(r)},get dimmed(){return z(e)}})}D(i),R(e=>{q(i,`aria-hidden`,!z(o)),K(i,1,e),Ui(i,`z-index: ${z(a).length-z(n)}; transform: translateY(-${z(s)*12}px) scale(${1-z(s)*.05})`)},[()=>G($(`absolute right-0 bottom-0 left-0 origin-bottom transition-[transform,opacity] duration-300 ease-out`,z(o)&&`animate-[toast-in_180ms_ease-out]`,z(c)&&`pointer-events-none opacity-0`))]),H(e,i)};W(u,e=>{z(i)?e(d):e(f,-1)}),H(e,l)}),D(n),D(t),R(e=>{K(n,1,e),Ui(n,z(i)?void 0:`height: calc(3.75rem + ${z(o)*12}px)`)},[()=>G($(`pointer-events-auto relative w-full transition-[height] duration-300 ease-out`,z(i)&&`flex flex-col-reverse gap-2`))]),Jr(`mouseenter`,n,s),Jr(`mouseleave`,n,c),Yr(`focusin`,n,s),Yr(`focusout`,n,c),H(e,t)};W(u,e=>{z(n).length>0&&e(d)}),H(e,l),A()}Xr([`focusin`,`focusout`]);var KE=dn({open:!1,title:``,detail:``,confirmLabel:``,cancelLabel:``,tone:`danger`}),qE=null;function JE(e){return qE?.(!1),KE.open=!0,KE.title=e.title,KE.detail=e.detail??``,KE.confirmLabel=e.confirmLabel,KE.cancelLabel=e.cancelLabel??``,KE.tone=e.tone??`danger`,new Promise(e=>{qE=e})}function YE(e){if(!KE.open&&!qE)return;KE.open=!1;let t=qE;qE=null,t?.(e)}var XE=B(`<p class="text-sm leading-snug text-muted-foreground whitespace-pre-line"> </p>`);function ZE(e,t){k(t,!0);let n=Ch();function r(e){e||YE(!1)}yh(e,{get open(){return KE.open},get title(){return KE.title},class:`sm:max-w-md`,showCloseButton:!0,onOpenChange:r,footer:e=>{{let t=j(()=>KE.cancelLabel||n.t(`btn-cancel`)),r=j(()=>KE.tone===`danger`?`destructive`:`default`);Th(e,{onCancel:()=>YE(!1),get cancelLabel(){return z(t)},get primaryLabel(){return KE.confirmLabel},get primaryVariant(){return z(r)},onPrimary:()=>YE(!0)})}},children:(e,t)=>{var n=V(),r=F(n),i=e=>{var t=XE(),n=I(t,!0);R(()=>U(n,KE.detail)),H(e,t)};W(r,e=>{KE.detail&&e(i)}),H(e,n)},$$slots:{footer:!0,default:!0}}),A()}function QE(e,t,n,r=!1){return e||r?t:n}function $E(){let e=M(dn(jS()));return Pn(()=>AS(()=>{N(e,jS(),!0)})),{get path(){return z(e)},get view(){return wS(z(e))}}}function eD(e,t){if(e.length===0||t.length===0)return[];let n=new Set(e),r=new Set;for(let e of t)n.has(e.id)&&e.linkedMemoryId&&r.add(e.linkedMemoryId),e.linkedPromptId&&n.has(e.linkedPromptId)&&r.add(e.id);return[...r]}async function tD(e,t,n=[]){let r=e.filter(e=>e.startsWith(`prompt_`)),i=e.filter(e=>!e.startsWith(`prompt_`)),a=[];if(r.length>0){let e=await t(`/api/prompts/bulk-delete`,{method:`POST`,body:JSON.stringify({ids:r,cascade:!0})});if(!e.success)return{success:!1,deletedIds:a,error:e.error};a.push(...r);let o=eD(r,n);a.push(...o);let s=new Set(o);i=i.filter(e=>!s.has(e))}if(i.length>0){let e=await t(`/api/memories/bulk-delete`,{method:`POST`,body:JSON.stringify({ids:i,cascade:!0})});if(!e.success)return{success:!1,deletedIds:a,error:e.error};a.push(...i)}return{success:!0,deletedIds:a}}function nD(){let e=M(dn([])),t=M(dn([])),n=M(dn(new Set)),r=M(dn([])),i=M(``),a=M(``),o=M(!1),s=M(1),c=M(1),l=M(0),u=M(0),d=M(!0),f=M(null),p=M(!1),m=M(!1),h=M(!1),g=M(``),_=M(!1),v=M(!1),y=M(0),b=M(!1),x=M(``),S=M(``),C=M(dn([])),w=M(``),ee=M(!1),te=M(``),ne=M(``),re=M(``),ie=M(dn([])),ae=M(!1),oe=M(!1),se=M(dn([])),ce=M(!1);function le(){return{currentPage:z(s),isSearching:z(o),searchQuery:z(i),selectedTags:z(r)}}function ue(e){N(n,new Set(e),!0)}async function T(){await pe(),await fe()}async function de(){let t=await Vo(`/api/tags`);t.success&&t.data&&N(e,[...t.data.project||[],...t.data.user||[]],!0)}async function fe(){let e=await Vo(`/api/stats`);e.success&&e.data&&N(u,e.data.total,!0)}async function pe(e){let{currentPage:n,isSearching:r,searchQuery:i,selectedTags:a}={...le(),...e,currentPage:e?.page??le().currentPage};N(p,!0),N(f,null);let o=`/api/memories?page=${n}&pageSize=20&includePrompts=true`;r&&(o=`/api/search?q=${encodeURIComponent(i)}&page=${n}&pageSize=20`);for(let e of a)o+=`&tag=${encodeURIComponent(e)}`;let u=await Vo(o);N(p,!1),N(d,!1),u.success&&u.data?(N(t,u.data.items,!0),N(c,u.data.totalPages,!0),N(l,u.data.total,!0),N(s,u.data.page,!0)):N(f,u.error||zo(`toast-update-failed`),!0)}async function me(){let e=await Vo(`/api/migration/detect`);if(e.success&&e.data?.needsMigration){let t=e.data.shardMismatches.length>0?zo(`migration-shards-mismatch`,{count:e.data.shardMismatches.length}):zo(`migration-dimension-mismatch`);N(g,zo(`migration-mismatch-details`,{configDimensions:e.data.configDimensions,configModel:e.data.configModel,shardInfo:t}),!0),N(h,!0)}let t=await Vo(`/api/migration/tags/detect`);t.success&&t.data?.needsMigration&&(N(y,t.data.count,!0),N(v,!0))}async function he(){try{let e=await fetch(`/api/health`,{credentials:`same-origin`});if(!e.ok)return;if((await e.json())?.authEnabled===!0){N(m,!1);return}let t=window.location.hostname.toLowerCase(),n=t===`localhost`||t===`127.0.0.1`||t===`[::1]`||t===`::1`||t.startsWith(`::ffff:`)&&t.endsWith(`127.0.0.1`);N(m,!n)}catch{}}function ge(){let e=z(a).trim();e?(N(i,e,!0),N(o,!0),N(s,1),pe({page:1,isSearching:!0,searchQuery:e})):_e()}function _e(){N(i,``),N(a,``),N(o,!1),N(s,1),pe({page:1,isSearching:!1,searchQuery:``})}function ve(e){N(r,e,!0),N(s,1),N(o,!1),N(i,``),N(a,``),pe({page:1,isSearching:!1,searchQuery:``,selectedTags:e})}function ye(e,t){ue(E_(z(n),e,t))}function be(){let e=new Set(z(n));for(let n of iw(z(t)))e.add(n.isPair?n.memory.id:n.item.id);ue(e)}function xe(){ue(new Set)}async function Se(e){e?.preventDefault();let t=z(w).trim();if(!t||!z(x)){Do.error(zo(`toast-add-error`));return}let n=z(C).map(e=>e.trim()).filter(Boolean);await Ho(await Vo(`/api/memories`,{method:`POST`,body:JSON.stringify({content:t,containerTag:z(x),type:z(S)||void 0,tags:n})}),{successKey:`toast-add-success`,failKey:`toast-add-failed`,onSuccess:async()=>{N(w,``),N(C,[],!0),N(S,``),N(b,!1),await T()}})}function Ce(e){let n=z(t).find(t=>t.id===e&&t.type===`memory`);n&&(N(te,e,!0),N(ne,n.content,!0),N(re,n.memoryType||``,!0),N(ie,[...n.tags||[]],!0),N(ee,!0))}function we(e){N(te,e.id,!0),N(ne,e.content,!0),N(re,e.type||``,!0),N(ie,[...e.tags||[]],!0),N(ee,!0)}async function Te(e,t,n){let r=t??z(ie),i=n??z(re);await Ho(await Vo(`/api/memories/${z(te)}`,{method:`PUT`,body:JSON.stringify({content:e,tags:r,type:i||void 0})}),{successKey:`toast-update-success`,failKey:`toast-update-failed`,onSuccess:async()=>{N(ee,!1),await pe()}})}async function Ee(e,n){let r=z(t).find(t=>t.id===e&&t.type===`memory`);if(!r)return;N(t,z(t).map(t=>t.id===e?{...t,tags:n}:t),!0);let i=await Vo(`/api/memories/${e}`,{method:`PUT`,body:JSON.stringify({content:r.content,tags:n})});i.success?await Ho(i,{successKey:`toast-update-success`,failKey:`toast-update-failed`}):(await pe(),await Ho(i,{failKey:`toast-update-failed`}))}async function E(e,t,r){await JE({title:zo(`confirm-delete-title`),detail:zo(r),confirmLabel:zo(`btn-delete`),tone:`danger`})&&await Ho(await Vo(t,{method:`DELETE`}),{successKey:`toast-delete-success`,failKey:`toast-delete-failed`,onSuccess:async()=>{ue(D_(z(n),e)),await T()}})}async function De(e,t){await E(e,`/api/memories/${e}?cascade=true`,t?`confirm-delete-pair`:`confirm-delete`)}async function Oe(e,t){await E(e,`/api/prompts/${e}?cascade=true`,t?`confirm-delete-prompt`:`confirm-delete`)}async function ke(){if(z(n).size===0||!await JE({title:zo(`confirm-bulk-delete-title`),detail:zo(`confirm-bulk-delete`,{count:z(n).size}),confirmLabel:zo(`btn-delete-selected`),tone:`danger`}))return;let e=await tD(Array.from(z(n)),Vo,z(t).map(e=>({id:e.id,linkedMemoryId:e.linkedMemoryId,linkedPromptId:e.linkedPromptId})));if(e.success)Do.success(zo(`toast-bulk-delete-success`)),ue(new Set),await T();else{if(e.deletedIds.length>0){let t=z(n);for(let n of e.deletedIds)t=D_(t,n);ue(t),await T()}Do.error(e.error||zo(`toast-bulk-delete-failed`))}}async function Ae(e,t){await Ho(await Vo(`/api/memories/${e}/${t?`pin`:`unpin`}`,{method:`POST`}),{successKey:`toast-update-success`,failKey:`toast-update-failed`,onSuccess:()=>pe()})}async function D(e){await Ae(e,!0)}async function O(e){await Ae(e,!1)}async function je(e,t,n,r,i,a,o){await JE({title:zo(n),detail:zo(t),confirmLabel:zo(r),tone:`danger`})&&(Do.info(zo(i)),await Ho(await Vo(e,{method:`POST`}),{successKey:a,failKey:o,onSuccess:()=>T()}))}async function Me(){await je(`/api/cleanup`,`confirm-cleanup`,`confirm-cleanup-title`,`btn-cleanup`,`status-cleanup`,`toast-cleanup-success`,`toast-cleanup-failed`)}async function Ne(){await je(`/api/deduplicate`,`confirm-dedup`,`confirm-dedup-title`,`btn-deduplicate`,`status-dedup`,`toast-dedup-success`,`toast-dedup-failed`)}async function Pe(){N(ae,!0),N(oe,!0);let e=await Vo(`/api/memories/trash`);N(oe,!1),e.success&&e.data?N(se,e.data,!0):(N(se,[],!0),Do.error(e.error||zo(`toast-trash-load-failed`)))}async function Fe(e){await Ho(await Vo(`/api/memories/${e}/restore`,{method:`POST`}),{successKey:`toast-restore-success`,failKey:`toast-restore-failed`,onSuccess:async()=>{N(se,z(se).filter(t=>t.id!==e),!0),await T()}})}async function Ie(){if(!z(ce)&&await JE({title:zo(`confirm-dreaming-title`),detail:zo(`confirm-dreaming`),confirmLabel:zo(`btn-dreaming`),tone:`danger`})){N(ce,!0),Do.info(zo(`status-dreaming`));try{let e=await Vo(`/api/dreaming/run`,{method:`POST`});if(!e.success&&e.error===`already_running`){Do.info(zo(`toast-dreaming-already-running`));return}if(!e.success&&e.error===`dreaming_provider_unavailable`){Do.error(zo(`toast-dreaming-failed`));return}if(e.success&&(e.data?.groupsFailed??0)>0){let t=e.data?.groupsFailed??0,n=e.data?.groupsConsidered??0,r=e.data?.groupsMerged??0,i=zo(`toast-dreaming-partial`,{failed:t,considered:n});r===0?Do.error(i):Do.warning(i),await T();return}await Ho(e,{successKey:`toast-dreaming-success`,failKey:`toast-dreaming-failed`,onSuccess:()=>T()})}finally{N(ce,!1)}}}async function Le(e){if(!z(_)){Do.error(zo(`toast-migration-failed`));return}let t=zo(e===`fresh-start`?`btn-fresh-start`:`btn-reembed`);await JE({title:zo(`confirm-migration-title`),detail:zo(`confirm-migration`,{strategy:t}),confirmLabel:zo(`btn-start-migration`),tone:`danger`})&&(Do.info(zo(`status-migration-init`)),await Ho(await Vo(`/api/migration/run`,{method:`POST`,body:JSON.stringify({strategy:e})}),{successKey:`toast-migration-success`,failKey:`toast-migration-failed`,onSuccess:async()=>{N(h,!1),N(_,!1),await T()}}))}return{get tags(){return z(e)},get memories(){return z(t)},get selectedIds(){return z(n)},get selectedTags(){return z(r)},get searchInput(){return z(a)},set searchInput(e){N(a,e,!0)},get isSearching(){return z(o)},get currentPage(){return z(s)},set currentPage(e){N(s,e,!0)},get totalPages(){return z(c)},get totalItems(){return z(l)},get statsTotal(){return z(u)},get loadingMemories(){return z(d)},get memoriesError(){return z(f)},get refreshing(){return z(p)},get showAuthWarning(){return z(m)},get migrationNeeded(){return z(h)},get migrationMessage(){return z(g)},get migrationConfirmed(){return z(_)},set migrationConfirmed(e){N(_,e,!0)},get tagMigrationOpen(){return z(v)},set tagMigrationOpen(e){N(v,e,!0)},get tagMigrationCount(){return z(y)},get editOpen(){return z(ee)},set editOpen(e){N(ee,e,!0)},get editContent(){return z(ne)},get editType(){return z(re)},get addOpen(){return z(b)},set addOpen(e){N(b,e,!0)},get addTag(){return z(x)},set addTag(e){N(x,e,!0)},get addType(){return z(S)},set addType(e){N(S,e,!0)},get addTags(){return z(C)},set addTags(e){N(C,e,!0)},get editTags(){return z(ie)},set editTags(e){N(ie,e,!0)},get addContent(){return z(w)},set addContent(e){N(w,e,!0)},get trashOpen(){return z(ae)},set trashOpen(e){N(ae,e,!0)},get trashLoading(){return z(oe)},get trashItems(){return z(se)},get dreamingBusy(){return z(ce)},get knownTags(){let e=new Set;for(let n of z(t))for(let t of n.tags||[]){let n=t.trim();n&&e.add(n)}for(let t of z(C)){let n=t.trim();n&&e.add(n)}return[...e].sort((e,t)=>e.localeCompare(t))},loadTags:de,loadStats:fe,loadMemories:pe,checkMigrationStatus:me,checkAuthWarning:he,performSearch:ge,clearSearch:_e,onTagFilterChange:ve,onSelect:ye,selectAllCurrentPage:be,deselectAll:xe,addMemory:Se,openEdit:Ce,openEditWithData:we,saveEdit:Te,updateMemoryTags:Ee,deleteMemory:De,deletePrompt:Oe,bulkDelete:ke,pinMemory:D,unpinMemory:O,runCleanup:Me,runDeduplication:Ne,openTrash:Pe,restoreTrashItem:Fe,runDreaming:Ie,runMigration:Le}}var rD=/^[a-z0-9]+(-[a-z0-9]+)*$/;function iD(e){let t=e.normalize(`NFKD`).replace(/[\u0300-\u036f]/g,``).toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,64).replace(/-+$/g,``);return rD.test(t)?t:``}function aD(e,t){let n=new Set(t),r=iD(e)||`skill`;if(!n.has(r))return r;for(let e=2;e<1e4;e++){let t=`-${e}`,i=Math.max(1,64-t.length),a=`${r.slice(0,i).replace(/-+$/g,``)}${t}`;if(rD.test(a)&&!n.has(a))return a}return`skill-${Date.now().toString(36)}`.slice(0,64)}function oD(){return{name:``,description:``,content:``,autoinvoke:!0,enabled:!0}}function sD(){let e=M(dn([])),t=M(!1),n=M(!1),r=M(null),i=M(dn(oD())),a=M(``),o=j(()=>{let t=z(a).trim().toLowerCase();return t?z(e).filter(e=>`${e.id} ${e.name} ${e.description}`.toLowerCase().includes(t)):z(e)}),s=j(()=>z(a).trim().length>0);async function c(){N(t,!0);let n=await Vo(`/api/skills`);N(t,!1),!n.success||!n.data?await Ho(n,{failKey:`toast-skill-load-failed`}):N(e,n.data.items,!0)}function l(){N(r,null),N(i,oD(),!0),N(n,!0)}function u(e){N(r,e.id,!0),N(i,{name:e.name,description:e.description,content:e.content,autoinvoke:e.autoinvoke,enabled:e.enabled},!0),N(n,!0)}async function d(){let t=z(i).name.trim(),a=z(i).description.trim(),o=z(i).content;if(!t||!o.trim()){Do.error(zo(`toast-skill-save-failed`));return}let s={name:t,description:a,content:o,autoinvoke:z(i).autoinvoke,enabled:z(i).enabled};await Ho(z(r)?await Vo(`/api/skills/${encodeURIComponent(z(r))}`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(s)}):await Vo(`/api/skills`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({...s,id:aD(t,z(e).map(e=>e.id))})}),{successKey:`toast-skill-save-success`,failKey:`toast-skill-save-failed`,onSuccess:async()=>{N(n,!1),await c()}})}async function f(t){let n=z(e).find(e=>e.id===t);await JE({title:zo(`confirm-delete-title`),detail:zo(`confirm-delete-skill`,{name:n?.name??t}),confirmLabel:zo(`btn-delete-selected`),cancelLabel:zo(`btn-cancel`),tone:`danger`})&&await Ho(await Vo(`/api/skills/${encodeURIComponent(t)}`,{method:`DELETE`}),{successKey:`toast-skill-delete-success`,failKey:`toast-skill-delete-failed`,onSuccess:()=>c()})}function p(){N(a,``)}return{get skills(){return z(e)},get filteredSkills(){return z(o)},get loading(){return z(t)},get dialogOpen(){return z(n)},set dialogOpen(e){N(n,e,!0)},get editingId(){return z(r)},get draft(){return z(i)},set draft(e){N(i,e,!0)},get searchInput(){return z(a)},set searchInput(e){N(a,e,!0)},get isSearching(){return z(s)},loadSkills:c,openCreate:l,openEdit:u,saveSkill:d,deleteSkill:f,clearSearch:p}}function cD(){let e=M(null),t=M(!1),n=M(!1),r=M(null),i=M(``),a=j(()=>z(e)?.files??[]),o=j(()=>{let e=z(i).trim().toLowerCase();return e?z(a).filter(t=>`${t.id} ${t.relPath} ${t.title??``} ${t.source??``}`.toLowerCase().includes(e)):z(a)}),s=j(()=>z(i).trim().length>0);async function c(){N(t,!0),N(r,null);try{let t=await Vo(`/api/markdown/status`);t.success&&t.data?N(e,t.data,!0):(N(e,{enabled:!1,path:null,fileCount:0,lastReconcileAt:null,watcherActive:!1,files:[]},!0),t.error&&N(r,t.error,!0))}catch(t){N(r,t instanceof Error?t.message:String(t),!0),N(e,{enabled:!1,path:null,fileCount:0,lastReconcileAt:null,watcherActive:!1,files:[]},!0)}finally{N(t,!1)}}async function l(){N(n,!0);try{await Ho(await Vo(`/api/markdown/reindex`,{method:`POST`}),{successKey:`markdown-reindex-ok`,failKey:`markdown-reindex-fail`}),await c()}finally{N(n,!1)}}function u(){N(i,``)}return{get status(){return z(e)},get loading(){return z(t)},get reindexing(){return z(n)},get error(){return z(r)},get enabled(){return z(e)?.enabled===!0},get searchInput(){return z(i)},set searchInput(e){N(i,e,!0)},get filteredFiles(){return z(o)},get isSearching(){return z(s)},loadStatus:c,reindex:l,clearSearch:u}}function lD(){let e=M(null),t=M(!1),n=M(null);async function r(){N(t,!0),N(n,null);let r=await Vo(`/api/stats`);N(t,!1),r.success&&r.data?N(e,r.data,!0):N(n,r.error||``,!0)}return{get data(){return z(e)},get loading(){return z(t)},get error(){return z(n)},loadStats:r}}function uD(){let e=M(null),t=M(!1),n=M(!1);async function r(){N(t,!0);let n=await Vo(`/api/user-profile`);N(t,!1),n.success&&n.data?N(e,n.data,!0):await Ho(n,{failKey:`toast-update-failed`})}async function i(){Do.info(zo(`loading-profile`)),await Ho(await Vo(`/api/user-profile/refresh`,{method:`POST`,body:JSON.stringify({})}),{successKey:`toast-update-success`,failKey:`toast-update-failed`,onSuccess:()=>r()})}return{get userProfile(){return z(e)},get loadingProfile(){return z(t)},get aiCleanupOpen(){return z(n)},set aiCleanupOpen(e){N(n,e,!0)},loadUserProfile:r,refreshProfile:i}}var dD=B(`<div><span> </span> <!></div>`),fD=B(`<span> </span>`),pD=B(`<!> <!>`,1),mD=B(`<!> `,1),hD=B(`<p> </p> <label><!> <span> </span></label> <div><!> <!></div>`,1),gD=B(`<div><div><!> <div class="flex min-w-0 flex-1 justify-center px-1"><!></div> <div><!> <!> <!> <!> <!></div></div></div> <!> <!>`,1),_D=B(`<div><div><div class="flex min-w-0 flex-1 justify-center px-1"><!></div> <div><!></div></div></div> <!>`,1),vD=B(`<!> <!> <div class="flex min-h-svh bg-background text-foreground"><!> <div aria-hidden="true"></div> <div class="flex min-w-0 flex-1 flex-col"><header><div><!> <!> <h1 class="min-w-0 flex-1 truncate text-xl font-bold tracking-tight text-foreground-bright"><a class="hover:opacity-90 md:pointer-events-none"> </a></h1> <!></div></header> <div class="h-14 shrink-0" aria-hidden="true"></div> <div><!> <!></div></div></div> <!> <!> <!> <!> <!> <!>`,1);function yD(e,t){k(t,!0);let n=`opencode-mem-sidebar-collapsed`;function r(){try{return localStorage.getItem(n)===`1`}catch{return!1}}let i=Sh(),a=$E(),o=nD(),s=uD(),c=sD(),l=cD(),u=lD(),d=M(!1),f=M(dn(r())),p=M(dn(Io().toUpperCase())),m=M(!1),h=j(()=>a.view===`project`?i.t(`tab-project`):a.view===`skills`?i.t(`tab-skills`):a.view===`markdown`?i.t(`tab-markdown`):a.view===`stats`?i.t(`tab-stats`):i.t(`tab-profile`));Pn(()=>{let e=()=>{N(m,window.scrollY>8)};return e(),window.addEventListener(`scroll`,e,{passive:!0}),()=>window.removeEventListener(`scroll`,e)}),Pn(()=>{try{localStorage.setItem(n,z(f)?`1`:`0`)}catch{}}),Pn(()=>{let e=PS();(async()=>{await o.loadTags(),await o.loadMemories(),await o.loadStats(),await o.checkMigrationStatus(),await o.checkAuthWarning(),await l.loadStatus()})();let t=setInterval(()=>{o.loadStats(),!o.isSearching&&a.view===`project`&&o.loadMemories()},3e4);return()=>{e(),clearInterval(t)}}),Pn(()=>{a.view===`profile`&&s.loadUserProfile(),a.view===`skills`&&c.loadSkills(),a.view===`markdown`&&l.loadStatus(),a.view===`stats`&&u.loadStats()});function g(){N(p,Ro().toUpperCase(),!0),o.loadMemories(),o.loadStats(),a.view===`profile`&&s.loadUserProfile(),a.view===`skills`&&c.loadSkills(),a.view===`markdown`&&l.loadStatus()}async function _(e){let t=await Vo(`/api/memories/${encodeURIComponent(e.id)}`);!t.success||!t.data?await Ho(t,{failKey:`markdown-open-fail`}):o.openEditWithData({id:t.data.id,content:t.data.content,type:t.data.type,tags:t.data.tags})}async function v(e){await o.deleteMemory(e,!1),l.enabled&&l.loadStatus()}async function y(e){await o.addMemory(e),l.enabled&&l.loadStatus()}async function b(e,t,n){await o.saveEdit(e,t,n),l.enabled&&l.loadStatus()}function x(e){MS(e)&&(e.preventDefault(),NS(SS.home))}var S=vD(),C=F(S);GE(C,{});var w=L(C,2);ZE(w,{});var ee=L(w,2),te=P(ee);{let e=j(()=>i.t(`brand`)),t=j(()=>i.t(`tab-project`)),n=j(()=>i.t(`tab-profile`)),r=j(()=>i.t(`tab-skills`)),o=j(()=>i.t(`tab-markdown`)),s=j(()=>i.t(`tab-stats`)),c=j(()=>i.t(`nav-language`)),u=j(()=>i.t(`nav-theme`)),m=j(()=>i.t(`nav-close`));eC(te,{get open(){return z(d)},get collapsed(){return z(f)},onOpenChange:e=>N(d,e,!0),get currentView(){return a.view},get brand(){return z(e)},get projectLabel(){return z(t)},get profileLabel(){return z(n)},get skillsLabel(){return z(r)},get markdownLabel(){return z(o)},get statsLabel(){return z(s)},get showMarkdown(){return l.enabled},get langLabel(){return z(p)},get languageLabel(){return z(c)},get themeLabel(){return z(u)},get closeLabel(){return z(m)},onLangToggle:g})}var ne=L(te,2),re=L(ne,2),ie=P(re),ae=P(ie),oe=P(ae);{let e=j(()=>i.t(`nav-menu`));oh(oe,{variant:`ghost`,size:`icon`,class:`md:hidden shrink-0`,onclick:()=>N(d,!0),get"aria-label"(){return z(e)},children:(e,t)=>{Ba(e,{get class(){return Bh},"aria-hidden":`true`})},$$slots:{default:!0}})}var se=L(oe,2);{let e=j(()=>z(f)?i.t(`nav-expand`):i.t(`nav-collapse`)),t=j(()=>z(f)?i.t(`nav-expand`):i.t(`nav-collapse`)),n=j(()=>!z(f));oh(se,{variant:`ghost`,size:`icon`,class:`hidden md:inline-flex shrink-0`,onclick:()=>N(f,!z(f)),get"aria-label"(){return z(e)},get title(){return z(t)},get"aria-expanded"(){return z(n)},children:(e,t)=>{var n=V(),r=F(n),i=e=>{Ka(e,{get class(){return Bh},"aria-hidden":`true`})},a=e=>{Ua(e,{get class(){return Bh},"aria-hidden":`true`})};W(r,e=>{z(f)?e(i):e(a,-1)}),H(e,n)},$$slots:{default:!0}})}var ce=L(se,2),le=P(ce),ue=I(le,!0);D(ce);var T=L(ce,2),de=e=>{var t=dD(),n=P(t),r=I(n,!0),a=L(n,2),s=e=>{{let t=j(()=>$(zh,`animate-spin`));La(e,{get class(){return z(t)},"aria-hidden":`true`})}};W(a,e=>{o.refreshing&&e(s)}),D(t),R((e,i)=>{K(t,1,e),K(n,1,G(eg)),U(r,i)},[()=>G($(`flex shrink-0 items-center text-xs text-muted-foreground`,Hh)),()=>i.t(`text-total`,{count:QE(o.isSearching,o.totalItems,o.statsTotal,o.selectedTags.length>0)})]),H(e,t)},fe=e=>{var t=fD(),n=I(t,!0);R(e=>{K(t,1,G(eg)),U(n,e)},[()=>i.t(`text-total`,{count:c.isSearching?c.filteredSkills.length:c.skills.length})]),H(e,t)},pe=e=>{var t=fD(),n=I(t,!0);R(e=>{K(t,1,G(eg)),U(n,e)},[()=>i.t(`text-total`,{count:l.isSearching?l.filteredFiles.length:l.status?.fileCount??0})]),H(e,t)};W(T,e=>{a.view===`project`?e(de):a.view===`skills`?e(fe,1):a.view===`markdown`&&l.enabled&&e(pe,2)}),D(ae),D(ie);var me=L(ie,4),he=P(me),ge=e=>{NT(e,{variant:`destructive`,children:(e,t)=>{var n=pD(),r=F(n);io(r,{"aria-hidden":`true`}),IT(L(r,2),{children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>i.t(`auth-warning-text`)]),H(e,n)},$$slots:{default:!0}}),H(e,n)},$$slots:{default:!0}})};W(he,e=>{o.showAuthWarning&&e(ge)});var _e=L(he,2),ve=e=>{var t=gD(),n=F(t),r=P(n),a=P(r);{let e=j(()=>i.t(`opt-all-tags`)),t=j(()=>i.t(`btn-filter`)),n=j(()=>i.t(`btn-filter-clear`)),r=j(()=>i.t(`placeholder-filter`));wE(a,{get tags(){return o.tags},get value(){return o.selectedTags},get allLabel(){return z(e)},get filterLabel(){return z(t)},get clearLabel(){return z(n)},get searchPlaceholder(){return z(r)},get onChange(){return o.onTagFilterChange}})}var s=L(a,2),c=P(s);{let e=j(()=>i.t(`placeholder-search`));AE(c,{id:`search-input`,class:`w-full max-w-xl`,get placeholder(){return z(e)},get showClear(){return o.isSearching},get onClear(){return o.clearSearch},get onSearch(){return o.performSearch},onkeydown:e=>e.key===`Enter`&&o.performSearch(),get value(){return o.searchInput},set value(e){o.searchInput=e}})}D(s);var l=L(s,2),u=P(l);oh(u,{type:`button`,variant:`outline`,get onclick(){return o.runCleanup},children:(e,t)=>{var n=mD(),r=F(n);to(r,{get class(){return zh},"aria-hidden":`true`});var a=L(r);R(e=>U(a,` ${e??``}`),[()=>i.t(`btn-cleanup`)]),H(e,n)},$$slots:{default:!0}});var d=L(u,2);oh(d,{type:`button`,variant:`outline`,get onclick(){return o.runDeduplication},children:(e,t)=>{var n=mD(),r=F(n);Qa(r,{get class(){return zh},"aria-hidden":`true`});var a=L(r);R(e=>U(a,` ${e??``}`),[()=>i.t(`btn-deduplicate`)]),H(e,n)},$$slots:{default:!0}});var f=L(d,2);oh(f,{type:`button`,variant:`outline`,get onclick(){return o.openTrash},children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>i.t(`btn-trash`)]),H(e,n)},$$slots:{default:!0}});var p=L(f,2);oh(p,{type:`button`,variant:`outline`,get disabled(){return o.dreamingBusy},get onclick(){return o.runDreaming},children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>i.t(`btn-dreaming`)]),H(e,n)},$$slots:{default:!0}});var m=L(p,2);{let e=j(()=>i.t(`btn-add-memory`)),t=j(()=>i.t(`btn-add-memory`));oh(m,{variant:`default`,size:`icon`,get"aria-label"(){return z(e)},get title(){return z(t)},onclick:()=>o.addOpen=!0,children:(e,t)=>{Ya(e,{get class(){return Bh},"aria-hidden":`true`})},$$slots:{default:!0}})}D(l),D(r),D(n);var h=L(n,2),g=e=>{NT(e,{variant:`destructive`,get class(){return qh},children:(e,t)=>{var n=pD(),r=F(n);io(r,{"aria-hidden":`true`}),IT(L(r,2),{get class(){return qh},children:(e,t)=>{var n=hD(),r=F(n),a=I(r,!0),s=L(r,2),c=P(s);lg(c,{get checked(){return o.migrationConfirmed},onCheckedChange:e=>o.migrationConfirmed=e===!0,class:`mt-0.5`});var l=I(L(c,2),!0);D(s);var u=L(s,2),d=P(u);{let e=j(()=>!o.migrationConfirmed);oh(d,{variant:`destructive`,size:`sm`,get disabled(){return z(e)},onclick:()=>o.runMigration(`fresh-start`),children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>i.t(`btn-fresh-start`)]),H(e,n)},$$slots:{default:!0}})}var f=L(d,2);{let e=j(()=>!o.migrationConfirmed);oh(f,{variant:`secondary`,size:`sm`,get disabled(){return z(e)},onclick:()=>o.runMigration(`re-embed`),children:(e,t)=>{O();var n=oi();R(e=>U(n,e),[()=>i.t(`btn-reembed`)]),H(e,n)},$$slots:{default:!0}})}D(u),R((e,t,n,r)=>{U(a,e),K(s,1,t),U(l,n),K(u,1,r)},[()=>o.migrationMessage||i.t(`migration-mismatch`),()=>G($(`flex items-start text-sm`,Hh)),()=>i.t(`migration-understand`),()=>G($(`flex flex-wrap`,Hh))]),H(e,n)},$$slots:{default:!0}}),H(e,n)},$$slots:{default:!0}})};W(h,e=>{o.migrationNeeded&&e(g)}),uw(L(h,2),{get memories(){return o.memories},get selectedIds(){return o.selectedIds},get currentPage(){return o.currentPage},get totalPages(){return o.totalPages},get totalItems(){return o.totalItems},get isSearching(){return o.isSearching},get loading(){return o.loadingMemories},get error(){return o.memoriesError},get onSelect(){return o.onSelect},get onSelectAllPage(){return o.selectAllCurrentPage},get onDeselectAll(){return o.deselectAll},get onBulkDelete(){return o.bulkDelete},onPageChange:e=>{let t=o.currentPage+e;o.currentPage=t,o.loadMemories({page:t})},get onPin(){return o.pinMemory},get onUnpin(){return o.unpinMemory},get onEdit(){return o.openEdit},get onDeleteMemory(){return o.deleteMemory},get onDeletePrompt(){return o.deletePrompt},get onTagsChange(){return o.updateMemoryTags},get knownTags(){return o.knownTags}}),R((e,t)=>{K(n,1,G(ig)),K(r,1,e),K(l,1,t)},[()=>G($(`flex w-full min-w-0 items-center`,Hh)),()=>G($(`flex shrink-0 items-center`,Hh))]),H(e,t)},ye=e=>{var t=_D(),n=F(t),r=P(n),a=P(r),o=P(a);{let e=j(()=>i.t(`placeholder-search-skills`));AE(o,{id:`skills-search-input`,class:`w-full max-w-xl`,get placeholder(){return z(e)},get showClear(){return c.isSearching},get onClear(){return c.clearSearch},get value(){return c.searchInput},set value(e){c.searchInput=e}})}D(a);var s=L(a,2),l=P(s);{let e=j(()=>i.t(`btn-add-skill`)),t=j(()=>i.t(`btn-add-skill`));oh(l,{variant:`default`,size:`icon`,get"aria-label"(){return z(e)},get title(){return z(t)},get onclick(){return c.openCreate},children:(e,t)=>{Ya(e,{get class(){return Bh},"aria-hidden":`true`})},$$slots:{default:!0}})}D(s),D(r),D(n),_T(L(n,2),{get skills(){return c.skills},get filtered(){return c.filteredSkills},get loading(){return c.loading},get onEdit(){return c.openEdit},get onDelete(){return c.deleteSkill}}),R((e,t)=>{K(n,1,G(ig)),K(r,1,e),K(s,1,t)},[()=>G($(`flex w-full min-w-0 items-center`,Hh)),()=>G($(`flex shrink-0 items-center`,Hh))]),H(e,t)},be=e=>{var t=_D(),n=F(t),r=P(n),a=P(r),s=P(a);{let e=j(()=>i.t(`placeholder-search-markdown`));AE(s,{id:`markdown-search-input`,class:`w-full max-w-xl`,get placeholder(){return z(e)},get showClear(){return l.isSearching},get onClear(){return l.clearSearch},get value(){return l.searchInput},set value(e){l.searchInput=e}})}D(a);var c=L(a,2),u=P(c);{let e=j(()=>i.t(`btn-add-markdown`)),t=j(()=>i.t(`btn-add-markdown`));oh(u,{variant:`default`,size:`icon`,get"aria-label"(){return z(e)},get title(){return z(t)},onclick:()=>o.addOpen=!0,children:(e,t)=>{Ya(e,{get class(){return Bh},"aria-hidden":`true`})},$$slots:{default:!0}})}D(c),D(r),D(n),kT(L(n,2),{get status(){return l.status},get filtered(){return l.filteredFiles},get loading(){return l.loading},get reindexing(){return l.reindexing},get error(){return l.error},get isSearching(){return l.isSearching},get onReindex(){return l.reindex},onEdit:_,onDelete:v}),R((e,t)=>{K(n,1,G(ig)),K(r,1,e),K(c,1,t)},[()=>G($(`flex w-full min-w-0 items-center`,Hh)),()=>G($(`flex shrink-0 items-center`,Hh))]),H(e,t)},xe=e=>{oE(e,{get data(){return u.data},get loading(){return u.loading},get error(){return u.error},get onRefresh(){return u.loadStats}})},Se=e=>{lT(e,{get profile(){return s.userProfile},get loading(){return s.loadingProfile},get onRefresh(){return s.refreshProfile},onCleanup:()=>s.aiCleanupOpen=!0})};W(_e,e=>{a.view===`project`?e(ve):a.view===`skills`?e(ye,1):a.view===`markdown`?e(be,2):a.view===`stats`?e(xe,3):e(Se,-1)}),D(me),D(re),D(ee);var Ce=L(ee,2);{let e=j(()=>c.editingId!==null);dT(Ce,{get editing(){return z(e)},onOpenChange:e=>c.dialogOpen=e,get onSave(){return c.saveSkill},get open(){return c.dialogOpen},set open(e){c.dialogOpen=e},get draft(){return c.draft},set draft(e){c.draft=e}})}var we=L(Ce,2);Gx(we,{get open(){return o.addOpen},onOpenChange:e=>o.addOpen=e,get tags(){return o.tags},get knownTags(){return o.knownTags},onSubmit:y,get tag(){return o.addTag},set tag(e){o.addTag=e},get type(){return o.addType},set type(e){o.addType=e},get contentTags(){return o.addTags},set contentTags(e){o.addTags=e},get content(){return o.addContent},set content(e){o.addContent=e}});var Te=L(we,2);iC(Te,{get open(){return o.editOpen},onOpenChange:e=>o.editOpen=e,get content(){return o.editContent},get type(){return o.editType},get tags(){return o.editTags},get knownTags(){return o.knownTags},onSave:b});var Ee=L(Te,2);cE(Ee,{get open(){return o.tagMigrationOpen},onOpenChange:e=>o.tagMigrationOpen=e,get count(){return o.tagMigrationCount},onComplete:()=>{o.loadMemories(),o.loadStats()}});var E=L(Ee,2);V_(E,{get open(){return s.aiCleanupOpen},onOpenChange:e=>s.aiCleanupOpen=e,get profile(){return s.userProfile},get onApplied(){return s.loadUserProfile}}),mE(L(E,2),{get items(){return o.trashItems},get loading(){return o.trashLoading},get onRestore(){return o.restoreTrashItem},get open(){return o.trashOpen},set open(e){o.trashOpen=e}}),R((e,t)=>{K(ne,1,e),K(ie,1,t),K(ae,1,`flex w-full items-center ${Uh} ${rg}`),q(le,`href`,SS.home),U(ue,z(h)),K(me,1,G(ag))},[()=>G($(`hidden shrink-0 transition-[width] duration-200 md:block`,z(f)?`w-16`:`w-64`)),()=>G($(`fixed top-0 inset-e-0 z-30 flex h-14 items-center border-b transition-[background-color,border-color,backdrop-filter,inset-inline-start] duration-200`,`inset-s-0`,z(f)?`md:inset-s-16`:`md:inset-s-64`,z(m)?`border-border/40 bg-background/55 backdrop-blur-xl`:`border-border bg-background/95 backdrop-blur-md`))]),Yr(`click`,le,x),H(e,S),A()}Xr([`click`]),GS();var bD=document.getElementById(`app`);if(!bD)throw Error(`Root element #app not found`);fi(yD,{target:bD});