@peaske7/readit 0.3.0-rc.6 → 0.3.0-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +279 -279
- package/dist/assets/{architectureDiagram-3BPJPVTR-YmPJ1WhA.js → architectureDiagram-3BPJPVTR-6t8WGay0.js} +1 -1
- package/dist/assets/{blockDiagram-GPEHLZMM-qJ_eyvsO.js → blockDiagram-GPEHLZMM-C7PoVgFe.js} +1 -1
- package/dist/assets/{c4Diagram-AAUBKEIU-BZ0YkY-W.js → c4Diagram-AAUBKEIU-BkvsTQM8.js} +1 -1
- package/dist/assets/channel-cR2BrEkj.js +1 -0
- package/dist/assets/{chunk-2J33WTMH-CveZszad.js → chunk-2J33WTMH-DVTiinsd.js} +1 -1
- package/dist/assets/{chunk-3OPIFGDE-Dkw9ov9N.js → chunk-3OPIFGDE-DBlhZGm7.js} +1 -1
- package/dist/assets/{chunk-5ZQYHXKU-DEBvay6G.js → chunk-5ZQYHXKU-Dg8-aE-Q.js} +1 -1
- package/dist/assets/{chunk-727SXJPM-LZ1RggRG.js → chunk-727SXJPM-Io2lUg3D.js} +1 -1
- package/dist/assets/{chunk-AQP2D5EJ-IGG87QoA.js → chunk-AQP2D5EJ-CaH4Sa2_.js} +1 -1
- package/dist/assets/{chunk-CSCIHK7Q-1flzyJOS.js → chunk-CSCIHK7Q-fo2pj2x3.js} +1 -1
- package/dist/assets/{chunk-KSCS5N6A-CeJu0VfP.js → chunk-KSCS5N6A-B7JcyNeL.js} +1 -1
- package/dist/assets/{chunk-L5ZTLDWV-BguGtAbU.js → chunk-L5ZTLDWV-D7ZCFP4x.js} +1 -1
- package/dist/assets/{chunk-LZXEDZCA-ClwYVF1y.js → chunk-LZXEDZCA-7OUrIwuZ.js} +2 -2
- package/dist/assets/{chunk-ND2GUHAM-Cj0nspJ5.js → chunk-ND2GUHAM-1Dp1aDGx.js} +1 -1
- package/dist/assets/{chunk-NZK2D7GU-Ws-ljohP.js → chunk-NZK2D7GU-CoMjyukT.js} +1 -1
- package/dist/assets/{chunk-O5CBEL6O-XwqEnTMN.js → chunk-O5CBEL6O-CjptJ5FC.js} +1 -1
- package/dist/assets/{chunk-WU5MYG2G-5K0DNV8i.js → chunk-WU5MYG2G-FZ_ekjIA.js} +1 -1
- package/dist/assets/classDiagram-4FO5ZUOK-DjDX1TLn.js +1 -0
- package/dist/assets/classDiagram-v2-Q7XG4LA2-vJ5tOA60.js +1 -0
- package/dist/assets/{dagre-BM42HDAG-CqWA7aQK.js → dagre-BM42HDAG-BlVORdiT.js} +1 -1
- package/dist/assets/{diagram-2AECGRRQ-CfvQh1j1.js → diagram-2AECGRRQ-CTbAzqUV.js} +1 -1
- package/dist/assets/{diagram-5GNKFQAL-DTHJJ-O5.js → diagram-5GNKFQAL-DppVu8oh.js} +1 -1
- package/dist/assets/{diagram-KO2AKTUF-6JJRAxmK.js → diagram-KO2AKTUF-8wO0fQb2.js} +1 -1
- package/dist/assets/{diagram-LMA3HP47-DKsUCQIL.js → diagram-LMA3HP47-GqcHrmM7.js} +1 -1
- package/dist/assets/{diagram-OG6HWLK6-C4EGduwM.js → diagram-OG6HWLK6-MZRwgiv0.js} +1 -1
- package/dist/assets/{erDiagram-TEJ5UH35-Dgneoeic.js → erDiagram-TEJ5UH35-BkJUiX8b.js} +1 -1
- package/dist/assets/{flowDiagram-I6XJVG4X-d_AJGjfw.js → flowDiagram-I6XJVG4X-DmnR5bhQ.js} +1 -1
- package/dist/assets/{ganttDiagram-6RSMTGT7-DclW0wXk.js → ganttDiagram-6RSMTGT7-CcAkiIPo.js} +1 -1
- package/dist/assets/{gitGraphDiagram-PVQCEYII-CEMYcmdx.js → gitGraphDiagram-PVQCEYII-CC4IlUIV.js} +1 -1
- package/dist/assets/index-CdiHEYNX.js +19 -0
- package/dist/assets/index-Xh5nhJUP.css +2 -0
- package/dist/assets/{infoDiagram-5YYISTIA-ABBIQ5ln.js → infoDiagram-5YYISTIA-JZOIy51-.js} +1 -1
- package/dist/assets/{ishikawaDiagram-YF4QCWOH-DaHYUvcy.js → ishikawaDiagram-YF4QCWOH-D6FRCYBo.js} +1 -1
- package/dist/assets/{journeyDiagram-JHISSGLW-BdWZVlmi.js → journeyDiagram-JHISSGLW-C_OG_bfX.js} +1 -1
- package/dist/assets/{kanban-definition-UN3LZRKU-BZXOI-ZZ.js → kanban-definition-UN3LZRKU-f9ERq1bn.js} +1 -1
- package/dist/assets/{line-8FrGNoMB.js → line-CKAoHauD.js} +1 -1
- package/dist/assets/{mermaid-parser.core-CkUocGzU.js → mermaid-parser.core-3dFcboHh.js} +1 -1
- package/dist/assets/{mermaid.core-DU55IqMg.js → mermaid.core-BwDx1Ujw.js} +3 -3
- package/dist/assets/{mindmap-definition-RKZ34NQL-CGkE6G92.js → mindmap-definition-RKZ34NQL-CdPJ0ek3.js} +1 -1
- package/dist/assets/{pieDiagram-4H26LBE5-DGTJsCQ3.js → pieDiagram-4H26LBE5-Da3kBbpV.js} +1 -1
- package/dist/assets/{quadrantDiagram-W4KKPZXB-bC24n6zQ.js → quadrantDiagram-W4KKPZXB-DwxccXke.js} +1 -1
- package/dist/assets/{requirementDiagram-4Y6WPE33-GUbgcxXl.js → requirementDiagram-4Y6WPE33-BIveGIDZ.js} +1 -1
- package/dist/assets/{sankeyDiagram-5OEKKPKP-DQsf9Gpn.js → sankeyDiagram-5OEKKPKP-ZmXJoz-Y.js} +1 -1
- package/dist/assets/{sequenceDiagram-3UESZ5HK-D2fXeMd7.js → sequenceDiagram-3UESZ5HK-Te0H5GU2.js} +1 -1
- package/dist/assets/{stateDiagram-AJRCARHV-CCzyThie.js → stateDiagram-AJRCARHV-DzMG778m.js} +1 -1
- package/dist/assets/stateDiagram-v2-BHNVJYJU-DINe5F5W.js +1 -0
- package/dist/assets/{timeline-definition-PNZ67QCA-V9HXVfzV.js → timeline-definition-PNZ67QCA-DwkNEuRP.js} +1 -1
- package/dist/assets/{vennDiagram-CIIHVFJN-DEGIRPbY.js → vennDiagram-CIIHVFJN-D204toAl.js} +1 -1
- package/dist/assets/{wardleyDiagram-YWT4CUSO-I6k1S350.js → wardleyDiagram-YWT4CUSO-CkMqGF7f.js} +1 -1
- package/dist/assets/{xychartDiagram-2RQKCTM6-D0GDzLsv.js → xychartDiagram-2RQKCTM6-CFrfOTYd.js} +1 -1
- package/dist/index.html +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/assets/channel-1srwXBzP.js +0 -1
- package/dist/assets/classDiagram-4FO5ZUOK-D4rancmH.js +0 -1
- package/dist/assets/classDiagram-v2-Q7XG4LA2-mSUUeNhM.js +0 -1
- package/dist/assets/index-BOAUD5Yu.css +0 -2
- package/dist/assets/index-xY14dR0r.js +0 -19
- package/dist/assets/stateDiagram-v2-BHNVJYJU-CFTTHBoJ.js +0 -1
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-DU55IqMg.js","assets/src-Gc0VHc7x.js","assets/chunk-O5CBEL6O-XwqEnTMN.js","assets/chunk-5ZQYHXKU-DEBvay6G.js","assets/dist-BIDVGHMn.js","assets/chunk-CSCIHK7Q-1flzyJOS.js","assets/chunk-3OPIFGDE-Dkw9ov9N.js","assets/chunk-L5ZTLDWV-BguGtAbU.js","assets/chunk-NZK2D7GU-Ws-ljohP.js","assets/rough.esm-KjoEK0it.js","assets/chunk-BSJP7CBP-BBE2cIi4.js","assets/chunk-KSCS5N6A-CeJu0VfP.js","assets/line-8FrGNoMB.js","assets/path-BJQEcSo7.js","assets/array-yLZkcI6Y.js","assets/chunk-LZXEDZCA-ClwYVF1y.js","assets/chunk-WU5MYG2G-5K0DNV8i.js","assets/chunk-XPW4576I-Dz0Wtttq.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
(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),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`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){return e()}function m(e){for(var t=0;t<e.length;t++)e[t]()}function h(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}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,ee=4096,te=8192,ne=16384,re=32768,b=1<<25,ie=65536,ae=1<<19,oe=1<<20,se=1<<25,ce=65536,le=1<<21,ue=1<<22,de=1<<23,fe=Symbol(`$state`),pe=Symbol(`legacy props`),me=Symbol(``),x=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},he=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function ge(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function _e(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ve(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function ye(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function be(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function xe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Se(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ce(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function we(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Te(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ee(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function De(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Oe={},ke=Symbol(),Ae=`http://www.w3.org/1999/xhtml`,je=`http://www.w3.org/2000/svg`,Me=`http://www.w3.org/1998/Math/MathML`;function Ne(){console.warn(`https://svelte.dev/e/derived_inert`)}function Pe(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Fe(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Ie(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var S=!1;function Le(e){S=e}var C;function Re(e){if(e===null)throw Pe(),Oe;return C=e}function ze(){return Re(hn(C))}function w(e){if(S){if(hn(C)!==null)throw Pe(),Oe;C=e}}function T(e=1){if(S){for(var t=e,n=C;t--;)n=hn(n);C=n}}function Be(e=!0){for(var t=0,n=C;;){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=hn(n);e&&n.remove(),n=i}}function Ve(e){if(!e||e.nodeType!==8)throw Pe(),Oe;return e.data}function He(e){return e===this.v}function Ue(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function We(e){return!Ue(e,this.v)}var Ge=!1,Ke=!1;function qe(){Ke=!0}var Je=null;function Ye(e){Je=e}function E(e,t=!1,n){Je={p:Je,i:!1,c:null,e:null,s:e,x:null,r:I,l:Ke&&!t?{s:null,u:null,$:[]}:null}}function D(e){var t=Je,n=t.e;if(n!==null){t.e=null;for(var r of n)Mn(r)}return e!==void 0&&(t.x=e),t.i=!0,Je=t.p,e??{}}function Xe(){return!Ke||Je!==null&&Je.l===null}var Ze=[];function Qe(){var e=Ze;Ze=[],m(e)}function $e(e){if(Ze.length===0&&!ht){var t=Ze;queueMicrotask(()=>{t===Ze&&Qe()})}Ze.push(e)}function et(){for(;Ze.length>0;)Qe()}function tt(e){var t=I;if(t===null)return nr.f|=de,e;if(!(t.f&32768)&&!(t.f&4))throw e;nt(e,t)}function nt(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var rt=~(y|ee|v);function it(e,t){e.f=e.f&rt|t}function at(e){e.f&512||e.deps===null?it(e,v):it(e,ee)}function ot(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ce,ot(t.deps))}function st(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),ot(e.deps),it(e,v)}var ct=!1,lt=!1;function ut(e){var t=lt;try{return lt=!1,[e(),lt]}finally{lt=t}}var dt=new Set,O=null,ft=null,pt=null,mt=null,ht=!1,gt=!1,_t=null,vt=null,yt=0,bt=1,xt=class e{id=bt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Set;#r=new Map;#i=new Map;#a=null;#o=[];#s=[];#c=new Set;#l=new Set;#u=new Map;#d=new Set;is_fork=!1;#f=!1;#p=new Set;#m(){return this.is_fork||this.#i.size>0}#h(){for(let n of this.#p)for(let r of n.#i.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#u.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#u.has(e)||this.#u.set(e,{d:[],m:[]}),this.#d.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#u.get(e);if(n){this.#u.delete(e);for(var r of n.d)it(r,y),t(r);for(r of n.m)it(r,ee),t(r)}this.#d.add(e)}#g(){if(yt++>1e3&&(dt.delete(this),Ct()),!this.#m()){for(let e of this.#c)this.#l.delete(e),it(e,y),this.schedule(e);for(let e of this.#l)it(e,ee),this.schedule(e)}let t=this.#o;this.#o=[],this.apply();var n=_t=[],r=[],i=vt=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw At(e),t}if(O=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(_t=null,vt=null,this.#m()||this.#h()){this.#v(r),this.#v(n);for(let[e,t]of this.#u)kt(e,t)}else{this.#r.size===0&&dt.delete(this),this.#c.clear(),this.#l.clear();for(let e of this.#e)e(this);this.#e.clear(),ft=this,Tt(r),Tt(n),ft=null,this.#a?.resolve()}var o=O;if(this.#o.length>0){let e=o??=this;e.#o.push(...this.#o.filter(t=>!e.#o.includes(t)))}o!==null&&(dt.add(o),o.#g()),Ge&&!dt.has(this)&&this.#y()}#_(e,t,n){e.f^=v;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#u.has(r))&&r.fn!==null){a?r.f^=v:i&4?t.push(r):Ge&&i&16777224?n.push(r):_r(r)&&(i&16&&this.#l.add(r),Sr(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}}}#v(e){for(var t=0;t<e.length;t+=1)st(e[t],this.#c,this.#l)}capture(e,t,n=!1){e.v!==ke&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),pt?.set(e,t)),this.is_fork||(e.v=t)}activate(){O=this}deactivate(){O=null,pt=null}flush(){try{gt=!0,O=this,this.#g()}finally{yt=0,mt=null,_t=null,vt=null,gt=!1,O=null,pt=null,Jt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),this.#n.clear(),dt.delete(this)}register_created_effect(e){this.#s.push(e)}#y(){for(let l of dt){var e=l.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(l.current.has(r)){var n=l.current.get(r)[0];if(e&&i!==n)l.current.set(r,[i,a]);else continue}t.push(r)}var r=[...l.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&l.discard();else if(t.length>0){if(e)for(let e of this.#d)l.unskip_effect(e,e=>{e.f&4194320?l.schedule(e):l.#v([e])});l.activate();var i=new Set,a=new Map;for(var o of t)Et(o,r,i,a);a=new Map;var s=[...l.current.keys()].filter(e=>this.current.has(e)?this.current.get(e)[0]!==e:!0);for(let e of this.#s)!(e.f&155648)&&Dt(e,s,a)&&(e.f&4194320?(it(e,y),l.schedule(e)):l.#c.add(e));if(l.#o.length>0){l.apply();for(var c of l.#o)l.#_(c,[],[]);l.#o=[]}l.deactivate()}}for(let e of dt)e.#p.has(this)&&(e.#p.delete(this),e.#p.size===0&&!e.#m()&&(e.activate(),e.#g()))}increment(e,t){let n=this.#r.get(t)??0;if(this.#r.set(t,n+1),e){let e=this.#i.get(t)??0;this.#i.set(t,e+1)}}decrement(e,t,n){let r=this.#r.get(t)??0;if(r===1?this.#r.delete(t):this.#r.set(t,r-1),e){let e=this.#i.get(t)??0;e===1?this.#i.delete(t):this.#i.set(t,e-1)}this.#f||n||(this.#f=!0,$e(()=>{this.#f=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#c.add(t);for(let e of t)this.#l.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}on_fork_commit(e){this.#n.add(e)}run_fork_commit_callbacks(){for(let e of this.#n)e(this);this.#n.clear()}settled(){return(this.#a??=h()).promise}static ensure(){if(O===null){let t=O=new e;gt||(dt.add(O),ht||$e(()=>{O===t&&t.flush()}))}return O}apply(){if(!Ge||!this.is_fork&&dt.size===1){pt=null;return}pt=new Map;for(let[e,[t]]of this.current)pt.set(e,t);for(let n of dt)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#p.add(n);else for(let[e,t]of n.previous)pt.has(e)||pt.set(e,t)}}schedule(e){if(mt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(_t!==null&&t===I&&(Ge||(nr===null||!(nr.f&2))&&!ct))return;if(n&96){if(!(n&1024))return;t.f^=v}}this.#o.push(t)}};function St(e){var t=ht;ht=!0;try{var n;for(e&&(O!==null&&!O.is_fork&&O.flush(),n=e());;){if(et(),O===null)return n;O.flush()}}finally{ht=t}}function Ct(){try{Se()}catch(e){nt(e,mt)}}var wt=null;function Tt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&_r(r)&&(wt=new Set,Sr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Kn(r),wt?.size>0)){Jt.clear();for(let e of wt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)wt.has(n)&&(wt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Sr(n)}}wt.clear()}}wt=null}}function Et(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Et(i,t,n,r):e&4194320&&!(e&2048)&&Dt(i,t,r)&&(it(i,y),Ot(i))}}function Dt(e,t,r){let i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(let i of e.deps){if(n.call(t,i))return!0;if(i.f&2&&Dt(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Ot(e){O.schedule(e)}function kt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),it(e,v);for(var n=e.first;n!==null;)kt(n,t),n=n.next}}function At(e){it(e,v);for(var t=e.first;t!==null;)At(t),t=t.next}function jt(e){let t=0,n=Xt(0),r;return()=>{kn()&&(L(n),Ln(()=>(t===0&&(r=Er(()=>e(()=>tn(n)))),t+=1,()=>{$e(()=>{--t,t===0&&(r?.(),r=void 0,tn(n))})})))}}var Mt=ie|ae;function Nt(e,t,n,r){new Pt(e,t,n,r)}var Pt=class{parent;is_pending=!1;transform_error;#e;#t=S?C:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=jt(()=>(this.#m=Xt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=I;t.b=this,t.f|=128,n(e)},this.parent=I.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Rn(()=>{if(S){let e=this.#t;ze();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},Mt),S&&(this.#e=C)}#g(){try{this.#a=Bn(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=Bn(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=Bn(()=>e(this.#e)),$e(()=>{var e=this.#c=document.createDocumentFragment(),t=pn();e.append(t),this.#a=this.#x(()=>Bn(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,qn(this.#o,()=>{this.#o=null}),this.#b(O))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=Bn(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Zn(this.#a,e);let t=this.#n.pending;this.#o=Bn(()=>t(this.#e))}else this.#b(O)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){st(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=I,n=nr,r=Je;ar(this.#i),ir(this.#i),Ye(this.#i.ctx);try{return xt.ensure(),e()}catch(e){return tt(e),null}finally{ar(t),ir(n),Ye(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&qn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,$e(()=>{this.#d=!1,this.#m&&Qt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),L(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;O?.is_fork?(this.#a&&O.skip_effect(this.#a),this.#o&&O.skip_effect(this.#o),this.#s&&O.skip_effect(this.#s),O.on_fork_commit(()=>{this.#C(e)})):this.#C(e)}#C(e){this.#a&&=(Wn(this.#a),null),this.#o&&=(Wn(this.#o),null),this.#s&&=(Wn(this.#s),null),S&&(Re(this.#t),T(),Re(Be()));var t=this.#n.onerror;let n=this.#n.failed;var r=!1,i=!1;let a=()=>{if(r){Ie();return}r=!0,i&&De(),this.#s!==null&&qn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){nt(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return Bn(()=>{var t=I;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return nt(e,this.#i.parent),null}}))};$e(()=>{var t;try{t=this.transform_error(e)}catch(e){nt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>nt(e,this.#i&&this.#i.parent)):o(t)})}};function Ft(e,t,n,r){let i=Xe()?zt:Vt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=I,s=It(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||nt(e,o)}Lt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Rt();function d(){Promise.all(n.map(e=>Bt(e))).then(e=>l([...t.map(i),...e])).catch(e=>nt(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Lt()}):d()}function It(){var e=I,t=nr,n=Je,r=O;return function(i=!0){ar(e),ir(t),Ye(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Lt(e=!0){ar(null),ir(null),Ye(null),e&&O?.deactivate()}function Rt(){var e=I,t=e.b,n=O,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function zt(e){var t=2|y;return I!==null&&(I.f|=ae),{ctx:Je,deps:null,effects:null,equals:He,f:t,fn:e,reactions:null,rv:0,v:ke,wv:0,parent:I,ac:null}}function Bt(e,t,n){let r=I;r===null&&_e();var i=void 0,a=Xt(ke),o=!nr,s=new Map;return In(()=>{var t=I,n=h();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Lt)}catch(e){n.reject(e),Lt()}var c=O;if(o){if(t.f&32768)var l=Rt();if(r.b.is_rendered())s.get(c)?.reject(x),s.delete(c);else{for(let e of s.values())e.reject(x);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===x),!(n===x||t.f&16384)){if(c.activate(),n)a.f|=de,Qt(a,n);else{a.f&8388608&&(a.f^=de),Qt(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(x)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),An(()=>{for(let e of s.values())e.reject(x)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function k(e){let t=zt(e);return Ge||sr(t),t}function Vt(e){let t=zt(e);return t.equals=We,t}function Ht(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Wn(t[n])}}function Ut(e){var t,n=I,r=e.parent;if(!er&&r!==null&&r.f&24576)return Ne(),e.v;ar(r);try{e.f&=~ce,Ht(e),t=yr(e)}finally{ar(n)}return t}function Wt(e){var t=Ut(e);if(!e.equals(t)&&(e.wv=gr(),(!O?.is_fork||e.deps===null)&&(O===null?e.v=t:O.capture(e,t,!0),e.deps===null))){it(e,v);return}er||(pt===null?at(e):(kn()||O?.is_fork)&&pt.set(e,t))}function Gt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(x),t.teardown=f,t.ac=null,xr(t,0),Hn(t))}function Kt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Sr(t)}var qt=new Set,Jt=new Map,Yt=!1;function Xt(e,t){return{f:0,v:e,reactions:null,equals:He,rv:0,wv:0}}function A(e,t){let n=Xt(e,t);return sr(n),n}function Zt(e,t=!1,n=!0){let r=Xt(e);return t||(r.equals=We),Ke&&n&&Je!==null&&Je.l!==null&&(Je.l.s??=[]).push(r),r}function j(e,t,r=!1){return nr!==null&&(!rr||nr.f&131072)&&Xe()&&nr.f&4325394&&(or===null||!n.call(or,e))&&Ee(),Qt(e,r?rn(t):t,vt)}function Qt(e,t,n=null){if(!e.equals(t)){Jt.set(e,er?t:e.v);var r=xt.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&Ut(t),pt===null&&at(t)}e.wv=gr(),nn(e,y,n),Xe()&&I!==null&&I.f&1024&&!(I.f&96)&&(ur===null?dr([e]):ur.push(e)),!r.is_fork&&qt.size>0&&!Yt&&$t()}return t}function $t(){Yt=!1;for(let e of qt)e.f&1024&&it(e,ee),_r(e)&&Sr(e);qt.clear()}function en(e,t=1){var n=L(e),r=t===1?n++:n--;return j(e,n),r}function tn(e){j(e,e.v+1)}function nn(e,t,n){var r=e.reactions;if(r!==null)for(var i=Xe(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===I)){var l=(c&y)===0;if(l&&it(s,t),c&2){var u=s;pt?.delete(u),c&65536||(c&512&&(I===null||!(I.f&2097152))&&(s.f|=ce),nn(u,ee,n))}else if(l){var d=s;c&16&&wt!==null&&wt.add(d),n===null?Ot(d):n.push(d)}}}}function rn(t){if(typeof t!=`object`||!t||fe in t)return t;let n=l(t);if(n!==s&&n!==c)return t;var r=new Map,i=e(t),o=A(0),u=null,d=mr,f=e=>{if(mr===d)return e();var t=nr,n=mr;ir(null),hr(d);var r=e();return ir(t),hr(n),r};return i&&r.set(`length`,A(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=A(n.value,u);return r.set(t,e),e}):j(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>A(ke,u));r.set(t,e),tn(o)}}else j(n,ke),tn(o);return!0},get(e,n,i){if(n===fe)return t;var o=r.get(n),s=n in e;if(o===void 0&&(!s||a(e,n)?.writable)&&(o=f(()=>A(rn(s?e[n]:ke),u)),r.set(n,o)),o!==void 0){var c=L(o);return c===ke?void 0:c}return Reflect.get(e,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=L(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==ke)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===fe)return!0;var n=r.get(t),i=n!==void 0&&n.v!==ke||Reflect.has(e,t);return(n!==void 0||I!==null&&(!i||a(e,t)?.writable))&&(n===void 0&&(n=f(()=>A(i?rn(e[t]):ke,u)),r.set(t,n)),L(n)===ke)?!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(()=>A(ke,u)),r.set(d+``,p)):j(p,ke)}if(c===void 0)(!l||a(e,t)?.writable)&&(c=f(()=>A(void 0,u)),j(c,rn(n)),r.set(t,c));else{l=c.v!==ke;var m=f(()=>rn(n));j(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&&j(g,_+1)}tn(o)}return!0},ownKeys(e){L(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==ke});for(var[n,i]of r)i.v!==ke&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Te()}})}function an(e){try{if(typeof e==`object`&&e&&fe in e)return e[fe]}catch{}return e}function on(e,t){return Object.is(an(e),an(t))}var sn,cn,ln,un,dn;function fn(){if(sn===void 0){sn=window,cn=document,ln=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;un=a(t,`firstChild`).get,dn=a(t,`nextSibling`).get,u(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),u(n)&&(n.__t=void 0)}}function pn(e=``){return document.createTextNode(e)}function mn(e){return un.call(e)}function hn(e){return dn.call(e)}function M(e,t){if(!S)return mn(e);var n=mn(C);if(n===null)n=C.appendChild(pn());else if(t&&n.nodeType!==3){var r=pn();return n?.before(r),Re(r),r}return t&&yn(n),Re(n),n}function N(e,t=!1){if(!S){var n=mn(e);return n instanceof Comment&&n.data===``?hn(n):n}if(t){if(C?.nodeType!==3){var r=pn();return C?.before(r),Re(r),r}yn(C)}return C}function P(e,t=1,n=!1){let r=S?C:e;for(var i;t--;)i=r,r=hn(r);if(!S)return r;if(n){if(r?.nodeType!==3){var a=pn();return r===null?i?.after(a):r.before(a),Re(a),a}yn(r)}return Re(r),r}function gn(e){e.textContent=``}function _n(){return!Ge||wt!==null?!1:(I.f&re)!==0}function vn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function yn(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 bn(e,t){if(t){let t=document.body;e.autofocus=!0,$e(()=>{document.activeElement===t&&e.focus()})}}function xn(e){S&&mn(e)!==null&&gn(e)}var Sn=!1;function Cn(){Sn||(Sn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function wn(e){var t=nr,n=I;ir(null),ar(null);try{return e()}finally{ir(t),ar(n)}}function Tn(e,t,n,r=n){e.addEventListener(t,()=>wn(n));let i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),Cn()}function En(e){I===null&&(nr===null&&xe(e),be()),er&&ye(e)}function Dn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function On(e,t){var n=I;n!==null&&n.f&8192&&(e|=te);var r={ctx:Je,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};O?.register_created_effect(r);var i=r;if(e&4)_t===null?xt.ensure().schedule(r):_t.push(r);else if(t!==null){try{Sr(r)}catch(e){throw Wn(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|=ie))}if(i!==null&&(i.parent=n,n!==null&&Dn(i,n),nr!==null&&nr.f&2&&!(e&64))){var a=nr;(a.effects??=[]).push(i)}return r}function kn(){return nr!==null&&!rr}function An(e){let t=On(8,null);return it(t,v),t.teardown=e,t}function jn(e){En(`$effect`);var t=I.f;if(!nr&&t&32&&!(t&32768)){var n=Je;(n.e??=[]).push(e)}else return Mn(e)}function Mn(e){return On(4|oe,e)}function Nn(e){return En(`$effect.pre`),On(8|oe,e)}function Pn(e){xt.ensure();let t=On(64|ae,e);return(e={})=>new Promise(n=>{e.outro?qn(t,()=>{Wn(t),n(void 0)}):(Wn(t),n(void 0))})}function Fn(e){return On(4,e)}function In(e){return On(ue|ae,e)}function Ln(e,t=0){return On(8|t,e)}function F(e,t=[],n=[],r=[]){Ft(r,t,n,t=>{On(8,()=>e(...t.map(L)))})}function Rn(e,t=0){return On(16|t,e)}function zn(e,t=0){return On(_|t,e)}function Bn(e){return On(32|ae,e)}function Vn(e){var t=e.teardown;if(t!==null){let e=er,n=nr;tr(!0),ir(null);try{t.call(null)}finally{tr(e),ir(n)}}}function Hn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&wn(()=>{e.abort(x)});var r=n.next;n.f&64?n.parent=null:Wn(n,t),n=r}}function Un(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Wn(t),t=n}}function Wn(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Gn(e.nodes.start,e.nodes.end),n=!0),it(e,b),Hn(e,t&&!n),xr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Vn(e),e.f^=b,e.f|=ne;var i=e.parent;i!==null&&i.first!==null&&Kn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Gn(e,t){for(;e!==null;){var n=e===t?null:hn(e);e.remove(),e=n}}function Kn(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 qn(e,t,n=!0){var r=[];Jn(e,r,!0);var i=()=>{n&&Wn(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Jn(e,t,n){if(!(e.f&8192)){e.f^=te;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)!=0||(i.f&32)!=0&&(e.f&16)!=0;Jn(i,t,o?n:!1)}i=a}}}function Yn(e){Xn(e,!0)}function Xn(e,t){if(e.f&8192){e.f^=te,e.f&1024||(it(e,y),xt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Xn(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 Zn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:hn(n);t.append(n),n=i}}var Qn=null,$n=!1,er=!1;function tr(e){er=e}var nr=null,rr=!1;function ir(e){nr=e}var I=null;function ar(e){I=e}var or=null;function sr(e){nr!==null&&(!Ge||nr.f&2)&&(or===null?or=[e]:or.push(e))}var cr=null,lr=0,ur=null;function dr(e){ur=e}var fr=1,pr=0,mr=pr;function hr(e){mr=e}function gr(){return++fr}function _r(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ce),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(_r(a)&&Wt(a),a.wv>e.wv)return!0}t&512&&pt===null&&it(e,v)}return!1}function vr(e,t,r=!0){var i=e.reactions;if(i!==null&&!(!Ge&&or!==null&&n.call(or,e)))for(var a=0;a<i.length;a++){var o=i[a];o.f&2?vr(o,t,!1):t===o&&(r?it(o,y):o.f&1024&&it(o,ee),Ot(o))}}function yr(e){var t=cr,n=lr,r=ur,i=nr,a=or,o=Je,s=rr,c=mr,l=e.f;cr=null,lr=0,ur=null,nr=l&96?null:e,or=null,Ye(e.ctx),rr=!1,mr=++pr,e.ac!==null&&(wn(()=>{e.ac.abort(x)}),e.ac=null);try{e.f|=le;var u=e.fn,d=u();e.f|=re;var f=e.deps,p=O?.is_fork;if(cr!==null){var m;if(p||xr(e,lr),f!==null&&lr>0)for(f.length=lr+cr.length,m=0;m<cr.length;m++)f[lr+m]=cr[m];else e.deps=f=cr;if(kn()&&e.f&512)for(m=lr;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&lr<f.length&&(xr(e,lr),f.length=lr);if(Xe()&&ur!==null&&!rr&&f!==null&&!(e.f&6146))for(m=0;m<ur.length;m++)vr(ur[m],e);if(i!==null&&i!==e){if(pr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=pr;if(t!==null)for(let e of t)e.rv=pr;ur!==null&&(r===null?r=ur:r.push(...ur))}return e.f&8388608&&(e.f^=de),d}catch(e){return tt(e)}finally{e.f^=le,cr=t,lr=n,ur=r,nr=i,or=a,Ye(o),rr=s,mr=c}}function br(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&&(cr===null||!n.call(cr,r))){var s=r;s.f&512&&(s.f^=512,s.f&=~ce),s.v!==ke&&at(s),Gt(s),xr(s,0)}}function xr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)br(e,n[r])}function Sr(e){var t=e.f;if(!(t&16384)){it(e,v);var n=I,r=$n;I=e,$n=!0;try{t&16777232?Un(e):Hn(e),Vn(e);var i=yr(e);e.teardown=typeof i==`function`?i:null,e.wv=fr}finally{$n=r,I=n}}}async function Cr(){if(Ge)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),St()}function L(e){var t=(e.f&2)!=0;if(Qn?.add(e),nr!==null&&!rr&&!(I!==null&&I.f&16384)&&(or===null||!n.call(or,e))){var r=nr.deps;if(nr.f&2097152)e.rv<pr&&(e.rv=pr,cr===null&&r!==null&&r[lr]===e?lr++:cr===null?cr=[e]:cr.push(e));else{(nr.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[nr]:n.call(i,nr)||i.push(nr)}}if(er&&Jt.has(e))return Jt.get(e);if(t){var a=e;if(er){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||Tr(a))&&(o=Ut(a)),Jt.set(a,o),o}var s=(a.f&512)==0&&!rr&&nr!==null&&($n||(nr.f&512)!=0),c=(a.f&re)===0;_r(a)&&(s&&(a.f|=512),Wt(a)),s&&!c&&(Kt(a),wr(a))}if(pt?.has(e))return pt.get(e);if(e.f&8388608)throw e.v;return e.v}function wr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Kt(t),wr(t))}function Tr(e){if(e.v===ke)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Jt.has(t)||t.f&2&&Tr(t))return!0;return!1}function Er(e){var t=rr;try{return rr=!0,e()}finally{rr=t}}function Dr(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(fe in e)Or(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&fe in n&&Or(n)}}}function Or(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Or(e[n],t)}catch{}let n=l(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=o(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}function kr(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var Ar=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function jr(e){return Ar.includes(e)}var Mr=`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(`.`),Nr={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 Pr(e){return e=e.toLowerCase(),Nr[e]??e}[...Mr];var Fr=[`touchstart`,`touchmove`];function Ir(e){return Fr.includes(e)}var Lr=[`textarea`,`script`,`style`,`title`];function Rr(e){return Lr.includes(e)}var zr=Symbol(`events`),Br=new Set,Vr=new Set;function Hr(e,t,n,r={}){function i(e){if(r.capture||Kr.call(t,e),!e.cancelBubble)return wn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?$e(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Ur(e,t,n,r,i){var a={capture:r,passive:i},o=Hr(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&An(()=>{t.removeEventListener(e,o,a)})}function R(e,t,n){(t[zr]??={})[e]=n}function Wr(e){for(var t=0;t<e.length;t++)Br.add(e[t]);for(var n of Vr)n(e)}var Gr=null;function Kr(e){var t=this,n=t.ownerDocument,r=e.type,a=e.composedPath?.()||[],o=a[0]||e.target;Gr=e;var s=0,c=Gr===e&&e[zr];if(c){var l=a.indexOf(c);if(l!==-1&&(t===document||t===window)){e[zr]=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=nr,f=I;ir(null),ar(null);try{for(var p,m=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var g=o[zr]?.[r];g!=null&&(!o.disabled||e.target===o)&&g.call(o,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;o=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[zr]=t,delete e.currentTarget,ir(d),ar(f)}}}var qr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Jr(e){return qr?.createHTML(e)??e}function Yr(e){var t=vn(`template`);return t.innerHTML=Jr(e.replaceAll(`<!>`,`<!---->`)),t.content}function Xr(e,t){var n=I;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function z(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(S)return Xr(C,null),C;i===void 0&&(i=Yr(a?e:`<!>`+e),n||(i=mn(i)));var t=r||ln?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=mn(t),s=t.lastChild;Xr(o,s)}else Xr(t,t);return t}}function Zr(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=(t&1)!=0,a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(S)return Xr(C,null),C;if(!o){var e=mn(Yr(a));if(i)for(o=document.createDocumentFragment();mn(e);)o.appendChild(mn(e));else o=mn(e)}var t=o.cloneNode(!0);if(i){var n=mn(t),r=t.lastChild;Xr(n,r)}else Xr(t,t);return t}}function Qr(e,t){return Zr(e,t,`svg`)}function B(e=``){if(!S){var t=pn(e+``);return Xr(t,t),t}var n=C;return n.nodeType===3?yn(n):(n.before(n=pn()),Re(n)),Xr(n,n),n}function V(){if(S)return Xr(C,null),C;var e=document.createDocumentFragment(),t=document.createComment(``),n=pn();return e.append(t,n),Xr(t,n),e}function H(e,t){if(S){var n=I;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=C),ze();return}e!==null&&e.before(t)}function U(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function $r(e,t){return ti(e,t)}var ei=new Map;function ti(e,{target:t,anchor:n,props:i={},events:a,context:o,intro:s=!0,transformError:c}){fn();var l=void 0,u=Pn(()=>{var s=n??t.appendChild(pn());Nt(s,{pending:()=>{}},t=>{E({});var n=Je;if(o&&(n.c=o),a&&(i.$$events=a),S&&Xr(t,null),l=e(t,i)||{},S&&(I.nodes.end=C,C===null||C.nodeType!==8||C.data!==`]`))throw Pe(),Oe;D()},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=Ir(r);for(let e of[t,document]){var a=ei.get(e);a===void 0&&(a=new Map,ei.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Kr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(r(Br)),Vr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=ei.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Kr),r.delete(e),r.size===0&&ei.delete(n)):r.set(e,i)}Vr.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return ni.set(l,u),l}var ni=new WeakMap;function ri(e,t){let n=ni.get(e);return n?(ni.delete(e),n(t)):Promise.resolve()}var ii=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)Yn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(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&&(Wn(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();Zn(r,t),t.append(pn()),this.#n.set(e,{effect:r,fragment:t})}else Wn(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),qn(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)||(Wn(n.effect),this.#n.delete(e))};ensure(e,t){var n=O,r=_n();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=pn();i.append(a),this.#n.set(e,{effect:Bn(()=>t(a)),fragment:i})}else this.#t.set(e,Bn(()=>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 S&&(this.anchor=C),this.#a(n)}};function W(e,t,n=!1){var r;S&&(r=C,ze());var i=new ii(e),a=n?ie:0;function o(e,t){if(S){var n=Ve(r);if(e!==parseInt(n.substring(1))){var a=Be();Re(a),i.anchor=a,Le(!1),i.ensure(e,t),Le(!0);return}}i.ensure(e,t)}Rn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function ai(e,t){return t}function oi(e,t,n){for(var i=[],a=t.length,o,s=t.length,c=0;c<a;c++){let n=t[c];qn(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;if(l){var u=n,d=u.parentNode;gn(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|=se,Zn(a,document.createDocumentFragment())):Wn(t[i],n)}}var ci;function li(t,n,i,a,o,s=null){var c=t,l=new Map;if(n&4){var u=t;c=S?Re(mn(u)):u.appendChild(pn())}S&&ze();var d=null,f=Vt(()=>{var t=i();return e(t)?t:t==null?[]:r(t)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,di(v,p,c,n,a),d!==null&&(p.length===0?d.f&33554432?(d.f^=se,pi(d,null,c)):Yn(d):qn(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:Rn(()=>{p=L(f);var e=p.length;let t=!1;S&&Ve(c)===`[!`!=(e===0)&&(c=Be(),Re(c),Le(!1),t=!0);for(var r=new Set,u=O,v=_n(),y=0;y<e;y+=1){S&&C.nodeType===8&&C.data===`]`&&(c=C,t=!0,Le(!1));var ee=p[y],te=a(ee,y),ne=h?null:l.get(te);ne?(ne.v&&Qt(ne.v,ee),ne.i&&Qt(ne.i,y),v&&u.unskip_effect(ne.e)):(ne=fi(l,h?c:ci??=pn(),ee,te,y,o,n,i),h||(ne.e.f|=se),l.set(te,ne)),r.add(te)}if(e===0&&s&&!d&&(h?d=Bn(()=>s(c)):(d=Bn(()=>s(ci??=pn())),d.f|=se)),e>r.size&&ve(``,``,``),S&&e>0&&Re(Be()),!h)if(m.set(u,r),v){for(let[e,t]of l)r.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);t&&Le(!0),L(f)}),flags:n,items:l,pending:m,outrogroups:null,fallback:d};h=!1,S&&(c=C)}function ui(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function di(e,t,n,i,a){var o=(i&8)!=0,s=t.length,c=e.items,l=ui(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&&(Yn(_),o&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=se,_===l)pi(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),mi(e,d,_),mi(e,_,y),pi(_,y,n),d=_,p=[],m=[],l=ui(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var ee=m[0],te;d=ee.prev;var ne=p[0],re=p[p.length-1];for(te=0;te<p.length;te+=1)pi(p[te],ee,n);for(te=0;te<m.length;te+=1)u.delete(m[te]);mi(e,ne.prev,re.next),mi(e,d,ne),mi(e,re,ee),l=ee,d=re,--v,p=[],m=[]}else u.delete(_),pi(_,l,n),mi(e,_.prev,_.next),mi(e,_,d===null?e.effect.first:d.next),mi(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=ui(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=ui(_.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 b=[];if(u!==void 0)for(_ of u)_.f&8192||b.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&b.push(l),l=ui(l.next);var ie=b.length;if(ie>0){var ae=i&4&&s===0?n:null;if(o){for(v=0;v<ie;v+=1)b[v].nodes?.a?.measure();for(v=0;v<ie;v+=1)b[v].nodes?.a?.fix()}oi(e,b,ae)}}o&&$e(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function fi(e,t,n,r,i,a,o,s){var c=o&1?o&16?Xt(n):Zt(n,!1,!1):null,l=o&2?Xt(i):null;return{v:c,i:l,e:Bn(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function pi(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=hn(r);if(a.before(r),r===i)return;r=o}}function mi(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function hi(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;S&&(o=Re(mn(c)))}F(()=>{var e=I;if(s===(s=t()??``)){S&&ze();return}if(n&&!S){e.nodes=null,c.innerHTML=s,s!==``&&Xr(mn(c),c.lastChild);return}if(e.nodes!==null&&(Gn(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(S){for(var a=C.data,l=ze(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=hn(l);if(l===null)throw Pe(),Oe;Xr(C,u),o=Re(l);return}var d=vn(r?`svg`:i?`math`:`template`,r?je:i?Me:void 0);d.innerHTML=s;var f=r||i?d:d.content;if(Xr(mn(f),f.lastChild),r||i)for(;mn(f);)o.before(mn(f));else o.before(f)}})}function gi(e,t,n,r,i){S&&ze();var a=t.$$slots?.[n],o=!1;a===!0&&(a=t[n===`default`?`children`:n],o=!0),a===void 0?i!==null&&i(e):a(e,o?()=>r:r)}function _i(e,t,...n){var r=new ii(e);Rn(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ie)}function vi(e,t,n,r,i,a){let o=S;S&&ze();var s=null;S&&C.nodeType===1&&(s=C,ze());var c=S?C:e,l=new ii(c,!1);Rn(()=>{let e=t()||null;var a=i?i():n||e===`svg`?je:void 0;if(e===null){l.ensure(null,null);return}return l.ensure(e,t=>{if(e){if(s=S?s:vn(e,a),Xr(s,s),r){S&&Rr(e)&&s.append(document.createComment(``));var n=S?mn(s):s.appendChild(pn());S&&(n===null?Le(!1):Re(n)),r(s,n)}I.nodes.end=s,t.before(s)}S&&Re(t)}),()=>{}},ie),An(()=>{}),o&&(Le(!0),Re(c))}function yi(e,t){var n=void 0,r;zn(()=>{n!==(n=t())&&(r&&=(Wn(r),null),n&&(r=Bn(()=>{Fn(()=>n(e))})))})}function bi(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=bi(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function xi(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=bi(e))&&(r&&(r+=` `),r+=t);return r}function G(e){return typeof e==`object`?xi(e):e??``}var Si=[...`
|
|
3
|
-
\r\f\xA0\v`];function Ci(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||Si.includes(r[o-1]))&&(s===r.length||Si.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function wi(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 Ti(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Ei(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(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Ti)),i&&c.push(...Object.keys(i).map(Ti));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=Ti(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+=wi(r)),i&&(n+=wi(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.__className;if(S||o!==n||o===void 0){var s=Ci(n,r,a);(!S||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=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 Di(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 Oi(e,t,n,r){var i=e.__style;if(S||i!==t){var a=Ei(t,r);(!S||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Di(e,n?.[0],r[0]),Di(e,n?.[1],r[1],`important`)):Di(e,n,r));return r}function ki(t,n,r=!1){if(t.multiple){if(n==null)return;if(!e(n))return Fe();for(var i of t.options)i.selected=n.includes(ji(i));return}for(i of t.options)if(on(ji(i),n)){i.selected=!0;return}(!r||n!==void 0)&&(t.selectedIndex=-1)}function Ai(e){var t=new MutationObserver(()=>{ki(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),An(()=>{t.disconnect()})}function ji(e){return`__value`in e?e.__value:e.value}var Mi=Symbol(`class`),Ni=Symbol(`style`),Pi=Symbol(`is custom element`),Fi=Symbol(`is html`),Ii=he?`link`:`LINK`,Li=he?`input`:`INPUT`,Ri=he?`option`:`OPTION`,zi=he?`select`:`SELECT`;function Bi(e){if(S){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.__on_r=n,$e(n),Cn()}}function Vi(e,t){var n=Gi(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function Hi(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function q(e,t,n,r){var i=Gi(e);S&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Ii)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[me]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&qi(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ui(e,t,n,r,i=!1,a=!1){if(S&&i&&e.nodeName===Li){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||Bi(o)}var s=Gi(e),c=s[Pi],l=!s[Fi];let u=S&&c;u&&Le(!1);var d=t||{},f=e.nodeName===Ri;for(var p in t)p in n||(n[p]=null);n.class?n.class=G(n.class):(r||n[Mi])&&(n.class=null),n[Ni]&&(n.style??=null);var m=qi(e);for(let i in n){let o=n[i];if(f&&i===`value`&&o==null){e.value=e.__value=``,d[i]=o;continue}if(i===`class`){K(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[Mi],n[Mi]),d[i]=o,d[Mi]=n[Mi];continue}if(i===`style`){Oi(e,o,t?.[Ni],n[Ni]),d[i]=o,d[Ni]=n[Ni];continue}var h=d[i];if(!(o===h&&!(o===void 0&&e.hasAttribute(i)))){d[i]=o;var g=i[0]+i[1];if(g!==`$$`)if(g===`on`){let t={},n=`$$`+i,r=i.slice(2);var _=jr(r);if(kr(r)&&(r=r.slice(0,-7),t.capture=!0),!_&&h){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(_)R(r,e,o),Wr([r]);else if(o!=null){function a(e){d[i].call(this,e)}d[n]=Hr(r,e,a,t)}}else if(i===`style`)q(e,i,o);else if(i===`autofocus`)bn(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)Hi(e,o);else{var v=i;l||(v=Pr(v));var y=v===`defaultValue`||v===`defaultChecked`;if(o==null&&!c&&!y)if(s[i]=null,v===`value`||v===`checked`){let n=e,r=t===void 0;if(v===`value`){let e=n.defaultValue;n.removeAttribute(v),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(v),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i);else y||m.includes(v)&&(c||typeof o!=`string`)?(e[v]=o,v in s&&(s[v]=ke)):typeof o!=`function`&&q(e,v,o,a)}}}return u&&Le(!0),d}function Wi(e,t,n=[],r=[],i=[],a,o=!1,s=!1){Ft(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===zi,l=!1;if(zn(()=>{var u=t(...n.map(L)),d=Ui(e,r,u,a,o,s);l&&c&&`value`in u&&ki(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||Wn(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&Wn(i[t]),i[t]=Bn(()=>yi(e,()=>f))),d[t]=f}r=d}),c){var u=e;Fn(()=>{ki(u,r.value,!0),Ai(u)})}l=!0})}function Gi(e){return e.__attributes??={[Pi]:e.nodeName.includes(`-`),[Fi]:e.namespaceURI===Ae}}var Ki=new Map;function qi(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ki.get(t);if(n)return n;Ki.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var s in r=o(i),r)r[s].set&&n.push(s);i=l(i)}return n}function Ji(e,t,n=t){var r=new WeakSet;Tn(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Yi(e)?Xi(a):a,n(a),O!==null&&r.add(O),await Cr(),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))}}}),(S&&e.defaultValue!==e.value||Er(t)==null&&e.value)&&(n(Yi(e)?Xi(e.value):e.value),O!==null&&r.add(O)),Ln(()=>{var n=t();if(e===document.activeElement){var i=Ge?ft:O;if(r.has(i))return}Yi(e)&&n===Xi(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Yi(e){var t=e.type;return t===`number`||t===`range`}function Xi(e){return e===``?null:+e}function Zi(e,t){return e===t||e?.[fe]===t}function Qi(e={},t,n,r){var i=Je.r,a=I;return Fn(()=>{var o,s;return Ln(()=>{o=s,s=r?.()||[],Er(()=>{e!==n(...s)&&(t(e,...s),o&&Zi(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&&Zi(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function $i(e=!1){let t=Je,n=t.l.u;if(!n)return;let r=()=>Dr(t.s);if(e){let e=0,n={},i=zt(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>L(i)}n.b.length&&Nn(()=>{ea(t,r),m(n.b)}),jn(()=>{let e=Er(()=>n.m.map(p));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&jn(()=>{ea(t,r),m(n.a)})}function ea(e,t){if(e.l.s)for(let t of e.l.s)L(t);t()}var ta={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function na(e,t,n){return new Proxy({props:e,exclude:t},ta)}var ra={get(e,t){if(!e.exclude.includes(t))return L(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,n){if(!(t in e.special)){var r=I;try{ar(e.parent_effect),e.special[t]=sa({get[t](){return e.props[t]}},t,4)}finally{ar(r)}}return e.special[t](n),en(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)?!0:(e.exclude.push(t),en(e.version),!0)},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function ia(e,t){return new Proxy({props:e,exclude:t,special:{},version:Xt(0),parent_effect:I},ra)}var aa={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===fe||t===pe)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 oa(...e){return new Proxy({props:e},aa)}function sa(e,t,n,r){var i=!Ke||(n&2)!=0,o=(n&8)!=0,s=(n&16)!=0,c=r,l=!0,u=()=>(l&&(l=!1,c=s?Er(r):r),c);let d;if(o){var f=fe in e||pe in e;d=a(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;o?[p,m]=ut(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&Ce(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?zt:Vt)(()=>(_=!1,h()));o&&L(v);var y=I;return(function(e,t){if(arguments.length>0){let n=t?L(v):i&&o?rn(e):e;return j(v,n),_=!0,c!==void 0&&(c=n),e}return er&&_||y.f&16384?v.v:L(v)})}function ca(e){Je===null&&ge(`onMount`),Ke&&Je.l!==null?ua(Je).m.push(e):jn(()=>{let t=Er(e);if(typeof t==`function`)return t})}function la(e){Je===null&&ge(`onDestroy`),ca(()=>()=>Er(e))}function ua(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`),qe();var da={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`},fa=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},pa=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ma=Qr(`<svg><!><!></svg>`);function ha(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=ia(n,[`name`,`color`,`size`,`strokeWidth`,`absoluteStrokeWidth`,`iconNode`]);E(t,!1);let i=sa(t,`name`,8,void 0),a=sa(t,`color`,8,`currentColor`),o=sa(t,`size`,8,24),s=sa(t,`strokeWidth`,8,2),c=sa(t,`absoluteStrokeWidth`,8,!1),l=sa(t,`iconNode`,24,()=>[]);$i();var u=ma();Wi(u,(e,t,n)=>({...da,...e,...r,width:o(),height:o(),stroke:a(),"stroke-width":t,class:n}),[()=>fa(r)?void 0:{"aria-hidden":`true`},()=>(Dr(c()),Dr(s()),Dr(o()),Er(()=>c()?Number(s())*24/Number(o()):s())),()=>(Dr(pa),Dr(i()),Dr(n),Er(()=>pa(`lucide-icon`,`lucide`,i()?`lucide-${i()}`:``,n.class)))]);var d=M(u);li(d,1,l,ai,(e,t)=>{var n=k(()=>g(L(t),2));let r=()=>L(n)[0],i=()=>L(n)[1];var a=V();vi(N(a),r,!0,(e,t)=>{Wi(e,()=>({...i()}))}),H(e,a)}),gi(P(d),t,`default`,{},null),w(u),H(e,u),D()}function ga(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M20 6 9 17l-5-5`}]];ha(e,oa({name:`check`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function _a(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`m6 9 6 6 6-6`}]];ha(e,oa({name:`chevron-down`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function va(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`m15 18-6-6 6-6`}]];ha(e,oa({name:`chevron-left`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function ya(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`m9 18 6-6-6-6`}]];ha(e,oa({name:`chevron-right`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function ba(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`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`}]];ha(e,oa({name:`circle-alert`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function xa(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`}],[`path`,{d:`M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v4`}],[`path`,{d:`M21 14H11`}],[`path`,{d:`m15 10-4 4 4 4`}]];ha(e,oa({name:`clipboard-copy`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function Sa(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`m18 16 4-4-4-4`}],[`path`,{d:`m6 8-4 4 4 4`}],[`path`,{d:`m14.5 4-5 16`}]];ha(e,oa({name:`code-xml`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function Ca(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`}]];ha(e,oa({name:`copy`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function wa(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`circle`,{cx:`12`,cy:`12`,r:`1`}],[`circle`,{cx:`19`,cy:`12`,r:`1`}],[`circle`,{cx:`5`,cy:`12`,r:`1`}]];ha(e,oa({name:`ellipsis`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function Ta(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`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:`M12 18v-6`}],[`path`,{d:`m9 15 3 3 3-3`}]];ha(e,oa({name:`file-down`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function Ea(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`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`}]];ha(e,oa({name:`file-text`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function Da(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`}],[`circle`,{cx:`9`,cy:`9`,r:`2`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`}]];ha(e,oa({name:`image`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function Oa(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M15 3h6v6`}],[`path`,{d:`m21 3-7 7`}],[`path`,{d:`m3 21 7-7`}],[`path`,{d:`M9 21H3v-6`}]];ha(e,oa({name:`maximize-2`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function ka(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3`}],[`path`,{d:`M21 8V5a2 2 0 0 0-2-2h-3`}],[`path`,{d:`M3 16v3a2 2 0 0 0 2 2h3`}],[`path`,{d:`M16 21h3a2 2 0 0 0 2-2v-3`}]];ha(e,oa({name:`maximize`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function Aa(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`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`}]];ha(e,oa({name:`refresh-cw`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function ja(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`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`}]];ha(e,oa({name:`rotate-ccw`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function Ma(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`}],[`circle`,{cx:`12`,cy:`12`,r:`3`}]];ha(e,oa({name:`settings`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function Na(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`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`}]];ha(e,oa({name:`trash-2`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function Pa(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M18 6 6 18`}],[`path`,{d:`m6 6 12 12`}]];ha(e,oa({name:`x`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function Fa(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`circle`,{cx:`11`,cy:`11`,r:`8`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`}],[`line`,{x1:`11`,x2:`11`,y1:`8`,y2:`14`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`}]];ha(e,oa({name:`zoom-in`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}function Ia(e,t){let n=ia(t,[`children`,`$$slots`,`$$events`,`$$legacy`]),r=[[`circle`,{cx:`11`,cy:`11`,r:`8`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`}]];ha(e,oa({name:`zoom-out`},()=>n,{get iconNode(){return r},children:(e,n)=>{var r=V();gi(N(r),t,`default`,{},null),H(e,r)},$$slots:{default:!0}}))}var La=z(`<div role="alert" aria-live="polite" class="fixed top-24 left-1/2 -translate-x-1/2 z-40 w-full max-w-3xl px-4 pointer-events-none"><div class="flex items-start gap-3 px-4 py-2 text-sm bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-900 text-red-900 dark:text-red-200 rounded-lg shadow-lg pointer-events-auto"><!> <p class="flex-1 select-text break-words"> </p> <button type="button" aria-label="Dismiss" class="shrink-0 rounded p-1 -mr-1 hover:bg-red-100 dark:hover:bg-red-900/40 transition-colors"><!></button></div></div>`);function Ra(e,t){var n=V(),r=N(n),i=e=>{var n=La(),r=M(n),i=M(r);ba(i,{class:`size-4 shrink-0 mt-0.5`});var a=P(i,2),o=M(a,!0);w(a);var s=P(a,2);Pa(M(s),{class:`size-4`}),w(s),w(r),w(n),F(()=>U(o,t.error)),R(`click`,s,function(...e){t.ondismiss?.apply(this,e)}),H(e,n)};W(r,e=>{t.error&&e(i)}),H(e,n)}Wr([`click`]);var za=(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},Ba=(e,t)=>({classGroupId:e,validator:t}),Va=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ha=`-`,Ua=[],Wa=`arbitrary..`,Ga=e=>{let t=Ja(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return qa(e);let n=e.split(Ha);return Ka(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?za(i,t):t:i||Ua}return n[e]||Ua}}},Ka=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Ka(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Ha):e.slice(t).join(Ha),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},qa=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?Wa+r:void 0})(),Ja=e=>{let{theme:t,classGroups:n}=e;return Ya(n,t)},Ya=(e,t)=>{let n=Va();for(let r in e){let i=e[r];Xa(i,n,r,t)}return n},Xa=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Za(i,t,n,r)}},Za=(e,t,n,r)=>{if(typeof e==`string`){Qa(e,t,n);return}if(typeof e==`function`){$a(e,t,n,r);return}eo(e,t,n,r)},Qa=(e,t,n)=>{let r=e===``?t:to(t,e);r.classGroupId=n},$a=(e,t,n,r)=>{if(no(e)){Xa(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ba(n,e))},eo=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Xa(o,to(t,a),n,r)}},to=(e,t)=>{let n=e,r=t.split(Ha),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Va(),n.nextPart.set(t,i)),n=i}return n},no=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ro=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)}}},io=`!`,ao=`:`,oo=[],so=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),co=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===ao){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(io)?(c=s.slice(0,-1),l=!0):s.startsWith(io)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return so(t,l,c,u)};if(t){let e=t+ao,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):so(oo,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},lo=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}},uo=e=>({cache:ro(e.cacheSize),parseClassName:co(e),sortModifiers:lo(e),postfixLookupClassGroupIds:fo(e),...Ga(e)}),fo=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},po=/\s+/,mo=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(po),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){l=t+(l.length>0?` `+l:l);continue}if(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?_+io:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let ee=i(g,h);for(let e=0;e<ee.length;++e){let t=ee[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},ho=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=go(n))&&(i&&(i+=` `),i+=r);return i},go=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=go(e[r]))&&(n&&(n+=` `),n+=t);return n},_o=(e,...t)=>{let n,r,i,a,o=o=>(n=uo(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=mo(e,n);return i(e,a),a};return a=o,(...e)=>a(ho(...e))},vo=[],yo=e=>{let t=t=>t[e]||vo;return t.isThemeGetter=!0,t},bo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,So=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Co=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wo=/\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$/,To=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Eo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Do=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Oo=e=>So.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),ko=e=>!!e&&Number.isInteger(Number(e)),Ao=e=>e.endsWith(`%`)&&J(e.slice(0,-1)),jo=e=>Co.test(e),Mo=()=>!0,No=e=>wo.test(e)&&!To.test(e),Po=()=>!1,Fo=e=>Eo.test(e),Io=e=>Do.test(e),Lo=e=>!Y(e)&&!X(e),Ro=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)),zo=e=>es(e,is,Po),Y=e=>bo.test(e),Bo=e=>es(e,as,No),Vo=e=>es(e,os,J),Ho=e=>es(e,cs,Mo),Uo=e=>es(e,ss,Po),Wo=e=>es(e,ns,Po),Go=e=>es(e,rs,Io),Ko=e=>es(e,ls,Fo),X=e=>xo.test(e),qo=e=>ts(e,as),Jo=e=>ts(e,ss),Yo=e=>ts(e,ns),Xo=e=>ts(e,is),Zo=e=>ts(e,rs),Qo=e=>ts(e,ls,!0),$o=e=>ts(e,cs,!0),es=(e,t,n)=>{let r=bo.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ts=(e,t,n=!1)=>{let r=xo.exec(e);return r?r[1]?t(r[1]):n:!1},ns=e=>e===`position`||e===`percentage`,rs=e=>e===`image`||e===`url`,is=e=>e===`length`||e===`size`||e===`bg-size`,as=e=>e===`length`,os=e=>e===`number`,ss=e=>e===`family-name`,cs=e=>e===`number`||e===`weight`,ls=e=>e===`shadow`,us=_o(()=>{let e=yo(`color`),t=yo(`font`),n=yo(`text`),r=yo(`font-weight`),i=yo(`tracking`),a=yo(`leading`),o=yo(`breakpoint`),s=yo(`container`),c=yo(`spacing`),l=yo(`radius`),u=yo(`shadow`),d=yo(`inset-shadow`),f=yo(`text-shadow`),p=yo(`drop-shadow`),m=yo(`blur`),h=yo(`perspective`),g=yo(`aspect`),_=yo(`ease`),v=yo(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],ee=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],te=()=>[...ee(),X,Y],ne=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],re=()=>[`auto`,`contain`,`none`],b=()=>[X,Y,c],ie=()=>[Oo,`full`,`auto`,...b()],ae=()=>[ko,`none`,`subgrid`,X,Y],oe=()=>[`auto`,{span:[`full`,ko,X,Y]},ko,X,Y],se=()=>[ko,`auto`,X,Y],ce=()=>[`auto`,`min`,`max`,`fr`,X,Y],le=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ue=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],de=()=>[`auto`,...b()],fe=()=>[Oo,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...b()],pe=()=>[Oo,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...b()],me=()=>[Oo,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...b()],x=()=>[e,X,Y],he=()=>[...ee(),Yo,Wo,{position:[X,Y]}],ge=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],_e=()=>[`auto`,`cover`,`contain`,Xo,zo,{size:[X,Y]}],ve=()=>[Ao,qo,Bo],ye=()=>[``,`none`,`full`,l,X,Y],be=()=>[``,J,qo,Bo],xe=()=>[`solid`,`dashed`,`dotted`,`double`],Se=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],Ce=()=>[J,Ao,Yo,Wo],we=()=>[``,`none`,m,X,Y],Te=()=>[`none`,J,X,Y],Ee=()=>[`none`,J,X,Y],De=()=>[J,X,Y],Oe=()=>[Oo,`full`,...b()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[jo],breakpoint:[jo],color:[Mo],container:[jo],"drop-shadow":[jo],ease:[`in`,`out`,`in-out`],font:[Lo],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[jo],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[jo],shadow:[jo],spacing:[`px`,J],text:[jo],"text-shadow":[jo],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Oo,Y,X,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,X,Y]}],"container-named":[Ro],columns:[{columns:[J,Y,X,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:te()}],overflow:[{overflow:ne()}],"overflow-x":[{"overflow-x":ne()}],"overflow-y":[{"overflow-y":ne()}],overscroll:[{overscroll:re()}],"overscroll-x":[{"overscroll-x":re()}],"overscroll-y":[{"overscroll-y":re()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:ie()}],"inset-x":[{"inset-x":ie()}],"inset-y":[{"inset-y":ie()}],start:[{"inset-s":ie(),start:ie()}],end:[{"inset-e":ie(),end:ie()}],"inset-bs":[{"inset-bs":ie()}],"inset-be":[{"inset-be":ie()}],top:[{top:ie()}],right:[{right:ie()}],bottom:[{bottom:ie()}],left:[{left:ie()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[ko,`auto`,X,Y]}],basis:[{basis:[Oo,`full`,`auto`,s,...b()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[J,Oo,`auto`,`initial`,`none`,Y]}],grow:[{grow:[``,J,X,Y]}],shrink:[{shrink:[``,J,X,Y]}],order:[{order:[ko,`first`,`last`,`none`,X,Y]}],"grid-cols":[{"grid-cols":ae()}],"col-start-end":[{col:oe()}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":ae()}],"row-start-end":[{row:oe()}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...le(),`normal`]}],"justify-items":[{"justify-items":[...ue(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ue()]}],"align-content":[{content:[`normal`,...le()]}],"align-items":[{items:[...ue(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ue(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...ue(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ue()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:de()}],mx:[{mx:de()}],my:[{my:de()}],ms:[{ms:de()}],me:[{me:de()}],mbs:[{mbs:de()}],mbe:[{mbe:de()}],mt:[{mt:de()}],mr:[{mr:de()}],mb:[{mb:de()}],ml:[{ml:de()}],"space-x":[{"space-x":b()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":b()}],"space-y-reverse":[`space-y-reverse`],size:[{size:fe()}],"inline-size":[{inline:[`auto`,...pe()]}],"min-inline-size":[{"min-inline":[`auto`,...pe()]}],"max-inline-size":[{"max-inline":[`none`,...pe()]}],"block-size":[{block:[`auto`,...me()]}],"min-block-size":[{"min-block":[`auto`,...me()]}],"max-block-size":[{"max-block":[`none`,...me()]}],w:[{w:[s,`screen`,...fe()]}],"min-w":[{"min-w":[s,`screen`,`none`,...fe()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...fe()]}],h:[{h:[`screen`,`lh`,...fe()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...fe()]}],"max-h":[{"max-h":[`screen`,`lh`,...fe()]}],"font-size":[{text:[`base`,n,qo,Bo]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,$o,Ho]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Ao,Y]}],"font-family":[{font:[Jo,Uo,t]}],"font-features":[{"font-features":[Y]}],"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,X,Y]}],"line-clamp":[{"line-clamp":[J,`none`,X,Vo]}],leading:[{leading:[a,...b()]}],"list-image":[{"list-image":[`none`,X,Y]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,X,Y]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...xe(),`wavy`]}],"text-decoration-thickness":[{decoration:[J,`from-font`,`auto`,X,Bo]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[J,`auto`,X,Y]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:b()}],"tab-size":[{tab:[ko,X,Y]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,X,Y]}],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`,X,Y]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:he()}],"bg-repeat":[{bg:ge()}],"bg-size":[{bg:_e()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},ko,X,Y],radial:[``,X,Y],conic:[ko,X,Y]},Zo,Go]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:ve()}],"gradient-via-pos":[{via:ve()}],"gradient-to-pos":[{to:ve()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:ye()}],"rounded-s":[{"rounded-s":ye()}],"rounded-e":[{"rounded-e":ye()}],"rounded-t":[{"rounded-t":ye()}],"rounded-r":[{"rounded-r":ye()}],"rounded-b":[{"rounded-b":ye()}],"rounded-l":[{"rounded-l":ye()}],"rounded-ss":[{"rounded-ss":ye()}],"rounded-se":[{"rounded-se":ye()}],"rounded-ee":[{"rounded-ee":ye()}],"rounded-es":[{"rounded-es":ye()}],"rounded-tl":[{"rounded-tl":ye()}],"rounded-tr":[{"rounded-tr":ye()}],"rounded-br":[{"rounded-br":ye()}],"rounded-bl":[{"rounded-bl":ye()}],"border-w":[{border:be()}],"border-w-x":[{"border-x":be()}],"border-w-y":[{"border-y":be()}],"border-w-s":[{"border-s":be()}],"border-w-e":[{"border-e":be()}],"border-w-bs":[{"border-bs":be()}],"border-w-be":[{"border-be":be()}],"border-w-t":[{"border-t":be()}],"border-w-r":[{"border-r":be()}],"border-w-b":[{"border-b":be()}],"border-w-l":[{"border-l":be()}],"divide-x":[{"divide-x":be()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":be()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...xe(),`hidden`,`none`]}],"divide-style":[{divide:[...xe(),`hidden`,`none`]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-bs":[{"border-bs":x()}],"border-color-be":[{"border-be":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...xe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[J,X,Y]}],"outline-w":[{outline:[``,J,qo,Bo]}],"outline-color":[{outline:x()}],shadow:[{shadow:[``,`none`,u,Qo,Ko]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":[`none`,d,Qo,Ko]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:be()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[J,Bo]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":be()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":[`none`,f,Qo,Ko]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[J,X,Y]}],"mix-blend":[{"mix-blend":[...Se(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":Se()}],"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":[J]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ce()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":Ce()}],"mask-image-t-to-pos":[{"mask-t-to":Ce()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":Ce()}],"mask-image-r-to-pos":[{"mask-r-to":Ce()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":Ce()}],"mask-image-b-to-pos":[{"mask-b-to":Ce()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":Ce()}],"mask-image-l-to-pos":[{"mask-l-to":Ce()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":Ce()}],"mask-image-x-to-pos":[{"mask-x-to":Ce()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":Ce()}],"mask-image-y-to-pos":[{"mask-y-to":Ce()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[X,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ce()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"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":ee()}],"mask-image-conic-pos":[{"mask-conic":[J]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ce()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:he()}],"mask-repeat":[{mask:ge()}],"mask-size":[{mask:_e()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,X,Y]}],filter:[{filter:[``,`none`,X,Y]}],blur:[{blur:we()}],brightness:[{brightness:[J,X,Y]}],contrast:[{contrast:[J,X,Y]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Qo,Ko]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:[``,J,X,Y]}],"hue-rotate":[{"hue-rotate":[J,X,Y]}],invert:[{invert:[``,J,X,Y]}],saturate:[{saturate:[J,X,Y]}],sepia:[{sepia:[``,J,X,Y]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,X,Y]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[J,X,Y]}],"backdrop-contrast":[{"backdrop-contrast":[J,X,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,J,X,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,X,Y]}],"backdrop-invert":[{"backdrop-invert":[``,J,X,Y]}],"backdrop-opacity":[{"backdrop-opacity":[J,X,Y]}],"backdrop-saturate":[{"backdrop-saturate":[J,X,Y]}],"backdrop-sepia":[{"backdrop-sepia":[``,J,X,Y]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,X,Y]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[J,`initial`,X,Y]}],ease:[{ease:[`linear`,`initial`,_,X,Y]}],delay:[{delay:[J,X,Y]}],animate:[{animate:[`none`,v,X,Y]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,X,Y]}],"perspective-origin":[{"perspective-origin":te()}],rotate:[{rotate:Te()}],"rotate-x":[{"rotate-x":Te()}],"rotate-y":[{"rotate-y":Te()}],"rotate-z":[{"rotate-z":Te()}],scale:[{scale:Ee()}],"scale-x":[{"scale-x":Ee()}],"scale-y":[{"scale-y":Ee()}],"scale-z":[{"scale-z":Ee()}],"scale-3d":[`scale-3d`],skew:[{skew:De()}],"skew-x":[{"skew-x":De()}],"skew-y":[{"skew-y":De()}],transform:[{transform:[X,Y,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:te()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:Oe()}],"translate-x":[{"translate-x":Oe()}],"translate-y":[{"translate-y":Oe()}],"translate-z":[{"translate-z":Oe()}],"translate-none":[`translate-none`],zoom:[{zoom:[ko,X,Y]}],accent:[{accent:x()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:x()}],"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`,X,Y]}],"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":x()}],"scrollbar-track-color":[{"scrollbar-track":x()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"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`,X,Y]}],fill:[{fill:[`none`,...x()]}],"stroke-w":[{stroke:[J,qo,Bo,Vo]}],stroke:[{stroke:[`none`,...x()]}],"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":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`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-r`,`border-w-l`],"border-w-y":[`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-r`,`border-color-l`],"border-color-y":[`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-mr`,`scroll-ml`],"scroll-my":[`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-pr`,`scroll-pl`],"scroll-py":[`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 Z(...e){return us(xi(e))}var ds={EXACT:`exact`,NORMALIZED:`normalized`,FUZZY:`fuzzy`,UNRESOLVED:`unresolved`},fs={SERIF:`serif`,SANS_SERIF:`sans-serif`},ps={LIGHT:`light`,DARK:`dark`,SYSTEM:`system`},ms={"app.loading":`Loading...`,"app.noDocuments":`No documents open.`,"app.noDocumentsHintPrefix":`Run`,"app.noDocumentsHintSuffix":`to add a file.`,"app.footer":`Made with ❤️ by Jay and Claude`,"header.selectTextToReanchor":`Select text to re-anchor`,"actions.ariaLabel":`Actions menu`,"actions.settings":`Settings`,"actions.reload":`Reload`,"actions.copyAll":`Copy All`,"actions.exportJson":`Export JSON`,"actions.viewRaw":`View Raw`,"settings.title":`Settings`,"settings.theme":`Theme`,"settings.font":`Font`,"settings.language":`Language`,"settings.theme.system":`System`,"settings.theme.light":`Light`,"settings.theme.dark":`Dark`,"settings.font.serif":`Serif`,"settings.font.sansSerif":`Sans-serif`,"comment.placeholder":`Add your comment...`,"comment.cancel":`Cancel`,"comment.addNote":`Add Note`,"comment.highlight":`Highlight`,"marginNote.addNote":`Add note`,"marginNote.delete":`Delete`,"marginNote.edit":`Edit`,"marginNote.copy":`Copy`,"commentManager.unresolved":`unresolved`,"commentManager.deleteAllConfirm":`Delete all {{count}} comments?`,"commentManager.delete":`Delete`,"commentManager.cancel":`Cancel`,"commentManager.copyAllTitle":`Copy all comments`,"commentManager.deleteAllTitle":`Delete all comments`,"commentManager.noComments":`No comments yet`,"commentList.edit":`Edit`,"commentList.delete":`Delete`,"commentList.goTo":`Go to`,"commentList.reanchor":`Re-anchor`,"commentList.unresolved":`unresolved`,"commentNav.previous":`Previous comment (Alt+↑)`,"commentNav.next":`Next comment (Alt+↓)`,"commentNav.of":`{{current}} of {{total}}`,"editor.save":`Save`,"editor.cancel":`Cancel`,"reanchor.question":`Re-anchor to this selection?`,"reanchor.confirm":`Confirm`,"reanchor.cancel":`Cancel`,"rawModal.title":`Raw Comments`,"rawModal.copyTitle":`Copy to clipboard`,"rawModal.loading":`Loading...`,"rawModal.noComments":`No comments file yet. Add comments to create one.`,"rawModal.copiedToClipboard":`Copied to clipboard`,"rawModal.failedToCopy":`Failed to copy`,"toast.copied":`Copied: "{{text}}"`,"toast.copiedAllComments":`Copied all comments`,"commentBadge.title":`{{count}} comment`,"commentBadge.titlePlural":`{{count}} comments`,"shortcuts.title":`Keyboard Shortcuts`,"shortcutGroup.copy":`Copy`,"shortcutGroup.navigate":`Navigate`,"shortcutGroup.other":`Other`,"shortcuts.resetToDefaults":`Reset to defaults`,"shortcuts.enableDisable":`Enable/disable shortcut`,"shortcutCapture.pressKeys":`Press keys...`,"shortcutCapture.reserved":`{{binding}} is reserved`,"shortcutCapture.ariaLabel":`Press a key combination`,"shortcut.copyAll.label":`Copy All (AI)`,"shortcut.copyAll.description":`Copy all comments in AI prompt format`,"shortcut.copyAllRaw.label":`Copy All (Raw)`,"shortcut.copyAllRaw.description":`Copy all comments as raw text`,"shortcut.navigateNext.label":`Next Comment`,"shortcut.navigateNext.description":`Navigate to next comment`,"shortcut.navigatePrevious.label":`Previous Comment`,"shortcut.navigatePrevious.description":`Navigate to previous comment`,"shortcut.copySelectionRaw.label":`Copy Selection`,"shortcut.copySelectionRaw.description":`Copy selected text`,"shortcut.copySelectionLLM.label":`Copy Selection (LLM)`,"shortcut.copySelectionLLM.description":`Copy selected text with context for LLM`,"shortcut.clearSelection.label":`Clear Selection`,"shortcut.clearSelection.description":`Clear text selection`,"mermaid.modalTitle":`Mermaid diagram`,"mermaid.viewGraph":`Graph`,"mermaid.viewCode":`Code`,"mermaid.showSource":`Show source`,"mermaid.showDiagram":`Show diagram`,"mermaid.expand":`Expand diagram`,"mermaid.zoomIn":`Zoom in`,"mermaid.zoomOut":`Zoom out`,"mermaid.zoomFit":`Fit to screen`,"mermaid.zoomReset":`Reset zoom`},hs={"app.loading":`読み込み中...`,"app.noDocuments":`開いているドキュメントがありません。`,"app.noDocumentsHintPrefix":``,"app.noDocumentsHintSuffix":`を実行してファイルを追加してください。`,"app.footer":`Made with ❤️ by Jay and Claude`,"header.selectTextToReanchor":`テキストを選択して再アンカー`,"actions.ariaLabel":`操作メニュー`,"actions.settings":`設定`,"actions.reload":`再読み込み`,"actions.copyAll":`全てコピー`,"actions.exportJson":`JSONエクスポート`,"actions.viewRaw":`生データを表示`,"settings.title":`設定`,"settings.theme":`テーマ`,"settings.font":`フォント`,"settings.language":`言語`,"settings.theme.system":`システム`,"settings.theme.light":`ライト`,"settings.theme.dark":`ダーク`,"settings.font.serif":`明朝体`,"settings.font.sansSerif":`ゴシック体`,"comment.placeholder":`コメントを入力...`,"comment.cancel":`キャンセル`,"comment.addNote":`メモを追加`,"comment.highlight":`ハイライト`,"marginNote.addNote":`メモを追加`,"marginNote.delete":`削除`,"marginNote.edit":`編集`,"marginNote.copy":`コピー`,"commentManager.unresolved":`未解決`,"commentManager.deleteAllConfirm":`{{count}}件のコメントを全て削除しますか?`,"commentManager.delete":`削除`,"commentManager.cancel":`キャンセル`,"commentManager.copyAllTitle":`全てのコメントをコピー`,"commentManager.deleteAllTitle":`全てのコメントを削除`,"commentManager.noComments":`コメントはまだありません`,"commentList.edit":`編集`,"commentList.delete":`削除`,"commentList.goTo":`移動`,"commentList.reanchor":`再アンカー`,"commentList.unresolved":`未解決`,"commentNav.previous":`前のコメント (Alt+↑)`,"commentNav.next":`次のコメント (Alt+↓)`,"commentNav.of":`{{current}} / {{total}}`,"editor.save":`保存`,"editor.cancel":`キャンセル`,"reanchor.question":`この選択範囲に再アンカーしますか?`,"reanchor.confirm":`確認`,"reanchor.cancel":`キャンセル`,"rawModal.title":`コメント生データ`,"rawModal.copyTitle":`クリップボードにコピー`,"rawModal.loading":`読み込み中...`,"rawModal.noComments":`コメントファイルはまだありません。コメントを追加して作成してください。`,"rawModal.copiedToClipboard":`クリップボードにコピーしました`,"rawModal.failedToCopy":`コピーに失敗しました`,"toast.copied":`コピーしました: "{{text}}"`,"toast.copiedAllComments":`全てのコメントをコピーしました`,"commentBadge.title":`{{count}}件のコメント`,"commentBadge.titlePlural":`{{count}}件のコメント`,"shortcuts.title":`キーボードショートカット`,"shortcutGroup.copy":`コピー`,"shortcutGroup.navigate":`ナビゲーション`,"shortcutGroup.other":`その他`,"shortcuts.resetToDefaults":`初期設定に戻す`,"shortcuts.enableDisable":`ショートカットの有効/無効`,"shortcutCapture.pressKeys":`キーを入力...`,"shortcutCapture.reserved":`{{binding}} は予約されています`,"shortcutCapture.ariaLabel":`キーの組み合わせを入力`,"shortcut.copyAll.label":`全てコピー (AI)`,"shortcut.copyAll.description":`全コメントをAIプロンプト形式でコピー`,"shortcut.copyAllRaw.label":`全てコピー (テキスト)`,"shortcut.copyAllRaw.description":`全コメントをテキストとしてコピー`,"shortcut.navigateNext.label":`次のコメント`,"shortcut.navigateNext.description":`次のコメントに移動`,"shortcut.navigatePrevious.label":`前のコメント`,"shortcut.navigatePrevious.description":`前のコメントに移動`,"shortcut.copySelectionRaw.label":`選択をコピー`,"shortcut.copySelectionRaw.description":`選択テキストをコピー`,"shortcut.copySelectionLLM.label":`選択をコピー (LLM)`,"shortcut.copySelectionLLM.description":`選択テキストをLLMコンテキスト付きでコピー`,"shortcut.clearSelection.label":`選択を解除`,"shortcut.clearSelection.description":`テキスト選択を解除`,"mermaid.modalTitle":`Mermaid ダイアグラム`,"mermaid.viewGraph":`図`,"mermaid.viewCode":`コード`,"mermaid.showSource":`ソースを表示`,"mermaid.showDiagram":`図を表示`,"mermaid.expand":`拡大表示`,"mermaid.zoomIn":`拡大`,"mermaid.zoomOut":`縮小`,"mermaid.zoomFit":`画面に合わせる`,"mermaid.zoomReset":`ズームをリセット`},gs={JA:`ja`,EN:`en`},_s={[gs.JA]:hs,[gs.EN]:ms};function vs(e){let t=_s[e];return function(e,n){let r=t[e];if(!n)return r;for(let[e,t]of Object.entries(n))r=r.replaceAll(`{{${e}}}`,String(t));return r}}var ys=`readit:locale`;function bs(){return navigator.language.slice(0,2).toLowerCase()===`ja`?gs.JA:gs.EN}function xs(){try{let e=localStorage.getItem(ys);if(e===gs.JA||e===gs.EN)return e}catch{}return bs()}var Ss=rn({locale:xs()});function Cs(e){Ss.locale=e;try{localStorage.setItem(ys,e)}catch{}}function Q(e,t){return vs(Ss.locale)(e,t)}var ws=`readit:theme`,Ts=`(prefers-color-scheme: dark)`;function Es(){try{let e=localStorage.getItem(ws);if(e===ps.LIGHT||e===ps.DARK||e===ps.SYSTEM)return e}catch{}return ps.SYSTEM}function Ds(e){let t=e===ps.DARK||e===ps.SYSTEM&&window.matchMedia(Ts).matches;document.documentElement.classList.toggle(`dark`,t)}var Os=rn({fontFamily:fs.SERIF,themeMode:Es()});async function ks(e){Os.fontFamily=e;try{if(!(await fetch(`/api/settings`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify({fontFamily:e})})).ok)throw Error(`Failed to save settings`)}catch(e){console.error(`Failed to save font preference:`,e)}}function As(e){Os.themeMode=e,Ds(e),Ns();try{localStorage.setItem(ws,e)}catch{}}function js(e){e?.fontFamily&&(Os.fontFamily=e.fontFamily),Ds(Os.themeMode),Ns()}var Ms;function Ns(){if(Ms&&=(Ms(),void 0),Os.themeMode!==ps.SYSTEM)return;let e=window.matchMedia(Ts),t=()=>Ds(ps.SYSTEM);e.addEventListener(`change`,t),Ms=()=>e.removeEventListener(`change`,t)}var Ps=z(`<button><!></button>`);function Fs(e,t){E(t,!0);let n={default:`bg-blue-600 text-white hover:bg-blue-700`,secondary:`bg-zinc-100 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 hover:bg-zinc-200 dark:hover:bg-zinc-700`,outline:`border border-zinc-200 dark:border-zinc-700 bg-white dark:bg-zinc-900 text-zinc-700 dark:text-zinc-300 hover:bg-zinc-50 dark:hover:bg-zinc-800`,ghost:`text-zinc-600 dark:text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-800 hover:text-zinc-900 dark:hover:text-zinc-100`,destructive:`bg-red-600 text-white hover:bg-red-700`,link:`text-zinc-600 dark:text-zinc-400 underline-offset-4 hover:underline`},r={default:`h-9 px-4`,sm:`h-8 px-3 text-xs`,lg:`h-10 px-6`,icon:`size-9`},i=sa(t,`variant`,3,`default`),a=sa(t,`size`,3,`default`),o=sa(t,`type`,3,`button`),s=na(t,[`$$slots`,`$$events`,`$$legacy`,`variant`,`size`,`class`,`type`,`children`]);var c=Ps();Wi(c,e=>({...s,type:o(),class:e}),[()=>Z(`inline-flex items-center justify-center gap-2 rounded-lg text-sm font-medium transition-colors duration-150 active:scale-[0.98] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0`,n[i()],r[a()],t.class)]),_i(M(c),()=>t.children),w(c),H(e,c),D()}function Is(e,t){E(t,!0);let n={title:`text-lg font-semibold tracking-tight text-zinc-900 dark:text-zinc-100`,section:`text-sm font-medium text-zinc-900 dark:text-zinc-100`,subsection:`text-xs font-medium text-zinc-700 dark:text-zinc-300`,overline:`text-xs font-medium text-zinc-500 dark:text-zinc-400 uppercase tracking-wider`,body:`text-sm text-zinc-600 dark:text-zinc-400`,caption:`text-xs text-zinc-500 dark:text-zinc-400`,micro:`text-[10px] text-zinc-400 dark:text-zinc-500`},r=sa(t,`variant`,3,`body`),i=sa(t,`as`,3,`p`),a=k(()=>Os.fontFamily===fs.SANS_SERIF?`font-sans`:`font-serif`);var o=V();vi(N(o),i,!1,(e,i)=>{Wi(e,e=>({class:e}),[()=>Z(L(a),n[r()],t.class)]);var o=V();_i(N(o),()=>t.children),H(i,o)}),H(e,o),D()}var Ls=z(`<div data-comment-input="" class="border-t border-zinc-200 dark:border-zinc-700 pt-3 pb-2"><!> <textarea></textarea> <div class="flex justify-end items-center gap-3 mt-2 text-sm"><!> <!></div></div>`);function Rs(e,t){E(t,!0);let n=A(``),r=A(void 0),i=k(()=>Os.fontFamily===fs.SANS_SERIF?`font-sans`:`font-serif`);ca(()=>{L(r)&&window.matchMedia(`(pointer: fine)`).matches&&L(r).focus()});function a(){t.onsubmit(L(n).trim()),j(n,``)}function o(e){e.key===`Enter`&&e.metaKey&&(e.preventDefault(),a()),e.key===`Escape`&&t.oncancel()}var s=V(),c=N(s),l=e=>{var s=Ls(),c=M(s);Is(c,{variant:`caption`,as:`div`,class:`italic mb-2 line-clamp-2`,children:(e,n)=>{T();var r=B();F(()=>U(r,`"${t.selectedText??``}"`)),H(e,r)},$$slots:{default:!0}});var l=P(c,2);xn(l),q(l,`rows`,2),Qi(l,e=>j(r,e),()=>L(r));var u=P(l,2),d=M(u);Fs(d,{variant:`ghost`,size:`sm`,get onclick(){return t.oncancel},children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`comment.cancel`)]),H(e,n)},$$slots:{default:!0}}),Fs(P(d,2),{variant:`link`,size:`sm`,onclick:a,title:`Cmd+Enter`,children:(e,t)=>{T();var r=B();F(e=>U(r,e),[()=>L(n).trim()?Q(`comment.addNote`):Q(`comment.highlight`)]),H(e,r)},$$slots:{default:!0}}),w(u),w(s),F((e,t)=>{q(l,`placeholder`,e),K(l,1,t)},[()=>Q(`comment.placeholder`),()=>G(Z(L(i),`w-full px-2 py-1.5 text-sm border border-zinc-200 dark:border-zinc-700 dark:bg-zinc-800 resize-none focus:outline-none focus:border-zinc-400 dark:focus:border-zinc-500`))]),R(`keydown`,l,o),Ji(l,()=>L(n),e=>j(n,e)),H(e,s)};W(c,e=>{t.selectedText&&e(l)}),H(e,s),D()}Wr([`keydown`]);var zs=z(`<fieldset class="fixed bottom-6 left-1/2 -translate-x-1/2 z-40"><div><!> <!> <!></div></fieldset>`);function Bs(e,t){E(t,!0);let n=A(!1),r=A(null),i;la(()=>{clearTimeout(i)});function a(){j(r,`prev`),t.onprevious(),clearTimeout(i),i=setTimeout(()=>{j(r,null)},200)}function o(){j(r,`next`),t.onnext(),clearTimeout(i),i=setTimeout(()=>{j(r,null)},200)}let s=k(()=>t.sortedComments.length);var c=V(),l=N(c),u=e=>{var i=zs(),c=M(i),l=M(c);{let e=k(()=>Z(`size-7 rounded-full text-zinc-400 dark:text-zinc-500 hover:text-zinc-600 dark:hover:text-zinc-300`,L(r)===`prev`&&`scale-90 bg-zinc-100 dark:bg-zinc-800 text-zinc-600 dark:text-zinc-300`)),t=k(()=>Q(`commentNav.previous`));Fs(l,{variant:`ghost`,size:`icon`,get class(){return L(e)},onclick:a,get title(){return L(t)},children:(e,t)=>{va(e,{class:`w-4 h-4`})},$$slots:{default:!0}})}var u=P(l,2);{let e=k(()=>Z(`px-3 tabular-nums select-none min-w-[4rem] text-center`,`transition-transform duration-200 ease-out`,L(r)===`prev`&&`-translate-x-0.5`,L(r)===`next`&&`translate-x-0.5`));Is(u,{variant:`body`,as:`span`,get class(){return L(e)},children:(e,n)=>{T();var r=B();F(e=>U(r,e),[()=>Q(`commentNav.of`,{current:t.currentIndex+1,total:L(s)})]),H(e,r)},$$slots:{default:!0}})}var d=P(u,2);{let e=k(()=>Z(`size-7 rounded-full text-zinc-400 dark:text-zinc-500 hover:text-zinc-600 dark:hover:text-zinc-300`,L(r)===`next`&&`scale-90 bg-zinc-100 dark:bg-zinc-800 text-zinc-600 dark:text-zinc-300`)),t=k(()=>Q(`commentNav.next`));Fs(d,{variant:`ghost`,size:`icon`,get class(){return L(e)},onclick:o,get title(){return L(t)},children:(e,t)=>{ya(e,{class:`w-4 h-4`})},$$slots:{default:!0}})}w(c),w(i),F(e=>K(c,1,e),[()=>G(Z(`inline-flex items-center gap-1 h-9 px-3 rounded-full`,`bg-white/90 dark:bg-zinc-900/90 backdrop-blur-md shadow-lg border border-zinc-200/60 dark:border-zinc-700/60`,`transition-opacity duration-150 ease-out`,L(n)?`opacity-100`:`opacity-0`))]),Ur(`mouseenter`,i,()=>j(n,!0)),Ur(`mouseleave`,i,()=>j(n,!1)),H(e,i)};W(l,e=>{L(s)>1&&e(u)}),H(e,c),D()}var Vs=6e4,Hs=60*Vs,Us=24*Hs;function Ws(e,t=Date.now()){if(!e)return``;let n=Date.parse(e);if(Number.isNaN(n))return``;let r=Math.max(0,t-n);return r<Vs?`now`:r<Hs?`${Math.floor(r/Vs)}m`:r<Us?`${Math.floor(r/Hs)}h`:`${Math.floor(r/Us)}d`}var Gs=rn({activeCommentId:void 0});function Ks(e){Gs.activeCommentId=e}var qs=z(`<div class="space-y-2"><textarea></textarea> <div class="flex gap-3 text-sm"><!> <!></div></div>`);function Js(e,t){E(t,!0);let n=sa(t,`rows`,3,2),r=k(()=>Os.fontFamily===fs.SANS_SERIF?`font-sans`:`font-serif`),i=A(rn(t.initialText)),a=A(void 0);jn(()=>{L(a)?.focus()}),jn(()=>{let e=L(a);e&&(L(i),e.style.height=`auto`,e.style.height=`${e.scrollHeight}px`)});function o(){L(i).trim()&&t.onsave(L(i))}function s(e){e.key===`Enter`&&e.metaKey&&o(),e.key===`Escape`&&t.oncancel()}var c=qs(),l=M(c);xn(l),Qi(l,e=>j(a,e),()=>L(a));var u=P(l,2),d=M(u);Fs(d,{variant:`link`,size:`sm`,onclick:o,children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`editor.save`)]),H(e,n)},$$slots:{default:!0}}),Fs(P(d,2),{variant:`ghost`,size:`sm`,get onclick(){return t.oncancel},children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`editor.cancel`)]),H(e,n)},$$slots:{default:!0}}),w(u),w(c),F(e=>{K(l,1,e),q(l,`rows`,n())},[()=>G(Z(L(r),`w-full px-2 py-1.5 text-sm border border-zinc-200 dark:border-zinc-700 dark:bg-zinc-800 resize-none overflow-y-auto max-h-[60vh] focus:outline-none focus:border-zinc-400 dark:focus:border-zinc-500`,t.class))]),R(`keydown`,l,s),Ji(l,()=>L(i),e=>j(i,e)),H(e,c),D()}Wr([`keydown`]);var Ys=z(`<button type="button"><!></button>`);function Xs(e,t){E(t,!0);let n={default:`hover:text-zinc-600`,destructive:`hover:text-red-500`},r=sa(t,`variant`,3,`default`),i=sa(t,`disabled`,3,!1);var a=Ys();_i(M(a),()=>t.children),w(a),F(e=>{a.disabled=i(),K(a,1,e)},[()=>G(Z(`cursor-pointer transition-colors duration-150`,n[r()],t.class))]),R(`click`,a,function(...e){t.onclick?.apply(this,e)}),H(e,a),D()}Wr([`click`]);var Zs=z(`<span class="ml-auto text-[10px] text-zinc-400 dark:text-zinc-500 tabular-nums"> </span>`),Qs=z(`<p> </p>`),$s=z(`<p> </p>`),ec=z(`<span aria-hidden="true">·</span> <!>`,1),tc=z(`<!> <div class="flex items-center text-xs text-zinc-500 dark:text-zinc-400 gap-1.5 pt-2 border-t border-zinc-100 dark:border-zinc-800"><!> <span aria-hidden="true">·</span> <!> <!></div>`,1),nc=z(`<div role="dialog" aria-label="Comment details"><div class="flex items-baseline gap-2 mb-2"><span class="text-xs font-bold tabular-nums text-zinc-600 dark:text-zinc-300"> </span> <!></div> <div> </div> <!></div>`);function rc(e,t){E(t,!0);let n=A(!0),r=A(void 0);jn(()=>{t.comment.id,j(n,!0)});let i=A(`opacity: 0;`),a=A(!1),o=k(()=>Os.fontFamily===fs.SANS_SERIF?`font-sans`:`font-serif`),s=k(()=>t.comment.comment.trim().length>0),c=k(()=>Ws(t.comment.createdAt));function l(){let e=document.querySelector(`[data-comment-id="${t.comment.id}"]`);if(!e||!L(r))return;let n=e.getBoundingClientRect(),a=L(r).offsetWidth||320,o=L(r).offsetHeight||200,s=n.left-a-12;s<8&&(s=n.right+12);let c=window.innerHeight-o-8,l=n.top+n.height/2-o/2;l<8&&(l=8),l>c&&(l=Math.max(8,c)),j(i,`left: ${s}px; top: ${l}px; opacity: 1;`)}function u(){Ks(void 0)}function d(e){e.key===`Escape`&&u()}function f(e){if(!L(a))return;let n=e.target;n&&(L(r)?.contains(n)||n.closest(`[data-comment-id="${t.comment.id}"]`)||u())}ca(()=>{requestAnimationFrame(()=>{l(),j(a,!0)});let e=()=>l();return window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,{passive:!0}),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e)}}),jn(()=>{t.comment.id,L(r)&&l()});var p=nc();Ur(`keydown`,sn,d),Ur(`mousedown`,cn,f);var m=M(p),h=M(m),g=M(h,!0);w(h);var _=P(h,2),v=e=>{var t=Zs(),n=M(t,!0);w(t),F(()=>U(n,L(c))),H(e,t)};W(_,e=>{L(c)&&e(v)}),w(m);var y=P(m,2),ee=M(y);w(y);var te=P(y,2),ne=e=>{Js(e,{get initialText(){return t.comment.comment},onsave:e=>{t.onedit(t.comment.id,e),j(n,!1)},oncancel:()=>j(n,!1)})},re=e=>{var r=tc(),i=N(r),a=e=>{var n=Qs(),r=M(n,!0);w(n),F(e=>{K(n,1,e),U(r,t.comment.comment)},[()=>G(Z(L(o),`text-sm text-zinc-800 dark:text-zinc-200 whitespace-pre-wrap mb-3`))]),H(e,n)},c=e=>{var t=$s(),n=M(t,!0);w(t),F((e,r)=>{K(t,1,e),U(n,r)},[()=>G(Z(L(o),`text-xs text-zinc-400 dark:text-zinc-500 italic mb-3`)),()=>Q(`marginNote.addNote`)]),H(e,t)};W(i,e=>{L(s)?e(a):e(c,-1)});var l=P(i,2),d=M(l);Xs(d,{onclick:()=>j(n,!0),children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>L(s)?Q(`marginNote.edit`):Q(`marginNote.addNote`)]),H(e,n)},$$slots:{default:!0}});var f=P(d,4);Xs(f,{variant:`destructive`,onclick:()=>{t.ondelete(t.comment.id),u()},children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`marginNote.delete`)]),H(e,n)},$$slots:{default:!0}});var p=P(f,2),m=e=>{var n=ec();Xs(P(N(n),2),{onclick:()=>t.oncopy(t.comment),children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`marginNote.copy`)]),H(e,n)},$$slots:{default:!0}}),H(e,n)};W(p,e=>{L(s)&&e(m)}),w(l),H(e,r)};W(te,e=>{L(n)?e(ne):e(re,-1)}),w(p),Qi(p,e=>j(r,e),()=>L(r)),F((e,n)=>{K(p,1,e),Oi(p,L(i)),U(g,t.index+1),K(y,1,n),U(ee,`"${t.comment.selectedText??``}"`)},[()=>G(Z(`fixed z-50 w-80 max-w-[calc(100vw-32px)]`,`hidden lg:block`,`bg-white dark:bg-zinc-900`,`border border-zinc-200 dark:border-zinc-700`,`rounded-lg shadow-lg`,`p-4`,`transition-opacity duration-[80ms]`)),()=>G(Z(L(o),`text-xs italic text-zinc-400 dark:text-zinc-500 mb-2 line-clamp-2`))]),H(e,p),D()}var ic={TIER_1:`tier-1`,TIER_2:`tier-2`,TIER_3:`tier-3`,GROUP:`group`},ac={type:ic.TIER_1,height:50},oc={type:ic.TIER_2,height:38},sc={type:ic.TIER_3,height:24},cc={type:ic.GROUP,height:50};function lc(e){return e>=13?cc:e>=7?sc:e>=4?oc:ac}var uc=new Set([`P`,`DIV`,`H1`,`H2`,`H3`,`H4`,`H5`,`H6`,`PRE`,`BLOCKQUOTE`,`LI`,`TR`,`TD`,`TH`]);function dc(e){let t=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement;for(;t&&!uc.has(t.tagName);)t=t.parentElement;return t}function fc(e,t){let n=[],r=null,i=null;for(let a of e){let e=t(a.id);if(e){if(e===i&&r){r.comments.push(a);continue}r={id:`cluster:${n.length}`,comments:[a],tier:ac},i=e,n.push(r)}}for(let e of n)e.tier=lc(e.comments.length);return n}var pc=new Set([`P`,`DIV`,`H1`,`H2`,`H3`,`H4`,`H5`,`H6`,`PRE`,`BLOCKQUOTE`,`LI`,`TR`,`BR`]);function mc(e){let t=e.parentElement;for(;t&&!pc.has(t.tagName);)t=t.parentElement;return t}function hc(e,t,n){let r=0,i=null,a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),o=a.nextNode();for(;o;){let e=mc(o);if(i&&e&&i!==e&&!i.contains(e)&&!e.contains(i)&&(r+=1),o===t)return r+n;r+=o.textContent?.length??0,i=e,o=a.nextNode()}return r}function gc(e){let t=[],n=0,r=null,i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),a=i.nextNode();for(;a;){let e=mc(a);r&&e&&r!==e&&!r.contains(e)&&!e.contains(r)&&(n+=1);let o=a.textContent?.length??0;t.push({node:a,start:n,end:n+o}),n+=o,r=e,a=i.nextNode()}return t}function _c(e){let t=[],n=``,r=0,i=null,a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),o=a.nextNode();for(;o;){let e=mc(o);i&&e&&i!==e&&!i.contains(e)&&!e.contains(i)&&(n+=`
|
|
4
|
-
`,r+=1);let s=o.textContent??``;n+=s;let c=s.length;t.push({node:o,start:r,end:r+c}),r+=c,i=e,o=a.nextNode()}return{text:n,nodes:t}}function vc(e,t,n){return yc(gc(e),t,n)}function yc(e,t,n){let r=[];for(let{node:i,start:a,end:o}of e){if(o<=t||a>=n)continue;let e=document.createRange();e.setStart(i,Math.max(0,t-a)),e.setEnd(i,Math.min(i.length,n-a)),r.push(e)}return r}var bc=4,xc=class{comments=new Map;pendingRanges=[];focusedId;setHighlights(e){this.comments.clear();for(let[t,n]of e)this.comments.set(t,n);this.syncCommentHighlights()}updateComment(e,t,n){this.comments.set(e,{ranges:t,colorIndex:n}),this.syncCommentHighlights()}removeComment(e){this.comments.delete(e),this.focusedId===e&&(this.focusedId=void 0,this.syncFocused()),this.syncCommentHighlights()}clearAll(){this.comments.clear(),this.focusedId=void 0;for(let e=0;e<bc;e++)CSS.highlights.delete(`comment-color-${e}`);CSS.highlights.delete(`comment-focused`),this.exposeIds()}setPending(e){this.pendingRanges=e,e.length>0?CSS.highlights.set(`pending-selection`,new Highlight(...e)):CSS.highlights.delete(`pending-selection`)}clearPending(){this.pendingRanges=[],CSS.highlights.delete(`pending-selection`)}setFocused(e){this.focusedId=e,this.syncFocused()}getBoundingRect(e){let t=this.comments.get(e);return!t||t.ranges.length===0?null:t.ranges[0].getBoundingClientRect()}getRanges(e){return this.comments.get(e)?.ranges??[]}getPositions(e){let t=new Map;for(let[n,r]of this.comments){if(r.ranges.length===0)continue;let i=r.ranges[0].getBoundingClientRect();t.set(n,i.top-e.top)}return t}getMarkerAnchors(e){let t=new Map;for(let[n,r]of this.comments){if(r.ranges.length===0)continue;let i=r.ranges[0].getClientRects(),a=i[i.length-1];a&&t.set(n,{top:a.top-e.top,left:a.right-e.left})}return t}scrollToComment(e){let t=this.comments.get(e);if(!t||t.ranges.length===0)return;let n=t.ranges[0].startContainer.parentElement;n&&n.scrollIntoView({behavior:`smooth`,block:`center`})}hitTest(e,t){let n=Sc(e,t);if(n){for(let[e,t]of this.comments)for(let r of t.ranges)if(Cc(r,n.node,n.offset))return e}}isPointInHighlight(e,t){let n=Sc(e,t);if(!n)return!1;for(let e of this.pendingRanges)if(Cc(e,n.node,n.offset))return!0;for(let[,e]of this.comments)for(let t of e.ranges)if(Cc(t,n.node,n.offset))return!0;return!1}getHighlightedIds(){return[...this.comments.keys()]}dispose(){this.clearAll(),this.clearPending()}syncCommentHighlights(){let e=new Map;for(let t=0;t<bc;t++)e.set(t,[]);for(let t of this.comments.values())e.get(t.colorIndex%bc).push(...t.ranges);for(let t=0;t<bc;t++){let n=e.get(t);n.length>0?CSS.highlights.set(`comment-color-${t}`,new Highlight(...n)):CSS.highlights.delete(`comment-color-${t}`)}this.syncFocused(),this.exposeIds()}syncFocused(){if(!this.focusedId){CSS.highlights.delete(`comment-focused`);return}let e=this.comments.get(this.focusedId);if(!e||e.ranges.length===0){CSS.highlights.delete(`comment-focused`);return}CSS.highlights.set(`comment-focused`,new Highlight(...e.ranges))}exposeIds(){typeof window<`u`&&(window.__readitHighlights={commentIds:this.getHighlightedIds()})}};function Sc(e,t){if(`caretPositionFromPoint`in document){let n=document.caretPositionFromPoint(e,t);if(n)return{node:n.offsetNode,offset:n.offset}}if(`caretRangeFromPoint`in document){let n=document.caretRangeFromPoint(e,t);if(n)return{node:n.startContainer,offset:n.startOffset}}return null}function Cc(e,t,n){try{return e.comparePoint(t,n)===0}catch{return!1}}function wc(e){let{root:t,container:n,onSelect:r}=e,i,a,o=new Map,s=``,c=new xc,l=()=>{let e=window.getSelection();if(!e||e.isCollapsed)return;let i=e.toString().trim().replace(/\r?\n\s*/g,`
|
|
5
|
-
`);if(i.length===0)return;let a=e.getRangeAt(0);if(a.startContainer===t&&a.startOffset===0&&a.endContainer===t&&a.endOffset===t.childNodes.length)return;let o=hc(t,a.startContainer,a.startOffset),s=hc(t,a.endContainer,a.endOffset),l=a.getBoundingClientRect(),u=n.getBoundingClientRect();r(i,o,s,l.top-u.top),requestAnimationFrame(()=>{let e=vc(t,o,s);c.setPending(e)})},u=e=>{if(!i)return;let t=c.hitTest(e.clientX,e.clientY);t&&i(t)},d=(e,t)=>{let n=!1;for(let[t,r]of o){let i=e.get(t);(!i||r.start!==i.start||r.end!==i.end)&&(c.removeComment(t),o.delete(t),n=!0)}for(let[r,i]of e)if(!o.has(r)){let e=yc(t,i.start,i.end);e.length>0&&(c.updateComment(r,e,i.colorIndex),o.set(r,{start:i.start,end:i.end}),n=!0)}n&&a?.()};return t.addEventListener(`mouseup`,l),t.addEventListener(`click`,u),{applyHighlights(e){let{text:n,nodes:r}=_c(t);n!==s&&(c.clearAll(),o.clear(),s=n);let i=new Map,a=0;for(let t of e)t.startOffset>=0&&t.endOffset>t.startOffset&&(i.set(t.id,{start:t.startOffset,end:t.endOffset,colorIndex:a%4}),a++);d(i,r)},clearHighlights(){c.clearAll(),o.clear(),s=``,a?.()},onHighlightClick(e){return i=e,()=>{i=void 0}},setFocused(e){c.setFocused(e)},scrollToComment(e){c.scrollToComment(e)},getPositions(e){return c.getPositions(e)},getRanges(e){return c.getRanges(e)},getMarkerAnchors(e){return c.getMarkerAnchors(e)},getHighlightedIds(){return c.getHighlightedIds()},isPointInHighlight(e,t){return c.isPointInHighlight(e,t)},onCacheInvalidated(e){return a=e,()=>{a=void 0}},dispose(){c.dispose(),t.removeEventListener(`mouseup`,l),t.removeEventListener(`click`,u),i=void 0,a=void 0}}}var Tc=z(`<button type="button"> </button>`),Ec=z(`<div class="absolute inset-0 pointer-events-none" data-body-markers=""></div>`);function Dc(e,t){E(t,!0);let n=A(rn(new Map)),r;function i(){j(n,new Map(t.positions.getMarkerAnchors()),!0)}ca(()=>(i(),r=t.positions.subscribe(i),()=>r?.())),jn(()=>{t.commentIds.length,i()});function a(e,t){e.stopPropagation(),e.preventDefault(),Ks(t)}var o=Ec();li(o,20,()=>t.commentIds,e=>e,(e,r)=>{let i=k(()=>L(n).get(r)),o=k(()=>t.indexById.get(r)??-1);var s=V(),c=N(s),l=e=>{var t=Tc();let n;var s=M(t,!0);w(t),F(()=>{n=K(t,1,`absolute pointer-events-auto cursor-pointer text-[10px] font-bold tabular-nums leading-none px-1 -translate-y-1 svelte-1w1ou5f`,null,n,{active:Gs.activeCommentId===r}),Oi(t,`top: ${L(i).top??``}px; left: ${L(i).left??``}px;`),q(t,`data-marker-for`,r),U(s,L(o)+1)}),R(`click`,t,e=>a(e,r)),H(e,t)};W(c,e=>{L(i)&&L(o)>=0&&e(l)}),H(e,s)}),w(o),H(e,o),D()}Wr([`click`]);var Oc=z(`<div class="flex items-center justify-between pl-4 pr-12 py-3 border-b border-zinc-100 dark:border-zinc-800"><h2 class="text-sm font-medium text-zinc-900 dark:text-zinc-100"><!></h2> <!></div>`),kc=z(`<div><!> <div class="flex-1 overflow-visible p-4"><!></div> <button type="button" class="absolute top-3 right-3 size-7 inline-flex items-center justify-center rounded-lg text-zinc-600 dark:text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-800"><!></button></div>`),Ac=z(`<dialog class="backdrop:bg-black/20 dark:backdrop:bg-black/40 backdrop:backdrop-blur-sm bg-transparent p-0 m-auto max-w-none"><!></dialog>`);function jc(e,t){E(t,!0);let n=sa(t,`open`,15,!1),r=A(void 0);jn(()=>{L(r)&&(n()&&!L(r).open?L(r).showModal():!n()&&L(r).open&&L(r).close())}),jn(()=>{if(!L(r))return;let e=()=>{n(!1),t.onclose?.()};return L(r).addEventListener(`close`,e),()=>L(r).removeEventListener(`close`,e)});function i(e){e.target===L(r)&&L(r)?.open&&L(r).close()}function a(){L(r)?.open&&L(r).close()}var o=Ac(),s=M(o),c=e=>{var n=kc(),r=M(n),i=e=>{var n=Oc(),r=M(n);_i(M(r),()=>t.header),w(r);var i=P(r,2),a=e=>{var n=V();_i(N(n),()=>t.headerActions),H(e,n)};W(i,e=>{t.headerActions&&e(a)}),w(n),H(e,n)};W(r,e=>{t.header&&e(i)});var o=P(r,2);_i(M(o),()=>t.children),w(o);var s=P(o,2);Pa(M(s),{class:`w-4 h-4`}),w(s),w(n),F(e=>K(n,1,e),[()=>G(Z(`w-full bg-white/95 dark:bg-zinc-900/95 backdrop-blur-sm shadow-lg border border-zinc-200/40 dark:border-zinc-700/40 rounded-xl flex flex-col`,t.contentClass))]),R(`click`,s,a),H(e,n)};W(s,e=>{n()&&e(c)}),w(o),Qi(o,e=>j(r,e),()=>L(r)),R(`click`,o,i),H(e,o),D()}Wr([`click`]);var Mc=z(`<div class="flex items-center gap-0.5 pr-1 mr-1 border-r border-zinc-200 dark:border-zinc-700"><button type="button" class="inline-flex items-center justify-center w-7 h-7 rounded-md text-zinc-600 dark:text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-800"><!></button> <span class="inline-flex items-center justify-center min-w-[3.25rem] px-1 text-[11px] tabular-nums text-zinc-600 dark:text-zinc-400 select-none" aria-live="polite"> </span> <button type="button" class="inline-flex items-center justify-center w-7 h-7 rounded-md text-zinc-600 dark:text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-800"><!></button> <button type="button" class="inline-flex items-center justify-center w-7 h-7 rounded-md text-zinc-600 dark:text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-800"><!></button> <button type="button" class="inline-flex items-center justify-center w-7 h-7 rounded-md text-zinc-600 dark:text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-800"><!></button></div>`),Nc=z(`<div class="flex items-center gap-1 mr-8"><!> <button type="button" class="inline-flex items-center gap-1.5 px-2.5 py-1 text-xs rounded-md text-zinc-600 dark:text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-800 aria-pressed:bg-zinc-100 dark:aria-pressed:bg-zinc-800 aria-pressed:text-zinc-900 dark:aria-pressed:text-zinc-100"><!> </button> <button type="button" class="inline-flex items-center gap-1.5 px-2.5 py-1 text-xs rounded-md text-zinc-600 dark:text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-800 aria-pressed:bg-zinc-100 dark:aria-pressed:bg-zinc-800 aria-pressed:text-zinc-900 dark:aria-pressed:text-zinc-100"><!> </button></div>`),Pc=z(`<div role="presentation"><div class="mermaid-zoom-stage"><div class="mermaid-container mermaid-modal-graph"></div></div></div>`),Fc=z(`<pre class="w-full h-full m-0 p-4 text-xs leading-relaxed font-mono text-zinc-800 dark:text-zinc-200 bg-zinc-50 dark:bg-zinc-950 rounded-lg overflow-auto whitespace-pre"> </pre>`),Ic=z(`<div class="w-full h-full"><!></div>`);function Lc(e,t){E(t,!0);let n=sa(t,`open`,15,!1),r=A(`graph`),i=1.0015,a=1.25,o=A(1),s=A(0),c=A(0),l=A(void 0),u=A(void 0),d=A(!1),f=0,p=0,m=0,h=0;function g(e){return Math.min(8,Math.max(.2,e))}function _(){if(!L(u))return null;let e=L(u).querySelector(`svg`);if(!e)return null;let t=e.viewBox.baseVal,n=t.width,r=t.height;if(!n||!r){let t=e.getAttribute(`viewBox`)?.split(/[\s,]+/)??[];t.length===4&&(n=Number.parseFloat(t[2]),r=Number.parseFloat(t[3]))}return!n||!r?null:(e.setAttribute(`width`,String(n)),e.setAttribute(`height`,String(r)),e.style.maxWidth=`none`,e.style.maxHeight=`none`,{width:n,height:r})}function v(){if(!L(l)||!L(u))return;let e=_();if(!e)return;let t=L(l).getBoundingClientRect();t.width===0||t.height===0||(j(o,g(Math.min((t.width-48)/e.width,(t.height-48)/e.height,1)),!0),j(s,(t.width-e.width*L(o))/2),j(c,(t.height-e.height*L(o))/2))}function y(){j(o,1),j(s,0),j(c,0)}function ee(e,t,n){let r=g(e);if(r===L(o))return;let i=(t-L(s))/L(o),a=(n-L(c))/L(o);j(s,t-i*r),j(c,n-a*r),j(o,r,!0)}function te(e){if(!L(l)){j(o,g(L(o)*e),!0);return}let t=L(l).getBoundingClientRect();ee(L(o)*e,t.width/2,t.height/2)}function ne(e){if(!L(l))return;e.preventDefault();let t=L(l).getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;if(e.ctrlKey||e.metaKey){let t=i**-e.deltaY;ee(L(o)*t,n,r);return}let a=i**-e.deltaY;ee(L(o)*a,n,r)}function re(e){e.button===0&&L(l)&&(j(d,!0),f=e.clientX,p=e.clientY,m=L(s),h=L(c),L(l).setPointerCapture(e.pointerId))}function b(e){L(d)&&(j(s,m+(e.clientX-f)),j(c,h+(e.clientY-p)))}function ie(e){L(d)&&(j(d,!1),L(l)?.releasePointerCapture(e.pointerId))}function ae(e){!n()||L(r)!==`graph`||(e.key===`+`||e.key===`=`?(e.preventDefault(),te(a)):e.key===`-`||e.key===`_`?(e.preventDefault(),te(1/a)):e.key===`0`?(e.preventDefault(),y()):(e.key===`f`||e.key===`F`)&&(e.preventDefault(),v()))}jn(()=>{n()&&(j(r,`graph`),y(),queueMicrotask(()=>{requestAnimationFrame(()=>v())}))}),jn(()=>{n()&&L(r)===`graph`&&queueMicrotask(()=>{requestAnimationFrame(()=>v())})}),Ur(`keydown`,sn,ae),jc(e,{get onclose(){return t.onclose},contentClass:`w-[90vw] h-[90vh] max-w-[90vw]`,get open(){return n()},set open(e){n(e)},header:e=>{T();var t=B();F(e=>U(t,e),[()=>Q(`mermaid.modalTitle`)]),H(e,t)},headerActions:e=>{var t=Nc(),n=M(t),i=e=>{var t=Mc(),n=M(t);Ia(M(n),{class:`w-3.5 h-3.5`}),w(n);var r=P(n,2),i=M(r);w(r);var s=P(r,2);Fa(M(s),{class:`w-3.5 h-3.5`}),w(s);var c=P(s,2);ka(M(c),{class:`w-3.5 h-3.5`}),w(c);var l=P(c,2);ja(M(l),{class:`w-3.5 h-3.5`}),w(l),w(t),F((e,t,r,a,o,u,d,f,p)=>{q(n,`aria-label`,e),q(n,`title`,t),U(i,`${r??``}%`),q(s,`aria-label`,a),q(s,`title`,o),q(c,`aria-label`,u),q(c,`title`,d),q(l,`aria-label`,f),q(l,`title`,p)},[()=>Q(`mermaid.zoomOut`),()=>Q(`mermaid.zoomOut`),()=>Math.round(L(o)*100),()=>Q(`mermaid.zoomIn`),()=>Q(`mermaid.zoomIn`),()=>Q(`mermaid.zoomFit`),()=>Q(`mermaid.zoomFit`),()=>Q(`mermaid.zoomReset`),()=>Q(`mermaid.zoomReset`)]),R(`click`,n,()=>te(1/a)),R(`click`,s,()=>te(a)),R(`click`,c,v),R(`click`,l,y),H(e,t)};W(n,e=>{L(r)===`graph`&&e(i)});var s=P(n,2),c=M(s);Da(c,{class:`w-3.5 h-3.5`});var l=P(c);w(s);var u=P(s,2),d=M(u);Sa(d,{class:`w-3.5 h-3.5`});var f=P(d);w(u),w(t),F((e,t)=>{q(s,`aria-pressed`,L(r)===`graph`),U(l,` ${e??``}`),q(u,`aria-pressed`,L(r)===`code`),U(f,` ${t??``}`)},[()=>Q(`mermaid.viewGraph`),()=>Q(`mermaid.viewCode`)]),R(`click`,s,()=>j(r,`graph`)),R(`click`,u,()=>j(r,`code`)),H(e,t)},children:(e,n)=>{var i=Ic(),a=M(i),f=e=>{var n=Pc();let r;var i=M(n),a=M(i);hi(a,()=>t.svg,!0),w(a),w(i),Qi(i,e=>j(u,e),()=>L(u)),w(n),Qi(n,e=>j(l,e),()=>L(l)),F(()=>{r=K(n,1,`mermaid-zoom-viewport`,null,r,{"is-panning":L(d)}),Oi(i,`transform: translate(${L(s)??``}px, ${L(c)??``}px) scale(${L(o)??``});`)}),Ur(`wheel`,n,ne),R(`pointerdown`,n,re),R(`pointermove`,n,b),R(`pointerup`,n,ie),Ur(`pointercancel`,n,ie),H(e,n)},p=e=>{var n=Fc(),r=M(n,!0);w(n),F(()=>U(r,t.source)),H(e,n)};W(a,e=>{L(r)===`graph`?e(f):e(p,-1)}),w(i),H(e,i)},$$slots:{header:!0,headerActions:!0,default:!0}}),D()}Wr([`click`,`pointerdown`,`pointermove`,`pointerup`]);function Rc(e,t){E(t,!0);let n=A(!1),r=A(``),i=A(``),a=`readitMermaidEnhanced`;function o(e){let t=e.dataset.mermaidSource??``;try{return decodeURIComponent(t)}catch{return t}}function s(e){let t=e.querySelector(`svg`);j(r,t?t.outerHTML:``,!0),j(i,o(e),!0),j(n,!0)}function c(e,t){let n=e.querySelector(`.mermaid-source-view`);if(n)return n;n=document.createElement(`pre`),n.className=`mermaid-source-view`;let r=document.createElement(`code`);r.className=`language-mermaid`,r.textContent=t,n.appendChild(r),n.style.display=`none`;let i=e.querySelector(`.mermaid-toolbar`);return e.insertBefore(n,i),n}function l(e,n){let r=e.querySelector(`svg`),i=c(e,n),a=e.dataset.mermaidView===`code`?`graph`:`code`;r&&(r.style.display=a===`code`?`none`:``),i.style.display=a===`code`?`block`:`none`,e.dataset.mermaidView=a;let o=e.querySelector(`.mermaid-toolbar`),s=o?.querySelector(`[data-action="toggle"]`);s?.setAttribute(`aria-label`,Q(a===`code`?`mermaid.showDiagram`:`mermaid.showSource`)),s?.setAttribute(`aria-pressed`,a===`code`?`true`:`false`),(o?._readitHandle)?.remountToggleIcon(a),t.notifyContentChanged?.()}function u(e,t){return $r(t===`graph`?Sa:Da,{target:e,props:{size:14}})}function d(e){let t=document.createElement(`div`);t.className=`mermaid-toolbar`,t.setAttribute(`contenteditable`,`false`);let n=document.createElement(`button`);n.type=`button`,n.dataset.action=`toggle`,n.setAttribute(`aria-label`,Q(`mermaid.showSource`)),n.setAttribute(`aria-pressed`,`false`);let r=document.createElement(`button`);r.type=`button`,r.dataset.action=`expand`,r.setAttribute(`aria-label`,Q(`mermaid.expand`)),t.appendChild(n),t.appendChild(r);let i=u(n,`graph`),a=$r(Oa,{target:r,props:{size:14}});return n.addEventListener(`click`,t=>{t.preventDefault(),t.stopPropagation(),l(e,o(e))}),r.addEventListener(`click`,t=>{t.preventDefault(),t.stopPropagation(),s(e)}),t._readitHandle={cleanup:()=>{ri(i),ri(a)},remountToggleIcon:e=>{ri(i),i=u(n,e)}},t}function f(e){let t=e.querySelectorAll(`.mermaid-container[data-mermaid-source]`);for(let e of t){if(e.dataset[a]===`true`)continue;e.dataset[a]=`true`,e.style.position=`relative`;let t=d(e);e.appendChild(t)}}function p(e){let t=e.querySelectorAll(`.mermaid-toolbar`);for(let e of t)e._readitHandle?.cleanup(),e.remove();let n=e.querySelectorAll(`.mermaid-container[data-readit-mermaid-enhanced]`);for(let e of n)delete e.dataset[a]}jn(()=>{if(t.root)return t.contentVersion,f(t.root),()=>{t.root&&p(t.root)}}),jn(()=>{if(!t.root)return;Ss.locale;let e=t.root.querySelectorAll(`.mermaid-toolbar`);for(let t of e){let e=t.closest(`.mermaid-container`)?.dataset.mermaidView===`code`;t.querySelector(`[data-action="toggle"]`)?.setAttribute(`aria-label`,Q(e?`mermaid.showDiagram`:`mermaid.showSource`)),t.querySelector(`[data-action="expand"]`)?.setAttribute(`aria-label`,Q(`mermaid.expand`))}}),Lc(e,{get svg(){return L(r)},get source(){return L(i)},onclose:()=>{j(n,!1)},get open(){return L(n)},set open(e){j(n,e,!0)}}),D()}var zc=`modulepreload`,Bc=function(e){return`/`+e},Vc={},Hc=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Bc(t,n),t in Vc)return;Vc[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:zc,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Uc=z(`<div class="flex-1 min-w-0 relative"><!></div> <!>`,1);function Wc(e,t){E(t,!0);let n=A(void 0),r=A(void 0),i=null,a=``,o=A(0),s=A(rn([])),c=A(rn(new Map));function l(){if(!i)return;let e=t.comments.filter(e=>e.anchorConfidence!==ds.UNRESOLVED).sort((e,t)=>e.startOffset-t.startOffset),n=e.map(e=>e.id),r=new Map;for(let t=0;t<e.length;t++)r.set(e[t].id,t);j(s,n,!0),j(c,r,!0);let a=fc(e,e=>{if(!i)return null;let t=i.getRanges(e);return t.length===0?null:dc(t[0].startContainer)}),o=a.map(e=>({id:e.id,commentIds:e.comments.map(e=>e.id),entryHeight:e.tier.height,entryCount:e.tier.type===ic.GROUP?1:e.comments.length}));t.positions.setClusters(o),t.positions.cache(),t.onClustersChanged?.(a,r)}let u=k(()=>Os.fontFamily===fs.SANS_SERIF?`prose-sans`:`prose-serif`),d=0;async function f(e){let n=e.querySelectorAll(`pre code.language-mermaid`);n.length!==0&&requestIdleCallback(async()=>{try{let{default:e}=await Hc(async()=>{let{default:e}=await import(`./mermaid.core-DU55IqMg.js`);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])),{getMermaidInitConfig:r}=await Hc(async()=>{let{getMermaidInitConfig:e}=await import(`./mermaid-config-D24hl3cp.js`);return{getMermaidInitConfig:e}},[]);e.initialize(r());for(let t of n){let n=t.parentElement;if(!n)continue;let r=t.textContent??``;try{let{svg:t}=await e.render(`mermaid-${d++}`,r),i=document.createElement(`div`);i.className=`mermaid-container`,i.dataset.mermaidSource=encodeURIComponent(r),i.innerHTML=t,n.replaceWith(i)}catch{}}en(o),t.isActive&&requestAnimationFrame(()=>t.positions.cache())}catch{}})}ca(()=>{if(!L(r))return;let e=document.getElementById(`document-content`);if(e&&!e.dataset.readitAdopted)e.dataset.readitAdopted=`true`,L(r).appendChild(e),j(n,e,!0),e.className=Z(`prose`,L(u));else if(!L(n)){let e=document.createElement(`article`);e.id=`document-content`,e.className=Z(`prose`,L(u)),e.innerHTML=t.content,L(r).appendChild(e),j(n,e,!0)}if(i=wc({root:L(n),container:L(r),onSelect:t.onTextSelect}),t.registerHighlighter(i.setFocused,i.scrollToComment),t.onHighlightClick&&i.onHighlightClick(t.onHighlightClick),t.isActive&&t.comments.length>0){let e=t.comments.filter(e=>e.anchorConfidence!==ds.UNRESOLVED).map(e=>({id:e.id,selectedText:e.selectedText,startOffset:e.startOffset,endOffset:e.endOffset}));i.applyHighlights(e),requestAnimationFrame(()=>l())}a=t.content,en(o),f(L(n));let s=e=>{let{text:n,startOffset:r,endOffset:i}=e.detail;t.onTextSelect(n,r,i,0)};return window.addEventListener(`test:select-text`,s),L(n).addEventListener(`click`,async e=>{let n=e.target?.closest?.(`.task-checkbox`);if(!n||!t.onTaskToggle)return;e.preventDefault(),e.stopPropagation();let r=n.getAttribute(`data-task-index`);if(r===null)return;let i=Number(r);if(!Number.isFinite(i))return;let a=n.getAttribute(`data-checked`)===`true`,o=!a,s=o?`true`:`false`;if(n.setAttribute(`data-checked`,s),n.setAttribute(`aria-checked`,s),!await t.onTaskToggle(i,o)){let e=a?`true`:`false`;n.setAttribute(`data-checked`,e),n.setAttribute(`aria-checked`,e)}}),L(n).addEventListener(`keydown`,e=>{if(e.key!==` `&&e.key!==`Enter`)return;let t=e.target;t?.classList.contains(`task-checkbox`)&&(e.preventDefault(),t.click())}),document.documentElement.dataset.readitReady=`true`,()=>{window.removeEventListener(`test:select-text`,s)}}),la(()=>{t.positions.detach(),i?.dispose(),i=null,t.unregisterHighlighter?.()});let p=!t.isActive;jn(()=>{if(!t.isActive||!i)return;let e=t.comments;if(t.content,!p){p=!0;return}if(e.length===0){i.clearHighlights(),l();return}let n=e.filter(e=>e.anchorConfidence!==ds.UNRESOLVED).map(e=>({id:e.id,selectedText:e.selectedText,startOffset:e.startOffset,endOffset:e.endOffset}));i.applyHighlights(n),requestAnimationFrame(()=>l())}),jn(()=>{if(!(!L(n)||!L(r)||!i)&&t.isActive)return t.positions.attach(L(n),L(r),i),l(),()=>t.positions.detach()}),jn(()=>{L(n)&&(L(n).className=Z(`prose`,L(u)),a!==t.content&&(L(n).innerHTML=t.content,a=t.content,en(o),f(L(n))))});var m=Uc(),h=N(m),g=M(h),_=e=>{Dc(e,{get commentIds(){return L(s)},get indexById(){return L(c)},get positions(){return t.positions}})};W(g,e=>{t.isActive&&e(_)}),w(h),Qi(h,e=>j(r,e),()=>L(r)),Rc(P(h,2),{get root(){return L(n)},get contentVersion(){return L(o)},notifyContentChanged:()=>{t.isActive&&requestAnimationFrame(()=>l())}}),H(e,m),D()}var Gc=z(`<p> </p>`),Kc=z(`<span aria-hidden="true">·</span> <!>`,1),qc=z(`<!> <div class="flex items-center text-xs text-zinc-400 gap-3 pt-2 border-t border-zinc-100 dark:border-zinc-800"><!> <span aria-hidden="true">·</span> <!> <!> <span class="flex-1"></span> <!></div>`,1),Jc=z(`<button type="button" class="fixed inset-0 z-40 lg:hidden bg-transparent border-0 cursor-default"></button> <div class="fixed bottom-16 left-4 right-4 z-50 bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-700 rounded-lg shadow-lg p-4 lg:hidden"><div><button type="button" class="cursor-pointer hover:underline text-left"> </button></div> <!></div>`,1);function Yc(e,t){E(t,!0);let n=A(!1),r=k(()=>Os.fontFamily===fs.SANS_SERIF?`font-sans`:`font-serif`),i=k(()=>t.comment.comment.trim().length>0);function a(){Ks(void 0)}function o(e){Gs.activeCommentId&&e.key===`Escape`&&a()}var s=Jc();Ur(`keydown`,sn,o);var c=N(s),l=P(c,2),u=M(l),d=M(u),f=M(d);w(d),w(u);var p=P(u,2),m=e=>{Js(e,{get initialText(){return t.comment.comment},onsave:e=>{t.onedit(t.comment.id,e),j(n,!1)},oncancel:()=>j(n,!1)})},h=e=>{var o=qc(),s=N(o),c=e=>{var n=Gc(),i=M(n,!0);w(n),F(e=>{K(n,1,e),U(i,t.comment.comment)},[()=>G(Z(L(r),`text-sm text-zinc-800 dark:text-zinc-200 whitespace-pre-wrap mb-3`))]),H(e,n)},l=e=>{Is(e,{variant:`caption`,class:`mb-3 italic`,children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`marginNote.addNote`)]),H(e,n)},$$slots:{default:!0}})};W(s,e=>{L(i)?e(c):e(l,-1)});var u=P(s,2),d=M(u);Xs(d,{onclick:()=>j(n,!0),children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>L(i)?Q(`marginNote.edit`):Q(`marginNote.addNote`)]),H(e,n)},$$slots:{default:!0}});var f=P(d,4);Xs(f,{variant:`destructive`,onclick:()=>{t.ondelete(t.comment.id),a()},children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`marginNote.delete`)]),H(e,n)},$$slots:{default:!0}});var p=P(f,2),m=e=>{var n=Kc();Xs(P(N(n),2),{onclick:()=>t.oncopy(t.comment),children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`marginNote.copy`)]),H(e,n)},$$slots:{default:!0}}),H(e,n)};W(p,e=>{L(i)&&e(m)}),Xs(P(p,4),{onclick:a,children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`comment.cancel`)]),H(e,n)},$$slots:{default:!0}}),w(u),H(e,o)};W(p,e=>{L(n)?e(m):e(h,-1)}),w(l),F((e,n)=>{q(c,`aria-label`,e),K(u,1,n),U(f,`"${t.comment.selectedText??``}"`)},[()=>Q(`comment.cancel`),()=>G(Z(L(r),`text-sm italic text-zinc-500 dark:text-zinc-400 mb-2 line-clamp-2`))]),R(`click`,c,a),R(`click`,d,()=>{t.onnavigate(t.comment.id),a()}),H(e,s),D()}Wr([`click`]);function Xc(e){return{document:e,headings:[],comments:[],commentsError:null,sortedComments:[],selection:null,pendingSelectionTop:void 0,scrollY:0,reanchorTarget:null}}function Zc(e){return[...e].sort((e,t)=>e.startOffset-t.startOffset)}var $=rn({documents:new Map,activeDocumentPath:null,documentOrder:[],workingDirectory:null});function Qc(){if($.activeDocumentPath)return $.documents.get($.activeDocumentPath)}function $c(e){$.workingDirectory=e}function el(e,t){let n=(t?.active??!0)||!$.activeDocumentPath?e.filePath:$.activeDocumentPath;if($.documents.has(e.filePath)){let t=$.documents.get(e.filePath),r=new Map($.documents);r.set(e.filePath,{...t,document:{...t.document,...e}}),$.documents=r,$.activeDocumentPath=n;return}let r=new Map($.documents);r.set(e.filePath,Xc(e)),$.documents=r,$.activeDocumentPath=n,$.documentOrder=[...$.documentOrder,e.filePath]}function tl(e){let t=new Map($.documents);t.delete(e);let n=$.documentOrder.filter(t=>t!==e),r=$.activeDocumentPath;if($.activeDocumentPath===e){let t=$.documentOrder.indexOf(e);r=n[t]??n[t-1]??null}$.documents=t,$.documentOrder=n,$.activeDocumentPath=r}function nl(e){$.documents.has(e)&&($.activeDocumentPath=e)}function rl(e){return e??$.activeDocumentPath}function il(e,t){let n=$.documents.get(e);if(!n)return;let r=t(n),i=new Map($.documents);i.set(e,{...n,...r}),$.documents=i}function al(e,t){let n=rl(t);n&&il(n,()=>({comments:e,sortedComments:Zc(e)}))}function ol(e,t){let n=rl(t);n&&il(n,()=>({commentsError:e}))}function sl(e,t){let n=rl(t);n&&il(n,()=>({selection:e}))}function cl(e,t){let n=rl(t);n&&il(n,()=>({pendingSelectionTop:e}))}function ll(e,t){let n=rl(t);n&&il(n,()=>({scrollY:e}))}function ul(e,t){let n=rl(t);n&&il(n,()=>({reanchorTarget:e}))}function dl(e,t){let n=rl(t);n&&il(n,t=>({document:{...t.document,html:e}}))}function fl(e,t){let n=rl(t);n&&il(n,()=>({headings:e}))}function pl(e){$.workingDirectory=e.workingDirectory;let t=new Map,n=[],r=typeof document<`u`?document.getElementById(`document-content`):null;for(let i of e.files){let a=e.documents[i.path],o=i.path===e.activeFile,s={html:a?.html??(o?r?.innerHTML??``:``),filePath:i.path,fileName:i.fileName,clean:e.clean},c=a?.comments??[],l=a?.headings??[];t.set(i.path,{...Xc(s),comments:c,sortedComments:Zc(c),headings:l}),n.push(i.path)}$.documents=t,$.documentOrder=n,$.activeDocumentPath=e.activeFile}var ml=z(`<div class="px-4 py-2 border-b border-zinc-50 dark:border-zinc-800 text-xs text-zinc-400 dark:text-zinc-500 font-mono truncate -mt-4 -mx-4 mb-4"> </div>`),hl=z(`<!> <!> <!> <!> <!>`,1);function gl(e,t){E(t,!0);let n=sa(t,`open`,15,!1),r=A(rn({status:`idle`}));jn(()=>{if(!n()){j(r,{status:`idle`},!0);return}j(r,{status:`loading`},!0);let e=$.activeDocumentPath?`?path=${encodeURIComponent($.activeDocumentPath)}`:``;fetch(`/api/comments/raw${e}`).then(e=>{if(!e.ok)throw Error(`Failed to fetch raw comments`);return e.json()}).then(e=>{e.content===null?j(r,{status:`empty`,path:e.path},!0):j(r,{status:`success`,content:e.content,path:e.path},!0)}).catch(e=>{j(r,{status:`error`,error:e instanceof Error?e.message:`Unknown error`},!0)})});async function i(){if(L(r).status===`success`)try{await navigator.clipboard.writeText(L(r).content)}catch{}}jc(e,{get onclose(){return t.onclose},contentClass:`max-w-2xl max-h-[80vh]`,get open(){return n()},set open(e){n(e)},header:e=>{T();var t=B();F(e=>U(t,e),[()=>Q(`rawModal.title`)]),H(e,t)},headerActions:e=>{var t=V(),n=N(t),a=e=>{{let t=k(()=>Q(`rawModal.copyTitle`));Fs(e,{variant:`ghost`,size:`icon`,class:`size-7`,onclick:i,get title(){return L(t)},children:(e,t)=>{Ca(e,{class:`w-4 h-4`})},$$slots:{default:!0}})}};W(n,e=>{L(r).status===`success`&&e(a)}),H(e,t)},children:(e,t)=>{var n=hl(),i=N(n),a=e=>{var t=ml(),n=M(t,!0);w(t),F(()=>U(n,L(r).path)),H(e,t)};W(i,e=>{(L(r).status===`success`||L(r).status===`empty`)&&e(a)});var o=P(i,2),s=e=>{Is(e,{variant:`caption`,class:`text-center py-8`,children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`rawModal.loading`)]),H(e,n)},$$slots:{default:!0}})};W(o,e=>{L(r).status===`loading`&&e(s)});var c=P(o,2),l=e=>{Is(e,{variant:`body`,class:`text-red-500 text-center py-8`,children:(e,t)=>{T();var n=B();F(()=>U(n,L(r).error)),H(e,n)},$$slots:{default:!0}})};W(c,e=>{L(r).status===`error`&&e(l)});var u=P(c,2),d=e=>{Is(e,{variant:`caption`,class:`text-center py-8`,children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`rawModal.noComments`)]),H(e,n)},$$slots:{default:!0}})};W(u,e=>{L(r).status===`empty`&&e(d)});var f=P(u,2),p=e=>{Is(e,{variant:`body`,as:`pre`,class:`text-xs font-mono whitespace-pre-wrap break-words leading-relaxed`,children:(e,t)=>{T();var n=B();F(()=>U(n,L(r).content)),H(e,n)},$$slots:{default:!0}})};W(f,e=>{L(r).status===`success`&&e(p)}),H(e,n)},$$slots:{header:!0,headerActions:!0,default:!0}}),D()}var _l=typeof navigator<`u`&&navigator.platform.includes(`Mac`),vl={COPY_ALL:`copyAll`,COPY_ALL_RAW:`copyAllRaw`,NAVIGATE_NEXT:`navigateNext`,NAVIGATE_PREVIOUS:`navigatePrevious`,COPY_SELECTION_RAW:`copySelectionRaw`,COPY_SELECTION_LLM:`copySelectionLLM`,CLEAR_SELECTION:`clearSelection`},yl=[{id:vl.COPY_ALL,label:`shortcut.copyAll.label`,description:`shortcut.copyAll.description`,defaultBinding:{key:`c`,alt:!0},binding:{key:`c`,alt:!0},enabled:!0},{id:vl.COPY_ALL_RAW,label:`shortcut.copyAllRaw.label`,description:`shortcut.copyAllRaw.description`,defaultBinding:{key:`c`,alt:!0,shift:!0},binding:{key:`c`,alt:!0,shift:!0},enabled:!0},{id:vl.NAVIGATE_NEXT,label:`shortcut.navigateNext.label`,description:`shortcut.navigateNext.description`,defaultBinding:{key:`ArrowDown`,alt:!0},binding:{key:`ArrowDown`,alt:!0},enabled:!0},{id:vl.NAVIGATE_PREVIOUS,label:`shortcut.navigatePrevious.label`,description:`shortcut.navigatePrevious.description`,defaultBinding:{key:`ArrowUp`,alt:!0},binding:{key:`ArrowUp`,alt:!0},enabled:!0},{id:vl.COPY_SELECTION_RAW,label:`shortcut.copySelectionRaw.label`,description:`shortcut.copySelectionRaw.description`,defaultBinding:_l?{key:`c`,meta:!0,shift:!0}:{key:`c`,ctrl:!0,shift:!0},binding:_l?{key:`c`,meta:!0,shift:!0}:{key:`c`,ctrl:!0,shift:!0},enabled:!0},{id:vl.COPY_SELECTION_LLM,label:`shortcut.copySelectionLLM.label`,description:`shortcut.copySelectionLLM.description`,defaultBinding:_l?{key:`c`,meta:!0,alt:!0}:{key:`c`,ctrl:!0,alt:!0},binding:_l?{key:`c`,meta:!0,alt:!0}:{key:`c`,ctrl:!0,alt:!0},enabled:!0},{id:vl.CLEAR_SELECTION,label:`shortcut.clearSelection.label`,description:`shortcut.clearSelection.description`,defaultBinding:{key:`Escape`},binding:{key:`Escape`},enabled:!0}];function bl(e,t){return!(e.key.toLowerCase()!==t.key.toLowerCase()||!!t.alt!==e.altKey||!!t.ctrl!==e.ctrlKey||!!t.meta!==e.metaKey||!!t.shift!==e.shiftKey)}function xl(e,t){let n=[];e.ctrl&&n.push(t?`⌃`:`Ctrl`),e.meta&&n.push(t?`⌘`:`Meta`),e.alt&&n.push(t?`⌥`:`Alt`),e.shift&&n.push(t?`⇧`:`Shift`);let r=Sl[e.key]??e.key.toUpperCase();return n.push(r),n.join(t?``:`+`)}var Sl={ArrowUp:`↑`,ArrowDown:`↓`,ArrowLeft:`←`,ArrowRight:`→`,Escape:`Esc`,Enter:`↵`,Backspace:`⌫`,Delete:`⌦`,Tab:`⇥`," ":`Space`};function Cl(e){return yl.map(t=>{let n=e.find(e=>e.id===t.id);return n?{...t,binding:n.binding??t.defaultBinding,enabled:n.enabled}:{...t}})}var wl=[{key:`r`,meta:!0},{key:`w`,meta:!0},{key:`t`,meta:!0},{key:`n`,meta:!0},{key:`q`,meta:!0},{key:`l`,meta:!0},{key:`a`,meta:!0},{key:`f`,meta:!0},{key:`p`,meta:!0}],Tl=[{key:`r`,ctrl:!0},{key:`w`,ctrl:!0},{key:`t`,ctrl:!0},{key:`n`,ctrl:!0},{key:`l`,ctrl:!0},{key:`a`,ctrl:!0},{key:`f`,ctrl:!0},{key:`p`,ctrl:!0}];function El(e,t){return(t?wl:Tl).some(t=>t.key.toLowerCase()===e.key.toLowerCase()&&!!t.alt==!!e.alt&&!!t.ctrl==!!e.ctrl&&!!t.meta==!!e.meta)}function Dl(e){return{key:e.key,...e.altKey&&{alt:!0},...e.ctrlKey&&{ctrl:!0},...e.metaKey&&{meta:!0},...e.shiftKey&&{shift:!0}}}function Ol(e,t){return e.key.toLowerCase()===t.key.toLowerCase()&&!!e.alt==!!t.alt&&!!e.ctrl==!!t.ctrl&&!!e.meta==!!t.meta&&!!e.shift==!!t.shift}var kl=[{label:`shortcutGroup.copy`,ids:[vl.COPY_ALL,vl.COPY_ALL_RAW,vl.COPY_SELECTION_RAW,vl.COPY_SELECTION_LLM]},{label:`shortcutGroup.navigate`,ids:[vl.NAVIGATE_NEXT,vl.NAVIGATE_PREVIOUS]},{label:`shortcutGroup.other`,ids:[vl.CLEAR_SELECTION]}],Al=rn({shortcuts:yl});function jl(e){Al.shortcuts=Cl(e)}async function Ml(e,t){let n=Al.shortcuts.find(t=>t.id===e),r=Al.shortcuts.find(n=>n.id!==e&&n.enabled&&Ol(n.binding,t)),i=Al.shortcuts.map(i=>i.id===e?{...i,binding:t}:r&&i.id===r.id?n?.enabled?{...i,binding:n.binding}:{...i,binding:i.defaultBinding}:i);Al.shortcuts=i,await Il(i)}async function Nl(e){let t=Al.shortcuts.find(t=>t.id===e);if(t){if(!t.enabled){let n=Al.shortcuts.find(n=>n.id!==e&&n.enabled&&Ol(n.binding,t.binding));if(n){Al.shortcuts=Al.shortcuts.map(t=>t.id===e?{...t,enabled:!0}:t.id===n.id?{...t,enabled:!1}:t),await Il(Al.shortcuts);return}}Al.shortcuts=Al.shortcuts.map(t=>t.id===e?{...t,enabled:!t.enabled}:t),await Il(Al.shortcuts)}}async function Pl(){Al.shortcuts=yl.map(e=>({...e})),await Il(Al.shortcuts)}function Fl(e){return e.filter(e=>!e.enabled||!Ol(e.binding,e.defaultBinding)).map(e=>({id:e.id,binding:Ol(e.binding,e.defaultBinding)?void 0:e.binding,enabled:e.enabled}))}async function Il(e){try{let t=await fetch(`/api/settings`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify({keybindings:Fl(e)})});if(!t.ok)throw Error(`Failed to save keybindings: ${t.status}`)}catch(e){console.error(`Failed to save keybindings:`,e)}}var Ll=z(`<span class="text-red-500 dark:text-red-400 text-[10px] animate-none"> </span>`),Rl=z(`<div role="button"><span> </span> <!></div>`);function zl(e,t){E(t,!0);let n=A(void 0),r=A(null),i=navigator.platform.includes(`Mac`);function a(e){if(e.preventDefault(),e.stopImmediatePropagation(),e.key===`Alt`||e.key===`Shift`||e.key===`Control`||e.key===`Meta`)return;if(e.key===`Escape`&&!e.altKey&&!e.metaKey&&!e.shiftKey){t.oncancel();return}let n=Dl(e);if(El(n,i)){j(r,Q(`shortcutCapture.reserved`,{binding:xl(n,i)}),!0);return}j(r,null),t.oncapture(n)}ca(()=>{L(n)?.focus()});var o=Rl();q(o,`tabindex`,0);var s=M(o),c=M(s,!0);w(s);var l=P(s,2),u=e=>{var t=Ll(),n=M(t,!0);w(t),F(()=>U(n,L(r))),H(e,t)};W(l,e=>{L(r)&&e(u)}),w(o),Qi(o,e=>j(n,e),()=>L(n)),F((e,t,n)=>{q(o,`aria-label`,e),K(o,1,t),U(c,n)},[()=>Q(`shortcutCapture.ariaLabel`),()=>G(Z(`inline-flex items-center gap-1.5 px-2 py-1 rounded-md text-xs font-medium`,`bg-amber-50 dark:bg-amber-900/30`,`border border-amber-300 dark:border-amber-600`,`text-amber-700 dark:text-amber-300`,`outline-none ring-2 ring-amber-400/50`,`animate-pulse`)),()=>Q(`shortcutCapture.pressKeys`)]),R(`keydown`,o,a),Ur(`blur`,o,function(...e){t.oncancel?.apply(this,e)}),H(e,o),D()}Wr([`keydown`]);var Bl=z(`<button type="button"> </button>`),Vl=z(`<div><div class="flex-1 min-w-0"><div class="text-xs text-zinc-700 dark:text-zinc-300"> </div></div> <div class="flex items-center gap-2"><!> <label class="relative inline-flex items-center cursor-pointer"><input type="checkbox" class="sr-only peer"/> <div></div></label></div></div>`),Hl=z(`<div><!> <div class="space-y-1"></div></div>`),Ul=z(`<div class="pt-2 border-t border-zinc-100 dark:border-zinc-800"><!></div>`),Wl=z(`<div class="space-y-4"><!> <!></div>`);function Gl(e,t){E(t,!0);let n=navigator.platform.includes(`Mac`),r=A(null);function i(e,t){j(r,null),Ml(e,t)}function a(){j(r,null)}function o(e){j(r,e,!0)}function s(e){return Al.shortcuts.find(t=>t.id===e)}function c(e){return!e.enabled||!Ol(e.binding,e.defaultBinding)}let l=k(()=>Al.shortcuts.some(e=>c(e)));var u=Wl(),d=M(u);li(d,17,()=>kl,e=>e.label,(e,t)=>{var l=Hl(),u=M(l);Is(u,{variant:`caption`,as:`div`,class:`mb-2 font-medium`,children:(e,n)=>{T();var r=B();F(e=>U(r,e),[()=>Q(L(t).label)]),H(e,r)},$$slots:{default:!0}});var d=P(u,2);li(d,20,()=>L(t).ids,e=>e,(e,t)=>{let l=k(()=>s(t));var u=V(),d=N(u),f=e=>{var t=Vl(),s=M(t),u=M(s),d=M(u,!0);w(u),w(s);var f=P(s,2),p=M(f),m=e=>{zl(e,{oncapture:e=>i(L(l).id,e),oncancel:a})},h=e=>{var t=Bl(),r=M(t,!0);w(t),F((e,n)=>{K(t,1,e),U(r,n)},[()=>G(Z(`inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[11px] font-mono`,`bg-zinc-100 dark:bg-zinc-800`,`border border-zinc-200 dark:border-zinc-700`,`text-zinc-600 dark:text-zinc-400`,`hover:bg-zinc-200 dark:hover:bg-zinc-700`,`transition-colors cursor-pointer`,c(L(l))&&`ring-1 ring-blue-400/50 dark:ring-blue-500/50`)),()=>xl(L(l).binding,n)]),R(`click`,t,()=>o(L(l).id)),H(e,t)};W(p,e=>{L(r)===L(l).id?e(m):e(h,-1)});var g=P(p,2),_=M(g);Bi(_);var v=P(_,2);w(g),w(f),w(t),F((e,n,r,i)=>{K(t,1,e),U(d,n),q(g,`title`,r),Vi(_,L(l).enabled),K(v,1,i)},[()=>G(Z(`flex items-center gap-3 px-2 py-1.5 rounded-lg`,`hover:bg-zinc-50 dark:hover:bg-zinc-800/50`,!L(l).enabled&&`opacity-50`)),()=>Q(L(l).label),()=>Q(`shortcuts.enableDisable`),()=>G(Z(`w-7 h-4 rounded-full transition-colors`,`bg-zinc-200 dark:bg-zinc-700`,`peer-checked:bg-blue-500 dark:peer-checked:bg-blue-600`,`after:content-[''] after:absolute after:top-0.5 after:start-[2px]`,`after:bg-white after:rounded-full after:size-3`,`after:transition-all after:duration-150`,`peer-checked:after:translate-x-full peer-checked:after:translate-x-3`))]),R(`change`,_,()=>Nl(L(l).id)),H(e,t)};W(d,e=>{L(l)&&e(f)}),H(e,u)}),w(d),w(l),H(e,l)});var f=P(d,2),p=e=>{var t=Ul();Fs(M(t),{variant:`ghost`,size:`sm`,get onclick(){return Pl},class:`text-xs`,children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`shortcuts.resetToDefaults`)]),H(e,n)},$$slots:{default:!0}}),w(t),H(e,t)};W(f,e=>{L(l)&&e(p)}),w(u),H(e,u),D()}Wr([`click`,`change`]);var Kl=z(`<button type="button" role="menuitem"><!></button>`);function ql(e,t){E(t,!0);let n=sa(t,`variant`,3,`default`);var r=Kl();_i(M(r),()=>t.children),w(r),F(e=>{q(r,`title`,t.title),K(r,1,e)},[()=>G(Z(`w-full px-3 py-1.5 text-left text-sm outline-none select-none transition-colors duration-150 flex items-center gap-2 cursor-default`,n()===`default`&&`text-zinc-600 dark:text-zinc-400 hover:bg-zinc-50 dark:hover:bg-zinc-800 hover:text-zinc-900 dark:hover:text-zinc-100 focus-visible:bg-zinc-50 dark:focus-visible:bg-zinc-800 focus-visible:text-zinc-900 dark:focus-visible:text-zinc-100`,n()===`destructive`&&`text-red-600 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-950 hover:text-red-700 dark:hover:text-red-300 focus-visible:bg-red-50 dark:focus-visible:bg-red-950 focus-visible:text-red-700 dark:focus-visible:text-red-300`,`[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5`,t.class))]),R(`click`,r,()=>t.onselect?.()),H(e,r),D()}Wr([`click`]);var Jl=z(`<div></div>`);function Yl(e,t){E(t,!0);var n=Jl();F(e=>K(n,1,e),[()=>G(Z(`my-1 h-px bg-zinc-100 dark:bg-zinc-800`,t.class))]),H(e,n),D()}var Xl=z(`<div><!></div>`),Zl=z(`<div class="relative inline-block"><div role="button" tabindex="0"><!></div> <!></div>`);function Ql(e,t){E(t,!0);let n=sa(t,`open`,15,!1),r=sa(t,`align`,3,`start`),i=A(void 0);function a(){n(!n())}function o(){n(!1)}function s(e){e.key===`Escape`&&n()&&(e.stopPropagation(),o()),(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),a())}jn(()=>{if(!n())return;function e(e){L(i)&&!L(i).contains(e.target)&&o()}return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)});var c=Zl(),l=M(c);_i(M(l),()=>t.trigger),w(l);var u=P(l,2),d=e=>{var n=Xl();_i(M(n),()=>t.children),w(n),F(e=>K(n,1,e),[()=>G(Z(`absolute top-full mt-1 z-50 min-w-[8rem] overflow-hidden rounded-xl py-1`,`bg-white/95 dark:bg-zinc-900/95 backdrop-blur-sm shadow-lg border border-zinc-200/40 dark:border-zinc-700/40`,r()===`end`?`right-0`:`left-0`,t.contentClass))]),H(e,n)};W(u,e=>{n()&&e(d)}),w(c),Qi(c,e=>j(i,e),()=>L(i)),F(()=>q(l,`aria-expanded`,n())),R(`keydown`,c,s),R(`click`,l,a),H(e,c),D()}Wr([`keydown`,`click`]);var $l=z(`<span class="size-2.5 rounded-full bg-gradient-to-r from-amber-400 to-indigo-400"></span>`),eu=z(`<span></span>`),tu=z(`<button type="button"><!> <span class="text-[10px] font-semibold leading-none text-zinc-500 dark:text-zinc-400 bg-zinc-100 dark:bg-zinc-800 rounded px-1 py-0.5">Aa</span> <span> </span> <!></button>`),nu=z(`<span class="size-2.5 rounded-full bg-gradient-to-r from-amber-400 to-indigo-400"></span>`),ru=z(`<span></span>`),iu=z(`<!> <span class="text-[10px] font-semibold leading-none text-zinc-500 dark:text-zinc-400 bg-zinc-100 dark:bg-zinc-800 rounded px-1 py-0.5">Aa</span> <span class="flex-1"> </span> <!>`,1),au=z(`<button type="button"><span>Aa</span> <span> </span> <!></button>`),ou=z(`<span>Aa</span> <span class="flex-1"> </span> <!>`,1),su=z(`<button type="button"><span> </span> <!></button>`),cu=z(`<span class="flex-1"> </span> <!>`,1),lu=z(`<div class="space-y-4"><div><!> <!></div> <div><!> <!></div> <div><!> <!></div> <div><!> <!></div></div>`);function uu(e,t){E(t,!0);let n=sa(t,`open`,15,!1),r=[{value:gs.JA,label:`日本語`},{value:gs.EN,label:`English`}],i=k(()=>[{value:ps.SYSTEM,label:Q(`settings.theme.system`)},{value:ps.LIGHT,label:Q(`settings.theme.light`)},{value:ps.DARK,label:Q(`settings.theme.dark`)}]),a=k(()=>[{value:fs.SERIF,label:Q(`settings.font.serif`),fontClass:`font-serif`},{value:fs.SANS_SERIF,label:Q(`settings.font.sansSerif`),fontClass:`font-sans`}]),o=k(()=>L(i).find(e=>e.value===Os.themeMode)??L(i)[0]),s=k(()=>L(a).find(e=>e.value===Os.fontFamily)??L(a)[0]),c=k(()=>r.find(e=>e.value===Ss.locale)??r[0]),l=Z(`inline-flex items-center gap-2 px-2.5 py-1.5 rounded-lg text-sm`,`border border-zinc-200 dark:border-zinc-700`,`bg-white dark:bg-zinc-800`,`text-zinc-700 dark:text-zinc-300`,`hover:bg-zinc-50 dark:hover:bg-zinc-700/50`,`transition-colors cursor-pointer`),u=A(!1),d=A(!1),f=A(!1);jc(e,{get onclose(){return t.onclose},contentClass:`max-w-md`,get open(){return n()},set open(e){n(e)},header:e=>{T();var t=B();F(e=>U(t,e),[()=>Q(`settings.title`)]),H(e,t)},children:(e,t)=>{var n=lu(),p=M(n),m=M(p);Is(m,{variant:`overline`,as:`h3`,class:`mb-3`,children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`settings.theme`)]),H(e,n)},$$slots:{default:!0}}),Ql(P(m,2),{align:`start`,contentClass:`min-w-[160px]`,get open(){return L(u)},set open(e){j(u,e,!0)},trigger:e=>{var t=tu(),n=M(t),r=e=>{H(e,$l())},i=e=>{var t=eu();F(e=>K(t,1,e),[()=>G(Z(`size-2.5 rounded-full`,L(o).value===ps.LIGHT?`bg-amber-400`:`bg-indigo-400`))]),H(e,t)};W(n,e=>{L(o).value===ps.SYSTEM?e(r):e(i,-1)});var a=P(n,4),s=M(a,!0);w(a),_a(P(a,2),{class:`size-3 text-zinc-400 dark:text-zinc-500`}),w(t),F(()=>{K(t,1,G(l)),U(s,L(o).label)}),H(e,t)},children:(e,t)=>{var n=V();li(N(n),17,()=>L(i),e=>e.value,(e,t)=>{ql(e,{onselect:()=>{As(L(t).value),j(u,!1)},class:`flex items-center gap-2`,children:(e,n)=>{var r=iu(),i=N(r),a=e=>{H(e,nu())},o=e=>{var n=ru();F(e=>K(n,1,e),[()=>G(Z(`size-2.5 rounded-full`,L(t).value===ps.LIGHT?`bg-amber-400`:`bg-indigo-400`))]),H(e,n)};W(i,e=>{L(t).value===ps.SYSTEM?e(a):e(o,-1)});var s=P(i,4),c=M(s,!0);w(s);var l=P(s,2),u=e=>{ga(e,{class:`size-3.5 text-zinc-500 dark:text-zinc-400`})};W(l,e=>{Os.themeMode===L(t).value&&e(u)}),F(()=>U(c,L(t).label)),H(e,r)},$$slots:{default:!0}})}),H(e,n)},$$slots:{trigger:!0,default:!0}}),w(p);var h=P(p,2),g=M(h);Is(g,{variant:`overline`,as:`h3`,class:`mb-3`,children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`settings.font`)]),H(e,n)},$$slots:{default:!0}}),Ql(P(g,2),{align:`start`,contentClass:`min-w-[160px]`,get open(){return L(d)},set open(e){j(d,e,!0)},trigger:e=>{var t=au(),n=M(t),r=P(n,2),i=M(r,!0);w(r),_a(P(r,2),{class:`size-3 text-zinc-400 dark:text-zinc-500`}),w(t),F(e=>{K(t,1,G(l)),K(n,1,e),U(i,L(s).label)},[()=>G(Z(`text-[10px] font-semibold leading-none text-zinc-500 dark:text-zinc-400 bg-zinc-100 dark:bg-zinc-800 rounded px-1 py-0.5`,L(s).fontClass))]),H(e,t)},children:(e,t)=>{var n=V();li(N(n),17,()=>L(a),e=>e.value,(e,t)=>{ql(e,{onselect:()=>{ks(L(t).value),j(d,!1)},class:`flex items-center gap-2`,children:(e,n)=>{var r=ou(),i=N(r),a=P(i,2),o=M(a,!0);w(a);var s=P(a,2),c=e=>{ga(e,{class:`size-3.5 text-zinc-500 dark:text-zinc-400`})};W(s,e=>{Os.fontFamily===L(t).value&&e(c)}),F(e=>{K(i,1,e),U(o,L(t).label)},[()=>G(Z(`text-[10px] font-semibold leading-none text-zinc-500 dark:text-zinc-400 bg-zinc-100 dark:bg-zinc-800 rounded px-1 py-0.5`,L(t).fontClass))]),H(e,r)},$$slots:{default:!0}})}),H(e,n)},$$slots:{trigger:!0,default:!0}}),w(h);var _=P(h,2),v=M(_);Is(v,{variant:`overline`,as:`h3`,class:`mb-3`,children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`settings.language`)]),H(e,n)},$$slots:{default:!0}}),Ql(P(v,2),{align:`start`,contentClass:`min-w-[160px]`,get open(){return L(f)},set open(e){j(f,e,!0)},trigger:e=>{var t=su(),n=M(t),r=M(n,!0);w(n),_a(P(n,2),{class:`size-3 text-zinc-400 dark:text-zinc-500`}),w(t),F(()=>{K(t,1,G(l)),U(r,L(c).label)}),H(e,t)},children:(e,t)=>{var n=V();li(N(n),17,()=>r,e=>e.value,(e,t)=>{ql(e,{onselect:()=>{Cs(L(t).value),j(f,!1)},class:`flex items-center gap-2`,children:(e,n)=>{var r=cu(),i=N(r),a=M(i,!0);w(i);var o=P(i,2),s=e=>{ga(e,{class:`size-3.5 text-zinc-500 dark:text-zinc-400`})};W(o,e=>{Ss.locale===L(t).value&&e(s)}),F(()=>U(a,L(t).label)),H(e,r)},$$slots:{default:!0}})}),H(e,n)},$$slots:{trigger:!0,default:!0}}),w(_);var y=P(_,2),ee=M(y);Is(ee,{variant:`overline`,as:`h3`,class:`mb-3`,children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`shortcuts.title`)]),H(e,n)},$$slots:{default:!0}}),Gl(P(ee,2),{}),w(y),w(n),H(e,n)},$$slots:{header:!0,default:!0}}),D()}var du=z(`<!> `,1),fu=z(`<!> `,1),pu=z(`<!> `,1),mu=z(`<!> `,1),hu=z(`<!> `,1),gu=z(`<!> <!> <!>`,1),_u=z(`<!> <!> <!> <!>`,1),vu=z(`<!> <!> <!>`,1);function yu(e,t){E(t,!0);let n=A(!1),r=A(!1),i=A(!1);var a=vu(),o=N(a);Ql(o,{align:`end`,contentClass:`min-w-[160px]`,get open(){return L(n)},set open(e){j(n,e,!0)},trigger:e=>{{let t=k(()=>Q(`actions.ariaLabel`));Fs(e,{variant:`ghost`,size:`icon`,class:`size-7`,get title(){return L(t)},children:(e,t)=>{wa(e,{class:`w-4 h-4`})},$$slots:{default:!0}})}},children:(e,a)=>{var o=_u(),s=N(o);ql(s,{onselect:()=>{j(i,!0),j(n,!1)},children:(e,t)=>{var n=du(),r=N(n);Ma(r,{});var i=P(r);F(e=>U(i,` ${e??``}`),[()=>Q(`actions.settings`)]),H(e,n)},$$slots:{default:!0}});var c=P(s,2);Yl(c,{});var l=P(c,2);ql(l,{onselect:()=>{t.onreload(),j(n,!1)},children:(e,t)=>{var n=fu(),r=N(n);Aa(r,{});var i=P(r);F(e=>U(i,` ${e??``}`),[()=>Q(`actions.reload`)]),H(e,n)},$$slots:{default:!0}});var u=P(l,2),d=e=>{var i=gu(),a=N(i);ql(a,{onselect:()=>{t.oncopyall(),j(n,!1)},children:(e,t)=>{var n=pu(),r=N(n);xa(r,{});var i=P(r);F(e=>U(i,` ${e??``}`),[()=>Q(`actions.copyAll`)]),H(e,n)},$$slots:{default:!0}});var o=P(a,2);ql(o,{onselect:()=>{t.onexportjson(),j(n,!1)},children:(e,t)=>{var n=mu(),r=N(n);Ta(r,{});var i=P(r);F(e=>U(i,` ${e??``}`),[()=>Q(`actions.exportJson`)]),H(e,n)},$$slots:{default:!0}}),ql(P(o,2),{onselect:()=>{j(r,!0),j(n,!1)},children:(e,t)=>{var n=hu(),r=N(n);Ea(r,{});var i=P(r);F(e=>U(i,` ${e??``}`),[()=>Q(`actions.viewRaw`)]),H(e,n)},$$slots:{default:!0}}),H(e,i)};W(u,e=>{t.commentCount>0&&e(d)}),H(e,o)},$$slots:{trigger:!0,default:!0}});var s=P(o,2);gl(s,{onclose:()=>j(r,!1),get open(){return L(r)},set open(e){j(r,e,!0)}}),uu(P(s,2),{onclose:()=>j(i,!1),get open(){return L(i)},set open(e){j(i,e,!0)}}),H(e,a),D()}function bu(e){return`${e.lineHint?`[${e.lineHint}] `:``}"${e.selectedText}"\n${e.comment}`}function xu(e,t){return`# Review Comments for ${t}\n\n${e.map(bu).join(`
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
`)}`}function Su(e,t){let n={filePath:t.filePath,fileName:t.fileName,exportedAt:new Date().toISOString(),comments:e.map(e=>({selectedText:e.selectedText,comment:e.comment,lineHint:e.lineHint}))},r=new Blob([JSON.stringify(n,null,2)],{type:`application/json`}),i=URL.createObjectURL(r),a=window.document.createElement(`a`);a.href=i,a.download=`${t.fileName}-comments.json`,a.click(),URL.revokeObjectURL(i)}var Cu=z(`<!> <div class="flex items-center text-xs text-zinc-400 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 focus-within:opacity-100 [@media(pointer:coarse)]:opacity-100 transition-opacity gap-3 mt-1.5"><!> <!> <!> <!></div>`,1),wu=z(`<div><div class="flex items-center gap-1.5 mb-1"><!> <!></div> <!></div>`);function Tu(e,t){E(t,!0);let n=A(!1),r=k(()=>t.comment.anchorConfidence===`unresolved`),i=k(()=>!L(r));function a(){t.onnavigate(t.comment.id),t.onaction?.()}function o(){t.onstartreanchor(t.comment.id),t.onaction?.()}var s=wu(),c=M(s),l=M(c);Is(l,{variant:`caption`,as:`span`,class:`italic line-clamp-1`,children:(e,n)=>{T();var r=B();F(()=>U(r,`"${t.comment.selectedText??``}"`)),H(e,r)},$$slots:{default:!0}});var u=P(l,2),d=e=>{Is(e,{variant:`caption`,as:`span`,class:`shrink-0`,children:(e,t)=>{T();var n=B();F(e=>U(n,`· ${e??``}`),[()=>Q(`commentList.unresolved`)]),H(e,n)},$$slots:{default:!0}})};W(u,e=>{L(r)&&e(d)}),w(c);var f=P(c,2),p=e=>{Js(e,{get initialText(){return t.comment.comment},onsave:e=>{t.onedit(t.comment.id,e),j(n,!1)},oncancel:()=>j(n,!1)})},m=e=>{var s=Cu(),c=N(s);Is(c,{variant:`body`,class:`line-clamp-2`,children:(e,n)=>{T();var r=B();F(()=>U(r,t.comment.comment)),H(e,r)},$$slots:{default:!0}});var l=P(c,2),u=M(l);Xs(u,{onclick:()=>j(n,!0),children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`commentList.edit`)]),H(e,n)},$$slots:{default:!0}});var d=P(u,2);Xs(d,{onclick:()=>t.ondelete(t.comment.id),children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`commentList.delete`)]),H(e,n)},$$slots:{default:!0}});var f=P(d,2),p=e=>{Xs(e,{onclick:a,children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`commentList.goTo`)]),H(e,n)},$$slots:{default:!0}})};W(f,e=>{L(i)&&e(p)});var m=P(f,2),h=e=>{Xs(e,{onclick:o,children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`commentList.reanchor`)]),H(e,n)},$$slots:{default:!0}})};W(m,e=>{L(r)&&e(h)}),w(l),H(e,s)};W(f,e=>{L(n)?e(p):e(m,-1)}),w(s),F(e=>K(s,1,e),[()=>G(Z(`group px-3 py-2 border-b border-zinc-100 dark:border-zinc-800 last:border-b-0`,L(r)&&`opacity-50`))]),H(e,s),D()}var Eu=z(`<div class="px-3 py-2 border-b border-zinc-100"><!> <div class="flex gap-3"><!> <!></div></div>`),Du=z(`<span> </span>`),Ou=z(`<span> <!></span> <span class="flex items-center gap-1"><button type="button" class="p-1 rounded hover:bg-zinc-100 text-zinc-400 hover:text-zinc-600 transition-colors"><!></button> <button type="button" class="p-1 rounded hover:bg-zinc-100 text-zinc-400 hover:text-red-500 transition-colors"><!></button></span>`,1),ku=z(`<!> <div class="overflow-y-auto max-h-80"><!></div>`,1);function Au(e,t){E(t,!0);let n=A(!1),r=k(()=>t.comments.filter(e=>e.anchorConfidence===`unresolved`).length),i=k(()=>t.comments.length-L(r)),a=k(()=>[...t.comments].sort((e,t)=>{let n=e.anchorConfidence===`unresolved`;return n===(t.anchorConfidence===`unresolved`)?0:n?1:-1}));function o(){let e=xu(t.comments,t.fileName);navigator.clipboard.writeText(e)}var s=ku(),c=N(s),l=e=>{var r=Eu(),i=M(r);Is(i,{variant:`caption`,class:`mb-1.5`,children:(e,n)=>{T();var r=B();F(e=>U(r,e),[()=>Q(`commentManager.deleteAllConfirm`,{count:t.comments.length})]),H(e,r)},$$slots:{default:!0}});var a=P(i,2),o=M(a);Fs(o,{variant:`link`,size:`sm`,class:`text-red-600 hover:text-red-700 h-auto p-0 text-xs`,onclick:()=>{t.ondeleteall(),t.onclose()},children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`commentManager.delete`)]),H(e,n)},$$slots:{default:!0}}),Fs(P(o,2),{variant:`ghost`,size:`sm`,class:`h-auto p-0 text-xs`,onclick:()=>j(n,!1),children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`commentManager.cancel`)]),H(e,n)},$$slots:{default:!0}}),w(a),w(r),H(e,r)},u=e=>{Is(e,{variant:`caption`,as:`div`,class:`flex items-center justify-between px-3 py-2 border-b border-zinc-100`,children:(e,t)=>{var a=Ou(),s=N(a),c=M(s),l=P(c),u=e=>{var t=Du(),n=M(t);w(t),F(e=>U(n,` · ${L(r)??``} ${e??``}`),[()=>Q(`commentManager.unresolved`)]),H(e,t)};W(l,e=>{L(r)>0&&e(u)}),w(s);var d=P(s,2),f=M(d);Ca(M(f),{size:13}),w(f);var p=P(f,2);Na(M(p),{size:13}),w(p),w(d),F((e,t)=>{U(c,`${L(i)??``} `),q(f,`title`,e),q(p,`title`,t)},[()=>Q(`commentManager.copyAllTitle`),()=>Q(`commentManager.deleteAllTitle`)]),R(`click`,f,o),R(`click`,p,()=>j(n,!0)),H(e,a)},$$slots:{default:!0}})};W(c,e=>{L(n)?e(l):e(u,-1)});var d=P(c,2),f=M(d),p=e=>{Is(e,{variant:`caption`,as:`div`,class:`px-3 py-4 text-center`,children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`commentManager.noComments`)]),H(e,n)},$$slots:{default:!0}})},m=e=>{var n=V();li(N(n),17,()=>L(a),e=>e.id,(e,n)=>{Tu(e,{get comment(){return L(n)},get onaction(){return t.onclose},get onedit(){return t.onedit},get ondelete(){return t.ondelete},get onnavigate(){return t.onnavigate},get onstartreanchor(){return t.onstartreanchor}})}),H(e,n)};W(f,e=>{L(a).length===0?e(p):e(m,-1)}),w(d),H(e,s),D()}Wr([`click`]);var ju=z(`<button type="button"><span class="text-zinc-300">·</span> </button>`);function Mu(e,t){E(t,!0);let n=A(!1),r=k(()=>t.comments.length);var i=V(),a=N(i),o=e=>{Ql(e,{align:`end`,contentClass:`w-80 max-h-96 overflow-hidden p-0`,get open(){return L(n)},set open(e){j(n,e,!0)},trigger:e=>{var t=ju(),i=P(M(t));w(t),F((e,n)=>{K(t,1,e),q(t,`title`,n),U(i,` ${L(r)??``}`)},[()=>G(Z(`inline-flex items-center gap-1 text-xs tabular-nums select-none transition-colors`,L(n)?`text-zinc-600`:`text-zinc-400 hover:text-zinc-600`)),()=>L(r)===1?Q(`commentBadge.title`,{count:L(r)}):Q(`commentBadge.titlePlural`,{count:L(r)})]),H(e,t)},children:(e,r)=>{Au(e,{get comments(){return t.comments},get fileName(){return t.fileName},onclose:()=>j(n,!1),get onedit(){return t.onedit},get ondelete(){return t.ondelete},get ondeleteall(){return t.ondeleteall},get onnavigate(){return t.onnavigate},get onstartreanchor(){return t.onstartreanchor}})},$$slots:{trigger:!0,default:!0}})};W(a,e=>{L(r)>0&&e(o)}),H(e,i),D()}var Nu=z(`<header class="sticky top-0 z-50 bg-white/95 dark:bg-zinc-900/95 backdrop-blur-sm border-b border-zinc-100 dark:border-zinc-800"><div class="px-6 py-3 flex items-center justify-between max-w-7xl mx-auto"><div class="flex items-center gap-3"><!> <span class="text-zinc-200 dark:text-zinc-700 font-light">—</span> <!></div> <div class="flex items-center gap-3"><!> <!> <!></div></div></header>`);function Pu(e,t){E(t,!0);let n=k(()=>t.comments.length);var r=Nu(),i=M(r),a=M(i),o=M(a);Is(o,{variant:`title`,as:`h1`,children:(e,t)=>{T(),H(e,B(`readit`))},$$slots:{default:!0}}),Is(P(o,4),{variant:`caption`,as:`span`,class:`truncate max-w-[200px]`,children:(e,n)=>{T();var r=B();F(()=>U(r,t.fileName)),H(e,r)},$$slots:{default:!0}}),w(a);var s=P(a,2),c=M(s),l=e=>{Is(e,{variant:`caption`,as:`span`,class:`italic`,children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`header.selectTextToReanchor`)]),H(e,n)},$$slots:{default:!0}})};W(c,e=>{t.hasReanchorTarget&&e(l)});var u=P(c,2);Mu(u,{get comments(){return t.comments},get fileName(){return t.fileName},get onedit(){return t.onedit},get ondelete(){return t.ondelete},get ondeleteall(){return t.ondeleteall},get onnavigate(){return t.onnavigate},get onstartreanchor(){return t.onstartreanchor}}),yu(P(u,2),{get commentCount(){return L(n)},get oncopyall(){return t.oncopyall},get onexportjson(){return t.onexportjson},get onreload(){return t.onreload}}),w(s),w(i),w(r),H(e,r),D()}var Fu=z(`<span aria-hidden="true" class="absolute left-0 top-0 bottom-0 w-0.5 bg-zinc-900 dark:bg-zinc-100"></span>`),Iu=z(`<span class="ml-auto text-[10px] text-zinc-400 dark:text-zinc-500 tabular-nums"> </span>`),Lu=z(`<div class="flex items-baseline gap-2 mb-1"><span class="text-[10px] font-bold tabular-nums text-zinc-500 dark:text-zinc-400"> </span> <!></div> <p> </p>`,1),Ru=z(`<span class="ml-auto text-[10px] text-zinc-400 dark:text-zinc-500 tabular-nums"> </span>`),zu=z(`<div class="flex items-baseline gap-2"><span class="text-[10px] font-bold tabular-nums text-zinc-500 dark:text-zinc-400"> </span> <!></div> <p> </p>`,1),Bu=z(`<div class="flex items-center gap-1.5 h-full"><span class="text-[10px] font-bold tabular-nums text-zinc-500 dark:text-zinc-400"> </span> <span aria-hidden="true" class="text-zinc-300 dark:text-zinc-600">·</span> <span> </span></div>`),Vu=z(`<div role="button" tabindex="0"><!> <!></div>`);function Hu(e,t){E(t,!0);let n=sa(t,`clusterSize`,3,1),r=k(()=>t.tier.type===ic.TIER_1&&n()===1),i=A(void 0),a=A(!1);jn(()=>{let e=L(i);if(!e||t.tier.type!==ic.TIER_1){j(a,!1);return}let n=()=>{j(a,e.scrollHeight>e.clientHeight+1)};n();let r=new ResizeObserver(n);return r.observe(e),()=>r.disconnect()});let o=k(()=>Gs.activeCommentId===t.comment.id),s=k(()=>Os.fontFamily===fs.SANS_SERIF?`font-sans`:`font-serif`),c=k(()=>Ws(t.comment.createdAt)),l=k(()=>t.comment.comment.trim().length>0),u=k(()=>L(l)?t.comment.comment:t.comment.selectedText),d=k(()=>t.comment.anchorConfidence===`unresolved`);function f(e){e.stopPropagation(),Ks(t.comment.id)}function p(e){(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),f(e))}var m=Vu(),h=M(m),g=e=>{H(e,Fu())};W(h,e=>{L(o)&&e(g)});var _=P(h,2),v=e=>{var n=Lu(),r=N(n),i=M(r),a=M(i,!0);w(i);var o=P(i,2),d=e=>{var t=Iu(),n=M(t,!0);w(t),F(()=>U(n,L(c))),H(e,t)};W(o,e=>{L(c)&&e(d)}),w(r);var f=P(r,2),p=M(f,!0);w(f),F(e=>{U(a,t.index+1),K(f,1,e),U(p,L(u))},[()=>G(Z(L(s),`text-[11px] leading-[14px] text-zinc-600 dark:text-zinc-300`,!L(l)&&`italic text-zinc-400 dark:text-zinc-500`))]),H(e,n)},y=e=>{var n=zu(),r=N(n),i=M(r),a=M(i,!0);w(i);var o=P(i,2),d=e=>{var t=Ru(),n=M(t,!0);w(t),F(()=>U(n,L(c))),H(e,t)};W(o,e=>{L(c)&&e(d)}),w(r);var f=P(r,2),p=M(f,!0);w(f),F(e=>{U(a,t.index+1),K(f,1,e),U(p,L(u))},[()=>G(Z(L(s),`text-[11px] leading-[14px] text-zinc-600 dark:text-zinc-300 truncate`,!L(l)&&`italic text-zinc-400 dark:text-zinc-500`))]),H(e,n)},ee=e=>{var n=Bu(),r=M(n),i=M(r,!0);w(r);var a=P(r,4),o=M(a,!0);w(a),w(n),F(e=>{U(i,t.index+1),K(a,1,e),U(o,L(u))},[()=>G(Z(L(s),`text-[11px] text-zinc-600 dark:text-zinc-300 truncate flex-1`,!L(l)&&`italic text-zinc-400 dark:text-zinc-500`))]),H(e,n)};W(_,e=>{t.tier.type===ic.TIER_1?e(v):t.tier.type===ic.TIER_2?e(y,1):t.tier.type===ic.TIER_3&&e(ee,2)}),w(m),Qi(m,e=>j(i,e),()=>L(i)),F(e=>{K(m,1,e),Oi(m,L(r)?`min-height: ${t.tier.height}px; max-height: var(--margin-avail-height, ${t.tier.height}px)`:`height: ${t.tier.height}px`),q(m,`data-comment-id`,t.comment.id),q(m,`data-active`,L(o))},[()=>G(Z(`relative w-full px-3 cursor-pointer overflow-hidden transition-opacity`,`border-t border-zinc-100 dark:border-zinc-800 first:border-t-0`,t.tier.type===ic.TIER_1&&`py-2`,t.tier.type===ic.TIER_2&&`py-1.5`,t.tier.type===ic.TIER_3&&`py-1`,t.tier.type===ic.GROUP&&`py-2`,L(d)&&`opacity-60`,L(a)&&`[mask-image:linear-gradient(to_bottom,black_calc(100%_-_14px),transparent)]`))]),R(`click`,m,f),R(`keydown`,m,p),H(e,m),D()}Wr([`click`,`keydown`]);var Uu=z(`<span aria-hidden="true" class="absolute left-0 top-0 bottom-0 w-0.5 bg-zinc-900 dark:bg-zinc-100"></span>`),Wu=z(`<div role="button" tabindex="0" class="relative w-full px-3 py-2 cursor-pointer overflow-hidden border-t border-zinc-100 dark:border-zinc-800 first:border-t-0" style="height: 50px" data-cluster-group=""><!> <div class="flex items-baseline gap-2 mb-1"><span class="text-[10px] font-bold tabular-nums text-zinc-500 dark:text-zinc-400"> </span> <span class="ml-auto inline-flex items-center justify-center text-[9px] font-bold text-zinc-600 dark:text-zinc-300 bg-zinc-100 dark:bg-zinc-800 rounded-full px-1.5 min-w-[20px] h-[14px] tabular-nums"> </span></div> <p> </p> <p class="text-[9px] text-zinc-400 dark:text-zinc-500 mt-0.5"> </p></div>`);function Gu(e,t){E(t,!0);let n=k(()=>Os.fontFamily===fs.SANS_SERIF?`font-sans`:`font-serif`),r=k(()=>t.comments.length),i=k(()=>t.comments[0]?.comment||t.comments[0]?.selectedText||``),a=k(()=>t.comments[0]?.id),o=k(()=>L(a)!==void 0&&t.comments.some(e=>e.id===Gs.activeCommentId));function s(e){e.stopPropagation(),L(a)&&Ks(L(a))}function c(e){(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),s(e))}var l=Wu(),u=M(l),d=e=>{H(e,Uu())};W(u,e=>{L(o)&&e(d)});var f=P(u,2),p=M(f),m=M(p);w(p);var h=P(p,2),g=M(h,!0);w(h),w(f);var _=P(f,2),v=M(_,!0);w(_);var y=P(_,2),ee=M(y);w(y),w(l),F((e,n)=>{q(l,`data-comment-id`,L(a)),q(l,`data-active`,L(o)),U(m,`${t.startIndex+1}–${t.startIndex+L(r)}`),U(g,L(r)),K(_,1,e),U(v,L(i)),U(ee,`${L(r)??``} ${n??``}`)},[()=>G(Z(L(n),`text-[11px] leading-[14px] text-zinc-600 dark:text-zinc-300 truncate`)),()=>Q(`commentBadge.titlePlural`).replace(`{{count}}`,``).trim()||`comments`]),R(`click`,l,s),R(`keydown`,l,c),H(e,l),D()}Wr([`click`,`keydown`]);var Ku=z(`<div class="absolute left-0 right-0 bg-white dark:bg-zinc-900" style="visibility: hidden"><!></div>`);function qu(e,t){E(t,!0);let n=A(void 0);jn(()=>(L(n)&&t.positions.registerCluster(t.cluster.id,L(n)),()=>t.positions.unregisterCluster(t.cluster.id)));var r=Ku(),i=M(r),a=e=>{Gu(e,{get comments(){return t.cluster.comments},get startIndex(){return t.startIndex}})},o=e=>{var n=V();li(N(n),19,()=>t.cluster.comments,e=>e.id,(e,n,r)=>{{let i=k(()=>t.startIndex+L(r));Hu(e,{get comment(){return L(n)},get index(){return L(i)},get tier(){return t.cluster.tier},get clusterSize(){return t.cluster.comments.length}})}}),H(e,n)};W(i,e=>{t.cluster.tier.type===ic.GROUP?e(a):e(o,-1)}),w(r),Qi(r,e=>j(n,e),()=>L(n)),F(()=>q(r,`data-cluster-id`,t.cluster.id)),H(e,r),D()}var Ju=z(`<div class="relative w-full"></div>`);function Yu(e,t){E(t,!0);function n(e){let n=0;for(let r=0;r<e;r++)n+=t.clusters[r].comments.length;return n}var r=V(),i=N(r),a=e=>{var r=Ju();li(r,23,()=>t.clusters,e=>e.id,(e,r,i)=>{{let a=k(()=>n(L(i)));qu(e,{get cluster(){return L(r)},get startIndex(){return L(a)},get positions(){return t.positions}})}}),w(r),H(e,r)};W(i,e=>{t.clusters.length>0&&e(a)}),H(e,r),D()}var Xu=z(`<div class="border-t border-zinc-200 dark:border-zinc-700 pt-2 pb-3 pl-6"><!> <!> <div class="flex gap-3 text-sm"><!> <!></div></div>`);function Zu(e,t){E(t,!0);var n=Xu(),r=M(n);Is(r,{variant:`body`,class:`mb-2`,children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`reanchor.question`)]),H(e,n)},$$slots:{default:!0}});var i=P(r,2);Is(i,{variant:`caption`,class:`italic line-clamp-2 mb-2`,children:(e,n)=>{T();var r=B();F(()=>U(r,`"${t.selectionText??``}"`)),H(e,r)},$$slots:{default:!0}});var a=P(i,2),o=M(a);Fs(o,{variant:`link`,size:`sm`,get onclick(){return t.onconfirm},children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`reanchor.confirm`)]),H(e,n)},$$slots:{default:!0}}),Fs(P(o,2),{variant:`ghost`,size:`sm`,get onclick(){return t.oncancel},children:(e,t)=>{T();var n=B();F(e=>U(n,e),[()=>Q(`reanchor.cancel`)]),H(e,n)},$$slots:{default:!0}}),w(a),w(n),H(e,n),D()}var Qu=z(`<div role="tab"><span> </span> <button type="button" aria-label="Close tab" class="ml-1 rounded p-0.5 hover:bg-zinc-200 dark:hover:bg-zinc-700"><svg class="h-3 w-3" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"><path d="M18 6 6 18M6 6l12 12"></path></svg></button></div>`),$u=z(`<div class="flex border-b border-zinc-200 dark:border-zinc-800 bg-zinc-50 dark:bg-zinc-900 px-2 overflow-x-auto" role="tablist"></div>`);function ed(e,t){E(t,!1),$i();var n=V(),r=N(n),i=e=>{var t=$u();li(t,5,()=>$.documentOrder,e=>e,(e,t)=>{let n=Vt(()=>$.documents.get(L(t))),r=Vt(()=>L(t)===$.activeDocumentPath);var i=V(),a=N(i),o=e=>{var i=Qu(),a=M(i),o=M(a,!0);w(a);var s=P(a,2);w(i),F(e=>{q(i,`tabindex`,L(r)?0:-1),q(i,`aria-selected`,L(r)),K(i,1,e),U(o,L(n).document.fileName)},[()=>G(Z(`flex items-center gap-1.5 px-3 py-1.5 text-sm border-b-2 whitespace-nowrap cursor-pointer select-none`,L(r)?`border-zinc-900 dark:border-zinc-100 text-zinc-900 dark:text-zinc-100`:`border-transparent text-zinc-500 dark:text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-300 hover:bg-zinc-100 dark:hover:bg-zinc-800`))]),R(`click`,i,()=>nl(L(t))),R(`keydown`,i,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),nl(L(t)))}),R(`click`,s,e=>{e.stopPropagation(),tl(L(t))}),H(e,i)};W(a,e=>{L(n)&&e(o)}),H(e,i)}),w(t),H(e,t)};W(r,e=>{$.documentOrder.length>1&&e(i)}),H(e,n),D()}Wr([`click`,`keydown`]);var td=z(`<span class="toc-toggle ml-1 opacity-40"> </span>`),nd=z(`<a> <!></a>`),rd=z(`<nav aria-label="Table of contents"></nav>`);function id(e,t){E(t,!0);let n=k(()=>Os.fontFamily===fs.SANS_SERIF?`font-sans`:`font-serif`),r=A(rn(new Set)),i=k(()=>{let e=new Set,n=null;for(let r of t.headings)r.level===2?n=r.id:r.level>2&&n?e.add(n):r.level===1&&(n=null);return e}),a=k(()=>{let e=null;return t.headings.filter(t=>t.level<=2?(e=t.level===2?t.id:null,!0):e!==null&&L(r).has(e))});function o(e){let t=new Set(L(r));t.has(e)?t.delete(e):t.add(e),j(r,t,!0)}let s=A(null);jn(()=>{if(t.headings.length===0)return;let e=t.headings.map(e=>document.getElementById(e.id)).filter(e=>e!==null);if(e.length===0)return;let n=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&j(s,t.target.id,!0)},{rootMargin:`-80px 0px -60% 0px`,threshold:0});for(let t of e)n.observe(t);return()=>n.disconnect()});let c=k(()=>L(s));var l=V(),u=N(l),d=e=>{var s=rd();li(s,21,()=>L(a),e=>e.id,(e,n)=>{let a=k(()=>L(n).level===2&&L(i).has(L(n).id)),s=k(()=>L(r).has(L(n).id));var l=nd(),u=M(l),d=P(u),f=e=>{var t=td(),n=M(t,!0);w(t),F(()=>U(n,L(s)?`▾`:`▸`)),H(e,t)};W(d,e=>{L(a)&&e(f)}),w(l),F(()=>{q(l,`href`,`#${L(n).id}`),q(l,`title`,L(n).text),K(l,1,`toc-item toc-level-${L(n).level}${L(c)===L(n).id?` toc-active`:``}`),U(u,`${L(n).text??``} `)}),R(`click`,l,e=>{e.preventDefault(),L(a)&&o(L(n).id),t.onheadingclick(L(n).id)}),H(e,l)}),w(s),F(e=>K(s,1,e),[()=>G(Z(`toc`,L(n)))]),H(e,s)};W(u,e=>{t.headings.length>0&&e(d)}),H(e,l),D()}Wr([`click`]);var ad=new Set([`p`,`div`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`pre`,`blockquote`,`li`,`tr`,`br`]);function od(e){let t=cd(e);if(t.length===0)return``;let n=``,r=null;for(let e of t){if(r){let t=r,i=e.blockAncestorPath;t.length>0&&i.length>0&&!sd(t,i)&&t[t.length-1]!==i[i.length-1]&&(n+=`
|
|
10
|
-
`)}n+=e.text,r=e.blockAncestorPath}return n}function sd(e,t){let n=e[e.length-1],r=t[t.length-1];return!!(t.includes(n)||e.includes(r))}function cd(e){let t=[],n=[],r=0,i=/<\/?([a-zA-Z][a-zA-Z0-9]*)[^>]*\/?>/g,a=0,o;for(o=i.exec(e);o!==null;){if(o.index>a){let r=fd(e.slice(a,o.index));r&&t.push({text:r,blockAncestorPath:ld(n)})}let s=o[0],c=o[1].toLowerCase(),l=s.startsWith(`</`),u=s.endsWith(`/>`)||dd(c);if(l){for(let e=n.length-1;e>=0;e--)if(n[e].tag===c){n.splice(e);break}}else u||n.push({tag:c,id:`e${r++}`});a=o.index+s.length,o=i.exec(e)}if(a<e.length){let r=fd(e.slice(a));r&&t.push({text:r,blockAncestorPath:ld(n)})}return t}function ld(e){let t=[];for(let n of e)ad.has(n.tag)&&t.push(n.id);return t}var ud=new Set([`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`]);function dd(e){return ud.has(e)}function fd(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/'/g,`'`).replace(/ /g,`\xA0`).replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(Number(t))).replace(/&#x([0-9a-fA-F]+);/g,(e,t)=>String.fromCharCode(Number.parseInt(t,16)))}var pd=2,md=10,hd=200;function gd(e){return/<[a-z][\s\S]*>/i.test(e)}function _d(e,t=hd){return e.length<=t?e:`${e.slice(0,t-3)}...`}function vd({content:e,startOffset:t,endOffset:n,contextLines:r=pd}){let i=(gd(e)?od(e):e).replace(/\r\n/g,`
|
|
11
|
-
`).split(`
|
|
12
|
-
`),a=0,o=-1,s=-1,c=0,l=0;for(let e=0;e<i.length;e++){let r=i[e].length,u=a+r;if(o===-1&&u>=t&&(o=e,c=t-a),u>=n){s=e,l=n-a;break}a+=r+1}o===-1&&(o=0),s===-1&&(s=i.length-1);let u=Math.max(0,o-r),d=Math.min(i.length-1,s+r),f=[],p=s-o+1>md;for(let e=u;e<=d;e++){let t=i[e];if(p){let t=o+2,n=s-2;if(e>t&&e<n){e===t+1&&f.push(`...`);continue}}if(e===o&&e===s){let e=_d(t.slice(0,c)),n=_d(t.slice(c,l)),r=_d(t.slice(l));f.push(`${e}>>> ${n} <<<${r}`)}else if(e===o){let e=_d(t.slice(0,c)),n=_d(t.slice(c));f.push(`${e}>>> ${n}`)}else if(e===s){let e=_d(t.slice(0,l)),n=_d(t.slice(l));f.push(`${e} <<<${n}`)}else f.push(_d(t))}return{lines:f,startLine:o+1,endLine:s+1}}function yd({context:e,fileName:t,comment:n}){let r=[`# From: ${t}`,``,`Lines ${e.startLine}-${e.endLine}:`,[`---`,...e.lines,`---`].join(`
|
|
13
|
-
`)];return n&&r.push(``,`Comment: ${n}`),r.join(`
|
|
14
|
-
`)}async function bd(e,t,n){let r=await fetch(e,t);if(!r.ok){let e=await r.json().catch(()=>null);throw Error(e?.error||r.statusText||n)}return r}var xd=16,Sd=160,Cd=12;function wd(e){return e.entryHeight*e.entryCount+Cd}function Td(e,t){let n=[...e].sort((e,t)=>e.anchorTop-t.anchorTop),r=t??1/0,i=t===void 0?1/0:t+Sd,a=new Map,o=0;for(let e of n){let t=wd(e),n=Math.max(e.anchorTop,o);n<i&&n+t>r&&(n=i),a.set(e.id,{top:n,height:t,availableHeight:t}),o=n+t+xd}for(let e=0;e<n.length;e++){let r=a.get(n[e].id);if(!r)continue;let i=e+1<n.length?a.get(n[e+1].id):void 0,o=i?i.top-xd:1/0,s=t!==void 0&&r.top<t?t-xd:1/0,c=Math.min(o,s);r.availableHeight=Math.max(r.height,c-r.top)}return a}var Ed=class{clusters=[];elements=new Map;anchorTops=new Map;markerAnchors=new Map;resolved=new Map;pendingTop;listeners=new Set;container=null;highlighter=null;resizeRaf=null;cacheRaf=null;unsubCache=null;attach(e,t,n){this.container=t,this.highlighter=n,window.addEventListener(`resize`,this.onResize),this.unsubCache=n.onCacheInvalidated(()=>{this.cacheRaf===null&&(this.cacheRaf=requestAnimationFrame(()=>{this.cacheRaf=null,this.cache()}))})}detach(){window.removeEventListener(`resize`,this.onResize),this.resizeRaf!==null&&cancelAnimationFrame(this.resizeRaf),this.cacheRaf!==null&&cancelAnimationFrame(this.cacheRaf),this.resizeRaf=null,this.cacheRaf=null,this.unsubCache?.(),this.unsubCache=null,this.container=null,this.highlighter=null}cache(){if(!this.container||!this.highlighter)return;let e=this.container.getBoundingClientRect(),t=this.highlighter.getMarkerAnchors(e);this.markerAnchors=t,this.anchorTops.clear();for(let t of this.clusters){let n=this.computeAnchorTop(t,e);n!==void 0&&this.anchorTops.set(t.id,n)}this.apply(),this.notify(),this.exposeReady()}setClusters(e){this.clusters=e}setPending(e){this.pendingTop!==e&&(this.pendingTop=e,this.apply())}registerCluster(e,t){this.elements.set(e,t);let n=this.resolved.get(e);n?(t.style.top=`${n.top}px`,t.style.setProperty(`--margin-avail-height`,Number.isFinite(n.availableHeight)?`${n.availableHeight}px`:`none`),t.style.visibility=`visible`):t.style.visibility=`hidden`}unregisterCluster(e){this.elements.delete(e)}getMarkerAnchors(){return this.markerAnchors}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}dispose(){this.detach(),this.clusters=[],this.elements.clear(),this.anchorTops.clear(),this.markerAnchors.clear(),this.resolved.clear(),this.listeners.clear()}computeAnchorTop(e,t){if(!this.highlighter)return;let n=null;for(let t of e.commentIds){let e=this.highlighter.getRanges(t);if(e.length!==0&&(n=dc(e[0].startContainer),n))break}if(n)return n.getBoundingClientRect().top-t.top}apply(){let e=this.clusters.filter(e=>this.anchorTops.has(e.id)).map(e=>({id:e.id,anchorTop:this.anchorTops.get(e.id)??0,entryHeight:e.entryHeight,entryCount:e.entryCount}));this.resolved=Td(e,this.pendingTop);for(let[e,t]of this.elements){let n=this.resolved.get(e);n?(t.style.top=`${n.top}px`,t.style.setProperty(`--margin-avail-height`,Number.isFinite(n.availableHeight)?`${n.availableHeight}px`:`none`),t.style.visibility=`visible`):t.style.visibility=`hidden`}}onResize=()=>{this.resizeRaf===null&&(this.resizeRaf=requestAnimationFrame(()=>{this.resizeRaf=null,this.cache()}))};notify(){for(let e of this.listeners)e()}exposeReady(){typeof window<`u`&&(window.__readitPositionsReady=performance.now())}},Dd=z(`<div class="min-h-screen bg-white dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 flex items-center justify-center"><div class="text-red-600"> </div></div>`),Od=z(`<div class="min-h-screen bg-white dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 flex items-center justify-center"><div class="text-zinc-500 dark:text-zinc-400"> </div></div>`),kd=z(`<div class="min-h-screen bg-white dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 flex flex-col"><!> <div class="flex-1 flex flex-col items-center justify-center gap-3"><p class="text-zinc-400 dark:text-zinc-500 text-sm"> </p> <p class="text-zinc-400 dark:text-zinc-500 text-xs"> <!> <code class="bg-zinc-100 dark:bg-zinc-800 px-1.5 py-0.5 rounded text-xs">readit open <file.md></code> </p></div></div>`),Ad=z(`<div class="min-h-screen bg-white dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 flex items-center justify-center"><div class="text-zinc-500 dark:text-zinc-400"> </div></div>`),jd=z(`<aside class="w-48 flex-shrink-0 py-6 pl-6 hidden xl:block"><div class="sticky top-64 max-h-[calc(100vh-17rem)] overflow-y-auto"><!></div></aside>`),Md=z(`<div class="absolute left-0 right-0 z-10 bg-white dark:bg-zinc-900"><!></div>`),Nd=z(`<div class="fixed bottom-16 left-4 right-4 z-50 bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-700 rounded-lg shadow-lg p-4 lg:hidden"><!></div>`),Pd=z(`<div class="min-h-screen bg-white dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 flex flex-col overflow-x-hidden"><!> <!> <div class="flex-1 flex gap-4 w-full max-w-7xl mx-auto overflow-x-hidden"><!> <div class="flex-1 px-6 py-6"><!></div> <div data-margin-column="" class="w-72 flex-shrink-0 py-6 pr-4 relative hidden lg:block"><!> <!></div></div> <!> <!> <!> <!> <footer class="py-4 text-center text-sm text-zinc-400 dark:text-zinc-500"> </footer></div>`),Fd=z(`<div><!></div>`),Id=z(`<!> <!>`,1);function Ld(e,t){E(t,!0);let n=A(!1),r=A(null),i=new Map,a=A(rn([])),o=A(rn(new Map)),s=A(0),c=new Map,l=new Map;function u(){typeof CSS<`u`&&CSS.highlights&&CSS.highlights.delete(`pending-selection`)}function d(e){let t=i.get(e);return t||(t=new Ed,i.set(e,t)),t}let f=new Map;async function p(e,t,n){try{let r=await fetch(`/api/document/task`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({path:e,index:t,checked:n})});return r.ok&&f.set(e,Date.now()),r.ok}catch(e){return console.error(`Failed to toggle task:`,e),!1}}async function m(e,t,n,r,i){let a=`temp-${crypto.randomUUID()}`,o={id:a,selectedText:t,comment:n.trim(),startOffset:r,endOffset:i},s=[...$.documents.get(e)?.comments??[]];al([...s,o],e),ol(null,e);try{let o=await(await bd(`/api/comments?path=${encodeURIComponent(e)}`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({selectedText:t,comment:n.trim(),startOffset:r,endOffset:i})},`Failed to add comment`)).json();al(($.documents.get(e)?.comments??[]).map(e=>e.id===a?o.comment:e),e)}catch(t){console.error(`Failed to add comment:`,t),ol(t instanceof Error?t.message:`Failed to add comment`,e),al(s,e)}}async function h(e,t,n){let r=n.trim();if(!r)return;let i=[...$.documents.get(e)?.comments??[]];al(i.map(e=>e.id===t?{...e,comment:r}:e),e),ol(null,e);try{await bd(`/api/comments/${t}?path=${encodeURIComponent(e)}`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify({comment:r})},`Failed to update comment`)}catch(t){console.error(`Failed to edit comment:`,t),ol(t instanceof Error?t.message:`Failed to update comment`,e),al(i,e)}}async function g(e,t){let n=[...$.documents.get(e)?.comments??[]];al(n.filter(e=>e.id!==t),e),ol(null,e);try{await bd(`/api/comments/${t}?path=${encodeURIComponent(e)}`,{method:`DELETE`},`Failed to delete comment`)}catch(t){console.error(`Failed to delete comment:`,t),ol(t instanceof Error?t.message:`Failed to delete comment`,e),al(n,e)}}async function _(e){let t=[...$.documents.get(e)?.comments??[]];al([],e),ol(null,e);try{await bd(`/api/comments?path=${encodeURIComponent(e)}`,{method:`DELETE`},`Failed to delete all comments`)}catch(n){console.error(`Failed to delete all comments:`,n),ol(n instanceof Error?n.message:`Failed to delete all comments`,e),al(t,e)}}async function v(e,t,n,r,i){let a=[...$.documents.get(e)?.comments??[]];al(a.map(e=>e.id===t?{...e,selectedText:n,startOffset:r,endOffset:i,anchorConfidence:ds.EXACT}:e),e),ol(null,e);try{let a=await(await bd(`/api/comments/${t}/reanchor?path=${encodeURIComponent(e)}`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify({selectedText:n,startOffset:r,endOffset:i})},`Failed to re-anchor comment`)).json();al(($.documents.get(e)?.comments??[]).map(e=>e.id===t?a.comment:e),e)}catch(t){console.error(`Failed to re-anchor comment:`,t),ol(t instanceof Error?t.message:`Failed to re-anchor comment`,e),al(a,e)}}function y(e,t,n){c.set(e,{setFocused:t,scrollTo:n})}function ee(e){c.delete(e)}function te(e){let t=$.activeDocumentPath,n=t?c.get(t):void 0;n?.scrollTo(e),n?.setFocused(e),Ks(e)}function ne(e,t,n){e===$.activeDocumentPath&&(j(a,t,!0),j(o,n,!0))}function re(e){e.length!==0&&(j(s,L(s)===0?e.length-1:L(s)-1,!0),te(e[L(s)].id))}function b(e){e.length!==0&&(j(s,L(s)===e.length-1?0:L(s)+1,!0),te(e[L(s)].id))}function ie(e){navigator.clipboard.writeText(bu(e))}function ae(e,t,n,r,a){Ks(void 0),sl({text:t,startOffset:n,endOffset:r},e),cl(a,e),i.get(e)?.setPending(a)}function oe(e){sl(null,e),cl(void 0,e),i.get(e)?.setPending(void 0),u(),window.getSelection()?.removeAllRanges()}function se(e){e.target.closest(`[data-comment-input]`)||$.activeDocumentPath&&$.documents.get($.activeDocumentPath)?.selection&&(sl(null,$.activeDocumentPath),cl(void 0,$.activeDocumentPath),i.get($.activeDocumentPath)?.setPending(void 0),u(),requestAnimationFrame(()=>{let e=window.getSelection();e?.isCollapsed&&e.removeAllRanges()}))}function ce(e){let t=$.documents.get(e);t&&navigator.clipboard.writeText(xu(t.comments,t.document.fileName))}function le(e){let t=$.documents.get(e);t&&Su(t.comments,t.document)}function ue(e,t){let n=$.documents.get(e);if(!n?.selection)return;let{text:r,startOffset:i,endOffset:a}=n.selection;m(e,r,t,i,a),oe(e)}function de(e){let t=$.documents.get(e);if(!t?.selection||!t.reanchorTarget)return;let{text:n,startOffset:r,endOffset:i}=t.selection;v(e,t.reanchorTarget.commentId,n,r,i),ul(null,e),oe(e)}function fe(e){ul(null,e),oe(e)}function pe(e){Ks(e)}function me(e){let t=document.getElementById(e)?.getBoundingClientRect();if(!t)return;let n=window.scrollY+t.top,r=Math.max(0,n-window.innerHeight*.25);window.scrollTo({top:r,behavior:`smooth`})}function x(e,t){ul({commentId:t},e)}let he,ge;async function _e(){if($.documentOrder.length>0){j(n,!0);return}try{let e=await fetch(`/api/documents`);if(!e.ok)throw Error(`Server error: ${e.status}`);let t=await e.json(),n=t.clean||!1;t.workingDirectory&&$c(t.workingDirectory);for(let e of t.files)el({html:``,filePath:e.path,fileName:e.fileName,clean:n},{active:!1});t.files.length>0&&nl(t.files[0].path),js(),jl(t.settings?.keybindings??[])}catch(e){j(r,e instanceof Error?e.message:`Failed to load documents`,!0)}finally{j(n,!0)}}function ve(){let e=1e3;function t(){ge=new EventSource(`/api/document/stream`),ge.onopen=()=>{e=1e3},ge.onmessage=async e=>{try{let t=JSON.parse(e.data);if(t.type===`document-added`&&t.path){el({html:``,filePath:t.path,fileName:t.fileName,clean:!1},{active:!1});return}if(t.type===`document-updated`&&t.path){let e=t.path;if(!$.documents.get(e)?.document.html)return;let n=f.get(e);if(n!==void 0&&Date.now()-n<800){f.delete(e);return}let[r,i]=await Promise.all([fetch(`/api/document?path=${encodeURIComponent(e)}`),fetch(`/api/comments?path=${encodeURIComponent(e)}`)]);if(r.ok){let t=await r.json();fl(t.headings??[],e),dl(t.html,e)}i.ok&&al((await i.json()).comments??[],e)}}catch(e){console.warn(`Failed to parse document stream message:`,e)}},ge.onerror=()=>{ge?.close(),setTimeout(()=>{e=Math.min(e*2,3e4),t()},e)}}t()}jn(()=>{let e=$.activeDocumentPath;if(!e)return;let t=$.documents.get(e);if(!t||t.document.html)return;let n=`?path=${encodeURIComponent(e)}`,i=t.document.clean,a=fetch(`/api/document${n}`).then(e=>{if(!e.ok)throw Error(`Server error: ${e.status}`);return e.json()}),o=i?fetch(`/api/comments${n}`,{method:`DELETE`}).then(()=>[]):fetch(`/api/comments${n}`).then(e=>e.ok?e.json():{comments:[]}).then(e=>e.comments||[]);Promise.all([a,o]).then(([t,n])=>{al(n,e),fl(t.headings??[],e),dl(t.html,e)},e=>{j(r,e instanceof Error?e.message:`Failed to load document`,!0)})});async function ye(){let e=$.activeDocumentPath;if(e)try{let t=await fetch(`/api/document?path=${encodeURIComponent(e)}`);if(!t.ok)throw Error(`Server error: ${t.status}`);let n=await t.json();fl(n.headings??[],e),dl(n.html,e);let r=await fetch(`/api/comments?path=${encodeURIComponent(e)}`);r.ok&&al((await r.json()).comments??[],e)}catch(e){console.error(`Failed to reload:`,e)}}function be(e){let t=e.target,n=t.tagName;if(n===`INPUT`||n===`TEXTAREA`||t.isContentEditable)return;if(e.metaKey){let t=Number.parseInt(e.key,10);if(t>=1&&t<=9){if($.documentOrder.length<=1)return;let n=Math.min(t-1,$.documentOrder.length-1),r=$.documentOrder[n];r&&(e.preventDefault(),nl(r));return}}let r=$.activeDocumentPath;if(!r)return;let i=$.documents.get(r);if(i){for(let t of Al.shortcuts)if(t.enabled&&bl(e,t.binding)){switch(e.preventDefault(),t.id){case vl.COPY_ALL:ce(r);break;case vl.COPY_ALL_RAW:navigator.clipboard.writeText(i.comments.map(bu).join(`
|
|
15
|
-
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
`));break;case vl.NAVIGATE_NEXT:b(i.sortedComments);break;case vl.NAVIGATE_PREVIOUS:re(i.sortedComments);break;case vl.COPY_SELECTION_RAW:{let e=window.getSelection()?.toString();e&&navigator.clipboard.writeText(e);break}case vl.COPY_SELECTION_LLM:{let e=i.selection;if(e){let t=vd({content:i.document.html,startOffset:e.startOffset,endOffset:e.endOffset});navigator.clipboard.writeText(yd({context:t,fileName:i.document.fileName}))}break}case vl.CLEAR_SELECTION:oe(r);break}return}}}jn(()=>{for(let e of $.documentOrder){let t=e===$.activeDocumentPath,n=l.get(e)??!1;if(n&&!t&&Er(()=>ll(window.scrollY,e)),!n&&t){let t=$.documents.get(e)?.scrollY??0;requestAnimationFrame(()=>{requestAnimationFrame(()=>{window.scrollTo(0,t)})})}l.set(e,t)}}),jn(()=>{let e=Qc();if(!e)return;let t=e.sortedComments.length-1;t>=0&&Er(()=>L(s))>t&&j(s,t)}),ca(()=>{_e(),he=new EventSource(`/api/heartbeat`),ve(),window.addEventListener(`keydown`,be),document.addEventListener(`mousedown`,se)}),la(()=>{he?.close(),ge?.close(),window.removeEventListener(`keydown`,be),document.removeEventListener(`mousedown`,se);for(let e of i.values())e.dispose()});var xe=V(),Se=N(xe),Ce=e=>{var t=Dd(),n=M(t),i=M(n,!0);w(n),w(t),F(()=>U(i,L(r))),H(e,t)},we=e=>{var t=Od(),n=M(t),r=M(n,!0);w(n),w(t),F(e=>U(r,e),[()=>Q(`app.loading`)]),H(e,t)},Te=e=>{var t=kd(),n=M(t);ed(n,{});var r=P(n,2),i=M(r),a=M(i,!0);w(i);var o=P(i,2),s=M(o),c=P(s),l=e=>{var t=B();t.nodeValue=` `,H(e,t)},u=k(()=>Q(`app.noDocumentsHintPrefix`));W(c,e=>{L(u)&&e(l)});var d=P(c,3);w(o),w(r),w(t),F((e,t,n)=>{U(a,e),U(s,`${t??``} `),U(d,`
|
|
19
|
-
${n??``}`)},[()=>Q(`app.noDocuments`),()=>Q(`app.noDocumentsHintPrefix`),()=>Q(`app.noDocumentsHintSuffix`)]),H(e,t)},Ee=e=>{var t=Id(),n=N(t);ed(n,{}),li(P(n,2),16,()=>$.documentOrder,e=>e,(e,t)=>{let n=k(()=>$.documents.get(t)),r=k(()=>t===$.activeDocumentPath),i=k(()=>!!L(n)?.document.html);var c=V(),l=N(c),u=e=>{var c=Fd(),l=M(c),u=e=>{var t=Ad(),n=M(t),r=M(n,!0);w(n),w(t),F(e=>U(r,e),[()=>Q(`app.loading`)]),H(e,t)},f=e=>{let i=k(()=>L(n).headings),c=k(()=>L(n).comments),l=k(()=>L(n).sortedComments),u=k(()=>L(n).selection),f=k(()=>L(n).pendingSelectionTop),m=k(()=>L(n).reanchorTarget);var v=Pd(),se=M(v);{let e=k(()=>L(m)!==null);Pu(se,{get fileName(){return L(n).document.fileName},get comments(){return L(c)},get hasReanchorTarget(){return L(e)},oncopyall:()=>ce(t),onexportjson:()=>le(t),onreload:ye,onedit:(e,n)=>h(t,e,n),ondelete:e=>g(t,e),ondeleteall:()=>_(t),onnavigate:te,onstartreanchor:e=>x(t,e)})}var he=P(se,2);Ra(he,{get error(){return L(n).commentsError},ondismiss:()=>ol(null,t)});var ge=P(he,2),_e=M(ge),ve=e=>{var t=jd(),n=M(t);id(M(n),{get headings(){return L(i)},onheadingclick:me}),w(n),w(t),H(e,t)};W(_e,e=>{L(i).length>0&&e(ve)});var be=P(_e,2),xe=M(be);{let e=k(()=>d(t));Wc(xe,{get content(){return L(n).document.html},get comments(){return L(c)},get isActive(){return L(r)},onTextSelect:(e,n,r,i)=>ae(t,e,n,r,i),onHighlightClick:pe,onTaskToggle:(e,n)=>p(t,e,n),onClustersChanged:(e,n)=>ne(t,e,n),registerHighlighter:(e,n)=>y(t,e,n),unregisterHighlighter:()=>ee(t),get positions(){return L(e)}})}w(be);var Se=P(be,2),Ce=M(Se),we=e=>{var n=Md(),r=M(n),i=e=>{Zu(e,{get selectionText(){return L(u).text},onconfirm:()=>de(t),oncancel:()=>fe(t)})},a=e=>{Rs(e,{get selectedText(){return L(u).text},onsubmit:e=>ue(t,e),oncancel:()=>oe(t)})};W(r,e=>{L(m)===null?e(a,-1):e(i)}),w(n),F(()=>Oi(n,`top: ${L(f)??``}px`)),H(e,n)};W(Ce,e=>{L(u)&&L(f)!==void 0&&e(we)});var Te=P(Ce,2);{let e=k(()=>L(r)?L(a):[]),n=k(()=>d(t));Yu(Te,{get clusters(){return L(e)},get positions(){return L(n)}})}w(Se),w(ge);var Ee=P(ge,2),De=e=>{let n=k(()=>L(c).find(e=>e.id===Gs.activeCommentId)),r=k(()=>L(o).get(Gs.activeCommentId)??0);var i=V(),a=N(i),s=e=>{rc(e,{get comment(){return L(n)},get index(){return L(r)},onedit:(e,n)=>h(t,e,n),ondelete:e=>g(t,e),oncopy:ie})};W(a,e=>{L(n)&&e(s)}),H(e,i)};W(Ee,e=>{Gs.activeCommentId&&L(r)&&e(De)});var Oe=P(Ee,2),ke=e=>{var n=Nd(),r=M(n),i=e=>{Zu(e,{get selectionText(){return L(u).text},onconfirm:()=>de(t),oncancel:()=>fe(t)})},a=e=>{Rs(e,{get selectedText(){return L(u).text},onsubmit:e=>ue(t,e),oncancel:()=>oe(t)})};W(r,e=>{L(m)===null?e(a,-1):e(i)}),w(n),H(e,n)};W(Oe,e=>{L(u)&&L(f)!==void 0&&e(ke)});var Ae=P(Oe,2),je=e=>{let n=k(()=>L(c).find(e=>e.id===Gs.activeCommentId));var r=V(),i=N(r),a=e=>{Yc(e,{get comment(){return L(n)},onedit:(e,n)=>h(t,e,n),ondelete:e=>g(t,e),oncopy:ie,onnavigate:te})};W(i,e=>{L(n)&&e(a)}),H(e,r)};W(Ae,e=>{Gs.activeCommentId&&e(je)});var Me=P(Ae,2);Bs(Me,{get sortedComments(){return L(l)},get currentIndex(){return L(s)},onprevious:()=>re(L(l)),onnext:()=>b(L(l))});var Ne=P(Me,2),Pe=M(Ne,!0);w(Ne),w(v),F(e=>U(Pe,e),[()=>Q(`app.footer`)]),H(e,v)};W(l,e=>{L(i)?L(n)&&e(f,1):e(u)}),w(c),F(()=>Oi(c,L(r)?void 0:`display: none`)),H(e,c)};W(l,e=>{(L(i)||L(r))&&e(u)}),H(e,c)}),H(e,t)};W(Se,e=>{L(r)?e(Ce):L(n)?$.documentOrder.length===0?e(Te,2):e(Ee,-1):e(we,1)}),H(e,xe),D()}var Rd=document.getElementById(`__readit`);if(Rd){let e=JSON.parse(Rd.textContent??`{}`);pl(e),js(e.settings),jl(e.settings?.keybindings??[])}$r(Ld,{target:document.getElementById(`app`)});export{Hc as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e}from"./src-Gc0VHc7x.js";import"./chunk-CSCIHK7Q-1flzyJOS.js";import"./chunk-5ZQYHXKU-DEBvay6G.js";import"./chunk-O5CBEL6O-XwqEnTMN.js";import"./chunk-BSJP7CBP-BBE2cIi4.js";import"./chunk-L5ZTLDWV-BguGtAbU.js";import"./chunk-55IACEB6-CswyqoM6.js";import"./chunk-2J33WTMH-CveZszad.js";import"./chunk-NZK2D7GU-Ws-ljohP.js";import"./chunk-3OPIFGDE-Dkw9ov9N.js";import"./chunk-KSCS5N6A-CeJu0VfP.js";import"./chunk-LZXEDZCA-ClwYVF1y.js";import{i as t,n,r,t as i}from"./chunk-AQP2D5EJ-IGG87QoA.js";var a={parser:n,get db(){return new i(2)},renderer:r,styles:t,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|